ConfirmOpts
Defined in: packages/prompt/src/prompts/confirm.ts:6
Options for confirm input.
Extends
Section titled “Extends”CoreOpts<boolean>
Properties
Section titled “Properties”clearPromptOnDone?
Section titled “clearPromptOnDone?”
optionalclearPromptOnDone?:boolean
Defined in: packages/prompt/src/core/index.ts:37
If the screen should be cleared when finishing a prompt.
Inherited from
Section titled “Inherited from”default?
Section titled “default?”
optionaldefault?:boolean
Defined in: packages/prompt/src/core/index.ts:24
The default value.
Inherited from
Section titled “Inherited from”input?
Section titled “input?”
optionalinput?:ReadStream
Defined in: packages/prompt/src/core/index.ts:29
The standard input. Defaults to process.stdin.
Inherited from
Section titled “Inherited from”message
Section titled “message”message:
string
Defined in: packages/prompt/src/core/index.ts:12
The message of the prompt.
Inherited from
Section titled “Inherited from”noLabel?
Section titled “noLabel?”
optionalnoLabel?:string
Defined in: packages/prompt/src/prompts/confirm.ts:14
What gets displayed for the No option.
output?
Section titled “output?”
optionaloutput?:WriteStream
Defined in: packages/prompt/src/core/index.ts:33
The standard output. Defaults to process.stdout.
Inherited from
Section titled “Inherited from”signal?
Section titled “signal?”
optionalsignal?:AbortSignal
Defined in: packages/prompt/src/core/index.ts:41
An AbortSignal to cancel the prompt.
Inherited from
Section titled “Inherited from”theme?
Section titled “theme?”
optionaltheme?:Theme
Defined in: packages/prompt/src/core/index.ts:20
The theme of the prompt.
Inherited from
Section titled “Inherited from”validate?
Section titled “validate?”
optionalvalidate?:StandardSchemaV1<any,boolean> | ((value) =>boolean)
Defined in: packages/prompt/src/core/index.ts:16
A validator function, or a Standard Schema validator.
Inherited from
Section titled “Inherited from”yesLabel?
Section titled “yesLabel?”
optionalyesLabel?:string
Defined in: packages/prompt/src/prompts/confirm.ts:10
What gets displayed for the Yes option.