PromptDefinitionFragmentV1
Prompt configuration attached to a flag fragment.
Validation callbacks are dropped. Only the serializable description of the prompt survives.
- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/json-schema/index.ts - Source link:
src/core/json-schema/index.ts:184
Signatures
ts
type PromptDefinitionFragmentV1 = { [K in PromptKind]: { kind: K; message: string; placeholder?: string; trim?: boolean; empty?: K extends "password" ? "accept" | "retry" : "skip" | "accept" | "retry"; sensitive?: boolean; choices?: readonly PromptChoiceFragmentV1[]; min?: number; max?: number; } }[PromptKind];