DefinitelyTyped/types/through/index.d.ts
Carl Egbert e817b08dd4 @types/through: Add missing queue method to through.ThroughStream (#41427)
* Add queue method to through.ThroughStream

* no encoding arg

* formatting

* update tsconfig
2020-01-20 19:33:20 -05:00

26 lines
627 B
TypeScript

// Type definitions for through
// Project: https://github.com/dominictarr/through
// Definitions by: Andrew Gaspar <https://github.com/AndrewGaspar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference types="node" />
import stream = require('stream');
declare function through(
write?: (data: any) => void,
end?: () => void,
opts?: {
autoDestroy: boolean;
},
): through.ThroughStream;
declare namespace through {
export interface ThroughStream extends stream.Transform {
autoDestroy: boolean;
queue: (chunk: any) => any;
}
}
export = through;