Skip to content

Interface: PathOptions ​

Defined in: node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:808

Options for the path prompt.

Extends ​

Properties ​

PropertyTypeDescriptionInherited fromDefined in

accessible?

boolean

‐

CommonOptions.accessible

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:42

directory?

boolean

When true only directories appear in suggestions while you navigate.

‐

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:820

initialValue?

string

The starting path shown when the prompt first renders, which users can edit before submitting. If not provided it will fall back to the given root, or the current working directory.

In directory mode, if the initial value points to a directory that exists, pressing enter will submit the input instead of jumping to the first child.

‐

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:829

input?

Readable

‐

CommonOptions.input

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:38

message

string

The message or question shown to the user above the input.

‐

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:812

output?

Writable

‐

CommonOptions.output

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:39

root?

string

The starting directory for path suggestions (defaults to current working directory).

‐

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:816

signal?

AbortSignal

‐

CommonOptions.signal

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:40

validate?

Validate<string>

A function or a Standard Schema that validates user input. If a custom function is given, you should return a string or Error to show as a validation error, or undefined to accept the result.

‐

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:835

withGuide?

boolean

‐

CommonOptions.withGuide

node_modules/.pnpm/@clack+prompts@1.9.0/node_modules/@clack/prompts/dist/index.d.mts:41

Released under the MIT License