You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I discovered this because VSCode just updated. My project was working fine yesterday but now my project no longer compiles without type errors. The latest version of VSCode includes TypeScript 3.6.2, which has this error in the standard type definitions.
Playground Link:
N/A (I can't reproduce on the playground)
Ah, I see. Ok then I'll close this since it was intentional change.
Won't that always be necessary for older browsers though? I thought it was needed in older versions of Edge at least. It's no big deal since I can just cast to any. Just curious why it was removed.
TypeScript Version: 3.6.2
Search Terms: WebGL, getContext, experimental-webgl, type definitions, lib.dom.d.ts
Code
Expected behavior:
No type errors.
Actual behavior:
I get a type error now:
I discovered this because VSCode just updated. My project was working fine yesterday but now my project no longer compiles without type errors. The latest version of VSCode includes TypeScript 3.6.2, which has this error in the standard type definitions.
Playground Link:
N/A (I can't reproduce on the playground)
Related Issues:
This has already been reported in 2015: #5773. It was fixed in 2016 here: microsoft/TypeScript-DOM-lib-generator#56. It looks like this fix was reverted by #32578 a month ago.
The text was updated successfully, but these errors were encountered: