ReadFn
A function that reads a single line of user input.
Returns null on EOF (Ctrl+D on Unix, Ctrl+Z on Windows), indicating the user closed the input stream (treated as cancel).
The terminal prompter uses this as its sole input seam. The resolution chain (prompt-adapter-1) will wire this to the runtime adapter's stdin.
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/prompt/index.ts - Source link:
packages/dreamcli/src/core/prompt/index.ts:126
Signatures
ts
type ReadFn = { (): Promise<string | null>; };