Alexandro.Net

Download README · GitHub release

@stackline/types-concat-stream

TypeScript definitions for concat-stream.

npm version license GitHub repository Docs Reddit community

Documentation | npm | Issues | Repository

Current package version: 1.0.2


Why this package?

@stackline/types-concat-stream is the Stackline-maintained distribution of @types/concat-stream@2.0.3. It is an independent continuation of @types/concat-stream; original authors and licenses remain credited below.

Compatibility

Item Value
Package @stackline/types-concat-stream@1.0.2
API target @types/concat-stream@2.0.3
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-stream

Preserve existing imports and plugin resolution with an npm alias:

npm install --save-dev @types/concat-stream@npm:@stackline/types-concat-stream

Use 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

Credits

These definitions were written by Joey Marianer.

Credits and original authors

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.