mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-12 12:10:44 +08:00
Add definitions for isaacs node read
This commit is contained in:
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// Type definitions for read
|
||||
// Project: https://github.com/isaacs/read
|
||||
// Definitions by: Tim JK <https://github.com/timjk>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module 'read' {
|
||||
function Read(options: Read.Options, callback: (error: any, result: string, isDefault: boolean) => any): void;
|
||||
|
||||
module Read {
|
||||
interface Options {
|
||||
prompt?: string;
|
||||
silent?: boolean;
|
||||
replace?: string;
|
||||
timeout?: number;
|
||||
default?: string;
|
||||
edit?: boolean;
|
||||
terminal?: boolean;
|
||||
input?: any;
|
||||
output?: any;
|
||||
}
|
||||
}
|
||||
|
||||
export = Read;
|
||||
}
|
||||
Reference in New Issue
Block a user