Skip to content

PromptDefinitionFragmentV1 ​

Prompt configuration attached to a flag fragment.

Validation callbacks are dropped. Only the serializable description of the prompt survives.

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];

See Also ​

Released under the MIT License.