@types/flush-write-stream
Version:
TypeScript definitions for flush-write-stream
38 lines (28 loc) • 1.34 kB
Markdown
# Installation
> `npm install --save @types/flush-write-stream`
# Summary
This package contains type definitions for flush-write-stream (https://github.com/mafintosh/flush-write-stream).
# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flush-write-stream.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/flush-write-stream/index.d.ts)
````ts
/// <reference types="node"/>
import { Writable, WritableOptions } from "stream";
type Callback = (error?: Error) => void;
type Write = (chunk: any, encoding: string, callback: Callback) => void;
type Flush = (callback: Callback) => void;
declare const WriteStream: {
(opts: WritableOptions, write: Write, flush?: Flush): Writable;
(write: Write, flush?: Flush): Writable;
new(opts: WritableOptions, write: Write, flush?: Flush): Writable;
new(write: Write, flush?: Flush): Writable;
obj(opts: WritableOptions, write: Write, flush?: Flush): Writable;
obj(write: Write, flush?: Flush): Writable;
};
export = WriteStream;
````
### Additional Details
* Last updated: Tue, 07 Nov 2023 03:09:37 GMT
* Dependencies: [@types/node](https://npmjs.com/package/@types/node)
# Credits
These definitions were written by [Daniel Cassidy](https://github.com/djcsdy).