Skip to content

EditorOpts

Defined in: packages/prompt/dist/index.d.mts:125

Options for opening the system editor.

optional clearPromptOnDone?: boolean

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

If the screen should be cleared when finishing a prompt.

CoreOpts.clearPromptOnDone


optional default?: string

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

The default value.

CoreOpts.default


optional inline?: boolean

Defined in: packages/prompt/dist/index.d.mts:133

If editing should be inline. Omit or set to false to open the default editor.


optional input?: ReadStream

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

The standard input. Defaults to process.stdin.

CoreOpts.input


message: string

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

The message of the prompt.

CoreOpts.message


optional output?: WriteStream

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

The standard output. Defaults to process.stdout.

CoreOpts.output


optional required?: boolean

Defined in: packages/prompt/dist/index.d.mts:129

If the input is required for continuing or not.


optional signal?: AbortSignal

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

An AbortSignal to cancel the prompt.

CoreOpts.signal


optional theme?: Theme

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

The theme of the prompt.

CoreOpts.theme


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

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

A validator function, or a Standard Schema validator.

CoreOpts.validate