Skip to content

ConfirmPromptConfig ​

Yes/no confirmation prompt — maps to boolean flags. Part of PromptConfig.

Signatures ​

ts
interface ConfirmPromptConfig extends PromptConfigBase {}

Members ​

Properties ​

default ​

Value used when the user submits an empty line (presses Enter). Also drives the displayed hint: true → (Y/n), false → (y/N).

ts
default?: boolean;

kind ​

Discriminator identifying this as a yes/no confirmation prompt.

ts
kind: "confirm";

message ​

The question displayed to the user.

ts
message: string;

See Also ​

Released under the MIT License.