Files
DefinitelyTyped/modernizr/modernizr.d.ts
Chris Apers 7931d62c54 Blank line
2015-08-04 16:06:37 +02:00

117 lines
3.0 KiB
TypeScript

// 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;