Repository navigation
[@types/node] AbortController.abort can receive an optional reason parameter
#64570
Unanswered
tonivj5
asked this question in
Issues with a @types package
Replies: 2 comments
|
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, @SimonSchick, @ThomasdenH, @WilcoBakker, @wwwy3y3, @samuela, @kuehlein, @bhongy, @chyzwar, @trivikr, @yoursunny, @qwelias, @ExE-Boss, @peterblazejewicz, @addaleax, @victorperin, @ZYSzys, @nodejs, @LinusU, @wafuwafu13, @mcollina, @Semigradsky. |
0 replies
|
|
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
The abort method should receive an optional parameter, currently if you use the same code with web & node, typechecking on node complain
TS2554: Expected 0 arguments, but got 1. 14 | const ac = new AbortController(); 15 | > 16 | ac.abort('reason'); | ^^^^^^^^I've found this issue #58273, but typescript added this optional parameter to its
dom.d.ts: https://github.com/microsoft/TypeScript/blob/main/lib/lib.dom.d.ts#L2046Refs:
https://nodejs.org/api/globals.html#abortcontrollerabortreason
https://nodejs.org/api/globals.html#abortsignalreason
DefinitelyTyped/types/node/globals.d.ts
Lines 53 to 56 in b92231c
All reactions