# oneOf

function in `@dioramajs/effects/effect`

```ts
import { oneOf } from '@dioramajs/effects/effect'
```

String param limited to these values, the first one the default. The same as `oneOf` of the
light entry, for effect modules, which must not import it.

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

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

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