Skip to content

Managing Lexicons

Lexicons are provider-specific type packages that define resource constructors, property types, and intrinsic functions.

Install the lexicon package and add it to your chant.config.ts:

Terminal window
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;

Update the lexicon package version:

Terminal window
npm update @intentius/chant-lexicon-<name>

See Lexicons Overview for the full architecture, including how lexicons provide type definitions, property mappings, and lint rules.