# Type Alias: BundleIdType (/jsdoc/pixi-vn/index/type-aliases/BundleIdType)



\> **BundleIdType** = \[keyof [`PixivnBundleIds`](/jsdoc/pixi-vn/index/interfaces/PixivnBundleIds)] *extends* \[`never`] ? `string` : keyof [`PixivnBundleIds`](/jsdoc/pixi-vn/index/interfaces/PixivnBundleIds)

Defined in: [src/canvas/types/BundleIdType.ts:37](https://github.com/DRincs-Productions/pixi-vn/blob/efc9536feda21bc17c50370f5e35fd8d8d88843a/src/canvas/types/BundleIdType.ts#L37)

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](/jsdoc/pixi-vn/index/interfaces/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.
