AssetTypes interface
Value types of typed loads.
import type { AssetTypes } from '@dioramajs/diorama/assets'Extend via declaration merging for your own loaders.
interface AssetTypesMembers
| Name | Type | Description |
|---|---|---|
buffer | ArrayBuffer | Raw bytes. |
gltf | Model | A glTF model owned by the cache. |
image | ImageBitmap | Decoded pixels, flipped like effects textures ( |
json | unknown | Parsed JSON. |
ktx2 | CompressedTexture | Origin top-left like glTF, and |
texture | Texture | Origin bottom-left like effects textures, built from the |
Also exported from @dioramajs/assets.
Defined in packages/assets/src/types.ts.