(kind: Kind, name: string, choices: Choices)
| 573 | * @since 4.0.0 |
| 574 | */ |
| 575 | export const choice = < |
| 576 | const Kind extends ParamKind, |
| 577 | const Choices extends ReadonlyArray<string> |
| 578 | >(kind: Kind, name: string, choices: Choices): Param<Kind, Choices[number]> => { |
| 579 | const mappedChoices = choices.map((value) => [value, value] as const) |
| 580 | return choiceWithValue(kind, name, mappedChoices) |
| 581 | } |
| 582 | |
| 583 | /** |
| 584 | * Creates a path parameter that accepts file or directory paths. |
nothing calls this directly
no test coverage detected