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