(kind: Kind, name: string, choices: Choices)
| 542 | * @since 4.0.0 |
| 543 | */ |
| 544 | export const choiceWithValue = < |
| 545 | const Kind extends ParamKind, |
| 546 | const Choices extends ReadonlyArray<readonly [string, any]> |
| 547 | >(kind: Kind, name: string, choices: Choices): Param<Kind, Choices[number][1]> => |
| 548 | makeSingle({ |
| 549 | name, |
| 550 | primitiveType: Primitive.choice(choices), |
| 551 | kind |
| 552 | }) |
| 553 | |
| 554 | /** |
| 555 | * Constructs command-line params that represent a choice between several |