UNPKG

253 BTypeScriptView Raw
1export interface Options {
2 prompt?: string | undefined;
3}
4
5export interface Callback {
6 (error: Error | null, password: string): void;
7}
8
9export function getPass(cb: Callback): void;
10export function getPass(options: Options, cb: Callback): void;