0.1.3 • Published 2 years ago
@types/getpass v0.1.3
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
// Type definitions for getpass 0.1
// Project: https://github.com/arekinath/node-getpass#readme
// Definitions by: Claas Ahlrichs <https://github.com/claasahl>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
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, 06 Jul 2021 20:33:04 GMT
- Dependencies: none
- Global values: none
Credits
These definitions were written by Claas Ahlrichs.