Closed
Description
Search Terms:
SubmitEvent
Code
// A *self-contained* demonstration of the problem follows...
// Test this by running `tsc` on the command-line, rather than through another build tool such as Gulp, Webpack, etc.
function form_Submit(e:SubmitEvent):void { ....... }
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;
};