# AssetTypes

interface in `@dioramajs/diorama/assets`

```ts
import type { AssetTypes } from '@dioramajs/diorama/assets'
```

Value types of typed loads. Extend via declaration merging for your own loaders.

```ts
interface AssetTypes
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `buffer` | `ArrayBuffer` | Raw bytes. |
| `gltf` | `Model` | A glTF model owned by the cache. |
| `image` | `ImageBitmap` | Decoded pixels, flipped like effects textures (`imageOrientation: 'flipY'`). |
| `json` | `unknown` | Parsed JSON. |
| `ktx2` | `CompressedTexture` | Origin top-left like glTF, and `flipY` can't be changed. Shared, never dispose it. |
| `texture` | `Texture` | Origin bottom-left like effects textures, built from the `image` entry. Shared, never dispose it. |

Also exported from `@dioramajs/assets`.

Defined in [packages/assets/src/types.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/assets/src/types.ts#L14).
