Open
Description
I would like to globally augment the ResponseConstructor
(e.g. add the missing json(data, init)
static method, safely add my own using unique symbols, etc.).
However I do not see how to do that as var Response
isn't defined with a named type.
TypeScript-DOM-lib-generator/baselines/dom.generated.d.ts
Lines 12436 to 12441 in 48c4695
I suggest extracting the type to an interface, e.g. named ResponseConstructor
to enable global augmentation of these types.
There are likely other types/constructors that could also be given named types too (e.g. AbortController
, etc.).
Metadata
Metadata
Assignees
Labels
No labels