Debian Codegraph @

types-end-of-stream/index.d.ts

raw symbols SCIP
1 /// <reference types="node"/>
2
3 interface Options {
4 readable?: boolean | undefined;
5 writable?: boolean | undefined;
6 error?: boolean | undefined;
7 }
8 type Stream = NodeJS.ReadableStream | NodeJS.WritableStream;
9 type Callback = (error?: Error | null) => void;
10 declare function eos(
11 stream: Stream,
12 callback?: Callback,
13 ): () => void;
14 declare function eos(
15 stream: Stream,
16 options: Options,
17 callback?: Callback,
18 ): () => void;
19 declare namespace eos {
20 }
21 export = eos;