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

1.0.3 • Public • Published

Installation

npm install --save @types/stream-counter

Summary

This package contains type definitions for stream-counter (https://github.com/andrewrk/node-stream-counter).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/stream-counter.

index.d.ts

/// <reference types="node" />

import { Writable } from "stream";

declare class ByteCounter extends Writable {
    readonly bytes: number;

    on(event: "progress", listener: () => void): this;
    on(event: string | symbol, listener: (...args: any[]) => void): this;
}

export = ByteCounter;

Additional Details

  • Last updated: Tue, 07 Nov 2023 15:11:36 GMT
  • Dependencies: @types/node

Credits

These definitions were written by Matthew Peveler.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/stream-counter

Weekly Downloads

198

Version

1.0.3

License

MIT

Unpacked Size

3.27 kB

Total Files

5

Last publish

Collaborators

  • types