Repository navigation
[@types/node] AbortController.abort() is missing optional reason parameter #58273
Replies: 3 comments 2 replies
|
Thanks for the discussion about "node", some useful links for everyone: Pinging the DT module owners: @microsoft, @DefinitelyTyped, @jkomyno, @alvis, @r3nya, @btoueg, @smac89, @Touffy, @DeividasBakanas, @eyqs, @Hannes-Magnusson-CK, @hoo29, @kjin, @ajafff, @islishude, @mwiktorczyk, @mohsen1, @n-e, @galkin, @parambirs, @eps1lon, @westy92, @SimonSchick, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @ZYSzys, @nodejs, @LinusU, @wafuwafu13. |
|
Im not sure if I understood the implications right, but I also opened an issue in node-fetch regarding the same issue. I hope thats correct, if not please help me connect the right dots 😄 |
|
I think this is due to a fact, both Node and |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Description
In the definition of the AbortController on MDN it is stated, that it is possible to pass a parameter to
AbortController.abort()that is thrown as Error if the AbortController is used in a fetch call.Expected
Like done in the [@types/mongodb] implementation (see here), the optional reason parameter is also needed in the [@types/node] implementation.
Actual
AbortController.abort()exists, but does not expect a parameter.All reactions