# oneOf

function in `@dioramajs/diorama`

```ts
import { oneOf } from '@dioramajs/diorama'
```

String param limited to these values. The first one is the default.

```ts
function oneOf<T extends string>(...values: [T, ...T[]]): ChoiceParam<T>
```

| Parameter | Type | Description |
| --- | --- | --- |
| `values` | `[T, ...T[]]` |  |

Also exported from `@dioramajs/diorama/auto`, `@dioramajs/diorama/effects`, `@dioramajs/effects`.

Defined in [packages/effects/src/define.ts](https://github.com/MasterKurosava/diorama/blob/main/packages/effects/src/define.ts#L88).
