PromptConfig
Discriminated union of all prompt configurations.
Use the kind field to narrow:
ts
if (config.kind === 'select') {
config.choices // readonly SelectChoice[] | undefined
}- Import:
@kjanat/dreamcli - Export kind: type
- Declared in:
src/core/schema/prompt.ts - Source link:
packages/dreamcli/src/core/schema/prompt.ts:114
Signatures
ts
type PromptConfig = ConfirmPromptConfig | InputPromptConfig | SelectPromptConfig | MultiselectPromptConfig;