Open
gitKrystan
opened this issue 2 years ago
•
0 comments
Ensures any provided options are valid to initialize the event type for the provided eventType.
If an actual element is provided, ensures the given event type is valid for that element. Only allows CustomEventInit options if not. (This falls apart if you use a string as the target argument though.)
When you are typing, all of the possible eventType options are listed in the code completion dropdown. Unfortunately, this kind of falls apart when it gets to the options, as code completion doesn't seem to pick up anything past EventInit there.