# DecoderOptions

interface in `@dioramajs/diorama/assets`

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

Where Draco, KTX2 and Meshopt decoders come from.

```ts
interface DecoderOptions
```

## Members

| Name | Type | Description |
| --- | --- | --- |
| `draco` | `string \| false \| { readonly js: string; readonly wasm: string }` | A directory or `{ js, wasm }`, false refuses. Defaults to three's glTF-only build next to DRACOLoader. |
| `ktx2` | `string \| false` | A directory, false refuses. Defaults to three's Basis transcoder next to KTX2Loader. |
| `meshopt` | `boolean` | EXT_/KHR_meshopt_compression through three's decoder module (wasm inside). Default true. |
| `workers` | `number \| undefined` | Workers per decoder, three's default if unset. The first app that creates a decoder sets 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#L144).
