You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
698 B
TypeScript
16 lines
698 B
TypeScript
3 weeks ago
|
import { type Theme } from '@inquirer/core';
|
||
|
import type { PartialDeep } from '@inquirer/type';
|
||
|
declare const _default: <Required extends boolean>(config: {
|
||
|
message: string;
|
||
|
default?: number | undefined;
|
||
|
min?: number | undefined;
|
||
|
max?: number | undefined;
|
||
|
step?: number | "any" | undefined;
|
||
|
required?: Required | undefined;
|
||
|
validate?: ((value: Required extends true ? number : number | undefined) => boolean | string | Promise<string | boolean>) | undefined;
|
||
|
theme?: PartialDeep<Theme> | undefined;
|
||
|
}, context?: import("@inquirer/type").Context) => Promise<Required extends true ? number : number | undefined> & {
|
||
|
cancel: () => void;
|
||
|
};
|
||
|
export default _default;
|