@types/read
Version:
TypeScript definitions for read
37 lines (29 loc) • 1.06 kB
Markdown
# Installation
> `npm install --save @types/read`
# Summary
This package contains type definitions for read (https://github.com/isaacs/read).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/read.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/read/index.d.ts)
````ts
declare function Read(options: Read.Options, callback: (error: any, result: string, isDefault: boolean) => any): void;
declare namespace Read {
interface Options {
prompt?: string | undefined;
silent?: boolean | undefined;
replace?: string | undefined;
timeout?: number | undefined;
default?: string | undefined;
edit?: boolean | undefined;
terminal?: boolean | undefined;
input?: any;
output?: any;
}
}
export = Read;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 09:09:39 GMT
* Dependencies: none
# Credits
These definitions were written by [Tim JK](https://github.com/timjk).