mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
Modernizr definitions added
This commit is contained in:
Vendored
+78
@@ -0,0 +1,78 @@
|
||||
// Type definitions for Modernizr 2.6.2
|
||||
// https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface AudioBool {
|
||||
ogg: bool;
|
||||
mp3: bool;
|
||||
wav: bool;
|
||||
m4a: bool;
|
||||
}
|
||||
|
||||
interface VideoBool {
|
||||
ogg: bool;
|
||||
h264: bool;
|
||||
webm: bool;
|
||||
}
|
||||
|
||||
interface ModernizrStatic {
|
||||
fontface: bool;
|
||||
backgroundsize: bool;
|
||||
borderimage: bool;
|
||||
borderradius: bool;
|
||||
boxshadow: bool;
|
||||
flexbox: bool;
|
||||
hsla: bool;
|
||||
multiplebgs: bool;
|
||||
opacity: bool;
|
||||
rgba: bool;
|
||||
textshadow: bool;
|
||||
cssanimations: bool;
|
||||
csscolumns: bool;
|
||||
generatedcontent: bool;
|
||||
cssgradients: bool;
|
||||
cssreflections: bool;
|
||||
csstransforms: bool;
|
||||
csstransforms3d: bool;
|
||||
csstransitions: bool;
|
||||
applicationcache: bool;
|
||||
canvas: bool;
|
||||
canvastext: bool;
|
||||
draganddrop: bool;
|
||||
hashchange: bool;
|
||||
history: bool;
|
||||
audio: AudioBool;
|
||||
video: VideoBool;
|
||||
indexeddb: bool;
|
||||
localstorage: bool;
|
||||
postmessage: bool;
|
||||
sessionstorage: bool;
|
||||
websockets: bool;
|
||||
websqldatabase: bool;
|
||||
webworkers: bool;
|
||||
geolocation: bool;
|
||||
inlinesvg: bool;
|
||||
smil: bool;
|
||||
svg: bool;
|
||||
svgclippaths: bool;
|
||||
touch: bool;
|
||||
webgl: bool;
|
||||
|
||||
prefixed(): bool;
|
||||
prefixed(property: string): bool;
|
||||
prefixed(property: string, obj: any, element?: any): bool;
|
||||
|
||||
mq(mediaQuery: string): bool;
|
||||
|
||||
addTest(feature: string, test: () => any);
|
||||
addTest(feature: string, test: bool);
|
||||
addTest(feature: any);
|
||||
|
||||
testStyles(rule: string, callback: (element, rule) => bool, nodes?: number, testnames?: string[]): bool;
|
||||
testProp(property: string): bool;
|
||||
testAllProps(property: string, prefix?: string): bool;
|
||||
testAllProps(property: string, obj: any, element: any): bool;
|
||||
|
||||
hasEvent(eventName: string, element?: any): bool;
|
||||
}
|
||||
|
||||
declare var Modernizr: ModernizrStatic;
|
||||
Reference in New Issue
Block a user