(options: SelectOptions<A>)
| 1119 | if (seenSelected !== -1) { |
| 1120 | initialIndex = seenSelected |
| 1121 | } |
| 1122 | return initialIndex |
| 1123 | } |
| 1124 | |
| 1125 | /** |
| 1126 | * Creates a prompt that lets the user select a single value from a list of |
| 1127 | * choices. |
| 1128 | * |
| 1129 | * **Gotchas** |
| 1130 | * |
| 1131 | * At most one choice may be marked as selected by default. |
| 1132 | * |
| 1133 | * @category constructors |
| 1134 | * @since 4.0.0 |
| 1135 | */ |
no test coverage detected
searching dependent graphs…