diff --git a/.gitignore b/.gitignore
index b09429865e..d4bc5dd91f 100644
--- a/.gitignore
+++ b/.gitignore
@@ -23,12 +23,7 @@ Properties
*~
# test folder
-!_infrastructure/*.js
-!_infrastructure/tests/*
-!_infrastructure/tests/*.js
-!_infrastructure/tests/*/*.js
-!_infrastructure/tests/*/*/*.js
-!_infrastructure/tests/*/*/*/*.js
+_infrastructure/tests/build
.idea
*.iml
diff --git a/.travis.yml b/.travis.yml
index d138403cc2..acfc5176f9 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1,6 +1,6 @@
language: node_js
node_js:
- - 0.10
+ - "0.10"
notifications:
email: false
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index 13053ce7ff..3b48e78746 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -1 +1 @@
-Please see the [contribution guide](https://github.com/borisyankov/DefinitelyTyped/wiki/How-to-contribute) for information on how to contribute to this project.
+Please see the [contribution guide](http://definitelytyped.org/guides/contributing.html) at [definitelytyped.org](http://definitelytyped.org/guides/contributing.html) for information on how to contribute to DefinitelyTyped.
diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
new file mode 100644
index 0000000000..af326634b1
--- /dev/null
+++ b/CONTRIBUTORS.md
@@ -0,0 +1,367 @@
+# Contributors
+
+This is a non-exhaustive list of definitions and their creators. If you created a definition but are not listed then feel free to send a pull request on this file with your name and url.
+
+All definitions files include a header with the author and editors, so at some point this list will be auto-generated.
+
+* [accounting.js](http://josscrowcroft.github.io/accounting.js/) (by [Sergey Gerasimov](https://github.com/gerich-home))
+* [Ace Cloud9 Editor](http://ace.ajax.org/) (by [Diullei Gomes](https://github.com/Diullei))
+* [Add To Home Screen](http://cubiq.org/add-to-home-screen) (by [James Wilkins](http://www.codeplex.com/site/users/view/jamesnw))
+* [AmCharts](http://www.amcharts.com/) (by [Covobonomo](https://github.com/covobonomo/))
+* [AngularAgility](https://github.com/AngularAgility/AngularAgility) (by [Roland Zwaga](https://github.com/rolandzwaga))
+* [AngularBootstrapLightbox](https://github.com/compact/angular-bootstrap-lightbox) (by [Roland Zwaga](https://github.com/rolandzwaga))
+* [AngularFire](https://www.firebase.com/docs/angular/reference.html) (by [Dénes Harmath](https://github.com/thSoft))
+* [AngularJS](http://angularjs.org) (by [Diego Vilar](https://github.com/diegovilar)) ([wiki](https://github.com/borisyankov/DefinitelyTyped/wiki/AngularJS-Definitions-Usage-Notes))
+* [angularLocalStorage](https://github.com/agrublev/angularLocalStorage) (by [Hiroki Horiuchi](https://github.com/horiuchi/))
+* [AngularUI](http://angular-ui.github.io/) (by [Michel Salib](https://github.com/michelsalib))
+* [Angular Hotkeys](https://github.com/chieffancypants/angular-hotkeys/) (by [Jason Zhao](https://github.com/jlz27))
+* [Angular Protractor](https://github.com/angular/protractor) (by [Bill Armstrong](https://github.com/BillArmstrong))
+* [Angular Translate](http://pascalprecht.github.io/angular-translate/) (by [Michel Salib](https://github.com/michelsalib))
+* [Angular UI Bootstrap](http://angular-ui.github.io/bootstrap) (by [Brian Surowiec](https://github.com/xt0rted))
+* [AppFramework](http://app-framework-software.intel.com/) (by [Kyo Ago](https://github.com/kyo-ago))
+* [Arbiter](http://arbiterjs.com/) (by [Arash Shakery](https://github.com/arash16))
+* [asciify](https://github.com/olizilla/asciify) (by [Alan](http://alan.norbauer.com))
+* [assert](https://github.com/Jxck/assert) (by [vvakame](https://github.com/vvakame))
+* [async](https://github.com/caolan/async) (by [Boris Yankov](https://github.com/borisyankov))
+* [atmosphere](https://github.com/Atmosphere/atmosphere-javascript) (by [Kai Toedter](https://github.com/toedter))
+* [Atom](https://atom.io/) (by [vvakame](https://github.com/vvakame))
+* [Auth0](https://auth0.com/) (by [Robert McLaws](https://github.com/advancedrei))
+* [Auth0.Widget](https://auth0.com/) (by [Robert McLaws](https://github.com/advancedrei))
+* [aws-sdk-js](https://github.com/aws/aws-sdk-js) (by [midknight41](https://github.com/midknight41))
+* [Backbone.js](http://backbonejs.org/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Backbone Relational](http://backbonerelational.org/) (by [Eirik Hoem](https://github.com/eirikhm))
+* [big.js](https://github.com/MikeMcl/big.js) (by [Steve Ognibene](https://github.com/nycdotnet))
+* [BigInteger](https://github.com/peterolson/BigInteger.js) (by [Ingo Bürk](https://github.com/Airblader))
+* [BigScreen](http://brad.is/coding/BigScreen/) (by [Douglas Eichelberger](https://github.com/dduugg))
+* [Bluebird](https://github.com/petkaantonov/bluebird) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [Bootbox](https://github.com/makeusabrew/bootbox) (by [Vincent Bortone](https://github.com/vbortone/))
+* [Bootstrap](http://twitter.github.com/bootstrap/) (by [Boris Yankov](https://github.com/borisyankov))
+* [bootstrap-notify](https://github.com/Nijikokun/bootstrap-notify) (by [Blake Niemyjski](https://github.com/niemyjski))
+* [bootstrap.datepicker](https://github.com/eternicode/bootstrap-datepicker) (by [Boris Yankov](https://github.com/borisyankov))
+* [Box2DWeb](http://code.google.com/p/box2dweb/) (by [Josh Baldwin](https://github.com/jbaldwin/))
+* [Breeze](http://www.breezejs.com/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Browser Harness](https://github.com/scriby/browser-harness) (by [Chris Scribner](https://github.com/scriby))
+* [bucks](https://github.com/CyberAgent/bucks.js) (by [Shunsuke Ohtani](https://github.com/zaneli))
+* [CasperJS](http://casperjs.org) (by [Jed Hunsaker](https://github.com/jedhunsaker))
+* [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) and [otiai10](https://github.com/otiai10))
+* [Chrome App](http://developer.chrome.com/apps/) (by [Adam Lay](https://github.com/AdamLay))
+* [CKEditor](https://github.com/ckeditor/ckeditor-dev) (by [Ondrej Sevcik](https://github.com/ondrejsevcik))
+* [Clone](https://github.com/pvorb/node-clone) (by [Kieran Simpson](https://github.com/kierans))
+* [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))
+* [configstore](http://github.com/yeoman/configstore) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [Cordova](http://cordova.apache.org) (by [Microsoft Open Technologies, Inc.](http://msopentech.com/))
+* [Cordovarduino](https://github.com/stereolux/cordovarduino) (by [Hendrik Maus](https://github.com/hendrikmaus))
+* [Couchbase / Couchnode](https://github.com/couchbase/couchnode) (by [Basarat Ali Syed](https://github.com/basarat))
+* [Crossfilter](https://github.com/square/crossfilter) (by [Schmulik Raskin](https://github.com/schmuli))
+* [crypto-js](https://code.google.com/p/crypto-js/) (by [Gia Bảo @ Sân Đình](https://github.com/giabao)). @see [cryptojs.d.ts repo](https://github.com/giabao/cryptojs.d.ts)
+* [d3.js](http://d3js.org/) (from TypeScript samples)
+* [dhtmlxGantt](http://dhtmlx.com/docs/products/dhtmlxGantt) (by [Maksim Kozhukh](http://github.com/mkozhukh))
+* [dhtmlxScheduler](http://dhtmlx.com/docs/products/dhtmlxScheduler) (by [Maksim Kozhukh](http://github.com/mkozhukh))
+* [diff](https://github.com/kpdecker/jsdiff) (by [vvakame](http://github.com/vvakame))
+* [Dock Spawn](http://dockspawn.com) (by [Drew Noakes](https://drewnoakes.com))
+* [docCookies](https://developer.mozilla.org/en-US/docs/Web/API/document.cookie) (by [Jon Egerton](https://github.com/jonegerton))
+* [domo](http://domo-js.com/) (by [Steve Fenton](https://github.com/Steve-Fenton))
+* [doT](https://github.com/olado/doT) (by [ZombieHunter](https://github.com/ZombieHunter))
+* [dust](http://linkedin.github.com/dustjs) (by [Marcelo Dezem](https://github.com/mdezem))
+* [EaselJS](http://www.createjs.com/#!/EaselJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
+* [EasyStar](http://easystarjs.com/) (by [Magnus Gustafsson](https://github.com/Borundin))
+* [Elm](http://elm-lang.org) (by [Dénes Harmath](https://github.com/thSoft))
+* [ember.js](http://emberjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
+* [emissary](https://github.com/atom/emissary) (by [vvakame](https://github.com/vvakame))
+* [EpicEditor](http://epiceditor.com/) (by [Boris Yankov](https://github.com/borisyankov))
+* [ES6-Promises](https://github.com/jakearchibald/ES6-Promises) (by [François de Campredon](https://github.com/fdecampredon/))
+* [Esprima](http://esprima.org/) (by [Teppei Sato](https://github.com/teppeis))
+* [expect.js](https://github.com/LearnBoost/expect.js) (by [Teppei Sato](https://github.com/teppeis))
+* [expectations](https://github.com/spmason/expectations) (by [vvakame](https://github.com/vvakame))
+* [Express](http://expressjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Ext JS](http://www.sencha.com/products/extjs/) (by [Brian Kotek](https://github.com/brian428))
+* [Fabric.js](http://fabricjs.com/) (by [Oliver Klemencic](https://github.com/oklemencic/))
+* [Fancybox](http://fancybox.net/) (by [Boris Yankov](https://github.com/borisyankov))
+* [File API: Directories and System](http://www.w3.org/TR/file-system-api/) (by [Kon](http://phyzkit.net/))
+* [File API: Writer](http://www.w3.org/TR/file-writer-api/) (by [Kon](http://phyzkit.net/))
+* [Finch](https://github.com/stoodder/finchjs) (by [David Sichau](https://github.com/DavidSichau/))
+* [fingerprintjs](https://github.com/Valve/fingerprintjs) (by [Shunsuke Ohtani](https://github.com/zaneli))
+* [Finite State Machine](https://github.com/jakesgordon/javascript-state-machine) (by [Boris Yankov](https://github.com/borisyankov))
+* [Firebase](https://www.firebase.com/docs/javascript/firebase) (by [Vincent Bortone](https://github.com/vbortone))
+* [Firefox](https://developer.mozilla.org/en-US/docs/Web/API) (by [vvakame](https://github.com/vvakame))
+* [FlexSlider](http://www.woothemes.com/flexslider/) (by [Diullei Gomes](https://github.com/Diullei))
+* [Flight by Twitter](http://flightjs.github.com/flight/) (by [Jonathan Hedrén](https://github.com/jonathanhedren))
+* [flipsnap.js](http://pxgrid.github.io/js-flipsnap/) (by [kubosho_](https://github.com/kubosho), [gsino](https://github.com/gsino), [Mayuki Sawatari](https://github.com/mayuki))
+* [Foundation](http://foundation.zurb.com/) (by [Boris Yankov](https://github.com/borisyankov))
+* [FPSMeter](http://darsa.in/fpsmeter/) (by [Aaron Lampros](https://github.com/alampros))
+* [fs-extra](https://github.com/jprichardson/node-fs-extra) (by [midknight41](https://github.com/midknight41))
+* [FullCalendar](http://arshaw.com/fullcalendar/) (by [Neil Stalker](https://github.com/nestalk))
+* [Fuse.js](https://github.com/krisk/Fuse) (by [Greg Smith](https://github.com/smrq))
+* [Gamepad](http://www.w3.org/TR/gamepad/) (by [Kon](http://phyzkit.net/))
+* [GeoJSON](http://geojson.org/) (by [Jake Bruun](https://github.com/cobster))
+* [Giraffe](https://github.com/barc/backbone.giraffe) (by [Matt McCray](https://github.com/darthapo))
+* [glDatePicker](http://glad.github.com/glDatePicker/) (by [Dániel Tar](https://github.com/qcz))
+* [Glob](https://github.com/isaacs/node-glob) (by [vvakame](https://github.com/vvakame))
+* [GoJS](http://gojs.net/) (by [Barbara Duckworth](https://github.com/barbara42))
+* [Greasemonkey](http://www.greasespot.net/) (by [Kota Saito](https://github.com/kotas))
+* [GreenSock Animation Platform (GSAP)](http://www.greensock.com/get-started-js/) (by [Robert S.](https://github.com/codeBelt))
+* [gridfs-stream](https://github.com/aheckmann/gridfs-stream) (by [Lior Mualem](https://github.com/liorm))
+* [Grunt JS](http://gruntjs.com/) (by [Jeff May](https://github.com/jeffmay), [Basarat Ali Syed](https://github.com/basarat) and [San Chen](https://github.com/bigsan))
+* [Google API Client](https://code.google.com/p/google-api-javascript-client/) (by [Frank M](https://github.com/sgtfrankieboy))
+* [Google App Engine Channel API](https://developers.google.com/appengine/docs/java/channel/javascript) (by [vvakame](https://github.com/vvakame))
+* [GoogleMaps](https://developers.google.com/maps/) (by [Esben Nepper](https://github.com/eNepper))
+* [GoogleMaps InfoBubble](http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/) (by [Johan Nilsson](https://github.com/dashue))
+* [Google Geolocation](https://code.google.com/p/geo-location-javascript/) (by [Vincent Bortone](https://github.com/vbortone))
+* [Google Page Speed Online API](https://developers.google.com/speed/pagespeed/) (by [Frank M](https://github.com/sgtfrankieboy))
+* [Google Translate API](https://developers.google.com/translate/) (by [Frank M](https://github.com/sgtfrankieboy))
+* [Google Url Shortener](https://developers.google.com/url-shortener/) (by [Frank M](https://github.com/sgtfrankieboy))
+* [Hammer.js](http://eightmedia.github.com/hammer.js/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Handlebars](http://handlebarsjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
+* [HashMap](https://github.com/flesler/hashmap) (by [Rafał Wrzeszcz](https://wrzasq.pl))
+* [HashSet](http://www.timdown.co.uk/jshashtable/jshashset.html) (by [Sergey Gerasimov](https://github.com/gerich-home))
+* [Hashtable](http://www.timdown.co.uk/jshashtable/) (by [Sergey Gerasimov](https://github.com/gerich-home))
+* [HelloJS](http://adodson.com/hello.js) (by [Pavel Zika](https://github.com/PavelPZ))
+* [Highcharts](http://www.highcharts.com/) (by [damianog](https://github.com/damianog))
+* [Highland](http://highlandjs.org/) (by [Bart van der Schoor](https://github.com/Bartvds/))
+* [highlight.js](https://github.com/isagalaev/highlight.js) (by [Niklas Mollenhauer](https://github.com/nikeee))
+* [History.js](https://github.com/browserstate/history.js) (by [Boris Yankov](https://github.com/borisyankov))
+* [Html2Canvas.js](https://github.com/niklasvh/html2canvas/) (by [Richard Hepburn](https://github.com/rwhepburn))
+* [Humane.js](http://wavded.github.com/humane-js/) (by [John Vrbanac](https://github.com/jmvrbanac))
+* [i18next](http://i18next.com/) (by [Maarten Docter](https://github.com/mdocter))
+* [iCheck](http://damirfoy.com/iCheck/) (by [Dániel Tar](https://github.com/qcz))
+* [Impress.js](https://github.com/bartaz/impress.js) (by [Boris Yankov](https://github.com/borisyankov))
+* [Imagemagick](http://github.com/rsms/node-imagemagick) (by [Carlos Ballesteros Velasco](https://github.com/soywiz))
+* [interact.js](http://github.com/taye/interact.js) (by [Douglas Eichelberger](https://github.com/dduugg))
+* [Ion.RangeSlider](https://github.com/IonDen/ion.rangeSlider) (by [Douglas Eichelberger](https://github.com/dduugg))
+* [Ionic-Cordova](https://github.com/driftyco/) (by [Hendrik Maus](https://github.com/hendrikmaus))
+* [iScroll](http://cubiq.org/iscroll-4) (by [Boris Yankov](https://github.com/borisyankov) and [Christiaan Rakowski](https://github.com/csrakowski))
+* [IxJS (Interactive extensions)](https://github.com/Reactive-Extensions/IxJS) (by [Igor Oleinikov](https://github.com/Igorbek))
+* [jake](https://github.com/mde/jake) (by [Kon](http://phyzkit.net/))
+* [Jasmine](http://pivotal.github.com/jasmine/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Jasmine-jQuery](https://github.com/velesin/jasmine-jquery) (by [Gregor Stamac](https://github.com/gstamac))
+* [jDataView](https://github.com/jDataView/jDataView) (by [Ingvar Stepanyan](https://github.com/RReverser))
+* [JointJS](http://www.jointjs.com/) (by [Aidan Reel](http://github.com/areel))
+* [jQRangeSlider](http://ghusse.github.com/jQRangeSlider) (by [Dániel Tar](https://github.com/qcz))
+* [jQuery](http://jquery.com/) (from TypeScript samples)
+* [jQuery Mobile](http://jquerymobile.com) (by [Boris Yankov](https://github.com/borisyankov))
+* [jQuery UI](http://jqueryui.com/) (by [Boris Yankov](https://github.com/borisyankov))
+* [jQuery.Address](https://github.com/asual/jquery-address) (by [Martin Duparc](https://github.com/martinduparc/) and [Tim Klingeleers](https://github.com/mardaneus86/))
+* [jQuery.areYouSure](https://github.com/codedance/jquery.AreYouSure) (by [Jon Egerton](https://github.com/jonegerton))
+* [jQuery.autosize](http://www.jacklmoore.com/autosize/) (by [Jack Moore](http://www.jacklmoore.com/))
+* [jQuery.BBQ](http://benalman.com/projects/jquery-bbq-plugin/) (by [Adam R. Smith](https://github.com/sunetos))
+* [jQuery.CLEditor](http://premiumsoftware.net/CLEditor) (by [Jeffery Grajkowski](https://github.com/pushplay))
+* [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.contextMenu](http://medialize.github.com/jQuery-contextMenu/) (by [Natan Vivo](https://github.com/nvivo/))
+* [jQuery.Cookie](https://github.com/carhartl/jquery-cookie) (by [Roy Goode](https://github.com/RoyGoode))
+* [jQuery.Cycle](http://jquery.malsup.com/cycle/) (by [François Guillot](http://fguillot.developpez.com/))
+* [jQuery.Cycle2](http://jquery.malsup.com/cycle2/) (by [Donny Nadolny](https://github.com/dnadolny))
+* [jQuery.dataTables](http://www.datatables.net) (by [Armin Sander](https://github.com/pragmatrix))
+* [jQuery.datetimepicker](http://trentrichardson.com/examples/timepicker/) (by [Doug McDonald](https://github.com/dougajmcdonald))
+* [jQuery.dynatree](http://code.google.com/p/dynatree/) (by [François de Campredon](https://github.com/fdecampredon))
+* [jQuery.Fileupload](https://github.com/blueimp/jQuery-File-Upload/) (by [Rob Alarcon](https://github.com/rob-alarcon))
+* [jQuery.Finger](http://ngryman.sh/jquery.finger/) (by [Max Ackley](https://github.com/maxackley))
+* [jQuery.Flot](http://www.flotcharts.org/) (by [Matt Burland](https://github.com/burlandm))
+* [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.gridster](http://gridster.net) (by [Josh Baldwin](https://github.com/jbaldwin/gridster.d.ts))
+* [jQuery.jNotify](http://jnotify.codeplex.com) (by [James Curran](https://github.com/jamescurran/))
+* [jQuery.joyride](http://zurb.com/playground/jquery-joyride-feature-tour-plugin) (by [Vincent Bortone](https://github.com/vbortone))
+* [jQuery.jSignature](https://github.com/willowsystems/jSignature) (by [Patrick Magee](https://github.com/pjmagee))
+* [jQuery.notifyBar](http://www.whoop.ee/posts/2013-04-05-the-resurrection-of-jquery-notify-bar/) (by [Shunsuke Ohtani](https://github.com/zaneli))
+* [jQuery.noty](http://needim.github.io/noty/) (by [Aaron King](https://github.com/kingdango/))
+* [jQuery.payment](http://needim.github.io/noty/) (by [Eric J. Smith](https://github.com/ejsmith/))
+* [jQuery.pickadate](https://github.com/amsul/pickadate.js) (by [Theodore Brown](https://github.com/theodorejb))
+* [jQuery.pjax](https://github.com/defunkt/jquery-pjax) (by [Junle Li](https://github.com/lijunle))
+* [jQuery.pjax.falsandtru](https://github.com/falsandtru/jquery.pjax.js/) (by [NewNotMoon](http://new.not-moon.net/))
+* [jQuery.pnotify](http://sciactive.github.io/pnotify/) (by [David Sichau](https://github.com/DavidSichau/))
+* [jQuery.postMessage](http://benalman.com/projects/jquery-postmessage-plugin/) (by [Junle Li](https://github.com/lijunle))
+* [jQuery.prettyphoto](https://github.com/scaron/prettyphoto) (by [Paul Gaske](https://github.com/pgaske))
+* [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.superLink](http://james.padolsey.com/demos/plugins/jQuery/superLink/superlink.jquery.js) (by [Blake Niemyjski](https://github.com/niemyjski))
+* [jQuery.tile](https://github.com/urin/jquery.tile.js) (by [Shunsuke Ohtani](https://github.com/zaneli))
+* [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.Timer](http://jchavannes.com/jquery-timer/demo) (by [Joshua Strobl](https://github.com/JoshStrobl))
+* [jQuery.TinyCarousel](http://baijs.nl/tinycarousel/) (by [Christiaan Rakowski](https://github.com/csrakowski))
+* [jQuery.TinyScrollbar](http://baijs.nl/tinyscrollbar/) (by [Christiaan Rakowski](https://github.com/csrakowski))
+* [jQuery.tooltipster](https://github.com/iamceege/tooltipster) (by [Patrick Magee](https://github.com/pjmagee))
+* [jQuery.total-storage](https://github.com/Upstatement/jquery-total-storage) (by [Jeremy Brooks](https://github.com/JeremyCBrooks/))
+* [jQuery.Transit](http://ricostacruz.com/jquery.transit/) (by [MrBigDog2U](https://github.com/MrBigDog2U))
+* [jQuery.Validation](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) (by [Boris Yankov](https://github.com/borisyankov))
+* [jQuery.Watermark](http://jquery-watermark.googlecode.com) (by [Anwar Javed](https://github.com/anwarjaved))
+* [jQuery.base64](https://github.com/yatt/jquery.base64) (by [Shinya Mochizuki](https://github.com/enrapt-mochizuki))
+* [js-git](https://github.com/creationix/js-git) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [js-url](https://github.com/websanova/js-url) (by [MIZUNE Pine](https://github.com/pine613))
+* [js-yaml](https://github.com/nodeca/js-yaml) (by [Bart van der Schoor](https://github.com/Bartvds/))
+* [jScrollPane](http://jscrollpane.kelvinluck.com) (by [Dániel Tar](https://github.com/qcz))
+* [JSDeferred](http://cho45.stfuawsc.com/jsdeferred/) (by [Daisuke Mino](https://github.com/minodisk))
+* [JSONEditorOnline](https://github.com/josdejong/jsoneditoronline) (by [Vincent Bortone](https://github.com/vbortone/))
+* [JSON-Pointer](https://www.npmjs.org/package/json-pointer) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [JsRender](http://www.jsviews.com/#jsrender) (by [Kensuke MATSUZAKI](https://github.com/zakki))
+* [jStorage](http://www.jstorage.info/) (by [Danil Flores](https://github.com/dflor003/))
+* [jsTree](http://www.jstree.com/) (by [Adam Pluciński](https://github.com/adaskothebeast))
+* [JWPlayer](http://developer.longtailvideo.com/trac/) (by [Martin Duparc](https://github.com/martinduparc/))
+* [KeyboardJS](https://github.com/RobertWHurst/KeyboardJS) (by [Vincent Bortone](https://github.com/vbortone/))
+* [keymaster.js](https://github.com/madrobby/keymaster) (by [Marting W. Kirst](https://github.com/nitram509/))
+* [KineticJS](http://kineticjs.com/) (by [Basarat Ali Syed](https://github.com/basarat))
+* [Knockback](http://kmalakoff.github.com/knockback/) (by [Marcel Binot](https://github.com/docgit))
+* [Knockout.js](http://knockoutjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Knockout.Amd.Helpers](https://github.com/rniemeyer/knockout-amd-helpers) (by [David Sichau](https://github.com/DavidSichau/))
+* [Knockout.DeferredUpdates](https://github.com/mbest/knockout-deferred-updates) (by [Sebastián Galiano](https://github.com/sgaliano))
+* [Knockout.ES5](https://github.com/SteveSanderson/knockout-es5) (by [Sebastián Galiano](https://github.com/sgaliano))
+* [Knockout.Mapper](https://github.com/LucasLorentz/knockout.mapper) (by [Brandon Meyer](https://github.com/BMeyerKC))
+* [Knockout.Mapping](https://github.com/SteveSanderson/knockout.mapping) (by [Boris Yankov](https://github.com/borisyankov))
+* [Knockout.Postbox](https://github.com/rniemeyer/knockout-postbox) (by [Judah Gabriel Himango](https://github.com/JudahGabriel))
+* [Knockout.Rx](https://github.com/Igorbek/knockout.rx) (by [Igor Oleinikov](https://github.com/Igorbek))
+* [Knockout.Validation](https://github.com/ericmbarnard/Knockout-Validation) (by [Dan Ludwig](https://github.com/danludwig))
+* [Knockout.Viewmodel](http://coderenaissance.github.com/knockout.viewmodel/) (by [Oisin Grehan](https://github.com/oising))
+* [ko.editables](http://romanych.github.com/ko.editables/) (by [Oisin Grehan](https://github.com/oising))
+* [KoLite](https://github.com/CodeSeven/kolite) (by [Boris Yankov](https://github.com/borisyankov))
+* [Lazy.js](http://danieltao.com/lazy.js/) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [Leaflet](https://github.com/Leaflet/Leaflet) (by [Vladimir](https://github.com/rgripper))
+* [Libxmljs](https://github.com/polotek/libxmljs) (by [François de Campredon](https://github.com/fdecampredon))
+* [ladda](https://github.com/hakimel/Ladda) (by [Danil Flores](https://github.com/dflor003))
+* [Levelup](https://github.com/rvagg/node-levelup) (by [Bret Little](https://github.com/blittle))
+* [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))
+* [localForage](https://github.com/mozilla/localForage) (by [david pichsenmeister](https://github.com/3x14159265))
+* [Lodash](http://lodash.com/) (by [Brian Zengel](https://github.com/bczengel))
+* [Logg](https://github.com/dpup/node-logg) (by [Bret Little](https://github.com/blittle))
+* [Long.js](https://github.com/dcodeIO/Long.js) (by [Toshihide Hara](https://github.com/kerug))
+* [lz-string](https://github.com/pieroxy/lz-string) (by [Roman Nikitin](https://github.com/M0ns1gn0r))
+* [Mapbox](https://github.com/mapbox/mapbox.js/) (by [Maxime Fabre](https://github.com/anahkiasen))
+* [Marked](https://github.com/chjj/marked) (by [William Orr](https://github.com/worr))
+* [MathJax](https://github.com/mathjax/MathJax) (by [Roland Zwaga](https://github.com/rolandzwaga))
+* [mCustomScrollbar](https://github.com/malihu/malihu-custom-scrollbar-plugin) (by [Sarah Williams](https://github.com/flurg))
+* [Meteor](https://www.meteor.com) (by [Dave Allen](https://github.com/fullflavedave))
+* [Microsoft Ajax](http://msdn.microsoft.com/en-us/library/ee341002(v=vs.100).aspx) (by [Patrick Magee](https://github.com/pjmagee))
+* [Microsoft Live Connect](http://msdn.microsoft.com/en-us/library/live/hh243643.aspx) (by [John Vilk](https://github.com/jvilk))
+* [Minimatch](https://github.com/isaacs/minimatch) (by [vvakame](https://github.com/vvakame))
+* [minimist](https://github.com/substack/minimist) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [Mixpanel](https://github.com/mixpanel/mixpanel-js) (by [Knut Eirik Leira Hjelle](https://github.com/hjellek))
+* [mixto](https://github.com/atom/mixto) (by [vvakame](https://github.com/vvakame))
+* [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))
+* [MongoDB](http://mongodb.github.io/node-mongodb-native/) (from TypeScript samples, updated by [Niklas Mollenhauer](https://github.com/nikeee))
+* [mongoose](http://mongoosejs.com/) (by [Hiroki Horiuchi](https://github.com/horiuchi/))
+* [Mousetrap](http://craig.is/killing/mice) (by [Dániel Tar](https://github.com/qcz))
+* [msgpack.js](https://github.com/uupaa/msgpack.js) (by [Shinya Mochizuki](https://github.com/enrapt-mochizuki))
+* [Mustache.js](https://github.com/janl/mustache.js) (by [Boris Yankov](https://github.com/borisyankov))
+* [nconf](https://github.com/flatiron/nconf) (by [Jeff Goddard](https://github.com/jedigo))
+* [noble](https://github.com/sandeepmistry/noble) (by [Seon-Wook Park](https://github.com/swook))
+* [nock](https://github.com/pgte/nock) (by [bonnici](https://github.com/bonnici))
+* [Node.js](http://nodejs.org/) (from TypeScript samples)
+* [node_redis](https://github.com/mranney/node_redis) (by [Boris Yankov](https://github.com/borisyankov))
+* [node-ffi](https://github.com/rbranson/node-ffi) (by [Paul Loyd](https://github.com/loyd))
+* [node-form](https://github.com/rsamec/form) (by [Roman Samec](https://github.com/rsamec))
+* [node-git](https://github.com/christkv/node-git) (by [vvakame](https://github.com/vvakame))
+* [nodeunit](https://github.com/caolan/nodeunit) (by [Jeff Goddard](https://github.com/jedigo))
+* [node_zeromq](https://github.com/JustinTulloss/zeromq.node) (by [Dave McKeown](https://github.com/davemckeown))
+* [node-sqlserver](https://github.com/WindowsAzure/node-sqlserver) (by [Boris Yankov](https://github.com/borisyankov))
+* [node-uuid](https://github.com/broofa/node-uuid) (by [Jeff May](https://github.com/jeffmay))
+* [notify.js](https://github.com/alexgibson/notify.js) (by [soundTricker](https://github.com/soundTricker))
+* [NProgress](https://github.com/rstacruz/nprogress) (by [Judah Gabriel Himango](https://github.com/judahgabriel))
+* [Numeral.js](https://github.com/adamwdraper/Numeral-js) (by [Vincent Bortone](https://github.com/vbortone/))
+* [object-path](https://github.com/mariocasciaro/object-path) (by [Paulo Cesar](https://github.com/pocesar/))
+* [ocLazyLoad](https://github.com/ocombe/ocLazyLoad) (by [Roland Zwaga](https://github.com/rolandzwaga/))
+* [OpenLayers](https://github.com/openlayers/openlayers) (by [Ilya Bolkhovsky](https://github.com/bolhovsky/))
+* [Optimist](https://github.com/substack/node-optimist) (by [Carlos Ballesteros Velasco](https://github.com/soywiz))
+* [Passport](http://passportjs.org/) (by [Hiroki Horiuchi](https://github.com/horiuchi/))
+* [passport-strategy](https://github.com/jaredhanson/passport-strategy) (by [Lior Mualem](https://github.com/liorm))
+* [pathwatcher](http://atom.github.io/node-pathwatcher/) (by [vvakame](https://github.com/vvakame))
+* [Parallel.js](https://github.com/adambom/parallel.js) (by [Josh Baldwin](https://github.com/jbaldwin))
+* [Parsimmon](https://github.com/jayferd/parsimmon) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [PDF.js](https://github.com/mozilla/pdf.js) (by [Josh Baldwin](https://github.com/jbaldwin))
+* [PEG.js](http://pegjs.majda.cz/) (by [vvakame](https://github.com/vvakame))
+* [Persona](http://www.mozilla.org/en-US/persona) (by [James Frasca](https://github.com/Nycto))
+* [PhantomJS](http://phantomjs.org) (by [Jed Hunsaker](https://github.com/jedhunsaker))
+* [PhoneGap](http://phonegap.com) (by [Boris Yankov](https://github.com/borisyankov))
+* [PixiJS](https://github.com/GoodBoyDigital/pixi.js) (by [Pedro Casaubon](https://github.com/xperiments))
+* [Platform](https://github.com/bestiejs/platform.js) (by [Jake Hickman](https://github.com/JakeH))
+* [PouchDB](http://pouchdb.com) (by [Bill Sears](https://github.com/MrBigDog2U/))
+* [PreloadJS](http://www.createjs.com/#!/PreloadJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
+* [ProgressJs](http://usablica.github.io/progress.js/) (by [Shunsuke Ohtani](https://github.com/zaneli))
+* [Q](https://github.com/kriskowal/q) (by Barrie Nemetchek, Andrew Gaspar)
+* [Q-io](https://github.com/kriskowal/q-io) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [QUnit](http://qunitjs.com/) (by [Diullei Gomes](https://github.com/Diullei))
+* [Raven.js](https://github.com/getsentry/raven-js) (by [Santi Albo](https://github.com/santialbo))
+* [Recaptcha.js](https://www.google.com/recaptcha) (by [Brent Jenkins](https://github.com/brentj73))
+* [Rickshaw](http://code.shutterstock.com/rickshaw/) (by [Blake Niemyjski](https://github.com/niemyjski))
+* [Riot.js](https://github.com/moot/riotjs) (by [vvakame](https://github.com/vvakame))
+* [Restify](https://github.com/mcavage/node-restify) (by [Bret Little](https://github.com/blittle))
+* [Redis](https://github.com/mranney/node_redis) (by [Carlos Ballesteros Velasco](https://github.com/soywiz))
+* [Request](https://github.com/mikeal/request) (by [Carlos Ballesteros Velasco](https://github.com/soywiz))
+* [Royalslider](http://dimsemenov.com/plugins/royal-slider/) (by [Christiaan Rakowski](https://github.com/csrakowski))
+* [Rx.js](http://rx.codeplex.com/) (by [gsino](http://www.codeplex.com/site/users/view/gsino), [Igor Oleinikov](https://github.com/Igorbek), [Carl de Billy](http://carl.debilly.net/), [zoetrope](https://github.com/zoetrope))
+* [Raphael](http://raphaeljs.com/) (by [CheCoxshall](https://github.com/CheCoxshall))
+* [Restangular](https://github.com/mgonto/restangular/) (by [Boris Yankov](https://github.com/borisyankov))
+* [require.js](http://requirejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/))
+* [rtree.js](https://github.com/leaflet-extras/RTree) (by [Omede Firouz](https://github.com/oefirouz))
+* [Sammy.js](http://sammyjs.org/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Select2](http://ivaynberg.github.com/select2/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Selenium WebDriverJS](https://code.google.com/p/selenium/) (by [Bill Armstrong](https://github.com/BillArmstrong))
+* [Semver](https://github.com/isaacs/node-semver) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [Sencha Touch](http://www.sencha.com/products/touch/) (by [Brian Kotek](https://github.com/brian428))
+* [SharePoint](http://sptypescript.codeplex.com) (by [Stanislav Vyshchepan](http://gandjustas.blogspot.ru) and [Andrey Markeev](http://markeev.com))
+* [SignalR](http://www.asp.net/signalr) (by [Boris Yankov](https://github.com/borisyankov))
+* [simple-cw-node](https://github.com/astronaughts/simple-cw-node) (by [vvakame](https://github.com/vvakame))
+* [Sinon](http://sinonjs.org/) (by [William Sears](https://github.com/mrbigdog2u))
+* [SlickGrid](https://github.com/mleibman/SlickGrid) (by [Josh Baldwin](https://github.com/jbaldwin))
+* [smoothie](https://github.com/joewalnes/smoothie) (by [Mike H. Hawley](https://github.com/mikehhawley) and [Drew Noakes](https://drewnoakes.com))
+* [socket.io](http://socket.io) (by [William Orr](https://github.com/worr))
+* [socket.io-client](http://socket.io) (by [Maido Kaara](https://github.com/v3rm0n))
+* [SockJS](https://github.com/sockjs/sockjs-client) (by [Emil Ivanov](https://github.com/vladev))
+* [sockjs-node](https://github.com/sockjs/sockjs-node) (by [Phil McCloghry-Laing](https://github.com/pmccloghrylaing))
+* [SoundJS](http://www.createjs.com/#!/SoundJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
+* [Spin](http://fgnass.github.com/spin.js/) (by [Boris Yankov](https://github.com/borisyankov))
+* [sqlite3](https://github.com/mapbox/node-sqlite3) (by [Nick Malaguti](https://github.com/nmalaguti))
+* [status-bar](https://github.com/atom/status-bar) (by [vvakame](https://github.com/vvakame))
+* [stripe](https://stripe.com/) (by [Eric J. Smith](https://github.com/ejsmith/))
+* [Store.js](https://github.com/marcuswestin/store.js/) (by [Vincent Bortone](https://github.com/vbortone))
+* [Sugar](http://sugarjs.com/) (by [Josh Baldwin](https://github.com/jbaldwin/))
+* [Swiper](http://www.idangero.us/sliders/swiper) (by [Sebastián Galiano](https://github.com/sgaliano))
+* [SwipeView](http://cubiq.org/swipeview) (by [Boris Yankov](https://github.com/borisyankov))
+* [Swiz](https://github.com/racker/node-swiz) (by [Jeff Goddard](https://github.com/jedigo))
+* [TV4](https://github.com/geraintluff/tv4) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [Tags Manager](http://welldonethings.com/tags/manager) (by [Vincent Bortone](https://github.com/vbortone))
+* [Teechart](http://www.steema.com) (by [Steema](http://www.steema.com))
+* [text-buffer](https://github.com/atom/text-buffer) (by [vvakame](https://github.com/vvakame))
+* [text-encoding](https://github.com/inexorabletash/text-encoding) (by [MIZUNE Pine](https://github.com/pine613))
+* [three.js](http://mrdoob.github.com/three.js/) (by [Kon](http://phyzkit.net/))
+* [TimelineJS](https://github.com/NUKnightLab/TimelineJS) (by [Roland Zwaga](https://github.com/rolandzwaga))
+* [timezonecomplete](https://github.com/SpiritIT/timezonecomplete) (by [Rogier Schouten](https://github.com/rogierschouten))
+* [Toastr](https://github.com/CodeSeven/toastr) (by [Boris Yankov](https://github.com/borisyankov))
+* [trunk8](https://github.com/rviscomi/trunk8) (by [Blake Niemyjski](https://github.com/niemyjski))
+* [TweenJS](http://www.createjs.com/#!/TweenJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
+* [tween.js](https://github.com/sole/tween.js/) (by [Adam R. Smith](https://github.com/sunetos))
+* [twitter-bootstrap-wizard](https://github.com/VinceG/twitter-bootstrap-wizard) (by [Blake Niemyjski](https://github.com/niemyjski))
+* [Twitter Typeahead](http://twitter.github.io/typeahead.js) (by [Ivaylo Gochkov](https://github.com/igochkov))
+* [Ubuntu Unity Web API](https://launchpad.net/libunity-webapps) (by [John Vrbanac](https://github.com/jmvrbanac))
+* [Underscore.js](http://underscorejs.org/) (by [Boris Yankov](https://github.com/borisyankov))
+* [Underscore.js (Typed)](http://underscorejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/))
+* [Underscore-ko.js](https://github.com/kamranayub/UnderscoreKO) (by [Maurits Elbers](https://github.com/MagicMau))
+* [universal-analytics](https://github.com/peaksandpies/universal-analytics) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [update-notifier](https://github.com/yeoman/update-notifier) (by [vvakame](https://github.com/vvakame))
+* [uri-templates](https://github.com/geraintluff/uri-templates) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [urlrouter](https://github.com/fengmk2/urlrouter) (by [Carlos Ballesteros Velasco](https://github.com/soywiz))
+* [UUID.js](https://github.com/LiosK/UUID.js) (by [Jason Jarrett](https://github.com/staxmanade))
+* [Valerie](https://github.com/davewatts/valerie) (by [Howard Richards](https://github.com/conficient))
+* [Velocity](http://velocityjs.org/) (by [Greg Smith](https://github.com/smrq))
+* [Viewporter](https://github.com/zynga/viewporter) (by [Boris Yankov](https://github.com/borisyankov))
+* [Vimeo](http://developer.vimeo.com/player/js-api) (by [Daz Wilkin](https://github.com/DazWilkin/))
+* [vinyl](https://github.com/wearefractal/vinyl) (by [vvakame](https://github.com/vvakame/))
+* [vinyl-fs](https://github.com/wearefractal/vinyl-fs) (by [vvakame](https://github.com/vvakame/))
+* [WebRTC](http://dev.w3.org/2011/webrtc/editor/webrtc.html) (by [Ken Smith](https://github.com/smithkl42))
+* [websocket](https://github.com/Worlize/WebSocket-Node) (by [Paul Loyd](https://github.com/loyd))
+* [WinJS](http://msdn.microsoft.com/en-us/library/windows/apps/br229773.aspx) (from TypeScript samples)
+* [WinRT](http://msdn.microsoft.com/en-us/library/windows/apps/br211377.aspx) (from TypeScript samples)
+* [ws](http://einaros.github.io/ws/) (by [Paul Loyd](https://github.com/loyd))
+* [x2js](https://code.google.com/p/x2js/) (by [Hiroki Horiuchi](https://github.com/horiuchi/))
+* [xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) (by [Michel Salib](https://github.com/michelsalib))
+* [XRegExp](http://xregexp.com/) (by [Bart van der Schoor](https://github.com/Bartvds))
+* [YouTube](https://developers.google.com/youtube/) (by [Daz Wilkin](https://github.com/DazWilkin/))
+* [YouTube Analytics API](https://developers.google.com/youtube/analytics/) (by [Frank M](https://github.com/sgtfrankieboy))
+* [YouTube Data API](https://developers.google.com/youtube/v3/) (by [Frank M](https://github.com/sgtfrankieboy/))
+* [Zepto.js](http://zeptojs.com/) (by [Josh Baldwin](https://github.com/jbaldwin))
+* [Zynga Scroller](https://github.com/zynga/scroller) (by [Boris Yankov](https://github.com/borisyankov))
+* [ZeroClipboard](https://github.com/jonrohan/ZeroClipboard) (by [Eric J. Smith](https://github.com/ejsmith))
diff --git a/Finch/Finch-tests.ts b/Finch/Finch-tests.ts
new file mode 100644
index 0000000000..28aeb6b668
--- /dev/null
+++ b/Finch/Finch-tests.ts
@@ -0,0 +1,368 @@
+///
+
+function test_Finch() {
+
+
+ Finch.route("Hello/Route", function() {
+ return console.log("Well hello there! How you doin'?!");
+ });
+
+ Finch.route("Hello/Route/:someId", function(bindings) {
+ return console.log("Hey! Here's Some Id: " + bindings.someId);
+ });
+
+ Finch.route("Hello/Route/:someId", function(bindings, childCallback) {
+ console.log("Hey! Here's Some Id: " + bindings.someId);
+ return childCallback();
+ });
+
+ Finch.route("some/route", {
+ setup: function(bindings) {
+ return console.log("Some Route has been setup! :)");
+ },
+ load: function(bindings) {
+ return console.log("Some Route has been loaed! :D");
+ },
+ unload: function(bindings) {
+ return console.log("Some Route has been loaed! :(");
+ },
+ teardown: function(bindings) {
+ return console.log("Some Route has been torndown! :'(");
+ }
+ });
+
+ Finch.route("some/route", {
+ setup: function(bindings, childCallback) {
+ console.log("Some Route has been setup! :)");
+ return childCallback();
+ },
+ load: function(bindings, childCallback) {
+ console.log("Some Route has been loaed! :D");
+ return childCallback();
+ },
+ unload: function(bindings, childCallback) {
+ console.log("Some Route has been loaed! :(");
+ return childCallback();
+ },
+ teardown: function(bindings, childCallback) {
+ console.log("Some Route has been torndown! :'(");
+ return childCallback();
+ }
+ });
+
+ Finch.call("Some/Route");
+
+ Finch.route("Some/Route", function() {
+ return Finch.observe("hello", "foo", function(hello: any, foo: string) {
+ return console.log("" + hello + " and " + foo);
+ });
+ });
+
+ Finch.route("Some/Route", function() {
+ return Finch.observe(["hello", "foo"], function(hello: any, foo: any) {
+ return console.log("" + hello + " and " + foo);
+ });
+ });
+
+ Finch.route("Some/Route", function(bindings) {
+ return Finch.observe(function(params) {
+ });
+ });
+
+ Finch.navigate("Some/Route");
+
+ Finch.navigate("Some/Route", {
+ hello: 'world',
+ foo: 'bar'
+ });
+
+ Finch.navigate("Some/Route", {
+ foo: 'bar'
+ }, true);
+
+ Finch.navigate("Some/Route", true);
+
+ Finch.navigate({
+ hello: 'world2',
+ wow: 'wee'
+ });
+
+ Finch.navigate({
+ foo: 'bar',
+ wow: 'wee!!!'
+ });
+
+ Finch.navigate({
+ hello: 'world2'
+ }, true);
+
+ Finch.listen();
+ Finch.ignore();
+ Finch.abort();
+
+
+ //test from Finch
+ Finch.call("/foo/bar");
+ Finch.call("/foo/bar/123");
+ Finch.call("/foo/bar/123");
+ Finch.call("/foo/bar/123?x=Hello&y=World");
+ Finch.call("/foo/baz/456");
+ Finch.call("/quux/789?band=Sunn O)))&genre=Post-Progressive Fridgecore");
+ Finch.call("/foo/bar/baz");
+ Finch.call("/foo/bar/quux");
+ Finch.call("/foo");
+ Finch.call("/foo/bar");
+ Finch.call("/foo");
+ Finch.call("/foo");
+ Finch.call("/");
+ Finch.call("/");
+ Finch.call("/foo");
+ Finch.call("/foo/bar");
+ Finch.call("/foo/bar?baz=quux");
+ Finch.call("/foo/bar?baz=xyzzy");
+
+ var cb: any;
+ Finch.route("foo", {
+ setup: cb.setup_foo = this.stub(),
+ load: cb.load_foo = this.stub(),
+ unload: cb.unload_foo = this.stub(),
+ teardown: cb.teardown_foo = this.stub()
+ });
+ Finch.route("[foo]/bar", {
+ setup: cb.setup_foo_bar = this.stub(),
+ load: cb.load_foo_bar = this.stub(),
+ unload: cb.unload_foo_bar = this.stub(),
+ teardown: cb.teardown_foo_bar = this.stub()
+ });
+ Finch.route("[foo/bar]/:id", {
+ setup: cb.setup_foo_bar_id = this.stub(),
+ load: cb.load_foo_bar_id = this.stub(),
+ unload: cb.unload_foo_bar_id = this.stub(),
+ teardown: cb.teardown_foo_bar_id = this.stub()
+ });
+ Finch.route("[foo]/baz", {
+ setup: cb.setup_foo_baz = this.stub(),
+ load: cb.load_foo_baz = this.stub(),
+ unload: cb.unload_foo_baz = this.stub(),
+ teardown: cb.teardown_foo_baz = this.stub()
+ });
+ Finch.route("[foo/baz]/:id", {
+ setup: cb.setup_foo_baz_id = this.stub(),
+ load: cb.load_foo_baz_id = this.stub(),
+ unload: cb.unload_foo_baz_id = this.stub(),
+ teardown: cb.teardown_foo_baz_id = this.stub()
+ });
+ Finch.call("/foo");
+ Finch.call("/foo/bar");
+ Finch.call("/foo");
+ Finch.call("/foo/bar/123?x=abc");
+ Finch.call("/foo/bar/456?x=aaa&y=zzz");
+ Finch.call("/foo/bar/456?x=bbb&y=zzz");
+ Finch.call("/foo/bar/456?y=zzz&x=bbb");
+ Finch.call("/foo/baz/789");
+ Finch.call("/foo/baz/abc?term=Hello");
+ Finch.call("/foo/baz/abc?term=World");
+ Finch.route("bar", this.stub());
+ Finch.call("/foo");
+ Finch.call("/bar");
+ Finch.route("/", function() {
+ });
+ Finch.route("[/]home", function() {
+ });
+ Finch.route("[/home]/news", {
+ setup: function() {
+ },
+ load: function() {
+ },
+ unload: function() {
+ return true;
+ },
+ teardown: function() {
+ return false;
+ }
+ });
+ Finch.route("/foo", {
+ setup: function() {
+ return true;
+ },
+ load: function() {
+ return true;
+ },
+ unload: function() {
+ },
+ teardown: function() {
+ }
+ });
+ Finch.route("[/]bar", {
+ setup: function() {
+ },
+ load: function() {
+ },
+ unload: function() {
+ },
+ teardown: function() {
+ }
+ });
+ Finch.call("/bar");
+ Finch.call("/home/news");
+ Finch.call("/foo");
+ Finch.call("/home/news");
+ Finch.call("/bar");
+ Finch.route("baz", this.stub());
+ Finch.call("/foo");
+ Finch.call("/foo/bar");
+ Finch.call("/baz");
+ Finch.route("/home", {
+ setup: function(bindings, next) {
+ return next();
+ },
+ load: function(bindings, next) {
+ return next();
+ },
+ unload: function(bindings, next) {
+ return next();
+ },
+ teardown: function(bindings, next) {
+ return next();
+ }
+ });
+ Finch.route("[/home]/news", {
+ setup: function(bindings, next) {
+ return next();
+ },
+ load: function(bindings, next) {
+ return next();
+ },
+ unload: function(bindings, next) {
+ return next();
+ },
+ teardown: function(bindings, next) {
+ return next();
+ }
+ });
+ Finch.call("/home");
+ Finch.call("/home/news");
+ Finch.call("/foo");
+
+ Finch.route("/", function(bindings) {
+ return Finch.observe(["x"], function(x) {
+ });
+ });
+ Finch.call("/?x=123");
+ Finch.call("/?x=123.456");
+ Finch.call("/?x=true");
+ Finch.call("/?x=false");
+ Finch.call("/?x=stuff");
+ Finch.options({
+ CoerceParameterTypes: true
+ });
+ Finch.call("/?x=123");
+ Finch.call("/?x=123.456");
+ Finch.call("/?x=true");
+ Finch.call("/?x=false");
+ Finch.call("/?x=stuff");
+ Finch.route("/:x", function(_arg) {
+ });
+ Finch.call("/123");
+ Finch.call("/123.456");
+ Finch.call("/true");
+ Finch.call("/false");
+ Finch.call("/stuff");
+ Finch.options({
+ CoerceParameterTypes: true
+ });
+ Finch.call("/123");
+ Finch.call("/123.456");
+ Finch.call("/true");
+ Finch.call("/false");
+ Finch.call("/stuff");
+
+ Finch.navigate("/home");
+ Finch.navigate("/home/news");
+ Finch.navigate("/home");
+ Finch.navigate("/home", {
+ foo: "bar"
+ });
+ Finch.navigate("/home", {
+ hello: "world"
+ });
+ Finch.navigate({
+ foos: "bars"
+ });
+ Finch.navigate({
+ foos: "baz"
+ });
+ Finch.navigate({
+ hello: "world"
+ }, true);
+ Finch.navigate({
+ foos: null
+ }, true);
+ Finch.navigate("/home/news", true);
+ Finch.navigate("/hello world", {});
+ Finch.navigate("/hello world", {
+ foo: "bar bar"
+ });
+ Finch.navigate({
+ foo: "baz baz"
+ });
+ Finch.navigate({
+ hello: 'world world'
+ }, true);
+ Finch.navigate("/home?foo=bar", {
+ hello: "world"
+ });
+ Finch.navigate("/home?foo=bar", {
+ hello: "world",
+ foo: "baz"
+ });
+ Finch.navigate("/home?foo=bar", {
+ hello: "world",
+ free: "bird"
+ });
+ Finch.navigate("#/home", true);
+ Finch.navigate("#/home");
+ Finch.navigate("#/home/news", {
+ free: "birds",
+ hello: "worlds"
+ });
+ Finch.navigate("#/home/news", {
+ foo: "bar"
+ }, true);
+ Finch.navigate("/home/news");
+ Finch.navigate("../");
+ Finch.navigate("./");
+ Finch.navigate("./news");
+ Finch.navigate("/home/news/article");
+ Finch.navigate("../../account");
+
+ Finch.listen();
+ Finch.ignore();
+ Finch.route("/home", function(bindings, continuation) {
+ });
+ Finch.route("/foo", function(bindings, continuation) {
+ });
+ Finch.call("home");
+ Finch.call("foo");
+ Finch.abort();
+ Finch.call("foo");
+ Finch.route("/", {
+ 'setup': cb.slash_setup = this.stub(),
+ 'load': cb.slash_load = this.stub(),
+ 'unload': cb.slash_unload = this.stub(),
+ 'teardown': cb.slash_teardown = this.stub()
+ });
+ Finch.route("[/]users/profile", {
+ 'setup': cb.profile_setup = this.stub(),
+ 'load': cb.profile_load = this.stub(),
+ 'unload': cb.profile_unload = this.stub(),
+ 'teardown': cb.profile_teardown = this.stub()
+ });
+ Finch.route("[/]:page", {
+ 'setup': cb.page_setup = this.stub(),
+ 'load': cb.page_load = this.stub(),
+ 'unload': cb.page_unload = this.stub(),
+ 'teardown': cb.page_teardown = this.stub()
+ });
+ Finch.call("/users");
+}
diff --git a/Finch/Finch.d.ts b/Finch/Finch.d.ts
new file mode 100644
index 0000000000..e3dd86c701
--- /dev/null
+++ b/Finch/Finch.d.ts
@@ -0,0 +1,47 @@
+// Type definitions for Finch 0.5.13
+// Project: https://github.com/stoodder/finchjs
+// Definitions by: David Sichau
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+
+interface FinchCallback {
+ (bindings?: any, childCallback? : () => void): any;
+}
+
+interface ExpandedCallback {
+ setup?: FinchCallback;
+ load?: FinchCallback;
+ unload?: FinchCallback;
+ teardown?: FinchCallback;
+}
+
+interface ObserveCallback {
+ (...args: any[]): string;
+}
+interface FinchOptions {
+ CoerceParameterTypes?: boolean;
+}
+
+
+interface FinchStatic {
+ route(route: string, callback: FinchCallback): void;
+ route(route: string, callbacks: ExpandedCallback): void;
+ call( uri: string ): void;
+
+ observe(argN: string[], callback: (params: ObserveCallback ) => void): void;
+ observe(callback: (params: ObserveCallback) => void): void;
+ observe(...args: any[]): void;
+ navigate(uri:string, queryParams?:any, doUpdate?:boolean ): void;
+ navigate(uri:string, doUpdate:boolean ): void;
+ navigate(queryParams:any, doUpdate?:boolean ): void;
+ listen(): boolean;
+ ignore(): boolean;
+ abort(): void;
+ options(options: FinchOptions): void;
+}
+
+
+declare var Finch: FinchStatic;
+declare module "finch" {
+ export = Finch;
+}
diff --git a/JSONStream/JSONStream-tests.ts b/JSONStream/JSONStream-tests.ts
new file mode 100644
index 0000000000..ea7eb64ff9
--- /dev/null
+++ b/JSONStream/JSONStream-tests.ts
@@ -0,0 +1,15 @@
+///
+
+import json = require('JSONStream');
+
+var read: NodeJS.ReadableStream;
+var write: NodeJS.WritableStream;
+
+read = read.pipe(json.parse('*'));
+read = read.pipe(json.parse(['foo/*', 'bar/*']));
+
+read = json.stringify();
+read = json.stringify('{', ',', '}');
+
+read = json.stringifyObject();
+read = json.stringifyObject('{', ',', '}');
diff --git a/JSONStream/JSONStream.d.ts b/JSONStream/JSONStream.d.ts
new file mode 100644
index 0000000000..869f965f45
--- /dev/null
+++ b/JSONStream/JSONStream.d.ts
@@ -0,0 +1,22 @@
+// Type definitions for JSONStream v0.8.0
+// Project: http://github.com/dominictarr/JSONStream
+// Definitions by: Bart van der Schoor
+// Definitions: https://github.com/borisyankov/DefinitelyTyped
+
+///
+
+declare module 'JSONStream' {
+
+ export interface Options {
+ recurse: boolean;
+ }
+
+ export function parse(pattern: any): NodeJS.ReadWriteStream;
+ export function parse(patterns: any[]): NodeJS.ReadWriteStream;
+
+ export function stringify(): NodeJS.ReadWriteStream;
+ export function stringify(open: string, sep: string, close: string): NodeJS.ReadWriteStream;
+
+ export function stringifyObject(): NodeJS.ReadWriteStream;
+ export function stringifyObject(open: string, sep: string, close: string): NodeJS.ReadWriteStream;
+}
diff --git a/README.md b/README.md
old mode 100755
new mode 100644
index 4120a354ef..479e04cc89
--- a/README.md
+++ b/README.md
@@ -1,317 +1,41 @@
-DefinitelyTyped [](https://travis-ci.org/borisyankov/DefinitelyTyped)
-===============
+# DefinitelyTyped [](https://travis-ci.org/borisyankov/DefinitelyTyped)
-The repository for *high quality* TypeScript type definitions.
+> The repository for *high quality* TypeScript type definitions.
+
+For more information see the [definitelytyped.org](http://definitelytyped.org) website.
+
+## Usage
-Usage
------
Include a line like this:
-```
+```typescript
///
```
-[TypeScript Directory: tools, libraries, projects and learning resources](https://github.com/DefinitelyTyped/typescript-directory)
+## Contributions
-Contributor Guidelines
-----------------------
+DefinitelyTyped only works because of contributions by users like you!
-See the section: [How to contribute](https://github.com/borisyankov/DefinitelyTyped/wiki/How-to-contribute)
+Please see the [contribution guide](http://definitelytyped.org/guides/contributing.html) on how to contribute to DefinitelyTyped.
-Other means to get the definitions
-----------------------------------
+## How to get the definitions
+
+* Directly from the Github repos
* [NuGet packages](http://nuget.org/packages?q=DefinitelyTyped)
-* [TypeScript Definition package manager](https://github.com/DefinitelyTyped/tsd)
+* [TypeScript Definition manager](https://github.com/DefinitelyTyped/tsd)
-List of Definitions
--------------------
-* [accounting.js](http://josscrowcroft.github.io/accounting.js/) (by [Sergey Gerasimov](https://github.com/gerich-home))
-* [Ace Cloud9 Editor](http://ace.ajax.org/) (by [Diullei Gomes](https://github.com/Diullei))
-* [Add To Home Screen] (http://cubiq.org/add-to-home-screen) (by [James Wilkins] (http://www.codeplex.com/site/users/view/jamesnw))
-* [AmCharts](http://www.amcharts.com/) (by [Covobonomo](https://github.com/covobonomo/))
-* [AngularFire](https://www.firebase.com/docs/angular/reference.html) (by [Dénes Harmath](https://github.com/thSoft))
-* [AngularJS](http://angularjs.org) (by [Diego Vilar](https://github.com/diegovilar)) ([wiki](https://github.com/borisyankov/DefinitelyTyped/wiki/AngularJS-Definitions-Usage-Notes))
-* [AngularUI](http://angular-ui.github.io/) (by [Michel Salib](https://github.com/michelsalib))
-* [Angular Protractor](https://github.com/angular/protractor) (by [Bill Armstrong](https://github.com/BillArmstrong))
-* [Angular Translate](http://pascalprecht.github.io/angular-translate/) (by [Michel Salib](https://github.com/michelsalib))
-* [Angular UI Bootstrap](http://angular-ui.github.io/bootstrap) (by [Brian Surowiec](https://github.com/xt0rted))
-* [AppFramework](http://app-framework-software.intel.com/) (by [Kyo Ago](https://github.com/kyo-ago))
-* [Arbiter](http://arbiterjs.com/) (by [Arash Shakery](https://github.com/arash16))
-* [asciify](https://github.com/olizilla/asciify) (by [Alan](http://alan.norbauer.com))
-* [assert](https://github.com/Jxck/assert) (by [vvakame](https://github.com/vvakame))
-* [async](https://github.com/caolan/async) (by [Boris Yankov](https://github.com/borisyankov))
-* [Atom](https://atom.io/) (by [vvakame](https://github.com/vvakame))
-* [Backbone.js](http://backbonejs.org/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Backbone Relational](http://backbonerelational.org/) (by [Eirik Hoem](https://github.com/eirikhm))
-* [BigScreen](http://brad.is/coding/BigScreen/) (by [Douglas Eichelberger](https://github.com/dduugg))
-* [Bluebird](https://github.com/petkaantonov/bluebird) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [Bootbox](https://github.com/makeusabrew/bootbox) (by [Vincent Bortone](https://github.com/vbortone/))
-* [Bootstrap](http://twitter.github.com/bootstrap/) (by [Boris Yankov](https://github.com/borisyankov))
-* [bootstrap-notify](https://github.com/Nijikokun/bootstrap-notify) (by [Blake Niemyjski](https://github.com/niemyjski))
-* [bootstrap.datepicker](https://github.com/eternicode/bootstrap-datepicker) (by [Boris Yankov](https://github.com/borisyankov))
-* [Box2DWeb](http://code.google.com/p/box2dweb/) (by [Josh Baldwin](https://github.com/jbaldwin/))
-* [Breeze](http://www.breezejs.com/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Browser Harness](https://github.com/scriby/browser-harness) (by [Chris Scribner](https://github.com/scriby))
-* [CasperJS](http://casperjs.org) (by [Jed Hunsaker](https://github.com/jedhunsaker))
-* [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) and [otiai10](https://github.com/otiai10))
-* [Chrome App](http://developer.chrome.com/apps/) (by [Adam Lay](https://github.com/AdamLay))
-* [CKEditor](https://github.com/ckeditor/ckeditor-dev) (by [Ondrej Sevcik](https://github.com/ondrejsevcik))
-* [Clone](https://github.com/pvorb/node-clone) (by [Kieran Simpson](https://github.com/kierans))
-* [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))
-* [configstore](http://github.com/yeoman/configstore) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [Cordova](http://cordova.apache.org) (by [Microsoft Open Technologies, Inc.](http://msopentech.com/))
-* [Couchbase / Couchnode](https://github.com/couchbase/couchnode) (by [Basarat Ali Syed](https://github.com/basarat))
-* [Crossfilter](https://github.com/square/crossfilter) (by [Schmulik Raskin](https://github.com/schmuli))
-* [crypto-js](https://code.google.com/p/crypto-js/) (by [Gia Bảo @ Sân Đình](https://github.com/giabao)). @see [cryptojs.d.ts repo](https://github.com/giabao/cryptojs.d.ts)
-* [d3.js](http://d3js.org/) (from TypeScript samples)
-* [dhtmlxGantt](http://dhtmlx.com/docs/products/dhtmlxGantt) (by [Maksim Kozhukh](http://github.com/mkozhukh))
-* [dhtmlxScheduler](http://dhtmlx.com/docs/products/dhtmlxScheduler) (by [Maksim Kozhukh](http://github.com/mkozhukh))
-* [diff](https://github.com/kpdecker/jsdiff) (by [vvakame](http://github.com/vvakame))
-* [Dock Spawn](http://dockspawn.com) (by [Drew Noakes](https://drewnoakes.com))
-* [docCookies](https://developer.mozilla.org/en-US/docs/Web/API/document.cookie) (by [Jon Egerton](https://github.com/jonegerton))
-* [domo](http://domo-js.com/) (by [Steve Fenton](https://github.com/Steve-Fenton))
-* [doT](https://github.com/olado/doT) (by [ZombieHunter](https://github.com/ZombieHunter))
-* [dust](http://linkedin.github.com/dustjs) (by [Marcelo Dezem](https://github.com/mdezem))
-* [EaselJS](http://www.createjs.com/#!/EaselJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
-* [EasyStar](http://easystarjs.com/) (by [Magnus Gustafsson](https://github.com/Borundin))
-* [ember.js](http://emberjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
-* [emissary](https://github.com/atom/emissary) (by [vvakame](https://github.com/vvakame))
-* [EpicEditor](http://epiceditor.com/) (by [Boris Yankov](https://github.com/borisyankov))
-* [ES6-Promises](https://github.com/jakearchibald/ES6-Promises) (by [François de Campredon](https://github.com/fdecampredon/))
-* [expect.js](https://github.com/LearnBoost/expect.js) (by [Teppei Sato](https://github.com/teppeis))
-* [expectations](https://github.com/spmason/expectations) (by [vvakame](https://github.com/vvakame))
-* [Express](http://expressjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Ext JS](http://www.sencha.com/products/extjs/) (by [Brian Kotek](https://github.com/brian428))
-* [Fabric.js](http://fabricjs.com/) (by [Oliver Klemencic](https://github.com/oklemencic/))
-* [Fancybox](http://fancybox.net/) (by [Boris Yankov](https://github.com/borisyankov))
-* [File API: Directories and System](http://www.w3.org/TR/file-system-api/) (by [Kon](http://phyzkit.net/))
-* [File API: Writer](http://www.w3.org/TR/file-writer-api/) (by [Kon](http://phyzkit.net/))
-* [Finite State Machine](https://github.com/jakesgordon/javascript-state-machine) (by [Boris Yankov](https://github.com/borisyankov))
-* [Firebase](https://www.firebase.com/docs/javascript/firebase) (by [Vincent Bortone](https://github.com/vbortone))
-* [Firefox](https://developer.mozilla.org/en-US/docs/Web/API) (by [vvakame](https://github.com/vvakame))
-* [FlexSlider](http://www.woothemes.com/flexslider/) (by [Diullei Gomes](https://github.com/Diullei))
-* [Flight by Twitter](http://flightjs.github.com/flight/) (by [Jonathan Hedrén](https://github.com/jonathanhedren))
-* [Foundation](http://foundation.zurb.com/) (by [Boris Yankov](https://github.com/borisyankov))
-* [FPSMeter](http://darsa.in/fpsmeter/) (by [Aaron Lampros](https://github.com/alampros))
-* [FullCalendar](http://arshaw.com/fullcalendar/) (by [Neil Stalker](https://github.com/nestalk))
-* [Gamepad](http://www.w3.org/TR/gamepad/) (by [Kon](http://phyzkit.net/))
-* [Giraffe](https://github.com/barc/backbone.giraffe) (by [Matt McCray](https://github.com/darthapo))
-* [glDatePicker](http://glad.github.com/glDatePicker/) (by [Dániel Tar](https://github.com/qcz))
-* [Glob](https://github.com/isaacs/node-glob) (by [vvakame](https://github.com/vvakame))
-* [GoJS](http://gojs.net/) (by [Barbara Duckworth](https://github.com/barbara42))
-* [Greasemonkey](http://www.greasespot.net/) (by [Kota Saito](https://github.com/kotas))
-* [GreenSock Animation Platform (GSAP)](http://www.greensock.com/get-started-js/) (by [Robert S.](https://github.com/codeBelt))
-* [Grunt JS](http://gruntjs.com/) (by [Jeff May](https://github.com/jeffmay), [Basarat Ali Syed](https://github.com/basarat) and [San Chen](https://github.com/bigsan))
-* [Google API Client](https://code.google.com/p/google-api-javascript-client/) (by [Frank M](https://github.com/sgtfrankieboy))
-* [Google App Engine Channel API](https://developers.google.com/appengine/docs/java/channel/javascript) (by [vvakame](https://github.com/vvakame))
-* [GoogleMaps](https://developers.google.com/maps/) (by [Esben Nepper](https://github.com/eNepper))
-* [GoogleMaps InfoBubble](http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/) (by [Johan Nilsson](https://github.com/dashue))
-* [Google Geolocation](https://code.google.com/p/geo-location-javascript/) (by [Vincent Bortone](https://github.com/vbortone))
-* [Google Page Speed Online API](https://developers.google.com/speed/pagespeed/) (by [Frank M](https://github.com/sgtfrankieboy))
-* [Google Translate API](https://developers.google.com/translate/) (by [Frank M](https://github.com/sgtfrankieboy))
-* [Google Url Shortener](https://developers.google.com/url-shortener/) (by [Frank M](https://github.com/sgtfrankieboy))
-* [Hammer.js](http://eightmedia.github.com/hammer.js/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Handlebars](http://handlebarsjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
-* [HashSet](http://www.timdown.co.uk/jshashtable/jshashset.html) (by [Sergey Gerasimov](https://github.com/gerich-home))
-* [Hashtable](http://www.timdown.co.uk/jshashtable/) (by [Sergey Gerasimov](https://github.com/gerich-home))
-* [HelloJS](http://adodson.com/hello.js) (by [Pavel Zika](https://github.com/PavelPZ))
-* [Highcharts](http://www.highcharts.com/) (by [damianog](https://github.com/damianog))
-* [Highland](http://highlandjs.org/) (by [Bart van der Schoor](https://github.com/Bartvds/))
-* [highlight.js](https://github.com/isagalaev/highlight.js) (by [Niklas Mollenhauer](https://github.com/nikeee))
-* [History.js](https://github.com/browserstate/history.js) (by [Boris Yankov](https://github.com/borisyankov))
-* [Html2Canvas.js](https://github.com/niklasvh/html2canvas/) (by [Richard Hepburn](https://github.com/rwhepburn))
-* [Humane.js](http://wavded.github.com/humane-js/) (by [John Vrbanac](https://github.com/jmvrbanac))
-* [i18next](http://i18next.com/) (by [Maarten Docter](https://github.com/mdocter))
-* [iCheck](http://damirfoy.com/iCheck/) (by [Dániel Tar](https://github.com/qcz))
-* [Impress.js](https://github.com/bartaz/impress.js) (by [Boris Yankov](https://github.com/borisyankov))
-* [iScroll](http://cubiq.org/iscroll-4) (by [Boris Yankov](https://github.com/borisyankov) and [Christiaan Rakowski](https://github.com/csrakowski))
-* [IxJS (Interactive extensions)](https://github.com/Reactive-Extensions/IxJS) (by [Igor Oleinikov](https://github.com/Igorbek))
-* [jake](https://github.com/mde/jake) (by [Kon](http://phyzkit.net/))
-* [Jasmine](http://pivotal.github.com/jasmine/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Jasmine-jQuery](https://github.com/velesin/jasmine-jquery) (by [Gregor Stamac](https://github.com/gstamac))
-* [JointJS](http://www.jointjs.com/) (by [Aidan Reel](http://github.com/areel))
-* [jQRangeSlider](http://ghusse.github.com/jQRangeSlider) (by [Dániel Tar](https://github.com/qcz))
-* [jQuery](http://jquery.com/) (from TypeScript samples)
-* [jQuery Mobile](http://jquerymobile.com) (by [Boris Yankov](https://github.com/borisyankov))
-* [jQuery UI](http://jqueryui.com/) (by [Boris Yankov](https://github.com/borisyankov))
-* [jQuery.Address](https://github.com/asual/jquery-address) (by [Martin Duparc](https://github.com/martinduparc/))
-* [jQuery.areYouSure](https://github.com/codedance/jquery.AreYouSure) (by [Jon Egerton](https://github.com/jonegerton))
-* [jQuery.autosize](http://www.jacklmoore.com/autosize/) (by [Jack Moore](http://www.jacklmoore.com/))
-* [jQuery.BBQ](http://benalman.com/projects/jquery-bbq-plugin/) (by [Adam R. Smith](https://github.com/sunetos))
-* [jQuery.CLEditor](http://premiumsoftware.net/CLEditor) (by [Jeffery Grajkowski](https://github.com/pushplay))
-* [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.contextMenu](http://medialize.github.com/jQuery-contextMenu/) (by [Natan Vivo](https://github.com/nvivo/))
-* [jQuery.Cookie](https://github.com/carhartl/jquery-cookie) (by [Roy Goode](https://github.com/RoyGoode))
-* [jQuery.Cycle](http://jquery.malsup.com/cycle/) (by [François Guillot](http://fguillot.developpez.com/))
-* [jQuery.Cycle2](http://jquery.malsup.com/cycle2/) (by [Donny Nadolny](https://github.com/dnadolny))
-* [jQuery.dataTables](http://www.datatables.net) (by [Armin Sander](https://github.com/pragmatrix))
-* [jQuery.datetimepicker](http://trentrichardson.com/examples/timepicker/) (by [Doug McDonald](https://github.com/dougajmcdonald))
-* [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çois Guillot](http://fguillot.developpez.com/))
-* [jQuery.Globalize](https://github.com/jquery/globalize) (by [Boris Yankov](https://github.com/borisyankov))
-* [jQuery.gridster](http://gridster.net) (by [Josh Baldwin](https://github.com/jbaldwin/gridster.d.ts))
-* [jQuery.jNotify](http://jnotify.codeplex.com) (by [James Curran](https://github.com/jamescurran/))
-* [jQuery.joyride](http://zurb.com/playground/jquery-joyride-feature-tour-plugin) (by [Vincent Bortone](https://github.com/vbortone))
-* [jQuery.jSignature] (https://github.com/willowsystems/jSignature) (by [Patrick Magee](https://github.com/pjmagee))
-* [jQuery.noty](http://needim.github.io/noty/) (by [Aaron King](https://github.com/kingdango/))
-* [jQuery.pickadate](https://github.com/amsul/pickadate.js) (by [Theodore Brown](https://github.com/theodorejb))
-* [jQuery.payment](http://needim.github.io/noty/) (by [Eric J. Smith](https://github.com/ejsmith/))
-* [jQuery.pnotify](http://sciactive.github.io/pnotify/ (by [David Sichau](https://github.com/DavidSichau/))
-* [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.superLink](http://james.padolsey.com/demos/plugins/jQuery/superLink/superlink.jquery.js) (by [Blake Niemyjski](https://github.com/niemyjski))
-* [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.Timer](http://jchavannes.com/jquery-timer/demo) (by [Joshua Strobl](https://github.com/JoshStrobl))
-* [jQuery.TinyCarousel](http://baijs.nl/tinycarousel/) (by [Christiaan Rakowski](https://github.com/csrakowski))
-* [jQuery.TinyScrollbar](http://baijs.nl/tinyscrollbar/) (by [Christiaan Rakowski](https://github.com/csrakowski))
-* [jQuery.tooltipster] (https://github.com/iamceege/tooltipster) (by [Patrick Magee](https://github.com/pjmagee))
-* [jQuery.Transit](http://ricostacruz.com/jquery.transit/) (by [MrBigDog2U](https://github.com/MrBigDog2U))
-* [jQuery.Validation](http://bassistance.de/jquery-plugins/jquery-plugin-validation/) (by [Boris Yankov](https://github.com/borisyankov))
-* [jQuery.Watermark](http://jquery-watermark.googlecode.com) (by [Anwar Javed](https://github.com/anwarjaved))
-* [jQuery.base64](https://github.com/yatt/jquery.base64) (by [Shinya Mochizuki](https://github.com/enrapt-mochizuki))
-* [js-git](https://github.com/creationix/js-git) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [js-yaml](https://github.com/nodeca/js-yaml) (by [Bart van der Schoor](https://github.com/Bartvds/))
-* [jScrollPane](http://jscrollpane.kelvinluck.com) (by [Dániel Tar](https://github.com/qcz))
-* [JSDeferred](http://cho45.stfuawsc.com/jsdeferred/) (by [Daisuke Mino](https://github.com/minodisk))
-* [JSONEditorOnline](https://github.com/josdejong/jsoneditoronline) (by [Vincent Bortone](https://github.com/vbortone/))
-* [JSON-Pointer](https://www.npmjs.org/package/json-pointer) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [JsRender](http://www.jsviews.com/#jsrender) (by [Kensuke MATSUZAKI](https://github.com/zakki))
-* [jStorage](http://www.jstorage.info/) (by [Danil Flores](https://github.com/dflor003/))
-* [JWPlayer](http://developer.longtailvideo.com/trac/) (by [Martin Duparc](https://github.com/martinduparc/))
-* [KeyboardJS](https://github.com/RobertWHurst/KeyboardJS) (by [Vincent Bortone](https://github.com/vbortone/))
-* [KineticJS](http://kineticjs.com/) (by [Basarat Ali Syed](https://github.com/basarat))
-* [Knockback](http://kmalakoff.github.com/knockback/) (by [Marcel Binot](https://github.com/docgit))
-* [Knockout.js](http://knockoutjs.com/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Knockout.DeferredUpdates](https://github.com/mbest/knockout-deferred-updates) (by [Sebastián Galiano](https://github.com/sgaliano))
-* [Knockout.ES5](https://github.com/SteveSanderson/knockout-es5) (by [Sebastián Galiano](https://github.com/sgaliano))
-* [Knockout.Mapper](https://github.com/LucasLorentz/knockout.mapper) (by [Brandon Meyer](https://github.com/BMeyerKC))
-* [Knockout.Mapping](https://github.com/SteveSanderson/knockout.mapping) (by [Boris Yankov](https://github.com/borisyankov))
-* [Knockout.Postbox](https://github.com/rniemeyer/knockout-postbox) (by [Judah Gabriel Himango](https://github.com/JudahGabriel))
-* [Knockout.Rx](https://github.com/Igorbek/knockout.rx) (by [Igor Oleinikov](https://github.com/Igorbek))
-* [Knockout.Validation](https://github.com/ericmbarnard/Knockout-Validation) (by [Dan Ludwig](https://github.com/danludwig))
-* [Knockout.Viewmodel](http://coderenaissance.github.com/knockout.viewmodel/) (by [Oisin Grehan](https://github.com/oising))
-* [ko.editables](http://romanych.github.com/ko.editables/) (by [Oisin Grehan](https://github.com/oising))
-* [KoLite](https://github.com/CodeSeven/kolite) (by [Boris Yankov](https://github.com/borisyankov))
-* [Lazy.js](http://danieltao.com/lazy.js/) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [Leaflet](https://github.com/Leaflet/Leaflet) (by [Vladimir](https://github.com/rgripper))
-* [Libxmljs](https://github.com/polotek/libxmljs) (by [François de Campredon](https://github.com/fdecampredon))
-* [ladda](https://github.com/hakimel/Ladda) (by [Danil Flores](https://github.com/dflor003))
-* [Levelup](https://github.com/rvagg/node-levelup) (by [Bret Little](https://github.com/blittle))
-* [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))
-* [localForage](https://github.com/mozilla/localForage) (by [david pichsenmeister](https://github.com/3x14159265))
-* [Lodash](http://lodash.com/) (by [Brian Zengel](https://github.com/bczengel))
-* [Logg](https://github.com/dpup/node-logg) (by [Bret Little](https://github.com/blittle))
-* [Marked](https://github.com/chjj/marked) (by [William Orr](https://github.com/worr))
-* [mCustomScrollbar](https://github.com/malihu/malihu-custom-scrollbar-plugin) (by [Sarah Williams](https://github.com/flurg))
-* [Meteor](https://www.meteor.com) (by [Dave Allen](https://github.com/fullflavedave))
-* [Microsoft Live Connect](http://msdn.microsoft.com/en-us/library/live/hh243643.aspx) (by [John Vilk](https://github.com/jvilk))
-* [Minimatch](https://github.com/isaacs/minimatch) (by [vvakame](https://github.com/vvakame))
-* [minimist](https://github.com/substack/minimist) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [mixto](https://github.com/atom/mixto) (by [vvakame](https://github.com/vvakame))
-* [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))
-* [MongoDB](http://mongodb.github.io/node-mongodb-native/) (from TypeScript samples, updated by [Niklas Mollenhauer](https://github.com/nikeee))
-* [Mousetrap](http://craig.is/killing/mice) (by [Dániel Tar](https://github.com/qcz))
-* [msgpack.js](https://github.com/uupaa/msgpack.js) (by [Shinya Mochizuki](https://github.com/enrapt-mochizuki))
-* [Mustache.js](https://github.com/janl/mustache.js) (by [Boris Yankov](https://github.com/borisyankov))
-* [Node.js](http://nodejs.org/) (from TypeScript samples)
-* [node_redis](https://github.com/mranney/node_redis) (by [Boris Yankov](https://github.com/borisyankov))
-* [node-ffi](https://github.com/rbranson/node-ffi) (by [Paul Loyd](https://github.com/loyd))
-* [node-git](https://github.com/christkv/node-git) (by [vvakame](https://github.com/vvakame))
-* [node_zeromq](https://github.com/JustinTulloss/zeromq.node) (by [Dave McKeown](https://github.com/davemckeown))
-* [node-sqlserver](https://github.com/WindowsAzure/node-sqlserver) (by [Boris Yankov](https://github.com/borisyankov))
-* [notify.js](https://github.com/alexgibson/notify.js) (by [soundTricker](https://github.com/soundTricker))
-* [NProgress](https://github.com/rstacruz/nprogress) (by [Judah Gabriel Himango](https://github.com/judahgabriel))
-* [Numeral.js](https://github.com/adamwdraper/Numeral-js) (by [Vincent Bortone](https://github.com/vbortone/))
-* [OpenLayers](https://github.com/openlayers/openlayers) (by [Ilya Bolkhovsky](https://github.com/bolhovsky/))
-* [Passport](http://passportjs.org/) (by [Hiroki Horiuchi](https://github.com/horiuchi/))
-* [pathwatcher](http://atom.github.io/node-pathwatcher/) (by [vvakame](https://github.com/vvakame))
-* [Parallel.js](https://github.com/adambom/parallel.js) (by [Josh Baldwin](https://github.com/jbaldwin))
-* [Parsimmon](https://github.com/jayferd/parsimmon) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [PDF.js](https://github.com/mozilla/pdf.js) (by [Josh Baldwin](https://github.com/jbaldwin))
-* [PEG.js](http://pegjs.majda.cz/) (by [vvakame](https://github.com/vvakame))
-* [Persona](http://www.mozilla.org/en-US/persona) (by [James Frasca](https://github.com/Nycto))
-* [PhantomJS](http://phantomjs.org) (by [Jed Hunsaker](https://github.com/jedhunsaker))
-* [PhoneGap](http://phonegap.com) (by [Boris Yankov](https://github.com/borisyankov))
-* [PixiJS](https://github.com/GoodBoyDigital/pixi.js) (by [Pedro Casaubon](https://github.com/xperiments))
-* [Platform](https://github.com/bestiejs/platform.js) (by [Jake Hickman](https://github.com/JakeH))
-* [PouchDB](http://pouchdb.com) (by [Bill Sears](https://github.com/MrBigDog2U/))
-* [PreloadJS](http://www.createjs.com/#!/PreloadJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
-* [Q](https://github.com/kriskowal/q) (by Barrie Nemetchek, Andrew Gaspar)
-* [Q-io](https://github.com/kriskowal/q-io) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [QUnit](http://qunitjs.com/) (by [Diullei Gomes](https://github.com/Diullei))
-* [Raven.js](https://github.com/getsentry/raven-js) (by [Santi Albo](https://github.com/santialbo))
-* [Rickshaw](http://code.shutterstock.com/rickshaw/) (by [Blake Niemyjski](https://github.com/niemyjski))
-* [Riot.js](https://github.com/moot/riotjs) (by [vvakame](https://github.com/vvakame))
-* [Restify](https://github.com/mcavage/node-restify) (by [Bret Little](https://github.com/blittle))
-* [Royalslider](http://dimsemenov.com/plugins/royal-slider/) (by [Christiaan Rakowski](https://github.com/csrakowski))
-* [Rx.js](http://rx.codeplex.com/) (by [gsino](http://www.codeplex.com/site/users/view/gsino), [Igor Oleinikov](https://github.com/Igorbek), [Carl de Billy](http://carl.debilly.net/), [zoetrope](https://github.com/zoetrope))
-* [Raphael](http://raphaeljs.com/) (by [CheCoxshall](https://github.com/CheCoxshall))
-* [Restangular](https://github.com/mgonto/restangular/) (by [Boris Yankov](https://github.com/borisyankov))
-* [require.js](http://requirejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/))
-* [Sammy.js](http://sammyjs.org/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Select2](http://ivaynberg.github.com/select2/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Selenium WebDriverJS](https://code.google.com/p/selenium/) (by [Bill Armstrong](https://github.com/BillArmstrong))
-* [Semver](https://github.com/isaacs/node-semver) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [Sencha Touch](http://www.sencha.com/products/touch/) (by [Brian Kotek](https://github.com/brian428))
-* [SharePoint](http://sptypescript.codeplex.com) (by [Stanislav Vyshchepan](http://gandjustas.blogspot.ru) and [Andrey Markeev](http://markeev.com))
-* [SignalR](http://www.asp.net/signalr) (by [Boris Yankov](https://github.com/borisyankov))
-* [simple-cw-node](https://github.com/astronaughts/simple-cw-node) (by [vvakame](https://github.com/vvakame))
-* [Sinon](http://sinonjs.org/) (by [William Sears](https://github.com/mrbigdog2u))
-* [SlickGrid](https://github.com/mleibman/SlickGrid) (by [Josh Baldwin](https://github.com/jbaldwin))
-* [smoothie](https://github.com/joewalnes/smoothie) (by [Mike H. Hawley](https://github.com/mikehhawley) and [Drew Noakes](https://drewnoakes.com))
-* [socket.io](http://socket.io) (by [William Orr](https://github.com/worr))
-* [socket.io-client](http://socket.io) (by [Maido Kaara](https://github.com/v3rm0n))
-* [SockJS](https://github.com/sockjs/sockjs-client) (by [Emil Ivanov](https://github.com/vladev))
-* [SoundJS](http://www.createjs.com/#!/SoundJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
-* [Spin](http://fgnass.github.com/spin.js/) (by [Boris Yankov](https://github.com/borisyankov))
-* [stripe](https://stripe.com/) (by [Eric J. Smith](https://github.com/ejsmith/))
-* [Store.js](https://github.com/marcuswestin/store.js/) (by [Vincent Bortone](https://github.com/vbortone))
-* [Sugar](http://sugarjs.com/) (by [Josh Baldwin](https://github.com/jbaldwin/))
-* [Swiper](http://www.idangero.us/sliders/swiper) (by [Sebastián Galiano](https://github.com/sgaliano))
-* [SwipeView](http://cubiq.org/swipeview) (by [Boris Yankov](https://github.com/borisyankov))
-* [TV4](https://github.com/geraintluff/tv4) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [Tags Manager](http://welldonethings.com/tags/manager) (by [Vincent Bortone](https://github.com/vbortone))
-* [Teechart](http://www.steema.com) (by [Steema](http://www.steema.com))
-* [three.js](http://mrdoob.github.com/three.js/) (by [Kon](http://phyzkit.net/))
-* [Toastr](https://github.com/CodeSeven/toastr) (by [Boris Yankov](https://github.com/borisyankov))
-* [trunk8](https://github.com/rviscomi/trunk8) (by [Blake Niemyjski](https://github.com/niemyjski))
-* [TweenJS](http://www.createjs.com/#!/TweenJS) (by [Pedro Ferreira](https://bitbucket.org/drk4))
-* [tween.js](https://github.com/sole/tween.js/) (by [Adam R. Smith](https://github.com/sunetos))
-* [twitter-bootstrap-wizard](https://github.com/VinceG/twitter-bootstrap-wizard) (by [Blake Niemyjski](https://github.com/niemyjski))
-* [Twitter Typeahead](http://twitter.github.io/typeahead.js) (by [Ivaylo Gochkov](https://github.com/igochkov))
-* [Ubuntu Unity Web API](https://launchpad.net/libunity-webapps) (by [John Vrbanac](https://github.com/jmvrbanac))
-* [Underscore.js](http://underscorejs.org/) (by [Boris Yankov](https://github.com/borisyankov))
-* [Underscore.js (Typed)](http://underscorejs.org/) (by [Josh Baldwin](https://github.com/jbaldwin/))
-* [Underscore-ko.js](https://github.com/kamranayub/UnderscoreKO) (by [Maurits Elbers](https://github.com/MagicMau))
-* [universal-analytics](https://github.com/peaksandpies/universal-analytics) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [update-notifier](https://github.com/yeoman/update-notifier) (by [vvakame](https://github.com/vvakame))
-* [uri-templates](https://github.com/geraintluff/uri-templates) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [urlrouter](https://github.com/fengmk2/urlrouter) (by [Carlos Ballesteros Velasco](https://github.com/soywiz))
-* [UUID.js](https://github.com/LiosK/UUID.js) (by [Jason Jarrett](https://github.com/staxmanade))
-* [Valerie](https://github.com/davewatts/valerie) (by [Howard Richards](https://github.com/conficient))
-* [Viewporter](https://github.com/zynga/viewporter) (by [Boris Yankov](https://github.com/borisyankov))
-* [Vimeo](http://developer.vimeo.com/player/js-api) (by [Daz Wilkin](https://github.com/DazWilkin/))
-* [WebRTC](http://dev.w3.org/2011/webrtc/editor/webrtc.html) (by [Ken Smith](https://github.com/smithkl42))
-* [websocket](https://github.com/Worlize/WebSocket-Node) (by [Paul Loyd](https://github.com/loyd))
-* [WinJS](http://msdn.microsoft.com/en-us/library/windows/apps/br229773.aspx) (from TypeScript samples)
-* [WinRT](http://msdn.microsoft.com/en-us/library/windows/apps/br211377.aspx) (from TypeScript samples)
-* [ws](http://einaros.github.io/ws/) (by [Paul Loyd](https://github.com/loyd))
-* [XRegExp](http://xregexp.com/) (by [Bart van der Schoor](https://github.com/Bartvds))
-* [YouTube](https://developers.google.com/youtube/) (by [Daz Wilkin](https://github.com/DazWilkin/))
-* [YouTube Analytics API](https://developers.google.com/youtube/analytics/) (by [Frank M](https://github.com/sgtfrankieboy))
-* [YouTube Data API](https://developers.google.com/youtube/v3/) (by [Frank M](https://github.com/sgtfrankieboy/))
-* [Zepto.js](http://zeptojs.com/) (by [Josh Baldwin](https://github.com/jbaldwin))
-* [Zynga Scroller](https://github.com/zynga/scroller) (by [Boris Yankov](https://github.com/borisyankov))
-* [ZeroClipboard](https://github.com/jonrohan/ZeroClipboard) (by [Eric J. Smith](https://github.com/ejsmith))
+## List of definitions
-Requested Definitions
----------------------
-Here is an updated list of [definitions people have requested](https://github.com/borisyankov/DefinitelyTyped/issues?labels=Definition%3ARequest)
+* See [CONTRIBUTORS.md](CONTRIBUTORS.md)
+
+## Requested definitions
+
+Here is an updated list of [definitions people have requested](https://github.com/borisyankov/DefinitelyTyped/issues?labels=Definition%3ARequest).
+
+## Licence
+
+This project is licensed under the MIT license.
+
+Copyrights on the definition files are respective of each contributor listed at the beginning of each definition file.
+
+[](https://github.com/igrigorik/ga-beacon)
\ No newline at end of file
diff --git a/_infrastructure/runner.js b/_infrastructure/runner.js
new file mode 100644
index 0000000000..b9b9446ecf
--- /dev/null
+++ b/_infrastructure/runner.js
@@ -0,0 +1 @@
+require('definition-tester');
diff --git a/_infrastructure/tests/_ref.d.ts b/_infrastructure/tests/_ref.d.ts
deleted file mode 100644
index 5a0809f3b8..0000000000
--- a/_infrastructure/tests/_ref.d.ts
+++ /dev/null
@@ -1 +0,0 @@
-///
diff --git a/_infrastructure/tests/compile-runner.bat b/_infrastructure/tests/compile-runner.bat
deleted file mode 100644
index 49f737c5d2..0000000000
--- a/_infrastructure/tests/compile-runner.bat
+++ /dev/null
@@ -1 +0,0 @@
-tsc runner.ts --target ES5 --out runner.js --module commonjs --sourcemap
diff --git a/_infrastructure/tests/runner.js b/_infrastructure/tests/runner.js
deleted file mode 100644
index 171efe87dd..0000000000
--- a/_infrastructure/tests/runner.js
+++ /dev/null
@@ -1,1321 +0,0 @@
-var DT;
-(function (DT) {
- 'use strict';
-
- var Promise = require('bluebird');
- var nodeExec = require('child_process').exec;
-
- var ExecResult = (function () {
- function ExecResult() {
- this.stdout = '';
- this.stderr = '';
- }
- return ExecResult;
- })();
- DT.ExecResult = ExecResult;
-
- function exec(filename, cmdLineArgs) {
- return new Promise(function (resolve) {
- var result = new ExecResult();
- result.exitCode = null;
-
- var cmdLine = filename + ' ' + cmdLineArgs.join(' ');
-
- nodeExec(cmdLine, { maxBuffer: 1 * 1024 * 1024 }, function (error, stdout, stderr) {
- result.error = error;
- result.stdout = stdout;
- result.stderr = stderr;
- result.exitCode = error ? error.code : 0;
- resolve(result);
- });
- });
- }
- DT.exec = exec;
-})(DT || (DT = {}));
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- var path = require('path');
-
- /////////////////////////////////
- // Given a document root + ts file pattern this class returns:
- // all the TS files OR just tests OR just definition files
- /////////////////////////////////
- var File = (function () {
- function File(baseDir, filePathWithName) {
- this.references = [];
- // why choose?
- this.baseDir = baseDir;
- this.filePathWithName = filePathWithName;
- this.ext = path.extname(this.filePathWithName);
- this.file = path.basename(this.filePathWithName, this.ext);
- this.dir = path.dirname(this.filePathWithName);
- this.fullPath = path.join(this.baseDir, this.dir, this.file + this.ext);
- // lock it (shallow) (needs `use strict` in each file to work)
- // Object.freeze(this);
- }
- File.prototype.toString = function () {
- return '[File ' + this.filePathWithName + ']';
- };
- return File;
- })();
- DT.File = File;
-})(DT || (DT = {}));
-///
-///
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- var fs = require('fs');
-
- var Promise = require('bluebird');
-
- var Tsc = (function () {
- function Tsc() {
- }
- Tsc.run = function (tsfile, options) {
- var tscPath;
- return new Promise.attempt(function () {
- options = options || {};
- options.tscVersion = options.tscVersion || DT.DEFAULT_TSC_VERSION;
- if (typeof options.checkNoImplicitAny === 'undefined') {
- options.checkNoImplicitAny = true;
- }
- if (typeof options.useTscParams === 'undefined') {
- options.useTscParams = true;
- }
- return DT.fileExists(tsfile);
- }).then(function (exists) {
- if (!exists) {
- throw new Error(tsfile + ' not exists');
- }
- tscPath = './_infrastructure/tests/typescript/' + options.tscVersion + '/tsc.js';
- return DT.fileExists(tscPath);
- }).then(function (exists) {
- if (!exists) {
- throw new Error(tscPath + ' is not exists');
- }
- return DT.fileExists(tsfile + '.tscparams');
- }).then(function (exists) {
- var command = 'node ' + tscPath + ' --module commonjs ';
- if (options.useTscParams && exists) {
- command += '@' + tsfile + '.tscparams';
- } else if (options.checkNoImplicitAny) {
- command += '--noImplicitAny';
- }
- return DT.exec(command, [tsfile]);
- });
- };
- return Tsc;
- })();
- DT.Tsc = Tsc;
-})(DT || (DT = {}));
-///
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- /////////////////////////////////
- // Timer.start starts a timer
- // Timer.end stops the timer and sets asString to the pretty print value
- /////////////////////////////////
- var Timer = (function () {
- function Timer() {
- this.time = 0;
- this.asString = '';
- }
- Timer.prototype.start = function () {
- this.time = 0;
- this.startTime = this.now();
- this.asString = '';
- };
-
- Timer.prototype.now = function () {
- return Date.now();
- };
-
- Timer.prototype.end = function () {
- this.time = (this.now() - this.startTime) / 1000;
- this.asString = Timer.prettyDate(this.startTime, this.now());
- };
-
- Timer.prettyDate = function (date1, date2) {
- var diff = ((date2 - date1) / 1000);
- var day_diff = Math.floor(diff / 86400);
-
- if (isNaN(day_diff) || day_diff < 0 || day_diff >= 31) {
- return null;
- }
-
- return (day_diff == 0 && (diff < 60 && (diff + ' seconds') || diff < 120 && '1 minute' || diff < 3600 && Math.floor(diff / 60) + ' minutes' || diff < 7200 && '1 hour' || diff < 86400 && Math.floor(diff / 3600) + ' hours') || day_diff == 1 && 'Yesterday' || day_diff < 7 && day_diff + ' days' || day_diff < 31 && Math.ceil(day_diff / 7) + ' weeks');
- };
- return Timer;
- })();
- DT.Timer = Timer;
-})(DT || (DT = {}));
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- var fs = require('fs');
- var Lazy = require('lazy.js');
- var Promise = require('bluebird');
-
- var referenceTagExp = //g;
-
- function endsWith(str, suffix) {
- return str.indexOf(suffix, str.length - suffix.length) !== -1;
- }
- DT.endsWith = endsWith;
-
- function extractReferenceTags(source) {
- var ret = [];
- var match;
-
- if (!referenceTagExp.global) {
- throw new Error('referenceTagExp RegExp must have global flag');
- }
- referenceTagExp.lastIndex = 0;
-
- while ((match = referenceTagExp.exec(source))) {
- if (match.length > 0 && match[1].length > 0) {
- ret.push(match[1]);
- }
- }
- return ret;
- }
- DT.extractReferenceTags = extractReferenceTags;
-
- function fileExists(target) {
- return new Promise(function (resolve, reject) {
- fs.exists(target, function (bool) {
- resolve(bool);
- });
- });
- }
- DT.fileExists = fileExists;
-})(DT || (DT = {}));
-///
-///
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- var fs = require('fs');
- var path = require('path');
- var glob = require('glob');
- var Lazy = require('lazy.js');
- var Promise = require('bluebird');
-
- var readFile = Promise.promisify(fs.readFile);
-
- /////////////////////////////////
- // Track all files in the repo: map full path to File objects
- /////////////////////////////////
- var FileIndex = (function () {
- function FileIndex(runner, options) {
- this.runner = runner;
- this.options = options;
- }
- FileIndex.prototype.hasFile = function (target) {
- return target in this.fileMap;
- };
-
- FileIndex.prototype.getFile = function (target) {
- if (target in this.fileMap) {
- return this.fileMap[target];
- }
- return null;
- };
-
- FileIndex.prototype.setFile = function (file) {
- if (file.fullPath in this.fileMap) {
- throw new Error('cannot overwrite file');
- }
- this.fileMap[file.fullPath] = file;
- };
-
- FileIndex.prototype.readIndex = function () {
- var _this = this;
- this.fileMap = Object.create(null);
-
- return Promise.promisify(glob).call(glob, '**/*.ts', {
- cwd: this.runner.dtPath
- }).then(function (filesNames) {
- _this.files = Lazy(filesNames).filter(function (fileName) {
- return _this.runner.checkAcceptFile(fileName);
- }).map(function (fileName) {
- var file = new DT.File(_this.runner.dtPath, fileName);
- _this.fileMap[file.fullPath] = file;
- return file;
- }).toArray();
- });
- };
-
- FileIndex.prototype.collectDiff = function (changes) {
- var _this = this;
- return new Promise(function (resolve) {
- // filter changes and bake map for easy lookup
- _this.changed = Object.create(null);
- _this.removed = Object.create(null);
-
- Lazy(changes).filter(function (full) {
- return _this.runner.checkAcceptFile(full);
- }).uniq().each(function (local) {
- var full = path.resolve(_this.runner.dtPath, local);
- var file = _this.getFile(full);
- if (!file) {
- // TODO figure out what to do here
- // what does it mean? deleted?ss
- file = new DT.File(_this.runner.dtPath, local);
- _this.setFile(file);
- _this.removed[full] = file;
- // console.log('not in index? %', file.fullPath);
- } else {
- _this.changed[full] = file;
- }
- });
-
- // console.log('changed:\n' + Object.keys(this.changed).join('\n'));
- // console.log('removed:\n' + Object.keys(this.removed).join('\n'));
- resolve();
- });
- };
-
- FileIndex.prototype.parseFiles = function () {
- var _this = this;
- return this.loadReferences(this.files).then(function () {
- return _this.getMissingReferences();
- });
- };
-
- FileIndex.prototype.getMissingReferences = function () {
- var _this = this;
- return Promise.attempt(function () {
- _this.missing = Object.create(null);
- Lazy(_this.removed).keys().each(function (removed) {
- if (removed in _this.refMap) {
- _this.missing[removed] = _this.refMap[removed];
- }
- });
- });
- };
-
- FileIndex.prototype.loadReferences = function (files) {
- var _this = this;
- return new Promise(function (resolve, reject) {
- var queue = files.slice(0);
- var active = [];
- var max = 50;
- var next = function () {
- if (queue.length === 0 && active.length === 0) {
- resolve();
- return;
- }
-
- while (queue.length > 0 && active.length < max) {
- var file = queue.pop();
- active.push(file);
- _this.parseFile(file).then(function (file) {
- active.splice(active.indexOf(file), 1);
- next();
- }).catch(function (err) {
- queue = [];
- active = [];
- reject(err);
- });
- }
- };
- next();
- }).then(function () {
- // bake reverse reference map (referenced to referrers)
- _this.refMap = Object.create(null);
-
- Lazy(files).each(function (file) {
- Lazy(file.references).each(function (ref) {
- if (ref.fullPath in _this.refMap) {
- _this.refMap[ref.fullPath].push(file);
- } else {
- _this.refMap[ref.fullPath] = [file];
- }
- });
- });
- });
- };
-
- // TODO replace with a stream?
- FileIndex.prototype.parseFile = function (file) {
- var _this = this;
- return readFile(file.filePathWithName, {
- encoding: 'utf8',
- flag: 'r'
- }).then(function (content) {
- file.references = Lazy(DT.extractReferenceTags(content)).map(function (ref) {
- return path.resolve(path.dirname(file.fullPath), ref);
- }).reduce(function (memo, ref) {
- if (ref in _this.fileMap) {
- memo.push(_this.fileMap[ref]);
- } else {
- console.log('not mapped? -> ' + ref);
- }
- return memo;
- }, []);
-
- // return the object
- return file;
- });
- };
-
- FileIndex.prototype.collectTargets = function () {
- var _this = this;
- return new Promise(function (resolve) {
- // map out files linked to changes
- // - queue holds files touched by a change
- // - pre-fill with actually changed files
- // - loop queue, if current not seen:
- // - add to result
- // - from refMap queue all files referring to current
- var result = Object.create(null);
- var queue = Lazy(_this.changed).values().toArray();
-
- while (queue.length > 0) {
- var next = queue.shift();
- var fp = next.fullPath;
- if (result[fp]) {
- continue;
- }
- result[fp] = next;
- if (fp in _this.refMap) {
- var arr = _this.refMap[fp];
- for (var i = 0, ii = arr.length; i < ii; i++) {
- // just add it and skip expensive checks
- queue.push(arr[i]);
- }
- }
- }
- resolve(Lazy(result).values().toArray());
- });
- };
- return FileIndex;
- })();
- DT.FileIndex = FileIndex;
-})(DT || (DT = {}));
-///
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- var fs = require('fs');
- var path = require('path');
- var Git = require('git-wrapper');
- var Promise = require('bluebird');
-
- var GitChanges = (function () {
- function GitChanges(runner) {
- this.runner = runner;
- this.options = {};
- var dir = path.join(this.runner.dtPath, '.git');
- if (!fs.existsSync(dir)) {
- throw new Error('cannot locate git-dir: ' + dir);
- }
- this.options['git-dir'] = dir;
-
- this.git = new Git(this.options);
- this.git.exec = Promise.promisify(this.git.exec);
- }
- GitChanges.prototype.readChanges = function () {
- var opts = {};
- var args = ['--name-only HEAD~1'];
- return this.git.exec('diff', opts, args).then(function (msg) {
- return msg.replace(/^\s+/, '').replace(/\s+$/, '').split(/\r?\n/g);
- });
- };
- return GitChanges;
- })();
- DT.GitChanges = GitChanges;
-})(DT || (DT = {}));
-///
-///
-var DT;
-(function (DT) {
- var os = require('os');
-
- /////////////////////////////////
- // All the common things that we print are functions of this class
- /////////////////////////////////
- var Print = (function () {
- function Print(version) {
- this.version = version;
- this.WIDTH = 77;
- }
- Print.prototype.init = function (typings, tests, tsFiles) {
- this.typings = typings;
- this.tests = tests;
- this.tsFiles = tsFiles;
- };
-
- Print.prototype.out = function (s) {
- process.stdout.write(s);
- return this;
- };
-
- Print.prototype.repeat = function (s, times) {
- return new Array(times + 1).join(s);
- };
-
- Print.prototype.printChangeHeader = function () {
- this.out('=============================================================================\n');
- this.out(' \33[36m\33[1mDefinitelyTyped Diff Detector 0.1.0\33[0m \n');
- this.out('=============================================================================\n');
- };
-
- Print.prototype.printHeader = function (options) {
- var totalMem = Math.round(os.totalmem() / 1024 / 1024) + ' mb';
- var freemem = Math.round(os.freemem() / 1024 / 1024) + ' mb';
-
- this.out('=============================================================================\n');
- this.out(' \33[36m\33[1mDefinitelyTyped Test Runner 0.5.0\33[0m\n');
- this.out('=============================================================================\n');
- this.out(' \33[36m\33[1mTypescript version:\33[0m ' + this.version + '\n');
- this.out(' \33[36m\33[1mTypings :\33[0m ' + this.typings + '\n');
- this.out(' \33[36m\33[1mTests :\33[0m ' + this.tests + '\n');
- this.out(' \33[36m\33[1mTypeScript files :\33[0m ' + this.tsFiles + '\n');
- this.out(' \33[36m\33[1mTotal Memory :\33[0m ' + totalMem + '\n');
- this.out(' \33[36m\33[1mFree Memory :\33[0m ' + freemem + '\n');
- this.out(' \33[36m\33[1mCores :\33[0m ' + os.cpus().length + '\n');
- this.out(' \33[36m\33[1mConcurrent :\33[0m ' + options.concurrent + '\n');
- };
-
- Print.prototype.printSuiteHeader = function (title) {
- var left = Math.floor((this.WIDTH - title.length) / 2) - 1;
- var right = Math.ceil((this.WIDTH - title.length) / 2) - 1;
- this.out(this.repeat('=', left)).out(' \33[34m\33[1m');
- this.out(title);
- this.out('\33[0m ').out(this.repeat('=', right)).printBreak();
- };
-
- Print.prototype.printDiv = function () {
- this.out('-----------------------------------------------------------------------------\n');
- };
-
- Print.prototype.printBoldDiv = function () {
- this.out('=============================================================================\n');
- };
-
- Print.prototype.printErrorsHeader = function () {
- this.out('=============================================================================\n');
- this.out(' \33[34m\33[1mErrors in files\33[0m \n');
- this.out('=============================================================================\n');
- };
-
- Print.prototype.printErrorsForFile = function (testResult) {
- this.out('----------------- For file:' + testResult.targetFile.filePathWithName);
- this.printBreak().out(testResult.stderr).printBreak();
- };
-
- Print.prototype.printBreak = function () {
- this.out('\n');
- return this;
- };
-
- Print.prototype.clearCurrentLine = function () {
- this.out('\r\33[K');
- return this;
- };
-
- Print.prototype.printSuccessCount = function (current, total) {
- var arb = (total === 0) ? 0 : (current / total);
- this.out(' \33[36m\33[1mSuccessful :\33[0m \33[32m\33[1m' + (arb * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n');
- };
-
- Print.prototype.printFailedCount = function (current, total) {
- var arb = (total === 0) ? 0 : (current / total);
- this.out(' \33[36m\33[1mFailure :\33[0m \33[31m\33[1m' + (arb * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n');
- };
-
- Print.prototype.printTypingsWithoutTestsMessage = function () {
- this.out(' \33[36m\33[1mTyping without tests\33[0m\n');
- };
-
- Print.prototype.printTotalMessage = function () {
- this.out(' \33[36m\33[1mTotal\33[0m\n');
- };
-
- Print.prototype.printElapsedTime = function (time, s) {
- this.out(' \33[36m\33[1mElapsed time :\33[0m ~' + time + ' (' + s + 's)\n');
- };
-
- Print.prototype.printSuiteErrorCount = function (errorHeadline, current, total, warn) {
- if (typeof warn === "undefined") { warn = false; }
- var arb = (total === 0) ? 0 : (current / total);
- this.out(' \33[36m\33[1m').out(errorHeadline).out(this.repeat(' ', 16 - errorHeadline.length));
- if (warn) {
- this.out(': \33[31m\33[1m' + (arb * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n');
- } else {
- this.out(': \33[33m\33[1m' + (arb * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n');
- }
- };
-
- Print.prototype.printSubHeader = function (file) {
- this.out(' \33[36m\33[1m' + file + '\33[0m\n');
- };
-
- Print.prototype.printWarnCode = function (str) {
- this.out(' \33[31m\33[1m<' + str.toLowerCase().replace(/ +/g, '-') + '>\33[0m\n');
- };
-
- Print.prototype.printLine = function (file) {
- this.out(file + '\n');
- };
-
- Print.prototype.printElement = function (file) {
- this.out(' - ' + file + '\n');
- };
-
- Print.prototype.printElement2 = function (file) {
- this.out(' - ' + file + '\n');
- };
-
- Print.prototype.printTypingsWithoutTestName = function (file) {
- this.out(' - \33[33m\33[1m' + file + '\33[0m\n');
- };
-
- Print.prototype.printTypingsWithoutTest = function (withoutTestTypings) {
- var _this = this;
- if (withoutTestTypings.length > 0) {
- this.printTypingsWithoutTestsMessage();
-
- this.printDiv();
- withoutTestTypings.forEach(function (t) {
- _this.printTypingsWithoutTestName(t);
- });
- }
- };
-
- Print.prototype.printTestComplete = function (testResult) {
- var reporter = testResult.hostedBy.testReporter;
- if (testResult.success) {
- reporter.printPositiveCharacter(testResult);
- } else {
- reporter.printNegativeCharacter(testResult);
- }
- };
-
- Print.prototype.printSuiteComplete = function (suite) {
- this.printBreak();
-
- this.printDiv();
- this.printElapsedTime(suite.timer.asString, suite.timer.time);
- this.printSuccessCount(suite.okTests.length, suite.testResults.length);
- this.printFailedCount(suite.ngTests.length, suite.testResults.length);
- };
-
- Print.prototype.printTests = function (adding) {
- var _this = this;
- this.printDiv();
- this.printSubHeader('Testing');
- this.printDiv();
-
- Object.keys(adding).sort().map(function (src) {
- _this.printLine(adding[src].filePathWithName);
- return adding[src];
- });
- };
-
- Print.prototype.printQueue = function (files) {
- var _this = this;
- this.printDiv();
- this.printSubHeader('Queued for testing');
- this.printDiv();
-
- files.forEach(function (file) {
- _this.printLine(file.filePathWithName);
- });
- };
-
- Print.prototype.printTestAll = function () {
- this.printDiv();
- this.printSubHeader('Ignoring changes, testing all files');
- };
-
- Print.prototype.printFiles = function (files) {
- var _this = this;
- this.printDiv();
- this.printSubHeader('Files');
- this.printDiv();
-
- files.forEach(function (file) {
- _this.printLine(file.filePathWithName);
- file.references.forEach(function (file) {
- _this.printElement(file.filePathWithName);
- });
- });
- };
-
- Print.prototype.printMissing = function (index, refMap) {
- var _this = this;
- this.printDiv();
- this.printSubHeader('Missing references');
- this.printDiv();
-
- Object.keys(refMap).sort().forEach(function (src) {
- var ref = index.getFile(src);
- _this.printLine('\33[31m\33[1m' + ref.filePathWithName + '\33[0m');
- refMap[src].forEach(function (file) {
- _this.printElement(file.filePathWithName);
- });
- });
- };
-
- Print.prototype.printAllChanges = function (paths) {
- var _this = this;
- this.printSubHeader('All changes');
- this.printDiv();
-
- paths.sort().forEach(function (line) {
- _this.printLine(line);
- });
- };
-
- Print.prototype.printRelChanges = function (changeMap) {
- var _this = this;
- this.printDiv();
- this.printSubHeader('Interesting files');
- this.printDiv();
-
- Object.keys(changeMap).sort().forEach(function (src) {
- _this.printLine(changeMap[src].filePathWithName);
- });
- };
-
- Print.prototype.printRemovals = function (changeMap) {
- var _this = this;
- this.printDiv();
- this.printSubHeader('Removed files');
- this.printDiv();
-
- Object.keys(changeMap).sort().forEach(function (src) {
- _this.printLine(changeMap[src].filePathWithName);
- });
- };
-
- Print.prototype.printRefMap = function (index, refMap) {
- var _this = this;
- this.printDiv();
- this.printSubHeader('Referring');
- this.printDiv();
-
- Object.keys(refMap).sort().forEach(function (src) {
- var ref = index.getFile(src);
- _this.printLine(ref.filePathWithName);
- refMap[src].forEach(function (file) {
- _this.printLine(' - ' + file.filePathWithName);
- });
- });
- };
- return Print;
- })();
- DT.Print = Print;
-})(DT || (DT = {}));
-///
-///
-var DT;
-(function (DT) {
-
-
- /////////////////////////////////
- // Default test reporter
- /////////////////////////////////
- var DefaultTestReporter = (function () {
- function DefaultTestReporter(print) {
- this.print = print;
- this.index = 0;
- }
- DefaultTestReporter.prototype.printPositiveCharacter = function (testResult) {
- this.print.out('\33[36m\33[1m' + '.' + '\33[0m');
- this.index++;
- this.printBreakIfNeeded(this.index);
- };
-
- DefaultTestReporter.prototype.printNegativeCharacter = function (testResult) {
- this.print.out('x');
- this.index++;
- this.printBreakIfNeeded(this.index);
- };
-
- DefaultTestReporter.prototype.printBreakIfNeeded = function (index) {
- if (index % this.print.WIDTH === 0) {
- this.print.printBreak();
- }
- };
- return DefaultTestReporter;
- })();
- DT.DefaultTestReporter = DefaultTestReporter;
-})(DT || (DT = {}));
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- var Promise = require('bluebird');
-
-
-
- /////////////////////////////////
- // Base class for test suite
- /////////////////////////////////
- var TestSuiteBase = (function () {
- function TestSuiteBase(options, testSuiteName, errorHeadline) {
- this.options = options;
- this.testSuiteName = testSuiteName;
- this.errorHeadline = errorHeadline;
- this.timer = new DT.Timer();
- this.testResults = [];
- this.printErrorCount = true;
- this.queue = new DT.TestQueue(options.concurrent);
- }
- TestSuiteBase.prototype.filterTargetFiles = function (files) {
- throw new Error('please implement this method');
- };
-
- TestSuiteBase.prototype.start = function (targetFiles, testCallback) {
- var _this = this;
- this.timer.start();
-
- return this.filterTargetFiles(targetFiles).then(function (targetFiles) {
- // tests get queued for multi-threading
- return Promise.all(targetFiles.map(function (targetFile) {
- return _this.runTest(targetFile).then(function (result) {
- testCallback(result);
- });
- }));
- }).then(function () {
- _this.timer.end();
- return _this;
- });
- };
-
- TestSuiteBase.prototype.runTest = function (targetFile) {
- var _this = this;
- return this.queue.run(new DT.Test(this, targetFile, {
- tscVersion: this.options.tscVersion
- })).then(function (result) {
- _this.testResults.push(result);
- return result;
- });
- };
-
- Object.defineProperty(TestSuiteBase.prototype, "okTests", {
- get: function () {
- return this.testResults.filter(function (r) {
- return r.success;
- });
- },
- enumerable: true,
- configurable: true
- });
-
- Object.defineProperty(TestSuiteBase.prototype, "ngTests", {
- get: function () {
- return this.testResults.filter(function (r) {
- return !r.success;
- });
- },
- enumerable: true,
- configurable: true
- });
- return TestSuiteBase;
- })();
- DT.TestSuiteBase = TestSuiteBase;
-})(DT || (DT = {}));
-///
-///
-var __extends = this.__extends || function (d, b) {
- for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
- function __() { this.constructor = d; }
- __.prototype = b.prototype;
- d.prototype = new __();
-};
-var DT;
-(function (DT) {
- 'use strict';
-
- var Promise = require('bluebird');
-
- var endDts = /\w\.d\.ts$/i;
-
- /////////////////////////////////
- // .d.ts syntax inspection
- /////////////////////////////////
- var SyntaxChecking = (function (_super) {
- __extends(SyntaxChecking, _super);
- function SyntaxChecking(options) {
- _super.call(this, options, 'Syntax checking', 'Syntax error');
- }
- SyntaxChecking.prototype.filterTargetFiles = function (files) {
- return Promise.cast(files.filter(function (file) {
- return endDts.test(file.filePathWithName);
- }));
- };
- return SyntaxChecking;
- })(DT.TestSuiteBase);
- DT.SyntaxChecking = SyntaxChecking;
-})(DT || (DT = {}));
-///
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- var Promise = require('bluebird');
-
- var endTestDts = /\w-tests?\.ts$/i;
-
- /////////////////////////////////
- // Compile with *-tests.ts
- /////////////////////////////////
- var TestEval = (function (_super) {
- __extends(TestEval, _super);
- function TestEval(options) {
- _super.call(this, options, 'Typing tests', 'Failed tests');
- }
- TestEval.prototype.filterTargetFiles = function (files) {
- return Promise.cast(files.filter(function (file) {
- return endTestDts.test(file.filePathWithName);
- }));
- };
- return TestEval;
- })(DT.TestSuiteBase);
- DT.TestEval = TestEval;
-})(DT || (DT = {}));
-///
-///
-var DT;
-(function (DT) {
- 'use strict';
-
- var fs = require('fs');
- var Promise = require('bluebird');
-
- /////////////////////////////////
- // Try compile without .tscparams
- // It may indicate that it is compatible with --noImplicitAny maybe...
- /////////////////////////////////
- var FindNotRequiredTscparams = (function (_super) {
- __extends(FindNotRequiredTscparams, _super);
- function FindNotRequiredTscparams(options, print) {
- var _this = this;
- _super.call(this, options, 'Find not required .tscparams files', 'New arrival!');
- this.print = print;
- this.printErrorCount = false;
-
- this.testReporter = {
- printPositiveCharacter: function (testResult) {
- _this.print.clearCurrentLine().printTypingsWithoutTestName(testResult.targetFile.filePathWithName);
- },
- printNegativeCharacter: function (testResult) {
- }
- };
- }
- FindNotRequiredTscparams.prototype.filterTargetFiles = function (files) {
- return Promise.filter(files, function (file) {
- return new Promise(function (resolve) {
- fs.exists(file.filePathWithName + '.tscparams', resolve);
- });
- });
- };
-
- FindNotRequiredTscparams.prototype.runTest = function (targetFile) {
- var _this = this;
- this.print.clearCurrentLine().out(targetFile.filePathWithName);
-
- return this.queue.run(new DT.Test(this, targetFile, {
- tscVersion: this.options.tscVersion,
- useTscParams: false,
- checkNoImplicitAny: true
- })).then(function (result) {
- _this.testResults.push(result);
- _this.print.clearCurrentLine();
- return result;
- });
- };
-
- Object.defineProperty(FindNotRequiredTscparams.prototype, "ngTests", {
- get: function () {
- // Do not show ng test results
- return [];
- },
- enumerable: true,
- configurable: true
- });
- return FindNotRequiredTscparams;
- })(DT.TestSuiteBase);
- DT.FindNotRequiredTscparams = FindNotRequiredTscparams;
-})(DT || (DT = {}));
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-///
-var DT;
-(function (DT) {
- require('source-map-support').install();
-
- // hacky typing
- var Lazy = require('lazy.js');
- var Promise = require('bluebird');
-
- var os = require('os');
- var fs = require('fs');
- var path = require('path');
- var assert = require('assert');
-
- var tsExp = /\.ts$/;
-
- DT.DEFAULT_TSC_VERSION = '0.9.7';
-
- /////////////////////////////////
- // Single test
- /////////////////////////////////
- var Test = (function () {
- function Test(suite, tsfile, options) {
- this.suite = suite;
- this.tsfile = tsfile;
- this.options = options;
- }
- Test.prototype.run = function () {
- var _this = this;
- return DT.Tsc.run(this.tsfile.filePathWithName, this.options).then(function (execResult) {
- var testResult = new TestResult();
- testResult.hostedBy = _this.suite;
- testResult.targetFile = _this.tsfile;
- testResult.options = _this.options;
-
- testResult.stdout = execResult.stdout;
- testResult.stderr = execResult.stderr;
- testResult.exitCode = execResult.exitCode;
-
- return testResult;
- });
- };
- return Test;
- })();
- DT.Test = Test;
-
- /////////////////////////////////
- // Parallel execute Tests
- /////////////////////////////////
- var TestQueue = (function () {
- function TestQueue(concurrent) {
- this.queue = [];
- this.active = [];
- this.concurrent = Math.max(1, concurrent);
- }
- // add to queue and return a promise
- TestQueue.prototype.run = function (test) {
- var _this = this;
- var defer = Promise.defer();
-
- // add a closure to queue
- this.queue.push(function () {
- // run it
- var p = test.run();
- p.then(defer.resolve.bind(defer), defer.reject.bind(defer));
- p.finally(function () {
- var i = _this.active.indexOf(test);
- if (i > -1) {
- _this.active.splice(i, 1);
- }
- _this.step();
- });
-
- // return it
- return test;
- });
- this.step();
-
- // defer it
- return defer.promise;
- };
-
- TestQueue.prototype.step = function () {
- while (this.queue.length > 0 && this.active.length < this.concurrent) {
- this.active.push(this.queue.pop().call(null));
- }
- };
- return TestQueue;
- })();
- DT.TestQueue = TestQueue;
-
- /////////////////////////////////
- // Test results
- /////////////////////////////////
- var TestResult = (function () {
- function TestResult() {
- }
- Object.defineProperty(TestResult.prototype, "success", {
- get: function () {
- return this.exitCode === 0;
- },
- enumerable: true,
- configurable: true
- });
- return TestResult;
- })();
- DT.TestResult = TestResult;
-
- /////////////////////////////////
- // The main class to kick things off
- /////////////////////////////////
- var TestRunner = (function () {
- function TestRunner(dtPath, options) {
- if (typeof options === "undefined") { options = { tscVersion: DT.DEFAULT_TSC_VERSION }; }
- this.dtPath = dtPath;
- this.options = options;
- this.suites = [];
- this.options.findNotRequiredTscparams = !!this.options.findNotRequiredTscparams;
-
- this.index = new DT.FileIndex(this, this.options);
- this.changes = new DT.GitChanges(this);
-
- this.print = new DT.Print(this.options.tscVersion);
- }
- TestRunner.prototype.addSuite = function (suite) {
- this.suites.push(suite);
- };
-
- TestRunner.prototype.checkAcceptFile = function (fileName) {
- var ok = tsExp.test(fileName);
- ok = ok && fileName.indexOf('_infrastructure') < 0;
- ok = ok && fileName.indexOf('node_modules/') < 0;
- ok = ok && /^[a-z]/i.test(fileName);
- return ok;
- };
-
- TestRunner.prototype.run = function () {
- var _this = this;
- this.timer = new DT.Timer();
- this.timer.start();
-
- this.print.printChangeHeader();
-
- // only includes .d.ts or -tests.ts or -test.ts or .ts
- return this.index.readIndex().then(function () {
- return _this.changes.readChanges();
- }).then(function (changes) {
- _this.print.printAllChanges(changes);
- return _this.index.collectDiff(changes);
- }).then(function () {
- _this.print.printRemovals(_this.index.removed);
- _this.print.printRelChanges(_this.index.changed);
- return _this.index.parseFiles();
- }).then(function () {
- if (_this.options.printRefMap) {
- _this.print.printRefMap(_this.index, _this.index.refMap);
- }
- if (Lazy(_this.index.missing).some(function (arr) {
- return arr.length > 0;
- })) {
- _this.print.printMissing(_this.index, _this.index.missing);
- _this.print.printBoldDiv();
-
- // bail
- return Promise.cast(false);
- }
- if (_this.options.printFiles) {
- _this.print.printFiles(_this.index.files);
- }
- return _this.index.collectTargets().then(function (files) {
- if (_this.options.testChanges) {
- _this.print.printQueue(files);
- return _this.runTests(files);
- } else {
- _this.print.printTestAll();
- return _this.runTests(_this.index.files);
- }
- }).then(function () {
- return !_this.suites.some(function (suite) {
- return suite.ngTests.length !== 0;
- });
- });
- });
- };
-
- TestRunner.prototype.runTests = function (files) {
- var _this = this;
- return Promise.attempt(function () {
- assert(Array.isArray(files), 'files must be array');
-
- var syntaxChecking = new DT.SyntaxChecking(_this.options);
- var testEval = new DT.TestEval(_this.options);
-
- if (!_this.options.findNotRequiredTscparams) {
- _this.addSuite(syntaxChecking);
- _this.addSuite(testEval);
- }
-
- return Promise.all([
- syntaxChecking.filterTargetFiles(files),
- testEval.filterTargetFiles(files)
- ]);
- }).spread(function (syntaxFiles, testFiles) {
- _this.print.init(syntaxFiles.length, testFiles.length, files.length);
- _this.print.printHeader(_this.options);
-
- if (_this.options.findNotRequiredTscparams) {
- _this.addSuite(new DT.FindNotRequiredTscparams(_this.options, _this.print));
- }
-
- return Promise.reduce(_this.suites, function (count, suite) {
- suite.testReporter = suite.testReporter || new DT.DefaultTestReporter(_this.print);
-
- _this.print.printSuiteHeader(suite.testSuiteName);
-
- if (_this.options.skipTests) {
- _this.print.printWarnCode('skipped test');
- return Promise.cast(count++);
- }
-
- return suite.start(files, function (testResult) {
- _this.print.printTestComplete(testResult);
- }).then(function (suite) {
- _this.print.printSuiteComplete(suite);
- return count++;
- });
- }, 0);
- }).then(function (count) {
- _this.timer.end();
- _this.finaliseTests(files);
- });
- };
-
- TestRunner.prototype.finaliseTests = function (files) {
- var _this = this;
- var testEval = Lazy(this.suites).filter(function (suite) {
- return suite instanceof DT.TestEval;
- }).first();
-
- if (testEval) {
- var existsTestTypings = Lazy(testEval.testResults).map(function (testResult) {
- return testResult.targetFile.dir;
- }).reduce(function (a, b) {
- return a.indexOf(b) < 0 ? a.concat([b]) : a;
- }, []);
-
- var typings = Lazy(files).map(function (file) {
- return file.dir;
- }).reduce(function (a, b) {
- return a.indexOf(b) < 0 ? a.concat([b]) : a;
- }, []);
-
- var withoutTestTypings = typings.filter(function (typing) {
- return existsTestTypings.indexOf(typing) < 0;
- });
-
- this.print.printDiv();
- this.print.printTypingsWithoutTest(withoutTestTypings);
- }
-
- this.print.printDiv();
- this.print.printTotalMessage();
-
- this.print.printDiv();
- this.print.printElapsedTime(this.timer.asString, this.timer.time);
-
- this.suites.filter(function (suite) {
- return suite.printErrorCount;
- }).forEach(function (suite) {
- _this.print.printSuiteErrorCount(suite.errorHeadline, suite.ngTests.length, suite.testResults.length);
- });
- if (testEval) {
- this.print.printSuiteErrorCount('Without tests', withoutTestTypings.length, typings.length, true);
- }
-
- this.print.printDiv();
-
- if (this.suites.some(function (suite) {
- return suite.ngTests.length !== 0;
- })) {
- this.print.printErrorsHeader();
-
- this.suites.filter(function (suite) {
- return suite.ngTests.length !== 0;
- }).forEach(function (suite) {
- suite.ngTests.forEach(function (testResult) {
- _this.print.printErrorsForFile(testResult);
- });
- _this.print.printBoldDiv();
- });
- }
- };
- return TestRunner;
- })();
- DT.TestRunner = TestRunner;
-
- var optimist = require('optimist')(process.argv);
- optimist.default('try-without-tscparams', false);
- optimist.default('single-thread', false);
- optimist.default('tsc-version', DT.DEFAULT_TSC_VERSION);
-
- optimist.default('test-changes', false);
- optimist.default('skip-tests', false);
- optimist.default('print-files', false);
- optimist.default('print-refmap', false);
-
- optimist.boolean('help');
- optimist.describe('help', 'print help');
- optimist.alias('h', 'help');
-
- var argv = optimist.argv;
-
- var dtPath = path.resolve(path.dirname((module).filename), '..', '..');
- var cpuCores = os.cpus().length;
-
- if (argv.help) {
- optimist.showHelp();
- var pkg = require('../../package.json');
- console.log('Scripts:');
- console.log('');
- Lazy(pkg.scripts).keys().each(function (key) {
- console.log(' $ npm run ' + key);
- });
- process.exit(0);
- }
-
- var testFull = process.env['TRAVIS_BRANCH'] ? /\w\/full$/.test(process.env['TRAVIS_BRANCH']) : false;
-
- new TestRunner(dtPath, {
- concurrent: argv['single-thread'] ? 1 : Math.max(Math.min(24, cpuCores), 2),
- tscVersion: argv['tsc-version'],
- testChanges: testFull ? false : argv['test-changes'],
- skipTests: argv['skip-tests'],
- printFiles: argv['print-files'],
- printRefMap: argv['print-refmap'],
- findNotRequiredTscparams: argv['try-without-tscparam']
- }).run().then(function (success) {
- if (!success) {
- process.exit(1);
- }
- }).catch(function (err) {
- throw err;
- process.exit(2);
- });
-})(DT || (DT = {}));
-//# sourceMappingURL=runner.js.map
diff --git a/_infrastructure/tests/runner.ts b/_infrastructure/tests/runner.ts
deleted file mode 100644
index 1f75aca7a8..0000000000
--- a/_infrastructure/tests/runner.ts
+++ /dev/null
@@ -1,367 +0,0 @@
-///
-
-///
-
-///
-///
-///
-///
-
-///
-///
-
-///
-///
-
-///
-///
-///
-///
-
-module DT {
- require('source-map-support').install();
-
- // hacky typing
- var Lazy: LazyJS.LazyStatic = require('lazy.js');
- var Promise: typeof Promise = require('bluebird');
-
- var os = require('os');
- var fs = require('fs');
- var path = require('path');
- var assert = require('assert');
-
- var tsExp = /\.ts$/;
-
- export var DEFAULT_TSC_VERSION = '0.9.7';
-
- interface PackageJSON {
- scripts: {[key:string]: string};
- }
-
- /////////////////////////////////
- // Single test
- /////////////////////////////////
- export class Test {
- constructor(public suite: ITestSuite, public tsfile: File, public options?: TscExecOptions) {
- }
-
- public run(): Promise {
- return Tsc.run(this.tsfile.filePathWithName, this.options).then((execResult: ExecResult) => {
- var testResult = new TestResult();
- testResult.hostedBy = this.suite;
- testResult.targetFile = this.tsfile;
- testResult.options = this.options;
-
- testResult.stdout = execResult.stdout;
- testResult.stderr = execResult.stderr;
- testResult.exitCode = execResult.exitCode;
-
- return testResult;
- });
- }
- }
-
- /////////////////////////////////
- // Parallel execute Tests
- /////////////////////////////////
- export class TestQueue {
-
- private queue: Function[] = [];
- private active: Test[] = [];
- private concurrent: number;
-
- constructor(concurrent: number) {
- this.concurrent = Math.max(1, concurrent);
- }
-
- // add to queue and return a promise
- run(test: Test): Promise {
- var defer = Promise.defer();
- // add a closure to queue
- this.queue.push(() => {
- // run it
- var p = test.run();
- p.then(defer.resolve.bind(defer), defer.reject.bind(defer));
- p.finally(() => {
- var i = this.active.indexOf(test);
- if (i > -1) {
- this.active.splice(i, 1);
- }
- this.step();
- });
- // return it
- return test;
- });
- this.step();
- // defer it
- return defer.promise;
- }
-
- private step(): void {
- while (this.queue.length > 0 && this.active.length < this.concurrent) {
- this.active.push(this.queue.pop().call(null));
- }
- }
- }
-
- /////////////////////////////////
- // Test results
- /////////////////////////////////
- export class TestResult {
- hostedBy: ITestSuite;
- targetFile: File;
- options: TscExecOptions;
-
- stdout: string;
- stderr: string;
- exitCode: number;
-
- public get success(): boolean {
- return this.exitCode === 0;
- }
- }
-
- export interface ITestRunnerOptions {
- tscVersion:string;
- concurrent?:number;
- testChanges?:boolean;
- skipTests?:boolean;
- printFiles?:boolean;
- printRefMap?:boolean;
- findNotRequiredTscparams?:boolean;
- }
-
- /////////////////////////////////
- // The main class to kick things off
- /////////////////////////////////
- export class TestRunner {
- private timer: Timer;
- private suites: ITestSuite[] = [];
-
- public changes: GitChanges;
- public index: FileIndex;
- public print: Print;
-
- constructor(public dtPath: string, public options: ITestRunnerOptions = {tscVersion: DT.DEFAULT_TSC_VERSION}) {
- this.options.findNotRequiredTscparams = !!this.options.findNotRequiredTscparams;
-
- this.index = new FileIndex(this, this.options);
- this.changes = new GitChanges(this);
-
- this.print = new Print(this.options.tscVersion);
- }
-
- public addSuite(suite: ITestSuite): void {
- this.suites.push(suite);
- }
-
- public checkAcceptFile(fileName: string): boolean {
- var ok = tsExp.test(fileName);
- ok = ok && fileName.indexOf('_infrastructure') < 0;
- ok = ok && fileName.indexOf('node_modules/') < 0;
- ok = ok && /^[a-z]/i.test(fileName);
- return ok;
- }
-
- public run(): Promise {
- this.timer = new Timer();
- this.timer.start();
-
- this.print.printChangeHeader();
-
- // only includes .d.ts or -tests.ts or -test.ts or .ts
- return this.index.readIndex().then(() => {
- return this.changes.readChanges();
- }).then((changes: string[]) => {
- this.print.printAllChanges(changes);
- return this.index.collectDiff(changes);
- }).then(() => {
- this.print.printRemovals(this.index.removed);
- this.print.printRelChanges(this.index.changed);
- return this.index.parseFiles();
- }).then(() => {
- if (this.options.printRefMap) {
- this.print.printRefMap(this.index, this.index.refMap);
- }
- if (Lazy(this.index.missing).some((arr: any[]) => arr.length > 0)) {
- this.print.printMissing(this.index, this.index.missing);
- this.print.printBoldDiv();
- // bail
- return Promise.cast(false);
- }
- if (this.options.printFiles) {
- this.print.printFiles(this.index.files);
- }
- return this.index.collectTargets().then((files) => {
- if (this.options.testChanges) {
- this.print.printQueue(files);
- return this.runTests(files);
- }
- else {
- this.print.printTestAll();
- return this.runTests(this.index.files)
- }
- }).then(() => {
- return !this.suites.some((suite) => {
- return suite.ngTests.length !== 0
- });
- });
- });
- }
-
- private runTests(files: File[]): Promise {
- return Promise.attempt(() => {
- assert(Array.isArray(files), 'files must be array');
-
- var syntaxChecking = new SyntaxChecking(this.options);
- var testEval = new TestEval(this.options);
-
- if (!this.options.findNotRequiredTscparams) {
- this.addSuite(syntaxChecking);
- this.addSuite(testEval);
- }
-
- return Promise.all([
- syntaxChecking.filterTargetFiles(files),
- testEval.filterTargetFiles(files)
- ]);
- }).spread((syntaxFiles, testFiles) => {
- this.print.init(syntaxFiles.length, testFiles.length, files.length);
- this.print.printHeader(this.options);
-
- if (this.options.findNotRequiredTscparams) {
- this.addSuite(new FindNotRequiredTscparams(this.options, this.print));
- }
-
- return Promise.reduce(this.suites, (count, suite: ITestSuite) => {
- suite.testReporter = suite.testReporter || new DefaultTestReporter(this.print);
-
- this.print.printSuiteHeader(suite.testSuiteName);
-
- if (this.options.skipTests) {
- this.print.printWarnCode('skipped test');
- return Promise.cast(count++);
- }
-
- return suite.start(files, (testResult) => {
- this.print.printTestComplete(testResult);
- }).then((suite) => {
- this.print.printSuiteComplete(suite);
- return count++;
- });
- }, 0);
- }).then((count) => {
- this.timer.end();
- this.finaliseTests(files);
- });
- }
-
- private finaliseTests(files: File[]): void {
- var testEval: TestEval = Lazy(this.suites).filter((suite) => {
- return suite instanceof TestEval;
- }).first();
-
- if (testEval) {
- var existsTestTypings: string[] = Lazy(testEval.testResults).map((testResult) => {
- return testResult.targetFile.dir;
- }).reduce((a: string[], b: string) => {
- return a.indexOf(b) < 0 ? a.concat([b]) : a;
- }, []);
-
- var typings: string[] = Lazy(files).map((file) => {
- return file.dir;
- }).reduce((a: string[], b: string) => {
- return a.indexOf(b) < 0 ? a.concat([b]) : a;
- }, []);
-
- var withoutTestTypings: string[] = typings.filter((typing) => {
- return existsTestTypings.indexOf(typing) < 0;
- });
-
- this.print.printDiv();
- this.print.printTypingsWithoutTest(withoutTestTypings);
- }
-
- this.print.printDiv();
- this.print.printTotalMessage();
-
- this.print.printDiv();
- this.print.printElapsedTime(this.timer.asString, this.timer.time);
-
- this.suites.filter((suite: ITestSuite) => {
- return suite.printErrorCount;
- }).forEach((suite: ITestSuite) => {
- this.print.printSuiteErrorCount(suite.errorHeadline, suite.ngTests.length, suite.testResults.length);
- });
- if (testEval) {
- this.print.printSuiteErrorCount('Without tests', withoutTestTypings.length, typings.length, true);
- }
-
- this.print.printDiv();
-
- if (this.suites.some((suite) => {
- return suite.ngTests.length !== 0
- })) {
- this.print.printErrorsHeader();
-
- this.suites.filter((suite) => {
- return suite.ngTests.length !== 0;
- }).forEach((suite) => {
- suite.ngTests.forEach((testResult) => {
- this.print.printErrorsForFile(testResult);
- });
- this.print.printBoldDiv();
- });
- }
- }
- }
-
- var optimist: Optimist = require('optimist')(process.argv);
- optimist.default('try-without-tscparams', false);
- optimist.default('single-thread', false);
- optimist.default('tsc-version', DEFAULT_TSC_VERSION);
-
- optimist.default('test-changes', false);
- optimist.default('skip-tests', false);
- optimist.default('print-files', false);
- optimist.default('print-refmap', false);
-
- optimist.boolean('help');
- optimist.describe('help', 'print help');
- optimist.alias('h', 'help');
-
- var argv: any = optimist.argv;
-
- var dtPath = path.resolve(path.dirname((module).filename), '..', '..');
- var cpuCores = os.cpus().length;
-
- if (argv.help) {
- optimist.showHelp();
- var pkg: PackageJSON = require('../../package.json');
- console.log('Scripts:');
- console.log('');
- Lazy(pkg.scripts).keys().each((key) => {
- console.log(' $ npm run ' + key);
- });
- process.exit(0);
- }
-
- var testFull = process.env['TRAVIS_BRANCH'] ? /\w\/full$/.test(process.env['TRAVIS_BRANCH']) : false;
-
- new TestRunner(dtPath, {
- concurrent: argv['single-thread'] ? 1 : Math.max(Math.min(24, cpuCores), 2),
- tscVersion: argv['tsc-version'],
- testChanges: testFull ? false : argv['test-changes'], // allow magic branch
- skipTests: argv['skip-tests'],
- printFiles: argv['print-files'],
- printRefMap: argv['print-refmap'],
- findNotRequiredTscparams: argv['try-without-tscparam']
- }).run().then((success) => {
- if (!success) {
- process.exit(1);
- }
- }).catch((err) => {
- throw err;
- process.exit(2);
- });
-}
diff --git a/_infrastructure/tests/src/changes.ts b/_infrastructure/tests/src/changes.ts
deleted file mode 100644
index a56c4029eb..0000000000
--- a/_infrastructure/tests/src/changes.ts
+++ /dev/null
@@ -1,36 +0,0 @@
-///
-///
-
-module DT {
- 'use strict';
-
- var fs = require('fs');
- var path = require('path');
- var Git = require('git-wrapper');
- var Promise: typeof Promise = require('bluebird');
-
- export class GitChanges {
-
- git;
- options = {};
-
- constructor(private runner: TestRunner) {
- var dir = path.join(this.runner.dtPath, '.git');
- if (!fs.existsSync(dir)) {
- throw new Error('cannot locate git-dir: ' + dir);
- }
- this.options['git-dir'] = dir;
-
- this.git = new Git(this.options);
- this.git.exec = Promise.promisify(this.git.exec);
- }
-
- public readChanges(): Promise {
- var opts = {};
- var args = ['--name-only HEAD~1'];
- return this.git.exec('diff', opts, args).then((msg: string) => {
- return msg.replace(/^\s+/, '').replace(/\s+$/, '').split(/\r?\n/g);
- });
- }
- }
-}
diff --git a/_infrastructure/tests/src/exec.ts b/_infrastructure/tests/src/exec.ts
deleted file mode 100644
index 3c3f3c0e02..0000000000
--- a/_infrastructure/tests/src/exec.ts
+++ /dev/null
@@ -1,30 +0,0 @@
-module DT {
- 'use strict';
-
- var Promise: typeof Promise = require('bluebird');
- var nodeExec = require('child_process').exec;
-
- export class ExecResult {
- error;
- stdout = '';
- stderr = '';
- exitCode: number;
- }
-
- export function exec(filename: string, cmdLineArgs: string[]): Promise {
- return new Promise((resolve) => {
- var result = new ExecResult();
- result.exitCode = null;
-
- var cmdLine = filename + ' ' + cmdLineArgs.join(' ');
-
- nodeExec(cmdLine, {maxBuffer: 1 * 1024 * 1024}, (error, stdout, stderr) => {
- result.error = error;
- result.stdout = stdout;
- result.stderr = stderr;
- result.exitCode = error ? error.code : 0;
- resolve(result);
- });
- });
- }
-}
diff --git a/_infrastructure/tests/src/file.ts b/_infrastructure/tests/src/file.ts
deleted file mode 100644
index 2c69f8f885..0000000000
--- a/_infrastructure/tests/src/file.ts
+++ /dev/null
@@ -1,46 +0,0 @@
-///
-
-module DT {
- 'use strict';
-
- var path = require('path');
-
- export interface FileDict {
- [fullPath:string]: File;
- }
-
- export interface FileArrDict {
- [fullPath:string]: File[];
- }
-
- /////////////////////////////////
- // Given a document root + ts file pattern this class returns:
- // all the TS files OR just tests OR just definition files
- /////////////////////////////////
- export class File {
- baseDir: string;
- filePathWithName: string;
- dir: string;
- file: string;
- ext: string;
- fullPath: string;
- references: File[] = [];
-
- constructor(baseDir: string, filePathWithName: string) {
- // why choose?
- this.baseDir = baseDir;
- this.filePathWithName = filePathWithName;
- this.ext = path.extname(this.filePathWithName);
- this.file = path.basename(this.filePathWithName, this.ext);
- this.dir = path.dirname(this.filePathWithName);
- this.fullPath = path.join(this.baseDir, this.dir, this.file + this.ext);
-
- // lock it (shallow) (needs `use strict` in each file to work)
- // Object.freeze(this);
- }
-
- toString(): string {
- return '[File ' + this.filePathWithName + ']';
- }
- }
-}
diff --git a/_infrastructure/tests/src/index.ts b/_infrastructure/tests/src/index.ts
deleted file mode 100644
index 7f5878dcb3..0000000000
--- a/_infrastructure/tests/src/index.ts
+++ /dev/null
@@ -1,208 +0,0 @@
-///
-///
-///
-
-module DT {
- 'use strict';
-
- var fs = require('fs');
- var path = require('path');
- var glob = require('glob');
- var Lazy: LazyJS.LazyStatic = require('lazy.js');
- var Promise: typeof Promise = require('bluebird');
-
- var readFile = Promise.promisify(fs.readFile);
-
- /////////////////////////////////
- // Track all files in the repo: map full path to File objects
- /////////////////////////////////
- export class FileIndex {
-
- files: File[];
- fileMap: FileDict;
- refMap: FileArrDict;
- options: ITestRunnerOptions;
- changed: FileDict;
- removed: FileDict;
- missing: FileArrDict;
-
- constructor(private runner: TestRunner, options: ITestRunnerOptions) {
- this.options = options;
- }
-
- public hasFile(target: string): boolean {
- return target in this.fileMap;
- }
-
- public getFile(target: string): File {
- if (target in this.fileMap) {
- return this.fileMap[target];
- }
- return null;
- }
-
- public setFile(file: File): void {
- if (file.fullPath in this.fileMap) {
- throw new Error('cannot overwrite file');
- }
- this.fileMap[file.fullPath] = file;
- }
-
- public readIndex(): Promise {
- this.fileMap = Object.create(null);
-
- return Promise.promisify(glob).call(glob, '**/*.ts', {
- cwd: this.runner.dtPath
- }).then((filesNames: string[]) => {
- this.files = Lazy(filesNames).filter((fileName) => {
- return this.runner.checkAcceptFile(fileName);
- }).map((fileName: string) => {
- var file = new File(this.runner.dtPath, fileName);
- this.fileMap[file.fullPath] = file;
- return file;
- }).toArray();
- });
- }
-
- public collectDiff(changes: string[]): Promise {
- return new Promise((resolve) => {
- // filter changes and bake map for easy lookup
- this.changed = Object.create(null);
- this.removed = Object.create(null);
-
- Lazy(changes).filter((full) => {
- return this.runner.checkAcceptFile(full);
- }).uniq().each((local) => {
- var full = path.resolve(this.runner.dtPath, local);
- var file = this.getFile(full);
- if (!file) {
- // TODO figure out what to do here
- // what does it mean? deleted?ss
- file = new File(this.runner.dtPath, local);
- this.setFile(file);
- this.removed[full] = file;
- // console.log('not in index? %', file.fullPath);
- }
- else {
- this.changed[full] = file;
- }
- });
- // console.log('changed:\n' + Object.keys(this.changed).join('\n'));
- // console.log('removed:\n' + Object.keys(this.removed).join('\n'));
- resolve();
- });
- }
-
- public parseFiles(): Promise {
- return this.loadReferences(this.files).then(() => {
- return this.getMissingReferences();
- });
- }
-
- private getMissingReferences(): Promise {
- return Promise.attempt(() => {
- this.missing = Object.create(null);
- Lazy(this.removed).keys().each((removed) => {
- if (removed in this.refMap) {
- this.missing[removed] = this.refMap[removed];
- }
- });
- });
- }
-
- private loadReferences(files: File[]): Promise {
- return new Promise((resolve, reject) => {
- var queue = files.slice(0);
- var active = [];
- var max = 50;
- var next = () => {
- if (queue.length === 0 && active.length === 0) {
- resolve();
- return;
- }
- // queue paralel
- while (queue.length > 0 && active.length < max) {
- var file = queue.pop();
- active.push(file);
- this.parseFile(file).then((file) => {
- active.splice(active.indexOf(file), 1);
- next();
- }).catch((err) => {
- queue = [];
- active = [];
- reject(err);
- });
- }
- };
- next();
- }).then(() => {
- // bake reverse reference map (referenced to referrers)
- this.refMap = Object.create(null);
-
- Lazy(files).each((file) => {
- Lazy(file.references).each((ref) => {
- if (ref.fullPath in this.refMap) {
- this.refMap[ref.fullPath].push(file);
- }
- else {
- this.refMap[ref.fullPath] = [file];
- }
- });
- });
- });
- }
-
- // TODO replace with a stream?
- private parseFile(file: File): Promise {
- return readFile(file.filePathWithName, {
- encoding: 'utf8',
- flag: 'r'
- }).then((content) => {
- file.references = Lazy(extractReferenceTags(content)).map((ref) => {
- return path.resolve(path.dirname(file.fullPath), ref);
- }).reduce((memo: File[], ref) => {
- if (ref in this.fileMap) {
- memo.push(this.fileMap[ref]);
- }
- else {
- console.log('not mapped? -> ' + ref);
- }
- return memo;
- }, []);
- // return the object
- return file;
- });
- }
-
- public collectTargets(): Promise {
- return new Promise((resolve) => {
- // map out files linked to changes
- // - queue holds files touched by a change
- // - pre-fill with actually changed files
- // - loop queue, if current not seen:
- // - add to result
- // - from refMap queue all files referring to current
-
- var result: FileDict = Object.create(null);
- var queue = Lazy(this.changed).values().toArray();
-
- while (queue.length > 0) {
- var next = queue.shift();
- var fp = next.fullPath;
- if (result[fp]) {
- continue;
- }
- result[fp] = next;
- if (fp in this.refMap) {
- var arr = this.refMap[fp];
- for (var i = 0, ii = arr.length; i < ii; i++) {
- // just add it and skip expensive checks
- queue.push(arr[i]);
- }
- }
- }
- resolve(Lazy(result).values().toArray());
- });
- }
- }
-}
diff --git a/_infrastructure/tests/src/printer.ts b/_infrastructure/tests/src/printer.ts
deleted file mode 100644
index 9ee01f3c6d..0000000000
--- a/_infrastructure/tests/src/printer.ts
+++ /dev/null
@@ -1,281 +0,0 @@
-///
-///
-
-module DT {
-
- var os = require('os');
-
- /////////////////////////////////
- // All the common things that we print are functions of this class
- /////////////////////////////////
- export class Print {
-
- WIDTH = 77;
-
- typings: number;
- tests: number;
- tsFiles: number
-
- constructor(public version: string){
-
- }
-
- public init(typings: number, tests: number, tsFiles: number) {
- this.typings = typings;
- this.tests = tests;
- this.tsFiles = tsFiles;
- }
-
- public out(s: any): Print {
- process.stdout.write(s);
- return this;
- }
-
- public repeat(s: string, times: number): string {
- return new Array(times + 1).join(s);
- }
-
- public printChangeHeader() {
- this.out('=============================================================================\n');
- this.out(' \33[36m\33[1mDefinitelyTyped Diff Detector 0.1.0\33[0m \n');
- this.out('=============================================================================\n');
- }
-
- public printHeader(options: ITestRunnerOptions) {
- var totalMem = Math.round(os.totalmem() / 1024 / 1024) + ' mb';
- var freemem = Math.round(os.freemem() / 1024 / 1024) + ' mb';
-
- this.out('=============================================================================\n');
- this.out(' \33[36m\33[1mDefinitelyTyped Test Runner 0.5.0\33[0m\n');
- this.out('=============================================================================\n');
- this.out(' \33[36m\33[1mTypescript version:\33[0m ' + this.version + '\n');
- this.out(' \33[36m\33[1mTypings :\33[0m ' + this.typings + '\n');
- this.out(' \33[36m\33[1mTests :\33[0m ' + this.tests + '\n');
- this.out(' \33[36m\33[1mTypeScript files :\33[0m ' + this.tsFiles + '\n');
- this.out(' \33[36m\33[1mTotal Memory :\33[0m ' + totalMem + '\n');
- this.out(' \33[36m\33[1mFree Memory :\33[0m ' + freemem + '\n');
- this.out(' \33[36m\33[1mCores :\33[0m ' + os.cpus().length + '\n');
- this.out(' \33[36m\33[1mConcurrent :\33[0m ' + options.concurrent + '\n');
- }
-
- public printSuiteHeader(title: string) {
- var left = Math.floor((this.WIDTH - title.length ) / 2) - 1;
- var right = Math.ceil((this.WIDTH - title.length ) / 2) - 1;
- this.out(this.repeat('=', left)).out(' \33[34m\33[1m');
- this.out(title);
- this.out('\33[0m ').out(this.repeat('=', right)).printBreak();
- }
-
- public printDiv() {
- this.out('-----------------------------------------------------------------------------\n');
- }
-
- public printBoldDiv() {
- this.out('=============================================================================\n');
- }
-
- public printErrorsHeader() {
- this.out('=============================================================================\n');
- this.out(' \33[34m\33[1mErrors in files\33[0m \n');
- this.out('=============================================================================\n');
- }
-
- public printErrorsForFile(testResult: TestResult) {
- this.out('----------------- For file:' + testResult.targetFile.filePathWithName);
- this.printBreak().out(testResult.stderr).printBreak();
- }
-
- public printBreak(): Print {
- this.out('\n');
- return this;
- }
-
- public clearCurrentLine(): Print {
- this.out('\r\33[K');
- return this;
- }
-
- public printSuccessCount(current: number, total: number) {
- var arb = (total === 0) ? 0 : (current / total);
- this.out(' \33[36m\33[1mSuccessful :\33[0m \33[32m\33[1m' + (arb * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n');
- }
-
- public printFailedCount(current: number, total: number) {
- var arb = (total === 0) ? 0 : (current / total);
- this.out(' \33[36m\33[1mFailure :\33[0m \33[31m\33[1m' + (arb * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n');
- }
-
- public printTypingsWithoutTestsMessage() {
- this.out(' \33[36m\33[1mTyping without tests\33[0m\n');
- }
-
- public printTotalMessage() {
- this.out(' \33[36m\33[1mTotal\33[0m\n');
- }
-
- public printElapsedTime(time: string, s: number) {
- this.out(' \33[36m\33[1mElapsed time :\33[0m ~' + time + ' (' + s + 's)\n');
- }
-
- public printSuiteErrorCount(errorHeadline: string, current: number, total: number, warn: boolean = false) {
- var arb = (total === 0) ? 0 : (current / total);
- this.out(' \33[36m\33[1m').out(errorHeadline).out(this.repeat(' ', 16 - errorHeadline.length));
- if (warn) {
- this.out(': \33[31m\33[1m' + (arb * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n');
- }
- else {
- this.out(': \33[33m\33[1m' + (arb * 100).toFixed(2) + '% (' + current + '/' + total + ')\33[0m\n');
- }
- }
-
- public printSubHeader(file: string) {
- this.out(' \33[36m\33[1m' + file + '\33[0m\n');
- }
-
- public printWarnCode(str: string) {
- this.out(' \33[31m\33[1m<' + str.toLowerCase().replace(/ +/g, '-') + '>\33[0m\n');
- }
-
- public printLine(file: string) {
- this.out(file + '\n');
- }
-
- public printElement(file: string) {
- this.out(' - ' + file + '\n');
- }
-
- public printElement2(file: string) {
- this.out(' - ' + file + '\n');
- }
-
- public printTypingsWithoutTestName(file: string) {
- this.out(' - \33[33m\33[1m' + file + '\33[0m\n');
- }
-
- public printTypingsWithoutTest(withoutTestTypings: string[]) {
- if (withoutTestTypings.length > 0) {
- this.printTypingsWithoutTestsMessage();
-
- this.printDiv();
- withoutTestTypings.forEach((t) => {
- this.printTypingsWithoutTestName(t);
- });
- }
- }
-
- public printTestComplete(testResult: TestResult): void {
- var reporter = testResult.hostedBy.testReporter;
- if (testResult.success) {
- reporter.printPositiveCharacter(testResult);
- }
- else {
- reporter.printNegativeCharacter(testResult);
- }
- }
-
- public printSuiteComplete(suite: ITestSuite): void {
- this.printBreak();
-
- this.printDiv();
- this.printElapsedTime(suite.timer.asString, suite.timer.time);
- this.printSuccessCount(suite.okTests.length, suite.testResults.length);
- this.printFailedCount(suite.ngTests.length, suite.testResults.length);
- }
-
- public printTests(adding: FileDict): void {
- this.printDiv();
- this.printSubHeader('Testing');
- this.printDiv();
-
- Object.keys(adding).sort().map((src) => {
- this.printLine(adding[src].filePathWithName);
- return adding[src];
- });
- }
-
- public printQueue(files: File[]): void {
- this.printDiv();
- this.printSubHeader('Queued for testing');
- this.printDiv();
-
- files.forEach((file) => {
- this.printLine(file.filePathWithName);
- });
- }
-
- public printTestAll(): void {
- this.printDiv();
- this.printSubHeader('Ignoring changes, testing all files');
- }
-
- public printFiles(files: File[]): void {
- this.printDiv();
- this.printSubHeader('Files');
- this.printDiv();
-
- files.forEach((file) => {
- this.printLine(file.filePathWithName);
- file.references.forEach((file) => {
- this.printElement(file.filePathWithName);
- });
- });
- }
-
- public printMissing(index: FileIndex, refMap: FileArrDict): void {
- this.printDiv();
- this.printSubHeader('Missing references');
- this.printDiv();
-
- Object.keys(refMap).sort().forEach((src) => {
- var ref = index.getFile(src);
- this.printLine('\33[31m\33[1m' + ref.filePathWithName + '\33[0m');
- refMap[src].forEach((file) => {
- this.printElement(file.filePathWithName);
- });
- });
- }
-
- public printAllChanges(paths: string[]): void {
- this.printSubHeader('All changes');
- this.printDiv();
-
- paths.sort().forEach((line) => {
- this.printLine(line);
- });
- }
-
- public printRelChanges(changeMap: FileDict): void {
- this.printDiv();
- this.printSubHeader('Interesting files');
- this.printDiv();
-
- Object.keys(changeMap).sort().forEach((src) => {
- this.printLine(changeMap[src].filePathWithName);
- });
- }
-
- public printRemovals(changeMap: FileDict): void {
- this.printDiv();
- this.printSubHeader('Removed files');
- this.printDiv();
-
- Object.keys(changeMap).sort().forEach((src) => {
- this.printLine(changeMap[src].filePathWithName);
- });
- }
-
- public printRefMap(index: FileIndex, refMap: FileArrDict): void {
- this.printDiv();
- this.printSubHeader('Referring');
- this.printDiv();
-
- Object.keys(refMap).sort().forEach((src) => {
- var ref = index.getFile(src);
- this.printLine(ref.filePathWithName);
- refMap[src].forEach((file) => {
- this.printLine(' - ' + file.filePathWithName);
- });
- });
- }
- }
-}
diff --git a/_infrastructure/tests/src/reporter/reporter.ts b/_infrastructure/tests/src/reporter/reporter.ts
deleted file mode 100644
index 736ac413cc..0000000000
--- a/_infrastructure/tests/src/reporter/reporter.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-///
-///
-
-module DT {
- /////////////////////////////////
- // Test reporter interface
- // for example, . and x
- /////////////////////////////////
- export interface ITestReporter {
- printPositiveCharacter(testResult: TestResult):void;
- printNegativeCharacter(testResult: TestResult):void;
- }
-
- /////////////////////////////////
- // Default test reporter
- /////////////////////////////////
- export class DefaultTestReporter implements ITestReporter {
-
- index = 0;
-
- constructor(public print: Print) {
- }
-
- public printPositiveCharacter(testResult: TestResult) {
- this.print.out('\33[36m\33[1m' + '.' + '\33[0m');
- this.index++;
- this.printBreakIfNeeded(this.index);
- }
-
- public printNegativeCharacter( testResult: TestResult) {
- this.print.out('x');
- this.index++;
- this.printBreakIfNeeded(this.index);
- }
-
- private printBreakIfNeeded(index: number) {
- if (index % this.print.WIDTH === 0) {
- this.print.printBreak();
- }
- }
- }
-}
diff --git a/_infrastructure/tests/src/suite/suite.ts b/_infrastructure/tests/src/suite/suite.ts
deleted file mode 100644
index 8624da0d37..0000000000
--- a/_infrastructure/tests/src/suite/suite.ts
+++ /dev/null
@@ -1,82 +0,0 @@
-///
-
-module DT {
- 'use strict';
-
- var Promise: typeof Promise = require('bluebird');
-
- /////////////////////////////////
- // The interface for test suite
- /////////////////////////////////
- export interface ITestSuite {
- testSuiteName:string;
- errorHeadline:string;
- filterTargetFiles(files: File[]): Promise;
-
- start(targetFiles: File[], testCallback: (result: TestResult, index: number) => void): Promise;
-
- testResults:TestResult[];
- okTests:TestResult[];
- ngTests:TestResult[];
- timer:Timer;
-
- testReporter:ITestReporter;
- printErrorCount:boolean;
- }
-
- /////////////////////////////////
- // Base class for test suite
- /////////////////////////////////
- export class TestSuiteBase implements ITestSuite {
- timer: Timer = new Timer();
- testResults: TestResult[] = [];
- testReporter: ITestReporter;
- printErrorCount = true;
- queue: TestQueue;
-
- constructor(public options: ITestRunnerOptions, public testSuiteName: string, public errorHeadline: string) {
- this.queue = new TestQueue(options.concurrent);
- }
-
- public filterTargetFiles(files: File[]): Promise {
- throw new Error('please implement this method');
- }
-
- public start(targetFiles: File[], testCallback: (result: TestResult) => void): Promise {
- this.timer.start();
-
- return this.filterTargetFiles(targetFiles).then((targetFiles) => {
- // tests get queued for multi-threading
- return Promise.all(targetFiles.map((targetFile) => {
- return this.runTest(targetFile).then((result) => {
- testCallback(result);
- });
- }));
- }).then(() => {
- this.timer.end();
- return this;
- });
- }
-
- public runTest(targetFile: File): Promise {
- return this.queue.run(new Test(this, targetFile, {
- tscVersion: this.options.tscVersion
- })).then((result) => {
- this.testResults.push(result);
- return result;
- });
- }
-
- public get okTests(): TestResult[] {
- return this.testResults.filter((r) => {
- return r.success;
- });
- }
-
- public get ngTests(): TestResult[] {
- return this.testResults.filter((r) => {
- return !r.success
- });
- }
- }
-}
diff --git a/_infrastructure/tests/src/suite/syntax.ts b/_infrastructure/tests/src/suite/syntax.ts
deleted file mode 100644
index 915fd18d07..0000000000
--- a/_infrastructure/tests/src/suite/syntax.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-///
-///
-
-module DT {
- 'use strict';
-
- var Promise: typeof Promise = require('bluebird');
-
- var endDts = /\w\.d\.ts$/i;
-
- /////////////////////////////////
- // .d.ts syntax inspection
- /////////////////////////////////
- export class SyntaxChecking extends TestSuiteBase {
-
- constructor(options: ITestRunnerOptions) {
- super(options, 'Syntax checking', 'Syntax error');
- }
-
- public filterTargetFiles(files: File[]): Promise {
- return Promise.cast(files.filter((file) => {
- return endDts.test(file.filePathWithName);
- }));
- }
- }
-}
diff --git a/_infrastructure/tests/src/suite/testEval.ts b/_infrastructure/tests/src/suite/testEval.ts
deleted file mode 100644
index abc4d50935..0000000000
--- a/_infrastructure/tests/src/suite/testEval.ts
+++ /dev/null
@@ -1,26 +0,0 @@
-///
-///
-
-module DT {
- 'use strict';
-
- var Promise: typeof Promise = require('bluebird');
-
- var endTestDts = /\w-tests?\.ts$/i;
-
- /////////////////////////////////
- // Compile with *-tests.ts
- /////////////////////////////////
- export class TestEval extends TestSuiteBase {
-
- constructor(options) {
- super(options, 'Typing tests', 'Failed tests');
- }
-
- public filterTargetFiles(files: File[]): Promise {
- return Promise.cast(files.filter((file) => {
- return endTestDts.test(file.filePathWithName);
- }));
- }
- }
-}
diff --git a/_infrastructure/tests/src/suite/tscParams.ts b/_infrastructure/tests/src/suite/tscParams.ts
deleted file mode 100644
index 12e3f46017..0000000000
--- a/_infrastructure/tests/src/suite/tscParams.ts
+++ /dev/null
@@ -1,59 +0,0 @@
-///
-///
-
-module DT {
- 'use strict';
-
- var fs = require('fs');
- var Promise: typeof Promise = require('bluebird');
-
- /////////////////////////////////
- // Try compile without .tscparams
- // It may indicate that it is compatible with --noImplicitAny maybe...
- /////////////////////////////////
- export class FindNotRequiredTscparams extends TestSuiteBase {
- testReporter: ITestReporter;
- printErrorCount = false;
-
- constructor(options: ITestRunnerOptions, private print: Print) {
- super(options, 'Find not required .tscparams files', 'New arrival!');
-
- this.testReporter = {
- printPositiveCharacter: (testResult: TestResult) => {
- this.print
- .clearCurrentLine()
- .printTypingsWithoutTestName(testResult.targetFile.filePathWithName);
- },
- printNegativeCharacter: (testResult: TestResult) => {
- }
- }
- }
-
- public filterTargetFiles(files: File[]): Promise {
- return Promise.filter(files, (file) => {
- return new Promise((resolve) => {
- fs.exists(file.filePathWithName + '.tscparams', resolve);
- });
- });
- }
-
- public runTest(targetFile: File): Promise {
- this.print.clearCurrentLine().out(targetFile.filePathWithName);
-
- return this.queue.run(new Test(this, targetFile, {
- tscVersion: this.options.tscVersion,
- useTscParams: false,
- checkNoImplicitAny: true
- })).then((result) => {
- this.testResults.push(result);
- this.print.clearCurrentLine();
- return result
- });
- }
-
- public get ngTests(): TestResult[] {
- // Do not show ng test results
- return [];
- }
- }
-}
diff --git a/_infrastructure/tests/src/timer.ts b/_infrastructure/tests/src/timer.ts
deleted file mode 100644
index 0f74743471..0000000000
--- a/_infrastructure/tests/src/timer.ts
+++ /dev/null
@@ -1,50 +0,0 @@
-///
-///
-
-module DT {
- 'use strict';
-
- /////////////////////////////////
- // Timer.start starts a timer
- // Timer.end stops the timer and sets asString to the pretty print value
- /////////////////////////////////
- export class Timer {
- startTime: number;
- time = 0;
- asString: string = ''
-
- public start() {
- this.time = 0;
- this.startTime = this.now();
- this.asString = '';
- }
-
- public now(): number {
- return Date.now();
- }
-
- public end() {
- this.time = (this.now() - this.startTime) / 1000;
- this.asString = Timer.prettyDate(this.startTime, this.now());
- }
-
- public static prettyDate(date1: number, date2: number): string {
- var diff = ((date2 - date1) / 1000);
- var day_diff = Math.floor(diff / 86400);
-
- if (isNaN(day_diff) || day_diff < 0 || day_diff >= 31) {
- return null;
- }
-
- return ( (day_diff == 0 && (
- diff < 60 && (diff + ' seconds') ||
- diff < 120 && '1 minute' ||
- diff < 3600 && Math.floor(diff / 60) + ' minutes' ||
- diff < 7200 && '1 hour' ||
- diff < 86400 && Math.floor(diff / 3600) + ' hours') ||
- day_diff == 1 && 'Yesterday' ||
- day_diff < 7 && day_diff + ' days' ||
- day_diff < 31 && Math.ceil(day_diff / 7) + ' weeks'));
- }
- }
-}
diff --git a/_infrastructure/tests/src/tsc.ts b/_infrastructure/tests/src/tsc.ts
deleted file mode 100644
index 9730a1394c..0000000000
--- a/_infrastructure/tests/src/tsc.ts
+++ /dev/null
@@ -1,54 +0,0 @@
-///
-///
-///
-
-module DT {
- 'use strict';
-
- var fs = require('fs');
-
- var Promise: typeof Promise = require('bluebird');
-
- export interface TscExecOptions {
- tscVersion?:string;
- useTscParams?:boolean;
- checkNoImplicitAny?:boolean;
- }
-
- export class Tsc {
- public static run(tsfile: string, options: TscExecOptions): Promise {
- var tscPath;
- return new Promise.attempt(() => {
- options = options || {};
- options.tscVersion = options.tscVersion || DEFAULT_TSC_VERSION;
- if (typeof options.checkNoImplicitAny === 'undefined') {
- options.checkNoImplicitAny = true;
- }
- if (typeof options.useTscParams === 'undefined') {
- options.useTscParams = true;
- }
- return fileExists(tsfile);
- }).then((exists) => {
- if (!exists) {
- throw new Error(tsfile + ' not exists');
- }
- tscPath = './_infrastructure/tests/typescript/' + options.tscVersion + '/tsc.js';
- return fileExists(tscPath);
- }).then((exists) => {
- if (!exists) {
- throw new Error(tscPath + ' is not exists');
- }
- return fileExists(tsfile + '.tscparams');
- }).then((exists) => {
- var command = 'node ' + tscPath + ' --module commonjs ';
- if (options.useTscParams && exists) {
- command += '@' + tsfile + '.tscparams';
- }
- else if (options.checkNoImplicitAny) {
- command += '--noImplicitAny';
- }
- return exec(command, [tsfile]);
- });
- }
- }
-}
diff --git a/_infrastructure/tests/src/util.ts b/_infrastructure/tests/src/util.ts
deleted file mode 100644
index a712bb90cd..0000000000
--- a/_infrastructure/tests/src/util.ts
+++ /dev/null
@@ -1,40 +0,0 @@
-///
-
-module DT {
- 'use strict';
-
- var fs = require('fs');
- var Lazy: LazyJS.LazyStatic = require('lazy.js');
- var Promise: typeof Promise = require('bluebird');
-
- var referenceTagExp = //g;
-
- export function endsWith(str: string, suffix: string) {
- return str.indexOf(suffix, str.length - suffix.length) !== -1;
- }
-
- export function extractReferenceTags(source: string): string[] {
- var ret: string[] = [];
- var match: RegExpExecArray;
-
- if (!referenceTagExp.global) {
- throw new Error('referenceTagExp RegExp must have global flag');
- }
- referenceTagExp.lastIndex = 0;
-
- while ((match = referenceTagExp.exec(source))) {
- if (match.length > 0 && match[1].length > 0) {
- ret.push(match[1]);
- }
- }
- return ret;
- }
-
- export function fileExists(target: string): Promise {
- return new Promise((resolve, reject) => {
- fs.exists(target, (bool: boolean) => {
- resolve(bool);
- });
- });
- }
-}
diff --git a/_infrastructure/tests/typescript/1.0.1/lib.d.ts b/_infrastructure/tests/typescript/1.0.1/lib.d.ts
new file mode 100644
index 0000000000..d3e57e7e63
--- /dev/null
+++ b/_infrastructure/tests/typescript/1.0.1/lib.d.ts
@@ -0,0 +1,14958 @@
+/* *****************************************************************************
+Copyright (c) Microsoft Corporation. All rights reserved.
+Licensed under the Apache License, Version 2.0 (the "License"); you may not use
+this file except in compliance with the License. You may obtain a copy of the
+License at http://www.apache.org/licenses/LICENSE-2.0
+
+THIS CODE IS PROVIDED ON AN *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY IMPLIED
+WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR PURPOSE,
+MERCHANTABLITY OR NON-INFRINGEMENT.
+
+See the Apache Version 2.0 License for specific language governing permissions
+and limitations under the License.
+***************************************************************************** */
+
+///
+
+/////////////////////////////
+/// ECMAScript APIs
+/////////////////////////////
+
+declare var NaN: number;
+declare var Infinity: number;
+
+/**
+ * Evaluates JavaScript code and executes it.
+ * @param x A String value that contains valid JavaScript code.
+ */
+declare function eval(x: string): any;
+
+/**
+ * Converts A string to an integer.
+ * @param s A string to convert into a number.
+ * @param radix A value between 2 and 36 that specifies the base of the number in numString.
+ * If this argument is not supplied, strings with a prefix of '0x' are considered hexadecimal.
+ * All other strings are considered decimal.
+ */
+declare function parseInt(s: string, radix?: number): number;
+
+/**
+ * Converts a string to a floating-point number.
+ * @param string A string that contains a floating-point number.
+ */
+declare function parseFloat(string: string): number;
+
+/**
+ * Returns a Boolean value that indicates whether a value is the reserved value NaN (not a number).
+ * @param number A numeric value.
+ */
+declare function isNaN(number: number): boolean;
+
+/**
+ * Determines whether a supplied number is finite.
+ * @param number Any numeric value.
+ */
+declare function isFinite(number: number): boolean;
+
+/**
+ * Gets the unencoded version of an encoded Uniform Resource Identifier (URI).
+ * @param encodedURI A value representing an encoded URI.
+ */
+declare function decodeURI(encodedURI: string): string;
+
+/**
+ * Gets the unencoded version of an encoded component of a Uniform Resource Identifier (URI).
+ * @param encodedURIComponent A value representing an encoded URI component.
+ */
+declare function decodeURIComponent(encodedURIComponent: string): string;
+
+/**
+ * Encodes a text string as a valid Uniform Resource Identifier (URI)
+ * @param uri A value representing an encoded URI.
+ */
+declare function encodeURI(uri: string): string;
+
+/**
+ * Encodes a text string as a valid component of a Uniform Resource Identifier (URI).
+ * @param uriComponent A value representing an encoded URI component.
+ */
+declare function encodeURIComponent(uriComponent: string): string;
+
+interface PropertyDescriptor {
+ configurable?: boolean;
+ enumerable?: boolean;
+ value?: any;
+ writable?: boolean;
+ get? (): any;
+ set? (v: any): void;
+}
+
+interface PropertyDescriptorMap {
+ [s: string]: PropertyDescriptor;
+}
+
+interface Object {
+ /** The initial value of Object.prototype.constructor is the standard built-in Object constructor. */
+ constructor: Function;
+
+ /** Returns a string representation of an object. */
+ toString(): string;
+
+ /** Returns a date converted to a string using the current locale. */
+ toLocaleString(): string;
+
+ /** Returns the primitive value of the specified object. */
+ valueOf(): Object;
+
+ /**
+ * Determines whether an object has a property with the specified name.
+ * @param v A property name.
+ */
+ hasOwnProperty(v: string): boolean;
+
+ /**
+ * Determines whether an object exists in another object's prototype chain.
+ * @param v Another object whose prototype chain is to be checked.
+ */
+ isPrototypeOf(v: Object): boolean;
+
+ /**
+ * Determines whether a specified property is enumerable.
+ * @param v A property name.
+ */
+ propertyIsEnumerable(v: string): boolean;
+}
+
+/**
+ * Provides functionality common to all JavaScript objects.
+ */
+declare var Object: {
+ new (value?: any): Object;
+ (): any;
+ (value: any): any;
+
+ /** A reference to the prototype for a class of objects. */
+ prototype: Object;
+
+ /**
+ * Returns the prototype of an object.
+ * @param o The object that references the prototype.
+ */
+ getPrototypeOf(o: any): any;
+
+ /**
+ * Gets the own property descriptor of the specified object.
+ * An own property descriptor is one that is defined directly on the object and is not inherited from the object's prototype.
+ * @param o Object that contains the property.
+ * @param p Name of the property.
+ */
+ getOwnPropertyDescriptor(o: any, p: string): PropertyDescriptor;
+
+ /**
+ * Returns the names of the own properties of an object. The own properties of an object are those that are defined directly
+ * on that object, and are not inherited from the object's prototype. The properties of an object include both fields (objects) and functions.
+ * @param o Object that contains the own properties.
+ */
+ getOwnPropertyNames(o: any): string[];
+
+ /**
+ * Creates an object that has the specified prototype, and that optionally contains specified properties.
+ * @param o Object to use as a prototype. May be null
+ * @param properties JavaScript object that contains one or more property descriptors.
+ */
+ create(o: any, properties?: PropertyDescriptorMap): any;
+
+ /**
+ * Adds a property to an object, or modifies attributes of an existing property.
+ * @param o Object on which to add or modify the property. This can be a native JavaScript object (that is, a user-defined object or a built in object) or a DOM object.
+ * @param p The property name.
+ * @param attributes Descriptor for the property. It can be for a data property or an accessor property.
+ */
+ defineProperty(o: any, p: string, attributes: PropertyDescriptor): any;
+
+ /**
+ * Adds one or more properties to an object, and/or modifies attributes of existing properties.
+ * @param o Object on which to add or modify the properties. This can be a native JavaScript object or a DOM object.
+ * @param properties JavaScript object that contains one or more descriptor objects. Each descriptor object describes a data property or an accessor property.
+ */
+ defineProperties(o: any, properties: PropertyDescriptorMap): any;
+
+ /**
+ * Prevents the modification of attributes of existing properties, and prevents the addition of new properties.
+ * @param o Object on which to lock the attributes.
+ */
+ seal(o: any): any;
+
+ /**
+ * Prevents the modification of existing property attributes and values, and prevents the addition of new properties.
+ * @param o Object on which to lock the attributes.
+ */
+ freeze(o: any): any;
+
+ /**
+ * Prevents the addition of new properties to an object.
+ * @param o Object to make non-extensible.
+ */
+ preventExtensions(o: any): any;
+
+ /**
+ * Returns true if existing property attributes cannot be modified in an object and new properties cannot be added to the object.
+ * @param o Object to test.
+ */
+ isSealed(o: any): boolean;
+
+ /**
+ * Returns true if existing property attributes and values cannot be modified in an object, and new properties cannot be added to the object.
+ * @param o Object to test.
+ */
+ isFrozen(o: any): boolean;
+
+ /**
+ * Returns a value that indicates whether new properties can be added to an object.
+ * @param o Object to test.
+ */
+ isExtensible(o: any): boolean;
+
+ /**
+ * Returns the names of the enumerable properties and methods of an object.
+ * @param o Object that contains the properties and methods. This can be an object that you created or an existing Document Object Model (DOM) object.
+ */
+ keys(o: any): string[];
+}
+
+/**
+ * Creates a new function.
+ */
+interface Function {
+ /**
+ * Calls the function, substituting the specified object for the this value of the function, and the specified array for the arguments of the function.
+ * @param thisArg The object to be used as the this object.
+ * @param argArray A set of arguments to be passed to the function.
+ */
+ apply(thisArg: any, argArray?: any): any;
+
+ /**
+ * Calls a method of an object, substituting another object for the current object.
+ * @param thisArg The object to be used as the current object.
+ * @param argArray A list of arguments to be passed to the method.
+ */
+ call(thisArg: any, ...argArray: any[]): any;
+
+ /**
+ * For a given function, creates a bound function that has the same body as the original function.
+ * The this object of the bound function is associated with the specified object, and has the specified initial parameters.
+ * @param thisArg An object to which the this keyword can refer inside the new function.
+ * @param argArray A list of arguments to be passed to the new function.
+ */
+ bind(thisArg: any, ...argArray: any[]): any;
+
+ prototype: any;
+ length: number;
+
+ // Non-standard extensions
+ arguments: any;
+ caller: Function;
+}
+
+declare var Function: {
+ /**
+ * Creates a new function.
+ * @param args A list of arguments the function accepts.
+ */
+ new (...args: string[]): Function;
+ (...args: string[]): Function;
+ prototype: Function;
+}
+
+interface IArguments {
+ [index: number]: any;
+ length: number;
+ callee: Function;
+}
+
+interface String {
+ /** Returns a string representation of a string. */
+ toString(): string;
+
+ /**
+ * Returns the character at the specified index.
+ * @param pos The zero-based index of the desired character.
+ */
+ charAt(pos: number): string;
+
+ /**
+ * Returns the Unicode value of the character at the specified location.
+ * @param index The zero-based index of the desired character. If there is no character at the specified index, NaN is returned.
+ */
+ charCodeAt(index: number): number;
+
+ /**
+ * Returns a string that contains the concatenation of two or more strings.
+ * @param strings The strings to append to the end of the string.
+ */
+ concat(...strings: string[]): string;
+
+ /**
+ * Returns the position of the first occurrence of a substring.
+ * @param searchString The substring to search for in the string
+ * @param position The index at which to begin searching the String object. If omitted, search starts at the beginning of the string.
+ */
+ indexOf(searchString: string, position?: number): number;
+
+ /**
+ * Returns the last occurrence of a substring in the string.
+ * @param searchString The substring to search for.
+ * @param position The index at which to begin searching. If omitted, the search begins at the end of the string.
+ */
+ lastIndexOf(searchString: string, position?: number): number;
+
+ /**
+ * Determines whether two strings are equivalent in the current locale.
+ * @param that String to compare to target string
+ */
+ localeCompare(that: string): number;
+
+ /**
+ * Matches a string with a regular expression, and returns an array containing the results of that search.
+ * @param regexp A variable name or string literal containing the regular expression pattern and flags.
+ */
+ match(regexp: string): string[];
+
+ /**
+ * Matches a string with a regular expression, and returns an array containing the results of that search.
+ * @param regexp A regular expression object that contains the regular expression pattern and applicable flags.
+ */
+ match(regexp: RegExp): string[];
+
+ /**
+ * Replaces text in a string, using a regular expression or search string.
+ * @param searchValue A String object or string literal that represents the regular expression
+ * @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj.
+ */
+ replace(searchValue: string, replaceValue: string): string;
+
+ /**
+ * Replaces text in a string, using a regular expression or search string.
+ * @param searchValue A String object or string literal that represents the regular expression
+ * @param replaceValue A function that returns the replacement text.
+ */
+ replace(searchValue: string, replaceValue: (substring: string, ...args: any[]) => string): string;
+
+ /**
+ * Replaces text in a string, using a regular expression or search string.
+ * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
+ * @param replaceValue A String object or string literal containing the text to replace for every successful match of rgExp in stringObj.
+ */
+ replace(searchValue: RegExp, replaceValue: string): string;
+
+ /**
+ * Replaces text in a string, using a regular expression or search string.
+ * @param searchValue A Regular Expression object containing the regular expression pattern and applicable flags
+ * @param replaceValue A function that returns the replacement text.
+ */
+ replace(searchValue: RegExp, replaceValue: (substring: string, ...args: any[]) => string): string;
+
+ /**
+ * Finds the first substring match in a regular expression search.
+ * @param regexp The regular expression pattern and applicable flags.
+ */
+ search(regexp: string): number;
+
+ /**
+ * Finds the first substring match in a regular expression search.
+ * @param regexp The regular expression pattern and applicable flags.
+ */
+ search(regexp: RegExp): number;
+
+ /**
+ * Returns a section of a string.
+ * @param start The index to the beginning of the specified portion of stringObj.
+ * @param end The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end.
+ * If this value is not specified, the substring continues to the end of stringObj.
+ */
+ slice(start?: number, end?: number): string;
+
+ /**
+ * Split a string into substrings using the specified separator and return them as an array.
+ * @param separator A string that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
+ * @param limit A value used to limit the number of elements returned in the array.
+ */
+ split(separator: string, limit?: number): string[];
+
+ /**
+ * Split a string into substrings using the specified separator and return them as an array.
+ * @param separator A Regular Express that identifies character or characters to use in separating the string. If omitted, a single-element array containing the entire string is returned.
+ * @param limit A value used to limit the number of elements returned in the array.
+ */
+ split(separator: RegExp, limit?: number): string[];
+
+ /**
+ * Returns the substring at the specified location within a String object.
+ * @param start The zero-based index number indicating the beginning of the substring.
+ * @param end Zero-based index number indicating the end of the substring. The substring includes the characters up to, but not including, the character indicated by end.
+ * If end is omitted, the characters from start through the end of the original string are returned.
+ */
+ substring(start: number, end?: number): string;
+
+ /** Converts all the alphabetic characters in a string to lowercase. */
+ toLowerCase(): string;
+
+ /** Converts all alphabetic characters to lowercase, taking into account the host environment's current locale. */
+ toLocaleLowerCase(): string;
+
+ /** Converts all the alphabetic characters in a string to uppercase. */
+ toUpperCase(): string;
+
+ /** Returns a string where all alphabetic characters have been converted to uppercase, taking into account the host environment's current locale. */
+ toLocaleUpperCase(): string;
+
+ /** Removes the leading and trailing white space and line terminator characters from a string. */
+ trim(): string;
+
+ /** Returns the length of a String object. */
+ length: number;
+
+ // IE extensions
+ /**
+ * Gets a substring beginning at the specified location and having the specified length.
+ * @param from The starting position of the desired substring. The index of the first character in the string is zero.
+ * @param length The number of characters to include in the returned substring.
+ */
+ substr(from: number, length?: number): string;
+
+ [index: number]: string;
+}
+
+/**
+ * Allows manipulation and formatting of text strings and determination and location of substrings within strings.
+ */
+declare var String: {
+ new (value?: any): String;
+ (value?: any): string;
+ prototype: String;
+ fromCharCode(...codes: number[]): string;
+}
+
+interface Boolean {
+}
+declare var Boolean: {
+ new (value?: any): Boolean;
+ (value?: any): boolean;
+ prototype: Boolean;
+}
+
+interface Number {
+ /**
+ * Returns a string representation of an object.
+ * @param radix Specifies a radix for converting numeric values to strings. This value is only used for numbers.
+ */
+ toString(radix?: number): string;
+
+ /**
+ * Returns a string representing a number in fixed-point notation.
+ * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
+ */
+ toFixed(fractionDigits?: number): string;
+
+ /**
+ * Returns a string containing a number represented in exponential notation.
+ * @param fractionDigits Number of digits after the decimal point. Must be in the range 0 - 20, inclusive.
+ */
+ toExponential(fractionDigits?: number): string;
+
+ /**
+ * Returns a string containing a number represented either in exponential or fixed-point notation with a specified number of digits.
+ * @param precision Number of significant digits. Must be in the range 1 - 21, inclusive.
+ */
+ toPrecision(precision?: number): string;
+}
+
+/** An object that represents a number of any kind. All JavaScript numbers are 64-bit floating-point numbers. */
+declare var Number: {
+ new (value?: any): Number;
+ (value?: any): number;
+ prototype: Number;
+
+ /** The largest number that can be represented in JavaScript. Equal to approximately 1.79E+308. */
+ MAX_VALUE: number;
+
+ /** The closest number to zero that can be represented in JavaScript. Equal to approximately 5.00E-324. */
+ MIN_VALUE: number;
+
+ /**
+ * A value that is not a number.
+ * In equality comparisons, NaN does not equal any value, including itself. To test whether a value is equivalent to NaN, use the isNaN function.
+ */
+ NaN: number;
+
+ /**
+ * A value that is less than the largest negative number that can be represented in JavaScript.
+ * JavaScript displays NEGATIVE_INFINITY values as -infinity.
+ */
+ NEGATIVE_INFINITY: number;
+
+ /**
+ * A value greater than the largest number that can be represented in JavaScript.
+ * JavaScript displays POSITIVE_INFINITY values as infinity.
+ */
+ POSITIVE_INFINITY: number;
+}
+
+interface Math {
+ /** The mathematical constant e. This is Euler's number, the base of natural logarithms. */
+ E: number;
+ /** The natural logarithm of 10. */
+ LN10: number;
+ /** The natural logarithm of 2. */
+ LN2: number;
+ /** The base-2 logarithm of e. */
+ LOG2E: number;
+ /** The base-10 logarithm of e. */
+ LOG10E: number;
+ /** Pi. This is the ratio of the circumference of a circle to its diameter. */
+ PI: number;
+ /** The square root of 0.5, or, equivalently, one divided by the square root of 2. */
+ SQRT1_2: number;
+ /** The square root of 2. */
+ SQRT2: number;
+ /**
+ * Returns the absolute value of a number (the value without regard to whether it is positive or negative).
+ * For example, the absolute value of -5 is the same as the absolute value of 5.
+ * @param x A numeric expression for which the absolute value is needed.
+ */
+ abs(x: number): number;
+ /**
+ * Returns the arc cosine (or inverse cosine) of a number.
+ * @param x A numeric expression.
+ */
+ acos(x: number): number;
+ /**
+ * Returns the arcsine of a number.
+ * @param x A numeric expression.
+ */
+ asin(x: number): number;
+ /**
+ * Returns the arctangent of a number.
+ * @param x A numeric expression for which the arctangent is needed.
+ */
+ atan(x: number): number;
+ /**
+ * Returns the angle (in radians) from the X axis to a point (y,x).
+ * @param y A numeric expression representing the cartesian y-coordinate.
+ * @param x A numeric expression representing the cartesian x-coordinate.
+ */
+ atan2(y: number, x: number): number;
+ /**
+ * Returns the smallest number greater than or equal to its numeric argument.
+ * @param x A numeric expression.
+ */
+ ceil(x: number): number;
+ /**
+ * Returns the cosine of a number.
+ * @param x A numeric expression that contains an angle measured in radians.
+ */
+ cos(x: number): number;
+ /**
+ * Returns e (the base of natural logarithms) raised to a power.
+ * @param x A numeric expression representing the power of e.
+ */
+ exp(x: number): number;
+ /**
+ * Returns the greatest number less than or equal to its numeric argument.
+ * @param x A numeric expression.
+ */
+ floor(x: number): number;
+ /**
+ * Returns the natural logarithm (base e) of a number.
+ * @param x A numeric expression.
+ */
+ log(x: number): number;
+ /**
+ * Returns the larger of a set of supplied numeric expressions.
+ * @param values Numeric expressions to be evaluated.
+ */
+ max(...values: number[]): number;
+ /**
+ * Returns the smaller of a set of supplied numeric expressions.
+ * @param values Numeric expressions to be evaluated.
+ */
+ min(...values: number[]): number;
+ /**
+ * Returns the value of a base expression taken to a specified power.
+ * @param x The base value of the expression.
+ * @param y The exponent value of the expression.
+ */
+ pow(x: number, y: number): number;
+ /** Returns a pseudorandom number between 0 and 1. */
+ random(): number;
+ /**
+ * Returns a supplied numeric expression rounded to the nearest number.
+ * @param x The value to be rounded to the nearest number.
+ */
+ round(x: number): number;
+ /**
+ * Returns the sine of a number.
+ * @param x A numeric expression that contains an angle measured in radians.
+ */
+ sin(x: number): number;
+ /**
+ * Returns the square root of a number.
+ * @param x A numeric expression.
+ */
+ sqrt(x: number): number;
+ /**
+ * Returns the tangent of a number.
+ * @param x A numeric expression that contains an angle measured in radians.
+ */
+ tan(x: number): number;
+}
+/** An intrinsic object that provides basic mathematics functionality and constants. */
+declare var Math: Math;
+
+/** Enables basic storage and retrieval of dates and times. */
+interface Date {
+ /** Returns a string representation of a date. The format of the string depends on the locale. */
+ toString(): string;
+ /** Returns a date as a string value. */
+ toDateString(): string;
+ /** Returns a time as a string value. */
+ toTimeString(): string;
+ /** Returns a value as a string value appropriate to the host environment's current locale. */
+ toLocaleString(): string;
+ /** Returns a date as a string value appropriate to the host environment's current locale. */
+ toLocaleDateString(): string;
+ /** Returns a time as a string value appropriate to the host environment's current locale. */
+ toLocaleTimeString(): string;
+ /** Returns the stored time value in milliseconds since midnight, January 1, 1970 UTC. */
+ valueOf(): number;
+ /** Gets the time value in milliseconds. */
+ getTime(): number;
+ /** Gets the year, using local time. */
+ getFullYear(): number;
+ /** Gets the year using Universal Coordinated Time (UTC). */
+ getUTCFullYear(): number;
+ /** Gets the month, using local time. */
+ getMonth(): number;
+ /** Gets the month of a Date object using Universal Coordinated Time (UTC). */
+ getUTCMonth(): number;
+ /** Gets the day-of-the-month, using local time. */
+ getDate(): number;
+ /** Gets the day-of-the-month, using Universal Coordinated Time (UTC). */
+ getUTCDate(): number;
+ /** Gets the day of the week, using local time. */
+ getDay(): number;
+ /** Gets the day of the week using Universal Coordinated Time (UTC). */
+ getUTCDay(): number;
+ /** Gets the hours in a date, using local time. */
+ getHours(): number;
+ /** Gets the hours value in a Date object using Universal Coordinated Time (UTC). */
+ getUTCHours(): number;
+ /** Gets the minutes of a Date object, using local time. */
+ getMinutes(): number;
+ /** Gets the minutes of a Date object using Universal Coordinated Time (UTC). */
+ getUTCMinutes(): number;
+ /** Gets the seconds of a Date object, using local time. */
+ getSeconds(): number;
+ /** Gets the seconds of a Date object using Universal Coordinated Time (UTC). */
+ getUTCSeconds(): number;
+ /** Gets the milliseconds of a Date, using local time. */
+ getMilliseconds(): number;
+ /** Gets the milliseconds of a Date object using Universal Coordinated Time (UTC). */
+ getUTCMilliseconds(): number;
+ /** Gets the difference in minutes between the time on the local computer and Universal Coordinated Time (UTC). */
+ getTimezoneOffset(): number;
+ /**
+ * Sets the date and time value in the Date object.
+ * @param time A numeric value representing the number of elapsed milliseconds since midnight, January 1, 1970 GMT.
+ */
+ setTime(time: number): number;
+ /**
+ * Sets the milliseconds value in the Date object using local time.
+ * @param ms A numeric value equal to the millisecond value.
+ */
+ setMilliseconds(ms: number): number;
+ /**
+ * Sets the milliseconds value in the Date object using Universal Coordinated Time (UTC).
+ * @param ms A numeric value equal to the millisecond value.
+ */
+ setUTCMilliseconds(ms: number): number;
+
+ /**
+ * Sets the seconds value in the Date object using local time.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setSeconds(sec: number, ms?: number): number;
+ /**
+ * Sets the seconds value in the Date object using Universal Coordinated Time (UTC).
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setUTCSeconds(sec: number, ms?: number): number;
+ /**
+ * Sets the minutes value in the Date object using local time.
+ * @param min A numeric value equal to the minutes value.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setMinutes(min: number, sec?: number, ms?: number): number;
+ /**
+ * Sets the minutes value in the Date object using Universal Coordinated Time (UTC).
+ * @param min A numeric value equal to the minutes value.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setUTCMinutes(min: number, sec?: number, ms?: number): number;
+ /**
+ * Sets the hour value in the Date object using local time.
+ * @param hours A numeric value equal to the hours value.
+ * @param min A numeric value equal to the minutes value.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setHours(hours: number, min?: number, sec?: number, ms?: number): number;
+ /**
+ * Sets the hours value in the Date object using Universal Coordinated Time (UTC).
+ * @param hours A numeric value equal to the hours value.
+ * @param min A numeric value equal to the minutes value.
+ * @param sec A numeric value equal to the seconds value.
+ * @param ms A numeric value equal to the milliseconds value.
+ */
+ setUTCHours(hours: number, min?: number, sec?: number, ms?: number): number;
+ /**
+ * Sets the numeric day-of-the-month value of the Date object using local time.
+ * @param date A numeric value equal to the day of the month.
+ */
+ setDate(date: number): number;
+ /**
+ * Sets the numeric day of the month in the Date object using Universal Coordinated Time (UTC).
+ * @param date A numeric value equal to the day of the month.
+ */
+ setUTCDate(date: number): number;
+ /**
+ * Sets the month value in the Date object using local time.
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
+ * @param date A numeric value representing the day of the month. If this value is not supplied, the value from a call to the getDate method is used.
+ */
+ setMonth(month: number, date?: number): number;
+ /**
+ * Sets the month value in the Date object using Universal Coordinated Time (UTC).
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively.
+ * @param date A numeric value representing the day of the month. If it is not supplied, the value from a call to the getUTCDate method is used.
+ */
+ setUTCMonth(month: number, date?: number): number;
+ /**
+ * Sets the year of the Date object using local time.
+ * @param year A numeric value for the year.
+ * @param month A zero-based numeric value for the month (0 for January, 11 for December). Must be specified if numDate is specified.
+ * @param date A numeric value equal for the day of the month.
+ */
+ setFullYear(year: number, month?: number, date?: number): number;
+ /**
+ * Sets the year value in the Date object using Universal Coordinated Time (UTC).
+ * @param year A numeric value equal to the year.
+ * @param month A numeric value equal to the month. The value for January is 0, and other month values follow consecutively. Must be supplied if numDate is supplied.
+ * @param date A numeric value equal to the day of the month.
+ */
+ setUTCFullYear(year: number, month?: number, date?: number): number;
+ /** Returns a date converted to a string using Universal Coordinated Time (UTC). */
+ toUTCString(): string;
+ /** Returns a date as a string value in ISO format. */
+ toISOString(): string;
+ /** Used by the JSON.stringify method to enable the transformation of an object's data for JavaScript Object Notation (JSON) serialization. */
+ toJSON(key?: any): string;
+}
+
+declare var Date: {
+ new (): Date;
+ new (value: number): Date;
+ new (value: string): Date;
+ new (year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): Date;
+ (): string;
+ prototype: Date;
+ /**
+ * Parses a string containing a date, and returns the number of milliseconds between that date and midnight, January 1, 1970.
+ * @param s A date string
+ */
+ parse(s: string): number;
+ /**
+ * Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
+ * @param year The full year designation is required for cross-century date accuracy. If year is between 0 and 99 is used, then year is assumed to be 1900 + year.
+ * @param month The month as an number between 0 and 11 (January to December).
+ * @param date The date as an number between 1 and 31.
+ * @param hours Must be supplied if minutes is supplied. An number from 0 to 23 (midnight to 11pm) that specifies the hour.
+ * @param minutes Must be supplied if seconds is supplied. An number from 0 to 59 that specifies the minutes.
+ * @param seconds Must be supplied if milliseconds is supplied. An number from 0 to 59 that specifies the seconds.
+ * @param ms An number from 0 to 999 that specifies the milliseconds.
+ */
+ UTC(year: number, month: number, date?: number, hours?: number, minutes?: number, seconds?: number, ms?: number): number;
+ now(): number;
+}
+
+interface RegExpExecArray {
+ [index: number]: string;
+ length: number;
+
+ index: number;
+ input: string;
+
+ toString(): string;
+ toLocaleString(): string;
+ concat(...items: string[][]): string[];
+ join(separator?: string): string;
+ pop(): string;
+ push(...items: string[]): number;
+ reverse(): string[];
+ shift(): string;
+ slice(start?: number, end?: number): string[];
+ sort(compareFn?: (a: string, b: string) => number): string[];
+ splice(start: number): string[];
+ splice(start: number, deleteCount: number, ...items: string[]): string[];
+ unshift(...items: string[]): number;
+
+ indexOf(searchElement: string, fromIndex?: number): number;
+ lastIndexOf(searchElement: string, fromIndex?: number): number;
+ every(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): boolean;
+ some(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): boolean;
+ forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
+ map(callbackfn: (value: string, index: number, array: string[]) => any, thisArg?: any): any[];
+ filter(callbackfn: (value: string, index: number, array: string[]) => boolean, thisArg?: any): string[];
+ reduce(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: string[]) => any, initialValue?: any): any;
+ reduceRight(callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: string[]) => any, initialValue?: any): any;
+}
+
+
+interface RegExp {
+ /**
+ * Executes a search on a string using a regular expression pattern, and returns an array containing the results of that search.
+ * @param string The String object or string literal on which to perform the search.
+ */
+ exec(string: string): RegExpExecArray;
+
+ /**
+ * Returns a Boolean value that indicates whether or not a pattern exists in a searched string.
+ * @param string String on which to perform the search.
+ */
+ test(string: string): boolean;
+
+ /** Returns a copy of the text of the regular expression pattern. Read-only. The rgExp argument is a Regular expression object. It can be a variable name or a literal. */
+ source: string;
+
+ /** Returns a Boolean value indicating the state of the global flag (g) used with a regular expression. Default is false. Read-only. */
+ global: boolean;
+
+ /** Returns a Boolean value indicating the state of the ignoreCase flag (i) used with a regular expression. Default is false. Read-only. */
+ ignoreCase: boolean;
+
+ /** Returns a Boolean value indicating the state of the multiline flag (m) used with a regular expression. Default is false. Read-only. */
+ multiline: boolean;
+
+ lastIndex: number;
+
+ // Non-standard extensions
+ compile(): RegExp;
+}
+declare var RegExp: {
+ new (pattern: string, flags?: string): RegExp;
+ (pattern: string, flags?: string): RegExp;
+
+ // Non-standard extensions
+ $1: string;
+ $2: string;
+ $3: string;
+ $4: string;
+ $5: string;
+ $6: string;
+ $7: string;
+ $8: string;
+ $9: string;
+ lastMatch: string;
+}
+
+interface Error {
+ name: string;
+ message: string;
+}
+declare var Error: {
+ new (message?: string): Error;
+ (message?: string): Error;
+ prototype: Error;
+}
+
+interface EvalError extends Error {
+}
+declare var EvalError: {
+ new (message?: string): EvalError;
+ (message?: string): EvalError;
+ prototype: EvalError;
+}
+
+interface RangeError extends Error {
+}
+declare var RangeError: {
+ new (message?: string): RangeError;
+ (message?: string): RangeError;
+ prototype: RangeError;
+}
+
+interface ReferenceError extends Error {
+}
+declare var ReferenceError: {
+ new (message?: string): ReferenceError;
+ (message?: string): ReferenceError;
+ prototype: ReferenceError;
+}
+
+interface SyntaxError extends Error {
+}
+declare var SyntaxError: {
+ new (message?: string): SyntaxError;
+ (message?: string): SyntaxError;
+ prototype: SyntaxError;
+}
+
+interface TypeError extends Error {
+}
+declare var TypeError: {
+ new (message?: string): TypeError;
+ (message?: string): TypeError;
+ prototype: TypeError;
+}
+
+interface URIError extends Error {
+}
+declare var URIError: {
+ new (message?: string): URIError;
+ (message?: string): URIError;
+ prototype: URIError;
+}
+
+interface JSON {
+ /**
+ * Converts a JavaScript Object Notation (JSON) string into an object.
+ * @param text A valid JSON string.
+ * @param reviver A function that transforms the results. This function is called for each member of the object.
+ * If a member contains nested objects, the nested objects are transformed before the parent object is.
+ */
+ parse(text: string, reviver?: (key: any, value: any) => any): any;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ */
+ stringify(value: any): string;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ * @param replacer A function that transforms the results.
+ */
+ stringify(value: any, replacer: (key: string, value: any) => any): string;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ * @param replacer Array that transforms the results.
+ */
+ stringify(value: any, replacer: any[]): string;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ * @param replacer A function that transforms the results.
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
+ */
+ stringify(value: any, replacer: (key: string, value: any) => any, space: any): string;
+ /**
+ * Converts a JavaScript value to a JavaScript Object Notation (JSON) string.
+ * @param value A JavaScript value, usually an object or array, to be converted.
+ * @param replacer Array that transforms the results.
+ * @param space Adds indentation, white space, and line break characters to the return-value JSON text to make it easier to read.
+ */
+ stringify(value: any, replacer: any[], space: any): string;
+}
+/**
+ * An intrinsic object that provides functions to convert JavaScript values to and from the JavaScript Object Notation (JSON) format.
+ */
+declare var JSON: JSON;
+
+
+/////////////////////////////
+/// ECMAScript Array API (specially handled by compiler)
+/////////////////////////////
+
+interface Array {
+ /**
+ * Returns a string representation of an array.
+ */
+ toString(): string;
+ toLocaleString(): string;
+ /**
+ * Combines two or more arrays.
+ * @param items Additional items to add to the end of array1.
+ */
+ concat(...items: U[]): T[];
+ /**
+ * Combines two or more arrays.
+ * @param items Additional items to add to the end of array1.
+ */
+ concat(...items: T[]): T[];
+ /**
+ * Adds all the elements of an array separated by the specified separator string.
+ * @param separator A string used to separate one element of an array from the next in the resulting String. If omitted, the array elements are separated with a comma.
+ */
+ join(separator?: string): string;
+ /**
+ * Removes the last element from an array and returns it.
+ */
+ pop(): T;
+ /**
+ * Appends new elements to an array, and returns the new length of the array.
+ * @param items New elements of the Array.
+ */
+ push(...items: T[]): number;
+ /**
+ * Reverses the elements in an Array.
+ */
+ reverse(): T[];
+ /**
+ * Removes the first element from an array and returns it.
+ */
+ shift(): T;
+ /**
+ * Returns a section of an array.
+ * @param start The beginning of the specified portion of the array.
+ * @param end The end of the specified portion of the array.
+ */
+ slice(start?: number, end?: number): T[];
+
+ /**
+ * Sorts an array.
+ * @param compareFn The name of the function used to determine the order of the elements. If omitted, the elements are sorted in ascending, ASCII character order.
+ */
+ sort(compareFn?: (a: T, b: T) => number): T[];
+
+ /**
+ * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
+ * @param start The zero-based location in the array from which to start removing elements.
+ */
+ splice(start: number): T[];
+
+ /**
+ * Removes elements from an array and, if necessary, inserts new elements in their place, returning the deleted elements.
+ * @param start The zero-based location in the array from which to start removing elements.
+ * @param deleteCount The number of elements to remove.
+ * @param items Elements to insert into the array in place of the deleted elements.
+ */
+ splice(start: number, deleteCount: number, ...items: T[]): T[];
+
+ /**
+ * Inserts new elements at the start of an array.
+ * @param items Elements to insert at the start of the Array.
+ */
+ unshift(...items: T[]): number;
+
+ /**
+ * Returns the index of the first occurrence of a value in an array.
+ * @param searchElement The value to locate in the array.
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
+ */
+ indexOf(searchElement: T, fromIndex?: number): number;
+
+ /**
+ * Returns the index of the last occurrence of a specified value in an array.
+ * @param searchElement The value to locate in the array.
+ * @param fromIndex The array index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the array.
+ */
+ lastIndexOf(searchElement: T, fromIndex?: number): number;
+
+ /**
+ * Determines whether all the members of an array satisfy the specified test.
+ * @param callbackfn A function that accepts up to three arguments. The every method calls the callbackfn function for each element in array1 until the callbackfn returns false, or until the end of the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ every(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
+
+ /**
+ * Determines whether the specified callback function returns true for any element of an array.
+ * @param callbackfn A function that accepts up to three arguments. The some method calls the callbackfn function for each element in array1 until the callbackfn returns true, or until the end of the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ some(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): boolean;
+
+ /**
+ * Performs the specified action for each element in an array.
+ * @param callbackfn A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ forEach(callbackfn: (value: T, index: number, array: T[]) => void, thisArg?: any): void;
+
+ /**
+ * Calls a defined callback function on each element of an array, and returns an array that contains the results.
+ * @param callbackfn A function that accepts up to three arguments. The map method calls the callbackfn function one time for each element in the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ map(callbackfn: (value: T, index: number, array: T[]) => U, thisArg?: any): U[];
+
+ /**
+ * Returns the elements of an array that meet the condition specified in a callback function.
+ * @param callbackfn A function that accepts up to three arguments. The filter method calls the callbackfn function one time for each element in the array.
+ * @param thisArg An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.
+ */
+ filter(callbackfn: (value: T, index: number, array: T[]) => boolean, thisArg?: any): T[];
+
+ /**
+ * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
+ */
+ reduce(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
+ /**
+ * Calls the specified callback function for all the elements in an array. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to four arguments. The reduce method calls the callbackfn function one time for each element in the array.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
+ */
+ reduce(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
+
+ /**
+ * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
+ */
+ reduceRight(callbackfn: (previousValue: T, currentValue: T, currentIndex: number, array: T[]) => T, initialValue?: T): T;
+ /**
+ * Calls the specified callback function for all the elements in an array, in descending order. The return value of the callback function is the accumulated result, and is provided as an argument in the next call to the callback function.
+ * @param callbackfn A function that accepts up to four arguments. The reduceRight method calls the callbackfn function one time for each element in the array.
+ * @param initialValue If initialValue is specified, it is used as the initial value to start the accumulation. The first call to the callbackfn function provides this value as an argument instead of an array value.
+ */
+ reduceRight(callbackfn: (previousValue: U, currentValue: T, currentIndex: number, array: T[]) => U, initialValue: U): U;
+
+ /**
+ * Gets or sets the length of the array. This is a number one higher than the highest element defined in an array.
+ */
+ length: number;
+
+ [n: number]: T;
+}
+declare var Array: {
+ new (arrayLength?: number): any[];
+ new (arrayLength: number): T[];
+ new (...items: T[]): T[];
+ (arrayLength?: number): any[];
+ (arrayLength: number): T[];
+ (...items: T[]): T[];
+ isArray(arg: any): boolean;
+ prototype: Array;
+}
+
+
+/////////////////////////////
+/// IE10 ECMAScript Extensions
+/////////////////////////////
+
+/**
+ * Represents a raw buffer of binary data, which is used to store data for the
+ * different typed arrays. ArrayBuffers cannot be read from or written to directly,
+ * but can be passed to a typed array or DataView Object to interpret the raw
+ * buffer as needed.
+ */
+interface ArrayBuffer {
+ /**
+ * Read-only. The length of the ArrayBuffer (in bytes).
+ */
+ byteLength: number;
+}
+
+declare var ArrayBuffer: {
+ prototype: ArrayBuffer;
+ new (byteLength: number): ArrayBuffer;
+}
+
+interface ArrayBufferView {
+ buffer: ArrayBuffer;
+ byteOffset: number;
+ byteLength: number;
+}
+
+/**
+ * A typed array of 8-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
+ */
+interface Int8Array extends ArrayBufferView {
+ /**
+ * The size in bytes of each element in the array.
+ */
+ BYTES_PER_ELEMENT: number;
+
+ /**
+ * The length of the array.
+ */
+ length: number;
+
+ [index: number]: number;
+
+ /**
+ * Gets the element at the specified index.
+ * @param index The index at which to get the element of the array.
+ */
+ get(index: number): number;
+
+ /**
+ * Sets a value or an array of values.
+ * @param index The index of the location to set.
+ * @param value The value to set.
+ */
+ set(index: number, value: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: Int8Array, offset?: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: number[], offset?: number): void;
+
+ /**
+ * Gets a new Int8Array view of the ArrayBuffer store for this array, referencing the elements at begin, inclusive, up to end, exclusive.
+ * @param begin The index of the beginning of the array.
+ * @param end The index of the end of the array.
+ */
+ subarray(begin: number, end?: number): Int8Array;
+}
+declare var Int8Array: {
+ prototype: Int8Array;
+ new (length: number): Int8Array;
+ new (array: Int8Array): Int8Array;
+ new (array: number[]): Int8Array;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int8Array;
+ BYTES_PER_ELEMENT: number;
+}
+
+/**
+ * A typed array of 8-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
+ */
+interface Uint8Array extends ArrayBufferView {
+ /**
+ * The size in bytes of each element in the array.
+ */
+ BYTES_PER_ELEMENT: number;
+
+ /**
+ * The length of the array.
+ */
+ length: number;
+ [index: number]: number;
+
+ /**
+ * Gets the element at the specified index.
+ * @param index The index at which to get the element of the array.
+ */
+ get(index: number): number;
+
+ /**
+ * Sets a value or an array of values.
+ * @param index The index of the location to set.
+ * @param value The value to set.
+ */
+ set(index: number, value: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: Uint8Array, offset?: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: number[], offset?: number): void;
+
+ /**
+ * Gets a new Uint8Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
+ * @param begin The index of the beginning of the array.
+ * @param end The index of the end of the array.
+ */
+ subarray(begin: number, end?: number): Uint8Array;
+}
+declare var Uint8Array: {
+ prototype: Uint8Array;
+ new (length: number): Uint8Array;
+ new (array: Uint8Array): Uint8Array;
+ new (array: number[]): Uint8Array;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint8Array;
+ BYTES_PER_ELEMENT: number;
+}
+
+/**
+ * A typed array of 16-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
+ */
+interface Int16Array extends ArrayBufferView {
+ /**
+ * The size in bytes of each element in the array.
+ */
+ BYTES_PER_ELEMENT: number;
+
+ /**
+ * The length of the array.
+ */
+ length: number;
+ [index: number]: number;
+
+ /**
+ * Gets the element at the specified index.
+ * @param index The index at which to get the element of the array.
+ */
+ get(index: number): number;
+
+ /**
+ * Sets a value or an array of values.
+ * @param index The index of the location to set.
+ * @param value The value to set.
+ */
+ set(index: number, value: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: Int16Array, offset?: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: number[], offset?: number): void;
+
+ /**
+ * Gets a new Int16Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
+ * @param begin The index of the beginning of the array.
+ * @param end The index of the end of the array.
+ */
+ subarray(begin: number, end?: number): Int16Array;
+}
+declare var Int16Array: {
+ prototype: Int16Array;
+ new (length: number): Int16Array;
+ new (array: Int16Array): Int16Array;
+ new (array: number[]): Int16Array;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int16Array;
+ BYTES_PER_ELEMENT: number;
+}
+
+/**
+ * A typed array of 16-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
+ */
+interface Uint16Array extends ArrayBufferView {
+ /**
+ * The size in bytes of each element in the array.
+ */
+ BYTES_PER_ELEMENT: number;
+
+ /**
+ * The length of the array.
+ */
+ length: number;
+ [index: number]: number;
+
+ /**
+ * Gets the element at the specified index.
+ * @param index The index at which to get the element of the array.
+ */
+ get(index: number): number;
+
+ /**
+ * Sets a value or an array of values.
+ * @param index The index of the location to set.
+ * @param value The value to set.
+ */
+ set(index: number, value: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: Uint16Array, offset?: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: number[], offset?: number): void;
+
+ /**
+ * Gets a new Uint16Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
+ * @param begin The index of the beginning of the array.
+ * @param end The index of the end of the array.
+ */
+ subarray(begin: number, end?: number): Uint16Array;
+}
+declare var Uint16Array: {
+ prototype: Uint16Array;
+ new (length: number): Uint16Array;
+ new (array: Uint16Array): Uint16Array;
+ new (array: number[]): Uint16Array;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint16Array;
+ BYTES_PER_ELEMENT: number;
+}
+
+/**
+ * A typed array of 32-bit integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
+ */
+interface Int32Array extends ArrayBufferView {
+ /**
+ * The size in bytes of each element in the array.
+ */
+ BYTES_PER_ELEMENT: number;
+
+ /**
+ * The length of the array.
+ */
+ length: number;
+ [index: number]: number;
+
+ /**
+ * Gets the element at the specified index.
+ * @param index The index at which to get the element of the array.
+ */
+ get(index: number): number;
+
+ /**
+ * Sets a value or an array of values.
+ * @param index The index of the location to set.
+ * @param value The value to set.
+ */
+ set(index: number, value: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: Int32Array, offset?: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: number[], offset?: number): void;
+
+ /**
+ * Gets a new Int32Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
+ * @param begin The index of the beginning of the array.
+ * @param end The index of the end of the array.
+ */
+ subarray(begin: number, end?: number): Int32Array;
+}
+declare var Int32Array: {
+ prototype: Int32Array;
+ new (length: number): Int32Array;
+ new (array: Int32Array): Int32Array;
+ new (array: number[]): Int32Array;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Int32Array;
+ BYTES_PER_ELEMENT: number;
+}
+
+/**
+ * A typed array of 32-bit unsigned integer values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
+ */
+interface Uint32Array extends ArrayBufferView {
+ /**
+ * The size in bytes of each element in the array.
+ */
+ BYTES_PER_ELEMENT: number;
+
+ /**
+ * The length of the array.
+ */
+ length: number;
+ [index: number]: number;
+
+ /**
+ * Gets the element at the specified index.
+ * @param index The index at which to get the element of the array.
+ */
+ get(index: number): number;
+
+ /**
+ * Sets a value or an array of values.
+ * @param index The index of the location to set.
+ * @param value The value to set.
+ */
+ set(index: number, value: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: Uint32Array, offset?: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: number[], offset?: number): void;
+
+ /**
+ * Gets a new Int8Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
+ * @param begin The index of the beginning of the array.
+ * @param end The index of the end of the array.
+ */
+ subarray(begin: number, end?: number): Uint32Array;
+}
+declare var Uint32Array: {
+ prototype: Uint32Array;
+ new (length: number): Uint32Array;
+ new (array: Uint32Array): Uint32Array;
+ new (array: number[]): Uint32Array;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Uint32Array;
+ BYTES_PER_ELEMENT: number;
+}
+
+/**
+ * A typed array of 32-bit float values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
+ */
+interface Float32Array extends ArrayBufferView {
+ /**
+ * The size in bytes of each element in the array.
+ */
+ BYTES_PER_ELEMENT: number;
+
+ /**
+ * The length of the array.
+ */
+ length: number;
+ [index: number]: number;
+
+ /**
+ * Gets the element at the specified index.
+ * @param index The index at which to get the element of the array.
+ */
+ get(index: number): number;
+
+ /**
+ * Sets a value or an array of values.
+ * @param index The index of the location to set.
+ * @param value The value to set.
+ */
+ set(index: number, value: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: Float32Array, offset?: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: number[], offset?: number): void;
+
+ /**
+ * Gets a new Float32Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
+ * @param begin The index of the beginning of the array.
+ * @param end The index of the end of the array.
+ */
+ subarray(begin: number, end?: number): Float32Array;
+}
+declare var Float32Array: {
+ prototype: Float32Array;
+ new (length: number): Float32Array;
+ new (array: Float32Array): Float32Array;
+ new (array: number[]): Float32Array;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float32Array;
+ BYTES_PER_ELEMENT: number;
+}
+
+/**
+ * A typed array of 64-bit float values. The contents are initialized to 0. If the requested number of bytes could not be allocated an exception is raised.
+ */
+interface Float64Array extends ArrayBufferView {
+ /**
+ * The size in bytes of each element in the array.
+ */
+ BYTES_PER_ELEMENT: number;
+
+ /**
+ * The length of the array.
+ */
+ length: number;
+ [index: number]: number;
+
+ /**
+ * Gets the element at the specified index.
+ * @param index The index at which to get the element of the array.
+ */
+ get(index: number): number;
+
+ /**
+ * Sets a value or an array of values.
+ * @param index The index of the location to set.
+ * @param value The value to set.
+ */
+ set(index: number, value: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: Float64Array, offset?: number): void;
+
+ /**
+ * Sets a value or an array of values.
+ * @param A typed or untyped array of values to set.
+ * @param offset The index in the current array at which the values are to be written.
+ */
+ set(array: number[], offset?: number): void;
+
+ /**
+ * Gets a new Float64Array view of the ArrayBuffer Object store for this array, specifying the first and last members of the subarray.
+ * @param begin The index of the beginning of the array.
+ * @param end The index of the end of the array.
+ */
+ subarray(begin: number, end?: number): Float64Array;
+}
+declare var Float64Array: {
+ prototype: Float64Array;
+ new (length: number): Float64Array;
+ new (array: Float64Array): Float64Array;
+ new (array: number[]): Float64Array;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): Float64Array;
+ BYTES_PER_ELEMENT: number;
+}
+
+/**
+ * You can use a DataView object to read and write the different kinds of binary data to any location in the ArrayBuffer.
+ */
+interface DataView extends ArrayBufferView {
+ /**
+ * Gets the Int8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getInt8(byteOffset: number): number;
+
+ /**
+ * Gets the Uint8 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getUint8(byteOffset: number): number;
+
+ /**
+ * Gets the Int16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getInt16(byteOffset: number, littleEndian?: boolean): number;
+
+ /**
+ * Gets the Uint16 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getUint16(byteOffset: number, littleEndian?: boolean): number;
+
+ /**
+ * Gets the Int32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getInt32(byteOffset: number, littleEndian?: boolean): number;
+
+ /**
+ * Gets the Uint32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getUint32(byteOffset: number, littleEndian?: boolean): number;
+
+ /**
+ * Gets the Float32 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getFloat32(byteOffset: number, littleEndian?: boolean): number;
+
+ /**
+ * Gets the Float64 value at the specified byte offset from the start of the view. There is no alignment constraint; multi-byte values may be fetched from any offset.
+ * @param byteOffset The place in the buffer at which the value should be retrieved.
+ */
+ getFloat64(byteOffset: number, littleEndian?: boolean): number;
+
+ /**
+ * Stores an Int8 value at the specified byte offset from the start of the view.
+ * @param byteOffset The place in the buffer at which the value should be set.
+ * @param value The value to set.
+ */
+ setInt8(byteOffset: number, value: number): void;
+
+ /**
+ * Stores an Uint8 value at the specified byte offset from the start of the view.
+ * @param byteOffset The place in the buffer at which the value should be set.
+ * @param value The value to set.
+ */
+ setUint8(byteOffset: number, value: number): void;
+
+ /**
+ * Stores an Int16 value at the specified byte offset from the start of the view.
+ * @param byteOffset The place in the buffer at which the value should be set.
+ * @param value The value to set.
+ * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
+ */
+ setInt16(byteOffset: number, value: number, littleEndian?: boolean): void;
+
+ /**
+ * Stores an Uint16 value at the specified byte offset from the start of the view.
+ * @param byteOffset The place in the buffer at which the value should be set.
+ * @param value The value to set.
+ * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
+ */
+ setUint16(byteOffset: number, value: number, littleEndian?: boolean): void;
+
+ /**
+ * Stores an Int32 value at the specified byte offset from the start of the view.
+ * @param byteOffset The place in the buffer at which the value should be set.
+ * @param value The value to set.
+ * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
+ */
+ setInt32(byteOffset: number, value: number, littleEndian?: boolean): void;
+
+ /**
+ * Stores an Uint32 value at the specified byte offset from the start of the view.
+ * @param byteOffset The place in the buffer at which the value should be set.
+ * @param value The value to set.
+ * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
+ */
+ setUint32(byteOffset: number, value: number, littleEndian?: boolean): void;
+
+ /**
+ * Stores an Float32 value at the specified byte offset from the start of the view.
+ * @param byteOffset The place in the buffer at which the value should be set.
+ * @param value The value to set.
+ * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
+ */
+ setFloat32(byteOffset: number, value: number, littleEndian?: boolean): void;
+
+ /**
+ * Stores an Float64 value at the specified byte offset from the start of the view.
+ * @param byteOffset The place in the buffer at which the value should be set.
+ * @param value The value to set.
+ * @param littleEndian If false or undefined, a big-endian value should be written, otherwise a little-endian value should be written.
+ */
+ setFloat64(byteOffset: number, value: number, littleEndian?: boolean): void;
+}
+declare var DataView: {
+ prototype: DataView;
+ new (buffer: ArrayBuffer, byteOffset?: number, length?: number): DataView;
+}
+
+/////////////////////////////
+/// IE11 ECMAScript Extensions
+/////////////////////////////
+
+interface Map {
+ clear(): void;
+ delete(key: K): boolean;
+ forEach(callbackfn: (value: V, index: K, map: Map) => void, thisArg?: any): void;
+ get(key: K): V;
+ has(key: K): boolean;
+ set(key: K, value: V): Map;
+ size: number;
+}
+declare var Map: {
+ new (): Map;
+}
+
+interface WeakMap {
+ clear(): void;
+ delete(key: K): boolean;
+ get(key: K): V;
+ has(key: K): boolean;
+ set(key: K, value: V): WeakMap;
+}
+declare var WeakMap: {
+ new (): WeakMap;
+}
+
+interface Set {
+ add(value: T): Set;
+ clear(): void;
+ delete(value: T): boolean;
+ forEach(callbackfn: (value: T, index: T, set: Set) => void, thisArg?: any): void;
+ has(value: T): boolean;
+ size: number;
+}
+declare var Set: {
+ new (): Set;
+}
+
+declare module Intl {
+
+ interface CollatorOptions {
+ usage?: string;
+ localeMatcher?: string;
+ numeric?: boolean;
+ caseFirst?: string;
+ sensitivity?: string;
+ ignorePunctuation?: boolean;
+ }
+
+ interface ResolvedCollatorOptions {
+ locale: string;
+ usage: string;
+ sensitivity: string;
+ ignorePunctuation: boolean;
+ collation: string;
+ caseFirst: string;
+ numeric: boolean;
+ }
+
+ interface Collator {
+ compare(x: string, y: string): number;
+ resolvedOptions(): ResolvedCollatorOptions;
+ }
+ var Collator: {
+ new (locales?: string[], options?: CollatorOptions): Collator;
+ new (locale?: string, options?: CollatorOptions): Collator;
+ (locales?: string[], options?: CollatorOptions): Collator;
+ (locale?: string, options?: CollatorOptions): Collator;
+ supportedLocalesOf(locales: string[], options?: CollatorOptions): string[];
+ supportedLocalesOf(locale: string, options?: CollatorOptions): string[];
+ }
+
+ interface NumberFormatOptions {
+ localeMatcher?: string;
+ style?: string;
+ currency?: string;
+ currencyDisplay?: string;
+ useGrouping?: boolean;
+ }
+
+ interface ResolvedNumberFormatOptions {
+ locale: string;
+ numberingSystem: string;
+ style: string;
+ currency?: string;
+ currencyDisplay?: string;
+ minimumintegerDigits: number;
+ minimumFractionDigits: number;
+ maximumFractionDigits: number;
+ minimumSignificantDigits?: number;
+ maximumSignificantDigits?: number;
+ useGrouping: boolean;
+ }
+
+ interface NumberFormat {
+ format(value: number): string;
+ resolvedOptions(): ResolvedNumberFormatOptions;
+ }
+ var NumberFormat: {
+ new (locales?: string[], options?: NumberFormatOptions): Collator;
+ new (locale?: string, options?: NumberFormatOptions): Collator;
+ (locales?: string[], options?: NumberFormatOptions): Collator;
+ (locale?: string, options?: NumberFormatOptions): Collator;
+ supportedLocalesOf(locales: string[], options?: NumberFormatOptions): string[];
+ supportedLocalesOf(locale: string, options?: NumberFormatOptions): string[];
+ }
+
+ interface DateTimeFormatOptions {
+ localeMatcher?: string;
+ weekday?: string;
+ era?: string;
+ year?: string;
+ month?: string;
+ day?: string;
+ hour?: string;
+ minute?: string;
+ second?: string;
+ timeZoneName?: string;
+ formatMatcher?: string;
+ hour12: boolean;
+ }
+
+ interface ResolvedDateTimeFormatOptions {
+ locale: string;
+ calendar: string;
+ numberingSystem: string;
+ timeZone: string;
+ hour12?: boolean;
+ weekday?: string;
+ era?: string;
+ year?: string;
+ month?: string;
+ day?: string;
+ hour?: string;
+ minute?: string;
+ second?: string;
+ timeZoneName?: string;
+ }
+
+ interface DateTimeFormat {
+ format(date: number): string;
+ resolvedOptions(): ResolvedDateTimeFormatOptions;
+ }
+ var DateTimeFormat: {
+ new (locales?: string[], options?: DateTimeFormatOptions): Collator;
+ new (locale?: string, options?: DateTimeFormatOptions): Collator;
+ (locales?: string[], options?: DateTimeFormatOptions): Collator;
+ (locale?: string, options?: DateTimeFormatOptions): Collator;
+ supportedLocalesOf(locales: string[], options?: DateTimeFormatOptions): string[];
+ supportedLocalesOf(locale: string, options?: DateTimeFormatOptions): string[];
+ }
+}
+
+interface String {
+ localeCompare(that: string, locales: string[], options?: Intl.CollatorOptions): number;
+ localeCompare(that: string, locale: string, options?: Intl.CollatorOptions): number;
+}
+
+interface Number {
+ toLocaleString(locales?: string[], options?: Intl.NumberFormatOptions): string;
+ toLocaleString(locale?: string, options?: Intl.NumberFormatOptions): string;
+}
+
+interface Date {
+ toLocaleString(locales?: string[], options?: Intl.DateTimeFormatOptions): string;
+ toLocaleString(locale?: string, options?: Intl.DateTimeFormatOptions): string;
+}
+
+
+/////////////////////////////
+/// IE9 DOM APIs
+/////////////////////////////
+
+interface PositionOptions {
+ enableHighAccuracy?: boolean;
+ timeout?: number;
+ maximumAge?: number;
+}
+
+interface NavigatorID {
+ appVersion: string;
+ appName: string;
+ userAgent: string;
+ platform: string;
+}
+
+interface HTMLTableElement extends HTMLElement, MSDataBindingTableExtensions, MSDataBindingExtensions, DOML2DeprecatedBackgroundStyle, DOML2DeprecatedBackgroundColorStyle {
+ /**
+ * Sets or retrieves the width of the object.
+ */
+ width: string;
+ /**
+ * Sets or retrieves the color for one of the two colors used to draw the 3-D border of the object.
+ */
+ borderColorLight: any;
+ /**
+ * Sets or retrieves the amount of space between cells in a table.
+ */
+ cellSpacing: string;
+ /**
+ * Retrieves the tFoot object of the table.
+ */
+ tFoot: HTMLTableSectionElement;
+ /**
+ * Sets or retrieves the way the border frame around the table is displayed.
+ */
+ frame: string;
+ /**
+ * Sets or retrieves the border color of the object.
+ */
+ borderColor: any;
+ /**
+ * Sets or retrieves the number of horizontal rows contained in the object.
+ */
+ rows: HTMLCollection;
+ /**
+ * Sets or retrieves which dividing lines (inner borders) are displayed.
+ */
+ rules: string;
+ /**
+ * Sets or retrieves the number of columns in the table.
+ */
+ cols: number;
+ /**
+ * Sets or retrieves a description and/or structure of the object.
+ */
+ summary: string;
+ /**
+ * Retrieves the caption object of a table.
+ */
+ caption: HTMLTableCaptionElement;
+ /**
+ * Retrieves a collection of all tBody objects in the table. Objects in this collection are in source order.
+ */
+ tBodies: HTMLCollection;
+ /**
+ * Retrieves the tHead object of the table.
+ */
+ tHead: HTMLTableSectionElement;
+ /**
+ * Sets or retrieves a value that indicates the table alignment.
+ */
+ align: string;
+ /**
+ * Retrieves a collection of all cells in the table row or in the entire table.
+ */
+ cells: HTMLCollection;
+ /**
+ * Sets or retrieves the height of the object.
+ */
+ height: any;
+ /**
+ * Sets or retrieves the amount of space between the border of the cell and the content of the cell.
+ */
+ cellPadding: string;
+ /**
+ * Sets or retrieves the width of the border to draw around the object.
+ */
+ border: string;
+ /**
+ * Sets or retrieves the color for one of the two colors used to draw the 3-D border of the object.
+ */
+ borderColorDark: any;
+ /**
+ * Removes the specified row (tr) from the element and from the rows collection.
+ * @param index Number that specifies the zero-based position in the rows collection of the row to remove.
+ */
+ deleteRow(index?: number): void;
+ /**
+ * Creates an empty tBody element in the table.
+ */
+ createTBody(): HTMLElement;
+ /**
+ * Deletes the caption element and its contents from the table.
+ */
+ deleteCaption(): void;
+ /**
+ * Creates a new row (tr) in the table, and adds the row to the rows collection.
+ * @param index Number that specifies where to insert the row in the rows collection. The default value is -1, which appends the new row to the end of the rows collection.
+ */
+ insertRow(index?: number): HTMLElement;
+ /**
+ * Deletes the tFoot element and its contents from the table.
+ */
+ deleteTFoot(): void;
+ /**
+ * Returns the tHead element object if successful, or null otherwise.
+ */
+ createTHead(): HTMLElement;
+ /**
+ * Deletes the tHead element and its contents from the table.
+ */
+ deleteTHead(): void;
+ /**
+ * Creates an empty caption element in the table.
+ */
+ createCaption(): HTMLElement;
+ /**
+ * Moves a table row to a new position.
+ * @param indexFrom Number that specifies the index in the rows collection of the table row that is moved.
+ * @param indexTo Number that specifies where the row is moved within the rows collection.
+ */
+ moveRow(indexFrom?: number, indexTo?: number): Object;
+ /**
+ * Creates an empty tFoot element in the table.
+ */
+ createTFoot(): HTMLElement;
+}
+declare var HTMLTableElement: {
+ prototype: HTMLTableElement;
+ new (): HTMLTableElement;
+}
+
+interface TreeWalker {
+ whatToShow: number;
+ filter: NodeFilter;
+ root: Node;
+ currentNode: Node;
+ expandEntityReferences: boolean;
+ previousSibling(): Node;
+ lastChild(): Node;
+ nextSibling(): Node;
+ nextNode(): Node;
+ parentNode(): Node;
+ firstChild(): Node;
+ previousNode(): Node;
+}
+declare var TreeWalker: {
+ prototype: TreeWalker;
+ new (): TreeWalker;
+}
+
+interface GetSVGDocument {
+ getSVGDocument(): Document;
+}
+
+interface SVGPathSegCurvetoQuadraticRel extends SVGPathSeg {
+ y: number;
+ y1: number;
+ x: number;
+ x1: number;
+}
+declare var SVGPathSegCurvetoQuadraticRel: {
+ prototype: SVGPathSegCurvetoQuadraticRel;
+ new (): SVGPathSegCurvetoQuadraticRel;
+}
+
+interface Performance {
+ navigation: PerformanceNavigation;
+ timing: PerformanceTiming;
+ getEntriesByType(entryType: string): any;
+ toJSON(): any;
+ getMeasures(measureName?: string): any;
+ clearMarks(markName?: string): void;
+ getMarks(markName?: string): any;
+ clearResourceTimings(): void;
+ mark(markName: string): void;
+ measure(measureName: string, startMarkName?: string, endMarkName?: string): void;
+ getEntriesByName(name: string, entryType?: string): any;
+ getEntries(): any;
+ clearMeasures(measureName?: string): void;
+ setResourceTimingBufferSize(maxSize: number): void;
+}
+declare var Performance: {
+ prototype: Performance;
+ new (): Performance;
+}
+
+interface MSDataBindingTableExtensions {
+ dataPageSize: number;
+ nextPage(): void;
+ firstPage(): void;
+ refresh(): void;
+ previousPage(): void;
+ lastPage(): void;
+}
+
+interface CompositionEvent extends UIEvent {
+ data: string;
+ locale: string;
+ initCompositionEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, dataArg: string, locale: string): void;
+}
+declare var CompositionEvent: {
+ prototype: CompositionEvent;
+ new (): CompositionEvent;
+}
+
+interface WindowTimers {
+ clearTimeout(handle: number): void;
+ setTimeout(handler: any, timeout?: any, ...args: any[]): number;
+ clearInterval(handle: number): void;
+ setInterval(handler: any, timeout?: any, ...args: any[]): number;
+}
+
+interface SVGMarkerElement extends SVGElement, SVGStylable, SVGLangSpace, SVGFitToViewBox, SVGExternalResourcesRequired {
+ orientType: SVGAnimatedEnumeration;
+ markerUnits: SVGAnimatedEnumeration;
+ markerWidth: SVGAnimatedLength;
+ markerHeight: SVGAnimatedLength;
+ orientAngle: SVGAnimatedAngle;
+ refY: SVGAnimatedLength;
+ refX: SVGAnimatedLength;
+ setOrientToAngle(angle: SVGAngle): void;
+ setOrientToAuto(): void;
+ SVG_MARKER_ORIENT_UNKNOWN: number;
+ SVG_MARKER_ORIENT_ANGLE: number;
+ SVG_MARKERUNITS_UNKNOWN: number;
+ SVG_MARKERUNITS_STROKEWIDTH: number;
+ SVG_MARKER_ORIENT_AUTO: number;
+ SVG_MARKERUNITS_USERSPACEONUSE: number;
+}
+declare var SVGMarkerElement: {
+ prototype: SVGMarkerElement;
+ new (): SVGMarkerElement;
+ SVG_MARKER_ORIENT_UNKNOWN: number;
+ SVG_MARKER_ORIENT_ANGLE: number;
+ SVG_MARKERUNITS_UNKNOWN: number;
+ SVG_MARKERUNITS_STROKEWIDTH: number;
+ SVG_MARKER_ORIENT_AUTO: number;
+ SVG_MARKERUNITS_USERSPACEONUSE: number;
+}
+
+interface CSSStyleDeclaration {
+ backgroundAttachment: string;
+ visibility: string;
+ textAlignLast: string;
+ borderRightStyle: string;
+ counterIncrement: string;
+ orphans: string;
+ cssText: string;
+ borderStyle: string;
+ pointerEvents: string;
+ borderTopColor: string;
+ markerEnd: string;
+ textIndent: string;
+ listStyleImage: string;
+ cursor: string;
+ listStylePosition: string;
+ wordWrap: string;
+ borderTopStyle: string;
+ alignmentBaseline: string;
+ opacity: string;
+ direction: string;
+ strokeMiterlimit: string;
+ maxWidth: string;
+ color: string;
+ clip: string;
+ borderRightWidth: string;
+ verticalAlign: string;
+ overflow: string;
+ mask: string;
+ borderLeftStyle: string;
+ emptyCells: string;
+ stopOpacity: string;
+ paddingRight: string;
+ parentRule: CSSRule;
+ background: string;
+ boxSizing: string;
+ textJustify: string;
+ height: string;
+ paddingTop: string;
+ length: number;
+ right: string;
+ baselineShift: string;
+ borderLeft: string;
+ widows: string;
+ lineHeight: string;
+ left: string;
+ textUnderlinePosition: string;
+ glyphOrientationHorizontal: string;
+ display: string;
+ textAnchor: string;
+ cssFloat: string;
+ strokeDasharray: string;
+ rubyAlign: string;
+ fontSizeAdjust: string;
+ borderLeftColor: string;
+ backgroundImage: string;
+ listStyleType: string;
+ strokeWidth: string;
+ textOverflow: string;
+ fillRule: string;
+ borderBottomColor: string;
+ zIndex: string;
+ position: string;
+ listStyle: string;
+ msTransformOrigin: string;
+ dominantBaseline: string;
+ overflowY: string;
+ fill: string;
+ captionSide: string;
+ borderCollapse: string;
+ boxShadow: string;
+ quotes: string;
+ tableLayout: string;
+ unicodeBidi: string;
+ borderBottomWidth: string;
+ backgroundSize: string;
+ textDecoration: string;
+ strokeDashoffset: string;
+ fontSize: string;
+ border: string;
+ pageBreakBefore: string;
+ borderTopRightRadius: string;
+ msTransform: string;
+ borderBottomLeftRadius: string;
+ textTransform: string;
+ rubyPosition: string;
+ strokeLinejoin: string;
+ clipPath: string;
+ borderRightColor: string;
+ fontFamily: string;
+ clear: string;
+ content: string;
+ backgroundClip: string;
+ marginBottom: string;
+ counterReset: string;
+ outlineWidth: string;
+ marginRight: string;
+ paddingLeft: string;
+ borderBottom: string;
+ wordBreak: string;
+ marginTop: string;
+ top: string;
+ fontWeight: string;
+ borderRight: string;
+ width: string;
+ kerning: string;
+ pageBreakAfter: string;
+ borderBottomStyle: string;
+ fontStretch: string;
+ padding: string;
+ strokeOpacity: string;
+ markerStart: string;
+ bottom: string;
+ borderLeftWidth: string;
+ clipRule: string;
+ backgroundPosition: string;
+ backgroundColor: string;
+ pageBreakInside: string;
+ backgroundOrigin: string;
+ strokeLinecap: string;
+ borderTopWidth: string;
+ outlineStyle: string;
+ borderTop: string;
+ outlineColor: string;
+ paddingBottom: string;
+ marginLeft: string;
+ font: string;
+ outline: string;
+ wordSpacing: string;
+ maxHeight: string;
+ fillOpacity: string;
+ letterSpacing: string;
+ borderSpacing: string;
+ backgroundRepeat: string;
+ borderRadius: string;
+ borderWidth: string;
+ borderBottomRightRadius: string;
+ whiteSpace: string;
+ fontStyle: string;
+ minWidth: string;
+ stopColor: string;
+ borderTopLeftRadius: string;
+ borderColor: string;
+ marker: string;
+ glyphOrientationVertical: string;
+ markerMid: string;
+ fontVariant: string;
+ minHeight: string;
+ stroke: string;
+ rubyOverhang: string;
+ overflowX: string;
+ textAlign: string;
+ margin: string;
+ getPropertyPriority(propertyName: string): string;
+ getPropertyValue(propertyName: string): string;
+ removeProperty(propertyName: string): string;
+ item(index: number): string;
+ [index: number]: string;
+ setProperty(propertyName: string, value: string, priority?: string): void;
+}
+declare var CSSStyleDeclaration: {
+ prototype: CSSStyleDeclaration;
+ new (): CSSStyleDeclaration;
+}
+
+interface SVGGElement extends SVGElement, SVGStylable, SVGTransformable, SVGLangSpace, SVGTests, SVGExternalResourcesRequired {
+}
+declare var SVGGElement: {
+ prototype: SVGGElement;
+ new (): SVGGElement;
+}
+
+interface MSStyleCSSProperties extends MSCSSProperties {
+ pixelWidth: number;
+ posHeight: number;
+ posLeft: number;
+ pixelTop: number;
+ pixelBottom: number;
+ textDecorationNone: boolean;
+ pixelLeft: number;
+ posTop: number;
+ posBottom: number;
+ textDecorationOverline: boolean;
+ posWidth: number;
+ textDecorationLineThrough: boolean;
+ pixelHeight: number;
+ textDecorationBlink: boolean;
+ posRight: number;
+ pixelRight: number;
+ textDecorationUnderline: boolean;
+}
+declare var MSStyleCSSProperties: {
+ prototype: MSStyleCSSProperties;
+ new (): MSStyleCSSProperties;
+}
+
+interface Navigator extends NavigatorID, NavigatorOnLine, NavigatorContentUtils, MSNavigatorExtensions, NavigatorGeolocation, MSNavigatorDoNotTrack, NavigatorStorageUtils {
+}
+declare var Navigator: {
+ prototype: Navigator;
+ new (): Navigator;
+}
+
+interface SVGPathSegCurvetoCubicSmoothAbs extends SVGPathSeg {
+ y: number;
+ x2: number;
+ x: number;
+ y2: number;
+}
+declare var SVGPathSegCurvetoCubicSmoothAbs: {
+ prototype: SVGPathSegCurvetoCubicSmoothAbs;
+ new (): SVGPathSegCurvetoCubicSmoothAbs;
+}
+
+interface SVGZoomEvent extends UIEvent {
+ zoomRectScreen: SVGRect;
+ previousScale: number;
+ newScale: number;
+ previousTranslate: SVGPoint;
+ newTranslate: SVGPoint;
+}
+declare var SVGZoomEvent: {
+ prototype: SVGZoomEvent;
+ new (): SVGZoomEvent;
+}
+
+interface NodeSelector {
+ querySelectorAll(selectors: string): NodeList;
+ querySelector(selectors: string): Element;
+}
+
+interface HTMLTableDataCellElement extends HTMLTableCellElement {
+}
+declare var HTMLTableDataCellElement: {
+ prototype: HTMLTableDataCellElement;
+ new (): HTMLTableDataCellElement;
+}
+
+interface HTMLBaseElement extends HTMLElement {
+ /**
+ * Sets or retrieves the window or frame at which to target content.
+ */
+ target: string;
+ /**
+ * Gets or sets the baseline URL on which relative links are based.
+ */
+ href: string;
+}
+declare var HTMLBaseElement: {
+ prototype: HTMLBaseElement;
+ new (): HTMLBaseElement;
+}
+
+interface ClientRect {
+ left: number;
+ width: number;
+ right: number;
+ top: number;
+ bottom: number;
+ height: number;
+}
+declare var ClientRect: {
+ prototype: ClientRect;
+ new (): ClientRect;
+}
+
+interface PositionErrorCallback {
+ (error: PositionError): void;
+}
+
+interface DOMImplementation {
+ createDocumentType(qualifiedName: string, publicId: string, systemId: string): DocumentType;
+ createDocument(namespaceURI: string, qualifiedName: string, doctype: DocumentType): Document;
+ hasFeature(feature: string, version?: string): boolean;
+ createHTMLDocument(title: string): Document;
+}
+declare var DOMImplementation: {
+ prototype: DOMImplementation;
+ new (): DOMImplementation;
+}
+
+interface SVGUnitTypes {
+ SVG_UNIT_TYPE_UNKNOWN: number;
+ SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
+ SVG_UNIT_TYPE_USERSPACEONUSE: number;
+}
+declare var SVGUnitTypes: {
+ prototype: SVGUnitTypes;
+ new (): SVGUnitTypes;
+ SVG_UNIT_TYPE_UNKNOWN: number;
+ SVG_UNIT_TYPE_OBJECTBOUNDINGBOX: number;
+ SVG_UNIT_TYPE_USERSPACEONUSE: number;
+}
+
+interface Element extends Node, NodeSelector, ElementTraversal {
+ scrollTop: number;
+ clientLeft: number;
+ scrollLeft: number;
+ tagName: string;
+ clientWidth: number;
+ scrollWidth: number;
+ clientHeight: number;
+ clientTop: number;
+ scrollHeight: number;
+ getAttribute(name?: string): string;
+ getElementsByTagNameNS(namespaceURI: string, localName: string): NodeList;
+ hasAttributeNS(namespaceURI: string, localName: string): boolean;
+ getBoundingClientRect(): ClientRect;
+ getAttributeNS(namespaceURI: string, localName: string): string;
+ getAttributeNodeNS(namespaceURI: string, localName: string): Attr;
+ setAttributeNodeNS(newAttr: Attr): Attr;
+ msMatchesSelector(selectors: string): boolean;
+ hasAttribute(name: string): boolean;
+ removeAttribute(name?: string): void;
+ setAttributeNS(namespaceURI: string, qualifiedName: string, value: string): void;
+ getAttributeNode(name: string): Attr;
+ fireEvent(eventName: string, eventObj?: any): boolean;
+ getElementsByTagName(name: "a"): NodeListOf;
+ getElementsByTagName(name: "abbr"): NodeListOf;
+ getElementsByTagName(name: "address"): NodeListOf;
+ getElementsByTagName(name: "area"): NodeListOf;
+ getElementsByTagName(name: "article"): NodeListOf;
+ getElementsByTagName(name: "aside"): NodeListOf;
+ getElementsByTagName(name: "audio"): NodeListOf;
+ getElementsByTagName(name: "b"): NodeListOf;
+ getElementsByTagName(name: "base"): NodeListOf;
+ getElementsByTagName(name: "bdi"): NodeListOf;
+ getElementsByTagName(name: "bdo"): NodeListOf;
+ getElementsByTagName(name: "blockquote"): NodeListOf;
+ getElementsByTagName(name: "body"): NodeListOf;
+ getElementsByTagName(name: "br"): NodeListOf;
+ getElementsByTagName(name: "button"): NodeListOf;
+ getElementsByTagName(name: "canvas"): NodeListOf;
+ getElementsByTagName(name: "caption"): NodeListOf;
+ getElementsByTagName(name: "cite"): NodeListOf;
+ getElementsByTagName(name: "code"): NodeListOf;
+ getElementsByTagName(name: "col"): NodeListOf;
+ getElementsByTagName(name: "colgroup"): NodeListOf;
+ getElementsByTagName(name: "datalist"): NodeListOf;
+ getElementsByTagName(name: "dd"): NodeListOf;
+ getElementsByTagName(name: "del"): NodeListOf;
+ getElementsByTagName(name: "dfn"): NodeListOf;
+ getElementsByTagName(name: "div"): NodeListOf;
+ getElementsByTagName(name: "dl"): NodeListOf;
+ getElementsByTagName(name: "dt"): NodeListOf;
+ getElementsByTagName(name: "em"): NodeListOf;
+ getElementsByTagName(name: "embed"): NodeListOf;
+ getElementsByTagName(name: "fieldset"): NodeListOf;
+ getElementsByTagName(name: "figcaption"): NodeListOf;
+ getElementsByTagName(name: "figure"): NodeListOf;
+ getElementsByTagName(name: "footer"): NodeListOf;
+ getElementsByTagName(name: "form"): NodeListOf;
+ getElementsByTagName(name: "h1"): NodeListOf;
+ getElementsByTagName(name: "h2"): NodeListOf;
+ getElementsByTagName(name: "h3"): NodeListOf;
+ getElementsByTagName(name: "h4"): NodeListOf;
+ getElementsByTagName(name: "h5"): NodeListOf;
+ getElementsByTagName(name: "h6"): NodeListOf;
+ getElementsByTagName(name: "head"): NodeListOf;
+ getElementsByTagName(name: "header"): NodeListOf;
+ getElementsByTagName(name: "hgroup"): NodeListOf;
+ getElementsByTagName(name: "hr"): NodeListOf;
+ getElementsByTagName(name: "html"): NodeListOf;
+ getElementsByTagName(name: "i"): NodeListOf;
+ getElementsByTagName(name: "iframe"): NodeListOf;
+ getElementsByTagName(name: "img"): NodeListOf;
+ getElementsByTagName(name: "input"): NodeListOf;
+ getElementsByTagName(name: "ins"): NodeListOf;
+ getElementsByTagName(name: "kbd"): NodeListOf;
+ getElementsByTagName(name: "label"): NodeListOf;
+ getElementsByTagName(name: "legend"): NodeListOf;
+ getElementsByTagName(name: "li"): NodeListOf;
+ getElementsByTagName(name: "link"): NodeListOf;
+ getElementsByTagName(name: "main"): NodeListOf;
+ getElementsByTagName(name: "map"): NodeListOf;
+ getElementsByTagName(name: "mark"): NodeListOf;
+ getElementsByTagName(name: "menu"): NodeListOf;
+ getElementsByTagName(name: "meta"): NodeListOf;
+ getElementsByTagName(name: "nav"): NodeListOf;
+ getElementsByTagName(name: "noscript"): NodeListOf;
+ getElementsByTagName(name: "object"): NodeListOf;
+ getElementsByTagName(name: "ol"): NodeListOf;
+ getElementsByTagName(name: "optgroup"): NodeListOf;
+ getElementsByTagName(name: "option"): NodeListOf;
+ getElementsByTagName(name: "p"): NodeListOf;
+ getElementsByTagName(name: "param"): NodeListOf;
+ getElementsByTagName(name: "pre"): NodeListOf;
+ getElementsByTagName(name: "progress"): NodeListOf;
+ getElementsByTagName(name: "q"): NodeListOf;
+ getElementsByTagName(name: "rp"): NodeListOf;
+ getElementsByTagName(name: "rt"): NodeListOf;
+ getElementsByTagName(name: "ruby"): NodeListOf;
+ getElementsByTagName(name: "s"): NodeListOf;
+ getElementsByTagName(name: "samp"): NodeListOf;
+ getElementsByTagName(name: "script"): NodeListOf;
+ getElementsByTagName(name: "section"): NodeListOf;
+ getElementsByTagName(name: "select"): NodeListOf;
+ getElementsByTagName(name: "small"): NodeListOf;
+ getElementsByTagName(name: "source"): NodeListOf;
+ getElementsByTagName(name: "span"): NodeListOf;
+ getElementsByTagName(name: "strong"): NodeListOf;
+ getElementsByTagName(name: "style"): NodeListOf;
+ getElementsByTagName(name: "sub"): NodeListOf;
+ getElementsByTagName(name: "summary"): NodeListOf;
+ getElementsByTagName(name: "sup"): NodeListOf;
+ getElementsByTagName(name: "table"): NodeListOf;
+ getElementsByTagName(name: "tbody"): NodeListOf;
+ getElementsByTagName(name: "td"): NodeListOf;
+ getElementsByTagName(name: "textarea"): NodeListOf;
+ getElementsByTagName(name: "tfoot"): NodeListOf;
+ getElementsByTagName(name: "th"): NodeListOf;
+ getElementsByTagName(name: "thead"): NodeListOf;
+ getElementsByTagName(name: "title"): NodeListOf;
+ getElementsByTagName(name: "tr"): NodeListOf;
+ getElementsByTagName(name: "track"): NodeListOf;
+ getElementsByTagName(name: "u"): NodeListOf;
+ getElementsByTagName(name: "ul"): NodeListOf;
+ getElementsByTagName(name: "var"): NodeListOf;
+ getElementsByTagName(name: "video"): NodeListOf;
+ getElementsByTagName(name: "wbr"): NodeListOf;
+ getElementsByTagName(name: string): NodeList;
+ getClientRects(): ClientRectList;
+ setAttributeNode(newAttr: Attr): Attr;
+ removeAttributeNode(oldAttr: Attr): Attr;
+ setAttribute(name?: string, value?: string): void;
+ removeAttributeNS(namespaceURI: string, localName: string): void;
+}
+declare var Element: {
+ prototype: Element;
+ new (): Element;
+}
+
+interface HTMLNextIdElement extends HTMLElement {
+ n: string;
+}
+declare var HTMLNextIdElement: {
+ prototype: HTMLNextIdElement;
+ new (): HTMLNextIdElement;
+}
+
+interface SVGPathSegMovetoRel extends SVGPathSeg {
+ y: number;
+ x: number;
+}
+declare var SVGPathSegMovetoRel: {
+ prototype: SVGPathSegMovetoRel;
+ new (): SVGPathSegMovetoRel;
+}
+
+interface SVGLineElement extends SVGElement, SVGStylable, SVGTransformable, SVGLangSpace, SVGTests, SVGExternalResourcesRequired {
+ y1: SVGAnimatedLength;
+ x2: SVGAnimatedLength;
+ x1: SVGAnimatedLength;
+ y2: SVGAnimatedLength;
+}
+declare var SVGLineElement: {
+ prototype: SVGLineElement;
+ new (): SVGLineElement;
+}
+
+interface HTMLParagraphElement extends HTMLElement, DOML2DeprecatedTextFlowControl {
+ /**
+ * Sets or retrieves how the object is aligned with adjacent text.
+ */
+ align: string;
+}
+declare var HTMLParagraphElement: {
+ prototype: HTMLParagraphElement;
+ new (): HTMLParagraphElement;
+}
+
+interface HTMLAreasCollection extends HTMLCollection {
+ /**
+ * Removes an element from the collection.
+ */
+ remove(index?: number): void;
+ /**
+ * Adds an element to the areas, controlRange, or options collection.
+ */
+ add(element: HTMLElement, before?: any): void;
+}
+declare var HTMLAreasCollection: {
+ prototype: HTMLAreasCollection;
+ new (): HTMLAreasCollection;
+}
+
+interface SVGDescElement extends SVGElement, SVGStylable, SVGLangSpace {
+}
+declare var SVGDescElement: {
+ prototype: SVGDescElement;
+ new (): SVGDescElement;
+}
+
+interface Node extends EventTarget {
+ nodeType: number;
+ previousSibling: Node;
+ localName: string;
+ namespaceURI: string;
+ textContent: string;
+ parentNode: Node;
+ nextSibling: Node;
+ nodeValue: string;
+ lastChild: Node;
+ childNodes: NodeList;
+ nodeName: string;
+ ownerDocument: Document;
+ attributes: NamedNodeMap;
+ firstChild: Node;
+ prefix: string;
+ removeChild(oldChild: Node): Node;
+ appendChild(newChild: Node): Node;
+ isSupported(feature: string, version: string): boolean;
+ isEqualNode(arg: Node): boolean;
+ lookupPrefix(namespaceURI: string): string;
+ isDefaultNamespace(namespaceURI: string): boolean;
+ compareDocumentPosition(other: Node): number;
+ normalize(): void;
+ isSameNode(other: Node): boolean;
+ hasAttributes(): boolean;
+ lookupNamespaceURI(prefix: string): string;
+ cloneNode(deep?: boolean): Node;
+ hasChildNodes(): boolean;
+ replaceChild(newChild: Node, oldChild: Node): Node;
+ insertBefore(newChild: Node, refChild?: Node): Node;
+ ENTITY_REFERENCE_NODE: number;
+ ATTRIBUTE_NODE: number;
+ DOCUMENT_FRAGMENT_NODE: number;
+ TEXT_NODE: number;
+ ELEMENT_NODE: number;
+ COMMENT_NODE: number;
+ DOCUMENT_POSITION_DISCONNECTED: number;
+ DOCUMENT_POSITION_CONTAINED_BY: number;
+ DOCUMENT_POSITION_CONTAINS: number;
+ DOCUMENT_TYPE_NODE: number;
+ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
+ DOCUMENT_NODE: number;
+ ENTITY_NODE: number;
+ PROCESSING_INSTRUCTION_NODE: number;
+ CDATA_SECTION_NODE: number;
+ NOTATION_NODE: number;
+ DOCUMENT_POSITION_FOLLOWING: number;
+ DOCUMENT_POSITION_PRECEDING: number;
+}
+declare var Node: {
+ prototype: Node;
+ new (): Node;
+ ENTITY_REFERENCE_NODE: number;
+ ATTRIBUTE_NODE: number;
+ DOCUMENT_FRAGMENT_NODE: number;
+ TEXT_NODE: number;
+ ELEMENT_NODE: number;
+ COMMENT_NODE: number;
+ DOCUMENT_POSITION_DISCONNECTED: number;
+ DOCUMENT_POSITION_CONTAINED_BY: number;
+ DOCUMENT_POSITION_CONTAINS: number;
+ DOCUMENT_TYPE_NODE: number;
+ DOCUMENT_POSITION_IMPLEMENTATION_SPECIFIC: number;
+ DOCUMENT_NODE: number;
+ ENTITY_NODE: number;
+ PROCESSING_INSTRUCTION_NODE: number;
+ CDATA_SECTION_NODE: number;
+ NOTATION_NODE: number;
+ DOCUMENT_POSITION_FOLLOWING: number;
+ DOCUMENT_POSITION_PRECEDING: number;
+}
+
+interface SVGPathSegCurvetoQuadraticSmoothRel extends SVGPathSeg {
+ y: number;
+ x: number;
+}
+declare var SVGPathSegCurvetoQuadraticSmoothRel: {
+ prototype: SVGPathSegCurvetoQuadraticSmoothRel;
+ new (): SVGPathSegCurvetoQuadraticSmoothRel;
+}
+
+interface DOML2DeprecatedListSpaceReduction {
+ compact: boolean;
+}
+
+interface MSScriptHost {
+}
+declare var MSScriptHost: {
+ prototype: MSScriptHost;
+ new (): MSScriptHost;
+}
+
+interface SVGClipPathElement extends SVGElement, SVGUnitTypes, SVGStylable, SVGTransformable, SVGLangSpace, SVGTests, SVGExternalResourcesRequired {
+ clipPathUnits: SVGAnimatedEnumeration;
+}
+declare var SVGClipPathElement: {
+ prototype: SVGClipPathElement;
+ new (): SVGClipPathElement;
+}
+
+interface MouseEvent extends UIEvent {
+ toElement: Element;
+ layerY: number;
+ fromElement: Element;
+ which: number;
+ pageX: number;
+ offsetY: number;
+ x: number;
+ y: number;
+ metaKey: boolean;
+ altKey: boolean;
+ ctrlKey: boolean;
+ offsetX: number;
+ screenX: number;
+ clientY: number;
+ shiftKey: boolean;
+ layerX: number;
+ screenY: number;
+ relatedTarget: EventTarget;
+ button: number;
+ pageY: number;
+ buttons: number;
+ clientX: number;
+ initMouseEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, ctrlKeyArg: boolean, altKeyArg: boolean, shiftKeyArg: boolean, metaKeyArg: boolean, buttonArg: number, relatedTargetArg: EventTarget): void;
+ getModifierState(keyArg: string): boolean;
+}
+declare var MouseEvent: {
+ prototype: MouseEvent;
+ new (): MouseEvent;
+}
+
+interface RangeException {
+ code: number;
+ message: string;
+ toString(): string;
+ INVALID_NODE_TYPE_ERR: number;
+ BAD_BOUNDARYPOINTS_ERR: number;
+}
+declare var RangeException: {
+ prototype: RangeException;
+ new (): RangeException;
+ INVALID_NODE_TYPE_ERR: number;
+ BAD_BOUNDARYPOINTS_ERR: number;
+}
+
+interface SVGTextPositioningElement extends SVGTextContentElement {
+ y: SVGAnimatedLengthList;
+ rotate: SVGAnimatedNumberList;
+ dy: SVGAnimatedLengthList;
+ x: SVGAnimatedLengthList;
+ dx: SVGAnimatedLengthList;
+}
+declare var SVGTextPositioningElement: {
+ prototype: SVGTextPositioningElement;
+ new (): SVGTextPositioningElement;
+}
+
+interface HTMLAppletElement extends HTMLElement, DOML2DeprecatedMarginStyle, DOML2DeprecatedBorderStyle, DOML2DeprecatedAlignmentStyle, MSDataBindingExtensions, MSDataBindingRecordSetExtensions {
+ width: number;
+ /**
+ * Sets or retrieves the Internet media type for the code associated with the object.
+ */
+ codeType: string;
+ object: string;
+ form: HTMLFormElement;
+ code: string;
+ /**
+ * Sets or retrieves a character string that can be used to implement your own archive functionality for the object.
+ */
+ archive: string;
+ /**
+ * Sets or retrieves a text alternative to the graphic.
+ */
+ alt: string;
+ /**
+ * Sets or retrieves a message to be displayed while an object is loading.
+ */
+ standby: string;
+ /**
+ * Sets or retrieves the class identifier for the object.
+ */
+ classid: string;
+ /**
+ * Sets or retrieves the shape of the object.
+ */
+ name: string;
+ /**
+ * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
+ */
+ useMap: string;
+ /**
+ * Sets or retrieves the URL that references the data of the object.
+ */
+ data: string;
+ /**
+ * Sets or retrieves the height of the object.
+ */
+ height: string;
+ /**
+ * Gets or sets the optional alternative HTML script to execute if the object fails to load.
+ */
+ altHtml: string;
+ /**
+ * Address of a pointer to the document this page or frame contains. If there is no document, then null will be returned.
+ */
+ contentDocument: Document;
+ /**
+ * Sets or retrieves the URL of the component.
+ */
+ codeBase: string;
+ /**
+ * Sets or retrieves a character string that can be used to implement your own declare functionality for the object.
+ */
+ declare: boolean;
+ /**
+ * Returns the content type of the object.
+ */
+ type: string;
+ /**
+ * Retrieves a string of the URL where the object tag can be found. This is often the href of the document that the object is in, or the value set by a base element.
+ */
+ BaseHref: string;
+}
+declare var HTMLAppletElement: {
+ prototype: HTMLAppletElement;
+ new (): HTMLAppletElement;
+}
+
+interface TextMetrics {
+ width: number;
+}
+declare var TextMetrics: {
+ prototype: TextMetrics;
+ new (): TextMetrics;
+}
+
+interface DocumentEvent {
+ createEvent(eventInterface: string): Event;
+}
+
+interface HTMLOListElement extends HTMLElement, DOML2DeprecatedListSpaceReduction, DOML2DeprecatedListNumberingAndBulletStyle {
+ /**
+ * The starting number.
+ */
+ start: number;
+}
+declare var HTMLOListElement: {
+ prototype: HTMLOListElement;
+ new (): HTMLOListElement;
+}
+
+interface SVGPathSegLinetoVerticalRel extends SVGPathSeg {
+ y: number;
+}
+declare var SVGPathSegLinetoVerticalRel: {
+ prototype: SVGPathSegLinetoVerticalRel;
+ new (): SVGPathSegLinetoVerticalRel;
+}
+
+interface SVGAnimatedString {
+ animVal: string;
+ baseVal: string;
+}
+declare var SVGAnimatedString: {
+ prototype: SVGAnimatedString;
+ new (): SVGAnimatedString;
+}
+
+interface CDATASection extends Text {
+}
+declare var CDATASection: {
+ prototype: CDATASection;
+ new (): CDATASection;
+}
+
+interface StyleMedia {
+ type: string;
+ matchMedium(mediaquery: string): boolean;
+}
+declare var StyleMedia: {
+ prototype: StyleMedia;
+ new (): StyleMedia;
+}
+
+interface HTMLSelectElement extends HTMLElement, MSHTMLCollectionExtensions, MSDataBindingExtensions {
+ options: HTMLSelectElement;
+ /**
+ * Sets or retrieves the value which is returned to the server when the form control is submitted.
+ */
+ value: string;
+ /**
+ * Retrieves a reference to the form that the object is embedded in.
+ */
+ form: HTMLFormElement;
+ /**
+ * Sets or retrieves the name of the object.
+ */
+ name: string;
+ /**
+ * Sets or retrieves the number of rows in the list box.
+ */
+ size: number;
+ /**
+ * Sets or retrieves the number of objects in a collection.
+ */
+ length: number;
+ /**
+ * Sets or retrieves the index of the selected option in a select object.
+ */
+ selectedIndex: number;
+ /**
+ * Sets or retrieves the Boolean value indicating whether multiple items can be selected from a list.
+ */
+ multiple: boolean;
+ /**
+ * Retrieves the type of select control based on the value of the MULTIPLE attribute.
+ */
+ type: string;
+ /**
+ * Removes an element from the collection.
+ * @param index Number that specifies the zero-based index of the element to remove from the collection.
+ */
+ remove(index?: number): void;
+ /**
+ * Adds an element to the areas, controlRange, or options collection.
+ * @param element Variant of type Number that specifies the index position in the collection where the element is placed. If no value is given, the method places the element at the end of the collection.
+ * @param before Variant of type Object that specifies an element to insert before, or null to append the object to the collection.
+ */
+ add(element: HTMLElement, before?: any): void;
+ /**
+ * Retrieves a select object or an object from an options collection.
+ * @param name Variant of type Number or String that specifies the object or collection to retrieve. If this parameter is an integer, it is the zero-based index of the object. If this parameter is a string, all objects with matching name or id properties are retrieved, and a collection is returned if more than one match is made.
+ * @param index Variant of type Number that specifies the zero-based index of the object to retrieve when a collection is returned.
+ */
+ item(name?: any, index?: any): any;
+ /**
+ * Retrieves a select object or an object from an options collection.
+ * @param namedItem A String that specifies the name or id property of the object to retrieve. A collection is returned if more than one match is made.
+ */
+ namedItem(name: string): any;
+ [name: string]: any;
+}
+declare var HTMLSelectElement: {
+ prototype: HTMLSelectElement;
+ new (): HTMLSelectElement;
+}
+
+interface TextRange {
+ boundingLeft: number;
+ htmlText: string;
+ offsetLeft: number;
+ boundingWidth: number;
+ boundingHeight: number;
+ boundingTop: number;
+ text: string;
+ offsetTop: number;
+ moveToPoint(x: number, y: number): void;
+ queryCommandValue(cmdID: string): any;
+ getBookmark(): string;
+ move(unit: string, count?: number): number;
+ queryCommandIndeterm(cmdID: string): boolean;
+ scrollIntoView(fStart?: boolean): void;
+ findText(string: string, count?: number, flags?: number): boolean;
+ execCommand(cmdID: string, showUI?: boolean, value?: any): boolean;
+ getBoundingClientRect(): ClientRect;
+ moveToBookmark(bookmark: string): boolean;
+ isEqual(range: TextRange): boolean;
+ duplicate(): TextRange;
+ collapse(start?: boolean): void;
+ queryCommandText(cmdID: string): string;
+ select(): void;
+ pasteHTML(html: string): void;
+ inRange(range: TextRange): boolean;
+ moveEnd(unit: string, count?: number): number;
+ getClientRects(): ClientRectList;
+ moveStart(unit: string, count?: number): number;
+ parentElement(): Element;
+ queryCommandState(cmdID: string): boolean;
+ compareEndPoints(how: string, sourceRange: TextRange): number;
+ execCommandShowHelp(cmdID: string): boolean;
+ moveToElementText(element: Element): void;
+ expand(Unit: string): boolean;
+ queryCommandSupported(cmdID: string): boolean;
+ setEndPoint(how: string, SourceRange: TextRange): void;
+ queryCommandEnabled(cmdID: string): boolean;
+}
+declare var TextRange: {
+ prototype: TextRange;
+ new (): TextRange;
+}
+
+interface SVGTests {
+ requiredFeatures: SVGStringList;
+ requiredExtensions: SVGStringList;
+ systemLanguage: SVGStringList;
+ hasExtension(extension: string): boolean;
+}
+
+interface HTMLBlockElement extends HTMLElement, DOML2DeprecatedTextFlowControl {
+ /**
+ * Sets or retrieves the width of the object.
+ */
+ width: number;
+ /**
+ * Sets or retrieves reference information about the object.
+ */
+ cite: string;
+}
+declare var HTMLBlockElement: {
+ prototype: HTMLBlockElement;
+ new (): HTMLBlockElement;
+}
+
+interface CSSStyleSheet extends StyleSheet {
+ owningElement: Element;
+ imports: StyleSheetList;
+ isAlternate: boolean;
+ rules: MSCSSRuleList;
+ isPrefAlternate: boolean;
+ readOnly: boolean;
+ cssText: string;
+ ownerRule: CSSRule;
+ href: string;
+ cssRules: CSSRuleList;
+ id: string;
+ pages: StyleSheetPageList;
+ addImport(bstrURL: string, lIndex?: number): number;
+ addPageRule(bstrSelector: string, bstrStyle: string, lIndex?: number): number;
+ insertRule(rule: string, index?: number): number;
+ removeRule(lIndex: number): void;
+ deleteRule(index?: number): void;
+ addRule(bstrSelector: string, bstrStyle?: string, lIndex?: number): number;
+ removeImport(lIndex: number): void;
+}
+declare var CSSStyleSheet: {
+ prototype: CSSStyleSheet;
+ new (): CSSStyleSheet;
+}
+
+interface MSSelection {
+ type: string;
+ typeDetail: string;
+ createRange(): TextRange;
+ clear(): void;
+ createRangeCollection(): TextRangeCollection;
+ empty(): void;
+}
+declare var MSSelection: {
+ prototype: MSSelection;
+ new (): MSSelection;
+}
+
+interface HTMLMetaElement extends HTMLElement {
+ /**
+ * Gets or sets information used to bind the value of a content attribute of a meta element to an HTTP response header.
+ */
+ httpEquiv: string;
+ /**
+ * Sets or retrieves the value specified in the content attribute of the meta object.
+ */
+ name: string;
+ /**
+ * Gets or sets meta-information to associate with httpEquiv or name.
+ */
+ content: string;
+ /**
+ * Sets or retrieves the URL property that will be loaded after the specified time has elapsed.
+ */
+ url: string;
+ /**
+ * Sets or retrieves a scheme to be used in interpreting the value of a property specified for the object.
+ */
+ scheme: string;
+ /**
+ * Sets or retrieves the character set used to encode the object.
+ */
+ charset: string;
+}
+declare var HTMLMetaElement: {
+ prototype: HTMLMetaElement;
+ new (): HTMLMetaElement;
+}
+
+interface SVGPatternElement extends SVGElement, SVGUnitTypes, SVGStylable, SVGLangSpace, SVGTests, SVGFitToViewBox, SVGExternalResourcesRequired, SVGURIReference {
+ patternUnits: SVGAnimatedEnumeration;
+ y: SVGAnimatedLength;
+ width: SVGAnimatedLength;
+ x: SVGAnimatedLength;
+ patternContentUnits: SVGAnimatedEnumeration;
+ patternTransform: SVGAnimatedTransformList;
+ height: SVGAnimatedLength;
+}
+declare var SVGPatternElement: {
+ prototype: SVGPatternElement;
+ new (): SVGPatternElement;
+}
+
+interface SVGAnimatedAngle {
+ animVal: SVGAngle;
+ baseVal: SVGAngle;
+}
+declare var SVGAnimatedAngle: {
+ prototype: SVGAnimatedAngle;
+ new (): SVGAnimatedAngle;
+}
+
+interface Selection {
+ isCollapsed: boolean;
+ anchorNode: Node;
+ focusNode: Node;
+ anchorOffset: number;
+ focusOffset: number;
+ rangeCount: number;
+ addRange(range: Range): void;
+ collapseToEnd(): void;
+ toString(): string;
+ selectAllChildren(parentNode: Node): void;
+ getRangeAt(index: number): Range;
+ collapse(parentNode: Node, offset: number): void;
+ removeAllRanges(): void;
+ collapseToStart(): void;
+ deleteFromDocument(): void;
+ removeRange(range: Range): void;
+}
+declare var Selection: {
+ prototype: Selection;
+ new (): Selection;
+}
+
+interface SVGScriptElement extends SVGElement, SVGExternalResourcesRequired, SVGURIReference {
+ type: string;
+}
+declare var SVGScriptElement: {
+ prototype: SVGScriptElement;
+ new (): SVGScriptElement;
+}
+
+interface HTMLDDElement extends HTMLElement {
+ /**
+ * Sets or retrieves whether the browser automatically performs wordwrap.
+ */
+ noWrap: boolean;
+}
+declare var HTMLDDElement: {
+ prototype: HTMLDDElement;
+ new (): HTMLDDElement;
+}
+
+interface MSDataBindingRecordSetReadonlyExtensions {
+ recordset: Object;
+ namedRecordset(dataMember: string, hierarchy?: any): Object;
+}
+
+interface CSSStyleRule extends CSSRule {
+ selectorText: string;
+ style: MSStyleCSSProperties;
+ readOnly: boolean;
+}
+declare var CSSStyleRule: {
+ prototype: CSSStyleRule;
+ new (): CSSStyleRule;
+}
+
+interface NodeIterator {
+ whatToShow: number;
+ filter: NodeFilter;
+ root: Node;
+ expandEntityReferences: boolean;
+ nextNode(): Node;
+ detach(): void;
+ previousNode(): Node;
+}
+declare var NodeIterator: {
+ prototype: NodeIterator;
+ new (): NodeIterator;
+}
+
+interface SVGViewElement extends SVGElement, SVGZoomAndPan, SVGFitToViewBox, SVGExternalResourcesRequired {
+ viewTarget: SVGStringList;
+}
+declare var SVGViewElement: {
+ prototype: SVGViewElement;
+ new (): SVGViewElement;
+}
+
+interface HTMLLinkElement extends HTMLElement, LinkStyle {
+ /**
+ * Sets or retrieves the relationship between the object and the destination of the link.
+ */
+ rel: string;
+ /**
+ * Sets or retrieves the window or frame at which to target content.
+ */
+ target: string;
+ /**
+ * Sets or retrieves a destination URL or an anchor point.
+ */
+ href: string;
+ /**
+ * Sets or retrieves the media type.
+ */
+ media: string;
+ /**
+ * Sets or retrieves the relationship between the object and the destination of the link.
+ */
+ rev: string;
+ /**
+ * Sets or retrieves the MIME type of the object.
+ */
+ type: string;
+ /**
+ * Sets or retrieves the character set used to encode the object.
+ */
+ charset: string;
+ /**
+ * Sets or retrieves the language code of the object.
+ */
+ hreflang: string;
+}
+declare var HTMLLinkElement: {
+ prototype: HTMLLinkElement;
+ new (): HTMLLinkElement;
+}
+
+interface SVGLocatable {
+ farthestViewportElement: SVGElement;
+ nearestViewportElement: SVGElement;
+ getBBox(): SVGRect;
+ getTransformToElement(element: SVGElement): SVGMatrix;
+ getCTM(): SVGMatrix;
+ getScreenCTM(): SVGMatrix;
+}
+
+interface HTMLFontElement extends HTMLElement, DOML2DeprecatedColorProperty, DOML2DeprecatedSizeProperty {
+ /**
+ * Sets or retrieves the current typeface family.
+ */
+ face: string;
+}
+declare var HTMLFontElement: {
+ prototype: HTMLFontElement;
+ new (): HTMLFontElement;
+}
+
+interface SVGTitleElement extends SVGElement, SVGStylable, SVGLangSpace {
+}
+declare var SVGTitleElement: {
+ prototype: SVGTitleElement;
+ new (): SVGTitleElement;
+}
+
+interface ControlRangeCollection {
+ length: number;
+ queryCommandValue(cmdID: string): any;
+ remove(index: number): void;
+ add(item: Element): void;
+ queryCommandIndeterm(cmdID: string): boolean;
+ scrollIntoView(varargStart?: any): void;
+ item(index: number): Element;
+ [index: number]: Element;
+ execCommand(cmdID: string, showUI?: boolean, value?: any): boolean;
+ addElement(item: Element): void;
+ queryCommandState(cmdID: string): boolean;
+ queryCommandSupported(cmdID: string): boolean;
+ queryCommandEnabled(cmdID: string): boolean;
+ queryCommandText(cmdID: string): string;
+ select(): void;
+}
+declare var ControlRangeCollection: {
+ prototype: ControlRangeCollection;
+ new (): ControlRangeCollection;
+}
+
+interface MSNamespaceInfo extends MSEventAttachmentTarget {
+ urn: string;
+ onreadystatechange: (ev: Event) => any;
+ name: string;
+ readyState: string;
+ doImport(implementationUrl: string): void;
+}
+declare var MSNamespaceInfo: {
+ prototype: MSNamespaceInfo;
+ new (): MSNamespaceInfo;
+}
+
+interface WindowSessionStorage {
+ sessionStorage: Storage;
+}
+
+interface SVGAnimatedTransformList {
+ animVal: SVGTransformList;
+ baseVal: SVGTransformList;
+}
+declare var SVGAnimatedTransformList: {
+ prototype: SVGAnimatedTransformList;
+ new (): SVGAnimatedTransformList;
+}
+
+interface HTMLTableCaptionElement extends HTMLElement {
+ /**
+ * Sets or retrieves the alignment of the caption or legend.
+ */
+ align: string;
+ /**
+ * Sets or retrieves whether the caption appears at the top or bottom of the table.
+ */
+ vAlign: string;
+}
+declare var HTMLTableCaptionElement: {
+ prototype: HTMLTableCaptionElement;
+ new (): HTMLTableCaptionElement;
+}
+
+interface HTMLOptionElement extends HTMLElement, MSDataBindingExtensions {
+ /**
+ * Sets or retrieves the ordinal position of an option in a list box.
+ */
+ index: number;
+ /**
+ * Sets or retrieves the status of an option.
+ */
+ defaultSelected: boolean;
+ /**
+ * Sets or retrieves the value which is returned to the server when the form control is submitted.
+ */
+ value: string;
+ /**
+ * Sets or retrieves the text string specified by the option tag.
+ */
+ text: string;
+ /**
+ * Retrieves a reference to the form that the object is embedded in.
+ */
+ form: HTMLFormElement;
+ /**
+ * Sets or retrieves a value that you can use to implement your own label functionality for the object.
+ */
+ label: string;
+ /**
+ * Sets or retrieves whether the option in the list box is the default item.
+ */
+ selected: boolean;
+ create(): HTMLOptionElement;
+}
+declare var HTMLOptionElement: {
+ prototype: HTMLOptionElement;
+ new (): HTMLOptionElement;
+}
+
+interface HTMLMapElement extends HTMLElement {
+ /**
+ * Sets or retrieves the name of the object.
+ */
+ name: string;
+ /**
+ * Retrieves a collection of the area objects defined for the given map object.
+ */
+ areas: HTMLAreasCollection;
+}
+declare var HTMLMapElement: {
+ prototype: HTMLMapElement;
+ new (): HTMLMapElement;
+}
+
+interface HTMLMenuElement extends HTMLElement, DOML2DeprecatedListSpaceReduction {
+ type: string;
+}
+declare var HTMLMenuElement: {
+ prototype: HTMLMenuElement;
+ new (): HTMLMenuElement;
+}
+
+interface MouseWheelEvent extends MouseEvent {
+ wheelDelta: number;
+ initMouseWheelEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, detailArg: number, screenXArg: number, screenYArg: number, clientXArg: number, clientYArg: number, buttonArg: number, relatedTargetArg: EventTarget, modifiersListArg: string, wheelDeltaArg: number): void;
+}
+declare var MouseWheelEvent: {
+ prototype: MouseWheelEvent;
+ new (): MouseWheelEvent;
+}
+
+interface SVGFitToViewBox {
+ viewBox: SVGAnimatedRect;
+ preserveAspectRatio: SVGAnimatedPreserveAspectRatio;
+}
+
+interface SVGPointList {
+ numberOfItems: number;
+ replaceItem(newItem: SVGPoint, index: number): SVGPoint;
+ getItem(index: number): SVGPoint;
+ clear(): void;
+ appendItem(newItem: SVGPoint): SVGPoint;
+ initialize(newItem: SVGPoint): SVGPoint;
+ removeItem(index: number): SVGPoint;
+ insertItemBefore(newItem: SVGPoint, index: number): SVGPoint;
+}
+declare var SVGPointList: {
+ prototype: SVGPointList;
+ new (): SVGPointList;
+}
+
+interface SVGAnimatedLengthList {
+ animVal: SVGLengthList;
+ baseVal: SVGLengthList;
+}
+declare var SVGAnimatedLengthList: {
+ prototype: SVGAnimatedLengthList;
+ new (): SVGAnimatedLengthList;
+}
+
+interface Window extends EventTarget, MSEventAttachmentTarget, WindowLocalStorage, MSWindowExtensions, WindowSessionStorage, WindowTimers {
+ ondragend: (ev: DragEvent) => any;
+ onkeydown: (ev: KeyboardEvent) => any;
+ ondragover: (ev: DragEvent) => any;
+ onkeyup: (ev: KeyboardEvent) => any;
+ onreset: (ev: Event) => any;
+ onmouseup: (ev: MouseEvent) => any;
+ ondragstart: (ev: DragEvent) => any;
+ ondrag: (ev: DragEvent) => any;
+ screenX: number;
+ onmouseover: (ev: MouseEvent) => any;
+ ondragleave: (ev: DragEvent) => any;
+ history: History;
+ pageXOffset: number;
+ name: string;
+ onafterprint: (ev: Event) => any;
+ onpause: (ev: Event) => any;
+ onbeforeprint: (ev: Event) => any;
+ top: Window;
+ onmousedown: (ev: MouseEvent) => any;
+ onseeked: (ev: Event) => any;
+ opener: Window;
+ onclick: (ev: MouseEvent) => any;
+ innerHeight: number;
+ onwaiting: (ev: Event) => any;
+ ononline: (ev: Event) => any;
+ ondurationchange: (ev: Event) => any;
+ frames: Window;
+ onblur: (ev: FocusEvent) => any;
+ onemptied: (ev: Event) => any;
+ onseeking: (ev: Event) => any;
+ oncanplay: (ev: Event) => any;
+ outerWidth: number;
+ onstalled: (ev: Event) => any;
+ onmousemove: (ev: MouseEvent) => any;
+ innerWidth: number;
+ onoffline: (ev: Event) => any;
+ length: number;
+ screen: Screen;
+ onbeforeunload: (ev: BeforeUnloadEvent) => any;
+ onratechange: (ev: Event) => any;
+ onstorage: (ev: StorageEvent) => any;
+ onloadstart: (ev: Event) => any;
+ ondragenter: (ev: DragEvent) => any;
+ onsubmit: (ev: Event) => any;
+ self: Window;
+ document: Document;
+ onprogress: (ev: any) => any;
+ ondblclick: (ev: MouseEvent) => any;
+ pageYOffset: number;
+ oncontextmenu: (ev: MouseEvent) => any;
+ onchange: (ev: Event) => any;
+ onloadedmetadata: (ev: Event) => any;
+ onplay: (ev: Event) => any;
+ onerror: ErrorEventHandler;
+ onplaying: (ev: Event) => any;
+ parent: Window;
+ location: Location;
+ oncanplaythrough: (ev: Event) => any;
+ onabort: (ev: UIEvent) => any;
+ onreadystatechange: (ev: Event) => any;
+ outerHeight: number;
+ onkeypress: (ev: KeyboardEvent) => any;
+ frameElement: Element;
+ onloadeddata: (ev: Event) => any;
+ onsuspend: (ev: Event) => any;
+ window: Window;
+ onfocus: (ev: FocusEvent) => any;
+ onmessage: (ev: MessageEvent) => any;
+ ontimeupdate: (ev: Event) => any;
+ onresize: (ev: UIEvent) => any;
+ onselect: (ev: UIEvent) => any;
+ navigator: Navigator;
+ styleMedia: StyleMedia;
+ ondrop: (ev: DragEvent) => any;
+ onmouseout: (ev: MouseEvent) => any;
+ onended: (ev: Event) => any;
+ onhashchange: (ev: Event) => any;
+ onunload: (ev: Event) => any;
+ onscroll: (ev: UIEvent) => any;
+ screenY: number;
+ onmousewheel: (ev: MouseWheelEvent) => any;
+ onload: (ev: Event) => any;
+ onvolumechange: (ev: Event) => any;
+ oninput: (ev: Event) => any;
+ performance: Performance;
+ alert(message?: any): void;
+ scroll(x?: number, y?: number): void;
+ focus(): void;
+ scrollTo(x?: number, y?: number): void;
+ print(): void;
+ prompt(message?: string, defaul?: string): string;
+ toString(): string;
+ open(url?: string, target?: string, features?: string, replace?: boolean): Window;
+ scrollBy(x?: number, y?: number): void;
+ confirm(message?: string): boolean;
+ close(): void;
+ postMessage(message: any, targetOrigin: string, ports?: any): void;
+ showModalDialog(url?: string, argument?: any, options?: any): any;
+ blur(): void;
+ getSelection(): Selection;
+ getComputedStyle(elt: Element, pseudoElt?: string): CSSStyleDeclaration;
+}
+declare var Window: {
+ prototype: Window;
+ new (): Window;
+}
+
+interface SVGAnimatedPreserveAspectRatio {
+ animVal: SVGPreserveAspectRatio;
+ baseVal: SVGPreserveAspectRatio;
+}
+declare var SVGAnimatedPreserveAspectRatio: {
+ prototype: SVGAnimatedPreserveAspectRatio;
+ new (): SVGAnimatedPreserveAspectRatio;
+}
+
+interface MSSiteModeEvent extends Event {
+ buttonID: number;
+ actionURL: string;
+}
+declare var MSSiteModeEvent: {
+ prototype: MSSiteModeEvent;
+ new (): MSSiteModeEvent;
+}
+
+interface DOML2DeprecatedTextFlowControl {
+ clear: string;
+}
+
+interface StyleSheetPageList {
+ length: number;
+ item(index: number): CSSPageRule;
+ [index: number]: CSSPageRule;
+}
+declare var StyleSheetPageList: {
+ prototype: StyleSheetPageList;
+ new (): StyleSheetPageList;
+}
+
+interface MSCSSProperties extends CSSStyleDeclaration {
+ scrollbarShadowColor: string;
+ scrollbarHighlightColor: string;
+ layoutGridChar: string;
+ layoutGridType: string;
+ textAutospace: string;
+ textKashidaSpace: string;
+ writingMode: string;
+ scrollbarFaceColor: string;
+ backgroundPositionY: string;
+ lineBreak: string;
+ imeMode: string;
+ msBlockProgression: string;
+ layoutGridLine: string;
+ scrollbarBaseColor: string;
+ layoutGrid: string;
+ layoutFlow: string;
+ textKashida: string;
+ filter: string;
+ zoom: string;
+ scrollbarArrowColor: string;
+ behavior: string;
+ backgroundPositionX: string;
+ accelerator: string;
+ layoutGridMode: string;
+ textJustifyTrim: string;
+ scrollbar3dLightColor: string;
+ msInterpolationMode: string;
+ scrollbarTrackColor: string;
+ scrollbarDarkShadowColor: string;
+ styleFloat: string;
+ getAttribute(attributeName: string, flags?: number): any;
+ setAttribute(attributeName: string, AttributeValue: any, flags?: number): void;
+ removeAttribute(attributeName: string, flags?: number): boolean;
+}
+declare var MSCSSProperties: {
+ prototype: MSCSSProperties;
+ new (): MSCSSProperties;
+}
+
+interface HTMLCollection extends MSHTMLCollectionExtensions {
+ /**
+ * Sets or retrieves the number of objects in a collection.
+ */
+ length: number;
+ /**
+ * Retrieves an object from various collections.
+ */
+ item(nameOrIndex?: any, optionalIndex?: any): Element;
+ /**
+ * Retrieves a select object or an object from an options collection.
+ */
+ namedItem(name: string): Element;
+ [name: number]: Element;
+}
+declare var HTMLCollection: {
+ prototype: HTMLCollection;
+ new (): HTMLCollection;
+}
+
+interface SVGExternalResourcesRequired {
+ externalResourcesRequired: SVGAnimatedBoolean;
+}
+
+interface HTMLImageElement extends HTMLElement, MSImageResourceExtensions, MSDataBindingExtensions, MSResourceMetadata {
+ /**
+ * Sets or retrieves the width of the object.
+ */
+ width: number;
+ /**
+ * Sets or retrieves the vertical margin for the object.
+ */
+ vspace: number;
+ /**
+ * The original height of the image resource before sizing.
+ */
+ naturalHeight: number;
+ /**
+ * Sets or retrieves a text alternative to the graphic.
+ */
+ alt: string;
+ /**
+ * Sets or retrieves how the object is aligned with adjacent text.
+ */
+ align: string;
+ /**
+ * The address or URL of the a media resource that is to be considered.
+ */
+ src: string;
+ /**
+ * Sets or retrieves the URL, often with a bookmark extension (#name), to use as a client-side image map.
+ */
+ useMap: string;
+ /**
+ * The original width of the image resource before sizing.
+ */
+ naturalWidth: number;
+ /**
+ * Sets or retrieves the name of the object.
+ */
+ name: string;
+ /**
+ * Sets or retrieves the height of the object.
+ */
+ height: number;
+ /**
+ * Specifies the properties of a border drawn around an object.
+ */
+ border: string;
+ /**
+ * Sets or retrieves the width of the border to draw around the object.
+ */
+ hspace: number;
+ /**
+ * Sets or retrieves a Uniform Resource Identifier (URI) to a long description of the object.
+ */
+ longDesc: string;
+ /**
+ * Contains the hypertext reference (HREF) of the URL.
+ */
+ href: string;
+ /**
+ * Sets or retrieves whether the image is a server-side image map.
+ */
+ isMap: boolean;
+ /**
+ * Retrieves whether the object is fully loaded.
+ */
+ complete: boolean;
+ create(): HTMLImageElement;
+}
+declare var HTMLImageElement: {
+ prototype: HTMLImageElement;
+ new (): HTMLImageElement;
+}
+
+interface HTMLAreaElement extends HTMLElement {
+ /**
+ * Sets or retrieves the protocol portion of a URL.
+ */
+ protocol: string;
+ /**
+ * Sets or retrieves the substring of the href property that follows the question mark.
+ */
+ search: string;
+ /**
+ * Sets or retrieves a text alternative to the graphic.
+ */
+ alt: string;
+ /**
+ * Sets or retrieves the coordinates of the object.
+ */
+ coords: string;
+ /**
+ * Sets or retrieves the host name part of the location or URL.
+ */
+ hostname: string;
+ /**
+ * Sets or retrieves the port number associated with a URL.
+ */
+ port: string;
+ /**
+ * Sets or retrieves the file name or path specified by the object.
+ */
+ pathname: string;
+ /**
+ * Sets or retrieves the hostname and port number of the location or URL.
+ */
+ host: string;
+ /**
+ * Sets or retrieves the subsection of the href property that follows the number sign (#).
+ */
+ hash: string;
+ /**
+ * Sets or retrieves the window or frame at which to target content.
+ */
+ target: string;
+ /**
+ * Sets or retrieves a destination URL or an anchor point.
+ */
+ href: string;
+ /**
+ * Sets or gets whether clicks in this region cause action.
+ */
+ noHref: boolean;
+ /**
+ * Sets or retrieves the shape of the object.
+ */
+ shape: string;
+ /**
+ * Returns a string representation of an object.
+ */
+ toString(): string;
+}
+declare var HTMLAreaElement: {
+ prototype: HTMLAreaElement;
+ new (): HTMLAreaElement;
+}
+
+interface EventTarget {
+ addEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
+ removeEventListener(type: string, listener: EventListener, useCapture?: boolean): void;
+ dispatchEvent(evt: Event): boolean;
+}
+
+interface SVGAngle {
+ valueAsString: string;
+ valueInSpecifiedUnits: number;
+ value: number;
+ unitType: number;
+ newValueSpecifiedUnits(unitType: number, valueInSpecifiedUnits: number): void;
+ convertToSpecifiedUnits(unitType: number): void;
+ SVG_ANGLETYPE_RAD: number;
+ SVG_ANGLETYPE_UNKNOWN: number;
+ SVG_ANGLETYPE_UNSPECIFIED: number;
+ SVG_ANGLETYPE_DEG: number;
+ SVG_ANGLETYPE_GRAD: number;
+}
+declare var SVGAngle: {
+ prototype: SVGAngle;
+ new (): SVGAngle;
+ SVG_ANGLETYPE_RAD: number;
+ SVG_ANGLETYPE_UNKNOWN: number;
+ SVG_ANGLETYPE_UNSPECIFIED: number;
+ SVG_ANGLETYPE_DEG: number;
+ SVG_ANGLETYPE_GRAD: number;
+}
+
+interface HTMLButtonElement extends HTMLElement, MSDataBindingExtensions {
+ /**
+ * Sets or retrieves the default or selected value of the control.
+ */
+ value: string;
+ status: any;
+ /**
+ * Retrieves a reference to the form that the object is embedded in.
+ */
+ form: HTMLFormElement;
+ /**
+ * Sets or retrieves the name of the object.
+ */
+ name: string;
+ /**
+ * Gets the classification and default behavior of the button.
+ */
+ type: string;
+ /**
+ * Creates a TextRange object for the element.
+ */
+ createTextRange(): TextRange;
+}
+declare var HTMLButtonElement: {
+ prototype: HTMLButtonElement;
+ new (): HTMLButtonElement;
+}
+
+interface HTMLSourceElement extends HTMLElement {
+ /**
+ * The address or URL of the a media resource that is to be considered.
+ */
+ src: string;
+ /**
+ * Gets or sets the intended media type of the media source.
+ */
+ media: string;
+ /**
+ * Gets or sets the MIME type of a media resource.
+ */
+ type: string;
+}
+declare var HTMLSourceElement: {
+ prototype: HTMLSourceElement;
+ new (): HTMLSourceElement;
+}
+
+interface CanvasGradient {
+ addColorStop(offset: number, color: string): void;
+}
+declare var CanvasGradient: {
+ prototype: CanvasGradient;
+ new (): CanvasGradient;
+}
+
+interface KeyboardEvent extends UIEvent {
+ location: number;
+ keyCode: number;
+ shiftKey: boolean;
+ which: number;
+ locale: string;
+ key: string;
+ altKey: boolean;
+ metaKey: boolean;
+ char: string;
+ ctrlKey: boolean;
+ repeat: boolean;
+ charCode: number;
+ getModifierState(keyArg: string): boolean;
+ initKeyboardEvent(typeArg: string, canBubbleArg: boolean, cancelableArg: boolean, viewArg: Window, keyArg: string, locationArg: number, modifiersListArg: string, repeat: boolean, locale: string): void;
+ DOM_KEY_LOCATION_RIGHT: number;
+ DOM_KEY_LOCATION_STANDARD: number;
+ DOM_KEY_LOCATION_LEFT: number;
+ DOM_KEY_LOCATION_NUMPAD: number;
+ DOM_KEY_LOCATION_JOYSTICK: number;
+ DOM_KEY_LOCATION_MOBILE: number;
+}
+declare var KeyboardEvent: {
+ prototype: KeyboardEvent;
+ new (): KeyboardEvent;
+ DOM_KEY_LOCATION_RIGHT: number;
+ DOM_KEY_LOCATION_STANDARD: number;
+ DOM_KEY_LOCATION_LEFT: number;
+ DOM_KEY_LOCATION_NUMPAD: number;
+ DOM_KEY_LOCATION_JOYSTICK: number;
+ DOM_KEY_LOCATION_MOBILE: number;
+}
+
+interface Document extends Node, NodeSelector, MSEventAttachmentTarget, DocumentEvent, MSResourceMetadata, MSNodeExtensions {
+ /**
+ * Retrieves the collection of user agents and versions declared in the X-UA-Compatible
+ */
+ compatible: MSCompatibleInfoCollection;
+ /**
+ * Fires when the user presses a key.
+ * @param ev The keyboard event
+ */
+ onkeydown: (ev: KeyboardEvent) => any;
+ /**
+ * Fires when the user releases a key.
+ * @param ev The keyboard event
+ */
+ onkeyup: (ev: KeyboardEvent) => any;
+
+ /**
+ * Gets the implementation object of the current document.
+ */
+ implementation: DOMImplementation;
+ /**
+ * Fires when the user resets a form.
+ * @param ev The event.
+ */
+ onreset: (ev: Event) => any;
+
+ /**
+ * Retrieves a collection of all script objects in the document.
+ */
+ scripts: HTMLCollection;
+
+ /**
+ * Fires when the user presses the F1 key while the browser is the active window.
+ * @param ev The event.
+ */
+ onhelp: (ev: Event) => any;
+
+ /**
+ * Fires on the target object when the user moves the mouse out of a valid drop target during a drag operation.
+ * @param ev The drag event.
+ */
+ ondragleave: (ev: DragEvent) => any;
+
+ /**
+ * Gets or sets the character set used to encode the object.
+ */
+ charset: string;
+
+ /**
+ * Fires for an element just prior to setting focus on that element.
+ * @param ev The focus event
+ */
+ onfocusin: (ev: FocusEvent) => any;
+
+
+ /**
+ * Sets or gets the color of the links that the user has visited.
+ */
+ vlinkColor: string;
+
+ /**
+ * Occurs when the seek operation ends.
+ * @param ev The event.
+ */
+ onseeked: (ev: Event) => any;
+
+ security: string;
+
+ /**
+ * Contains the title of the document.
+ */
+ title: string;
+
+ /**
+ * Retrieves a collection of namespace objects.
+ */
+ namespaces: MSNamespaceInfoCollection;
+
+ /**
+ * Gets the default character set from the current regional language settings.
+ */
+ defaultCharset: string;
+
+ /**
+ * Retrieves a collection of all embed objects in the document.
+ */
+ embeds: HTMLCollection;
+
+ /**
+ * Retrieves a collection of styleSheet objects representing the style sheets that correspond to each instance of a link or style object in the document.
+ */
+ styleSheets: StyleSheetList;
+
+ /**
+ * Retrieves a collection of all window objects defined by the given document or defined by the document associated with the given window.
+ */
+ frames: Window;
+
+ /**
+ * Occurs when the duration attribute is updated.
+ * @param ev The event.
+ */
+ ondurationchange: (ev: Event) => any;
+
+
+ /**
+ * Returns a reference to the collection of elements contained by the object.
+ */
+ all: HTMLCollection;
+
+ /**
+ * Retrieves a collection, in source order, of all form objects in the document.
+ */
+ forms: HTMLCollection;
+
+ /**
+ * Fires when the object loses the input focus.
+ * @param ev The focus event.
+ */
+ onblur: (ev: FocusEvent) => any;
+
+
+ /**
+ * Sets or retrieves a value that indicates the reading order of the object.
+ */
+ dir: string;
+
+ /**
+ * Occurs when the media element is reset to its initial state.
+ * @param ev The event.
+ */
+ onemptied: (ev: Event) => any;
+
+
+ /**
+ * Sets or gets a value that indicates whether the document can be edited.
+ */
+ designMode: string;
+
+ /**
+ * Occurs when the current playback position is moved.
+ * @param ev The event.
+ */
+ onseeking: (ev: Event) => any;
+
+
+ /**
+ * Fires when the activeElement is changed from the current object to another object in the parent document.
+ * @param ev The UI Event
+ */
+ ondeactivate: (ev: UIEvent) => any;
+
+
+ /**
+ * Occurs when playback is possible, but would require further buffering.
+ * @param ev The event.
+ */
+ oncanplay: (ev: Event) => any;
+
+
+ /**
+ * Fires when the data set exposed by a data source object changes.
+ * @param ev The event.
+ */
+ ondatasetchanged: (ev: MSEventObj) => any;
+
+
+ /**
+ * Fires when rows are about to be deleted from the recordset.
+ * @param ev The event
+ */
+ onrowsdelete: (ev: MSEventObj) => any;
+
+ Script: MSScriptHost;
+
+ /**
+ * Occurs when Internet Explorer begins looking for media data.
+ * @param ev The event.
+ */
+ onloadstart: (ev: Event) => any;
+
+
+ /**
+ * Gets the URL for the document, stripped of any character encoding.
+ */
+ URLUnencoded: string;
+
+ defaultView: Window;
+
+ /**
+ * Fires when the user is about to make a control selection of the object.
+ * @param ev The event.
+ */
+ oncontrolselect: (ev: MSEventObj) => any;
+
+
+ /**
+ * Fires on the target element when the user drags the object to a valid drop target.
+ * @param ev The drag event.
+ */
+ ondragenter: (ev: DragEvent) => any;
+
+ onsubmit: (ev: Event) => any;
+
+ /**
+ * Returns the character encoding used to create the webpage that is loaded into the document object.
+ */
+ inputEncoding: string;
+
+ /**
+ * Gets the object that has the focus when the parent document has focus.
+ */
+ activeElement: Element;
+
+ /**
+ * Fires when the contents of the object or selection have changed.
+ * @param ev The event.
+ */
+ onchange: (ev: Event) => any;
+
+
+ /**
+ * Retrieves a collection of all a objects that specify the href property and all area objects in the document.
+ */
+ links: HTMLCollection;
+
+ /**
+ * Retrieves an autogenerated, unique identifier for the object.
+ */
+ uniqueID: string;
+
+ /**
+ * Sets or gets the URL for the current document.
+ */
+ URL: string;
+
+ /**
+ * Fires immediately before the object is set as the active element.
+ * @param ev The event.
+ */
+ onbeforeactivate: (ev: UIEvent) => any;
+
+ head: HTMLHeadElement;
+ cookie: string;
+ xmlEncoding: string;
+ oncanplaythrough: (ev: Event) => any;
+
+ /**
+ * Retrieves the document compatibility mode of the document.
+ */
+ documentMode: number;
+
+ characterSet: string;
+
+ /**
+ * Retrieves a collection of all a objects that have a name and/or id property. Objects in this collection are in HTML source order.
+ */
+ anchors: HTMLCollection;
+
+ onbeforeupdate: (ev: MSEventObj) => any;
+
+ /**
+ * Fires to indicate that all data is available from the data source object.
+ * @param ev The event.
+ */
+ ondatasetcomplete: (ev: MSEventObj) => any;
+
+ plugins: HTMLCollection;
+
+ /**
+ * Occurs if the load operation has been intentionally halted.
+ * @param ev The event.
+ */
+ onsuspend: (ev: Event) => any;
+
+
+ /**
+ * Gets the root svg element in the document hierarchy.
+ */
+ rootElement: SVGSVGElement;
+
+ /**
+ * Retrieves a value that indicates the current state of the object.
+ */
+ readyState: string;
+
+ /**
+ * Gets the URL of the location that referred the user to the current page.
+ */
+ referrer: string;
+
+ /**
+ * Sets or gets the color of all active links in the document.
+ */
+ alinkColor: string;
+
+ /**
+ * Fires on a databound object when an error occurs while updating the associated data in the data source object.
+ * @param ev The event.
+ */
+ onerrorupdate: (ev: MSEventObj) => any;
+
+
+ /**
+ * Gets a reference to the container object of the window.
+ */
+ parentWindow: Window;
+
+ /**
+ * Fires when the user moves the mouse pointer outside the boundaries of the object.
+ * @param ev The mouse event.
+ */
+ onmouseout: (ev: MouseEvent) => any;
+
+
+ /**
+ * Occurs when a user clicks a button in a Thumbnail Toolbar of a webpage running in Site Mode.
+ * @param ev The event.
+ */
+ onmsthumbnailclick: (ev: MSSiteModeEvent) => any;
+
+
+ /**
+ * Fires when the wheel button is rotated.
+ * @param ev The mouse event
+ */
+ onmousewheel: (ev: MouseWheelEvent) => any;
+
+
+ /**
+ * Occurs when the volume is changed, or playback is muted or unmuted.
+ * @param ev The event.
+ */
+ onvolumechange: (ev: Event) => any;
+
+
+ /**
+ * Fires when data changes in the data provider.
+ * @param ev The event.
+ */
+ oncellchange: (ev: MSEventObj) => any;
+
+
+ /**
+ * Fires just before the data source control changes the current row in the object.
+ * @param ev The event.
+ */
+ onrowexit: (ev: MSEventObj) => any;
+
+
+ /**
+ * Fires just after new rows are inserted in the current recordset.
+ * @param ev The event.
+ */
+ onrowsinserted: (ev: MSEventObj) => any;
+
+
+ /**
+ * Gets or sets the version attribute specified in the declaration of an XML document.
+ */
+ xmlVersion: string;
+
+ msCapsLockWarningOff: boolean;
+
+ /**
+ * Fires when a property changes on the object.
+ * @param ev The event.
+ */
+ onpropertychange: (ev: MSEventObj) => any;
+
+
+ /**
+ * Fires on the source object when the user releases the mouse at the close of a drag operation.
+ * @param ev The event.
+ */
+ ondragend: (ev: DragEvent) => any;
+
+
+ /**
+ * Gets an object representing the document type declaration associated with the current document.
+ */
+ doctype: DocumentType;
+
+ /**
+ * Fires on the target element continuously while the user drags the object over a valid drop target.
+ * @param ev The event.
+ */
+ ondragover: (ev: DragEvent) => any;
+
+
+ /**
+ * Deprecated. Sets or retrieves a value that indicates the background color behind the object.
+ */
+ bgColor: string;
+
+ /**
+ * Fires on the source object when the user starts to drag a text selection or selected object.
+ * @param ev The event.
+ */
+ ondragstart: (ev: DragEvent) => any;
+
+
+ /**
+ * Fires when the user releases a mouse button while the mouse is over the object.
+ * @param ev The mouse event.
+ */
+ onmouseup: (ev: MouseEvent) => any;
+
+
+ /**
+ * Fires on the source object continuously during a drag operation.
+ * @param ev The event.
+ */
+ ondrag: (ev: DragEvent) => any;
+
+
+ /**
+ * Fires when the user moves the mouse pointer into the object.
+ * @param ev The mouse event.
+ */
+ onmouseover: (ev: MouseEvent) => any;
+
+
+ /**
+ * Sets or gets the color of the document links.
+ */
+ linkColor: string;
+
+ /**
+ * Occurs when playback is paused.
+ * @param ev The event.
+ */
+ onpause: (ev: Event) => any;
+
+
+ /**
+ * Fires when the user clicks the object with either mouse button.
+ * @param ev The mouse event.
+ */
+ onmousedown: (ev: MouseEvent) => any;
+
+
+ /**
+ * Fires when the user clicks the left mouse button on the object
+ * @param ev The mouse event.
+ */
+ onclick: (ev: MouseEvent) => any;
+
+
+ /**
+ * Occurs when playback stops because the next frame of a video resource is not available.
+ * @param ev The event.
+ */
+ onwaiting: (ev: Event) => any;
+
+
+ /**
+ * Fires when the user clicks the Stop button or leaves the Web page.
+ * @param ev The event.
+ */
+ onstop: (ev: Event) => any;
+
+ /**
+ * false (false)[rolls
+ */
+
+ /**
+ * Occurs when an item is removed from a Jump List of a webpage running in Site Mode.
+ * @param ev The event.
+ */
+ onmssitemodejumplistitemremoved: (ev: MSSiteModeEvent) => any;
+
+
+ /**
+ * Retrieves a collection of all applet objects in the document.
+ */
+ applets: HTMLCollection;
+
+ /**
+ * Specifies the beginning and end of the document body.
+ */
+ body: HTMLElement;
+
+ /**
+ * Sets or gets the security domain of the document.
+ */
+ domain: string;
+
+ xmlStandalone: boolean;
+
+ /**
+ * Represents the active selection, which is a highlighted block of text or other elements in the document that a user or a script can carry out some action on.
+ */
+ selection: MSSelection;
+
+ /**
+ * Occurs when the download has stopped.
+ * @param ev The event.
+ */
+ onstalled: (ev: Event) => any;
+
+
+ /**
+ * Fires when the user moves the mouse over the object.
+ * @param ev The mouse event.
+ */
+ onmousemove: (ev: MouseEvent) => any;
+
+
+ /**
+ * Gets a reference to the root node of the document.
+ */
+ documentElement: HTMLElement;
+
+ /**
+ * Fires before an object contained in an editable element enters a UI-activated state or when an editable container object is control selected.
+ * @param ev The event.
+ */
+ onbeforeeditfocus: (ev: MSEventObj) => any;
+
+
+ /**
+ * Occurs when the playback rate is increased or decreased.
+ * @param ev The event.
+ */
+ onratechange: (ev: Event) => any;
+
+
+ /**
+ * Occurs to indicate progress while downloading media data.
+ * @param ev The event.
+ */
+ onprogress: (ev: any) => any;
+
+
+ /**
+ * Fires when the user double-clicks the object.
+ * @param ev The mouse event.
+ */
+ ondblclick: (ev: MouseEvent) => any;
+
+
+ /**
+ * Fires when the user clicks the right mouse button in the client area, opening the context menu.
+ * @param ev The mouse event.
+ */
+ oncontextmenu: (ev: MouseEvent) => any;
+
+
+ /**
+ * Occurs when the duration and dimensions of the media have been determined.
+ * @param ev The event.
+ */
+ onloadedmetadata: (ev: Event) => any;
+
+ media: string;
+
+ /**
+ * Fires when an error occurs during object loading.
+ * @param ev The event.
+ */
+ onerror: (ev: Event) => any;
+
+
+ /**
+ * Occurs when the play method is requested.
+ * @param ev The event.
+ */
+ onplay: (ev: Event) => any;
+
+ onafterupdate: (ev: MSEventObj) => any;
+
+ /**
+ * Occurs when the audio or video has started playing.
+ * @param ev The event.
+ */
+ onplaying: (ev: Event) => any;
+
+
+ /**
+ * Retrieves a collection, in source order, of img objects in the document.
+ */
+ images: HTMLCollection;
+
+ /**
+ * Contains information about the current URL.
+ */
+ location: Location;
+
+ /**
+ * Fires when the user aborts the download.
+ * @param ev The event.
+ */
+ onabort: (ev: UIEvent) => any;
+
+
+ /**
+ * Fires for the current element with focus immediately after moving focus to another element.
+ * @param ev The event.
+ */
+ onfocusout: (ev: FocusEvent) => any;
+
+
+ /**
+ * Fires when the selection state of a document changes.
+ * @param ev The event.
+ */
+ onselectionchange: (ev: Event) => any;
+
+
+ /**
+ * Fires when a local DOM Storage area is written to disk.
+ * @param ev The event.
+ */
+ onstoragecommit: (ev: StorageEvent) => any;
+
+
+ /**
+ * Fires periodically as data arrives from data source objects that asynchronously transmit their data.
+ * @param ev The event.
+ */
+ ondataavailable: (ev: MSEventObj) => any;
+
+
+ /**
+ * Fires when the state of the object has changed.
+ * @param ev The event
+ */
+ onreadystatechange: (ev: Event) => any;
+
+
+ /**
+ * Gets the date that the page was last modified, if the page supplies one.
+ */
+ lastModified: string;
+
+ /**
+ * Fires when the user presses an alphanumeric key.
+ * @param ev The event.
+ */
+ onkeypress: (ev: KeyboardEvent) => any;
+
+
+ /**
+ * Occurs when media data is loaded at the current playback position.
+ * @param ev The event.
+ */
+ onloadeddata: (ev: Event) => any;
+
+
+ /**
+ * Fires immediately before the activeElement is changed from the current object to another object in the parent document.
+ * @param ev The event.
+ */
+ onbeforedeactivate: (ev: UIEvent) => any;
+
+
+ /**
+ * Fires when the object is set as the active element.
+ * @param ev The event.
+ */
+ onactivate: (ev: UIEvent) => any;
+
+
+ onselectstart: (ev: Event) => any;
+
+ /**
+ * Fires when the object receives focus.
+ * @param ev The event.
+ */
+ onfocus: (ev: FocusEvent) => any;
+
+
+ /**
+ * Sets or gets the foreground (text) color of the document.
+ */
+ fgColor: string;
+
+ /**
+ * Occurs to indicate the current playback position.
+ * @param ev The event.
+ */
+ ontimeupdate: (ev: Event) => any;
+
+
+ /**
+ * Fires when the current selection changes.
+ * @param ev The event.
+ */
+ onselect: (ev: UIEvent) => any;
+
+ ondrop: (ev: DragEvent) => any;
+
+ /**
+ * Occurs when the end of playback is reached.
+ * @param ev The event
+ */
+ onended: (ev: Event) => any;
+
+
+ /**
+ * Gets a value that indicates whether standards-compliant mode is switched on for the object.
+ */
+ compatMode: string;
+
+ /**
+ * Fires when the user repositions the scroll box in the scroll bar on the object.
+ * @param ev The event.
+ */
+ onscroll: (ev: UIEvent) => any;
+
+
+ /**
+ * Fires to indicate that the current row has changed in the data source and new data values are available on the object.
+ * @param ev The event.
+ */
+ onrowenter: (ev: MSEventObj) => any;
+
+
+ /**
+ * Fires immediately after the browser loads the object.
+ * @param ev The event.
+ */
+ onload: (ev: Event) => any;
+
+ oninput: (ev: Event) => any;
+
+ /**
+ * Returns the current value of the document, range, or current selection for the given command.
+ * @param commandId String that specifies a command identifier.
+ */
+ queryCommandValue(commandId: string): string;
+
+ adoptNode(source: Node): Node;
+
+ /**
+ * Returns a Boolean value that indicates whether the specified command is in the indeterminate state.
+ * @param commandId String that specifies a command identifier.
+ */
+ queryCommandIndeterm(commandId: string): boolean;
+
+ getElementsByTagNameNS(namespaceURI: string, localName: string): NodeList;
+ createProcessingInstruction(target: string, data: string): ProcessingInstruction;
+
+ /**
+ * Executes a command on the current document, current selection, or the given range.
+ * @param commandId String that specifies the command to execute. This command can be any of the command identifiers that can be executed in script.
+ * @param showUI Display the user interface, defaults to false.
+ * @param value Value to assign.
+ */
+ execCommand(commandId: string, showUI?: boolean, value?: any): boolean;
+
+ /**
+ * Returns the element for the specified x coordinate and the specified y coordinate.
+ * @param x The x-offset
+ * @param y The y-offset
+ */
+ elementFromPoint(x: number, y: number): Element;
+ createCDATASection(data: string): CDATASection;
+
+ /**
+ * Retrieves the string associated with a command.
+ * @param commandId String that contains the identifier of a command. This can be any command identifier given in the list of Command Identifiers.
+ */
+ queryCommandText(commandId: string): string;
+
+ /**
+ * Writes one or more HTML expressions to a document in the specified window.
+ * @param content Specifies the text and HTML tags to write.
+ */
+ write(...content: string[]): void;
+
+ /**
+ * Allows updating the print settings for the page.
+ */
+ updateSettings(): void;
+
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "a"): HTMLAnchorElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "abbr"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "address"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "area"): HTMLAreaElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "article"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "aside"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "audio"): HTMLAudioElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "b"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "base"): HTMLBaseElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "bdi"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "bdo"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "blockquote"): HTMLQuoteElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "body"): HTMLBodyElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "br"): HTMLBRElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "button"): HTMLButtonElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "canvas"): HTMLCanvasElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "caption"): HTMLTableCaptionElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "cite"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "code"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "col"): HTMLTableColElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "colgroup"): HTMLTableColElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "datalist"): HTMLDataListElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "dd"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "del"): HTMLModElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "dfn"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "div"): HTMLDivElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "dl"): HTMLDListElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "dt"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "em"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "embed"): HTMLEmbedElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "fieldset"): HTMLFieldSetElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "figcaption"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "figure"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "footer"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "form"): HTMLFormElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "h1"): HTMLHeadingElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "h2"): HTMLHeadingElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "h3"): HTMLHeadingElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "h4"): HTMLHeadingElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "h5"): HTMLHeadingElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "h6"): HTMLHeadingElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "head"): HTMLHeadElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "header"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "hgroup"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "hr"): HTMLHRElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "html"): HTMLHtmlElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "i"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "iframe"): HTMLIFrameElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "img"): HTMLImageElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "input"): HTMLInputElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "ins"): HTMLModElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "kbd"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "label"): HTMLLabelElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "legend"): HTMLLegendElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "li"): HTMLLIElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "link"): HTMLLinkElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "main"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "map"): HTMLMapElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "mark"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "menu"): HTMLMenuElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "meta"): HTMLMetaElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "nav"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "noscript"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "object"): HTMLObjectElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "ol"): HTMLOListElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "optgroup"): HTMLOptGroupElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "option"): HTMLOptionElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "p"): HTMLParagraphElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "param"): HTMLParamElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "pre"): HTMLPreElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "progress"): HTMLProgressElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "q"): HTMLQuoteElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "rp"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "rt"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "ruby"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "s"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "samp"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "script"): HTMLScriptElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "section"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "select"): HTMLSelectElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "small"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "source"): HTMLSourceElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "span"): HTMLSpanElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "strong"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "style"): HTMLStyleElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "sub"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "summary"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "sup"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "table"): HTMLTableElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "tbody"): HTMLTableSectionElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "td"): HTMLTableDataCellElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "textarea"): HTMLTextAreaElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "tfoot"): HTMLTableSectionElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "th"): HTMLTableHeaderCellElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "thead"): HTMLTableSectionElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "title"): HTMLTitleElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "tr"): HTMLTableRowElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "track"): HTMLTrackElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "u"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "ul"): HTMLUListElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "var"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "video"): HTMLVideoElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: "wbr"): HTMLElement;
+ /**
+ * Creates an instance of the element for the specified tag.
+ * @param tagName The name of an element.
+ */
+ createElement(tagName: string): HTMLElement;
+
+ /**
+ * Removes mouse capture from the object in the current document.
+ */
+ releaseCapture(): void;
+
+ /**
+ * Writes one or more HTML expressions, followed by a carriage return, to a document in the specified window.
+ * @param content The text and HTML tags to write.
+ */
+ writeln(...content: string[]): void;
+ createElementNS(namespaceURI: string, qualifiedName: string): Element;
+
+ /**
+ * Opens a new window and loads a document specified by a given URL. Also, opens a new window that uses the url parameter and the name parameter to collect the output of the write method and the writeln method.
+ * @param url Specifies a MIME type for the document.
+ * @param name Specifies the name of the window. This name is used as the value for the TARGET attribute on a form or an anchor element.
+ * @param features Contains a list of items separated by commas. Each item consists of an option and a value, separated by an equals sign (for example, "fullscreen=yes, toolbar=yes"). The following values are supported.
+ * @param replace Specifies whether the existing entry for the document is replaced in the history list.
+ */
+ open(url?: string, name?: string, features?: string, replace?: boolean): any;
+
+ /**
+ * Returns a Boolean value that indicates whether the current command is supported on the current range.
+ * @param commandId Specifies a command identifier.
+ */
+ queryCommandSupported(commandId: string): boolean;
+
+ /**
+ * Creates a TreeWalker object that you can use to traverse filtered lists of nodes or elements in a document.
+ * @param root The root element or node to start traversing on.
+ * @param whatToShow The type of nodes or elements to appear in the node list. For more information, see whatToShow.
+ * @param filter A custom NodeFilter function to use.
+ * @param entityReferenceExpansion A flag that specifies whether entity reference nodes are expanded.
+ */
+ createTreeWalker(root: Node, whatToShow: number, filter: NodeFilter, entityReferenceExpansion: boolean): TreeWalker;
+ createAttributeNS(namespaceURI: string, qualifiedName: string): Attr;
+
+ /**
+ * Returns a Boolean value that indicates whether a specified command can be successfully executed using execCommand, given the current state of the document.
+ * @param commandId Specifies a command identifier.
+ */
+ queryCommandEnabled(commandId: string): boolean;
+
+ /**
+ * Causes the element to receive the focus and executes the code specified by the onfocus event.
+ */
+ focus(): void;
+
+ /**
+ * Closes an output stream and forces the sent data to display.
+ */
+ close(): void;
+
+ getElementsByClassName(classNames: string): NodeList;
+ importNode(importedNode: Node, deep: boolean): Node;
+
+ /**
+ * Returns an empty range object that has both of its boundary points positioned at the beginning of the document.
+ */
+ createRange(): Range;
+
+ /**
+ * Fires a specified event on the object.
+ * @param eventName Specifies the name of the event to fire.
+ * @param eventObj Object that specifies the event object from which to obtain event object properties.
+ */
+ fireEvent(eventName: string, eventObj?: any): boolean;
+
+ /**
+ * Creates a comment object with the specified data.
+ * @param data Sets the comment object's data.
+ */
+ createComment(data: string): Comment;
+
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "a"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "abbr"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "address"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "area"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "article"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "aside"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "audio"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "b"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "base"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "bdi"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "bdo"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "blockquote"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "body"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "br"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "button"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "canvas"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "caption"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "cite"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "code"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "col"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "colgroup"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "datalist"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "dd"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "del"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "dfn"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "div"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "dl"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "dt"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "em"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "embed"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "fieldset"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "figcaption"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "figure"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "footer"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "form"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "h1"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "h2"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "h3"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "h4"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "h5"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "h6"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "head"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "header"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "hgroup"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "hr"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "html"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "i"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "iframe"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "img"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "input"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "ins"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "kbd"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "label"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "legend"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "li"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "link"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "main"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "map"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "mark"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "menu"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "meta"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "nav"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "noscript"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "object"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "ol"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "optgroup"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "option"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "p"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "param"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "pre"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "progress"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "q"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "rp"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "rt"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "ruby"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "s"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "samp"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "script"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "section"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "select"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "small"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "source"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "span"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "strong"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "style"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "sub"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "summary"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "sup"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "table"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "tbody"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "td"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "textarea"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "tfoot"): NodeListOf;
+ /**
+ * Retrieves a collection of objects based on the specified element name.
+ * @param name Specifies the name of an element.
+ */
+ getElementsByTagName(name: "th"): NodeListOf