npm.io
1.4.4 • Published 2 years ago

@types/end-of-stream

Licence
MIT
Version
1.4.4
Deps
1
Size
4 kB
Vulns
0
Weekly
0
Stars
51.4K

Installation

npm install --save @types/end-of-stream

Summary

This package contains type definitions for end-of-stream (https://github.com/mafintosh/end-of-stream).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/end-of-stream.

index.d.ts

/// <reference types="node"/>

interface Options {
    readable?: boolean | undefined;
    writable?: boolean | undefined;
    error?: boolean | undefined;
}
type Stream = NodeJS.ReadableStream | NodeJS.WritableStream;
type Callback = (error?: Error | null) => void;
declare function eos(
    stream: Stream,
    callback?: Callback,
): () => void;
declare function eos(
    stream: Stream,
    options: Options,
    callback?: Callback,
): () => void;
declare namespace eos {
}
export = eos;

Additional Details

  • Last updated: Mon, 06 Nov 2023 2205 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Sami Kukkonen.