first commit
This commit is contained in:
18
node_modules/@inquirer/input/dist/commonjs/index.d.ts
generated
vendored
Normal file
18
node_modules/@inquirer/input/dist/commonjs/index.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
import { type Theme } from '@inquirer/core';
|
||||
import type { PartialDeep } from '@inquirer/type';
|
||||
type InputTheme = {
|
||||
validationFailureMode: 'keep' | 'clear';
|
||||
};
|
||||
type InputConfig = {
|
||||
message: string;
|
||||
default?: string;
|
||||
prefill?: 'tab' | 'editable';
|
||||
required?: boolean;
|
||||
transformer?: (value: string, { isFinal }: {
|
||||
isFinal: boolean;
|
||||
}) => string;
|
||||
validate?: (value: string) => boolean | string | Promise<string | boolean>;
|
||||
theme?: PartialDeep<Theme<InputTheme>>;
|
||||
};
|
||||
declare const _default: import("@inquirer/type").Prompt<string, InputConfig>;
|
||||
export default _default;
|
||||
Reference in New Issue
Block a user