TypeScript-DOM-lib-generator
TypeScript-DOM-lib-generator copied to clipboard
Why is `window.opener` still typed as any?
I see that https://github.com/microsoft/TypeScript-DOM-lib-generator/pull/975 was merged quite a while back, but I can't for the life of me figure out why window.opener
still has type any
.
Looking at https://github.com/microsoft/TypeScript-DOM-lib-generator/commits/main/inputfiles/overridingTypes.json, it seems that the commit was lost while merging. Now git blame does not even show that commit.
This could be fixed in the spec level though: https://github.com/whatwg/html/issues/8263
Actually all browsers allows custom objects in window.opener
. https://github.com/whatwg/html/issues/8263#issuecomment-1288155236
Not sure what to do, keeping it is probably the safest option I guess.