Last active
October 4, 2018 06:33
-
-
Save inakianduaga/ab3cf31b823a2bf097af5a583c8c22a9 to your computer and use it in GitHub Desktop.
Typesafe CustomEvents on your Frontend - Standard lib CustomEvent constructor
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// https://github.com/Microsoft/TypeScript/blob/master/lib/lib.dom.d.ts#L3307 | |
declare var CustomEvent: { | |
prototype: CustomEvent; | |
new <T>(typeArg: string, eventInitDict?: CustomEventInit<T>): CustomEvent<T>; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment