CustomEvent is missing for the list of specialized signatures on document.createEvent #2975
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Milestone
Coppied from @NekR coment in: #2029 (comment)
This:
produces this error:
error TS2339: Property 'initCustomEvent' does not exist on type 'Event'.
This:
produces this error:
error TS2322: Type 'Event' is not assignable to type 'CustomEvent'. Property 'detail' is missing in type 'Event'.
And only casting works:
First case worked just fine
30 mins2 hours ago when I was on TS1.5-Alpha.The text was updated successfully, but these errors were encountered: