Modernizr definitions added

This commit is contained in:
Boris Yankov
2012-10-05 19:49:38 +03:00
parent 647369a322
commit a976315cac
2 changed files with 128 additions and 0 deletions
+78
View File
@@ -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;