DefinitelyTyped/read/read.d.ts
2016-03-17 21:06:54 +09:00

25 lines
575 B
TypeScript

// Type definitions for read
// Project: https://github.com/isaacs/read
// Definitions by: Tim JK <https://github.com/timjk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module 'read' {
function Read(options: Read.Options, callback: (error: any, result: string, isDefault: boolean) => any): void;
namespace Read {
interface Options {
prompt?: string;
silent?: boolean;
replace?: string;
timeout?: number;
default?: string;
edit?: boolean;
terminal?: boolean;
input?: any;
output?: any;
}
}
export = Read;
}