lib.d.ts: Nullable arguments for initMouseEvent() #11380
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
Help Wanted
You can do this
Milestone
While deprecated, the typings of
MouseEvent.initMouseEvent()
should still support strict null checks.TypeScript Version: 2.0.3
Code
Expected behavior:
MDN docs specify:
So you would expect typing to read
EventTarget | null
.Actual behavior:
Null not accepted with strict null checks on.
Not sure whether any of the other fields should accept
null
orundefined
as well...The text was updated successfully, but these errors were encountered: