oneOf function
String param limited to these values.
import { oneOf } from '@dioramajs/diorama'The first one is the default.
function oneOf<T extends string>(...values: [T, ...T[]]): ChoiceParam<T>Parameters
| Name | Type | Description |
|---|---|---|
values | [T, ...T[]] |
Also exported from @dioramajs/diorama/auto, @dioramajs/diorama/effects, @dioramajs/effects.
Defined in packages/effects/src/define.ts.