Interface ConfirmOptions

interface ConfirmOptions {
    default?: null | boolean;
    message?: string;
    timeout?: number;
}

Properties

default?: null | boolean

Default selection. true for yes, false for no. Will be triggered on timeout expiration and non-interactive contexts.

message?: string

A message to prompt.

timeout?: number

A timeout for the confirm.