PromptResult
The raw result returned by a prompt engine for a single prompt.
answered: true— user provided a valueanswered: false— no answer; cancellation unlessreason: 'invalid'
Coercion to the flag's kind is the resolver's responsibility, not the prompt engine's.
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/schema/prompt.ts - Source link:
src/core/schema/prompt.ts:164
Signatures
ts
type PromptResult = { answered: true; value: unknown; } | { answered: false; reason?: "invalid"; };