-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathglobal.d.ts
More file actions
30 lines (28 loc) · 835 Bytes
/
global.d.ts
File metadata and controls
30 lines (28 loc) · 835 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
/*
* @Author: crli
* @Date: 2021-06-01 10:11:49
* @LastEditors: crli
* @LastEditTime: 2021-06-15 13:44:52
* @Description: file content
*/
interface HTMLElement {
// 进入全屏
webkitRequestFullScreen(options?: FullscreenOptions): Promise<void>;
msRequestFullscreen(options?: FullscreenOptions): Promise<void>;
mozRequestFullScreen(options?: FullscreenOptions): Promise<void>
}
interface Document {
webkitCancelFullScreen(): Promise<void>;
msExitFullscreen(): Promise<void>;
mozCancelFullScreen(): Promise<void>;
isFullScreen,
mozIsFullScreen,
webkitIsFullScreen
}
interface Element {
currentStyle: object[string]
}
interface Window {
getComputedStyle(elt: Element, pseudoElt?: string | null | undefined): CSSStyleDeclaration[string]
mozRequestAnimationFrame(callback: FrameRequestCallback): number
}