Reputation: 319
I want to override the constructor of a new browser API which is still experimental. The default lib.dom.ts
for this API has the constructor definition which I want to override. How should I go about this?
I have extracted out what I'm trying to do in the REPL here
Upvotes: 0
Views: 231
Reputation: 2486
You can declare this type in Window
interface and run it from window.
global object.
Upvotes: 1