Closed HonzaMac closed 2 years ago
Ugh, AbortSignal
is a mess right now. TypeScript has a stub of the interface in its webworker types, which is incompatible with the types the @types/node
provides (that in turn is missing event listener types), which is also not exactly what node-fetch
uses...
I made a change that should make this work. We'll just depend on there being a global AbortSignal (either via DOM/WebWorker or Node types) and I think everything should work out. I'll publish later today.
With recent update of typescript to 4.6.4 -> 4.7.2 (in out repo), types for AbortController stopped to be compatible.
Types in node-fetch vs. cockatiel types. We use
v3.0.0-beta.0
.We got this error on our side:
Where fetchRetry looks like this: