(hasInput: () => boolean | Promise<boolean>, read: () => Promise<T>, ioFormat: IOFormat = 'common')
| 73 | * Build an input processor given the necessary functions for doing so. |
| 74 | */ |
| 75 | export function inputProcessor<T>(hasInput: () => boolean | Promise<boolean>, read: () => Promise<T>, |
| 76 | ioFormat: IOFormat = 'common'): InputProcessor<T> { |
| 77 | return { ioFormat, hasInput, read } |
| 78 | } |
| 79 | |
| 80 | export type CommandLineInputCommand<T> = { |
| 81 | hasCommandLineInput(): boolean |
no outgoing calls
no test coverage detected