Last active
February 22, 2016 21:11
-
-
Save andruhon/2310fcff2860426b06ec to your computer and use it in GitHub Desktop.
HTMLDialogElement TypeScript definition
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
interface HTMLDialogElement extends HTMLElement { | |
open: boolean, | |
returnValue: string, | |
close: ()=>any, | |
show: ()=>any, | |
showModal: ()=>any | |
} | |
declare var HTMLDialogElement: { | |
prototype: HTMLDialogElement; | |
new(): HTMLDialogElement; | |
}; | |
//using cast: let dialog = <HTMLDialogElement> document.getElementById("mydialog"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment