[@types/node] ts4.8\events.d.ts(106,43) Getting error "A rest parameter must be of an array type." with latest version #68895
Replies: 3 comments 1 reply
-
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, @n-e, @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.
-
Hey, unfortunate outcome of using features supported only in TS4.7 or newer. |
Beta Was this translation helpful? Give feedback.
-
node_modules/@types/node/events.d.ts:72:43 - error TS2370: A rest parameter must be of an array type. 72 T[K] extends unknown[] ? (...args: T[K]) => void : never This is the error that i have been getting since I update to the latest typescript |
Beta Was this translation helpful? Give feedback.
-
Getting following error after using latest version.
Typescript version:- 4.5.4
Library version:- https://www.npmjs.com/package/@types/node/v/20.11.24
It is working as expected with the previous version https://www.npmjs.com/package/@types/node/v/20.10.0
Beta Was this translation helpful? Give feedback.
All reactions