forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
modernizr.d.ts
116 lines (103 loc) · 2.97 KB
/
modernizr.d.ts
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
// Type definitions for Modernizr 2.6.2
// Project: http://modernizr.com/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>, Theodore Brown <https://github.com/theodorejb/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface Audioboolean {
ogg: boolean;
mp3: boolean;
wav: boolean;
m4a: boolean;
}
interface Videoboolean {
ogg: boolean;
h264: boolean;
webm: boolean;
}
interface Inputboolean {
autocomplete: boolean;
autofocus: boolean;
list: boolean;
placeholder: boolean;
max: boolean;
min: boolean;
multiple: boolean;
pattern: boolean;
required: boolean;
step: boolean;
}
interface InputTypesboolean {
search: boolean;
tel: boolean;
url: boolean;
email: boolean;
datetime: boolean;
date: boolean;
month: boolean;
week: boolean;
time: boolean;
datetimelocal: boolean;
number: boolean;
range: boolean;
color: boolean;
}
interface ModernizrStatic {
autofocus: boolean;
fontface: boolean;
backgroundsize: boolean;
borderimage: boolean;
borderradius: boolean;
boxshadow: boolean;
flexbox: boolean;
hsla: boolean;
multiplebgs: boolean;
opacity: boolean;
rgba: boolean;
textshadow: boolean;
cssanimations: boolean;
csscolumns: boolean;
generatedcontent: boolean;
cssgradients: boolean;
cssreflections: boolean;
csstransforms: boolean;
csstransforms3d: boolean;
csstransitions: boolean;
applicationcache: boolean;
canvas: boolean;
canvastext: boolean;
draganddrop: boolean;
hashchange: boolean;
history: boolean;
audio: Audioboolean;
video: Videoboolean;
indexeddb: boolean;
input: Inputboolean;
inputtypes: InputTypesboolean;
localstorage: boolean;
postmessage: boolean;
sessionstorage: boolean;
websockets: boolean;
websqldatabase: boolean;
webworkers: boolean;
geolocation: boolean;
inlinesvg: boolean;
smil: boolean;
svg: boolean;
svgclippaths: boolean;
touch: boolean;
webgl: boolean;
load(resources: any[]): void;
load(resourceObject: any): void;
load(resourceString: string): void;
prefixed(property: string): any;
prefixed(property: string, obj: any, element?: any): any;
mq(mediaQuery: string): boolean;
addTest(feature: string, test: () => any): void;
addTest(feature: string, test: boolean): void;
addTest(feature: any): void;
testStyles(rule: string, callback: (element: HTMLDivElement, rule: string) => void, nodes?: number, testnames?: string[]): boolean;
testProp(property: string): boolean;
testAllProps(property: string, prefix?: string): boolean;
testAllProps(property: string, obj: any, element: any): boolean;
hasEvent(eventName: string, element?: any): boolean;
}
declare var Modernizr: ModernizrStatic;