Types for TransitionEvent object #13888
Labels
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Fixed
A PR has been merged for this issue
Milestone
TypeScript Version: Master
Code
As per the definition of the
TransitionEvent
object, there are no parameters supported (See here)Expected behavior:
As specified in MDN, the
TransitionEvent
has a different constructor signature and should accept atype
and an options object.Here is the MDN artice: https://developer.mozilla.org/en-US/docs/Web/API/TransitionEvent/TransitionEvent
Actual behavior:
TypeScript currently only allows us to create a
TransitionEvent
without any parameters.Would like to submit a PR if desired and if bug is valid.
The text was updated successfully, but these errors were encountered: