DefinitelyTyped/types/isstream/index.d.ts
Matthew Peveler 50fab9758a add: type definitions for isstream (#38611)
* add: type definitions for isstream

* address reviewers comments
2019-09-26 16:03:47 -07:00

14 lines
445 B
TypeScript

// Type definitions for isstream 0.1
// Project: https://github.com/rvagg/isstream
// Definitions by: Matthew Peveler <https://github.com/MasterOdin>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare function isStream(obj: any): boolean;
declare namespace isStream {
function isReadable(obj: any): boolean;
function isWritable(obj: any): boolean;
function isDuplex(obj: any): boolean;
}
export = isStream;