Managing Lexicons
Lexicons are provider-specific type packages that define resource constructors, property types, and intrinsic functions.
Adding a Lexicon
Section titled “Adding a Lexicon”Install the lexicon package and add it to your chant.config.ts:
npm install --save-dev @intentius/chant-lexicon-<name>import type { ChantConfig } from "@intentius/chant";
export default { lexicons: ["<name>"], lint: { extends: ["@intentius/chant/lint/presets/strict"], },} satisfies ChantConfig;Updating Versions
Section titled “Updating Versions”Update the lexicon package version:
npm update @intentius/chant-lexicon-<name>How Lexicons Work
Section titled “How Lexicons Work”See Lexicons Overview for the full architecture, including how lexicons provide type definitions, property mappings, and lint rules.