@stackline/types-concat-stream
v1.0.2
Published
TypeScript definitions for concat-stream
Maintainers
Readme
@stackline/types-concat-stream
TypeScript definitions for concat-stream.
Documentation | npm | Issues | Repository
Current package version: 1.0.2
Why this package?
@stackline/types-concat-stream is the Stackline-maintained distribution of @types/[email protected]. It is an independent continuation of @types/concat-stream; original authors and licenses remain credited below.
Compatibility
| Item | Value |
| :--- | :--- |
| Package | @stackline/[email protected] |
| API target | @types/[email protected] |
| Supported Node.js | See supported framework requirements |
| License | MIT |
| Types | index.d.ts |
| Runtime dependencies | @types/node |
Installation
npm install --save-dev @stackline/types-concat-streamPreserve existing imports and plugin resolution with an npm alias:
npm install --save-dev @types/concat-stream@npm:@stackline/types-concat-streamUse the original @types/* alias for automatic TypeScript type discovery and existing compilerOptions.types settings. A scoped-only installation does not automatically expose the original type-package name.
Usage and API reference
Installation
npm install --save @stackline/types-concat-stream
Summary
This package contains type definitions for concat-stream (https://github.com/maxogden/concat-stream).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/concat-stream.
index.d.ts
/// <reference types="node" />
import { Writable } from "stream";
declare function concat(cb: (buf: Buffer) => void): Writable;
declare function concat(opts: { encoding: "buffer" | undefined } | {}, cb: (buf: Buffer) => void): Writable;
declare function concat(opts: { encoding: "string" }, cb: (buf: string) => void): Writable;
declare function concat(opts: { encoding: "array" }, cb: (buf: bigint[]) => void): Writable;
declare function concat(opts: { encoding: "uint8array" | "u8" | "uint8" }, cb: (buf: Uint8Array) => void): Writable;
declare function concat(opts: { encoding: "object" }, cb: (buf: object[]) => void): Writable;
export = concat;
Additional Details
- Last updated: Mon, 20 Nov 2023 23:36:24 GMT
- Dependencies: @types/node
Credits
These definitions were written by Joey Marianer.
Credits and original authors
- Original project: @types/concat-stream.
- Joey Marianer.
- Stackline maintenance: Alexandro Paixao Marques and Stackline contributors.
Original copyright, license notices and contributor acknowledgements remain part of this distribution. Stackline maintenance does not replace authorship of the original work.
License
MIT. See the license and notice files in the repository.
Community and Links
Use this repository's issue tracker for reproducible bugs and feature requests. Join r/Stackline for examples, usage questions and release discussions.
