first commit
This commit is contained in:
40
node_modules/@inquirer/select/dist/esm/index.d.ts
generated
vendored
Normal file
40
node_modules/@inquirer/select/dist/esm/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,40 @@
|
||||
import { Separator, type Theme, type Keybinding } from '@inquirer/core';
|
||||
import type { PartialDeep } from '@inquirer/type';
|
||||
type SelectTheme = {
|
||||
icon: {
|
||||
cursor: string;
|
||||
};
|
||||
style: {
|
||||
disabled: (text: string) => string;
|
||||
description: (text: string) => string;
|
||||
keysHelpTip: (keys: [key: string, action: string][]) => string | undefined;
|
||||
};
|
||||
/** @deprecated Use theme.style.keysHelpTip instead */
|
||||
helpMode: 'always' | 'never' | 'auto';
|
||||
indexMode: 'hidden' | 'number';
|
||||
keybindings: ReadonlyArray<Keybinding>;
|
||||
};
|
||||
type Choice<Value> = {
|
||||
value: Value;
|
||||
name?: string;
|
||||
description?: string;
|
||||
short?: string;
|
||||
disabled?: boolean | string;
|
||||
type?: never;
|
||||
};
|
||||
declare const _default: <Value>(config: {
|
||||
message: string;
|
||||
choices: readonly (string | Separator)[] | readonly (Separator | Choice<Value>)[];
|
||||
pageSize?: number | undefined;
|
||||
loop?: boolean | undefined;
|
||||
default?: unknown;
|
||||
instructions?: {
|
||||
navigation: string;
|
||||
pager: string;
|
||||
} | undefined;
|
||||
theme?: PartialDeep<Theme<SelectTheme>> | undefined;
|
||||
}, context?: import("@inquirer/type").Context) => Promise<Value> & {
|
||||
cancel: () => void;
|
||||
};
|
||||
export default _default;
|
||||
export { Separator } from '@inquirer/core';
|
||||
Reference in New Issue
Block a user