Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

it-stream-types

achingbrain327.2kApache-2.0 OR MIT2.0.2TypeScript support: included

Typescript types for AsyncIterable sink/source/duplex streams

readme

it-stream-types

codecov CI

Typescript types for AsyncIterable sink/source/duplex streams

Install

$ npm i it-stream-types

Usage

import type { Duplex } from 'it-stream-types'

...

API Docs

License

Licensed under either of

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

changelog

2.0.2 (2024-09-11)

Bug Fixes

2.0.1 (2023-04-04)

Bug Fixes

  • default sink return type to unknown (#46) (f4b7fc7)

2.0.0 (2023-04-04)

⚠ BREAKING CHANGES

  • the TSource and TSink generic arguments to the Duplex type now refer to the stream type and not the type of objects yielded by the stream

Bug Fixes

  • be explicit about sync/async behaviour (#45) (374296f)

1.0.5 (2022-12-16)

Documentation

1.0.4 (2022-01-12)

Bug Fixes

1.0.3 (2022-01-11)

Bug Fixes

1.0.2 (2022-01-10)

Bug Fixes

1.0.1 (2022-01-10)

Bug Fixes

1.0.0 (2022-01-10)

Bug Fixes

Trivial Changes