-
Notifications
You must be signed in to change notification settings - Fork 13.4k
Streams are not generic #25277
Copy link
Copy link
Closed
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
Milestone
Metadata
Metadata
Assignees
Labels
Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptThe issue relates to the different libraries shipped with TypeScriptHelp WantedYou can do thisYou can do thisSuggestionAn idea for TypeScriptAn idea for TypeScript
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.tsis not only missingTransformStream, but is also not implemented with generics.@types/whatwg-streamsprovides a correct implementation, but it can’t be used as it conflicts withlib.dom.d.ts, and I have found no way to fix that on my end,lib.dom.d.tsshould 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.