@inquirer/password
Version:
Inquirer password prompt
16 lines (15 loc) • 480 B
TypeScript
import { type Theme } from '@inquirer/core';
import type { PartialDeep } from '@inquirer/type';
type PasswordTheme = {
style: {
maskedText: string;
};
};
type PasswordConfig = {
message: string;
mask?: boolean | string;
validate?: (value: string) => boolean | string | Promise<string | boolean>;
theme?: PartialDeep<Theme<PasswordTheme>>;
};
declare const _default: import("@inquirer/type").Prompt<string, PasswordConfig>;
export default _default;