[@types/node] missing ReadableStream type on globalThis #69452
Unanswered
sam-mfb
asked this question in
Issues with a @types package
Replies: 1 comment
-
Thanks for the discussion about "node", some useful links for everyone: Pinging the DT module owners: @microsoft, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @galkin, @parambirs, @eps1lon, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @ZYSzys, @nodejs, @LinusU, @wafuwafu13, @mcollina, @Semigradsky. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The node.js
globalThis
object exposes the ReadableStream class, but it is not presenting in the @types/node typing.This repo demonstrates the issue: (https://github.com/sam-mfb/node-globalthis-type) by showing that the property is there at runtime notwithstanding the TypeScript error
This is probably true for other Stream types as well.
The types for these types do exist in
stream/web
and can be imported from there, but since they exist on the globalThis object that should not be necessary.Beta Was this translation helpful? Give feedback.
All reactions