( options: Prompt.Prompt.TextOptions, type: Options["type"] )
| 297 | } |
| 298 | |
| 299 | function basePrompt( |
| 300 | options: Prompt.Prompt.TextOptions, |
| 301 | type: Options["type"] |
| 302 | ): Prompt.Prompt<string> { |
| 303 | const opts: Options = { |
| 304 | default: "", |
| 305 | type, |
| 306 | validate: Effect.succeed, |
| 307 | ...options |
| 308 | } |
| 309 | |
| 310 | return InternalPrompt.custom(initialState, { |
| 311 | render: handleRender(opts), |
| 312 | process: handleProcess(opts), |
| 313 | clear: handleClear(opts) |
| 314 | }) |
| 315 | } |
| 316 | |
| 317 | /** @internal */ |
| 318 | export const hidden = ( |
no test coverage detected
searching dependent graphs…