TypeScript API / @laikacms/vite-plugin / LaikaTypegenOptions
Interface: LaikaTypegenOptions
Properties
channel?
ts
readonly optional channel?: ContentChangeChannel;Channel to subscribe to for incremental regeneration.
debounceMs?
ts
readonly optional debounceMs?: number;Debounce window (ms) for coalescing incremental writes. Default 30.
literals?
ts
readonly optional literals?: boolean;Append as const so literal types are preserved. Default false.
logger?
ts
readonly optional logger?: (message) => void;Optional diagnostic logger.
Parameters
| Parameter | Type |
|---|---|
message | string |
Returns
void
mdx?
ts
readonly optional mdx?: boolean;Declare the Body export for items with prose. Mirrors the plugin's mdx option.
namespaces?
ts
readonly optional namespaces?: readonly Namespace[];Namespaces to enumerate on a full regenerate. Default ['doc', 'store'].
reader?
ts
readonly optional reader?: TypegenReader;Override the reader (tests / custom hosts). Defaults to backend.ts.
repos?
ts
readonly optional repos?: LaikaRepositories;Repositories used when no reader is supplied.
tsLoader?
ts
readonly optional tsLoader?: TypeScriptLoader;Override typescript loading (tests simulate it being unavailable).
viteRoot
ts
readonly viteRoot: string;Project root Vite serves from; all output is written under here.