Skip to content

search

search<T, M>(opts): Promise<M extends true ? T[] : T>

Defined in: packages/prompt/src/prompts/search.ts:43

Prompts the user to search through a list of options.

T

M extends boolean = false

SearchOpts<T, M>

Options for search input.

Promise<M extends true ? T[] : T>

The selected option.