oneOf function
String param limited to these values, the first one the default.
import { oneOf } from '@dioramajs/effects/effect'The same as oneOf of the light entry, for effect modules, which must not import it.
function oneOf<T extends string>(...values: [T, ...T[]]): ChoiceParam<T>Parameters
| Name | Type | Description |
|---|---|---|
values | [T, ...T[]] |
Defined in packages/effects/src/effect.ts.