Function isStream

  • Return true if the argument is a Minipass stream, Node stream, or something else that Minipass can interact with.

    Parameters

    • s: 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;
    }

Generated using TypeDoc