spiegel-keyman/web/source/kmwexthtml.ts
2017-12-19 10:09:48 +07:00

40 lines
No EOL
1.2 KiB
TypeScript

interface Window {
attachEvent: (eventNameWithOn:string, callback: () => void) => void,
clientWidth: number
}
interface Document {
parentWindow: any // Thanks again, IE.
selection: any // Is IE only; TS ignores it because of this.
}
interface Element {
_kmwAttachment: any, // Used to track each input element's attachment data.
shim: HTMLElement, // Used in subkey elements for smooth fading.
styleSheet: CSSStyleDeclaration, // Extension of IE. TS ignores it because of this.
attachEvent: any,
detachEvent: any,
unSelectable: string,
currentStyle: any,
// Touch element extensions
base: HTMLElement, // Refers to the aliased element. Is a property of the alias.
_kmwResizeHandler: (e: any) => void,
// Used by our util.wait / util.alert system
dismiss: () => void
}
interface CSSStyleDeclaration {
MozBoxSizing: any,
MozUserSelect: any,
KhtmlUserSelect: any,
UserSelect: any,
WebkitUserSelect: any
}
interface HTMLStyleElement {
filter: any, // More IE-specific fields.
zoom: any
}