Installation
npm install --save @types/getpass
Summary
This package contains type definitions for getpass (https://github.com/arekinath/node-getpass#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/getpass.
index.d.ts
export interface Options {
prompt?: string | undefined;
}
export interface Callback {
(error: Error | null, password: string): void;
}
export function getPass(cb: Callback): void;
export function getPass(options: Options, cb: Callback): void;
Additional Details
- Last updated: Tue, 07 Nov 2023 03:09:37 GMT
- Dependencies: none
Credits
These definitions were written by Claas Ahlrichs.