mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-06 00:45:32 +00:00
40 lines
No EOL
1.2 KiB
TypeScript
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
|
|
} |