indexInterfaces
Interface: PixivnLabelIds
Defined in: src/narration/types/LabelIdType.ts:26
An empty interface that can be augmented via declare module '@drincs/pixi-vn/narration'
to constrain the set of valid label IDs to a known union of string literals.
When this interface has no keys (the default), LabelIdType resolves to string,
preserving full backwards compatibility. Once you augment it, LabelIdType becomes
the union of the declared keys and the compiler will reject any unknown label ID.
The augmentation is typically written into an auto-generated declaration file by the
Vite plugin (see the labelTypeFilePath option of vitePluginPixivn), but it can
also be written by hand.
Example
// pixi-vn.gen.d.ts (auto-generated — do not edit manually)
declare module "@drincs/pixi-vn/narration" {
interface PixivnLabelIds {
startLabel: never;
menuLabel: never;
}
}
export {};