Merge pull request #614 from theodorejb/master

Updated Modernizr definitions for TypeScript 0.9
This commit is contained in:
Boris Yankov
2013-06-18 18:11:34 -07:00
2 changed files with 94 additions and 94 deletions

View File

@@ -43,7 +43,7 @@ List of Definitions
* [Cheerio](https://github.com/MatthewMueller/cheerio) (by [Bret Little](https://github.com/blittle))
* [Chosen](http://harvesthq.github.com/chosen/) (by [Boris Yankov](https://github.com/borisyankov))
* [Chrome](http://developer.chrome.com/extensions/) (by [Matthew Kimber](https://github.com/matthewkimber))
* [CodeMirror](http://codemirror.net) (by [Fran<EFBFBD>ois de Campredon](https://github.com/fdecampredon))
* [CodeMirror](http://codemirror.net) (by [François de Campredon](https://github.com/fdecampredon))
* [Commander](http://github.com/visionmedia/commander.js) (by [Marcelo Dezem](https://github.com/mdezem))
* [d3.js](http://d3js.org/) (from TypeScript samples)
* [domo](http://domo-js.com/) (by [Steve Fenton](https://github.com/Steve-Fenton))
@@ -91,17 +91,17 @@ List of Definitions
* [jQuery.clientSideLogging](https://github.com/remybach/jQuery.clientSideLogging/) (by [Diullei Gomes](https://github.com/diullei/))
* [jQuery.Colorbox](http://www.jacklmoore.com/colorbox/) (by [Gidon Junge](https://github.com/gjunge))
* [jQuery.Cookie](https://github.com/carhartl/jquery-cookie) (by [Roy Goode](https://github.com/RoyGoode))
* [jQuery.Cycle](http://jquery.malsup.com/cycle/) (by [Fran<EFBFBD>ois Guillot](http://fguillot.developpez.com/))
* [jQuery.Cycle](http://jquery.malsup.com/cycle/) (by [François Guillot](http://fguillot.developpez.com/))
* [jQuery.dataTables](http://www.datatables.net) (by [Armin Sander](https://github.com/pragmatrix))
* [jQuery.dynatree](http://code.google.com/p/dynatree/) (by [Fran<EFBFBD>ois de Campredon](https://github.com/fdecampredon))
* [jQuery.dynatree](http://code.google.com/p/dynatree/) (by [François de Campredon](https://github.com/fdecampredon))
* [jQuery.Flot](http://www.flotcharts.org/) (by [Matt Burland](https://github.com/burlandm))
* [jQuery.form](http://malsup.com/jquery/form/) (by [Fran<EFBFBD>ois Guillot](http://fguillot.developpez.com/))
* [jQuery.form](http://malsup.com/jquery/form/) (by [François Guillot](http://fguillot.developpez.com/))
* [jQuery.Globalize](https://github.com/jquery/globalize) (by [Boris Yankov](https://github.com/borisyankov))
* [jQuery.jNotify](http://jnotify.codeplex.com) (by [James Curran](https://github.com/jamescurran/))
* [jQuery.noty](http://needim.github.io/noty/) (by [Aaron King](https://github.com/kingdango/))
* [jQuery.scrollTo](https://github.com/flesler/jquery.scrollTo) (by [Neil Stalker](https://github.com/nestalk/))
* [jQuery.simplePagination](https://github.com/flaviusmatis/simplePagination.js) (by [Natan Vivo](https://github.com/nvivo/))
* [jQuery.timeago](http://timeago.yarp.com/) (by [Fran<EFBFBD>ois Guillot](http://fguillot.developpez.com/))
* [jQuery.timeago](http://timeago.yarp.com/) (by [François Guillot](http://fguillot.developpez.com/))
* [jQuery.Timepicker](http://fgelinas.com/code/timepicker/) (by [Anwar Javed](https://github.com/anwarjaved))
* [jQuery.TinyScrollbar](http://baijs.nl/tinyscrollbar/) (by [Christiaan Rakowski](https://github.com/csrakowski))
* [jQuery.Transit](http://ricostacruz.com/jquery.transit/) (by [MrBigDog2U](https://github.com/MrBigDog2U))
@@ -124,7 +124,7 @@ List of Definitions
* [linq.js](http://linqjs.codeplex.com/) (by [Marcin Najder](https://github.com/marcinnajder))
* [Livestamp.js](https://github.com/mattbradley/livestampjs) (by [Vincent Bortone] (https://github.com/vbortone))
* [Marked](https://github.com/chjj/marked) (by [William Orr](https://github.com/worr))
* [Modernizr](http://modernizr.com/) (by [Boris Yankov](https://github.com/borisyankov))
* [Modernizr](http://modernizr.com/) (by [Boris Yankov](https://github.com/borisyankov) and [Theodore Brown](https://github.com/theodorejb/))
* [Moment.js](https://github.com/timrwood/moment) (by [Michael Lakerveld](https://github.com/Lakerfield))
* [Mousetrap](http://craig.is/killing/mice) (by [Dániel Tar](https://github.com/qcz))
* [Mustache.js](https://github.com/janl/mustache.js) (by [Boris Yankov](https://github.com/borisyankov))

View File

@@ -1,116 +1,116 @@
// Type definitions for Modernizr 2.6.2
// Project: http://modernizr.com/
// Definitions by: Boris Yankov <https://github.com/borisyankov/>
// Definitions by: Boris Yankov <https://github.com/borisyankov/> and Theodore Brown <https://github.com/theodorejb/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
interface AudioBool {
ogg: bool;
mp3: bool;
wav: bool;
m4a: bool;
interface Audioboolean {
ogg: boolean;
mp3: boolean;
wav: boolean;
m4a: boolean;
}
interface VideoBool {
ogg: bool;
h264: bool;
webm: bool;
interface Videoboolean {
ogg: boolean;
h264: boolean;
webm: boolean;
}
interface InputBool {
autocomplete: bool;
autofocus: bool;
list: bool;
placeholder: bool;
max: bool;
min: bool;
multiple: bool;
pattern: bool;
required: bool;
step: bool;
interface Inputboolean {
autocomplete: boolean;
autofocus: boolean;
list: boolean;
placeholder: boolean;
max: boolean;
min: boolean;
multiple: boolean;
pattern: boolean;
required: boolean;
step: boolean;
}
interface InputTypesBool {
search: bool;
tel: bool;
url: bool;
email: bool;
datetime: bool;
date: bool;
month: bool;
week: bool;
time: bool;
datetimelocal: bool;
number: bool;
range: bool;
color: bool;
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 {
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;
input: InputBool;
inputtypes: InputTypesBool;
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;
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: Array);
load(resourceObject: any);
load(resourceString: string);
prefixed(): bool;
prefixed(property: string): bool;
prefixed(property: string, obj: any, element?: any): bool;
prefixed(): boolean;
prefixed(property: string): boolean;
prefixed(property: string, obj: any, element?: any): boolean;
mq(mediaQuery: string): bool;
mq(mediaQuery: string): boolean;
addTest(feature: string, test: () => any);
addTest(feature: string, test: bool);
addTest(feature: string, test: boolean);
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;
testStyles(rule: string, callback: (element, rule) => 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): bool;
hasEvent(eventName: string, element?: any): boolean;
}
declare var Modernizr: ModernizrStatic;