Skip to content

Streams are not generic #25277

Closed
Closed
@surma

Description

@surma

TypeScript Version: 3.0.0-dev.20180626

Search Terms: TransformStream Streams ReadableStream WritableStream

WHATWG streams can be used for more than just ArrayBufferViews. For example, they can be used to build observables that carry events.

lib.dom.d.ts is not only missing TransformStream, but is also not implemented with generics. @types/whatwg-streams provides a correct implementation, but it can’t be used as it conflicts with lib.dom.d.ts, and I have found no way to fix that on my end,

lib.dom.d.ts should definitely be updated, but we should also talk about the fact that there doesn’t seem to be a way to overwrite whatever the standard lib provides.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisSuggestionAn idea for TypeScript

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions