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
/// <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
Credits
These definitions were written by Daniel Cassidy.