mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
25 lines
575 B
TypeScript
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;
|
|
}
|