LogoPixi’VN
indexType aliases

Type Alias: BundleIdType

> BundleIdType = [keyof PixivnBundleIds] extends [never] ? string : keyof PixivnBundleIds

Defined in: src/canvas/types/BundleIdType.ts:37

The type used wherever an asset bundle name is expected (e.g. Assets.loadBundle).

  • Default — resolves to string so that existing code that passes arbitrary strings continues to compile without any changes.
  • Augmented — when PixivnBundleIds has been extended via declare module "@drincs/pixi-vn/canvas", this type resolves to the union of the declared keys, giving you compile-time safety against typos and unknown bundle names.