(options: ListOptions)
| 1203 | * @since 4.0.0 |
| 1204 | */ |
| 1205 | export const List = (options: ListOptions): Prompt<Array<string>> => |
| 1206 | String(options).pipe( |
| 1207 | map((output) => output.split(options.delimiter ?? ",")) |
| 1208 | ) |
| 1209 | |
| 1210 | /** |
| 1211 | * Transforms the output value produced by a prompt. |