(choice: SelectDefChoice<T>)
| 45 | options?: SelectDefOptions<T>, |
| 46 | ): InputDefinition<T> { |
| 47 | const nameOfChoice = (choice: SelectDefChoice<T>): string => |
| 48 | typeof choice === 'object' ? choice.name : choice.toString() |
| 49 | const valueOfChoice = (choice: SelectDefChoice<T>): T => |
| 50 | (typeof choice === 'number' || typeof choice === 'string' ? choice : choice.value) as T |
| 51 |