- isStream(s): s is WriteStream | ReadStream | Minipass<any, any, any> | ReadStream & {
fd: number;
} | EventEmitter & {
pause() => any;
pipe(...destArgs) => any;
resume() => any;
} | WriteStream & {
fd: number;
} | EventEmitter & {
end() => any;
write(chunk, ...args) => any;
}
-
Returns s is WriteStream | ReadStream | Minipass<any, any, any> | ReadStream & {
fd: number;
} | EventEmitter & {
pause() => any;
pipe(...destArgs) => any;
resume() => any;
} | WriteStream & {
fd: number;
} | EventEmitter & {
end() => any;
write(chunk, ...args) => any;
}
Return true if the argument is a Minipass stream, Node stream, or something else that Minipass can interact with.