@types/flush-write-stream
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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.

Dependents (0)

Package Sidebar

Install

npm i @types/flush-write-stream

Weekly Downloads

5,583

Version

1.0.2

License

MIT

Unpacked Size

3.99 kB

Total Files

5

Last publish

Collaborators

  • types