Missing SubmitEvent in auto complete #40811
Labels
Bug
A bug in TypeScript
Domain: lib.d.ts
The issue relates to the different libraries shipped with TypeScript
Help Wanted
You can do this
Milestone
Search Terms:
SubmitEvent
Code
Expected behavior:
SubmitEvent is recognized as a DOM type
Actual behavior:
It is not
Playground Link:
Related Issues:
This can be solved by adding this to lib.dom.d.ts:
interface SubmitEvent extends Event
{
readonly submitter: HTMLElement;
}
declare var SubmitEvent: {
prototype: SubmitEvent;
new(type: string, eventInitDict?: EventInit): SubmitEvent;
};
The text was updated successfully, but these errors were encountered: