Skip to content

CoreOpts

Defined in: packages/prompt/dist/core/index.d.mts:52

Base options for prompts.

T

optional clearPromptOnDone?: boolean

Defined in: packages/prompt/dist/core/index.d.mts:80

If the screen should be cleared when finishing a prompt.


optional default?: T

Defined in: packages/prompt/dist/core/index.d.mts:68

The default value.


optional input?: ReadStream

Defined in: packages/prompt/dist/core/index.d.mts:72

The standard input. Defaults to process.stdin.


message: string

Defined in: packages/prompt/dist/core/index.d.mts:56

The message of the prompt.


optional output?: WriteStream

Defined in: packages/prompt/dist/core/index.d.mts:76

The standard output. Defaults to process.stdout.


optional signal?: AbortSignal

Defined in: packages/prompt/dist/core/index.d.mts:84

An AbortSignal to cancel the prompt.


optional theme?: Theme

Defined in: packages/prompt/dist/core/index.d.mts:64

The theme of the prompt.


optional validate?: StandardSchemaV1<any, T> | ((value) => boolean | T)

Defined in: packages/prompt/dist/core/index.d.mts:60

A validator function, or a Standard Schema validator.