diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 9e71af53a0..533c2f9151 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -8,9 +8,12 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](accounting/accounting.d.ts) [accounting.js](http://josscrowcroft.github.io/accounting.js) by [Sergey Gerasimov](https://github.com/gerich-home) * [:link:](ace/ace.d.ts) [Ace Ajax.org Cloud9 Editor](http://ace.ajax.org) by [Diullei Gomes](https://github.com/Diullei) * [:link:](acorn/acorn.d.ts) [Acorn](https://github.com/marijnh/acorn) by [RReverser](https://github.com/RReverser) +* [:link:](rails-actioncable/rails-actioncable.d.ts) [ActionCable](https://github.com/rails/rails/tree/master/actioncable) by [Vincent Zhu](https://github.com/zhu1230) +* [:link:](cordova-plugin-ms-adal/cordova-plugin-ms-adal.d.ts) [Active Directory Authentication Library plugin for Apache Cordova](https://github.com/AzureAD/azure-activedirectory-library-for-cordova) by [Kai Walter](https://github.com/KaiWalter) * [:link:](add2home/add2home.d.ts) [add2home](http://cubiq.org/add-to-home-screen) by [James Wilkins](http://www.codeplex.com/site/users/view/jamesnw) -* [:link:](adm-zip/adm-zip.d.ts) [adm-zip](https://github.com/cthackers/adm-zip) by [John Vilk](https://github.com/jvilk) +* [:link:](adm-zip/adm-zip.d.ts) [adm-zip](https://github.com/cthackers/adm-zip) by [John Vilk](https://github.com/jvilk), [Abner Oliveira](https://github.com/abner) * [:link:](ag-grid/ag-grid.d.ts) [ag-grid](http://www.ag-grid.com) by [Niall Crosby](https://github.com/ceolter) +* [:link:](agenda/agenda.d.ts) [Agenda](https://github.com/rschmukler/agenda) by [Meir Gottlieb](https://github.com/meirgottlieb) * [:link:](alertify/alertify.d.ts) [alertify](http://fabien-d.github.io/alertify.js) by [John Jeffery](http://github.com/jjeffery) * [:link:](alt/alt.d.ts) [Alt](https://github.com/goatslacker/alt) by [Michael Shearer](https://github.com/Shearerbeard) * [:link:](amazon-product-api/amazon-product-api.d.ts) [amazon-product-api](https://github.com/t3chnoboy/amazon-product-api) by [Matti Lehtinen](https://github.com/MattiLehtinen) @@ -19,7 +22,6 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](amplify-deferred/amplify-deferred.d.ts) [AmplifyJs 1.1.0 using JQuery Deferred](http://amplifyjs.com) by [Jonas Eriksson](https://github.com/joeriks), [Laurentiu Stamate](https://github.com/laurentiustamate94) * [:link:](amqp-rpc/amqp-rpc.d.ts) [amqp-rpc](https://github.com/demchenkoe/node-amqp-rpc) by [Wonshik Kim](https://github.com/wokim) * [:link:](amqplib/amqplib.d.ts) [amqplib 0.3.x](https://github.com/squaremo/amqp.node) by [Michael Nahkies](https://github.com/mnahkies), [Ab Reitsma](https://github.com/abreits) -* [:link:](angular2/angular2.d.ts) [Angular 2](http://angular.io) by [angular team](https://github.com/angular) * [:link:](angular-dialog-service/angular-dialog-service.d.ts) [Angular Dialog Service](https://github.com/m-e-conroy/angular-dialog-service) by [William Comartin](https://github.com/wcomartin) * [:link:](ng-file-upload/ng-file-upload.d.ts) [Angular File Upload](https://github.com/danialfarid/ng-file-upload) by [John Reilly](https://github.com/johnnyreilly) * [:link:](angular-file-upload/angular-file-upload.d.ts) [Angular File Upload](https://github.com/danialfarid/ng-file-upload) by [John Reilly](https://github.com/johnnyreilly) @@ -33,23 +35,33 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](angularjs/angular-sanitize.d.ts) [Angular JS (ngSanitize module)](http://angularjs.org) by [Diego Vilar](http://github.com/diegovilar) * [:link:](angular-ui-router/angular-ui-router.d.ts) [Angular JS (ui.router module)](https://github.com/angular-ui/ui-router) by [Michel Salib](https://github.com/michelsalib) * [:link:](angular-ui-scroll/angular-ui-scroll.d.ts) [Angular JS (ui.scroll module)](https://github.com/angular-ui/ui-scroll) by [Mark Nadig](https://github.com/marknadig) +* [:link:](angularjs/angular-component-router.d.ts) [Angular JS 1.5 component router](http://angularjs.org) by [David Reher](http://github.com/davidreher) * [:link:](angular-meteor/angular-meteor.d.ts) [Angular JS Meteor (angular.meteor module)](https://github.com/Urigo/angular-meteor) by [Peter Grman](https://github.com/pgrm) +* [:link:](angular-locker/angular-locker.d.ts) [Angular Locker](https://github.com/tymondesigns/angular-locker) by [Niko Kovačič](https://github.com/nkovacic) * [:link:](angular-material/angular-material.d.ts) [Angular Material (angular.material module)](https://github.com/angular/material) by [Matt Traynham](https://github.com/mtraynham) * [:link:](angular-protractor/angular-protractor.d.ts) [Angular Protractor](https://github.com/angular/protractor) by [Bill Armstrong](https://github.com/BillArmstrong) * [:link:](angular-scenario/angular-scenario.d.ts) [Angular Scenario Testing (ngScenario module)](http://angularjs.org) by [RomanoLindano](https://github.com/RomanoLindano) +* [:link:](angular-toastr/angular-toastr.d.ts) [Angular Toastr](https://github.com/Foxandxss/angular-toastr) by [Niko Kovačič](https://github.com/nkovacic) * [:link:](angular-toasty/angular-toasty.d.ts) [Angular Toasty](https://github.com/invertase/angular-toasty) by [Dominik Muench](https://github.com/muenchdo) +* [:link:](angular-touchspin/angular-touchspin.d.ts) [Angular Touchspin](https://github.com/nkovacic/angular-touchspin) by [Niko Kovačič](https://github.com/nkovacic) * [:link:](angular-translate/angular-translate.d.ts) [Angular Translate (pascalprecht.translate module)](https://github.com/PascalPrecht/angular-translate) by [Michel Salib](https://github.com/michelsalib) * [:link:](angular-ui-bootstrap/angular-ui-bootstrap.d.ts) [Angular UI Bootstrap](https://github.com/angular-ui/bootstrap) by [Brian Surowiec](https://github.com/xt0rted) -* [:link:](angular-wizard/angular-wizard.d.ts) [Angular Wizard](https://github.com/mgonto/angular-wizard) by [Marko Jurisic](https://github.com/mjurisic) +* [:link:](angular-wizard/angular-wizard.d.ts) [Angular Wizard](https://github.com/mgonto/angular-wizard) by [Marko Jurisic](https://github.com/mjurisic), [Ronald Wildenberg](https://github.com/rwwilden) +* [:link:](angular-bootstrap-calendar/angular-bootstrap-calendar.d.ts) [angular-bootstrap-calendar](https://github.com/mattlewis92/angular-bootstrap-calendar) by [Egor Komarov](https://github.com/Odrin) * [:link:](angular-bootstrap-lightbox/angular-bootstrap-lightbox.d.ts) [angular-bootstrap-lightbox](https://github.com/compact/angular-bootstrap-lightbox) by [Roland Zwaga](https://github.com/rolandzwaga) +* [:link:](angular-breadcrumb/angular-breadcrumb.d.ts) [angular-breadcrumb](https://github.com/ncuillery/angular-breadcrumb) by [Marc Talary](https://github.com/marctalary) +* [:link:](angular-cookie/angular-cookie.d.ts) [angular-cookie](https://github.com/ivpusic/angular-cookie) by [Borislav Zhivkov](https://github.com/borislavjivkov) * [:link:](angular-dynamic-locale/angular-dynamic-locale.d.ts) [angular-dynamic-locale](https://github.com/lgalfaso/angular-dynamic-locale) by [Stephen Lautier](https://github.com/stephenlautier) +* [:link:](angular-environment/angular-environment.d.ts) [angular-environment](https://github.com/juanpablob/angular-environment) by [Matt Wheatley](https://github.com/terrawheat) * [:link:](angular-formly/angular-formly.d.ts) [angular-formly](https://github.com/formly-js/angular-formly) by [Scott Hatcher](https://github.com/scatcher) * [:link:](angular-gettext/angular-gettext.d.ts) [angular-gettext](https://angular-gettext.rocketeer.be) by [Ákos Lukács](https://github.com/AkosLukacs) +* [:link:](angular-google-analytics/angular-google-analytics-service.d.ts) [angular-google-analytics](https://github.com/revolunet/angular-google-analytics) by [Matt Wheatley](https://github.com/terrawheat) * [:link:](angular-google-analytics/angular-google-analytics.d.ts) [angular-google-analytics](https://github.com/revolunet/angular-google-analytics) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](angular-hotkeys/angular-hotkeys.d.ts) [angular-hotkeys](https://github.com/chieffancypants/angular-hotkeys) by [Jason Zhao](https://github.com/jlz27), [Stefan Steinhart](https://github.com/reppners) * [:link:](angular-http-auth/angular-http-auth.d.ts) [angular-http-auth](https://github.com/witoldsz/angular-http-auth) by [vvakame](https://github.com/vvakame) * [:link:](angular-httpi/angular-httpi.d.ts) [angular-httpi](https://github.com/bennadel/httpi) by [Andrew Camilleri](https://github.com/Kukks) * [:link:](angular-jwt/angular-jwt.d.ts) [angular-jwt](https://github.com/auth0/angular-jwt) by [Reto Rezzonico](https://github.com/rerezz) +* [:link:](angular-load/angular-load.d.ts) [angular-load](https://github.com/urish/angular-load) by [david-gang](https://github.com/david-gang) * [:link:](angular-loading-bar/angular-loading-bar.d.ts) [angular-loading-bar](https://github.com/chieffancypants/angular-loading-bar) by [Stephen Lautier](https://github.com/stephenlautier) * [:link:](angular-local-storage/angular-local-storage.d.ts) [angular-local-storage](https://github.com/grevory/angular-local-storage) by [Ken Fukuyama](https://github.com/kenfdev) * [:link:](angular-localForage/angular-localForage.d.ts) [angular-localForage](https://github.com/ocombe/angular-localForage) by [Stefan Steinhart](https://github.com/reppners) @@ -67,12 +79,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](angular-agility/angular-agility.d.ts) [AngularAgility](https://github.com/AngularAgility/AngularAgility) by [Roland Zwaga](https://github.com/rolandzwaga) * [:link:](angularfire/angularfire.d.ts) [AngularFire](http://angularfire.com) by [Dénes Harmath](http://github.com/thSoft) * [:link:](rx-angular/rx.angular.d.ts) [angularjs extensions to rxjs](http://reactivex.io) by [Mick Delaney](https://github.com/mickdelaney) +* [:link:](angular-fullscreen/angular-fullscreen.d.ts) [AngularJS HTML5 Fullscreen](https://github.com/fabiobiondi/angular-fullscreen) by [Julien Paroche](https://github.com/julienpa) * [:link:](angularjs-toaster/angularjs-toaster.d.ts) [angularjs-toaster](https://github.com/jirikavi/AngularJS-Toaster) by [Ben Tesser](https://github.com/btesser) * [:link:](angularLocalStorage/angularLocalStorage.d.ts) [AngularLocalStorage](https://github.com/agrublev/angularLocalStorage) by [Horiuchi_H](https://github.com/horiuchi) * [:link:](angulartics/angulartics.d.ts) [Angulartics](http://luisfarzati.github.io/angulartics) by [Steven Fan](https://github.com/stevenfan) * [:link:](animation-frame/animation-frame.d.ts) [animation-frame](https://github.com/kof/animation-frame) by [Qinfeng Chen](https://github.com/qinfchen) * [:link:](ansi-styles/ansi-styles.d.ts) [ansi-styles](https://github.com/sindresorhus/ansi-styles) by [bryn austin bellomy](https://github.com/brynbellomy) * [:link:](ansicolors/ansicolors.d.ts) [ansicolors](https://github.com/thlorenz/ansicolors) by [rogierschouten](https://github.com/rogierschouten) +* [:link:](antd/antd.d.ts) [Antd](http://ant.design) by [bang88](https://github.com/bang88) * [:link:](any-db/any-db.d.ts) [any-db](https://github.com/grncdr/node-any-db) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](any-db-transaction/any-db-transaction.d.ts) [any-db-transaction](https://github.com/grncdr/node-any-db-transaction) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](anydb-sql/anydb-sql.d.ts) [anydb-sql](https://github.com/doxout/anydb-sql) by [Gorgi Kosev](https://github.com/spion) @@ -94,6 +108,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](assertion-error/assertion-error.d.ts) [assertion-error](https://github.com/chaijs/assertion-error) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](assertsharp/assertsharp.d.ts) [assertsharp](https://www.npmjs.com/package/assertsharp) by [Bruno Leonardo Michels](https://github.com/brunolm) * [:link:](async/async.d.ts) [Async](https://github.com/caolan/async) by [Boris Yankov](https://github.com/borisyankov), [Arseniy Maximov](https://github.com/kern0), [Joe Herman](https://github.com/Penryn) +* [:link:](async-lock/async-lock.d.ts) [async-lock](https://github.com/rain1017/async-lock) by [Elisée MAURER](https://github.com/elisee) * [:link:](async-writer/async-writer.d.ts) [async-writer](https://github.com/marko-js/async-writer) by [Yuce Tekol](http://yuce.me) * [:link:](asyncblock/asyncblock.d.ts) [asyncblock](https://github.com/scriby/asyncblock) by [Hiroki Horiuchi](https://github.com/horiuchi) * [:link:](atmosphere/atmosphere.d.ts) [Atmosphere](https://github.com/Atmosphere/atmosphere-javascript) by [Kai Toedter](https://github.com/toedter) @@ -101,16 +116,21 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](atom/api-docs.d.ts) [Atom API docs](https://github.com/atom/atom/blob/master/build/tasks/docs-task.coffee) by [vvakame](https://github.com/vvakame) * [:link:](atom-keymap/atom-keymap.d.ts) [atom-keymap](https://github.com/atom/atom-keymap) by [Vadim Macagon](https://github.com/enlight) * [:link:](atpl/atpl.d.ts) [atpl](https://github.com/soywiz/atpl.js) by [Carlos Ballesteros Velasco](https://github.com/soywiz) +* [:link:](auth0-angular/auth0-angular.d.ts) [auth0-angular](https://github.com/auth0/auth0-angular) by [Matt Emory](https://github.com/homesar) * [:link:](auth0/auth0.d.ts) [Auth0.js](http://auth0.com) by [Robert McLaws](https://github.com/advancedrei) * [:link:](auth0.lock/auth0.lock.d.ts) [Auth0Widget.js](http://auth0.com) by [Robert McLaws](https://github.com/advancedrei) * [:link:](auth0.widget/auth0.widget.d.ts) [Auth0Widget.js](http://auth0.com) by [Robert McLaws](https://github.com/advancedrei) * [:link:](auto-launch/auto-launch.d.ts) [auto-launch](https://github.com/Teamwork/node-auto-launch) by [rhysd](https://github.com/rhysd) * [:link:](autobahn/autobahn.d.ts) [AutobahnJS](http://autobahn.ws/js) by [Elad Zelingher](https://github.com/darkl), [Andy Hawkins](https://github.com/a904guy/,http://a904guy.com/,http://www.bmbsqd.com) +* [:link:](autolinker/autolinker.d.ts) [autolinker](https://github.com/gregjacobs/Autolinker.js) by [Leon Yu](https://github.com/leonyu) * [:link:](autoprefixer-core/autoprefixer-core.d.ts) [Autoprefixer Core](https://github.com/postcss/autoprefixer-core) by [Asana](https://asana.com) * [:link:](aws-sdk/aws-sdk.d.ts) [aws-sdk](https://github.com/aws/aws-sdk-js) by [midknight41](https://github.com/midknight41) * [:link:](axios/axios.d.ts) [axios](https://github.com/mzabriskie/axios) by [Marcel Buesing](https://github.com/marcelbuesing) * [:link:](node-azure/azure.d.ts) [Azure SDK for Node](https://github.com/WindowsAzure/azure-sdk-for-node) by [Andrew Gaspar](https://github.com/AndrewGaspar), [Anti Veeranna](https://github.com/antiveeranna), [Maxime LUCE](https://github.com/SomaticIT) +* [:link:](azure-mobile-apps/azure-mobile-apps.d.ts) [azure-mobile-apps](https://github.com/Azure/azure-mobile-apps-node) by [Microsoft Azure](https://github.com/Azure) +* [:link:](azure-sb/azure-sb.d.ts) [azure-sb](https://github.com/Azure/azure-sdk-for-node/tree/master/lib/services/serviceBus) by [Microsoft Azure](https://github.com/Azure) * [:link:](babylonjs/babylon.d.ts) [BabylonJS](http://www.babylonjs.com) by [David Catuhe](https://github.com/deltakosh) +* [:link:](babyparse/babyparse.d.ts) [babyparse](https://github.com/Rich-Harris/BabyParse) by [Charles Parker](https://github.com/cdiddy77) * [:link:](backbone/backbone-global.d.ts) [Backbone](http://backbonejs.org) by [Boris Yankov](https://github.com/borisyankov), [Natan Vivo](https://github.com/nvivo) * [:link:](backbone/backbone.d.ts) [Backbone](http://backbonejs.org) by [Boris Yankov](https://github.com/borisyankov), [Natan Vivo](https://github.com/nvivo) * [:link:](backbone-associations/backbone-associations.d.ts) [Backbone-associations](https://github.com/dhruvaray/backbone-associations) by [Craig Brett](https://github.com/craigbrett17) @@ -123,6 +143,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](baconjs/baconjs.d.ts) [Bacon.js](https://baconjs.github.io) by [Alexander Matsievsky](https://github.com/alexander-matsievsky) * [:link:](barcode/barcode.d.ts) [barcode](https://github.com/samt/barcode) by [Pascal Vomhoff](https://github.com/pvomhoff) * [:link:](bardjs/bardjs.d.ts) [bardjs](https://github.com/wardbell/bardjs) by [Andrew Archibald](https://github.com/TepigMC) +* [:link:](base-x/base-x.d.ts) [base-x](https://github.com/cryptocoinjs/base-x) by [Ilya Mochalov](https://github.com/chrootsu) * [:link:](basic-auth/basic-auth.d.ts) [basic-auth](https://github.com/jshttp/basic-auth) by [Clément Bourgeois](https://github.com/moonpyk) * [:link:](batch-stream/batch-stream.d.ts) [batch-stream](https://github.com/segmentio/batch-stream) by [Nicholas Penree](http://github.com/drudge) * [:link:](bcrypt/bcrypt.d.ts) [bcrypt](https://www.npmjs.org/package/bcrypt) by [Peter Harris](https://github.com/codeanimal) @@ -137,7 +158,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](big-integer/big-integer.d.ts) [BigInteger.js](https://github.com/peterolson/BigInteger.js) by [Ingo Bürk](https://github.com/Airblader), [Roel van Uden](https://github.com/Deathspike) * [:link:](bignum/bignum.d.ts) [BigNum](https://github.com/justmoon/node-BigNum) by [Pat Smuk](https://github.com/Patman64) * [:link:](bigscreen/bigscreen.d.ts) [BigScreen](http://brad.is/coding/BigScreen) by [Douglas Eichelberger](https://github.com/dduugg) +* [:link:](bip21/bip21.d.ts) [bip21](https://github.com/bitcoinjs/bip21) by [Stefan Huber](https://github.com/stefanhuber) * [:link:](bitwise-xor/bitwise-xor.d.ts) [bitwise-xor](https://github.com/czzarr/node-bitwise-xor) by [Rogier Schouten](https://github.com/rogierschouten) +* [:link:](blazy/blazy.d.ts) [bLazy](https://github.com/dinbror/blazy) by [Julien Paroche](https://github.com/julienpa) +* [:link:](blissfuljs/blissfuljs.d.ts) [bliss](http://blissfuljs.com) by [François Skorzec](https://github.com/fskorzec) * [:link:](blob-stream/blob-stream.d.ts) [blob-stream](https://github.com/devongovett/blob-stream) by [Eric Hillah](https://github.com/erichillah) * [:link:](blue-tape/blue-tape.d.ts) [blue-tape](https://github.com/spion/blue-tape) by [Haoqun Jiang](https://github.com/sodatea) * [:link:](bluebird/bluebird.d.ts) [bluebird](https://github.com/petkaantonov/bluebird) by [Bart van der Schoor](https://github.com/Bartvds), [falsandtru](https://github.com/falsandtru) @@ -147,30 +171,35 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](bookshelf/bookshelf.d.ts) [bookshelfjs](http://bookshelfjs.org) by [Andrew Schurman](http://github.com/arcticwaters) * [:link:](boolify-string/boolify-string.d.ts) [boolify-string](https://github.com/sanemat/node-boolify-string) by [Tobias Henöckl](http://www.sisyphus.de) * [:link:](boom/boom.d.ts) [boom](http://github.com/hapijs/boom) by [Igor Rogatty](http://github.com/rogatty) -* [:link:](bootbox/bootbox.d.ts) [Bootbox](https://github.com/makeusabrew/bootbox) by [Vincent Bortone](https://github.com/vbortone), [Kon Pik](https://github.com/konpikwastaken), [Anup Kattel](https://github.com/kanup), [Dominik Schroeter](https://github.com/icereed) +* [:link:](bootbox/bootbox.d.ts) [Bootbox](https://github.com/makeusabrew/bootbox) by [Vincent Bortone](https://github.com/vbortone), [Kon Pik](https://github.com/konpikwastaken), [Anup Kattel](https://github.com/kanup), [Dominik Schroeter](https://github.com/icereed), [Troy McKinnon](https://github.com/trodi) * [:link:](bootstrap/bootstrap.d.ts) [Bootstrap](http://twitter.github.com/bootstrap) by [Boris Yankov](https://github.com/borisyankov) -* [:link:](bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker.d.ts) [Bootstrap datetimepicker v3](http://eonasdan.github.io/bootstrap-datetimepicker) by [Jesica N. Fera](https://github.com/bayitajesi) +* [:link:](bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker.d.ts) [Bootstrap 3 Datepicker](http://eonasdan.github.io/bootstrap-datetimepicker) by [Katona Péter](https://github.com/katonap) * [:link:](bootstrap-switch/bootstrap-switch.d.ts) [Bootstrap Switch](http://www.bootstrap-switch.org) by [John M. Baughman](https://github.com/johnmbaughman) * [:link:](bootstrap-touchspin/bootstrap-touchspin.d.ts) [Bootstrap TouchSpin](http://www.virtuosoft.eu/code/bootstrap-touchspin) by [Albin Sunnanbo](https://github.com/albinsunnanbo) +* [:link:](eonasdan-bootstrap-datetimepicker/eonasdan-bootstrap-datetimepicker.d.ts) [Bootstrap v3 Datepicker](http://eonasdan.github.io/bootstrap-datetimepicker) by [Markus Peloso](https://github.com/ToastHawaii) * [:link:](bootstrap-maxlength/bootstrap-maxlength.d.ts) [bootstrap-maxlength](https://github.com/mimo84/bootstrap-maxlength) by [Dan Manastireanu](https://github.com/danmana) * [:link:](bootstrap-notify/bootstrap-notify.d.ts) [bootstrap-notify](http://bootstrap-notify.remabledesigns.com) by [Blake Niemyjski](https://github.com/niemyjski), [Robert McIntosh](https://github.com/mouse0270), [Robert Voica](https://github.com/robert-voica) * [:link:](bootstrap-slider/bootstrap-slider.d.ts) [bootstrap-slider.js](https://github.com/seiyria/bootstrap-slider) by [Daniel Beckwith](https://github.com/dbeckwith) * [:link:](bootstrap.datepicker/bootstrap.datepicker.d.ts) [bootstrap.datepicker](https://github.com/eternicode/bootstrap-datepicker) by [Boris Yankov](https://github.com/borisyankov) * [:link:](bootstrap.paginator/bootstrap.paginator.d.ts) [bootstrap.paginator](https://github.com/lyonlai/bootstrap-paginator) by [derikwhittaker](https://github.com/derikwhittaker) -* [:link:](bootstrap.timepicker/bootstrap.timepicker.d.ts) [bootstrap.timepicker](https://github.com/jdewit/bootstrap-timepicker) by [derikwhittaker](https://github.com/derikwhittaker) * [:link:](box2d/box2dweb.d.ts) [bootstrap.timepicker](http://code.google.com/p/box2dweb) by [jbaldwin](https://github.com/jbaldwin) +* [:link:](bootstrap.timepicker/bootstrap.timepicker.d.ts) [bootstrap.timepicker](https://github.com/jdewit/bootstrap-timepicker) by [derikwhittaker](https://github.com/derikwhittaker) * [:link:](bounce/bounce.d.ts) [Bounce.js](http://github.com/tictail/bounce.js) by [Cherry](http://github.com/cherrry) * [:link:](bowser/bowser.d.ts) [Bowser 1.x](https://github.com/ded/bowser) by [Paulo Cesar](https://github.com/pocesar) * [:link:](breeze/breeze.d.ts) [Breeze 1.5.x](http://www.breezejs.com) by [Boris Yankov](https://github.com/borisyankov), [IdeaBlade](https://github.com/IdeaBlade/Breeze) +* [:link:](brorand/brorand.d.ts) [Brorand](https://github.com/indutny/brorand) by [Ilya Mochalov](https://github.com/chrootsu) * [:link:](browser-harness/browser-harness.d.ts) [Browser Harness](https://github.com/scriby/browser-harness) by [Chris Scribner](https://github.com/scriby) * [:link:](browser-sync/browser-sync.d.ts) [browser-sync](http://www.browsersync.io) by [Asana](https://asana.com), [Joe Skeen](http://github.com/joeskeen) * [:link:](browserify/browserify.d.ts) [Browserify](http://browserify.org) by [Andrew Gaspar](https://github.com/AndrewGaspar), [John Vilk](https://github.com/jvilk) +* [:link:](bs58/bs58.d.ts) [bs58](https://github.com/cryptocoinjs/bs58) by [Ilya Mochalov](https://github.com/chrootsu) +* [:link:](bson/bson.d.ts) [bson](https://github.com/mongodb/js-bson) by [Hiroki Horiuchi](https://github.com/horiuchi) * [:link:](bucks/bucks.d.ts) [bucks.js](https://github.com/CyberAgent/bucks.js) by [Shunsuke Ohtani](https://github.com/zaneli) * [:link:](buffer-compare/buffer-compare.d.ts) [buffer-compare](https://github.com/soldair/node-buffer-compare) by [Ilya Mochalov](https://github.com/chrootsu) * [:link:](buffer-equal/buffer-equal.d.ts) [buffer-equal](https://github.com/substack/node-buffer-equal) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](bl/bl.d.ts) [BufferList](https://github.com/rvagg/bl) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](buffers/buffers.d.ts) [buffers](https://github.com/substack/node-buffers) by [Robert Hencke](https://github.com/rhencke) * [:link:](bufferstream/bufferstream.d.ts) [bufferstream](https://github.com/dodo/node-bufferstream) by [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](bugsnag/bugsnag.d.ts) [Bugsnag](https://github.com/bugsnag/bugsnag-js) by [Delisa Mason](https://github.com/kattrali) * [:link:](bull/bull.d.ts) [bull](https://github.com/OptimalBits/bull) by [Bruno Grieder](https://github.com/bgrieder) * [:link:](bunyan-prettystream/bunyan-prettystream.d.ts) [bunyan-prettystream](https://www.npmjs.com/package/bunyan-prettystream) by [Jason Swearingen](https://github.com/jasonswearingen), [Vadim Macagon](https://github.com/enlight) * [:link:](business-rules-engine/business-rules-engine.d.ts) [business-rules-engine](https://github.com/rsamec/form) by [Roman Samec](https://github.com/rsamec) @@ -180,9 +209,12 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](bytes/bytes.d.ts) [bytes](https://github.com/visionmedia/bytes.js) by [Zhiyuan Wang](https://github.com/danny8002) * [:link:](c3/c3.d.ts) [C3js](http://c3js.org) by [Marc Climent](https://github.com/mcliment) * [:link:](cal-heatmap/cal-heatmap.d.ts) [cal-heatmap](https://github.com/wa0x6e/cal-heatmap) by [Chris Baker](https://github.com/RetroChrisB) +* [:link:](callsite/callsite.d.ts) [callsite](https://github.com/tj/callsite) by [newclear](https://github.com/newclear) * [:link:](calq/calq.d.ts) [calq](https://calq.io/docs/client/javascript/reference) by [Eirik Hoem](https://github.com/eirikhm) * [:link:](camel-case/camel-case.d.ts) [camel-case](https://github.com/blakeembrey/camel-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) +* [:link:](camelcase/camelcase.d.ts) [camelcase](https://github.com/sindresorhus/camelcase) by [Sam Verschueren](https://github.com/samverschueren) * [:link:](camljs/camljs.d.ts) [camljs](http://camljs.codeplex.com) by [Andrey Markeev](http://markeev.com) +* [:link:](camo/camo.d.ts) [camo](https://github.com/scottwrobinson/camo) by [Lucas Matías Ciruzzi](https://github.com/lucasmciruzzi) * [:link:](canvasjs/canvasjs.d.ts) [CanvasJS](http://canvasjs.com) by [Mark Overholt](https://github.com/mover5) * [:link:](casperjs/casperjs.d.ts) [CasperJS](http://casperjs.org) by [Jed Mao](https://github.com/jedmao) * [:link:](chai/chai.d.ts) [chai](http://chaijs.com) by [Jed Mao](https://github.com/jedmao), [Bart van der Schoor](https://github.com/Bartvds), [Andrew Brown](https://github.com/AGBrown), [Olivier Chevet](https://github.com/olivr70), [Matt Wistrand](https://github.com/mwistrand) @@ -194,7 +226,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](chai-string/chai-string.d.ts) [chai-string](https://github.com/onechiporenko/chai-string) by [Nick Malaguti](https://github.com/nmalaguti) * [:link:](chai-subset/chai-subset.d.ts) [chai-subset](https://github.com/e-conomic/chai-subset) by [Sam Noedel](https://github.com/delta62), [Andrew Brown](https://github.com/AGBrown) * [:link:](chai-things/chai-things.d.ts) [chai-things](https://github.com/chaijs/chai-things) by [David Broder-Rodgers](https://github.com/DavidBR-SW) -* [:link:](chalk/chalk.d.ts) [chalk](https://github.com/sindresorhus/chalk) by [Diullei Gomes](https://github.com/Diullei), [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](chalk/chalk.d.ts) [chalk](https://github.com/sindresorhus/chalk) by [Diullei Gomes](https://github.com/Diullei), [Bart van der Schoor](https://github.com/Bartvds), [Nico Jansen](https://github.com/nicojs) * [:link:](chance/chance.d.ts) [Chance](http://chancejs.com) by [Chris Bowdon](https://github.com/cbowdon) * [:link:](change-case/change-case.d.ts) [change-case](https://github.com/blakeembrey/change-case) by [Asana](https://asana.com) * [:link:](chartjs/chart.d.ts) [Chart.js](https://github.com/nnnick/Chart.js) by [Steve Fenton](https://github.com/Steve-Fenton) @@ -206,17 +238,23 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](chosen/chosen.jquery.d.ts) [Chosen.JQuery](http://harvesthq.github.com/chosen) by [Boris Yankov](https://github.com/borisyankov) * [:link:](chroma-js/chroma-js.d.ts) [Chroma.js](https://github.com/gka/chroma.js) by [Sebastian Brückner](https://github.com/invliD) * [:link:](chrome/chrome-cast.d.ts) [Chrome Cast application development](https://developers.google.com/cast) by [Thomas Stig Jacobsen](https://github.com/eXeDK) -* [:link:](chrome/chrome.d.ts) [Chrome extension development](http://developer.chrome.com/extensions) by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [couven92](https://github.com/couven92) -* [:link:](chrome/chrome-app.d.ts) [Chrome packaged application development](http://developer.chrome.com/apps) by [Adam Lay](https://github.com/AdamLay), [MIZUNE Pine](https://github.com/pine613), [MIZUSHIMA Junki](https://github.com/mzsm) +* [:link:](chrome/chrome.d.ts) [Chrome extension development](http://developer.chrome.com/extensions) by [Matthew Kimber](https://github.com/matthewkimber), [otiai10](https://github.com/otiai10), [couven92](https://github.com/couven92), [RReverser](https://github.com/rreverser) +* [:link:](chrome/chrome-app.d.ts) [Chrome packaged application development](http://developer.chrome.com/apps) by [Adam Lay](https://github.com/AdamLay), [MIZUNE Pine](https://github.com/pine613), [MIZUSHIMA Junki](https://github.com/mzsm), [Ingvar Stepanyan](https://github.com/RReverser) * [:link:](chui/chui.d.ts) [chui](https://github.com/chocolatechipui/chocolatechip-ui) by [Robert Biggs](http://chocolatechip-ui.com) * [:link:](circular-json/circular-json.d.ts) [circular-json](https://github.com/WebReflection/circular-json) by [Jonathan Pevarnek](https://github.com/jpevarnek) * [:link:](ckeditor/ckeditor.d.ts) [CKEditor](http://ckeditor.com) by [Ondrej Sevcik](https://github.com/ondrejsevcik) * [:link:](classnames/classnames.d.ts) [classnames](https://github.com/JedWatson/classnames) by [Dave Keen](http://www.keendevelopment.ch), [Adi Dahiya](https://github.com/adidahiya), [Jason Killian](https://github.com/JKillian) +* [:link:](cldr.js/cldr.js-supplemental.d.ts) [Cldr.js](https://github.com/rxaviers/cldrjs) by [Raman But-Husaim](https://github.com/RamanBut-Husaim) +* [:link:](cldr.js/cldr.js.d.ts) [Cldr.js](https://github.com/rxaviers/cldrjs) by [Raman But-Husaim](https://github.com/RamanBut-Husaim), [Grégoire Castre](https://github.com/gcastre) +* [:link:](cldr.js/cldr.js-event.d.ts) [Cldr.js](https://github.com/rxaviers/cldrjs) by [Raman But-Husaim](https://github.com/RamanBut-Husaim) +* [:link:](clean-css/clean-css.d.ts) [clean-css](https://github.com/jakubpawlowicz/clean-css) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](cli-color/cli-color.d.ts) [cli-color](https://github.com/medikoo/cli-color) by [Joel Spadin](https://github.com/ChaosinaCan) +* [:link:](clipboard/clipboard.d.ts) [clipboard.js](https://github.com/zenorocha/clipboard.js) by [Andrei Kurosh](https://github.com/impworks) * [:link:](clone/clone.d.ts) [clone](https://github.com/pvorb/node-clone) by [Kieran Simpson](https://github.com/kierans/DefinitelyTyped) * [:link:](closure-compiler/closure-compiler.d.ts) [closure-compiler](https://github.com/tim-smart/node-closure) by [Martin Probst](https://github.com/mprobst) -* [:link:](codemirror/codemirror.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [mihailik](https://github.com/mihailik) +* [:link:](codemirror/codemirror-runmode.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [Joseph Vaughan](https://github.com/Joev-) * [:link:](codemirror/searchcursor.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [jacqt](https://github.com/jacqt) +* [:link:](codemirror/codemirror.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [mihailik](https://github.com/mihailik) * [:link:](codemirror/codemirror-showhint.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [jacqt](https://github.com/jacqt), [basarat](https://github.com/basarat) * [:link:](codemirror/codemirror-matchbrackets.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [Sixin Li](https://github.com/sixinli) * [:link:](coffeeify/coffeeify.d.ts) [coffeeify](https://github.com/jnordberg/coffeeify) by [Qubo](https://github.com/tkQubo) @@ -230,6 +268,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](debounce/debounce.d.ts) [compose-function](https://github.com/component/debounce) by [Denis Sokolov](https://github.com/denis-sokolov) * [:link:](compose-function/compose-function.d.ts) [compose-function](https://github.com/stoeffel/compose-function) by [Denis Sokolov](https://github.com/denis-sokolov) * [:link:](compression/compression.d.ts) [compression](https://github.com/expressjs/compression) by [Santi Albo](https://github.com/santialbo) +* [:link:](confidence/confidence.d.ts) [Confidence](https://github.com/hapijs/confidence.git) by [Jean-Philippe Pellerin](https://github.com/jppellerin) * [:link:](configstore/configstore.d.ts) [configstore](https://github.com/yeoman/configstore) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](connect/connect.d.ts) [connect](https://github.com/senchalabs/connect) by [Maxime LUCE](https://github.com/SomaticIT) * [:link:](connect-flash/connect-flash.d.ts) [connect-flash](https://github.com/jaredhanson/connect-flash) by [Andreas Gassmann](https://github.com/AndreasGassmann) @@ -239,21 +278,25 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](connect-slashes/connect-slashes.d.ts) [connect-slashes](https://github.com/avinoamr/connect-slashes) by [Sam Herrmann](https://github.com/samherrmann) * [:link:](connect-timeout/connect-timeout.d.ts) [connect-timeout](https://github.com/expressjs/timeout) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](console-stamp/console-stamp.d.ts) [console-stamp](https://github.com/starak/node-console-stamp) by [Eric Byers](https://github.com/ericbyers) -* [:link:](consolidate/consolidate.d.ts) [consolidate](https://github.com/visionmedia/consolidate.js) by [Carlos Ballesteros Velasco](https://github.com/soywiz) +* [:link:](consolidate/consolidate.d.ts) [consolidate](https://github.com/visionmedia/consolidate.js) by [Carlos Ballesteros Velasco](https://github.com/soywiz), [Theo Sherry](https://github.com/theosherry) * [:link:](constant-case/constant-case.d.ts) [constant-case](https://github.com/blakeembrey/constant-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) +* [:link:](consul/consul.d.ts) [Consul](https://github.com/silas/node-consul) by [Ilya Mochalov](https://github.com/chrootsu) * [:link:](content-type/content-type.d.ts) [content-type](https://github.com/deoxxa/content-type) by [Pine Mizune](https://github.com/pine613) * [:link:](contentful-resolve-response/contentful-resolve-response.d.ts) [contentful-resolve-response](https://github.com/contentful/contentful-resolve-response) by [Anton Karsten](https://github.com/antonkarsten) * [:link:](contextjs/contextjs.d.ts) [contextjs](https://github.com/jakiestfu/Context.js) by [Kern Handa](https://github.com/kernhanda) * [:link:](convert-source-map/convert-source-map.d.ts) [convert-source-map](https://github.com/thlorenz/convert-source-map) by [Andrew Gaspar](https://github.com/AndrewGaspar) * [:link:](cookie/cookie.d.ts) [cookie](https://github.com/jshttp/cookie) by [Pine Mizune](https://github.com/pine613) -* [:link:](cookie-parser/cookie-parser.d.ts) [cookie-parser](https://github.com/expressjs/cookie-parser) by [Santi Albo](https://github.com/santialbo) * [:link:](cookies/cookies.d.ts) [cookie-parser](https://github.com/pillarjs/cookies) by [Wang Zishi](https://github.com/WangZishi) +* [:link:](cookie-parser/cookie-parser.d.ts) [cookie-parser](https://github.com/expressjs/cookie-parser) by [Santi Albo](https://github.com/santialbo) +* [:link:](cookie-session/cookie-session.d.ts) [cookie-session](https://github.com/expressjs/cookie-session) by [Borislav Zhivkov](https://github.com/borislavjivkov) * [:link:](cookiejs/cookiejs.d.ts) [cookie.js](https://github.com/js-coder/cookie.js) by [Boltmade](https://github.com/Boltmade) +* [:link:](copy-paste/copy-paste.d.ts) [copy-paste](https://github.com/xavi-/node-copy-paste) by [Tobias Kahlert](https://github.com/SrTobi) * [:link:](cordova-ionic/plugins/keyboard.d.ts) [Cordova Keyboard plugin](https://github.com/driftyco/ionic-plugins-keyboard) by [Hendrik Maus](https://github.com/hendrikmaus) * [:link:](cordova-plugin-app-version/cordova-plugin-app-version.d.ts) [cordova-plugin-app-version](https://github.com/whiteoctober/cordova-plugin-app-version) by [Markus Wagner](https://github.com/Ritzlgrmft) * [:link:](cordova-plugin-ibeacon/cordova-plugin-ibeacon.d.ts) [cordova-plugin-ibeacon](https://github.com/petermetz/cordova-plugin-ibeacon) by [Markus Wagner](https://github.com/Ritzlgrmft) * [:link:](cordova-plugin-mapsforge/cordova-plugin-mapsforge.d.ts) [cordova-plugin-mapsforge](https://github.com/afsuarez/mapsforge-cordova-plugin) by [rafw87](https://github.com/rafw87) * [:link:](cordova-plugin-ouralabs/cordova-plugin-ouralabs.d.ts) [cordova-plugin-ouralabs](https://github.com/Justin-Credible/cordova-plugin-ouralabs) by [Justin Unterreiner](https://github.com/Justin-Credible) +* [:link:](cordova-plugin-qrscanner/cordova-plugin-qrscanner.d.ts) [cordova-plugin-qrscanner](https://github.com/bitpay/cordova-plugin-qrscanner) by [Jason Dreyzehner](https://github.com/bitjson) * [:link:](cordova-plugin-spinner/cordova-plugin-spinner.d.ts) [cordova-plugin-spinner](https://github.com/Justin-Credible/cordova-plugin-spinner) by [Justin Unterreiner](https://github.com/Justin-Credible) * [:link:](cordovarduino/cordovarduino.d.ts) [Cordovarduino plugin](https://github.com/stereolux/cordovarduino) by [Hendrik Maus](https://github.com/hendrikmaus) * [:link:](core-decorators/core-decorators.d.ts) [core-decorators.js](https://github.com/jayphelps/core-decorators.js) by [Qubo](https://github.com/tkqubo) @@ -265,6 +308,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](createjs/createjs.d.ts) [CreateJS](http://www.createjs.com) by [Pedro Ferreira](https://bitbucket.org/drk4), [Chris Smith](https://github.com/evilangelist), [Satoru Kimura](https://github.com/gyohk) * [:link:](credential/credential.d.ts) [credential](https://github.com/ericelliott/credential) by [Phú](https://github.com/phuvo) * [:link:](cron/cron.d.ts) [cron](https://www.npmjs.com/package/cron) by [Hiroki Horiuchi](https://github.com/horiuchi) +* [:link:](cross-storage/cross-storage.d.ts) [cross-storage](https://github.com/zendesk/cross-storage) by [Daniel Chao](http://dchao.co) * [:link:](crossfilter/crossfilter.d.ts) [CrossFilter](https://github.com/square/crossfilter) by [Schmulik Raskin](https://github.com/schmuli) * [:link:](crossroads/crossroads.d.ts) [Crossroads.js](http://millermedeiros.github.io/crossroads.js) by [Diullei Gomes](https://github.com/diullei) * [:link:](crypto-js/crypto-js.d.ts) [crypto-js](https://github.com/evanvosberg/crypto-js) by [Michael Zabka](https://github.com/misak113) @@ -278,6 +322,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](cuid/cuid.d.ts) [cuid](https://github.com/ericelliott/cuid) by [Dave Keen](http://www.keendevelopment.ch) * [:link:](custom-error-generator/custom-error-generator.d.ts) [custom-error-generator](https://github.com/jproulx/node-custom-error) by [Thierry Miceli](https://github.com/thmiceli) * [:link:](md5/md5.d.ts) [CybozuLabs.MD5](http://labs.cybozu.co.jp/blog/mitsunari/2007/07/md5js_1.html) by [MIZUNE Pine](https://github.com/pine613) +* [:link:](d3-dsv/d3-dsv.d.ts) [d3-dsv](https://www.npmjs.com/package/d3-dsv) by [Jason Swearingen](https://jasonswearingen.github.io) * [:link:](d3/d3.d.ts) [d3JS](http://d3js.org) by [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov) * [:link:](d3.cloud.layout/d3.cloud.layout.d.ts) [d3JS cloud layout plugin by Jason Davies](https://github.com/jasondavies/d3-cloud) by [hans windhoff](https://github.com/hansrwindhoff) * [:link:](dagre/dagre.d.ts) [dagre](https://github.com/cpettitt/dagre) by [Qinfeng Chen](https://github.com/qinfchen) @@ -289,15 +334,18 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](datejs/datejs.d.ts) [DateJS](http://www.datejs.com) by [David Khristepher Santos](http://github.com/rupertavery) * [:link:](dcjs/dc.d.ts) [DCJS](https://github.com/dc-js/dc.js) by [hans windhoff](https://github.com/hansrwindhoff), [matt traynham](https://github.com/mtraynham) * [:link:](debug/debug.d.ts) [debug](https://github.com/visionmedia/debug) by [Seon-Wook Park](https://github.com/swook), [Gal Talmor](https://github.com/galtalmor) +* [:link:](decamelize/decamelize.d.ts) [decamelize](https://github.com/sindresorhus/decamelize) by [Sam Verschueren](https://github.com/samverschueren) * [:link:](decimal.js/decimal.js.d.ts) [decimal.js](http://mikemcl.github.io/decimal.js) by [Joseph Rossi](http://github.com/musicist288) * [:link:](decorum/decorum.d.ts) [Decorum JS](https://github.com/dflor003/decorum) by [Danil Flores](https://github.com/dflor003) * [:link:](deep-diff/deep-diff.d.ts) [deep-diff](https://github.com/flitbit/diff) by [ZauberNerd](https://github.com/ZauberNerd) +* [:link:](deep-equal/deep-equal.d.ts) [deep-equal](https://github.com/substack/node-deep-equal) by [remojansen](https://github.com/remojansen) * [:link:](deep-freeze/deep-freeze.d.ts) [deep-freeze](https://github.com/substack/deep-freeze) by [Bart van der Schoor](https://github.com/Bartvds) -* [:link:](del/del.d.ts) [del](https://github.com/sindresorhus/del) by [Asana](https://asana.com) +* [:link:](del/del.d.ts) [del](https://github.com/sindresorhus/del) by [Asana](https://asana.com), [Aya Morisawa](https://github.com/AyaMorisawa) * [:link:](denodeify/denodeify.d.ts) [denodeify](https://github.com/matthew-andrews/denodeify) by [joaomoreno](https://github.com/joaomoreno) * [:link:](depd/depd.d.ts) [depd](https://github.com/dougwilson/nodejs-depd) by [Zhiyuan Wang](https://github.com/danny8002) * [:link:](deployJava/deployJava.d.ts) [deployJava.js](https://www.java.com/js/deployJava.txt) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](detect-indent/detect-indent.d.ts) [detect-indent](https://github.com/sindresorhus/detect-indent) by [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](devexpress-web/devexpress-web.d.ts) [DevExpress ASP.NET web controls (Classic and MVC)](https://www.devexpress.com/Products/NET/Controls/ASP/MVC) by [Sheron Benedict](https://github.com/INullable) * [:link:](devextreme/devextreme.d.ts) [DevExtreme](http://js.devexpress.com) by [DevExpress Inc.](http://devexpress.com) * [:link:](dexie/dexie.d.ts) [Dexie](https://github.com/dfahlander/Dexie.js) by [David Fahlander](http://github.com/dfahlander) * [:link:](dhtmlxgantt/dhtmlxgantt.d.ts) [dhtmlxGantt](http://dhtmlx.com/docs/products/dhtmlxGantt) by [Maksim Kozhukh](http://github.com/mkozhukh) @@ -312,16 +360,19 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](documentdb-server/documentdb-server.d.ts) [DocumentDB server side JavaScript SDK](http://dl.windowsazure.com/documentDB/jsserverdocs) by [François Nguyen](https://github.com/lith-light-g) * [:link:](dojo/dojo.d.ts) [Dojo](http://dojotoolkit.org) by [Michael Van Sickle](https://github.com/vansimke) * [:link:](dompurify/dompurify.d.ts) [DOM Purify](https://github.com/cure53/DOMPurify) by [Dave Taylor](http://davetayls.me), [Samira Bazuzi](https://github.com/bazuzi) +* [:link:](dom4/dom4.d.ts) [dom4](https://github.com/WebReflection/dom4) by [Adi Dahiya](https://github.com/adidahiya), [Gilad Gray](https://github.com/giladgray) * [:link:](domo/domo.d.ts) [Domo](http://domo-js.com) by [Steve Fenton](https://github.com/Steve-Fenton) * [:link:](domready/domready.d.ts) [domready](https://github.com/ded/domready) by [Christian Holm Nielsen](https://github.com/dotnetnerd) * [:link:](requirejs-domready/domready.d.ts) [domReady](https://github.com/requirejs/domReady) by [Nobuhiro Nakamura](https://github.com/lefb766) * [:link:](donna/donna.d.ts) [donna](https://github.com/atom/donna) by [vvakame](https://github.com/vvakame) * [:link:](dot/dot.d.ts) [doT](https://github.com/olado/doT) by [ZombieHunter](https://github.com/ZombieHunter) * [:link:](dot-case/dot-case.d.ts) [dot-case](https://github.com/blakeembrey/dot-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) +* [:link:](dot-prop/dot-prop.d.ts) [dot-prop](https://github.com/sindresorhus/dot-prop) by [Sam Verschueren](https://github.com/samverschueren) * [:link:](dotdotdot/dotdotdot.d.ts) [dotdotdot](http://dotdotdot.frebsite.nl) by [Milan Jaros](https://github.com/milanjaros) * [:link:](doublearray/doublearray.d.ts) [doublearray](https://github.com/takuyaa/doublearray) by [MIZUSHIMA Junki](https://github.com/mzsm) -* [:link:](dragula/dragula.d.ts) [dragula](http://bevacqua.github.io/dragula) by [Paul Welter](https://github.com/pwelter34) +* [:link:](draft-js/draft-js.d.ts) [draft-js](https://github.com/facebook/draft-js) by [Pavel Evsegneev](https://github.com/Ahineya) * [:link:](hystrixjs/hystrixjs.d.ts) [dragula](https://bitbucket.org/igor_sechyn/hystrixjs) by [Igor Sechyn](https://github.com/igorsechyn) +* [:link:](dragula/dragula.d.ts) [dragula](http://bevacqua.github.io/dragula) by [Paul Welter](https://github.com/pwelter34) * [:link:](drop/drop.d.ts) [Drop](http://github.hubspot.com/drop) by [Adi Dahiya](https://github.com/adidahiya) * [:link:](dropboxjs/dropboxjs.d.ts) [dropbox-js](https://github.com/dropbox/dropbox-js) by [Steve Fenton](https://github.com/Steve-Fenton), [Pedro Casaubon](https://github.com/xperiments) * [:link:](dropzone/dropzone.d.ts) [Dropzone](http://www.dropzonejs.com) by [Natan Vivo](https://github.com/nvivo), [Andy Hawkins](https://github.com/a904guy/,http://a904guy.com/,http://www.bmbsqd.com), [Vasya Aksyonov](https://github.com/outring) @@ -334,8 +385,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](easy-jsend/easy-jsend.d.ts) [easy-jsend](https://github.com/DeadAlready/easy-jsend) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-session/easy-session.d.ts) [easy-session](https://github.com/DeadAlready/node-easy-session) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-table/easy-table.d.ts) [easy-table](https://github.com/eldargab/easy-table) by [Niklas Mollenhauer](https://github.com/nikeee) -* [:link:](easy-x-headers/easy-x-headers.d.ts) [easy-x-headers](https://github.com/DeadAlready/easy-x-headers) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-xapi-supertest/easy-xapi-supertest.d.ts) [easy-x-headers](https://github.com/DeadAlready/easy-x-headers) by [Karl Düüna](https://github.com/DeadAlready) +* [:link:](easy-x-headers/easy-x-headers.d.ts) [easy-x-headers](https://github.com/DeadAlready/easy-x-headers) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-xapi/easy-xapi.d.ts) [easy-xapi](https://github.com/DeadAlready/easy-xapi) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-xapi-utils/easy-xapi-utils.d.ts) [easy-xapi-utils](https://github.com/DeadAlready/easy-xapi-utils) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easystarjs/easystarjs.d.ts) [EasyStar.js](http://easystarjs.com) by [Magnus Gustafsson](https://github.com/borundin) @@ -347,6 +398,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](electron-builder/electron-builder.d.ts) [electron-builder](https://github.com/loopline-systems/electron-builder) by [Maxime LUCE](https://github.com/SomaticIT) * [:link:](electron-packager/electron-packager.d.ts) [electron-packager](https://github.com/maxogden/electron-packager) by [Maxime LUCE](https://github.com/SomaticIT) * [:link:](github-electron/electron-prebuilt.d.ts) [electron-prebuilt](https://github.com/mafintosh/electron-prebuilt) by [rhysd](https://github.com/rhysd) +* [:link:](electron-window-state/electron-window-state.d.ts) [electron-window-state](https://github.com/mawie81/electron-window-state) by [rhysd](https://github.com/rhysd) * [:link:](element-resize-event/element-resize-event.d.ts) [element-resize-event](https://github.com/KyleAMathews/element-resize-event) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](elm/elm.d.ts) [Elm](http://elm-lang.org) by [Dénes Harmath](https://github.com/thSoft) * [:link:](email-addresses/email-addresses.d.ts) [email-addresses](https://github.com/jackbowman/email-addresses) by [John Grimsey](https://github.com/johngrimsey) @@ -364,31 +416,41 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](es6-promise/es6-promise.d.ts) [es6-promise](https://github.com/jakearchibald/ES6-Promise) by [François de Campredon](https://github.com/fdecampredon), [vvakame](https://github.com/vvakame) * [:link:](es6-shim/es6-shim.d.ts) [es6-shim](https://github.com/paulmillr/es6-shim) by [Ron Buckton](http://github.com/rbuckton) * [:link:](escape-latex/escape-latex.d.ts) [escape-latex](https://github.com/dangmai/escape-latex) by [Oliver Schneider](https://github.com/olsio) +* [:link:](escape-string-regexp/escape-string-regexp.d.ts) [escape-string-regexp](https://github.com/sindresorhus/escape-string-regexp) by [kruncher](https://github.com/kruncher) * [:link:](esprima/esprima.d.ts) [Esprima](http://esprima.org) by [teppeis](https://github.com/teppeis), [RReverser](https://github.com/RReverser) * [:link:](estree/flow.d.ts) [ESTree AST extensions for Facebook Flow](https://github.com/estree/estree) by [RReverser](https://github.com/RReverser) * [:link:](estree/estree.d.ts) [ESTree AST specification](https://github.com/estree/estree) by [RReverser](https://github.com/RReverser) * [:link:](event-kit/event-kit.d.ts) [event-kit](https://github.com/atom/event-kit) by [Vadim Macagon](https://github.com/enlight) * [:link:](event-loop-lag/event-loop-lag.d.ts) [event-loop-lag](https://github.com/pebble/event-loop-lag) by [Rogier Schouten](https://github.com/rogierschouten) +* [:link:](event-stream/event-stream.d.ts) [event-stream](https://github.com/dominictarr/event-stream) by [David Gardiner](https://github.com/flcdrg) * [:link:](eventemitter2/eventemitter2.d.ts) [EventEmitter2](https://github.com/asyncly/EventEmitter2) by [ryiwamoto](https://github.com/ryiwamoto) * [:link:](eventemitter3/eventemitter3.d.ts) [EventEmitter3](https://github.com/primus/eventemitter3) by [Yuichi Murata](https://github.com/mrk21), [Leon Yu](https://github.com/leonyu) * [:link:](evernote/evernote.d.ts) [evernote v](https://www.npmjs.com/package/evernote) by [Zachary Collins](https://github.com/corps) * [:link:](exit/exit.d.ts) [exit](https://github.com/cowboy/node-exit) by [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](expect/expect.d.ts) [Expect](https://github.com/mjackson/expect) by [Justin Reidy](https://github.com/jmreidy) * [:link:](expect.js/expect.js.d.ts) [expect.js](https://github.com/Automattic/expect.js) by [Teppei Sato](https://github.com/teppeis) * [:link:](expectations/expectations.d.ts) [expectations.js](https://github.com/spmason/expectations) by [vvakame](https://github.com/vvakame) * [:link:](express/express.d.ts) [Express 4.x](http://expressjs.com) by [Boris Yankov](https://github.com/borisyankov) +* [:link:](express-serve-static-core/express-serve-static-core.d.ts) [Express 4.x](http://expressjs.com) by [Boris Yankov](https://github.com/borisyankov) * [:link:](express-brute/express-brute.d.ts) [express-brute](https://github.com/AdamPflug/express-brute) by [Cyril Schumacher](https://github.com/cyrilschumacher) +* [:link:](express-brute-memcached/express-brute-memcached.d.ts) [express-brute-memcached](https://github.com/AdamPflug/express-brute-memcached) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](express-brute-mongo/express-brute-mongo.d.ts) [express-brute-mongo](https://github.com/auth0/express-brute-mongo) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](express-debug/express-debug.d.ts) [express-debug](https://github.com/devoidfury/express-debug) by [Federico Bond](https://github.com/federicobond) -* [:link:](express-handlebars/express-handlebars.d.ts) [express-handlebars](https://github.com/ericf/express-handlebars) by [Sam Saint-Pettersen](https://github.com/stpettersens) +* [:link:](express-graphql/express-graphql.d.ts) [express-graphql](https://www.npmjs.org/package/express-graphql) by [Isman Usoh](https://github.com/isman-usoh), [Nitin Tutlani](https://github.com/nitintutlani) +* [:link:](express-handlebars/express-handlebars.d.ts) [express-handlebars](https://github.com/ericf/express-handlebars) by [Sam Saint-Pettersen](https://github.com/stpettersens), [Igor Dultsev](https://github.com/yhaskell) * [:link:](express-jwt/express-jwt.d.ts) [express-jwt](https://www.npmjs.org/package/express-jwt) by [Wonshik Kim](https://github.com/wokim) * [:link:](express-less/express-less.d.ts) [express-less](https://www.npmjs.com/package/express-less) by [xyb](https://github.com/xieyubo) +* [:link:](express-minify/express-minify.d.ts) [express-minify](https://github.com/SummerWish/express-minify) by [Borislav Zhivkov](https://github.com/borislavjivkov) * [:link:](express-myconnection/express-myconnection.d.ts) [express-myconnection](https://www.npmjs.org/package/express-myconnection) by [Michael Ferris](https://github.com/Cellule) +* [:link:](express-openapi/express-openapi.d.ts) [express-openapi 0.11.x](https://github.com/kogosoftwarellc/express-openapi) by [TANAKA Koichi](https://github.com/mugeso) * [:link:](express-partials/express-partials.d.ts) [express-partials](https://github.com/publicclass/express-partials) by [jt000](https://github.com/jt000) * [:link:](express-route-fs/express-route-fs.d.ts) [express-route-fs](https://github.com/kripod/express-route-fs) by [Kristóf Poduszló](https://github.com/kripod) * [:link:](express-session/express-session.d.ts) [express-session](https://www.npmjs.org/package/express-session) by [Hiroki Horiuchi](https://github.com/horiuchi) * [:link:](express-unless/express-unless.d.ts) [express-unless](https://www.npmjs.org/package/express-unless) by [Wonshik Kim](https://github.com/wokim) * [:link:](express-validator/express-validator.d.ts) [express-validator](https://github.com/ctavan/express-validator) by [Nathan Ridley](https://github.com/axefrog), [Jonathan Häberle](http://dreampulse.de) * [:link:](extend/extend.d.ts) [extend](https://www.npmjs.com/package/extend) by [Stefan Steinhart](https://github.com/reppners) +* [:link:](wiiu/wiiu.d.ts) [Extended Functionality of Wii U Internet Browser](https://www.nintendo.co.jp/wiiu/hardware/internetbrowser/extended_functionality.html) by [MIZUSHIMA Junki](https://github.com/mzsm) +* [:link:](extended-listbox/extended-listbox.d.ts) [extended-listbox 1.1.x](https://github.com/code-chris/extended-listbox) by [Christian Kotzbauer](https://github.com/code-chris) * [:link:](extjs/ExtJS.d.ts) [ExtJS](http://www.sencha.com/products/extjs) by [Brian Kotek](https://github.com/brian428) * [:link:](eyes/eyes.d.ts) [eyes](https://github.com/cloudhead/eyes.js) by [bryn austin bellomy](https://github.com/brynbellomy) * [:link:](fabricjs/fabricjs.d.ts) [FabricJS](http://fabricjs.com) by [Oliver Klemencic](https://github.com/oklemencic), [Joseph Livecchi](https://github.com/joewashear007), [Michael Randolph](https://github.com/mrand01) @@ -415,15 +477,18 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](findup-sync/findup-sync.d.ts) [findup-sync](https://github.com/cowboy/node-findup-sync) by [Bart van der Schoor](https://github.com/Bartvds), [Nathan Brown](https://github.com/ngbrown) * [:link:](fingerprintjs/fingerprint.d.ts) [fingerprintjs](https://github.com/Valve/fingerprintjs) by [Shunsuke Ohtani](https://github.com/zaneli) * [:link:](state-machine/state-machine.d.ts) [Finite State Machine](https://github.com/jakesgordon/javascript-state-machine) by [Boris Yankov](https://github.com/borisyankov), [Maarten Docter](https://github.com/mdocter), [William Sears](https://github.com/MrBigDog2U) -* [:link:](firebase/firebase.d.ts) [Firebase API](https://www.firebase.com/docs/javascript/firebase) by [Vincent Botone](https://github.com/vbortone), [Shin1 Kashimura](https://github.com/in-async), [Sebastien Dubois](https://github.com/dsebastien) +* [:link:](firebase/firebase.d.ts) [Firebase API](https://www.firebase.com/docs/javascript/firebase) by [Vincent Botone](https://github.com/vbortone), [Shin1 Kashimura](https://github.com/in-async), [Sebastien Dubois](https://github.com/dsebastien), [Szymon Stasik](https://github.com/ciekawy) * [:link:](firebase-client/firebase-client.d.ts) [Firebase Client](https://www.github.com/jpstevens/firebase-client) by [Andrew Breen](https://github.com/fpsscarecrow) * [:link:](firebase/firebase-simplelogin.d.ts) [Firebase Simple Login](https://www.firebase.com/docs/security/simple-login-overview.html) by [Wilker Lucio](http://github.com/wilkerlucio) +* [:link:](firebase-token-generator/firebase-token-generator.d.ts) [firebase-token-generator](https://github.com/firebase/firebase-token-generator-node) by [Hans Van den Keybus](https://github.com/dotdotcommadot) * [:link:](first-mate/first-mate.d.ts) [first-mate](https://github.com/atom/first-mate) by [Vadim Macagon](https://github.com/enlight) * [:link:](fixed-data-table/fixed-data-table.d.ts) [fixed-data-table](https://github.com/facebook/fixed-data-table) by [Petar Paar](https://github.com/pepaar), [Stephen Jelfs](https://github.com/stephenjelfs) * [:link:](flake-idgen/flake-idgen.d.ts) [flakge-idgen](https://github.com/T-PWK/flake-idgen) by [Yuce Tekol](http://yuce.me) * [:link:](flat/flat.d.ts) [flat](https://github.com/hughsk/flat) by [Ilya Mochalov](https://github.com/chrootsu) * [:link:](flexSlider/flexSlider.d.ts) [FlexSlider 2 jquery plugin](https://github.com/woothemes/FlexSlider) by [Diullei Gomes](https://github.com/diullei) +* [:link:](flickity/flickity.d.ts) [Flickity](http://flickity.metafizzy.co) by [Chris McGrath](https://www.github.com/clmcgrath) * [:link:](flight/flight.d.ts) [Flight](http://flightjs.github.com/flight) by [Jonathan Hedrén](https://github.com/jonathanhedren) +* [:link:](flightplan/flightplan.d.ts) [flightplan](https://github.com/pstadler/flightplan) by [Borislav Zhivkov](https://github.com/borislavjivkov) * [:link:](flipsnap/flipsnap.d.ts) [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) * [:link:](flot/jquery.flot.d.ts) [Flot](http://www.flotcharts.org) by [Matt Burland](https://github.com/burlandm) * [:link:](flowjs/flowjs.d.ts) [flowjs](https://github.com/flowjs/flow.js) by [Ryan McNamara](https://github.com/ryan10132) @@ -434,16 +499,22 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](ion.rangeSlider/ion.rangeSlider.d.ts) [for Ion.RangeSlider](https://github.com/IonDen/ion.rangeSlider) by [Sixin Li](https://github.com/sixinli) * [:link:](jee-jsf/jsf.d.ts) [for the JSF 2.0 Ajax request API](https://docs.oracle.com/cd/E17802_01/j2ee/javaee/javaserverfaces/2.0/docs/js-api/symbols/jsf.ajax.html) by [Lars Michaelis and Stephan Zerhusen](https://github.com/ButterFaces/ButterFaces) * [:link:](forge-di/forge-di.d.ts) [forge-di](https://github.com/nkohari/forge) by [Adam Carr](https://github.com/adamcarr) +* [:link:](form-data/form-data.d.ts) [form-data](https://github.com/felixge/node-form-data) by [Carlos Ballesteros Velasco](https://github.com/soywiz) +* [:link:](format-unicorn/format-unicorn.d.ts) [format-unicorn](https://github.com/tallesl/format-unicorn) by [kruncher](https://github.com/kruncher) +* [:link:](format-unicorn/format-unicorn-safe.d.ts) [format-unicorn](https://github.com/tallesl/format-unicorn) by [kruncher](https://github.com/kruncher) * [:link:](formidable/formidable.d.ts) [Formidable](https://github.com/felixge/node-formidable) by [Wim Looman](https://github.com/Nemo157) * [:link:](foundation/foundation.d.ts) [Foundation](http://foundation.zurb.com) by [Boris Yankov](https://github.com/borisyankov) * [:link:](foundation-sites/foundation-sites.d.ts) [Foundation Sites](http://foundation.zurb.com) by [Sam Vloeberghs](https://github.com/samvloeberghs) * [:link:](fpsmeter/FPSMeter.d.ts) [FPSmeter](http://darsa.in/fpsmeter) by [Aaron Lampros](http://github.com/alampros) +* [:link:](freedom/freedom-core-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) * [:link:](freedom/freedom-module-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) * [:link:](freedom/freedom.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) -* [:link:](freedom/freedom-core-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) * [:link:](from/from.d.ts) [from](https://github.com/dominictarr/from) by [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](fromjs/fromjs.d.ts) [fromjs](https://github.com/suckgamony/fromjs) by [Glenn Dierckx](https://github.com/glenndierckx) +* [:link:](fromnow/fromnow.d.ts) [fromnow](https://github.com/lukeed/fromNow) by [Martin Bukovics](https://github.com/marinewater) * [:link:](fs-ext/fs-ext.d.ts) [fs-ext](https://github.com/baudehlo/node-fs-ext) by [Oguzhan Ergin](https://github.com/OguzhanE) * [:link:](fs-extra/fs-extra.d.ts) [fs-extra](https://github.com/jprichardson/node-fs-extra) by [midknight41](https://github.com/midknight41) +* [:link:](fs-extra-promise/fs-extra-promise.d.ts) [fs-extra-promise](https://github.com/overlookmotel/fs-extra-promise) by [midknight41](https://github.com/midknight41), [Jason Swearingen](https://github.com/jasonswearingen) * [:link:](fs-finder/fs-finder.d.ts) [fs-finder](https://github.com/sakren/node-fs-finder) by [Michael Zabka](https://github.com/misak113) * [:link:](fs-mock/fs-mock.d.ts) [fs-mock](https://github.com/sakren/node-fs-mock) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](ftdomdelegate/ftdomdelegate.d.ts) [ftdomdelegate](https://github.com/ftlabs/ftdomdelegate) by [Christian Holm Nielsen](https://github.com/dotnetnerd) @@ -455,6 +526,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jquery-galleria/jquery-galleria.d.ts) [galleria.js](https://github.com/aino/galleria) by [Robert Imig](https://github.com/rimig) * [:link:](gamepad/gamepad.d.ts) [Gamepad API](http://www.w3.org/TR/gamepad) by [Kon](http://phyzkit.net) * [:link:](gamequery/gamequery.d.ts) [gameQuery](http://gamequeryjs.com) by [David Laubreiter](https://github.com/Laubi) +* [:link:](gandi-livedns/gandi-livedns.d.ts) [Gandi LiveDNS](http://doc.livedns.gandi.net) by [Xavier Stouder](https://github.com/xstoudi) * [:link:](gently/gently.d.ts) [gently](https://www.npmjs.org/package/gently) by [bonnici](https://github.com/bonnici) * [:link:](geoip-lite/geoip-lite.d.ts) [GeoIP-lite](https://github.com/bluesmoon/node-geoip) by [Yuce Tekol](http://yuce.me) * [:link:](geojson/geojson.d.ts) [GeoJSON Format Specification](http://geojson.org) by [Jacob Bruun](https://github.com/cobster) @@ -472,33 +544,33 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](goJS/goJS.d.ts) [GoJS](http://gojs.net) by [Northwoods Software](https://github.com/NorthwoodsSoftware) * [:link:](google.analytics/ga.d.ts) [Google Analytics (Classic and Universal)](https://developers.google.com/analytics/devguides/collection/gajs) by [Ronnie Haakon Hegelund](http://ronniehegelund.blogspot.dk), [Pat Kujawa](http://patkujawa.com) * [:link:](gapi/gapi.d.ts) [Google API Client](https://code.google.com/p/google-api-javascript-client) by [Frank M](https://github.com/sgtfrankieboy) -* [:link:](google-apps-script/google-apps-script.calendar.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.script.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.groups.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.xml-service.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.sites.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.utilities.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.jdbc.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.html.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.document.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.content.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.contacts.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.charts.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) * [:link:](google-apps-script/google-apps-script.optimization.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.url-fetch.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.properties.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.ui.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) * [:link:](google-apps-script/google-apps-script.maps.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.utilities.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.url-fetch.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.script.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.ui.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.jdbc.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.drive.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.spreadsheet.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) * [:link:](google-apps-script/google-apps-script.mail.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.lock.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.language.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.html.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.groups.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.gmail.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) * [:link:](google-apps-script/google-apps-script.types.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.properties.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.language.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.forms.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.sites.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.xml-service.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) * [:link:](google-apps-script/google-apps-script.base.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) * [:link:](google-apps-script/google-apps-script.cache.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.spreadsheet.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.charts.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.contacts.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.content.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.document.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.drive.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.forms.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) -* [:link:](google-apps-script/google-apps-script.gmail.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.calendar.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) +* [:link:](google-apps-script/google-apps-script.lock.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen) * [:link:](google.feeds/google.feed.api.d.ts) [Google Feed Apis](https://developers.google.com/feed) by [RodneyJT](https://github.com/RodneyJT) * [:link:](google.geolocation/google.geolocation.d.ts) [Google Geolocation](https://code.google.com/p/geo-location-javascript) by [Vincent Bortone](https://github.com/vbortone) * [:link:](googlemaps/google.maps.d.ts) [Google Maps JavaScript API](https://developers.google.com/maps) by [Folia A/S](http://www.folia.dk), [Chris Wrench](https://github.com/cgwrench) @@ -507,6 +579,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](google-drive-realtime-api/google-drive-realtime-api.d.ts) [Google Realtime API](https://developers.google.com/google-apps/realtime) by [Dustin Wehr](http://cs.toronto.edu/~wehr) * [:link:](recaptcha/recaptcha.d.ts) [Google Recaptcha](https://www.google.com/recaptcha) by [Brent Jenkins](https://github.com/brentj73) * [:link:](grecaptcha/grecaptcha.d.ts) [Google Recaptcha v2](https://www.google.com/recaptcha) by [Kristof Mattei](http://kristofmattei.be) +* [:link:](gapi.auth2/gapi.auth2.d.ts) [Google Sign-In API](https://developers.google.com/identity/sign-in/web) by [Derek Lawless](https://github.com/flawless2011) * [:link:](gapi.translate/gapi.translate.d.ts) [Google Translate API](https://developers.google.com/translate) by [Frank M](https://github.com/sgtfrankieboy) * [:link:](gapi.urlshortener/gapi.urlshortener.d.ts) [Google Url Shortener API](https://developers.google.com/url-shortener) by [Frank M](https://github.com/sgtfrankieboy) * [:link:](google.visualization/google.visualization.d.ts) [Google Visualisation Apis](https://developers.google.com/chart) by [Dan Ludwig](https://github.com/danludwig) @@ -514,7 +587,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](gae.channel.api/gae.channel.api.d.ts) [GoogleAppEngine's Channel API](https://developers.google.com/appengine/docs/java/channel/javascript) by [vvakame](https://github.com/vvakame) * [:link:](graceful-fs/graceful-fs.d.ts) [graceful-fs](https://github.com/cowboy/graceful-fs) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](graham_scan/graham_scan.d.ts) [graham_scan](https://github.com/brian3kb/graham_scan_js) by [Harm Berntsen](https://github.com/hberntsen) +* [:link:](graphene-pk11/graphene-pk11.d.ts) [graphene-pk11](https://github.com/PeculiarVentures/graphene) by [Stepan Miroshin](https://github.com/microshine) * [:link:](graphviz/graphviz.d.ts) [Graphviz](https://github.com/glejeune/node-graphviz) by [Matt Frantz](https://github.com/mhfrantz) +* [:link:](gravatar/gravatar.d.ts) [gravatar](https://github.com/emerleite/node-gravatar) by [Denis Sokolov](https://github.com/denis-sokolov) * [:link:](greasemonkey/greasemonkey.d.ts) [Greasemonkey](http://www.greasespot.net) by [Kota Saito](https://github.com/kotas) * [:link:](greensock/greensock.d.ts) [GreenSock Animation Platform](http://www.greensock.com/get-started-js) by [Robert S](https://github.com/codebelt) * [:link:](gridfs-stream/gridfs-stream.d.ts) [gridfs-stream](https://github.com/aheckmann/gridfs-stream) by [Lior Mualem](https://github.com/liorm) @@ -536,14 +611,21 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](gulp-debug/gulp-debug.d.ts) [gulp-debug](https://github.com/sindresorhus/gulp-debug) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](gulp-dtsm/gulp-dtsm.d.ts) [gulp-dtsm](https://github.com/9joneg/gulp-dtsm) by [Aya Morisawa](https://github.com/AyaMorisawa) * [:link:](gulp-espower/gulp-espower.d.ts) [gulp-espower](https://github.com/power-assert-js/gulp-espower) by [Qubo](https://github.com/tkQubo) +* [:link:](gulp-filter/gulp-filter.d.ts) [gulp-filter](https://github.com/sindresorhus/gulp-filter) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](gulp-flatten/gulp-flatten.d.ts) [gulp-flatten](https://github.com/armed/gulp-flatten) by [Keita Kagurazaka](https://github.com/k-kagurazaka) * [:link:](gulp-gh-pages/gulp-gh-pages.d.ts) [gulp-gh-pages](https://github.com/rowoot/gulp-gh-pages) by [Asana](https://asana.com) * [:link:](gulp-gzip/gulp-gzip.d.ts) [gulp-gzip](https://github.com/jstuckey/gulp-gzip) by [Qubo](https://github.com/tkQubo) * [:link:](gulp-help/gulp-help.d.ts) [gulp-help](https://github.com/chmontgomery/gulp-help) by [Qubo](https://github.com/tkQubo) +* [:link:](gulp-html-replace/gulp-html-replace.d.ts) [gulp-html-replace](https://www.npmjs.com/package/gulp-html-replace) by [Peter Juras](https://github.com/peterjuras) +* [:link:](gulp-htmlmin/gulp-htmlmin.d.ts) [gulp-htmlmin](https://github.com/jonschlinkert/gulp-htmlmin) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](gulp-if/gulp-if.d.ts) [gulp-if](https://github.com/robrich/gulp-if) by [Asana](https://asana.com), [Joe Skeen](http://github.com/joeskeen) * [:link:](gulp-inject/gulp-inject.d.ts) [gulp-inject](https://github.com/klei/gulp-inject) by [Keita Kagurazaka](https://github.com/k-kagurazaka) +* [:link:](gulp-install/gulp-install.d.ts) [gulp-install](https://www.npmjs.com/package/gulp-install) by [Peter Juras](https://github.com/peterjuras) * [:link:](gulp-istanbul/gulp-istanbul.d.ts) [gulp-istanbul](https://github.com/SBoudrias/gulp-istanbul) by [Asana](https://asana.com) +* [:link:](gulp-jade/gulp-jade.d.ts) [gulp-jade](https://github.com/phated/gulp-jade) by [berwyn](https://github.com/berwyn) * [:link:](gulp-jasmine-browser/gulp-jasmine-browser.d.ts) [gulp-jasmine-browser](https://github.com/jasmine/gulp-jasmine-browser) by [Tanguy Krotoff](https://github.com/tkrotoff) +* [:link:](gulp-json-editor/gulp-json-editor.d.ts) [gulp-json-editor](https://www.npmjs.com/package/gulp-json-editor) by [Peter Juras](https://github.com/peterjuras) +* [:link:](gulp-jspm/gulp-jspm.d.ts) [gulp-jspm](https://www.npmjs.com/package/gulp-jspm) by [Peter Juras](https://github.com/peterjuras) * [:link:](gulp-less/gulp-less.d.ts) [gulp-less](https://github.com/plus3network/gulp-less) by [Keita Kagurazaka](https://github.com/k-kagurazaka) * [:link:](gulp-load-plugins/gulp-load-plugins.d.ts) [gulp-load-plugins](https://github.com/jackfranklin/gulp-load-plugins) by [Joe Skeen](http://github.com/joeskeen) * [:link:](gulp-minify-css/gulp-minify-css.d.ts) [gulp-minify-css](https://github.com/jonathanepollack/gulp-minify-css) by [Keita Kagurazaka](https://github.com/k-kagurazaka) @@ -565,6 +647,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](gulp-size/gulp-size.d.ts) [gulp-size](https://github.com/sindresorhus/gulp-size) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](gulp-sort/gulp-sort.d.ts) [gulp-sort](https://github.com/pgilad/gulp-sort) by [Joe Skeen](http://github.com/joeskeen) * [:link:](gulp-sourcemaps/gulp-sourcemaps.d.ts) [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) by [Asana](https://asana.com) +* [:link:](gulp-strip-debug/gulp-strip-debug.d.ts) [gulp-strip-debug](https://www.npmjs.com/package/gulp-strip-debug) by [Peter Juras](https://github.com/peterjuras) * [:link:](gulp-svg-sprite/gulp-svg-sprite.d.ts) [gulp-svg-sprite](https://github.com/jkphl/gulp-svg-sprite) by [Qubo](https://github.com/tkqubo) * [:link:](gulp-task-listing/gulp-task-listing.d.ts) [gulp-task-listing](https://github.com/OverZealous/gulp-task-listing) by [Joe Skeen](http://github.com/joeskeen) * [:link:](gulp-tsd/gulp-tsd.d.ts) [gulp-tsd](https://github.com/moznion/gulp-tsd) by [Keita Kagurazaka](https://github.com/k-kagurazaka) @@ -578,6 +661,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](hammerjs/hammerjs.d.ts) [Hammer.js](http://hammerjs.github.io) by [Philip Bulley](https://github.com/milkisevil), [Han Lin Yap](https://github.com/codler) * [:link:](handlebars/handlebars.d.ts) [Handlebars](http://handlebarsjs.com) by [Boris Yankov](https://github.com/borisyankov) * [:link:](hapi/hapi.d.ts) [hapi](http://github.com/spumko/hapi) by [Jason Swearingen](http://github.com/jasonswearingen) +* [:link:](harmony-proxy/harmony-proxy.d.ts) [harmony-proxy](https://www.npmjs.com/package/harmony-proxy) by [Remo Jansen](https://github.com/remojansen) * [:link:](hasher/hasher.d.ts) [Hasher.js](https://github.com/millermedeiros/hasher) by [flyfishMT](https://github.com/flyfishMT) * [:link:](hashids/hashids.d.ts) [Hashids.js 1.x](https://github.com/ivanakimov/hashids.node.js) by [Paulo Cesar](https://github.com/pocesar) * [:link:](hashmap/hashmap.d.ts) [HashMap](https://github.com/flesler/hashmap) by [Rafał Wrzeszcz](http://wrzasq.pl), [Vasya Aksyonov](https://github.com/outring) @@ -592,13 +676,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](highland/highland.d.ts) [Highland](http://highlandjs.org) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](highlightjs/highlightjs.d.ts) [highlight.js](https://github.com/isagalaev/highlight.js) by [Niklas Mollenhauer](https://github.com/nikeee), [Jeremy Hull](https://github.com/sourrust) * [:link:](highcharts/highstock.d.ts) [Highstock](http://www.highcharts.com) by [David Deutsch](http://github.com/DavidKDeutsch) -* [:link:](react-router/history.d.ts) [history](https://github.com/rackt/history) by [Sergey Buturlakin](http://github.com/sergey-buturlakin) +* [:link:](react-router/history.d.ts) [history](https://github.com/rackt/history) by [Sergey Buturlakin](https://github.com/sergey-buturlakin), [Nathan Brown](https://github.com/ngbrown) * [:link:](history/history.d.ts) [History.js](https://github.com/browserstate/history.js) by [Boris Yankov](https://github.com/borisyankov), [Gidon Junge](https://github.com/gjunge) * [:link:](hopscotch/hopscotch.d.ts) [Hopscotch](http://linkedin.github.io/hopscotch) by [Tim Perry](https://github.com/pimterry) * [:link:](howlerjs/howler.d.ts) [howler.js](https://github.com/goldfire/howler.js) by [Pedro Casaubon](https://github.com/xperiments) * [:link:](touch-events/touch-events.d.ts) [HTML Touch Events](http://www.w3.org/TR/touch-events) by [Kevin Barabash](https://github.com/kevinb7) * [:link:](html-to-text/html-to-text.d.ts) [html-to-text](https://github.com/werk85/node-html-to-text) by [Eryk Warren](https://github.com/erykwarren) * [:link:](html2canvas/html2canvas.d.ts) [html2canvas.js](https://github.com/niklasvh/html2canvas) by [Richard Hepburn](https://github.com/rwhepburn) +* [:link:](html-minifier/html-minifier.d.ts) [HTMLMinifier](https://github.com/kangax/html-minifier) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](htmlparser2/htmlparser2.d.ts) [htmlparser2 v3.7.x](https://github.com/fb55/htmlparser2) by [James Roland Cabresos](https://github.com/staticfunction) * [:link:](htmltojsx/htmltojsx.d.ts) [htmltojsx](https://www.npmjs.com/package/htmltojsx) by [Basarat Ali Syed](https://github.com/basarat) * [:link:](http-errors/http-errors.d.ts) [http-errors](https://github.com/jshttp/http-errors) by [Tanguy Krotoff](https://github.com/tkrotoff) @@ -608,11 +693,17 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](humane/humane.d.ts) [Humane](http://wavded.github.com/humane-js) by [jmvrbanac](https://github.com/jmvrbanac) * [:link:](hypertext-application-language/hypertext-application-language.d.ts) [Hypertext Application Language Draft 6](https://tools.ietf.org/html/draft-kelly-json-hal-06) by [Maks3w](https://github.com/maks3w) * [:link:](i18n-node/i18n-node.d.ts) [i18n-node](https://github.com/mashpie/i18n-node) by [Maxime LUCE](https://github.com/SomaticIT) -* [:link:](i18next/i18next.d.ts) [i18next](http://i18next.com) by [Maarten Docter](https://github.com/mdocter) * [:link:](ng-i18next/ng-i18next.d.ts) [i18next](https://github.com/i18next/ng-i18next) by [Cyril Schumacher](https://github.com/cyrilschumacher) +* [:link:](i18next/i18next.d.ts) [i18next](http://i18next.com) by [Maarten Docter](https://github.com/mdocter) +* [:link:](i18next-browser-languagedetector/i18next-browser-languagedetector.d.ts) [i18next-browser-languagedetector](http://i18next.com) by [Cyril Schumacher](https://github.com/cyrilschumacher) +* [:link:](i18next-express-middleware/i18next-express-middleware.d.ts) [i18next-express-middleware](http://i18next.com) by [Cyril Schumacher](https://github.com/cyrilschumacher) +* [:link:](i18next-node-fs-backend/i18next-node-fs-backend.d.ts) [i18next-node-fs-backend](https://github.com/i18next/i18next-node-fs-backend) by [Cyril Schumacher](https://github.com/cyrilschumacher) +* [:link:](i18next-sprintf-postprocessor/i18next-sprintf-postprocessor.d.ts) [i18next-sprintf-postProcessor](https://github.com/i18next/i18next-sprintf-postProcessor) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](iban/iban.d.ts) [iban.js](https://github.com/arhs/iban.js) by [Cyril Schumacher](https://github.com/cyrilschumacher) +* [:link:](ibm-mobilefirst/ibm-mobilefirst.d.ts) [IBM MobileFirst Platform Foundation](http://www.ibm.com/software/products/en/mobilefirstfoundation) by [Guillermo Ignacio Enriquez Gutierrez](https://github.com/nacho4d) * [:link:](icepick/icepick.d.ts) [icepick](https://github.com/aearly/icepick) by [Nathan Brown](https://github.com/ngbrown) * [:link:](icheck/icheck.d.ts) [iCheck](http://damirfoy.com/iCheck) by [Dániel Tar](https://github.com/qcz) +* [:link:](image-size/image-size.d.ts) [image-size](https://github.com/image-size/image-size) by [Elisée MAURER](https://github.com/elisee) * [:link:](imagemagick/imagemagick.d.ts) [imagemagick](http://github.com/rsms/node-imagemagick) by [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](imagemagick-native/imagemagick-native.d.ts) [imagemagick-native](https://www.npmjs.org/package/imagemagick-native) by [Hiroki Horiuchi](https://github.com/horiuchi) * [:link:](imagesloaded/imagesloaded.d.ts) [imagesLoaded](https://github.com/desandro/imagesloaded) by [Chris Charabaruk](http://github.com/coldacid) @@ -620,6 +711,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](imgur-rest-api/imgur-rest-api.d.ts) [Imgur REST API v3](https://api.imgur.com) by [Luke William Westby](http://github.com/lukewestby) * [:link:](impress/impress.d.ts) [Impress.js](https://github.com/bartaz/impress.js) by [Boris Yankov](https://github.com/borisyankov) * [:link:](incremental-dom/incremental-dom.d.ts) [Incremetal DOM](https://github.com/google/incremental-dom) by [Basarat Ali Syed](https://github.com/basarat) +* [:link:](inflected/inflected.d.ts) [inflected](https://github.com/martinandert/inflected) by [Daniel Schmidt](https://github.com/dsci) * [:link:](inflection/inflection.d.ts) [inflection](https://github.com/dreamerslab/node.inflection) by [Shogo Iwano](https://github.com/shiwano) * [:link:](inherits/inherits.d.ts) [inherits](https://github.com/isaacs/inherits) by [Ilya Mochalov](https://github.com/chrootsu) * [:link:](ini/ini.d.ts) [ini](https://github.com/isaacs/ini) by [Marcin Porębski](https://github.com/marcinporebski) @@ -627,21 +719,26 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](inline-css/inline-css.d.ts) [inline-css](https://github.com/jonkemp/inline-css) by [Philip Spain](https://github.com/philipisapain) * [:link:](inquirer/inquirer.d.ts) [Inquirer.js](https://github.com/SBoudrias/Inquirer.js) by [Qubo](https://github.com/tkQubo) * [:link:](insight/insight.d.ts) [insight](https://github.com/yeoman/insight) by [vvakame](http://github.com/vvakame) +* [:link:](cordova-plugin-insomnia/cordova-plugin-insomnia.d.ts) [Insomnia-PhoneGap-Plugin](https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin) by [Markus Wagner](https://github.com/Ritzlgrmft) * [:link:](interactjs/interact.d.ts) [Interacting for interact.js](https://github.com/taye/interact.js) by [Douglas Eichelberger](https://github.com/dduugg), [Adi Dahiya](https://github.com/adidahiya), [Tom Hasner](https://github.com/thasner) * [:link:](intercomjs/intercom.d.ts) [intercom.js](https://github.com/diy/intercom.js) by [spencerwi](http://github.com/spencerwi) * [:link:](intro.js/intro.js.d.ts) [intro.js](https://github.com/usablica/intro.js) by [Maxime Fabre](https://github.com/anahkiasen) +* [:link:](invariant/invariant.d.ts) [invariant](https://github.com/zertosh/invariant) by [MichaelBennett](https://github.com/bennett000) * [:link:](inversify/inversify.d.ts) [inversify](https://github.com/inversify/InversifyJS) by [inversify](https://github.com/inversify) * [:link:](ionic/ionic.d.ts) [Ionic](http://ionicframework.com) by [Spencer Williams](https://github.com/spencerwi) * [:link:](cordova-ionic/cordova-ionic.d.ts) [Ionic Cordova plugins](https://github.com/driftyco) by [Hendrik Maus](https://github.com/hendrikmaus) * [:link:](irc/irc.d.ts) [irc](https://github.com/martynsmith/node-irc) by [phillips1012](https://github.com/phillips1012) * [:link:](is-lower-case/is-lower-case.d.ts) [is-lower-case](https://github.com/blakeembrey/is-lower-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) +* [:link:](is-my-json-valid/is-my-json-valid.d.ts) [is-my-json-valid](https://github.com/mafintosh/is-my-json-valid) by [kruncher](https://github.com/kruncher) * [:link:](is-upper-case/is-upper-case.d.ts) [is-upper-case](https://github.com/blakeembrey/is-upper-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) +* [:link:](is-url/is-url.d.ts) [is-url](https://github.com/segmentio/is-url) by [Ryota Murohoshi](https://github.com/RyotaMurohoshi) * [:link:](is_js/is_js.d.ts) [is.js](http://arasatasaygin.github.io/is.js) by [Rodrigo Cabral](https://github.com/cabralRodrigo) * [:link:](iscroll/iscroll.d.ts) [iScroll](http://cubiq.org/iscroll-4) by [Boris Yankov](https://github.com/borisyankov), [Christiaan Rakowski](https://github.com/csrakowski) * [:link:](iscroll/iscroll-5.d.ts) [iScroll 5](http://cubiq.org/iscroll-5-ready-for-beta-test) by [Christiaan Rakowski](https://github.com/csrakowski) * [:link:](iscroll/iscroll-lite.d.ts) [iScroll Lite](http://cubiq.org/iscroll-4) by [Boris Yankov](https://github.com/borisyankov), [Christiaan Rakowski](https://github.com/csrakowski) * [:link:](iscroll/iscroll-5-lite.d.ts) [iScroll Lite 5](http://cubiq.org/iscroll-5-ready-for-beta-test) by [Christiaan Rakowski](https://github.com/csrakowski) * [:link:](iso8601-localizer/iso8601-localizer.d.ts) [ISO8601-Localizer](https://github.com/avielfedida/ISO8601-Localizer) by [Aviel Fedida](https://github.com/avielfedida) +* [:link:](isomorphic-fetch/isomorphic-fetch.d.ts) [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) by [Todd Lucas](https://github.com/toddlucas) * [:link:](istanbul/istanbul.d.ts) [Istanbul](https://github.com/gotwarlost/istanbul) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](ix.js/ix.d.ts) [IxJS 1.0.6 / ix.js](https://github.com/Reactive-Extensions/IxJS) by [Igor Oleinikov](https://github.com/Igorbek) * [:link:](ix.js/l2o.d.ts) [IxJS 1.0.6 / l2o.js](https://github.com/Reactive-Extensions/IxJS) by [Igor Oleinikov](https://github.com/Igorbek) @@ -655,15 +752,19 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jasmine-fixture/jasmine-fixture.d.ts) [Jasmine-fixture](https://github.com/searls/jasmine-fixture) by [Craig Brett](https://github.com/craigbrett17) * [:link:](jasmine-jquery/jasmine-jquery.d.ts) [Jasmine-JQuery](https://github.com/velesin/jasmine-jquery) by [Gregor Stamac](https://github.com/gstamac) * [:link:](jasmine-matchers/jasmine-matchers.d.ts) [jasmine-matchers](https://github.com/uxebu/jasmine-matchers) by [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](jasmine-node/jasmine-node.d.ts) [jasmine-node](https://github.com/mhevery/jasmine-node) by [Sven Reglitzki](https://github.com/svi3c) * [:link:](jasmine-promise-matchers/jasmine-promise-matchers.d.ts) [jasmine-promise-matchers](https://github.com/bvaughn/jasmine-promise-matchers) by [Matthew Hill](https://github.com/matthewjh) -* [:link:](java/java.d.ts) [java](https://github.com/joeferner/java) by [Jim Lloyd](https://github.com/jimlloyd) +* [:link:](java/java.d.ts) [java](https://github.com/joeferner/node-java) by [Jim Lloyd](https://github.com/jimlloyd) * [:link:](java-applet/java-applet.d.ts) [Java Applet](https://www.java.com) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](hooker/hooker.d.ts) [JavaScript Hooker](https://github.com/cowboy/javascript-hooker) by [Michael Zabka](https://github.com/misak113) * [:link:](oauth.js/oauth.js.d.ts) [JavaScript software for implementing an OAuth consumer](https://code.google.com/p/oauth) by [NOBUOKA Yu](https://github.com/nobuoka) +* [:link:](javascript-astar/javascript-astar.d.ts) [javascript-astar](https://github.com/bgrins/javascript-astar) by [brian ridley](https://github.com/ptlis) * [:link:](javascript-bignum/javascript-bignum.d.ts) [javascript-bignum](https://github.com/jtobey/javascript-bignum) by [Nathan Shively-Sanders](https://github.com/sandersn) * [:link:](jbinary/jbinary.d.ts) [jBinary](https://github.com/jDataView/jBinary) by [Tim Bureck](https://github.com/tbureck) +* [:link:](meteor-jboulhous-dev/meteor-jboulhous-dev.d.ts) [jboulhous:dev](https://github.com/jboulhous/dev) by [Robbie Van Gorkom](https://github.com/vangorra) * [:link:](jdataview/jdataview.d.ts) [jDataView](https://github.com/jDataView/jDataView) by [Ingvar Stepanyan](https://github.com/RReverser) * [:link:](jest/jest.d.ts) [Jest](http://facebook.github.io/jest) by [Asana](https://asana.com) +* [:link:](jfp/jfp.d.ts) [JFP](http://cmstead.github.io/JFP) by [Chris Stead](http://www.chrisstead.com) * [:link:](jjv/jjv.d.ts) [JJV](https://github.com/acornejo/jjv) by [Wim Looman](https://github.com/Nemo157) * [:link:](jjve/jjve.d.ts) [JJVE](https://github.com/silas/jjve) by [Wim Looman](https://github.com/Nemo157) * [:link:](joData/joData.d.ts) [joData](https://github.com/mccow002/joData) by [Chris Wrench](https://github.com/cgwrench) @@ -680,12 +781,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jquery-cropbox/jquery-cropbox.d.ts) [jQuery cropbox](https://github.com/acornejo/jquery-cropbox) by [Per Kastman](https://github.com/PerKastman) * [:link:](jquery.cycle2/jquery.cycle2.d.ts) [jQuery Cycle2 version (build 20140216)](http://jquery.malsup.com/cycle2) by [Donny Nadolny](https://github.com/dnadolny) * [:link:](jquery.dataTables/jquery.dataTables.d.ts) [JQuery DataTables](http://www.datatables.net) by [Kiarash Ghiaseddin](https://github.com/Silver-Connection/DefinitelyTyped), [Omid Rad](https://github.com/omidkrad), [Armin Sander](https://github.com/pragmatrix) +* [:link:](datatables-buttons/datatables-buttons.d.ts) [JQuery DataTables Buttons extension](http://datatables.net/extensions/buttons) by [Sam Germano](https://github.com/SammyG4Free) * [:link:](jquery.fileupload/jquery.fileupload.d.ts) [jQuery File Upload Plugin](https://github.com/blueimp/jQuery-File-Upload) by [Rob Alarcon](https://github.com/rob-alarcon) * [:link:](jquery.joyride/jquery.joyride.d.ts) [jQuery JoyRide Plugin](https://github.com/zurb/joyride) by [Vincent Bortone](https://github.com/vbortone) * [:link:](jqgrid/jqgrid.d.ts) [jQuery jqgrid Plugin](https://github.com/tonytomov/jqGrid) by [Lokesh Peta](https://github.com/lokeshpeta) * [:link:](jquery-knob/jquery-knob.d.ts) [jQuery Knob](http://anthonyterrien.com/knob) by [Iain Buchanan](https://github.com/iain8) * [:link:](jquery.mmenu/jquery.mmenu.d.ts) [jQuery mmenu](http://mmenu.frebsite.nl) by [John Gouigouix](https://github.com/orchestra-ts/DefinitelyTyped) * [:link:](jquerymobile/jquerymobile.d.ts) [jQuery Mobile](http://jquerymobile.com) by [Boris Yankov](https://github.com/borisyankov) +* [:link:](jquery-mockjax/jquery-mockjax.d.ts) [jQuery Mockjax](https://github.com/jakerella/jquery-mockjax) by [Laszlo Jakab](https://github.com/laszlojakab), [Vladimir Đokić](https://github.com/vladeck) * [:link:](jquery.notifyBar/jquery.notifyBar.d.ts) [jQuery Notify Bar](http://www.whoop.ee/posts/2013-04-05-the-resurrection-of-jquery-notify-bar) by [Shunsuke Ohtani](https://github.com/zaneli) * [:link:](jquery.base64/jquery.base64.d.ts) [jQuery Plugin - base64 codec](https://github.com/yatt/jquery.base64) by [Shinya Mochizuki](https://github.com/enrapt-mochizuki) * [:link:](jquery.postMessage/jquery.postMessage.d.ts) [jQuery postMessage](http://benalman.com/projects/jquery-postmessage-plugin) by [Junle Li](https://github.com/lijunle) @@ -700,9 +803,11 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jquery.tinyscrollbar/jquery.tinyscrollbar.d.ts) [jQuery tinyscrollbar](http://baijs.nl/tinyscrollbar) by [Christiaan Rakowski](https://github.com/csrakowski) * [:link:](jquery.tooltipster/jquery.tooltipster.d.ts) [jQuery Tooltipster](https://github.com/iamceege/tooltipster) by [Patrick Magee](https://github.com/pjmagee) * [:link:](jquery.ui.datetimepicker/jquery.ui.datetimepicker.d.ts) [jQuery UI DateTimePicker](http://trentrichardson.com/examples/timepicker) by [dougajmcdonald](https://github.com/dougajmcdonald) -* [:link:](jquery.ui.layout/jquery.ui.layout.d.ts) [jQuery UI Layout Plug-in](http://layout.jquery-dev.net) by [Steve Fenton](https://github.com/Steve-Fenton) +* [:link:](jquery.ui.layout/jquery.ui.layout.d.ts) [jQuery UI Layout Plug-in](http://layout.jquery-dev.net) by [Steve Fenton](https://github.com/Steve-Fenton), [Douglas Armstrong](https://github.com/drarmstr) * [:link:](jquery.timepicker/jquery.timepicker.d.ts) [jQuery UI Timepicker](http://fgelinas.com/code/timepicker) by [Anwar Javed](https://github.com/anwarjaved) * [:link:](jquery-ajax-chain/jquery-ajax-chain.d.ts) [jquery-ajax-chain v](https://github.com/humana-fragilitas/jQuery-Ajax-Chain) by [Andrea Blasio](https://github.com/humana-fragilitas) +* [:link:](bootpag/bootpag.d.ts) [jQuery-Bootpag](http://botmonster.com/jquery-bootpag) by [MAF.DAP / Romain Deneau](https://github.com/rdeneau) +* [:link:](jquery-easy-loading/jquery-easy-loading.d.ts) [jquery-easy-loading](http://carlosbonetti.github.io/jquery-loading) by [delphinus](https://github.com/delphinus35) * [:link:](jquery-fullscreen/jquery-fullscreen.d.ts) [jquery-fullscreen](https://github.com/kayahr/jquery-fullscreen-plugin) by [Bruno Grieder](https://github.com/bgrieder) * [:link:](jquery-handsontable/jquery-handsontable.d.ts) [jquery-handsontable](http://handsontable.com) by [Ted John](https://github.com/intelorca) * [:link:](jquery.menuaim/jquery.menuaim.d.ts) [jQuery-menu-aim](https://github.com/kamens/jQuery-menu-aim) by [Robert Fonseca-Ensor](http://www.robfe.com) @@ -720,6 +825,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jquery.customSelect/jquery.customSelect.d.ts) [jquery.customSelect.js](http://adam.co/lab/jquery/customselect/) by [adamcoulombe](https://github.com/adamcoulombe) * [:link:](jquery.cycle/jquery.cycle.d.ts) [jQuery.cycle.js](http://jquery.malsup.com/cycle) by [François Guillot](http://fguillot.developpez.com) * [:link:](jquery.dropotron/jquery.dropotron.d.ts) [jquery.dropotron](https://github.com/n33/jquery.dropotron) by [Cyril Schumacher](https://github.com/cyrilschumacher) +* [:link:](dynatable/dynatable.d.ts) [jquery.dynatable](http://www.dynatable.com) by [François Massart](https://github.com/francoismassart) * [:link:](jquery.dynatree/jquery.dynatree.d.ts) [jquery.dynatree](http://code.google.com/p/dynatree) by [François de Campredon](https://github.com/fdecampredon) * [:link:](jquery.fancytree/jquery.fancytree.d.ts) [jquery.fancytree](https://github.com/mar10/fancytree) by [Peter Palotas](https://github.com/alphaleonis) * [:link:](jquery.finger/jquery.finger.d.ts) [jquery.finger.js](http://ngryman.sh/jquery.finger) by [Max Ackley](https://github.com/maxackley) @@ -753,15 +859,16 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jquery.total-storage/jquery.total-storage.d.ts) [jQueryTotalStorage](https://github.com/Upstatement/jquery-total-storage) by [Jeremy Brooks](https://github.com/JeremyCBrooks) * [:link:](jqueryui/jqueryui.d.ts) [jQueryUI](http://jqueryui.com) by [Boris Yankov](https://github.com/borisyankov), [John Reilly](https://github.com/johnnyreilly) * [:link:](js-beautify/js-beautify.d.ts) [js_beautify](https://github.com/beautify-web/js-beautify) by [Josh Goldberg](https://github.com/JoshuaKGoldberg) +* [:link:](js-clipper/js-clipper.d.ts) [js-clipper](https://github.com/mathisonian/JsClipper) by [Hou Chunlei](https://github.com/omni360) * [:link:](js-combinatorics/js-combinatorics.d.ts) [js-combinatorics](https://github.com/dankogai/js-combinatorics) by [Vasya Aksyonov](https://github.com/outring) * [:link:](js-combinatorics/js-combinatorics-global.d.ts) [js-combinatorics (global)](https://github.com/dankogai/js-combinatorics) by [Vasya Aksyonov](https://github.com/outring) -* [:link:](ua-parser-js/ua-parser-js.d.ts) [js-cookie](https://github.com/faisalman/ua-parser-js) by [Viktor Miroshnikov](https://github.com/superduper) * [:link:](js-cookie/js-cookie.d.ts) [js-cookie](https://github.com/js-cookie/js-cookie) by [Theodore Brown](https://github.com/theodorejb) * [:link:](js-fixtures/fixtures.d.ts) [js-fixtures](https://github.com/badunk/js-fixtures) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid) * [:link:](js-git/js-git.d.ts) [js-git](https://github.com/creationix/js-git) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](js-md5/md5.d.ts) [js-md5](https://github.com/emn178/js-md5) by [Roland Greim](https://github.com/tigerxy) +* [:link:](js-schema/js-schema.d.ts) [js-schema](https://github.com/molnarg/js-schema) by [Marcin Porebski](https://github.com/marcinporebski) * [:link:](js-signals/js-signals.d.ts) [JS-Signals](http://millermedeiros.github.io/js-signals) by [Diullei Gomes](https://github.com/diullei) -* [:link:](js-yaml/js-yaml.d.ts) [js-yaml](https://github.com/nodeca/js-yaml) by [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](js-yaml/js-yaml.d.ts) [js-yaml](https://github.com/nodeca/js-yaml) by [Bart van der Schoor](https://github.com/Bartvds), [Sebastian Clausen](https://github.com/sclausen) * [:link:](blocks/blocks.d.ts) [jsblocks](http://jsblocks.com) by [Krzysztof Śmigiel](https://github.com/ksmigiel) * [:link:](jsbn/jsbn.d.ts) [jsbn](http://www-cs-students.stanford.edu/%7Etjw/jsbn) by [Eugene Chernyshov](https://github.com/Evgenus) * [:link:](jscrollpane/jscrollpane.d.ts) [jScrollPane](http://jscrollpane.kelvinluck.com) by [Dániel Tar](https://github.com/qcz) @@ -770,11 +877,13 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](js-data-angular/js-data-angular.d.ts) [JSDataAngular](https://github.com/js-data/js-data-angular) by [Stefan Steinhart](https://github.com/reppners) * [:link:](jsdeferred/jsdeferred.d.ts) [JSDeferred](https://github.com/cho45/jsdeferred) by [Daisuke Mino](https://github.com/minodisk) * [:link:](jsdom/jsdom.d.ts) [jsdom](https://github.com/tmpvar/jsdom) by [Asana](https://asana.com) +* [:link:](jsend/jsend.d.ts) [jsend](https://github.com/Prestaul/jsend) by [Federico Caselli](https://github.com/CaselIT) * [:link:](jsesc/jsesc.d.ts) [jsesc](https://github.com/mathiasbynens/jsesc) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](jsfl/jsfl.d.ts) [JSFL](https://adobe.com) by [soywiz](https://github.com/soywiz) * [:link:](jshamcrest/jshamcrest.d.ts) [JsHamcrest](https://github.com/danielfm/jshamcrest) by [David Harkness](https://github.com/dharkness) * [:link:](hashset/hashset.d.ts) [jshashset](http://www.timdown.co.uk/jshashtable/jshashset.html) by [Sergey Gerasimov](https://github.com/gerich-home) * [:link:](hashtable/hashtable.d.ts) [jshashtable](http://www.timdown.co.uk/jshashtable) by [Sergey Gerasimov](https://github.com/gerich-home) +* [:link:](jsmockito/jsmockito.d.ts) [JsMockito](http://github.com/chrisleishman/jsmockito) by [Karl Bennett](https://github.com/shiver-me-timbers) * [:link:](jsnlog/jsnlog.d.ts) [JSNLog](https://github.com/mperdeck/jsnlog.js) by [Mattijs Perdeck](https://github.com/mperdeck) * [:link:](jsnox/jsnox.d.ts) [JSnoX](https://github.com/af/jsnox) by [Steve Baker](https://github.com/stkb) * [:link:](json-patch/json-patch.d.ts) [json-patch](https://github.com/bruth/jsonpatch-js) by [vvakame](https://github.com/vvakame) @@ -784,9 +893,11 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jsoneditoronline/jsoneditoronline.d.ts) [JSONEditorOnline](https://github.com/josdejong/jsoneditoronline) by [Vincent Bortone](https://github.com/vbortone) * [:link:](jsonpath/jsonpath.d.ts) [jsonpath](https://www.npmjs.org/package/jsonpath) by [Hiroki Horiuchi](https://github.com/horiuchi) * [:link:](JSONStream/JSONStream.d.ts) [JSONStream](http://github.com/dominictarr/JSONStream) by [Bart van der Schoor](https://github.com/Bartvds) -* [:link:](jsonwebtoken/jsonwebtoken.d.ts) [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) by [Maxime LUCE](https://github.com/SomaticIT) +* [:link:](jsonwebtoken/jsonwebtoken.d.ts) [jsonwebtoken](https://github.com/auth0/node-jsonwebtoken) by [Maxime LUCE](https://github.com/SomaticIT), [Daniel Heim](https://github.com/danielheim) +* [:link:](jspdf/jspdf.d.ts) [jsPDF](https://github.com/MrRio/jsPDF) by [Amber Schühmacher](https://github.com/amberjs) * [:link:](jsplumb/jquery.jsPlumb.d.ts) [jsPlumb 1.3.16 jQuery adapter](http://jsplumb.org) by [Steve Shearn](https://github.com/shearnie) * [:link:](jsrender/jsrender.d.ts) [JsRender](http://www.jsviews.com/#jsrender) by [Kensuke Matsuzaki](https://github.com/zakki) +* [:link:](jss/jss.d.ts) [jss](https://github.com/Box9/jss) by [Valentin Robert](https://github.com/Ptival) * [:link:](jssha/jssha.d.ts) [jsSHA](https://github.com/Caligatio/jsSHA) by [David Li](https://github.com/randombk), [Tobias Kahlert](https://github.com/SrTobi) * [:link:](jstorage/jstorage.d.ts) [jStorage](http://www.jstorage.info) by [Danil Flores](https://github.com/dflor003) * [:link:](jstree/jstree.d.ts) [jsTree](http://www.jstree.com) by [Adam Pluciński](https://github.com/adaskothebeast) @@ -805,7 +916,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](katex/katex.d.ts) [KaTeX v.0.5.0](http://khan.github.io/KaTeX) by [Michael Randolph](https://github.com/mrand01) * [:link:](kefir/kefir.d.ts) [Kefir](http://rpominov.github.io/kefir) by [Aya Morisawa](https://github.com/AyaMorisawa) * [:link:](kendo-ui/kendo-ui.d.ts) [Kendo UI Professional](http://www.telerik.com/kendo-ui) by [Telerik](https://github.com/telerik) -* [:link:](keyboardjs/keyboardjs.d.ts) [KeyboardJS](https://github.com/RobertWHurst/KeyboardJS) by [Vincent Bortone](https://github.com/vbortone) +* [:link:](keyboardjs/keyboardjs.d.ts) [KeyboardJS](https://github.com/RobertWHurst/KeyboardJS) by [Vincent Bortone](https://github.com/vbortone), [David Asmuth](https://github.com/piranha771) * [:link:](keymaster/keymaster.d.ts) [keymaster](https://github.com/madrobby/keymaster) by [Martin W. Kirst](https://github.com/nitram509) * [:link:](keypress/keypress.d.ts) [Keypress](https://github.com/dmauro/Keypress) by [Roger Chen](https://github.com/rcchen) * [:link:](keytar/keytar.d.ts) [keytar](http://atom.github.io/node-keytar) by [Milan Burda](https://github.com/miniak) @@ -815,6 +926,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](knockback/knockback.d.ts) [Knockback.js](http://kmalakoff.github.io/knockback) by [Boris Yankov](https://github.com/borisyankov) * [:link:](knockout/knockout.d.ts) [Knockout](http://knockoutjs.com) by [Boris Yankov](https://github.com/borisyankov), [Igor Oleinikov](https://github.com/Igorbek), [Clément Bourgeois](https://github.com/moonpyk) * [:link:](knockout.deferred.updates/knockout.deferred.updates.d.ts) [Knockout Deferred Updates](https://github.com/mbest/knockout-deferred-updates) by [Sebastián Galiano](https://github.com/sgaliano) +* [:link:](knockout/tests/jasmine.extensions.d.ts) [Knockout specs](http://knockoutjs.com) by [Boris Yankov](https://github.com/borisyankov), [Igor Oleinikov](https://github.com/Igorbek), [Clément Bourgeois](https://github.com/moonpyk) * [:link:](knockout.validation/knockout.validation.d.ts) [Knockout Validation](https://github.com/ericmbarnard/Knockout-Validation) by [Dan Ludwig](https://github.com/danludwig) * [:link:](knockout.viewmodel/knockout.viewmodel.d.ts) [Knockout Viewmodel](http://coderenaissance.github.com/knockout.viewmodel) by [Oisin Grehan](https://github.com/oising) * [:link:](knockout.amd.helpers/knockout-amd-helpers.d.ts) [knockout-amd-helpers](https://github.com/rniemeyer/knockout-amd-helpers) by [David Sichau](https://github.com/DavidSichau) @@ -833,16 +945,29 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](knockstrap/knockstrap.d.ts) [Knockstrap](http://faulknercs.github.io/Knockstrap) by [Adam Pluciński](https://github.com/adaskothebeast) * [:link:](knockout.kogrid/ko-grid.d.ts) [ko-grid](http://knockout-contrib.github.io/KoGrid) by [huer12](https://github.com/huer12) * [:link:](ko.plus/ko.plus.d.ts) [ko.plus](https://github.com/stevegreatrex/ko.plus) by [Howard Richards](https://github.com/conficient) +* [:link:](koa-compose/koa-compose.d.ts) [koa](https://github.com/koajs/compose) by [jKey Lu](https://github.com/jkeylu) +* [:link:](koa/koa.d.ts) [Koa 2.x](http://koajs.com) by [DavidCai1993](https://github.com/DavidCai1993) +* [:link:](koa-router/koa-router.d.ts) [koa-router v7.x](https://github.com/alexmingoia/koa-router) by [Jerry Chin](https://github.com/hellopao) +* [:link:](kolite/knockout.dirtyFlag.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov) +* [:link:](kolite/knockout.command.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov) +* [:link:](kolite/knockout.activity.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov) * [:link:](kolite/kolite.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov) +* [:link:](konami.js/konami.d.ts) [Konami-js](https://github.com/snaptortoise/konami-js) by [Matthieu Mourisson](https://github.com/mareek) * [:link:](kue/kue.d.ts) [kue 0.9.x](https://github.com/Automattic/kue) by [Nicholas Penree](http://github.com/drudge) * [:link:](kuromoji/kuromoji.d.ts) [kuromoji.js](https://github.com/takuyaa/kuromoji.js) by [MIZUSHIMA Junki](https://github.com/mzsm) * [:link:](ladda/ladda.d.ts) [Ladda](https://github.com/hakimel/Ladda) by [Danil Flores](https://github.com/dflor003), [Michael Lee](https://github.com/leemicw) +* [:link:](lls/lls.d.ts) [LargeLocalStorage](https://github.com/tantaman/LargeLocalStorage) by [Borislav Zhivkov](https://github.com/borislavjivkov) * [:link:](later/later.d.ts) [LaterJS](http://bunkat.github.io/later) by [Jason D Dryhurst-Smith](http://jasonds.co.uk) * [:link:](lazy.js/lazy.js.d.ts) [Lazy.js](https://github.com/dtao/lazy.js) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](lazypipe/lazypipe.d.ts) [lazypipe](https://github.com/OverZealous/lazypipe) by [Thomas Corbière](https://github.com/tomc974) +* [:link:](leaflet-curve/leaflet-curve.d.ts) [leaflet-curve](https://github.com/onikiienko/Leaflet.curve) by [Onikiienko](https://github.com/onikiienko) +* [:link:](leaflet-draw/leaflet-draw.d.ts) [leaflet-draw](https://github.com/Leaflet/Leaflet.draw) by [Matt Guest](https://github.com/matt-guest) +* [:link:](leaflet.awesome-markers/leaflet.awesome-markers.d.ts) [Leaflet.awesome-markers plugin](https://github.com/lvoogdt/Leaflet.awesome-markers) by [Egor Komarov](https://github.com/Odrin) * [:link:](leaflet-editable/leaflet-editable.d.ts) [Leaflet.Editable](https://github.com/yohanboniface/Leaflet.Editable) by [Dominic Alie](https://github.com/dalie) +* [:link:](leaflet.fullscreen/leaflet.fullscreen.d.ts) [Leaflet.fullscreen](https://github.com/brunob/leaflet.fullscreen) by [William Comartin](https://github.com/wcomartin) * [:link:](leaflet/leaflet.d.ts) [Leaflet.js](https://github.com/Leaflet/Leaflet) by [Vladimir Zotov](https://github.com/rgripper) * [:link:](leaflet-label/leaflet-label.d.ts) [Leaflet.label](https://github.com/Leaflet/Leaflet.label) by [Wim Looman](https://github.com/Nemo157) +* [:link:](leaflet-markercluster/leaflet-markercluster.d.ts) [Leaflet.markercluster](https://github.com/Leaflet/Leaflet.markercluster) by [Robert Imig](https://github.com/rimig) * [:link:](jquery.leanModal/jquery.leanModal.d.ts) [leanModal.js](http://leanmodal.finelysliced.com.au) by [FinelySliced](https://github.com/FinelySliced) * [:link:](leapmotionTS/LeapMotionTS.d.ts) [Leap Motion TS](https://github.com/logotype/LeapMotionTS) by [Victor Norgren](https://github.com/logotype) * [:link:](less/less.d.ts) [LESS](http://lesscss.org) by [Tom Hasner](https://github.com/thasner) @@ -894,30 +1019,34 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](maquette/maquette.d.ts) [maquette](http://maquettejs.org) by [Johan Gorter](https://github.com/johan-gorter) * [:link:](mariasql/mariasql.d.ts) [mariasql](https://github.com/mscdex/node-mariasql) by [MichaelBennett](https://github.com/bennett000) * [:link:](marionette/marionette.d.ts) [Marionette](https://github.com/marionettejs) by [Zeeshan Hamid](https://github.com/zhamid), [Natan Vivo](https://github.com/nvivo), [Sven Tschui](https://github.com/sventschui) -* [:link:](marked/marked.d.ts) [Marked](https://github.com/chjj/marked) by [William Orr](https://github.com/worr) * [:link:](ngwysiwyg/ngwysiwyg.d.ts) [Marked](https://github.com/psergus/ngWYSIWYG) by [Patrick Mac Kay](https://github.com/patrick-mackay) +* [:link:](marked/marked.d.ts) [Marked](https://github.com/chjj/marked) by [William Orr](https://github.com/worr) * [:link:](markerclustererplus/markerclustererplus.d.ts) [MarkerClustererPlus for Google Maps V3](http://github.com/mahnunchik/markerclustererplus) by [Mathias Rodriguez](http://github.com/enanox) * [:link:](markitup/markitup.d.ts) [markitup 1.x](https://github.com/markitup/1.x) by [drillbits](https://github.com/drillbits) * [:link:](maskedinput/maskedinput.d.ts) [Masked Input plugin for jQuery](http://digitalbush.com/projects/masked-input-plugin) by [Lokesh Peta](https://github.com/lokeshpeta) * [:link:](material-ui/material-ui.d.ts) [material-ui](https://github.com/callemall/material-ui) by [Nathan Brown](https://github.com/ngbrown), [Oliver Herrmann](https://github.com/herrmanno) +* [:link:](materialize-css/materialize-css.d.ts) [materialize-css](http://materializecss.com) by [Erik Lieben](https://github.com/eriklieben), [Leon Yu](https://github.com/leonyu) * [:link:](mathjax/mathjax.d.ts) [MathJax](https://github.com/mathjax/MathJax) by [Roland Zwaga](https://github.com/rolandzwaga) * [:link:](mathjs/mathjs.d.ts) [mathjs](http://mathjs.org) by [Ilya Shestakov](https://github.com/siavol) -* [:link:](matter-js/matter-js.d.ts) [Matter.js](https://github.com/liabru/matter-js) by [Ivane Gegia](https://twitter.com/ivanegegia) +* [:link:](matter-js/matter-js.d.ts) [Matter.js -](https://github.com/liabru/matter-js) by [Ivane Gegia](https://twitter.com/ivanegegia), [David Asmuth](https://github.com/piranha771) * [:link:](mCustomScrollbar/mCustomScrollbar.d.ts) [mCustomScrollbar](https://github.com/malihu/malihu-custom-scrollbar-plugin) by [Sarah Williams](https://github.com/flurg) * [:link:](memory-cache/memory-cache.d.ts) [memory-cache](http://github.com/ptarjan/node-cache) by [Jeff Goddard](https://github.com/jedigo) * [:link:](mendixmodelsdk/mendixmodelsdk.d.ts) [mendixmodelsdk](http://www.mendix.com) by [Mendix](https://github.com/mendix) * [:link:](merge-descriptors/merge-descriptors.d.ts) [merge-descriptors](https://github.com/component/merge-descriptors) by [Zhiyuan Wang](https://github.com/danny8002) -* [:link:](merge-stream/merge-stream.d.ts) [merge-stream](https://github.com/grncdr/merge-stream) by [Keita Kagurazaka](https://github.com/k-kagurazaka) +* [:link:](merge-stream/merge-stream.d.ts) [merge-stream](https://github.com/grncdr/merge-stream) by [Keita Kagurazaka](https://github.com/k-kagurazaka), [Tom X. Tobin](http://tomxtobin.com) * [:link:](merge2/merge2.d.ts) [merge2](https://github.com/teambition/merge2) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](meshblu/meshblu.d.ts) [meshblu.js](https://github.com/octoblu/meshblu-npm) by [Felipe Nipo](https://github.com/fnipo) * [:link:](mess/mess.d.ts) [mess](https://github.com/bobrik/node-mess) by [Wim Looman](https://github.com/Nemo157) * [:link:](messenger/messenger.d.ts) [Messenger.js](https://github.com/HubSpot/messenger) by [Derek Cicerone](https://github.com/derekcicerone) * [:link:](meteor/meteor.d.ts) [Meteor](http://www.meteor.com) by [Dave Allen](https://github.com/fullflavedave) +* [:link:](meteor-roles/meteor-roles.d.ts) [Meteor Roles](https://github.com/alanning/meteor-roles) by [Robbie Van Gorkom](https://github.com/vangorra) +* [:link:](meteor-publish-composite/meteor-publish-composite.d.ts) [meteor-publish-composite](https://github.com/englue/meteor-publish-composite) by [Robert Van Gorkom](https://github.com/vangorra) * [:link:](node-mysql-wrapper/my-meteor.d.ts) [meteorjs for node-mysql-wrapper which helps in development](https://github.com/nodets/node-mysql-wrapper) by [Makis Maropoulos](https://github.com/kataras) * [:link:](method-override/method-override.d.ts) [method-override](https://github.com/expressjs/method-override) by [Santi Albo](https://github.com/santialbo) * [:link:](metismenu/metismenu.d.ts) [metisMenu](http://github.com/onokumus/metisMenu) by [onokums](https://github.com/onokumus) +* [:link:](micromatch/micromatch.d.ts) [micromatch](https://github.com/jonschlinkert/micromatch) by [glen-84](https://github.com/glen-84) * [:link:](microsoft-ajax/microsoft.ajax.d.ts) [Microsoft ASP.NET Ajax client side library](http://msdn.microsoft.com/en-us/library/ee341002(v=vs.100).aspx) by [Patrick Magee](https://github.com/pjmagee) -* [:link:](xrm/xrm.d.ts) [Microsoft Dynamics xRM API](http://www.microsoft.com/en-us/download/details.aspx?id=44567) by [David Berry](https://github.com/6ix4our), [Matt Ngan](https://github.com/mattngan) +* [:link:](xrm/xrm.d.ts) [Microsoft Dynamics xRM API](http://www.microsoft.com/en-us/download/details.aspx?id=44567) by [David Berry](https://github.com/6ix4our), [Matt Ngan](https://github.com/mattngan), [Markus Mauch](https://github.com/markusmauch) * [:link:](xrm/xrm-6.d.ts) [Microsoft Dynamics xRM API v6](http://msdn.microsoft.com/en-us/library/gg328255.aspx) by [David Berry](https://github.com/6ix4our) * [:link:](jquery-validation-unobtrusive/jquery-validation-unobtrusive.d.ts) [Microsoft jQuery Unobtrusive Validation](http://aspnetwebstack.codeplex.com) by [Matt Brooks](https://github.com/EnableSoftware) * [:link:](microsoft-live-connect/microsoft-live-connect.d.ts) [Microsoft Live Connect](http://msdn.microsoft.com/en-us/library/live/hh243643.aspx) by [John Vilk](https://github.com/jvilk) @@ -943,19 +1072,19 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](mkpath/mkpath.d.ts) [mkpath](https://www.npmjs.com/package/mkpath) by [Jared Klopper](https://github.com/optical) * [:link:](mmmagic/mmmagic.d.ts) [mmmagic](https://github.com/mscdex/mmmagic) by [Andrei Sebastian Cîmpean](http://andreime.com) * [:link:](mobile-detect/mobile-detect.d.ts) [mobile-detect](http://hgoebl.github.io/mobile-detect.js) by [Martin McWhorter](https://github.com/martinmcwhorter) -* [:link:](mobservable/mobservable.d.ts) [mobservable](https://mweststrate.github.io/mobservable) by [Michel Weststrate](https://github.com/mweststrate) * [:link:](mobservable-react/mobservable-react.d.ts) [mobservable](https://github.com/mweststrate/mobservable-react) by [Michel Weststrate](https://github.com/mweststrate) -* [:link:](mocha/mocha.d.ts) [mocha](http://mochajs.org) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid), [otiai10](https://github.com/otiai10), [jt000](https://github.com/jt000), [Vadim Macagon](https://github.com/enlight) +* [:link:](mobservable/mobservable.d.ts) [mobservable](https://mweststrate.github.io/mobservable) by [Michel Weststrate](https://github.com/mweststrate) * [:link:](mocha/mocha-node.d.ts) [mocha](http://mochajs.org) by [Vadim Macagon](https://github.com/enlight), [vvakame](https://github.com/vvakame) +* [:link:](mocha/mocha.d.ts) [mocha](http://mochajs.org) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid), [otiai10](https://github.com/otiai10), [jt000](https://github.com/jt000), [Vadim Macagon](https://github.com/enlight) * [:link:](mocha-phantomjs/mocha-phantomjs.d.ts) [mocha-phantomjs](http://metaskills.net/mocha-phantomjs) by [Erik Schierboom](https://github.com/ErikSchierboom) -* [:link:](mock-fs/mock-fs.d.ts) [mock-fs](https://github.com/tschaub/mock-fs) by [Wim Looman](https://github.com/Nemo157) +* [:link:](mock-fs/mock-fs.d.ts) [mock-fs](https://github.com/tschaub/mock-fs) by [Wim Looman](https://github.com/Nemo157), [Qubo](https://github.com/tkqubo) * [:link:](mockery/mockery.d.ts) [mockery](https://github.com/mfncooper/mockery) by [jt000](https://github.com/jt000) * [:link:](modernizr/modernizr.d.ts) [Modernizr](http://modernizr.com) by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb), [Leon Yu](https://github.com/leonyu) * [:link:](moment-timezone/moment-timezone.d.ts) [moment-timezone.js](http://momentjs.com/timezone) by [Michel Salib](https://github.com/michelsalib) * [:link:](moment-range/moment-range.d.ts) [Moment.js](https://github.com/gf3/moment-range) by [Bart van den Burg](https://github.com/Burgov), [Wilgert Velinga](https://github.com/wilgert) -* [:link:](moment/moment-node.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya), [Matt Brooks](https://github.com/EnableSoftware) * [:link:](moment/moment.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya), [Matt Brooks](https://github.com/EnableSoftware) -* [:link:](mongodb/mongodb.d.ts) [MongoDB](https://github.com/mongodb/node-mongodb-native) by [Boris Yankov](https://github.com/borisyankov) +* [:link:](moment/moment-node.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya), [Matt Brooks](https://github.com/EnableSoftware), [Gal Talmor](https://github.com/galtalmor) +* [:link:](mongodb/mongodb.d.ts) [MongoDB](https://github.com/mongodb/node-mongodb-native/tree/2.1) by [Federico Caselli](https://github.com/CaselIT) * [:link:](mongoose/mongoose.d.ts) [Mongoose](http://mongoosejs.com) by [horiuchi](https://github.com/horiuchi) * [:link:](mongoose-auto-increment/mongoose-auto-increment.d.ts) [mongoose-auto-increment](https://github.com/codetunnel/mongoose-auto-increment) by [Aya Morisawa](https://github.com/AyaMorisawa) * [:link:](mongoose-deep-populate/mongoose-deep-populate.d.ts) [mongoose-deep-populate](https://github.com/buunguyen/mongoose-deep-populate) by [Aya Morisawa](https://github.com/AyaMorisawa) @@ -967,6 +1096,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](firefox/firefox.d.ts) [Mozilla Web API](https://developer.mozilla.org/en-US/docs/Web/API) by [vvakame](https://github.com/vvakame) * [:link:](localForage/localForage.d.ts) [Mozilla's localForage](https://github.com/mozilla/localforage) by [yuichi david pichsenmeister](https://github.com/3x14159265) * [:link:](mpromise/mpromise.d.ts) [mpromise](https://github.com/aheckmann/mpromise) by [Seulgi Kim](https://github.com/sgkim126) +* [:link:](mqtt/mqtt.d.ts) [MQTT](https://github.com/mqttjs/MQTT.js) by [Pekka Leppänen](https://github.com/PekkaPLeppanen) * [:link:](ms/ms.d.ts) [ms](https://github.com/guille/ms.js) by [Zhiyuan Wang](https://github.com/danny8002) * [:link:](msgpack/msgpack.d.ts) [msgpack.js - MessagePack JavaScript Implementation](https://github.com/uupaa/msgpack.js) by [Shinya Mochizuki](https://github.com/enrapt-mochizuki) * [:link:](msnodesql/msnodesql.d.ts) [msnodesql](https://github.com/WindowsAzure/node-sqlserver) by [Boris Yankov](https://github.com/borisyankov), [Maxime LUCE](https://github.com/SomaticIT) @@ -976,6 +1106,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](multer/multer.d.ts) [multer](https://github.com/expressjs/multer) by [jt000](https://github.com/jt000), [vilicvane](https://vilic.github.io), [David Broder-Rodgers](https://github.com/DavidBR-SW) * [:link:](multiplexjs/multiplexjs.d.ts) [Multiplex.js](http://github.com/multiplex/multiplex.js) by [Kamyar Nazeri](http://github.com/KamyarNazeri) * [:link:](mustache/mustache.d.ts) [Mustache](https://github.com/janl/mustache.js) by [Mark Ashley Bell](https://github.com/markashleybell) +* [:link:](mz/mz.d.ts) [mz](https://github.com/normalize/mz) by [Thomas Hickman](https://github.com/ThomasHickman) +* [:link:](nanoajax/nanoajax.d.ts) [nanoajax](https://github.com/yanatan16/nanoajax) by [Nathan Cahill](https://github.com/nathancahill) * [:link:](natural/natural.d.ts) [Natural](https://github.com/NaturalNode/natural) by [Dylan R. E. Moonfire](https://github.com/dmoonfire) * [:link:](navigation/navigation.d.ts) [Navigation](http://grahammendick.github.io/navigation) by [Graham Mendick](https://github.com/grahammendick) * [:link:](nconf/nconf.d.ts) [nconf](https://github.com/flatiron/nconf) by [Jeff Goddard](https://github.com/jedigo), [Jean-Martin Thibault](https://github.com/jmthibault) @@ -989,12 +1121,13 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](ng-grid/ng-grid.d.ts) [ng-grid](http://angular-ui.github.io/ng-grid) by [Ken Smith](https://github.com/smithkl42), [Roland Zwaga](https://github.com/rolandzwaga), [Kent Cooper](https://github.com/kentcooper) * [:link:](angular-idle/angular-idle.d.ts) [ng-idle](http://hackedbychinese.github.io/ng-idle) by [mthamil](https://github.com/mthamil) * [:link:](ng-notify/ng-notify.d.ts) [ng-notify](https://github.com/matowens/ng-notify) by [Nick Zamosenchuk](https://github.com/nzamosenchuk) +* [:link:](ng-table/ng-table.d.ts) [ng-table](https://github.com/esvit/ng-table) by [Christian Crowhurst](https://github.com/christianacca) * [:link:](ngbootbox/ngbootbox.d.ts) [ngbootbox](https://github.com/eriktufvesson/ngBootbox) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](ng-cordova/actionSheet.d.ts) [ngCordova Action Sheet plugin](https://github.com/driftyco/ng-cordova) by [Phil McCloghry-Laing](https://github.com/pmccloghrylaing) * [:link:](ng-cordova/appAvailability.d.ts) [ngCordova AppAvailability plugin](https://github.com/driftyco/ng-cordova) by [Kapil Sachdeva](https://github.com/ksachdeva) * [:link:](ng-cordova/badge.d.ts) [ngCordova badge plugin](https://github.com/driftyco/ng-cordova) by [Phil McCloghry-Laing](https://github.com/pmccloghrylaing) -* [:link:](ng-cordova/app-version.d.ts) [ngCordova datepicker plugin](https://github.com/driftyco/ng-cordova) by [Jacques Kang](https://www.linkedin.com/in/jacqueskang) * [:link:](ng-cordova/datepicker.d.ts) [ngCordova datepicker plugin](https://github.com/VitaliiBlagodir/cordova-plugin-datepicker) by [Jacques Kang](https://www.linkedin.com/in/jacqueskang) +* [:link:](ng-cordova/app-version.d.ts) [ngCordova datepicker plugin](https://github.com/driftyco/ng-cordova) by [Jacques Kang](https://www.linkedin.com/in/jacqueskang) * [:link:](ng-cordova/deviceMotion.d.ts) [ngCordova device motion plugin](https://github.com/driftyco/ng-cordova) by [Michel Vidailhet](https://github.com/mvidailhet), [Kapil Sachdeva](https://github.com/ksachdeva) * [:link:](ng-cordova/deviceOrientation.d.ts) [ngCordova device orientation plugin](https://github.com/driftyco/ng-cordova) by [Michel Vidailhet](https://github.com/mvidailhet), [Kapil Sachdeva](https://github.com/ksachdeva) * [:link:](ng-cordova/device.d.ts) [ngCordova device plugin](https://github.com/driftyco/ng-cordova) by [Kapil Sachdeva](https://github.com/ksachdeva) @@ -1012,16 +1145,19 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](ngprogress/ngprogress.d.ts) [ngProgress](http://victorbjelkholm.github.io/ngProgress) by [Martin McWhorter](https://github.com/martinmcwhorter) * [:link:](ngprogress-lite/ngprogress-lite.d.ts) [ngprogress-lite](https://github.com/voronianski/ngprogress-lite) by [Luke Forder](https://github.com/LukeForder) * [:link:](ng-stomp/ng-stomp.d.ts) [ngStomp](https://github.com/beevelop/ng-stomp) by [Lukasz Potapczuk](https://github.com/lpotapczuk) +* [:link:](ngstorage/ngstorage.d.ts) [ngstorage](https://github.com/gsklee/ngStorage) by [Jakub Pistek](https://github.com/kubiq) * [:link:](nightmare/nightmare.d.ts) [Nightmare](https://github.com/segmentio/nightmare) by [horiuchi](https://github.com/horiuchi) * [:link:](noble/noble.d.ts) [noble](https://github.com/sandeepmistry/noble) by [Seon-Wook Park](https://github.com/swook) * [:link:](nock/nock.d.ts) [nock](https://github.com/pgte/nock) by [bonnici](https://github.com/bonnici) * [:link:](node-imap/imap.d.ts) [node imap](https://github.com/mscdex/node-imap) by [Steve Fenton](https://github.com/Steve-Fenton) +* [:link:](oauth2-server/oauth2-server.d.ts) [Node OAuth2 Server](https://github.com/thomseddon/node-oauth2-server) by [Robbie Van Gorkom](https://github.com/vangorra) * [:link:](node-sass/node-sass.d.ts) [Node Sass](https://github.com/sass/node-sass) by [Asana](https://asana.com) * [:link:](acl/acl.d.ts) [node_acl](https://github.com/optimalbits/node_acl) by [Qubo](https://github.com/tkQubo) * [:link:](mdns/mdns.d.ts) [node_mdns](https://github.com/agnat/node_mdns) by [Stefan Steinhart](https://github.com/reppners) * [:link:](node_redis/node_redis.d.ts) [node_redis](https://github.com/mranney/node_redis) by [Boris Yankov](https://github.com/borisyankov) * [:link:](apn/apn.d.ts) [node-apn](https://github.com/argon/node-apn) by [Zenorbi](https://github.com/zenorbi) * [:link:](node-array-ext/node-array-ext.d.ts) [node-array-ext](https://github.com/Beng89/node-array-ext) by [Ben Goltz](https://github.com/Beng89) +* [:link:](asana/asana.d.ts) [node-asana](https://github.com/Asana/node-asana) by [Qubo](https://github.com/tkqubo) * [:link:](bunyan/bunyan.d.ts) [node-bunyan](https://github.com/trentm/node-bunyan) by [Alex Mikhalev](https://github.com/amikhalev) * [:link:](bunyan-logentries/bunyan-logentries.d.ts) [node-bunyan-logentries](https://github.com/nemtsov/node-bunyan-logentries) by [Aymeric Beaumet](http://aymericbeaumet.me) * [:link:](node-cache/node-cache.d.ts) [node-cache](https://github.com/tcs-de/nodecache) by [Ilya Mochalov](https://github.com/chrootsu) @@ -1037,6 +1173,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](node-gcm/node-gcm.d.ts) [node-gcm](https://www.npmjs.org/package/node-gcm) by [Hiroki Horiuchi](https://github.com/horiuchi) * [:link:](node-getopt/node-getopt.d.ts) [node-getopt](https://github.com/jiangmiao/node-getopt) by [Karl.M.Cauchy](https://github.com/kcauchy) * [:link:](node-git/node-git.d.ts) [node-git](https://github.com/christkv/node-git) by [vvakame](https://github.com/vvakame) +* [:link:](node-int64/node-int64.d.ts) [node-int64](https://github.com/broofa/node-int64) by [Benno Dreissig](https://github.com/x3cion) * [:link:](ip/ip.d.ts) [node-ip](https://github.com/indutny/node-ip) by [Peter Harris](https://github.com/codeanimal) * [:link:](node-jsfl-runner/node-jsfl-runner.d.ts) [node-jsfl-runner](https://www.npmjs.com/package/node-jsfl-runner) by [Michael Randolph](https://github.com/mrand01) * [:link:](multiparty/multiparty.d.ts) [node-multiparty](https://github.com/andrewrk/node-multiparty) by [Ken Fukuyama](https://github.com/kenfdev) @@ -1048,40 +1185,47 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](progress/progress.d.ts) [node-progress](https://github.com/tj/node-progress) by [Sebastian Lenz](https://github.com/sebastian-lenz) * [:link:](promptly/promptly.d.ts) [node-promptly](https://github.com/IndigoUnited/node-promptly) by [Dan Spencer](https://github.com/danrspencer) * [:link:](radius/radius.d.ts) [node-radius](https://github.com/retailnext/node-radius) by [Peter Harris](https://github.com/codeanimal) +* [:link:](rsync/rsync.d.ts) [node-rsync](https://github.com/mattijs/node-rsync) by [Philipp Stucki](https://github.com/philippstucki) +* [:link:](node-sass-middleware/node-sass-middleware.d.ts) [node-sass-middleware](https://github.com/sass/node-sass-middleware) by [Pascal Garber](http://www.jumplink.eu) * [:link:](node-schedule/node-schedule.d.ts) [node-schedule](https://github.com/tejasmanohar/node-schedule) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](node-slack/node-slack.d.ts) [node-slack](https://github.com/xoxco/node-slack) by [Qubo](https://github.com/tkQubo) * [:link:](srp/srp.d.ts) [node-srp](https://github.com/mozilla/node-srp) by [Pat Smuk](https://github.com/Patman64) * [:link:](stack-trace/stack-trace.d.ts) [node-stack-trace](https://github.com/felixge/node-stack-trace) by [Exceptionless](https://github.com/exceptionless) -* [:link:](node-uuid/node-uuid-cjs.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) -* [:link:](node-uuid/node-uuid-base.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) -* [:link:](node-uuid/node-uuid.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) * [:link:](node-uuid/node-uuid-global.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) +* [:link:](node-uuid/node-uuid.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) +* [:link:](node-uuid/node-uuid-base.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) +* [:link:](node-uuid/node-uuid-cjs.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) * [:link:](node-validator/node-validator.d.ts) [node-validator](https://www.npmjs.com/package/node-validator) by [Ken Gorab](https://github.com/kengorab) * [:link:](node-webkit/node-webkit.d.ts) [node-webkit](https://github.com/rogerwang/node-webkit) by [Pedro Casaubon](https://github.com/xperiments) -* [:link:](xml2js/xml2js.d.ts) [node-xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) by [Michel Salib](https://github.com/michelsalib), [Jason McNeil](https://github.com/jasonrm) +* [:link:](xml2js/xml2js.d.ts) [node-xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) by [Michel Salib](https://github.com/michelsalib), [Jason McNeil](https://github.com/jasonrm), [Christopher Currens](https://github.com/ccurrens) * [:link:](_debugger/_debugger.d.ts) [Node.js debugger API](http://nodejs.org) by [Basarat Ali Syed](https://github.com/basarat) +* [:link:](http-status-codes/http-status-codes.d.ts) [Node.JS package http-status-codes](https://github.com/prettymuchbryce/node-http-status) by [Josh McCullough](https://github.com/JoshMcCullough) * [:link:](restify/restify.d.ts) [node.js REST framework](https://github.com/mcavage/node-restify) by [Bret Little](https://github.com/blittle) -* [:link:](node/node.d.ts) [Node.js v4.x](http://nodejs.org) by [Microsoft TypeScript](http://typescriptlang.org), [DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped) +* [:link:](node/node.d.ts) [Node.js v4.x](http://nodejs.org) by [Microsoft TypeScript](http://typescriptlang.org), [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) * [:link:](each/each.d.ts) [NodeEach](http://www.adaltas.com/projects/node-each) by [Michael Zabka](https://github.com/misak113) * [:link:](yandex-money-sdk/yandex-money-sdk.d.ts) [NodeJS Yandex.Money API SDK](https://github.com/yandex-money/yandex-money-sdk-nodejs) by [Ilya Mochalov](https://github.com/chrootsu) -* [:link:](nodemailer/nodemailer.d.ts) [Nodemailer](https://github.com/andris9/Nodemailer) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](nodemailer/nodemailer-types.d.ts) [Nodemailer](https://github.com/andris9/Nodemailer) by [Rogier Schouten](https://github.com/rogierschouten) +* [:link:](nodemailer/nodemailer.d.ts) [Nodemailer](https://github.com/andris9/Nodemailer) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](nodemailer-direct-transport/nodemailer-direct-transport.d.ts) [nodemailer-direct-transport](https://github.com/andris9/nodemailer-direct-transport) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](nodemailer-pickup-transport/nodemailer-pickup-transport.d.ts) [nodemailer-pickup-transport](https://www.npmjs.com/package/nodemailer-pickup-transport) by [Peter Snider](https://github.com/psnider) * [:link:](nodemailer-smtp-pool/nodemailer-smtp-pool.d.ts) [nodemailer-smtp-pool](https://github.com/andris9/nodemailer-smtp-pool) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](nodemailer-smtp-transport/nodemailer-smtp-transport.d.ts) [nodemailer-smtp-transport](https://github.com/andris9/nodemailer-smtp-transport) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](nodeunit/nodeunit.d.ts) [nodeunit](https://github.com/caolan/nodeunit) by [Jeff Goddard](https://github.com/jedigo) +* [:link:](noisejs/noisejs.d.ts) [noisejs](https://github.com/xixixao/noisejs) by [Atsushi Izumihara](https://github.com/izmhr) * [:link:](nomnom/nomnom.d.ts) [nomnom](https://github.com/harthur/nomnom) by [Paul Vick](https://github.com/panopticoncentral) * [:link:](nopt/nopt.d.ts) [nopt](https://github.com/npm/nopt) by [jbondc](https://github.com/jbondc) +* [:link:](notie/notie.d.ts) [notie.js](https://github.com/jaredreich/notie.js) by [Mateus Demboski](https://github.com/mateusdemboski) * [:link:](notify/notify.d.ts) [Notify.js](https://github.com/jpillora/notifyjs) by [Xiaohan Zhang](https://github.com/hellochar) * [:link:](notifyjs/notifyjs.d.ts) [notify.js](https://github.com/alexgibson/notify.js) by [soundTricker](https://github.com/soundTricker) -* [:link:](wnumb/wnumb.d.ts) [nouislider](https://github.com/leongersen/wnumb) by [Corey Jepperson](https://github.com/acoreyj) * [:link:](nouislider/nouislider.d.ts) [nouislider](https://github.com/leongersen/noUiSlider) by [Patrick Davies](https://github.com/bleuarg) +* [:link:](wnumb/wnumb.d.ts) [nouislider](https://github.com/leongersen/wnumb) by [Corey Jepperson](https://github.com/acoreyj) * [:link:](noVNC/noVNC.d.ts) [noVNC](https://github.com/kanaka/noVNC) by [Ken Smith](https://github.com/smithkl42) * [:link:](npm/npm.d.ts) [npm](https://github.com/npm/npm) by [Maxime LUCE](https://github.com/SomaticIT) * [:link:](nprogress/NProgress.d.ts) [NProgress](https://github.com/rstacruz/nprogress) by [Judah Gabriel Himango](http://debuggerdotbreak.wordpress.com) * [:link:](numbro/numbro.d.ts) [Numbro.js](https://github.com/foretagsplatsen/numbro) by [Vincent Bortone](https://github.com/vbortone) * [:link:](numeraljs/numeraljs.d.ts) [Numeral.js](https://github.com/adamwdraper/Numeral-js) by [Vincent Bortone](https://github.com/vbortone) +* [:link:](nunjucks/nunjucks.d.ts) [nunjucks](http://mozilla.github.io/nunjucks) by [Ruben Slabbert](https://github.com/RubenSlabbert) +* [:link:](nvd3/nvd3.d.ts) [nvd3](https://github.com/novus/nvd3) by [Peter Mitchell](https://github.com/PjMitchell) * [:link:](obelisk.js/obelisk.js.d.ts) [obelisk.js](https://github.com/nosir/obelisk.js) by [Brian Drupieski](https://github.com/bdrupieski) * [:link:](object-assign/object-assign.d.ts) [object-assign](https://github.com/sindresorhus/object-assign) by [Christopher Brown](https://github.com/chbrown) * [:link:](object-hash/object-hash.d.ts) [object-hash](https://github.com/puleos/object-hash) by [Michael Zabka](https://github.com/misak113) @@ -1093,18 +1237,26 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](angular-odata-resources/angular-odata-resources.d.ts) [OData Angular Resources](https://github.com/devnixs/ODataAngularResources) by [Raphael ATALLAH](http://raphael.atallah.me) * [:link:](office-js/office-js.d.ts) [Office.js](http://dev.office.com) by [OfficeDev](https://github.com/OfficeDev) * [:link:](offline-js/offline-js.d.ts) [Offline](https://github.com/HubSpot/offline) by [Chris Wrench](https://github.com/cgwrench) +* [:link:](oidc-token-manager/oidc-token-manager.d.ts) [oidc-token-manager](https://github.com/IdentityModel/oidc-token-manager) by [Sławomir Rosiek](https://github.com/rosieks) * [:link:](on-finished/on-finished.d.ts) [on-finished](https://github.com/jshttp/on-finished) by [Honza Dvorsky](http://github.com/czechboy0) +* [:link:](once/once.d.ts) [once](https://github.com/isaacs/once) by [Denis Sokolov](https://github.com/denis-sokolov) +* [:link:](onoff/onoff.d.ts) [onoff](https://github.com/fivdi/onoff) by [Marcel Ernst](https://github.com/marcel-ernst) * [:link:](onsenui/onsenui.d.ts) [Onsen UI](http://onsen.io) by [Fran Dios](https://github.com/frankdiox) +* [:link:](deep-extend/deep-extend.d.ts) [open](https://github.com/unclechu/node-deep-extend) by [rhysd](https://github.com/rhysd) * [:link:](open/open.d.ts) [open](https://github.com/jjrdn/node-open) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](OpenJsCad/openjscad.d.ts) [OpenJsCad.js](https://github.com/joostn/OpenJsCad) by [Dan Marshall](https://github.com/danmarshall) * [:link:](openlayers/openlayers.d.ts) [OpenLayers](http://openlayers.org) by [Wouter Goedhart](https://github.com/woutergd) * [:link:](openpgp/openpgp.d.ts) [openpgpjs](http://openpgpjs.org) by [Guillaume Lacasa](https://blog.lacasa.fr) * [:link:](opn/opn.d.ts) [opn](https://github.com/sindresorhus/opn) by [Shinnosuke Watanabe](https://github.com/shinnn), [Maxime LUCE](https://github.com/SomaticIT) -* [:link:](optimist/optimist.d.ts) [optimist](https://github.com/substack/node-optimist) by [Carlos Ballesteros Velasco](https://github.com/soywiz) +* [:link:](optimist/optimist.d.ts) [optimist](https://github.com/substack/node-optimist) by [Carlos Ballesteros Velasco](https://github.com/soywiz), [Christopher Brown](https://github.com/chbrown) +* [:link:](ora/ora.d.ts) [ora](https://github.com/sindresorhus/ora) by [Basarat Ali Syed](https://github.com/basarat) +* [:link:](oracledb/oracledb.d.ts) [oracledb](https://github.com/oracle/node-oracledb) by [Richard Natal](https://github.com/Bigous) * [:link:](orchestrator/orchestrator.d.ts) [Orchestrator](https://github.com/orchestrator/orchestrator) by [Qubo](https://github.com/tkQubo) * [:link:](os-locale/os-locale.d.ts) [os-locale](https://github.com/sindresorhus/os-locale) by [Aya Morisawa](https://github.com/AyaMorisawa) +* [:link:](osmtogeojson/osmtogeojson.d.ts) [osmtogeojson](https://github.com/tyrasd/osmtogeojson.git) by [Qubo](https://github.com/tkqubo) * [:link:](owlcarousel/owlcarousel.d.ts) [OwlCarousel v.1.3.3](https://github.com/OwlFonk/OwlCarousel) by [Damian Piątkowski](https://github.com/dpiatkowski) * [:link:](p2/p2.d.ts) [p2.js](https://github.com/schteppe/p2.js) by [Clark Stevenson](https://github.com/clark-stevenson) +* [:link:](HubSpot-pace/HubSpot-pace.d.ts) [pace](https://github.com/HubSpot/pace) by [Borislav Zhivkov](https://github.com/borislavjivkov) * [:link:](packery/packery.d.ts) [Packery](http://packery.metafizzy.co) by [Piraveen Kamalathas from Kilix](https://github.com/piraveen) * [:link:](page/page.d.ts) [page](http://visionmedia.github.io/page.js) by [Alan Norbauer](http://alan.norbauer.com) * [:link:](pako/pako.d.ts) [pako](https://github.com/nodeca/pako) by [Denis Cappellin](http://github.com/cappellin) @@ -1112,40 +1264,52 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](parallel/parallel.d.ts) [parallel.js](http://adambom.github.io/parallel.js) by [Josh Baldwin](https://github.com/jbaldwin) * [:link:](param-case/param-case.d.ts) [param-case](https://github.com/blakeembrey/param-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](parse/parse.d.ts) [Parse](https://parse.com) by [Ullisen Media Group](http://ullisenmedia.com) +* [:link:](parse-glob/parse-glob.d.ts) [parse-glob](https://github.com/jonschlinkert/parse-glob) by [glen-84](https://github.com/glen-84) +* [:link:](parse-torrent/parse-torrent.d.ts) [parse-torrent](https://github.com/feross/parse-torrent) by [Bazyli Brzóska](https://invent.life) +* [:link:](parse5/parse5.d.ts) [parse5](https://github.com/inikulin/parse5) by [Nico Jansen](https://github.com/nicojs) * [:link:](parsimmon/parsimmon.d.ts) [Parsimmon](https://github.com/jneen/parsimmon) by [Bart van der Schoor](https://github.com/Bartvds), [Mizunashi Mana](https://github.com/mizunashi-mana) * [:link:](pascal-case/pascal-case.d.ts) [pascal-case](https://github.com/blakeembrey/pascal-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](passport/passport.d.ts) [Passport](http://passportjs.org) by [Horiuchi_H](https://github.com/horiuchi) * [:link:](passport-strategy/passport-strategy.d.ts) [Passport Strategy module](https://github.com/jaredhanson/passport-strategy) by [Lior Mualem](https://github.com/liorm) -* [:link:](passport-google-oauth/passport-google-oauth.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction) -* [:link:](passport-facebook/passport-facebook.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction) * [:link:](passport-twitter/passport-twitter.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction) +* [:link:](passport-facebook/passport-facebook.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction) +* [:link:](passport-google-oauth/passport-google-oauth.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction) * [:link:](passport-facebook-token/passport-facebook-token.d.ts) [passport-facebook-token](https://github.com/drudge/passport-facebook-token) by [Ray Martone](https://github.com/rmartone) +* [:link:](passport-http-bearer/passport-http-bearer.d.ts) [passport-http-bearer](https://github.com/jaredhanson/passport-http-bearer) by [Isman Usoh](https://github.com/isman-usoh) * [:link:](passport-local/passport-local.d.ts) [passport-local](https://github.com/jaredhanson/passport-local) by [Maxime LUCE](https://github.com/SomaticIT) * [:link:](path-case/path-case.d.ts) [path-case](https://github.com/blakeembrey/path-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](path-exists/path-exists.d.ts) [path-exists](https://github.com/sindresorhus/path-exists) by [Shogo Iwano](https://github.com/shiwano) +* [:link:](path-parse/path-parse.d.ts) [path-parse](https://github.com/jbgutierrez/path-parse) by [Dan Chao](http://dchao.co) * [:link:](path-to-regexp/path-to-regexp.d.ts) [path-to-regexp](https://github.com/pillarjs/path-to-regexp) by [xica](https://github.com/xica) * [:link:](pathjs/pathjs.d.ts) [Pathjs](https://github.com/mtrpcic/pathjs) by [Lokesh Peta](https://github.com/lokeshpeta) * [:link:](pathwatcher/pathwatcher.d.ts) [pathwatcher](https://github.com/atom/node-pathwatcher) by [vvakame](https://github.com/vvakame) * [:link:](PayPal-Cordova-Plugin/PayPal-Cordova-Plugin.d.ts) [PayPal-Cordova-Plugin](https://github.com/paypal/PayPal-Cordova-Plugin) by [Justin Unterreiner](https://github.com/Justin-Credible) * [:link:](pdf/pdf.d.ts) [PDF.js](https://github.com/mozilla/pdf.js) by [Josh Baldwin](https://github.com/jbaldwin) * [:link:](pdfkit/pdfkit.d.ts) [Pdfkit](http://pdfkit.org) by [Eric Hillah](https://github.com/erichillah) +* [:link:](pebblekitjs/pebblekitjs.d.ts) [PebbleKit JS](https://developer.pebble.com/docs/js/Pebble) by [Makoto Kawasaki](https://github.com/makotokw) * [:link:](peerjs/peerjs.d.ts) [PeerJS](http://peerjs.com) by [Toshiya Nakakura](https://github.com/nakakura) -* [:link:](pegjs/pegjs.d.ts) [PEG.js](http://pegjs.majda.cz) by [vvakame](https://github.com/vvakame) +* [:link:](pegjs/pegjs.d.ts) [PEG.js](http://pegjs.org) by [vvakame](https://github.com/vvakame), [Tobias Kahlert](https://github.com/SrTobi) * [:link:](persona/persona.d.ts) [Persona](http://www.mozilla.org/en-US/persona) by [James Frasca](https://github.com/Nycto) * [:link:](pg/pg.d.ts) [pg](https://github.com/brianc/node-postgres) by [Phips Peter](http://pspeter3.com) +* [:link:](pg-promise/pg-promise.d.ts) [pg-promise](https://github.com/vitaly-t/pg-promise) by [Jörg Dotzki](https://github.com/ISO50) * [:link:](pgwmodal/pgwmodal.d.ts) [PgwModal](http://pgwjs.com/pgwmodal) by [Pine Mizune](https://github.com/pine613) -* [:link:](phantom/phantom.d.ts) [PhantomJS bridge for NodeJS](https://github.com/sgentle/phantomjs-node) by [horiuchi](https://github.com/horiuchi) +* [:link:](phantomcss/phantomcss.d.ts) [PhantomCSS](https://github.com/Huddle/PhantomCSS) by [Amaury Bauzac](https://github.com/abauzac) +* [:link:](phantom/phantom.d.ts) [PhantomJS bridge for NodeJS](https://github.com/sgentle/phantomjs-node) by [horiuchi](https://github.com/horiuchi), [Random](https://github.com/llRandom) * [:link:](phantomjs/phantomjs.d.ts) [PhantomJS v1.9.0 API](https://github.com/ariya/phantomjs/wiki/API-Reference) by [Jed Hunsaker](https://github.com/jedhunsaker), [Mike Keesey](https://github.com/keesey) * [:link:](phonegap/phonegap.d.ts) [PhoneGap](http://phonegap.com) by [Boris Yankov](https://github.com/borisyankov), [Dick van den Brink](https://github.com/DickvdBrink) +* [:link:](phonegap-nfc/phonegap-nfc.d.ts) [Phonegap NFC Plugin](https://github.com/chariotsolutions/phonegap-nfc) by [Michael Desigaud](https://github.com/michaeldesigaud) * [:link:](phonegap-facebook-plugin/phonegap-facebook-plugin.d.ts) [phonegap-facebook-plugin](https://github.com/Wizcorp/phonegap-facebook-plugin) by [Justin Unterreiner](https://github.com/Justin-Credible) * [:link:](phonegap-plugin-push/phonegap-plugin-push.d.ts) [phonegap-plugin-push](https://github.com/phonegap/phonegap-plugin-push) by [Frederico Galvão](https://github.com/fredgalvao) * [:link:](urbanairship-cordova/urbanairship-cordova.d.ts) [phonegap-ua-push](https://github.com/urbanairship/phonegap-ua-push) by [Justin Unterreiner](https://github.com/Justin-Credible) * [:link:](photonui/photonui.d.ts) [PhotonUI](https://github.com/wanadev/PhotonUI) by [Florent Poujol](https://github.com/florentpoujol) * [:link:](photoswipe/photoswipe.d.ts) [PhotoSwipe](http://photoswipe.com) by [Xiaohan Zhang](https://github.com/hellochar) * [:link:](physijs/physijs.d.ts) [Physijs](http://chandlerprall.github.io/Physijs) by [Satoru Kimura](https://github.com/gyohk) +* [:link:](pi-spi/pi-spi.d.ts) [pi-spi](https://github.com/natevw/pi-spi) by [Marcel Ernst](https://github.com/marcel-ernst) * [:link:](pickadate/pickadate.d.ts) [pickadate.js](https://github.com/amsul/pickadate.js) by [Theodore Brown](https://github.com/theodorejb) +* [:link:](pify/pify.d.ts) [pify](https://github.com/sindresorhus/pify) by [Sam Verschueren](https://github.com/samverschueren) * [:link:](pikaday/pikaday.d.ts) [pikaday](https://github.com/dbushell/Pikaday) by [Rudolph Gottesheim](http://midnight-design.at) * [:link:](pinkyswear/pinkyswear.d.ts) [PinkySwear](https://github.com/timjansen/PinkySwear.js) by [Chance Snow](https://github.com/chances) +* [:link:](pinterest-sdk/pinterest-sdk.d.ts) [pinterest-sdk](https://assets.pinterest.com/sdk/sdk.js) by [Adam Burmister](https://github.com/adamburmister) * [:link:](piwik-tracker/piwik-tracker.d.ts) [PiwikTracker](https://www.npmjs.com/package/piwik-tracker) by [Guilherme Bernal](https://github.com/lbguilherme) * [:link:](pixi-spine/pixi-spine.d.ts) [pixi-spine](https://github.com/pixijs/pixi-spine) by [martijncroezen](https://github.com/pixijs/pixi-typescript) * [:link:](pixi.js/pixi.js.d.ts) [Pixi.js 3.0.9 dev](https://github.com/GoodBoyDigital/pixi.js) by [clark-stevenson](https://github.com/pixijs/pixi-typescript) @@ -1170,15 +1334,21 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](precond/precond.d.ts) [precond](https://github.com/MathieuTurcotte/node-precond) by [Oliver Schneider](https://github.com/olsio) * [:link:](preloadjs/preloadjs.d.ts) [PreloadJS](http://www.createjs.com/#!/PreloadJS) by [Pedro Ferreira](https://bitbucket.org/drk4) * [:link:](prelude-ls/prelude-ls.d.ts) [prelude.ls](http://www.preludels.com) by [Aya Morisawa](https://github.com/AyaMorisawa) +* [:link:](prettyjson/prettyjson.d.ts) [prettyjson](https://github.com/rafeca/prettyjson) by [Wael BEN ZID EL GUEBSI](https://github.com/benzid-wael) +* [:link:](meteor-prime8consulting-oauth2/meteor-prime8consulting-oauth2.d.ts) [prime8consulting:meteor-oauth2](https://github.com/prime-8-consulting/meteor-oauth2) by [Robbie Van Gorkom](https://github.com/vangorra) * [:link:](progressjs/progress.d.ts) [ProgressJs](http://usablica.github.io/progress.js) by [Shunsuke Ohtani](https://github.com/zaneli) * [:link:](project-oxford/project-oxford.d.ts) [project-oxford](https://github.com/felixrieseberg/project-oxford) by [Scott Southwood](https://github.com/scsouthw) +* [:link:](promise/promise.d.ts) [promise](https://www.promisejs.org) by [Manuel Rueda](https://github.com/ManRueda) * [:link:](promise-pool/promise-pool.d.ts) [promise-pool](https://github.com/vilic/promise-pool) by [VILIC VANE](https://github.com/vilic) * [:link:](promises-a-plus/promises-a-plus.d.ts) [promises-a-plus](http://promisesaplus.com) by [Igor Oleinikov](https://github.com/Igorbek) +* [:link:](promisify-supertest/promisify-supertest.d.ts) [promisify-supertest](https://www.npmjs.com/package/promisify-supertest) by [Leo Liang](https://github.com/aleung) * [:link:](protobufjs/protobufjs.d.ts) [ProtoBuf.js](https://github.com/dcodeIO/ProtoBuf.js) by [Panu Horsmalahti](https://github.com/panuhorsmalahti) +* [:link:](protractor-helpers/protractor-helpers.d.ts) [protractor-helpers](https://github.com/wix/protractor-helpers) by [John Cant](https://github.com/johncant) * [:link:](protractor-http-mock/protractor-http-mock.d.ts) [protractor-http-mock](https://github.com/atecarlos/protractor-http-mock) by [Crevil](https://github.com/Crevil) * [:link:](proxyquire/proxyquire.d.ts) [Proxyquire](https://github.com/thlorenz/proxyquire) by [jt000](https://github.com/jt000) * [:link:](pty.js/pty.js.d.ts) [pty.js 0.2.7-1](https://github.com/chjj/pty.js) by [Vadim Macagon](https://github.com/enlight) * [:link:](pubsubjs/pubsub.d.ts) [PubSubJS](https://github.com/mroderick/PubSubJS) by [Boris Yankov](https://github.com/borisyankov) +* [:link:](pure-render-decorator/pure-render-decorator.d.ts) [pure-render-decorator](https://github.com/felixgirault/pure-render-decorator) by [Sean Kelley](https://github.com/seansfkelley) * [:link:](purl/purl.d.ts) [Purl](https://github.com/allmarkedup/purl) by [Daniel Ferreira Monteiro Alves](https://github.com/danfma) * [:link:](pusher-js/pusher-js.d.ts) [pusher-js](https://github.com/pusher/pusher-js) by [Qubo](https://github.com/tkqubo) * [:link:](q/Q.d.ts) [Q](https://github.com/kriskowal/q) by [Barrie Nemetchek](https://github.com/bnemetchek), [Andrew Gaspar](https://github.com/AndrewGaspar), [John Reilly](https://github.com/johnnyreilly) @@ -1188,17 +1358,19 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](qs/qs.d.ts) [qs](https://github.com/hapijs/qs) by [Roman Korneev](https://github.com/RWander) * [:link:](qtip2/qtip2.d.ts) [qtip2](http://qtip2.com) by [Nathan Pitman](https://github.com/Seltzer) * [:link:](query-string/query-string.d.ts) [query-string](https://github.com/sindresorhus/query-string) by [Sam Verschueren](https://github.com/SamVerschueren) +* [:link:](quill/quill.d.ts) [Quill](http://quilljs.com) by [Sumit](https://github.com/sumitkm) * [:link:](quixote/quixote.d.ts) [quixote](http://quixote-css.com) by [Aleksandr Filatov](https://github.com/greybax) * [:link:](qunit/qunit.d.ts) [QUnit](http://qunitjs.com) by [Diullei Gomes](https://github.com/diullei) * [:link:](qwest/qwest.d.ts) [qwest](https://github.com/pyrsmk/qwest) by [Lindsay Evans](https://github.com/lindsayevans) * [:link:](rabbit.js/rabbit.js.d.ts) [rabbit.js](https://github.com/squaremo/rabbit.js) by [Wonshik Kim](https://github.com/wokim) * [:link:](ractive/ractive.d.ts) [Ractive](http://ractivejs.org) by [Han Lin Yap](http://yap.nu) +* [:link:](random-js/random-js.d.ts) [random-js](https://github.com/ckknight/random-js) by [Gustavo Di Pietro](https://github.com/pistacchio) * [:link:](random-string/random-string.d.ts) [random-string](https://github.com/valiton/node-random-string) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](rangy/rangy.d.ts) [Rangy](https://github.com/timdown/rangy) by [Rudolph Gottesheim](http://www.midnight-design.at) * [:link:](raphael/raphael.d.ts) [Raphael](http://raphaeljs.com) by [CheCoxshall](https://github.com/CheCoxshall) * [:link:](rappid/rappid.d.ts) [Rappid](http://jointjs.com/about-rappid) by [Ewout Van Gossum](https://github.com/DenEwout) * [:link:](ratelimiter/ratelimiter.d.ts) [ratelimiter](https://github.com/tj/node-ratelimiter) by [Aya Morisawa](https://github.com/AyaMorisawa) -* [:link:](ravenjs/ravenjs.d.ts) [Raven.js](https://github.com/getsentry/raven-js) by [Santi Albo](https://github.com/santialbo) +* [:link:](ravenjs/ravenjs.d.ts) [Raven.js](https://github.com/getsentry/raven-js) by [Santi Albo](https://github.com/santialbo), [Benjamin Pannell](http://github.com/spartan563) * [:link:](raygun4js/raygun4js.d.ts) [raygun4js](https://github.com/MindscapeHQ/raygun4js) by [Brian Surowiec](https://github.com/xt0rted) * [:link:](rcloader/rcloader.d.ts) [rcloader](https://github.com/spalger/rcloader) by [Panu Horsmalahti](https://github.com/panuhorsmalahti) * [:link:](react/react.d.ts) [React](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com) @@ -1214,10 +1386,16 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](react/react-addons-update.d.ts) [React (react-addons-update)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com) * [:link:](react/react-dom.d.ts) [React (react-dom)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com) * [:link:](react-dnd/react-dnd.d.ts) [React DnD](https://github.com/gaearon/react-dnd) by [Asana](https://asana.com) -* [:link:](react-bootstrap/react-bootstrap.d.ts) [react-bootstrap](https://github.com/react-bootstrap/react-bootstrap) by [Walker Burgin](https://github.com/walkerburgin) +* [:link:](react-notification-system/react-notification-system.d.ts) [React Notification System](https://www.npmjs.com/package/react-notification-system) by [Giedrius Grabauskas](https://github.com/GiedriusGrabauskas), [Deividas Bakanas](https://github.com/DeividasBakanas) +* [:link:](rc-select/rc-select.d.ts) [React Select](https://github.com/react-component/select) by [Denis Tirilis](https://github.com/DenisTirilis) +* [:link:](react-bootstrap/react-bootstrap.d.ts) [react-bootstrap](https://github.com/react-bootstrap/react-bootstrap) by [Walker Burgin](https://github.com/walkerburgin), [Vincent Siao](https://github.com/vsiao) +* [:link:](react-bootstrap-table/react-bootstrap-table.d.ts) [react-bootstrap-table](https://github.com/AllenFang/react-bootstrap-table) by [Frank Laub](https://github.com/flaub) * [:link:](react-datagrid/react-datagrid.d.ts) [react-datagrid](https://github.com/zippyui/react-datagrid.git) by [Stephen Jelfs](https://github.com/stephenjelfs) * [:link:](react-day-picker/react-day-picker.d.ts) [react-day-picker](https://github.com/gpbl/react-day-picker) by [Giampaolo Bellavite](https://github.com/gpbl), [Jason Killian](https://github.com/jkillian) * [:link:](react-dropzone/react-dropzone.d.ts) [react-dropzone](https://github.com/paramaggarwal/react-dropzone) by [Mathieu Larouche Dube](https://github.com/matdube) +* [:link:](react-fa/react-fa.d.ts) [react-fa](https://github.com/andreypopp/react-fa) by [Frank Laub](https://github.com/flaub) +* [:link:](react-helmet/react-helmet.d.ts) [react-helmet](https://github.com/nfl/react-helmet) by [Evan Bremer](https://github.com/evanbb) +* [:link:](react-holder/react-holder.d.ts) [react-holder](https://github.com/Moeriki/react-holder) by [Isman Usoh](https://github.com/isman-usoh) * [:link:](react-infinite/react-infinite.d.ts) [react-infinite](https://github.com/seatgeek/react-infinite) by [rhysd](https://github.com/rhysd) * [:link:](react-input-calendar/react-input-calendar.d.ts) [react-input-calendar](https://github.com/Rudeg/react-input-calendar) by [Stepan Mikhaylyuk](https://github.com/stepancar) * [:link:](react-intl/react-intl.d.ts) [react-intl](http://formatjs.io/react) by [Bruno Grieder](https://github.com/bgrieder), [Christian Droulers](https://github.com/cdroulers) @@ -1225,10 +1403,15 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](react-native/react-native.d.ts) [react-native](https://github.com/facebook/react-native) by [Bruno Grieder](https://github.com/bgrieder) * [:link:](react-props-decorators/react-props-decorators.d.ts) [react-props-decorators](https://github.com/popkirby/react-props-decorators) by [Qubo](https://github.com/tkqubo) * [:link:](react-redux/react-redux.d.ts) [react-redux](https://github.com/rackt/react-redux) by [Qubo](https://github.com/tkqubo) -* [:link:](react-router/react-router.d.ts) [react-router](https://github.com/rackt/react-router) by [Sergey Buturlakin](http://github.com/sergey-buturlakin), [Yuichi Murata](https://github.com/mrk21), [Václav Ostrožlík](https://github.com/vasek17) -* [:link:](react-select/react-select.d.ts) [react-select](https://github.com/JedWatson/react-select) by [ESQUIBET Hugo](https://github.com/Hesquibet) +* [:link:](react-router/react-router.d.ts) [react-router](https://github.com/rackt/react-router) by [Sergey Buturlakin](https://github.com/sergey-buturlakin), [Yuichi Murata](https://github.com/mrk21), [Václav Ostrožlík](https://github.com/vasek17), [Nathan Brown](https://github.com/ngbrown) +* [:link:](react-router-bootstrap/react-router-bootstrap.d.ts) [react-router-bootstrap](https://github.com/react-bootstrap/react-router-bootstrap) by [Vincent Lesierse](https://github.com/vlesierse) +* [:link:](react-router-redux/react-router-redux.d.ts) [react-router-redux](https://github.com/rackt/react-router-redux) by [Isman Usoh](http://github.com/isman-usoh), [Noah Shipley](https://github.com/noah79), [Dimitri Rosenberg](https://github.com/rosendi) +* [:link:](redux-immutable-state-invariant/redux-immutable-state-invariant.d.ts) [react-router-redux](https://github.com/leoasis/redux-immutable-state-invariant) by [Remo H. Jansen](https://github.com/remojansen) +* [:link:](react-select/react-select.d.ts) [react-select](https://github.com/JedWatson/react-select) by [ESQUIBET Hugo](https://github.com/Hesquibet), [Gilad Gray](https://github.com/giladgray) * [:link:](react-spinkit/react-spinkit.d.ts) [react-spinkit](https://github.com/KyleAMathews/react-spinkit) by [Qubo](https://github.com/tkqubo) * [:link:](react-swf/react-swf.d.ts) [react-swf](https://github.com/syranide/react-swf) by [Stepan Mikhaylyuk](https://github.com/stepancar) +* [:link:](react-swipeable-views/react-swipeable-views.d.ts) [react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) by [Michael Ledin](https://github.com/mxl) +* [:link:](react-tap-event-plugin/react-tap-event-plugin.d.ts) [react-tap-event-plugin](https://github.com/zilverline/react-tap-event-plugin) by [Michael Ledin](https://github.com/mxl) * [:link:](read/read.d.ts) [read](https://github.com/isaacs/read) by [Tim JK](https://github.com/timjk) * [:link:](readdir-stream/readdir-stream.d.ts) [readdir-stream](https://github.com/logicalparadox/readdir-stream) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](recursive-readdir/recursive-readdir.d.ts) [recursive-readdir](https://github.com/jergason/recursive-readdir) by [Elisée Maurer](https://github.com/elisee) @@ -1237,17 +1420,28 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](redux/redux.d.ts) [Redux](https://github.com/rackt/redux) by [William Buchwalter](https://github.com/wbuchwalter), [Vincent Prouillet](https://github.com/Keats) * [:link:](redux-action-utils/redux-action-utils.d.ts) [redux-action-utils](https://github.com/insin/redux-action-utils) by [Qubo](https://github.com/tkqubo) * [:link:](redux-actions/redux-actions.d.ts) [redux-actions](https://github.com/acdlite/redux-actions) by [Jack Hsu](https://github.com/jaysoo) -* [:link:](redux-devtools/redux-devtools.d.ts) [redux-devtools](https://github.com/gaearon/redux-devtools) by [Qubo](https://github.com/tkqubo) +* [:link:](redux-devtools/redux-devtools.d.ts) [redux-devtools](https://github.com/gaearon/redux-devtools) by [Petryshyn Sergii](https://github.com/mc-petry) +* [:link:](redux-devtools-dock-monitor/redux-devtools-dock-monitor.d.ts) [redux-devtools-dock-monitor](https://github.com/gaearon/redux-devtools-dock-monitor) by [Petryshyn Sergii](https://github.com/mc-petry) +* [:link:](redux-devtools-log-monitor/redux-devtools-log-monitor.d.ts) [redux-devtools-log-monitor](https://github.com/gaearon/redux-devtools-log-monitor) by [Petryshyn Sergii](https://github.com/mc-petry) * [:link:](redux-form/redux-form.d.ts) [redux-form](https://github.com/erikras/redux-form) by [Daniel Lytkin](https://github.com/aikoven) +* [:link:](react-scroll/react-scroll.d.ts) [redux-immutable](https://github.com/fisshy/react-scroll) by [Pedro Pereira](https://github.com/oizie) +* [:link:](redux-immutable/redux-immutable.d.ts) [redux-immutable](https://github.com/gajus/redux-immutable) by [Pedro Pereira](https://github.com/oizie) * [:link:](redux-logger/redux-logger.d.ts) [redux-logger](https://github.com/fcomb/redux-logger) by [Alexander Rusakov](https://github.com/arusakov) +* [:link:](redux-router/redux-router.d.ts) [redux-router](https://github.com/rackt/redux-router) by [Stepan Mikhaylyuk](http://github.com/stepancar) +* [:link:](redux-saga/redux-saga.d.ts) [redux-saga](https://github.com/yelouafi/redux-saga) by [Daniel Lytkin](https://github.com/aikoven), [Dimitri Rosenberg](https://github.com/rosendi) * [:link:](redux-thunk/redux-thunk.d.ts) [redux-thunk](https://github.com/gaearon/redux-thunk) by [Qubo](https://github.com/tkqubo) +* [:link:](ref/ref.d.ts) [ref](https://github.com/TooTallNate/ref) by [Paul Loyd](https://github.com/loyd) * [:link:](ref-array/ref-array.d.ts) [ref-array](https://github.com/TooTallNate/ref-array) by [Paul Loyd](https://github.com/loyd) +* [:link:](ref-struct/ref-struct.d.ts) [ref-struct](https://github.com/TooTallNate/ref-struct) by [Paul Loyd](https://github.com/loyd) * [:link:](ref-union/ref-union.d.ts) [ref-union](https://github.com/TooTallNate/ref-union) by [Paul Loyd](https://github.com/loyd) * [:link:](reflux/reflux.d.ts) [RefluxJS](https://github.com/reflux/refluxjs) by [Maurice de Beijer](https://github.com/mauricedb) -* [:link:](request/request.d.ts) [request](https://github.com/mikeal/request) by [Carlos Ballesteros Velasco](https://github.com/soywiz), [bonnici](https://github.com/bonnici), [Bart van der Schoor](https://github.com/Bartvds), [Joe Skeen](http://github.com/joeskeen) +* [:link:](relateurl/relateurl.d.ts) [relateurl](https://github.com/stevenvachon/relateurl) by [Tanguy Krotoff](https://github.com/tkrotoff) +* [:link:](replace-ext/replace-ext.d.ts) [replace-ext](https://github.com/wearefractal/replace-ext) by [Deividas Bakanas](https://github.com/DeividasBakanas) +* [:link:](request/request.d.ts) [request](https://github.com/mikeal/request) by [Carlos Ballesteros Velasco](https://github.com/soywiz), [bonnici](https://github.com/bonnici), [Bart van der Schoor](https://github.com/Bartvds), [Joe Skeen](http://github.com/joeskeen), [Christopher Currens](https://github.com/ccurrens) * [:link:](request-ip/request-ip.d.ts) [request-ip](https://github.com/pbojinov/request-ip) by [Adam Babcock](https://github.com/mrhen) * [:link:](request-promise/request-promise.d.ts) [request-promise](https://www.npmjs.com/package/request-promise) by [Christopher Glantschnig](https://github.com/cglantschnig), [Joe Skeen](http://github.com/joeskeen) * [:link:](requirejs/require.d.ts) [RequireJS](http://requirejs.org) by [Josh Baldwin](https://github.com/jbaldwin) +* [:link:](reselect/reselect.d.ts) [reselect](https://github.com/rackt/reselect) by [Ian Ker-Seymer](https://github.com/ianks) * [:link:](resemblejs/resemblejs.d.ts) [Resemble.js](http://huddle.github.io/Resemble.js) by [Tim Perry](https://github.com/pimterry) * [:link:](response-time/response-time.d.ts) [response-time](https://github.com/expressjs/response-time) by [Uros Smolnik](https://github.com/urossmolnik) * [:link:](rest-io/rest-io.d.ts) [rest-io](https://github.com/EnoF/rest-io) by [Andy Tang](https://github.com/EnoF), [Stefan Schacherl](https://github.com/TheBay0r) @@ -1256,8 +1450,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](restful.js/restful.js.d.ts) [restful.js](https://github.com/marmelab/restful.js) by [Qubo](https://github.com/tkqubo) * [:link:](rethinkdb/rethinkdb.d.ts) [Rethinkdb](http://rethinkdb.com) by [Sean Hess](https://seanhess.github.io) * [:link:](reveal/reveal.d.ts) [Reveal](https://github.com/hakimel/reveal.js) by [grapswiz](https://github.com/grapswiz) +* [:link:](rewire/rewire.d.ts) [rewire](https://github.com/jhnns/rewire) by [Borislav Zhivkov](https://github.com/borislavjivkov) * [:link:](rickshaw/rickshaw.d.ts) [Rickshaw](http://code.shutterstock.com/rickshaw) by [Blake Niemyjski](https://github.com/niemyjski) * [:link:](rimraf/rimraf.d.ts) [rimraf](https://github.com/isaacs/rimraf) by [Carlos Ballesteros Velasco](https://github.com/soywiz) +* [:link:](riot-api-nodejs/riot-api-nodejs.d.ts) [Riot Games API](https://developer.riotgames.com) by [Luca Laissue](https://github.com/zafixlrp) * [:link:](riot-games-api/riot-games-api.d.ts) [Riot Games API](https://developer.riotgames.com) by [Xavier Stouder](https://github.com/xstoudi) * [:link:](riotjs/riotjs.d.ts) [riot.js](https://github.com/moot/riotjs) by [vvakame](https://github.com/vvakame) * [:link:](riotcontrol/riotcontrol.d.ts) [RiotControl](https://github.com/jimsparkman/RiotControl) by [Ilya Mochalov](https://github.com/chrootsu) @@ -1265,6 +1461,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](rosie/rosie.d.ts) [rosie](https://github.com/rosiejs/rosie) by [Abner Oliveira](https://github.com/abner) * [:link:](roslib/roslib.d.ts) [roslib.js](http://wiki.ros.org/roslibjs) by [Stefan Profanter](https://github.com/Pro) * [:link:](route-recognizer/route-recognizer.d.ts) [route-recognizer](https://github.com/tildeio/route-recognizer) by [Dave Keen](http://www.keendevelopment.ch) +* [:link:](router5/router5.d.ts) [router5](https://github.com/router5/router5) by [Matthew Dahl](https://github.com/sandersky) * [:link:](routie/routie.d.ts) [routie](https://github.com/jgallen23/routie) by [Adilson](https://github.com/Adilson) * [:link:](rsmq/rsmq.d.ts) [rsmq](http://smrchy.github.io/rsmq) by [Qubo](https://github.com/MugeSo) * [:link:](rsmq-worker/rsmq-worker.d.ts) [rsmq-worker](http://smrchy.github.io/rsmq/rsmq-worker) by [TANAKA Koichi](https://github.com/MugeSo) @@ -1287,17 +1484,21 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](rx/rx.virtualtime.d.ts) [RxJS-VirtualTime](http://rx.codeplex.com) by [gsino](http://www.codeplex.com/site/users/view/gsino), [Igor Oleinikov](https://github.com/Igorbek) * [:link:](s3-uploader/s3-uploader.d.ts) [s3-uploader](https://www.npmjs.com/package/s3-uploader) by [COLSA Corporation](http://www.colsa.com) * [:link:](s3rver/s3rver.d.ts) [S3rver](https://github.com/jamhall/s3rver) by [David Broder-Rodgers](https://github.com/DavidBR-SW) +* [:link:](safari-extension/safari-extension.d.ts) [Safari extension development](https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40009977-CH1-SW1) by [Luuk](https://github.com/luukd) +* [:link:](safari-extension/safari-extension-content.d.ts) [Safari extension development (content-scripts)](https://developer.apple.com/library/safari/documentation/Tools/Conceptual/SafariExtensionGuide/InjectingScripts/InjectingScripts.html#//apple_ref/doc/uid/TP40009977-CH6-SW1) by [Luuk](https://github.com/luukd) * [:link:](sammyjs/sammyjs.d.ts) [Sammy.js](http://sammyjs.org) by [Boris Yankov](https://github.com/borisyankov), [Oisin Grehan](https://github.com/oising) * [:link:](sandboxed-module/sandboxed-module.d.ts) [sandboxed-module](https://github.com/felixge/node-sandboxed-module) by [Sven Reglitzki](https://github.com/svi3c) * [:link:](sanitize-filename/sanitize-filename.d.ts) [sanitize-filename](https://github.com/parshap/node-sanitize-filename) by [Wim Looman](https://github.com/Nemo157) * [:link:](sanitize-html/sanitize-html.d.ts) [sanitize-html](https://github.com/punkave/sanitize-html) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](sanitizer/sanitizer.d.ts) [Sanitizer](https://github.com/theSmaw/Caja-HTML-Sanitizer) by [Dave Taylor](http://davetayls.me) +* [:link:](sat/sat.d.ts) [sat.js](https://github.com/jriecken/sat-js) by [Hou Chunlei](https://github.com/omni360) * [:link:](satnav/satnav.d.ts) [satnav](https://github.com/f5io/satnav-js) by [Christian Holm Diget](https://github.com/DotNetNerd) * [:link:](sax/sax.d.ts) [sax js](https://github.com/isaacs/sax-js) by [Asana](https://asana.com) * [:link:](scalike/scalike.d.ts) [scalike API](https://github.com/ryoppy/scalike-typescript) by [ryoppy](https://github.com/ryoppy) * [:link:](screenfull/screenfull.d.ts) [screenfull.js](https://github.com/sindresorhus/screenfull.js) by [Ilia Choly](http://github.com/icholy) * [:link:](scrolltofixed/scrolltofixed.d.ts) [ScrollToFixed](https://github.com/bigspotteddog/ScrollToFixed) by [Ben Dixon](https://github.com/bmdixon) * [:link:](scrypt-async/scrypt-async.d.ts) [scrypt-async](https://github.com/dchest/scrypt-async-js) by [Kaur Kuut](https://github.com/xStrom) +* [:link:](microsoft-sdk-soap/microsoft-sdk-soap.d.ts) [Sdk.Soap.js](https://code.msdn.microsoft.com/SdkSoapjs-9b51b99a) by [Markus Mauch](https://github.com/markusmauch) * [:link:](seedrandom/seedrandom.d.ts) [seedrandom](https://github.com/davidbau/seedrandom) by [Kern Handa](https://github.com/kernhanda) * [:link:](segment-analytics/segment-analytics.d.ts) [Segment's analytics.js](https://segment.com/docs/libraries/analytics.js) by [Andrew Fong](https://github.com/fongandrew) * [:link:](analytics-node/analytics-node.d.ts) [Segment's analytics.js for Node.js](https://segment.com/docs/libraries/node) by [Andrew Fong](https://github.com/fongandrew) @@ -1305,7 +1506,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](selectize/selectize.d.ts) [Selectize](https://github.com/brianreavis/selectize.js) by [Adi Dahiya](https://github.com/adidahiya) * [:link:](selenium-webdriver/selenium-webdriver.d.ts) [Selenium WebDriverJS](https://code.google.com/p/selenium) by [Bill Armstrong](https://github.com/BillArmstrong), [Yuki Kokubun](https://github.com/Kuniwak) * [:link:](semaphore/semaphore.d.ts) [semaphore](https://github.com/abrkn/semaphore.js) by [Matt Frantz](https://github.com/mhfrantz) -* [:link:](semver/semver.d.ts) [semver](https://github.com/isaacs/node-semver) by [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](semver/semver.d.ts) [semver](https://github.com/npm/node-semver) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](sendgrid/sendgrid.d.ts) [sendgrid](https://github.com/sendgrid/sendgrid-nodejs) by [Maxime LUCE](https://github.com/SomaticIT) * [:link:](sentence-case/sentence-case.d.ts) [sentence-case](https://github.com/blakeembrey/sentence-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](sequelize/sequelize.d.ts) [Sequelize](http://sequelizejs.com) by [samuelneff](https://github.com/samuelneff), [Peter Harris](https://github.com/codeanimal), [Ivan Drinchev](https://github.com/drinchev) @@ -1314,17 +1515,18 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](on-headers/on-headers.d.ts) [serve-favicon](https://github.com/jshttp/on-headers) by [John Jeffery](https://github.com/jjeffery) * [:link:](serve-index/serve-index.d.ts) [serve-index](https://github.com/expressjs/serve-index) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](serve-static/serve-static.d.ts) [serve-static](https://github.com/expressjs/serve-static) by [Uros Smolnik](https://github.com/urossmolnik) +* [:link:](ss-utils/ss-utils.d.ts) [ServiceStack Utils](https://servicestack.net) by [Demis Bellot](https://github.com/mythz) * [:link:](sharedworker/SharedWorker.d.ts) [SharedWorker](http://www.w3.org/TR/workers) by [Toshiya Nakakura](https://github.com/nakakura) * [:link:](sharepoint/SharePoint.d.ts) [SharePoint 2010 and 2013](https://github.com/gandjustas/sptypescript) by [Stanislav Vyshchepan](http://blog.gandjustas.ru), [Andrey Markeev](http://markeev.com) * [:link:](shelljs/shelljs.d.ts) [ShellJS](http://shelljs.org) by [Niklas Mollenhauer](https://github.com/nikeee) * [:link:](shortid/shortid.d.ts) [shortid](https://github.com/dylang/shortid) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](should-promised/should-promised.d.ts) [should-promised](https://github.com/shouldjs/promised) by [Yaroslav Admin](https://github.com/devoto13) -* [:link:](should/should.d.ts) [should.js](https://github.com/visionmedia/should.js) by [Alex Varju](https://github.com/varju), [Maxime LUCE](https://github.com/SomaticIT) +* [:link:](should/should.d.ts) [should.js](https://github.com/shouldjs/should.js) by [Alex Varju](https://github.com/varju), [Maxime LUCE](https://github.com/SomaticIT) * [:link:](showdown/showdown.d.ts) [Showdown](https://github.com/coreyti/showdown) by [cbowdon](https://github.com/cbowdon) * [:link:](shuffle-array/shuffle-array.d.ts) [shuffle-array](https://github.com/pazguille/shuffle-array) by [rhysd](https://rhysd.github.io) * [:link:](siesta/siesta.d.ts) [Siesta](http://www.bryntum.com/products/siesta) by [bquarmby](https://github.com/bquarmby) * [:link:](sigmajs/sigmajs.d.ts) [sigma.js](https://github.com/jacomyal/sigma.js) by [Qinfeng Chen](https://github.com/qinfchen) -* [:link:](signalr/signalr.d.ts) [SignalR](http://www.asp.net/signalr) by [Boris Yankov](https://github.com/borisyankov), [T. Michael Keesey](https://github.com/keesey) +* [:link:](signalr/signalr.d.ts) [SignalR](http://www.asp.net/signalr) by [Boris Yankov](https://github.com/borisyankov), [T. Michael Keesey](https://github.com/keesey), [Giedrius Grabauskas](https://github.com/GiedriusGrabauskas) * [:link:](signature_pad/signature_pad.d.ts) [signature_pad](https://github.com/szimek/signature_pad) by [Abubaker Bashir](https://github.com/AbubakerB) * [:link:](simple-cw-node/simple-cw-node.d.ts) [simple-cw-node](https://github.com/astronaughts/simple-cw-node) by [vvakame](https://github.com/vvakame) * [:link:](simple-mock/simple-mock.d.ts) [simple-mock](https://github.com/jupiter/simple-mock) by [Leon Yu](https://github.com/leonyu) @@ -1334,19 +1536,23 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](sinon/sinon.d.ts) [Sinon](http://sinonjs.org) by [William Sears](https://github.com/mrbigdog2u) * [:link:](sinon-chai/sinon-chai.d.ts) [sinon-chai](https://github.com/domenic/sinon-chai) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid), [Jed Mao](https://github.com/jedmao) * [:link:](sinon-chrome/sinon-chrome.d.ts) [Sinon-Chrome](https://github.com/vitalets/sinon-chrome) by [Tim Perry](https://github.com/pimterry) +* [:link:](sinon-stub-promise/sinon-stub-promise.d.ts) [sinon-stub-promise](https://github.com/substantial/sinon-stub-promise) by [Thiago Temple](https://github.com/vintem) * [:link:](sipml/sipml.d.ts) [SIPml5](http://sipml5.org) by [A. Groenenboom](https://github.com/chookies) * [:link:](sjcl/sjcl.d.ts) [sjcl](http://crypto.stanford.edu/sjcl) by [Eugene Chernyshov](https://github.com/Evgenus) * [:link:](ski/ski.d.ts) [ski](https://github.com/jden/ski) by [Aya Morisawa](https://github.com/AyaMorisawa) * [:link:](skyway/skyway.d.ts) [SkyWay](http://nttcom.github.io/skyway) by [Toshiya Nakakura](https://github.com/nakakura) +* [:link:](slate-irc/slate-irc.d.ts) [slate-irc](https://github.com/slate/slate-irc) by [Elisée MAURER](https://github.com/elisee) * [:link:](slickgrid/SlickGrid.d.ts) [SlickGrid](https://github.com/mleibman/SlickGrid) by [Josh Baldwin](https://github.com/jbaldwin) * [:link:](slickgrid/slick.autotooltips.d.ts) [SlickGrid AutoToolTips Plugin](https://github.com/mleibman/SlickGrid) by [Ryo Iwamoto](https://github.com/ryiwamoto) * [:link:](slickgrid/slick.headerbuttons.d.ts) [SlickGrid HeaderButtons Plugin](https://github.com/mleibman/SlickGrid) by [Derek Cicerone](https://github.com/derekcicerone) * [:link:](slickgrid/slick.rowselectionmodel.d.ts) [SlickGrid RowSelectionModel Plugin](https://github.com/mleibman/SlickGrid) by [Derek Cicerone](https://github.com/derekcicerone) * [:link:](smoothie/smoothie.d.ts) [Smoothie Charts](https://github.com/joewalnes/smoothie) by [Drew Noakes](https://drewnoakes.com), [Mike H. Hawley](https://github.com/mikehhawley) +* [:link:](smtpapi/smtpapi.d.ts) [smtpapi-nodejs](https://github.com/sendgrid/smtpapi-nodejs) by [Antonio Morales](https://github.com/a-morales) * [:link:](snake-case/snake-case.d.ts) [snake-case](https://github.com/blakeembrey/snake-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](snapsvg/snapsvg.d.ts) [Snap-SVG](https://github.com/adobe-webplatform/Snap.svg) by [Lars Klein](https://github.com/lhk), [Mattanja Kern](https://github.com/mattanja) -* [:link:](socket.io/socket.io.d.ts) [socket.io](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages) -* [:link:](socket.io-client/socket.io-client.d.ts) [socket.io-client](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages) +* [:link:](soap/soap.d.ts) [soap](https://www.npmjs.com/package/soap) by [Nicole Wang](https://github.com/nicoleWjie) +* [:link:](socket.io/socket.io.d.ts) [socket.io](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages), [Florent Poujol](https://github.com/florentpoujol) +* [:link:](socket.io-client/socket.io-client.d.ts) [socket.io-client](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages), [Florent Poujol](https://github.com/florentpoujol) * [:link:](socket.io.users/socket.io.users.d.ts) [socket.io.users](https://github.com/nodets/socket.io.users) by [Makis Maropoulos](https://github.com/kataras) * [:link:](socketty/socketty.d.ts) [Socketty](https://www.npmjs.com/package/socketty) by [Nax](https://github.com/Nax) * [:link:](sockjs/sockjs.d.ts) [SockJS 0.3.x](https://github.com/sockjs/sockjs-client) by [Emil Ivanov](https://github.com/vladev) @@ -1357,9 +1563,11 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](source-map/source-map.d.ts) [source-map](https://github.com/mozilla/source-map) by [Morten Houston Ludvigsen](https://github.com/MortenHoustonLudvigsen) * [:link:](source-map-support/source-map-support.d.ts) [source-map-support](https://github.com/evanw/source-map-support) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](space-pen/space-pen.d.ts) [SpacePen](https://github.com/atom/space-pen) by [vvakame](https://github.com/vvakame) +* [:link:](speakeasy/speakeasy.d.ts) [speakeasy](https://github.com/markbao/speakeasy) by [Lucas Woo](https://github.com/legendecas) * [:link:](spectrum/spectrum.d.ts) [spectrum](https://github.com/bgrins/spectrum) by [Mordechai Zuber](https://github.com/M-Zuber) * [:link:](spin/spin.d.ts) [Spin.js](http://fgnass.github.com/spin.js) by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb) * [:link:](split/split.d.ts) [split](https://github.com/dominictarr/split) by [Marcin Porębski](https://github.com/marcinporebski) +* [:link:](spotify-web-api-js/spotify-web-api-js.d.ts) [spotify-web-api-js](https://github.com/JMPerez/spotify-web-api-js) by [Niels Kristian Hansen Skovmand](https://github.com/skovmand) * [:link:](sprintf-js/sprintf-js.d.ts) [sprintf-js](https://www.npmjs.com/package/sprintf-js) by [Jason Swearingen](https://jasonswearingen.github.io) * [:link:](sprintf/sprintf.d.ts) [sprintff](https://github.com/maritz/node-sprintff) by [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](sql.js/sql.js.d.ts) [sql.js](https://github.com/kripken/sql.js) by [George Wu](https://github.com/Hozuki) @@ -1428,6 +1636,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](tether-shepherd/tether-shepherd.d.ts) [Tether-Shepherd](http://github.hubspot.com/shepherd) by [Matt Gibbs](https://github.com/mtgibbs) * [:link:](text-buffer/text-buffer.d.ts) [text-buffer](https://github.com/atom/text-buffer) by [vvakame](https://github.com/vvakame) * [:link:](text-encoding/text-encoding.d.ts) [text-encoding](https://github.com/inexorabletash/text-encoding) by [MIZUNE Pine](https://github.com/pine613) +* [:link:](facebook-js-sdk/facebook-js-sdk.d.ts) [the Facebook Javascript SDK](https://developers.facebook.com/docs/javascript) by [Amrit Kahlon](https://github.com/amritk) * [:link:](spotify-api/spotify-api.d.ts) [The Spotify Web API](https://developer.spotify.com/web-api) by [Niels Kristian Hansen Skovmand](https://github.com/skovmand) * [:link:](threejs/three-FirstPersonControls.d.ts) [three.js](http://mrdoob.github.com/three.js) by [Poul Kjeldager Sørensen](https://github.com/s093294) * [:link:](threejs/three-canvasrenderer.d.ts) [three.js (CanvasRenderer.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/CanvasRenderer.js) by [Satoru Kimura](https://github.com/gyohk) @@ -1438,6 +1647,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](threejs/three-effectcomposer.d.ts) [three.js (EffectComposer.js)](https://github.com/mrdoob/three.js/blob/r68/examples/js/postprocessing/EffectComposer.js) by [Satoru Kimura](https://github.com/gyohk) * [:link:](threejs/three-maskpass.d.ts) [three.js (MaskPass.js)](https://github.com/mrdoob/three.js/blob/r68/examples/js/postprocessing/MaskPass.js) by [Satoru Kimura](https://github.com/gyohk) * [:link:](threejs/three-orbitcontrols.d.ts) [three.js (OrbitControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/OrbitControls.js) by [Satoru Kimura](https://github.com/gyohk) +* [:link:](threejs/three-orthographictrackballcontrols.d.ts) [three.js (OrthographicTrackballControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/OrthographicTrackballControls.js) by [Stefan Profanter](https://github.com/pro) * [:link:](threejs/three-projector.d.ts) [three.js (Projector.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/Projector.js) by [Satoru Kimura](https://github.com/gyohk) * [:link:](threejs/three-renderpass.d.ts) [three.js (RenderPass.js)](https://github.com/mrdoob/three.js/blob/r68/examples/js/postprocessing/RenderPass.js) by [Satoru Kimura](https://github.com/gyohk) * [:link:](threejs/three-shaderpass.d.ts) [three.js (ShaderPass.js)](https://github.com/mrdoob/three.js/blob/r68/examples/js/postprocessing/ShaderPass.js) by [Satoru Kimura](https://github.com/gyohk) @@ -1463,6 +1673,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](sencha_touch/SenchaTouch.d.ts) [Touch](http://www.sencha.com/products/touch) by [Brian Kotek](https://github.com/brian428) * [:link:](traceback/traceback.d.ts) [Traceback](http://github.com/iriscouch/traceback) by [Michael Zabka](https://github.com/misak113) * [:link:](tracking/tracking.d.ts) [Tracking.js](https://github.com/eduardolundgren/tracking.js) by [Tim Perry](https://github.com/pimterry) +* [:link:](traverse/traverse.d.ts) [traverse](https://github.com/substack/js-traverse) by [newclear](https://github.com/newclear) * [:link:](traverson/traverson.d.ts) [Traverson](https://github.com/basti1302/traverson) by [Marcin Porębski](https://github.com/marcinporebski) * [:link:](trunk8/trunk8.d.ts) [trunk8](https://github.com/rviscomi/trunk8) by [Blake Niemyjski](https://github.com/niemyjski) * [:link:](tsmonad/tsmonad.d.ts) [TsMonad](https://github.com/cbowdon/TsMonad) by [Chris Bowdon](https://github.com/cbowdon) @@ -1479,18 +1690,22 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](type-name/type-name.d.ts) [type-name](https://github.com/twada/type-name) by [OKUNOKENTARO](https://github.com/armorik83) * [:link:](typeahead/typeahead.d.ts) [typeahead.js](http://twitter.github.io/typeahead.js) by [Ivaylo Gochkov](https://github.com/igochkov), [Gidon Junge](https://github.com/gjunge) * [:link:](webfontloader/webfontloader.d.ts) [typekit-webfontloader](https://github.com/typekit/webfontloader) by [doskallemaskin](https://github.com/doskallemaskin) -* [:link:](typescript-services/typescriptServices.d.ts) [TypeScript API](http://www.typescriptlang.org) by [Microsoft TypeScript](http://typescriptlang.org) * [:link:](typescript/typescript.d.ts) [TypeScript API](http://www.typescriptlang.org) by [Microsoft TypeScript](http://typescriptlang.org) +* [:link:](typescript-services/typescriptServices.d.ts) [TypeScript API](http://www.typescriptlang.org) by [Microsoft TypeScript](http://typescriptlang.org) * [:link:](typescript-deferred/typescript-deferred.d.ts) [typescript-deferred](https://github.com/DirtyHairy/typescript-deferred) by [Christian Speckner](https://github.com/DirtyHairy) +* [:link:](meteor-persistent-session/meteor-persistent-session.d.ts) [u2622:persistent-session](https://github.com/okgrow/meteor-persistent-session) by [Robbie Van Gorkom](https://github.com/vangorra) +* [:link:](ua-parser-js/ua-parser-js.d.ts) [ua-parser-js](https://github.com/faisalman/ua-parser-js) by [Viktor Miroshnikov](https://github.com/superduper), [Lucas Woo](https://github.com/legendecas) * [:link:](unity-webapi/unity-webapi.d.ts) [Ubuntu Unity Web API](https://launchpad.net/libunity-webapps) by [John Vrbanac](https://github.com/jmvrbanac) +* [:link:](uglify-js/uglify-js.d.ts) [UglifyJS 2](https://github.com/mishoo/UglifyJS2) by [Tanguy Krotoff](https://github.com/tkrotoff) * [:link:](ui-grid/ui-grid.d.ts) [ui-grid](http://www.ui-grid.info) by [Ben Tesser](https://github.com/btesser), [Joe Skeen](http://github.com/joeskeen) * [:link:](ui-router-extras/ui-router-extras.d.ts) [UI-Router Extras (ct.ui.router.extras module)](https://github.com/christopherthielen/ui-router-extras) by [Michael Putters](https://github.com/mputters), [Marcel van de Kamp](https://github.com/marcel-k) +* [:link:](ui-select/ui-select.d.ts) [ui-select](https://github.com/angular-ui/ui-select) by [Niko Kovačič](https://github.com/nkovacic) * [:link:](uikit/uikit.d.ts) [uikit](http://getuikit.org) by [Giovanni Silva](https://github.com/giovannicandido) * [:link:](umbraco/umbraco-services.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland) * [:link:](umbraco/umbraco-resources.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland) * [:link:](umbraco/umbraco.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland) * [:link:](umzug/umzug.d.ts) [Umzug](https://github.com/sequelize/umzug) by [Ivan Drinchev](https://github.com/drinchev) -* [:link:](underscore/underscore.d.ts) [Underscore](http://underscorejs.org) by [Boris Yankov](https://github.com/borisyankov), [Josh Baldwin](https://github.com/jbaldwin) +* [:link:](underscore/underscore.d.ts) [Underscore](http://underscorejs.org) by [Boris Yankov](https://github.com/borisyankov), [Josh Baldwin](https://github.com/jbaldwin), [Christopher Currens](https://github.com/ccurrens) * [:link:](underscore-ko/underscore-ko.d.ts) [Underscore-ko 1.2.2 with underscore](https://github.com/kamranayub/UnderscoreKO) by [Maurits Elbers](https://github.com/MagicMau) * [:link:](underscore.string/underscore.string.d.ts) [underscore.string](https://github.com/epeli/underscore.string) by [Ry Racherbaumer](http://github.com/rygine) * [:link:](undertaker/undertaker.d.ts) [undertaker](https://github.com/phated/undertaker) by [Qubo](https://github.com/tkqubo) @@ -1512,9 +1727,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](usage/usage.d.ts) [usage](https://github.com/arunoda/node-usage) by [Pascal Vomhoff](https://github.com/pvomhoff) * [:link:](username/username.d.ts) [username](https://www.npmjs.com/package/username) by [Klaus Reimer](https://github.com/kayahr) * [:link:](utils-merge/utils-merge.d.ts) [utils-merge](https://github.com/jaredhanson/utils-merge) by [Ilya Mochalov](https://github.com/chrootsu) -* [:link:](uuid/UUID.d.ts) [UUID.js core](https://github.com/LiosK/UUID.js) by [Jason Jarrett](https://github.com/staxmanade) +* [:link:](uuid/UUID.d.ts) [UUID.js](https://github.com/LiosK/UUID.js) by [Jason Jarrett](https://github.com/staxmanade) * [:link:](valerie/valerie.d.ts) [valerie](https://github.com/davewatts/valerie) by [Howard Richards](https://github.com/conficient) -* [:link:](validator/validator.d.ts) [validator.js](https://github.com/chriso/validator.js) by [tgfjt](https://github.com/tgfjt) +* [:link:](validator/validator.d.ts) [validator.js](https://github.com/chriso/validator.js) by [tgfjt](https://github.com/tgfjt), [Ilya Mochalov](https://github.com/chrootsu) +* [:link:](vec3/vec3.d.ts) [Vec3 Librairy](https://www.npmjs.com/package/vec3) by [Xavier Stouder](https://github.com/xstoudi) * [:link:](vega/vega.d.ts) [Vega](http://trifacta.github.io/vega) by [Tom Crockett](http://github.com/pelotom) * [:link:](velocity-animate/velocity-animate.d.ts) [Velocity](http://velocityjs.org) by [Greg Smith](https://github.com/smrq) * [:link:](verror/verror.d.ts) [verror](https://github.com/davepacheco/node-verror) by [Sven Reglitzki](https://github.com/svi3c) @@ -1532,8 +1748,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](vortex-web-client/vortex-web-client.d.ts) [Vortex Web 1.2.0p1](http://www.prismtech.com/vortex/vortex-web) by [Stefan Profanter](https://github.com/Pro) * [:link:](voximplant-websdk/voximplant-websdk.d.ts) [VoxImplant Web SDK 3.0.x](http://voximplant.com) by [Alexey Aylarov](https://github.com/aylarov) * [:link:](vso-node-api/vso-node-api.d.ts) [vso-node-api](https://github.com/Microsoft/vso-node-api) by [Teddy Ward](https://github.com/teddyward) +* [:link:](vue-resource/vue-resource.d.ts) [vue-resoure](https://github.com/vuejs/vue-resource) by [kaorun343](https://github.com/kaorun343) * [:link:](vue-router/vue-router.d.ts) [vue-router](https://github.com/vuejs/vue-router) by [kaorun343](https://github.com/kaorun343) * [:link:](vue/vue.d.ts) [vuejs](https://github.com/vuejs/vue) by [odangosan](https://github.com/odangosan), [kaorun343](https://github.com/kaorun343) +* [:link:](w2ui/w2ui.d.ts) [w2ui](http://w2ui.com) by [Valentin Robert](https://github.com/Ptival) * [:link:](wake_on_lan/wake_on_lan.d.ts) [wake_on_lan](https://github.com/agnat/node_wake_on_lan) by [Tobias Kahlert](https://github.com/SrTobi) * [:link:](watch/watch.d.ts) [watch](https://github.com/mikeal/watch) by [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](jquery.watermark/jquery.watermark.d.ts) [Watermark plugin for jQuery](http://jquery-watermark.googlecode.com) by [Anwar Javed](https://github.com/anwarjaved) @@ -1552,14 +1770,17 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](webrtc/MediaStream.d.ts) [WebRTC](http://dev.w3.org/2011/webrtc) by [Ken Smith](https://github.com/smithkl42) * [:link:](websocket/websocket.d.ts) [websocket](https://github.com/Worlize/WebSocket-Node) by [Paul Loyd](https://github.com/loyd) * [:link:](websql/websql.d.ts) [websql](http://www.w3.org/TR/webdatabase) by [TeamworkGuy2](https://github.com/TeamworkGuy2) +* [:link:](webtorrent/webtorrent.d.ts) [WebTorrent](https://webtorrent.io) by [Bazyli Brzóska](https://invent.life) * [:link:](webvr-api/webvr-api.d.ts) [WebVR API](http://mozvr.github.io/webvr-spec/webvr.html) by [Toshiya Nakakura](https://github.com/nakakura) * [:link:](when/when.d.ts) [When](https://github.com/cujojs/when) by [Derek Cicerone](https://github.com/derekcicerone), [Wim Looman](https://github.com/Nemo157) * [:link:](which/which.d.ts) [which](https://github.com/isaacs/node-which) by [vvakame](https://github.com/vvakame) * [:link:](jquery.window/jquery.window.d.ts) [Window plugin for jQuery](http://fstoke.me/jquery/window) by [Ryan Graham](https://github.com/ryan-codingintrigue) * [:link:](windows-service/windows-service.d.ts) [windows-service](https://bitbucket.org/stephenwvickers/node-windows-service) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](winjs/winjs.d.ts) [WinJS](http://try.buildwinjs.com) by [TypeScript samples](https://www.typescriptlang.org), [Adam Hewitt](https://github.com/adamhewitt627), [Craig Treasure](https://github.com/craigktreasure), [Jeff Fisher](https://github.com/xirzec) +* [:link:](winreg/winreg.d.ts) [Winreg](https://github.com/fresc81/node-winreg) by [RX14](https://github.com/RX14) * [:link:](winrt/winrt.d.ts) [WinRT](http://msdn.microsoft.com/en-us/library/windows/apps/br211377.aspx) by [TypeScript samples](https://www.typescriptlang.org) * [:link:](winston/winston.d.ts) [winston](https://github.com/flatiron/winston) by [bonnici](https://github.com/bonnici), [Peter Harris](https://github.com/codeanimal) +* [:link:](wiredep/wiredep.d.ts) [Wiredep v3.0.x](https://github.com/taptapship/wiredep) by [Abraão Alves](http://abraaoalves.github.io) * [:link:](wolfy87-eventemitter/wolfy87-eventemitter.d.ts) [wolfy87-eventemitter](https://github.com/Wolfy87/EventEmitter) by [ryiwamoto](https://github.com/ryiwamoto) * [:link:](wordcloud/wordcloud.d.ts) [wordcloud](https://github.com/timdream/wordcloud2.js) by [Joe Skeen](http://github.com/joeskeen) * [:link:](wreck/wreck.d.ts) [wreck](https://github.com/hapijs/wreck) by [Marcin Porębski](http://github.com/marcinporebski) @@ -1569,10 +1790,13 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](x-editable/x-editable.d.ts) [X-Editable](http://vitalets.github.io/x-editable/index.html) by [Chris Kirby](https://github.com/sirkirby) * [:link:](x2js/xml2json.d.ts) [x2js](https://code.google.com/p/x2js) by [Horiuchi_H](https://github.com/horiuchi) * [:link:](xdate/xdate.d.ts) [XDate](http://arshaw.com/xdate) by [yamada28go](https://github.com/yamada28go) +* [:link:](xdomain/xdomain.d.ts) [xdomain](http://jpillora.com/xdomain) by [Dan Chao](http://dchao.co) * [:link:](jsfl/xJSFL.d.ts) [xJSFL](http://www.xjsfl.com) by [soywiz](https://github.com/soywiz) * [:link:](xlsx/xlsx.d.ts) [xlsx](https://github.com/SheetJS/js-xlsx) by [themauveavenger](https://github.com/themauveavenger) * [:link:](xml-parser/xml-parser.d.ts) [xml-parser](https://github.com/segmentio/xml-parser) by [Matt Frantz](https://github.com/mhfrantz) * [:link:](xmlbuilder/xmlbuilder.d.ts) [xmlbuilder](https://github.com/oozcitak/xmlbuilder-js) by [Wallymathieu](http://github.com/wallymathieu) +* [:link:](xmldom/xmldom.d.ts) [xmldom](https://github.com/jindw/xmldom.git) by [Qubo](https://github.com/tkqubo) +* [:link:](xmltojson/xmltojson.d.ts) [xmltojson](https://github.com/metatribal/xmlToJSON) by [Travis Crowe](https://github.com/traviscrowe) * [:link:](xpath/xpath.d.ts) [xpath](https://github.com/goto100/xpath) by [Andrew Bradley](https://github.com/cspotcode) * [:link:](xregexp/xregexp.d.ts) [XRegExp](http://xregexp.com) by [Bart van der Schoor](https://github.com/Bartvds), [Johannes Fahrenkrug](https://github.com/jfahrenkrug) * [:link:](xsockets/XSockets.d.ts) [XSockets.NET](http://xsockets.net) by [Jeffery Grajkowski](https://github.com/pushplay) @@ -1581,6 +1805,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](yargs/yargs.d.ts) [yargs](https://github.com/chevex/yargs) by [Martin Poelstra](https://github.com/poelstra) * [:link:](ydn-db/ydn-db.d.ts) [YDN-DB version 1](http://dev.yathit.com/ydn-db/index.html) by [Kyaw Tun](https://github.com/yathit), [Gabriel Monteagudo](https://github.com/gabrielmaldi) * [:link:](yeoman-generator/yeoman-generator.d.ts) [yeoman-generator](https://github.com/yeoman/generator) by [Kentaro Okuno](http://github.com/armorik83) +* [:link:](yfiles/yfiles.d.ts) [yFiles for HTML](http://www.yworks.com/products/yfiles-for-html) by [yWorks GmbH](http://www.yworks.com) * [:link:](yosay/yosay.d.ts) [yosay](https://github.com/yeoman/yosay) by [Kentaro Okuno](http://github.com/armorik83) * [:link:](youtube/youtube.d.ts) [YouTube](https://developers.google.com/youtube) by [Daz Wilkin](https://github.com/DazWilkin), [Ian Obermiller](http://ianobermiller.com) * [:link:](gapi.youtubeAnalytics/gapi.youtubeAnalytics.d.ts) [YouTube Analytics API](https://developers.google.com/youtube/analytics) by [Frank M](https://github.com/sgtfrankieboy) @@ -1596,5 +1821,4 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](scroller/scroller.d.ts) [Zynga Scroller](https://github.com/zynga/scroller) by [Boris Yankov](https://github.com/borisyankov) * [:link:](zynga-scroller/zynga-scroller.d.ts) [Zynga Scroller](http://zynga.github.com/scroller) by [Marcelo Haskell Camargo](https://github.com/haskellcamargo) * [:link:](viewporter/viewporter.d.ts) [Zynga Viewporter](https://github.com/zynga/viewporter) by [Boris Yankov](https://github.com/borisyankov) -* [:link:](flickity/flickity.d.ts) [Flickity](https://github.com/metafizzy/flickity) by [Chris McGrath](https://github.com/clmcgrath) diff --git a/DataStream.js/DataStream.js.d.ts b/DataStream.js/DataStream.js.d.ts index 7981cc809a..aeab572d96 100644 --- a/DataStream.js/DataStream.js.d.ts +++ b/DataStream.js/DataStream.js.d.ts @@ -1,7 +1,7 @@ // Type definitions for DataStream.js // Project: https://github.com/kig/DataStream.js // Definitions by: Tat -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class DataStream { diff --git a/FileSaver/FileSaver.d.ts b/FileSaver/FileSaver.d.ts index fa5f31947e..6919fa385f 100644 --- a/FileSaver/FileSaver.d.ts +++ b/FileSaver/FileSaver.d.ts @@ -1,7 +1,7 @@ // Type definitions for FileSaver.js // Project: https://github.com/eligrey/FileSaver.js/ // Definitions by: Cyril Schumacher -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * @summary Interface for "saveAs" function. diff --git a/Finch/Finch.d.ts b/Finch/Finch.d.ts index ca896570f1..f55b654aae 100644 --- a/Finch/Finch.d.ts +++ b/Finch/Finch.d.ts @@ -1,7 +1,7 @@ // Type definitions for Finch 0.5.13 // Project: https://github.com/stoodder/finchjs // Definitions by: David Sichau -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface FinchCallback { diff --git a/Headroom/headroom.d.ts b/Headroom/headroom.d.ts index b4fc3133e7..ac505fac18 100644 --- a/Headroom/headroom.d.ts +++ b/Headroom/headroom.d.ts @@ -1,7 +1,7 @@ // Type definitions for headroom.js v0.7.0 // Project: http://wicky.nillia.ms/headroom.js/ // Definitions by: Jakub Olek -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface HeadroomOptions { offset?: number; diff --git a/HubSpot-pace/HubSpot-pace.d.ts b/HubSpot-pace/HubSpot-pace.d.ts index e10e0316ac..7770ba68cc 100644 --- a/HubSpot-pace/HubSpot-pace.d.ts +++ b/HubSpot-pace/HubSpot-pace.d.ts @@ -3,7 +3,7 @@ // Definitions by: Borislav Zhivkov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module HubSpotPaceInterfaces { +declare namespace HubSpotPaceInterfaces { interface PaceOptions { /** * How long should it take for the bar to animate to a new point after receiving it diff --git a/JSONStream/JSONStream.d.ts b/JSONStream/JSONStream.d.ts index 869f965f45..029e5b8e9c 100644 --- a/JSONStream/JSONStream.d.ts +++ b/JSONStream/JSONStream.d.ts @@ -1,7 +1,7 @@ // 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 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/OpenJsCad/openjscad.d.ts b/OpenJsCad/openjscad.d.ts index 072fa10b5a..c0bdbdc1f9 100644 --- a/OpenJsCad/openjscad.d.ts +++ b/OpenJsCad/openjscad.d.ts @@ -1,10 +1,10 @@ // Type definitions for OpenJsCad.js // Project: https://github.com/joostn/OpenJsCad // Definitions by: Dan Marshall -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module THREE { +declare namespace THREE { var CSG: { fromCSG: (csg: CSG, defaultColor: any) => { colorMesh: Mesh; @@ -144,7 +144,7 @@ declare module THREE { function RenderableSprite(): void; function Projector(): void; } -declare module OpenJsCad { +declare namespace OpenJsCad { interface ILog { (x: string): void; prevLogTime?: number; @@ -404,7 +404,7 @@ declare class CSG extends CxG implements ICenter { toStlString(): string; toAMFString(m: IAMFStringOptions): Blob; } -declare module CSG { +declare namespace CSG { function fnNumberSort(a: any, b: any): number; function parseOption(options: any, optionname: any, defaultvalue: any): any; function parseOptionAs3DVector(options: any, optionname: any, defaultvalue: any): Vector3D; @@ -546,7 +546,7 @@ declare module CSG { toStlString(): string; } } -declare module CSG.Polygon { +declare namespace CSG.Polygon { class Shared { color: any; tag: any; @@ -557,7 +557,7 @@ declare module CSG.Polygon { getHash(): any; } } -declare module CSG { +declare namespace CSG { class PolygonTreeNode { parent: any; children: any; @@ -869,7 +869,7 @@ declare class CAG extends CxG implements ICenter { toDxf(): Blob; static PathsToDxf(paths: CSG.Path2D[]): Blob; } -declare module CAG { +declare namespace CAG { class Vertex { pos: CSG.Vector2D; tag: number; @@ -905,7 +905,7 @@ interface CAG_extrude_options { twistangle?: number; twiststeps?: number; } -declare module CSG { +declare namespace CSG { class Polygon2D extends CAG { constructor(points: Vector2D[]); } diff --git a/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin.d.ts b/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin.d.ts index 07c172d558..41bd1d1632 100644 --- a/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin.d.ts +++ b/PayPal-Cordova-Plugin/PayPal-Cordova-Plugin.d.ts @@ -1,13 +1,13 @@ // Type definitions for PayPal-Cordova-Plugin 3.1.10 // Project: https://github.com/paypal/PayPal-Cordova-Plugin // Definitions by: Justin Unterreiner -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //#region paypal-mobile-js-helper.js /** * The PayPalItem class defines an optional itemization for a payment. - * + * * @see https://developer.paypal.com/docs/api/#item-object for more details. */ declare class PayPalItem { @@ -51,7 +51,7 @@ declare class PayPalItem { /** * The PayPalPaymentDetails class defines optional amount details. - * + * * @see https://developer.paypal.com/webapps/developer/docs/api/#details-object for more details. */ declare class PayPalPaymentDetails { @@ -256,18 +256,18 @@ declare class PayPalConfiguration { /** * For single payments, options for the shipping address. - * + * * - 0 - PayPalShippingAddressOptionNone: no shipping address applies. - * + * * - 1 - PayPalShippingAddressOptionProvided: shipping address will be provided by your app, * in the shippingAddress property of PayPalPayment. - * + * * - 2 - PayPalShippingAddressOptionPayPal: user will choose from shipping addresses on file * for their PayPal account. - * + * * - 3 - PayPalShippingAddressOptionBoth: user will choose from the shipping address provided by your app, * in the shippingAddress property of PayPalPayment, plus the shipping addresses on file for the user's PayPal account. - * + * * Defaults to 0 (PayPalShippingAddressOptionNone). */ payPalShippingAddressOption: number; @@ -277,26 +277,26 @@ declare class PayPalConfiguration { * the SDK will remember the user's PayPal username or phone number; * if the user pays via their credit card, then the SDK will remember * the PayPal Vault token representing the user's credit card. - * + * * If set to false, then any previously-remembered username, phone number, or * credit card token will be erased, and subsequent payment information will * not be remembered. - * + * * Defaults to true. */ rememberUser: boolean; /** * If not set, or if set to nil, defaults to the device's current language setting. - * + * * Can be specified as a language code ("en", "fr", "zh-Hans", etc.) or as a locale ("en_AU", "fr_FR", "zh-Hant_HK", etc.). * If the library does not contain localized strings for a specified locale, then will fall back to the language. E.g., "es_CO" -> "es". * If the library does not contain localized strings for a specified language, then will fall back to American English. - * + * * If you specify only a language code, and that code matches the device's currently preferred language, * then the library will attempt to use the device's current region as well. * E.g., specifying "en" on a device set to "English" and "United Kingdom" will result in "en_GB". - * + * * These localizations are currently included: * da,de,en,en_AU,en_GB,en_SV,es,es_MX,fr,he,it,ja,ko,nb,nl,pl,pt,pt_BR,ru,sv,tr,zh-Hans,zh-Hant_HK,zh-Hant_TW. */ @@ -319,7 +319,7 @@ declare class PayPalConfiguration { /** * Sandbox credentials can be difficult to type on a mobile device. Setting this flag to true will * cause the sandboxUserPassword and sandboxUserPin to always be pre-populated into login fields. - * + * * This setting will have no effect if the operation mode is production. * Defaults to false. */ @@ -385,18 +385,18 @@ interface PayPalConfigurationOptions { /** * For single payments, options for the shipping address. - * + * * - 0 - PayPalShippingAddressOptionNone?: no shipping address applies. - * + * * - 1 - PayPalShippingAddressOptionProvided?: shipping address will be provided by your app, * in the shippingAddress property of PayPalPayment. - * + * * - 2 - PayPalShippingAddressOptionPayPal?: user will choose from shipping addresses on file * for their PayPal account. - * + * * - 3 - PayPalShippingAddressOptionBoth?: user will choose from the shipping address provided by your app, * in the shippingAddress property of PayPalPayment, plus the shipping addresses on file for the user's PayPal account. - * + * * Defaults to 0 (PayPalShippingAddressOptionNone). */ payPalShippingAddressOption?: number; @@ -406,26 +406,26 @@ interface PayPalConfigurationOptions { * the SDK will remember the user's PayPal username or phone number; * if the user pays via their credit card, then the SDK will remember * the PayPal Vault token representing the user's credit card. - * + * * If set to false, then any previously-remembered username, phone number, or * credit card token will be erased, and subsequent payment information will * not be remembered. - * + * * Defaults to true. */ rememberUser?: boolean; /** * If not set, or if set to nil, defaults to the device's current language setting. - * + * * Can be specified as a language code ("en", "fr", "zh-Hans", etc.) or as a locale ("en_AU", "fr_FR", "zh-Hant_HK", etc.). * If the library does not contain localized strings for a specified locale, then will fall back to the language. E.g., "es_CO" -> "es". * If the library does not contain localized strings for a specified language, then will fall back to American English. - * + * * If you specify only a language code, and that code matches the device's currently preferred language, * then the library will attempt to use the device's current region as well. * E.g., specifying "en" on a device set to "English" and "United Kingdom" will result in "en_GB". - * + * * These localizations are currently included: * da,de,en,en_AU,en_GB,en_SV,es,es_MX,fr,he,it,ja,ko,nb,nl,pl,pt,pt_BR,ru,sv,tr,zh-Hans,zh-Hant_HK,zh-Hant_TW. */ @@ -448,7 +448,7 @@ interface PayPalConfigurationOptions { /** * Sandbox credentials can be difficult to type on a mobile device. Setting this flag to true will * cause the sandboxUserPassword and sandboxUserPin to always be pre-populated into login fields. - * + * * This setting will have no effect if the operation mode is production. * Defaults to false. */ @@ -469,7 +469,7 @@ interface PayPalConfigurationOptions { //#region cdv-plugin-paypal-mobile-sdk.js -declare module PayPalCordovaPlugin { +declare namespace PayPalCordovaPlugin { export interface PayPalClientIds { PayPalEnvironmentProduction: string; @@ -545,7 +545,7 @@ declare module PayPalCordovaPlugin { * the recommended time to preconnect is on page load. * * @param environment available options are "PayPalEnvironmentNoNetwork", "PayPalEnvironmentProduction" and "PayPalEnvironmentSandbox" - * @param configuration PayPalConfiguration object, for Future Payments merchantName, merchantPrivacyPolicyURL + * @param configuration PayPalConfiguration object, for Future Payments merchantName, merchantPrivacyPolicyURL * and merchantUserAgreementURL must be set be set * @param completionCallback a callback function on success */ @@ -592,7 +592,7 @@ declare module PayPalCordovaPlugin { /** * Please Read Docs on Future Payments at https://github.com/paypal/PayPal-iOS-SDK#future-payments - * + * * @param completionCallback a callback function accepting a js object with future payment authorization * @param cancelCallback a callback function accepting a reason string, called when the user canceled without agreement */ @@ -600,7 +600,7 @@ declare module PayPalCordovaPlugin { /** * Please Read Docs on Profile Sharing at https://github.com/paypal/PayPal-iOS-SDK#profile-sharing - * + * * @param scopes scopes Set of requested scope-values. Accepted scopes are: openid, profile, address, email, phone, futurepayments and paypalattributes * See https://developer.paypal.com/docs/integration/direct/identity/attributes/ for more details * @param completionCallback a callback function accepting a js object with future payment authorization diff --git a/README.md b/README.md index 47c56482c5..5c218aaa19 100644 --- a/README.md +++ b/README.md @@ -32,7 +32,7 @@ Please see the [contribution guide](http://definitelytyped.org/guides/contributi ## Requested definitions -Here is are the [currently requested definitions](https://github.com/borisyankov/DefinitelyTyped/labels/Definition%3ARequest). +Here is are the [currently requested definitions](https://github.com/DefinitelyTyped/DefinitelyTyped/labels/Definition%3ARequest). ## License diff --git a/_debugger/_debugger.d.ts b/_debugger/_debugger.d.ts index 15ed8bfcf1..14bf5d49c7 100644 --- a/_debugger/_debugger.d.ts +++ b/_debugger/_debugger.d.ts @@ -1,11 +1,11 @@ // Type definitions for Node.js debugger API // Project: http://nodejs.org/ // Definitions by: Basarat Ali Syed -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module NodeJS { +declare namespace NodeJS { export module _debugger { export interface Packet { raw: string; diff --git a/acc-wizard/acc-wizard.d.ts b/acc-wizard/acc-wizard.d.ts index f6235d2caf..9c20bf3e5f 100644 --- a/acc-wizard/acc-wizard.d.ts +++ b/acc-wizard/acc-wizard.d.ts @@ -1,7 +1,7 @@ // Type definitions for acc-wizard // Project: https://github.com/sathomas/acc-wizard // Definitions by: Cyril Schumacher -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface AccWizardOptions { /** diff --git a/accounting/accounting.d.ts b/accounting/accounting.d.ts index 6751040475..b8187e41c4 100644 --- a/accounting/accounting.d.ts +++ b/accounting/accounting.d.ts @@ -1,7 +1,7 @@ // Type definitions for accounting.js 0.3.2 // Project: http://josscrowcroft.github.io/accounting.js/ // Definitions by: Sergey Gerasimov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface IAccountingCurrencyFormat { pos: string; // for positive values, eg. "$ 1.00" diff --git a/ace/ace.d.ts b/ace/ace.d.ts index 8fed295f20..4a137075b0 100644 --- a/ace/ace.d.ts +++ b/ace/ace.d.ts @@ -1,9 +1,9 @@ // Type definitions for Ace Ajax.org Cloud9 Editor // Project: http://ace.ajax.org/ // Definitions by: Diullei Gomes -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module AceAjax { +declare namespace AceAjax { export interface Delta { action: string; @@ -653,7 +653,7 @@ declare module AceAjax { * @param type Identify the type of the marker * @param inFront Set to `true` to establish a front marker **/ - addMarker(range: Range, clazz: string, type: Function, inFront: boolean): void; + addMarker(range: Range, clazz: string, type: Function, inFront: boolean): number; /** * Adds a new marker to the given `Range`. If `inFront` is `true`, a front marker is defined, and the `'changeFrontMarker'` event fires; otherwise, the `'changeBackMarker'` event fires. @@ -662,7 +662,7 @@ declare module AceAjax { * @param type Identify the type of the marker * @param inFront Set to `true` to establish a front marker **/ - addMarker(range: Range, clazz: string, type: string, inFront: boolean): void; + addMarker(range: Range, clazz: string, type: string, inFront: boolean): number; /** * Adds a dynamic marker to the session. diff --git a/acl/acl.d.ts b/acl/acl.d.ts index 66fee09d14..06defa2449 100644 --- a/acl/acl.d.ts +++ b/acl/acl.d.ts @@ -1,7 +1,7 @@ // Type definitions for node_acl 0.4.7 // Project: https://github.com/optimalbits/node_acl // Definitions by: Qubo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// diff --git a/acorn/acorn.d.ts b/acorn/acorn.d.ts index 315d107185..755aab2a54 100644 --- a/acorn/acorn.d.ts +++ b/acorn/acorn.d.ts @@ -1,11 +1,11 @@ // Type definitions for Acorn v1.0.1 // Project: https://github.com/marijnh/acorn // Definitions by: RReverser -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module acorn { +declare namespace acorn { var version: string; function parse(input: string, options?: Options): ESTree.Program; function parseExpressionAt(input: string, pos: number, options?: Options): ESTree.Expression; diff --git a/adal-angular/adal-angular-tests.ts b/adal-angular/adal-angular-tests.ts new file mode 100644 index 0000000000..930d94388f --- /dev/null +++ b/adal-angular/adal-angular-tests.ts @@ -0,0 +1,46 @@ +/// + +// Code samples from: +// - https://github.com/AzureAD/azure-activedirectory-library-for-js +// - https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp + +// Variable provided by AngularJS +var $httpProvider: angular.IHttpProvider = null; +var adalAuthenticationServiceProvider: adal.AdalAuthenticationServiceProvider = null; +var adalAuthenticationService: adal.AdalAuthenticationService = null; + +var endpoints = { + "https://yourhost/api": "b6a68585-5287-45b2-ba82-383ba1f60932", +}; +adalAuthenticationServiceProvider.init({ + tenant: "52d4b072-9470-49fb-8721-bc3a1c9912a1", + clientId: "e9a5a8b6-8af7-4719-9821-0deef255f68e", + endpoints: endpoints + }, + $httpProvider +); + +adalAuthenticationServiceProvider.init({ + clientId: "e9a5a8b6-8af7-4719-9821-0deef255f68e" + }, + $httpProvider +); + +adalAuthenticationServiceProvider.init( + { + clientId: 'cb68f72f...', + cacheLocation: 'localStorage' + }, + $httpProvider // pass http provider to inject request interceptor to attach tokens +); + +adalAuthenticationServiceProvider.init({ + tenant: 'Enter your tenant name here e.g. contoso.onmicrosoft.com', + clientId: 'Enter your client ID here e.g. e9a5a8b6-8af7-4719-9821-0deef255f68e', + extraQueryParameter: 'nux=1' + }, + $httpProvider +); + +adalAuthenticationService.login(); +adalAuthenticationService.logOut(); diff --git a/adal-angular/adal-angular.d.ts b/adal-angular/adal-angular.d.ts new file mode 100644 index 0000000000..1d0b88d55a --- /dev/null +++ b/adal-angular/adal-angular.d.ts @@ -0,0 +1,40 @@ +// Type definitions for ADAL.JS 1.0.8 +// Project: https://github.com/AzureAD/azure-activedirectory-library-for-js +// Definitions by: mmaitre314 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +/// + +declare namespace adal { + + interface AdalAuthenticationServiceProvider { + init(configOptions: Config, httpProvider: angular.IHttpProvider): void; + } + + interface UserInfo { + isAuthenticated: boolean, + userName: string, + loginError: string, + profile: any + } + + interface AdalAuthenticationService { + + config: Config; + userInfo: UserInfo, + + login(): void; + loginInProgress(): boolean; + logOut(): void; + getCachedToken(resource: string): string; + acquireToken(resource: string): angular.IPromise; + getUser(): angular.IPromise; + getResourceForEndpoint(endpoint: string): string, + clearCache(): void; + clearCacheForResource(resource: string): void; + info(message: string): void; + verbose(message: string): void; + } + +} \ No newline at end of file diff --git a/adal-angular/adal-tests.ts b/adal-angular/adal-tests.ts new file mode 100644 index 0000000000..598134d0a0 --- /dev/null +++ b/adal-angular/adal-tests.ts @@ -0,0 +1,15 @@ +/// + +var endpoints = { + "https://yourhost/api": "b6a68585-5287-45b2-ba82-383ba1f60932", +}; + +var config : adal.Config = { + tenant: "52d4b072-9470-49fb-8721-bc3a1c9912a1", // Optional by default, it sends common + clientId: "e9a5a8b6-8af7-4719-9821-0deef255f68e", // Required + endpoints: endpoints // If you need to send CORS api requests. +}; + +var auth = new AuthenticationContext(config); + +var userName: string = auth.getCachedUser().userName; \ No newline at end of file diff --git a/adal-angular/adal.d.ts b/adal-angular/adal.d.ts new file mode 100644 index 0000000000..c5a64efd0b --- /dev/null +++ b/adal-angular/adal.d.ts @@ -0,0 +1,146 @@ +// Type definitions for ADAL.JS 1.0.8 +// Project: https://github.com/AzureAD/azure-activedirectory-library-for-js +// Definitions by: mmaitre314 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare var AuthenticationContext: adal.AuthenticationContextStatic; + +declare module 'adal' { + export = AuthenticationContext; +} + +declare namespace adal { + + interface Config { + tenant?: string, + clientId: string, + redirectUri?: string, + cacheLocation?: string, + displayCall?: (urlNavigate: string) => any, + correlationId?: string, + loginResource?: string, + resource?: string + endpoints?: any // If you need to send CORS api requests. + extraQueryParameter?: string + } + + interface User { + userName: string, + profile: any + } + + interface RequestInfo { + valid: boolean, + parameters: any, + stateMatch: boolean, + stateResponse: string, + requestType: string + } + + interface AuthenticationContextStatic { + new (config: Config): AuthenticationContext; + } + + interface AuthenticationContext { + + instance: string; + config: Config; + + /** + * Gets initial Idtoken for the app backend + * Saves the resulting Idtoken in localStorage. + */ + login(): void; + loginInProgress(): boolean; + + /** + * Gets token for the specified resource from local storage cache + * @param {string} resource A URI that identifies the resource for which the token is valid. + * @returns {string} token if exists and not expired or null + */ + getCachedToken(resource: string): string; + + /** + * Retrieves and parse idToken from localstorage + * @returns {User} user object + */ + getCachedUser(): User; + + registerCallback(expectedState: string, resource: string, callback: (message: string, token: string) => any): void; + + /** + * Acquire token from cache if not expired and available. Acquires token from iframe if expired. + * @param {string} resource ResourceUri identifying the target resource + * @param {requestCallback} callback + */ + acquireToken(resource: string, callback: (message: string, token: string) => any): void; + + /** + * Redirect the Browser to Azure AD Authorization endpoint + * @param {string} urlNavigate The authorization request url + */ + promptUser(urlNavigate: string): void; + + /** + * Clear cache items. + */ + clearCache(): void; + + /** + * Clear cache items for a resource. + */ + clearCacheForResource(resource: string): void; + + /** + * Logout user will redirect page to logout endpoint. + * After logout, it will redirect to post_logout page if provided. + */ + logOut(): void; + + /** + * Gets a user profile + * @param {requestCallback} callback - The callback that handles the response. + */ + getUser(callback: (message: string, user?: User) => any): void; + + /** + * Checks if hash contains access token or id token or error_description + * @param {string} hash - Hash passed from redirect page + * @returns {Boolean} + */ + isCallback(hash: string): boolean; + + /** + * Gets login error + * @returns {string} error message related to login + */ + getLoginError(): string; + + /** + * Gets requestInfo from given hash. + * @returns {string} error message related to login + */ + getRequestInfo(hash: string): string; + + /** + * Saves token from hash that is received from redirect. + */ + saveTokenFromHash(requestInfo: RequestInfo): void; + + /** + * Gets resource for given endpoint if mapping is provided with config. + * @param {string} endpoint - API endpoint + * @returns {string} resource for this API endpoint + */ + getResourceForEndpoint(endpoint: string): string; + + handleWindowCallback(): void; + + log(level: number, message: string, error: any): void; + error(message: string, error: any): void; + warn(message: string): void; + info(message: string): void; + verbose(message: string): void; + } + +} diff --git a/add2home/add2home.d.ts b/add2home/add2home.d.ts index e1e9548f11..1740a3e63e 100644 --- a/add2home/add2home.d.ts +++ b/add2home/add2home.d.ts @@ -1,7 +1,7 @@ // Type definitions for add2home v2.0.5 // Project: http://cubiq.org/add-to-home-screen // Definitions by: James Wilkins -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var addToHome: { /** Shows the popup. diff --git a/adm-zip/adm-zip.d.ts b/adm-zip/adm-zip.d.ts index a42978ca80..19298149c3 100644 --- a/adm-zip/adm-zip.d.ts +++ b/adm-zip/adm-zip.d.ts @@ -1,7 +1,7 @@ // Type definitions for adm-zip v0.4.4 // Project: https://github.com/cthackers/adm-zip // Definitions by: John Vilk , Abner Oliveira -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -216,7 +216,7 @@ declare module "adm-zip" { * @param targetPath Target location * @param overwrite If the file already exists at the target path, the file * will be overwriten if this is true. Default is FALSE - * @param callback The callback function will be called afeter extraction + * @param callback The callback function will be called afeter extraction */ extractAllToAsync(targetPath: string, overwrite: boolean, callback: (error: Error) => void): void; /** @@ -233,7 +233,7 @@ declare module "adm-zip" { toBuffer(): Buffer; } - module AdmZip { + namespace AdmZip { /** * The ZipEntry is more than a structure representing the entry inside the * zip file. Beside the normal attributes and headers a entry can have, the diff --git a/ag-grid/ag-grid.d-2.1.2.ts b/ag-grid/ag-grid.d-2.1.2.ts index f385a90f44..615dc066cb 100644 --- a/ag-grid/ag-grid.d-2.1.2.ts +++ b/ag-grid/ag-grid.d-2.1.2.ts @@ -1,8 +1,9 @@ // Type definitions for ag-grid v2.1.2 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby -// Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module ag.grid { +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace ag.grid { class ColumnChangeEvent { private type; private column; @@ -28,7 +29,7 @@ declare module ag.grid { isIndividualColumnResized(): boolean; } } -declare module ag.grid { +declare namespace ag.grid { class Utils { private static isSafari; private static isIE; @@ -84,7 +85,7 @@ declare module ag.grid { static isBrowserSafari(): boolean; } } -declare module ag.grid { +declare namespace ag.grid { class Constants { static STEP_EVERYTHING: number; static STEP_FILTER: number; @@ -109,7 +110,7 @@ declare module ag.grid { static KEY_RIGHT: number; } } -declare module ag.grid { +declare namespace ag.grid { class Column { static colIdSequence: number; colDef: ColDef; @@ -128,7 +129,7 @@ declare module ag.grid { setMinimum(): void; } } -declare module ag.grid { +declare namespace ag.grid { class ColumnGroup { pinned: any; name: any; @@ -146,7 +147,7 @@ declare module ag.grid { addToVisibleColumns(colsToAdd: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class GridOptionsWrapper { private gridOptions; private groupHeaders; @@ -230,7 +231,7 @@ declare module ag.grid { private getCallbackForEvent(eventName); } } -declare module ag.grid { +declare namespace ag.grid { class LoggerFactory { private logging; init(gridOptionsWrapper: GridOptionsWrapper): void; @@ -243,7 +244,7 @@ declare module ag.grid { log(message: string): void; } } -declare module ag.grid { +declare namespace ag.grid { class Events { /** A new set of columns has been entered, everything has potentially changed. */ static EVENT_COLUMN_EVERYTHING_CHANGED: string; @@ -279,7 +280,7 @@ declare module ag.grid { static EVENT_READY: string; } } -declare module ag.grid { +declare namespace ag.grid { class EventService { private allListeners; private globalListeners; @@ -291,7 +292,7 @@ declare module ag.grid { dispatchEvent(eventType: string, event?: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class MasterSlaveService { private gridOptionsWrapper; private columnController; @@ -308,7 +309,7 @@ declare module ag.grid { onColumnEvent(event: ColumnChangeEvent): void; } } -declare module ag.grid { +declare namespace ag.grid { class ColumnApi { private _columnController; constructor(_columnController: ColumnController); @@ -407,7 +408,7 @@ declare module ag.grid { private getTotalColWidth(includePinned); } } -declare module ag.grid { +declare namespace ag.grid { interface CsvExportParams { skipHeader?: boolean; skipFooters?: boolean; @@ -426,7 +427,7 @@ declare module ag.grid { private escape(value); } } -declare module ag.grid { +declare namespace ag.grid { class ExpressionService { private expressionToFunctionCache; private logger; @@ -436,13 +437,13 @@ declare module ag.grid { private createFunctionBody(expression); } } -declare module ag.grid { +declare namespace ag.grid { interface TextAndNumberFilterParameters { /** What to do when new rows are loaded. The default is to reset the filter, to keep it in line with 'set' filters. If you want to keep the selection, then set this value to 'keep'. */ newRowsAction?: string; } } -declare module ag.grid { +declare namespace ag.grid { class TextFilter implements Filter { private filterParams; private filterChangedCallback; @@ -473,7 +474,7 @@ declare module ag.grid { private getApi(); } } -declare module ag.grid { +declare namespace ag.grid { class NumberFilter implements Filter { private filterParams; private filterChangedCallback; @@ -504,7 +505,7 @@ declare module ag.grid { private getApi(); } } -declare module ag.grid { +declare namespace ag.grid { interface ColDef { /** If sorting by default, set it here. Set to 'asc' or 'desc' */ sort?: string; @@ -594,7 +595,7 @@ declare module ag.grid { onCellContextMenu?: Function; } } -declare module ag.grid { +declare namespace ag.grid { class SetFilterModel { private colDef; private filterParams; @@ -635,7 +636,7 @@ declare module ag.grid { } } /** The filter parameters for set filter */ -declare module ag.grid { +declare namespace ag.grid { interface SetFilterParameters { /** Same as cell renderer for grid (you can use the same one in both locations). Setting it separatly here allows for the value to be rendered differently in the filter. */ cellRenderer?: Function; @@ -649,7 +650,7 @@ declare module ag.grid { suppressRemoveEntries?: boolean; } } -declare module ag.grid { +declare namespace ag.grid { class SetFilter implements Filter { private eGui; private filterParams; @@ -697,7 +698,7 @@ declare module ag.grid { private createApi(); } } -declare module ag.grid { +declare namespace ag.grid { class PopupService { private ePopupParent; init(ePopupParent: any): void; @@ -705,7 +706,7 @@ declare module ag.grid { addAsModalPopup(eChild: any, closeOnEsc: boolean): (event: any) => void; } } -declare module ag.grid { +declare namespace ag.grid { interface RowNode { /** Unique ID for the node. Can be though of as the index of the row in the original list, * however exceptions apply so don't depend on uniqueness. */ @@ -754,7 +755,7 @@ declare module ag.grid { _childrenMap?: {}; } } -declare module ag.grid { +declare namespace ag.grid { class FilterManager { private $compile; private $scope; @@ -793,7 +794,7 @@ declare module ag.grid { showFilter(column: Column, eventSource: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class TemplateService { templateCache: any; waitingCallbacks: any; @@ -803,7 +804,7 @@ declare module ag.grid { handleHttpResult(httpResult: any, url: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class SelectionRendererFactory { private angularGrid; private selectionController; @@ -811,7 +812,7 @@ declare module ag.grid { createSelectionCheckbox(node: any, rowIndex: any): HTMLInputElement; } } -declare module ag.vdom { +declare namespace ag.vdom { class VElement { static idSequence: number; private id; @@ -824,7 +825,7 @@ declare module ag.vdom { toHtmlString(): string; } } -declare module ag.vdom { +declare namespace ag.vdom { class VHtmlElement extends VElement { private type; private classes; @@ -855,7 +856,7 @@ declare module ag.vdom { fireElementAttachedToChildren(element: Element): void; } } -declare module ag.vdom { +declare namespace ag.vdom { class VWrapperElement extends VElement { private wrappedElement; constructor(wrappedElement: Element); @@ -863,7 +864,7 @@ declare module ag.vdom { elementAttached(element: Element): void; } } -declare module ag.grid { +declare namespace ag.grid { class RenderedCell { private vGridCell; private vSpanWithValue; @@ -924,7 +925,7 @@ declare module ag.grid { private addClasses(); } } -declare module ag.grid { +declare namespace ag.grid { class RenderedRow { vPinnedRow: any; vBodyRow: any; @@ -974,7 +975,7 @@ declare module ag.grid { private addDynamicClasses(); } } -declare module ag.grid { +declare namespace ag.grid { class SvgFactory { static theInstance: SvgFactory; static getInstance(): SvgFactory; @@ -990,10 +991,10 @@ declare module ag.grid { createArrowUpDownSvg(): Element; } } -declare module ag.grid { +declare namespace ag.grid { function groupCellRendererFactory(gridOptionsWrapper: GridOptionsWrapper, selectionRendererFactory: SelectionRendererFactory, expressionService: ExpressionService): (params: any) => HTMLSpanElement; } -declare module ag.grid { +declare namespace ag.grid { class RowRenderer { private columnModel; private gridOptionsWrapper; @@ -1057,7 +1058,7 @@ declare module ag.grid { startEditingNextCell(rowIndex: any, column: any, shiftKey: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class SelectionController { private eParentsOfRows; private angularGrid; @@ -1094,7 +1095,7 @@ declare module ag.grid { private updateGroupParentsIfNeeded(); } } -declare module ag.grid { +declare namespace ag.grid { class RenderedHeaderElement { private eRoot; private dragStartX; @@ -1110,7 +1111,7 @@ declare module ag.grid { stopDragging(listenersToRemove: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class RenderedHeaderCell extends RenderedHeaderElement { private static DEFAULT_SORTING_ORDER; private eHeaderCell; @@ -1148,7 +1149,7 @@ declare module ag.grid { private addHeaderClassesFromCollDef(); } } -declare module ag.grid { +declare namespace ag.grid { class RenderedHeaderGroupCell extends RenderedHeaderElement { private eHeaderGroup; private eHeaderGroupCell; @@ -1178,7 +1179,7 @@ declare module ag.grid { onDragging(dragChange: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class HeaderRenderer { private gridOptionsWrapper; private columnController; @@ -1200,7 +1201,7 @@ declare module ag.grid { onIndividualColumnResized(column: Column): void; } } -declare module ag.grid { +declare namespace ag.grid { class GroupCreator { private valueService; init(valueService: ValueService): void; @@ -1208,7 +1209,7 @@ declare module ag.grid { isExpanded(expandByDefault: any, level: any): boolean; } } -declare module ag.grid { +declare namespace ag.grid { class InMemoryRowController { private gridOptionsWrapper; private columnController; @@ -1257,7 +1258,7 @@ declare module ag.grid { private createFooterNode(groupNode); } } -declare module ag.grid { +declare namespace ag.grid { class VirtualPageRowController { rowRenderer: any; datasourceVersion: any; @@ -1304,7 +1305,7 @@ declare module ag.grid { }; } } -declare module ag.grid { +declare namespace ag.grid { class PaginationController { eGui: any; btNext: any; @@ -1346,7 +1347,7 @@ declare module ag.grid { setupComponents(): void; } } -declare module ag.grid { +declare namespace ag.grid { class BorderLayout { private eNorthWrapper; private eSouthWrapper; @@ -1386,7 +1387,7 @@ declare module ag.grid { setSouthVisible(visible: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class GridPanel { private masterSlaveService; private gridOptionsWrapper; @@ -1451,7 +1452,7 @@ declare module ag.grid { private scrollPinned(bodyTopPosition); } } -declare module ag.grid { +declare namespace ag.grid { class DragAndDropService { static theInstance: DragAndDropService; static getInstance(): DragAndDropService; @@ -1465,7 +1466,7 @@ declare module ag.grid { } } declare function require(name: string): any; -declare module ag.grid { +declare namespace ag.grid { class AgList { private eGui; private uniqueId; @@ -1516,7 +1517,7 @@ declare module ag.grid { getGui(): any; } } -declare module ag.grid { +declare namespace ag.grid { class ColumnSelectionPanel { private gridOptionsWrapper; private columnController; @@ -1532,7 +1533,7 @@ declare module ag.grid { getGui(): any; } } -declare module ag.grid { +declare namespace ag.grid { class GroupSelectionPanel { gridOptionsWrapper: any; columnController: ColumnController; @@ -1548,7 +1549,7 @@ declare module ag.grid { private onItemMoved(fromIndex, toIndex); } } -declare module ag.grid { +declare namespace ag.grid { class AgDropdownList { private itemSelectedListeners; private eValue; @@ -1572,7 +1573,7 @@ declare module ag.grid { setModel(model: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class ValuesSelectionPanel { private gridOptionsWrapper; private columnController; @@ -1588,7 +1589,7 @@ declare module ag.grid { private beforeDropListener(newItem); } } -declare module ag.grid { +declare namespace ag.grid { class VerticalStack { isLayoutPanel: any; childPanels: any; @@ -1599,14 +1600,14 @@ declare module ag.grid { doLayout(): void; } } -declare module ag.grid { +declare namespace ag.grid { class ToolPanel { layout: any; constructor(); init(columnController: any, inMemoryRowController: any, gridOptionsWrapper: GridOptionsWrapper, popupService: PopupService, eventService: EventService): void; } } -declare module ag.grid { +declare namespace ag.grid { interface GridOptions { virtualPaging?: boolean; toolPanelSuppressPivot?: boolean; @@ -1693,7 +1694,7 @@ declare module ag.grid { columnApi?: ColumnApi; } } -declare module ag.grid { +declare namespace ag.grid { class GridApi { private grid; private rowRenderer; @@ -1790,7 +1791,7 @@ declare module ag.grid { refreshPivot(): void; } } -declare module ag.grid { +declare namespace ag.grid { class ValueService { private gridOptionsWrapper; private expressionService; @@ -1801,7 +1802,7 @@ declare module ag.grid { private getValueCallback(data, node, field); } } -declare module ag.grid { +declare namespace ag.grid { class Grid { private virtualRowCallbacks; private gridOptions; @@ -1863,7 +1864,7 @@ declare module ag.grid { doLayout(): void; } } -declare module ag.grid { +declare namespace ag.grid { class ComponentUtil { static SIMPLE_PROPERTIES: string[]; static SIMPLE_NUMBER_PROPERTIES: string[]; @@ -1879,7 +1880,7 @@ declare module ag.grid { static toNumber(value: any): number; } } -declare module ag.grid { +declare namespace ag.grid { class AgGridNg2 { private elementDef; private _agGrid; @@ -1974,11 +1975,11 @@ declare module ag.grid { private globalEventListener(eventType, event); } } -declare module ag.grid { +declare namespace ag.grid { } declare var exports: any; declare var module: any; -declare module ag.grid { +declare namespace ag.grid { interface Filter { getGui(): any; isFilterActive(): boolean; diff --git a/ag-grid/ag-grid.d.ts b/ag-grid/ag-grid.d.ts index 6dd6e90e42..3fe37571b1 100644 --- a/ag-grid/ag-grid.d.ts +++ b/ag-grid/ag-grid.d.ts @@ -1,8 +1,9 @@ // Type definitions for ag-grid v2.1.2 // Project: http://www.ag-grid.com/ // Definitions by: Niall Crosby -// Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module ag.grid { +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace ag.grid { class ColumnChangeEvent { private type; private column; @@ -28,7 +29,7 @@ declare module ag.grid { isIndividualColumnResized(): boolean; } } -declare module ag.grid { +declare namespace ag.grid { class Utils { private static isSafari; private static isIE; @@ -84,7 +85,7 @@ declare module ag.grid { static isBrowserSafari(): boolean; } } -declare module ag.grid { +declare namespace ag.grid { class Constants { static STEP_EVERYTHING: number; static STEP_FILTER: number; @@ -109,7 +110,7 @@ declare module ag.grid { static KEY_RIGHT: number; } } -declare module ag.grid { +declare namespace ag.grid { class Column { static colIdSequence: number; colDef: ColDef; @@ -128,7 +129,7 @@ declare module ag.grid { setMinimum(): void; } } -declare module ag.grid { +declare namespace ag.grid { class ColumnGroup { pinned: any; name: any; @@ -146,7 +147,7 @@ declare module ag.grid { addToVisibleColumns(colsToAdd: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class GridOptionsWrapper { private gridOptions; private groupHeaders; @@ -230,7 +231,7 @@ declare module ag.grid { private getCallbackForEvent(eventName); } } -declare module ag.grid { +declare namespace ag.grid { class LoggerFactory { private logging; init(gridOptionsWrapper: GridOptionsWrapper): void; @@ -243,7 +244,7 @@ declare module ag.grid { log(message: string): void; } } -declare module ag.grid { +declare namespace ag.grid { class Events { /** A new set of columns has been entered, everything has potentially changed. */ static EVENT_COLUMN_EVERYTHING_CHANGED: string; @@ -279,7 +280,7 @@ declare module ag.grid { static EVENT_READY: string; } } -declare module ag.grid { +declare namespace ag.grid { class EventService { private allListeners; private globalListeners; @@ -291,7 +292,7 @@ declare module ag.grid { dispatchEvent(eventType: string, event?: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class MasterSlaveService { private gridOptionsWrapper; private columnController; @@ -308,7 +309,7 @@ declare module ag.grid { onColumnEvent(event: ColumnChangeEvent): void; } } -declare module ag.grid { +declare namespace ag.grid { class ColumnApi { private _columnController; constructor(_columnController: ColumnController); @@ -407,7 +408,7 @@ declare module ag.grid { private getTotalColWidth(includePinned); } } -declare module ag.grid { +declare namespace ag.grid { interface CsvExportParams { skipHeader?: boolean; skipFooters?: boolean; @@ -426,7 +427,7 @@ declare module ag.grid { private escape(value); } } -declare module ag.grid { +declare namespace ag.grid { class ExpressionService { private expressionToFunctionCache; private logger; @@ -436,13 +437,13 @@ declare module ag.grid { private createFunctionBody(expression); } } -declare module ag.grid { +declare namespace ag.grid { interface TextAndNumberFilterParameters { /** What to do when new rows are loaded. The default is to reset the filter, to keep it in line with 'set' filters. If you want to keep the selection, then set this value to 'keep'. */ newRowsAction?: string; } } -declare module ag.grid { +declare namespace ag.grid { class TextFilter implements Filter { private filterParams; private filterChangedCallback; @@ -473,7 +474,7 @@ declare module ag.grid { private getApi(); } } -declare module ag.grid { +declare namespace ag.grid { class NumberFilter implements Filter { private filterParams; private filterChangedCallback; @@ -504,7 +505,7 @@ declare module ag.grid { private getApi(); } } -declare module ag.grid { +declare namespace ag.grid { interface ColDef { /** If sorting by default, set it here. Set to 'asc' or 'desc' */ sort?: string; @@ -594,7 +595,7 @@ declare module ag.grid { onCellContextMenu?: Function; } } -declare module ag.grid { +declare namespace ag.grid { class SetFilterModel { private colDef; private filterParams; @@ -635,7 +636,7 @@ declare module ag.grid { } } /** The filter parameters for set filter */ -declare module ag.grid { +declare namespace ag.grid { interface SetFilterParameters { /** Same as cell renderer for grid (you can use the same one in both locations). Setting it separatly here allows for the value to be rendered differently in the filter. */ cellRenderer?: Function; @@ -649,7 +650,7 @@ declare module ag.grid { suppressRemoveEntries?: boolean; } } -declare module ag.grid { +declare namespace ag.grid { class SetFilter implements Filter { private eGui; private filterParams; @@ -697,7 +698,7 @@ declare module ag.grid { private createApi(); } } -declare module ag.grid { +declare namespace ag.grid { class PopupService { private ePopupParent; init(ePopupParent: any): void; @@ -705,7 +706,7 @@ declare module ag.grid { addAsModalPopup(eChild: any, closeOnEsc: boolean): (event: any) => void; } } -declare module ag.grid { +declare namespace ag.grid { interface RowNode { /** Unique ID for the node. Can be though of as the index of the row in the original list, * however exceptions apply so don't depend on uniqueness. */ @@ -754,7 +755,7 @@ declare module ag.grid { _childrenMap?: {}; } } -declare module ag.grid { +declare namespace ag.grid { class FilterManager { private $compile; private $scope; @@ -793,7 +794,7 @@ declare module ag.grid { showFilter(column: Column, eventSource: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class TemplateService { templateCache: any; waitingCallbacks: any; @@ -803,7 +804,7 @@ declare module ag.grid { handleHttpResult(httpResult: any, url: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class SelectionRendererFactory { private angularGrid; private selectionController; @@ -811,7 +812,7 @@ declare module ag.grid { createSelectionCheckbox(node: any, rowIndex: any): HTMLInputElement; } } -declare module ag.vdom { +declare namespace ag.vdom { class VElement { static idSequence: number; private id; @@ -824,7 +825,7 @@ declare module ag.vdom { toHtmlString(): string; } } -declare module ag.vdom { +declare namespace ag.vdom { class VHtmlElement extends VElement { private type; private classes; @@ -855,7 +856,7 @@ declare module ag.vdom { fireElementAttachedToChildren(element: Element): void; } } -declare module ag.vdom { +declare namespace ag.vdom { class VWrapperElement extends VElement { private wrappedElement; constructor(wrappedElement: Element); @@ -863,7 +864,7 @@ declare module ag.vdom { elementAttached(element: Element): void; } } -declare module ag.grid { +declare namespace ag.grid { class RenderedCell { private vGridCell; private vSpanWithValue; @@ -924,7 +925,7 @@ declare module ag.grid { private addClasses(); } } -declare module ag.grid { +declare namespace ag.grid { class RenderedRow { vPinnedRow: any; vBodyRow: any; @@ -974,7 +975,7 @@ declare module ag.grid { private addDynamicClasses(); } } -declare module ag.grid { +declare namespace ag.grid { class SvgFactory { static theInstance: SvgFactory; static getInstance(): SvgFactory; @@ -990,10 +991,10 @@ declare module ag.grid { createArrowUpDownSvg(): Element; } } -declare module ag.grid { +declare namespace ag.grid { function groupCellRendererFactory(gridOptionsWrapper: GridOptionsWrapper, selectionRendererFactory: SelectionRendererFactory, expressionService: ExpressionService): (params: any) => HTMLSpanElement; } -declare module ag.grid { +declare namespace ag.grid { class RowRenderer { private columnModel; private gridOptionsWrapper; @@ -1057,7 +1058,7 @@ declare module ag.grid { startEditingNextCell(rowIndex: any, column: any, shiftKey: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class SelectionController { private eParentsOfRows; private angularGrid; @@ -1094,7 +1095,7 @@ declare module ag.grid { private updateGroupParentsIfNeeded(); } } -declare module ag.grid { +declare namespace ag.grid { class RenderedHeaderElement { private eRoot; private dragStartX; @@ -1110,7 +1111,7 @@ declare module ag.grid { stopDragging(listenersToRemove: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class RenderedHeaderCell extends RenderedHeaderElement { private static DEFAULT_SORTING_ORDER; private eHeaderCell; @@ -1148,7 +1149,7 @@ declare module ag.grid { private addHeaderClassesFromCollDef(); } } -declare module ag.grid { +declare namespace ag.grid { class RenderedHeaderGroupCell extends RenderedHeaderElement { private eHeaderGroup; private eHeaderGroupCell; @@ -1178,7 +1179,7 @@ declare module ag.grid { onDragging(dragChange: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class HeaderRenderer { private gridOptionsWrapper; private columnController; @@ -1200,7 +1201,7 @@ declare module ag.grid { onIndividualColumnResized(column: Column): void; } } -declare module ag.grid { +declare namespace ag.grid { class GroupCreator { private valueService; init(valueService: ValueService): void; @@ -1208,7 +1209,7 @@ declare module ag.grid { isExpanded(expandByDefault: any, level: any): boolean; } } -declare module ag.grid { +declare namespace ag.grid { class InMemoryRowController { private gridOptionsWrapper; private columnController; @@ -1257,7 +1258,7 @@ declare module ag.grid { private createFooterNode(groupNode); } } -declare module ag.grid { +declare namespace ag.grid { class VirtualPageRowController { rowRenderer: any; datasourceVersion: any; @@ -1304,7 +1305,7 @@ declare module ag.grid { }; } } -declare module ag.grid { +declare namespace ag.grid { class PaginationController { eGui: any; btNext: any; @@ -1346,7 +1347,7 @@ declare module ag.grid { setupComponents(): void; } } -declare module ag.grid { +declare namespace ag.grid { class BorderLayout { private eNorthWrapper; private eSouthWrapper; @@ -1386,7 +1387,7 @@ declare module ag.grid { setSouthVisible(visible: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class GridPanel { private masterSlaveService; private gridOptionsWrapper; @@ -1451,7 +1452,7 @@ declare module ag.grid { private scrollPinned(bodyTopPosition); } } -declare module ag.grid { +declare namespace ag.grid { class DragAndDropService { static theInstance: DragAndDropService; static getInstance(): DragAndDropService; @@ -1464,7 +1465,7 @@ declare module ag.grid { addDropTarget(eDropTarget: any, dropTargetCallback: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class AgList { private eGui; private uniqueId; @@ -1515,7 +1516,7 @@ declare module ag.grid { getGui(): any; } } -declare module ag.grid { +declare namespace ag.grid { class ColumnSelectionPanel { private gridOptionsWrapper; private columnController; @@ -1531,7 +1532,7 @@ declare module ag.grid { getGui(): any; } } -declare module ag.grid { +declare namespace ag.grid { class GroupSelectionPanel { gridOptionsWrapper: any; columnController: ColumnController; @@ -1547,7 +1548,7 @@ declare module ag.grid { private onItemMoved(fromIndex, toIndex); } } -declare module ag.grid { +declare namespace ag.grid { class AgDropdownList { private itemSelectedListeners; private eValue; @@ -1571,7 +1572,7 @@ declare module ag.grid { setModel(model: any): void; } } -declare module ag.grid { +declare namespace ag.grid { class ValuesSelectionPanel { private gridOptionsWrapper; private columnController; @@ -1587,7 +1588,7 @@ declare module ag.grid { private beforeDropListener(newItem); } } -declare module ag.grid { +declare namespace ag.grid { class VerticalStack { isLayoutPanel: any; childPanels: any; @@ -1598,14 +1599,14 @@ declare module ag.grid { doLayout(): void; } } -declare module ag.grid { +declare namespace ag.grid { class ToolPanel { layout: any; constructor(); init(columnController: any, inMemoryRowController: any, gridOptionsWrapper: GridOptionsWrapper, popupService: PopupService, eventService: EventService): void; } } -declare module ag.grid { +declare namespace ag.grid { interface GridOptions { virtualPaging?: boolean; toolPanelSuppressPivot?: boolean; @@ -1692,7 +1693,7 @@ declare module ag.grid { columnApi?: ColumnApi; } } -declare module ag.grid { +declare namespace ag.grid { class GridApi { private grid; private rowRenderer; @@ -1789,7 +1790,7 @@ declare module ag.grid { refreshPivot(): void; } } -declare module ag.grid { +declare namespace ag.grid { class ValueService { private gridOptionsWrapper; private expressionService; @@ -1800,7 +1801,7 @@ declare module ag.grid { private getValueCallback(data, node, field); } } -declare module ag.grid { +declare namespace ag.grid { class Grid { private virtualRowCallbacks; private gridOptions; @@ -1862,7 +1863,7 @@ declare module ag.grid { doLayout(): void; } } -declare module ag.grid { +declare namespace ag.grid { class ComponentUtil { static SIMPLE_PROPERTIES: string[]; static SIMPLE_NUMBER_PROPERTIES: string[]; @@ -1878,7 +1879,7 @@ declare module ag.grid { static toNumber(value: any): number; } } -declare module ag.grid { +declare namespace ag.grid { class AgGridNg2 { private elementDef; private _agGrid; @@ -1973,11 +1974,11 @@ declare module ag.grid { private globalEventListener(eventType, event); } } -declare module ag.grid { +declare namespace ag.grid { } declare var exports: any; declare var module: any; -declare module ag.grid { +declare namespace ag.grid { interface Filter { getGui(): any; isFilterActive(): boolean; diff --git a/agenda/agenda-tests.ts b/agenda/agenda-tests.ts new file mode 100644 index 0000000000..6be618e59d --- /dev/null +++ b/agenda/agenda-tests.ts @@ -0,0 +1,106 @@ +/// + +import * as Agenda from "agenda"; + + +var mongoConnectionString = "mongodb://127.0.0.1/agenda"; + +var agenda = new Agenda({ db: { address: mongoConnectionString } }); + + +agenda.define('delete old users', (job, done) => { + +}); + +agenda.on('ready', () => { + agenda.every('3 minutes', 'delete old users'); + + // Alternatively, you could also do: + agenda.every('*/3 * * * *', 'delete old users'); + + agenda.start(); +}); + +agenda.define('send email report', { priority: 'high', concurrency: 10 }, (job, done) => { +}); + +agenda.on('ready', () => { + agenda.schedule('in 20 minutes', 'send email report', { to: 'admin@example.com' }); + agenda.start(); +}); + +agenda.on('ready', () => { + var weeklyReport = agenda.create('send email report', { to: 'another-guy@example.com' }); + weeklyReport.repeatEvery('1 week').save(); + agenda.start(); +}); + +var agenda = new Agenda({ processEvery: '30 seconds' }); + +agenda.defaultConcurrency(5); + +var agenda = new Agenda({ defaultConcurrency: 5 }); + +agenda.lockLimit(0); + +var agenda = new Agenda({ lockLimit: 0 }); + +agenda.defaultLockLimit(0); + +var agenda = new Agenda({ defaultLockLimit: 0 }); + +agenda.defaultLockLifetime(10000); + +var agenda = new Agenda({ defaultLockLifetime: 10000 }); + +agenda.define('some long running job', function(job, done) { + done(); +}); + +agenda.every('15 minutes', ['printAnalyticsReport', 'sendNotifications', 'updateUserRecords']); + +agenda.schedule('tomorrow at noon', 'printAnalyticsReport', { userCount: 100 }); + +agenda.schedule('tomorrow at noon', ['printAnalyticsReport', 'sendNotifications', 'updateUserRecords']); + +agenda.now('do the hokey pokey'); + +var job = agenda.create('printAnalyticsReport', { userCount: 100 }); +job.save(function(err) { + console.log("Job successfully saved"); +}); + +agenda.jobs({ name: 'printAnalyticsReport' }, function(err, jobs) { + // Work with jobs (see below) +}); + +agenda.cancel({ name: 'printAnalyticsReport' }, function(err, numRemoved) { +}); + +agenda.purge(function(err, numRemoved) { +}); + +agenda.stop(function() { + process.exit(0); +}); + +job.repeatEvery('10 minutes'); + +job.repeatAt('3:30pm'); + +job.schedule('tomorrow at 6pm'); + +job.priority('low'); +job.priority(10); + +job.unique({ 'data.type': 'active', 'data.userId': '123' }); +job.fail('insuficient disk space'); +job.fail(new Error('insufficient disk space')); +job.run(function(err, job) { + console.log("I don't know why you would need to do this..."); +}); +job.remove(function(err) { + if (!err) console.log("Successfully removed job from collection"); +}) + + diff --git a/agenda/agenda.d.ts b/agenda/agenda.d.ts new file mode 100644 index 0000000000..011676bc86 --- /dev/null +++ b/agenda/agenda.d.ts @@ -0,0 +1,443 @@ +// Type definitions for Agenda v0.8.9 +// Project: https://github.com/rschmukler/agenda +// Definitions by: Meir Gottlieb +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +/// + +declare module "agenda" { + + import {EventEmitter} from "events"; + import {Db, Collection, ObjectID} from "mongodb"; + + interface Callback { + (err?: Error): void; + } + + interface ResultCallback { + (err?: Error, result?: T): void; + } + + /** + * Agenda Configuration. + */ + interface AgendaConfiguration { + + /** + * Sets the interval with which the queue is checked. A number in milliseconds or a frequency string. + */ + processEvery?: string | number; + + /** + * Takes a number which specifies the default number of a specific job that can be running at any given moment. + * By default it is 5. + */ + defaultConcurrency?: number; + + /** + * Takes a number which specifies the max number of jobs that can be running at any given moment. By default it + * is 20. + */ + maxConcurrency?: number; + + /** + * Takes a number which specifies the default number of a specific job that can be locked at any given moment. + * By default it is 0 for no max. + */ + defaultLockLimit?: number; + + /** + * Takes a number shich specifies the max number jobs that can be locked at any given moment. By default it is + * 0 for no max. + */ + lockLimit?: number; + + /** + * Takes a number which specifies the default lock lifetime in milliseconds. By default it is 10 minutes. This + * can be overridden by specifying the lockLifetime option to a defined job. + */ + defaultLockLifetime?: number; + + /** + * Specifies that Agenda should be initialized using and existing MongoDB connection. + */ + mongo?: { + /** + * The MongoDB database connection to use. + */ + db: Db; + + /** + * The name of the collection to use. + */ + collection?: string; + } + + /** + * Specifies that Agenda should connect to MongoDB. + */ + db?: { + /** + * The connection URL. + */ + address: string; + + /** + * The name of the collection to use. + */ + collection?: string; + + /** + * Connection options to pass to MongoDB. + */ + options?: any; + } + } + + /** + * The database record associated with a job. + */ + interface JobAttributes { + /** + * The record identity. + */ + _id: ObjectID; + + /** + * The name of the job. + */ + name: string; + + /** + * The type of the job (single|normal). + */ + type: string; + + /** + * The job details. + */ + data: { [name: string]: any }; + + /** + * The priority of the job. + */ + priority: number; + + /** + * How often the job is repeated using a human-readable or cron format. + */ + repeatInterval: string | number; + + /** + * The timezone that conforms to [moment-timezone](http://momentjs.com/timezone/). + */ + repeatTimezone: string; + + /** + * Date/time the job was las modified. + */ + lastModifiedBy: string; + + /** + * Date/time the job will run next. + */ + nextRunAt: Date; + + /** + * Date/time the job was locked. + */ + lockedAt: Date; + + /** + * Date/time the job was last run. + */ + lastRunAt: Date; + + /** + * Date/time the job last finished running. + */ + lastFinishedAt: Date; + + /** + * The reason the job failed. + */ + failReason: string; + + /** + * The number of times the job has failed. + */ + failCount: number; + + /** + * The date/time the job last failed. + */ + failedAt: Date; + } + + /** + * A scheduled job. + */ + interface Job { + + /** + * The database record associated with the job. + */ + attrs: JobAttributes; + + /** + * Specifies an interval on which the job should repeat. + * @param interval A human-readable format String, a cron format String, or a Number. + * @param options An optional argument that can include a timezone field. The timezone should be a string as + * accepted by moment-timezone and is considered when using an interval in the cron string format. + */ + repeatEvery(interval: string | number, options?: { timezone?: string }): Job + + /** + * Specifies a time when the job should repeat. [Possible values](https://github.com/matthewmueller/date#examples). + * @param time + */ + repeatAt(time: string): Job + + /** + * Disables the job. + */ + disable(): Job; + + /** + * Enables the job. + */ + enable(): Job; + + /** + * Ensure that only one instance of this job exists with the specified properties + * @param value The properties associated with the job that must be unqiue. + * @param opts + */ + unique(value: any, opts?: { insertOnly?: boolean }): Job; + + /** + * Specifies the next time at which the job should run. + * @param time The next time at which the job should run. + */ + schedule(time: string | Date): Job; + + /** + * Specifies the priority weighting of the job. + * @param value The priority of the job (lowest|low|normal|high|highest|number). + */ + priority(value: string | number): Job; + + /** + * Sets job.attrs.failedAt to now, and sets job.attrs.failReason to reason. + * @param reason A message or Error object that indicates why the job failed. + */ + fail(reason: string | Error): Job; + + /** + * Runs the given job and calls callback(err, job) upon completion. Normally you never need to call this manually + * @param cb Called when the job is completed. + */ + run(cb?: ResultCallback): Job; + + /** + * Returns true if the job is running; otherwise, returns false. + */ + isRunning(): boolean; + + /** + * Saves the job into the database. + * @param cb Called when the job is saved. + */ + save(cb?: ResultCallback): Job; + + /** + * Removes the job from the database and cancels the job. + * @param cb Called after the job has beeb removed from the database. + */ + remove(cb?: Callback): void; + + /** + * Resets the lock on the job. Useful to indicate that the job hasn't timed out when you have very long running + * jobs. + * @param cb Called after the job has been saved to the database. + */ + touch(cb?: Callback): void; + } + + interface JobOptions { + + /** + * Maximum number of that job that can be running at once (per instance of agenda) + */ + concurrency?: number; + + /** + * Maximum number of that job that can be locked at once (per instance of agenda) + */ + lockLimit?: number; + + /** + * Interval in ms of how long the job stays locked for (see multiple job processors for more info). A job will + * automatically unlock if done() is called. + */ + lockLifetime?: number; + + /** + * (lowest|low|normal|high|highest|number) specifies the priority of the job. Higher priority jobs will run + * first. + */ + priority?: string | number; + } + + class Agenda extends EventEmitter { + + /** + * Constructs a new Agenda object. + * @param config Optional configuration to initialize the Agenda. + * @param cb Optional callback called with the MongoDB colleciton. + */ + constructor(config?: AgendaConfiguration, cb?: ResultCallback); + + /** + * Connect to the specified MongoDB server and database. + */ + database(url: string, collection?: string, options?: any, cb?: ResultCallback): Agenda; + + /** + * Initialize agenda with an existing MongoDB connection. + */ + mongo(db: Db, collection?: string, cb?: ResultCallback): Agenda; + + /** + * Sets the agenda name. + */ + name(value: string): Agenda; + + /** + * Sets the interval with which the queue is checked. A number in milliseconds or a frequency string. + */ + processEvery(interval: string | number): Agenda; + + /** + * Takes a number which specifies the max number of jobs that can be running at any given moment. By default it + * is 20. + * @param value The value to set. + */ + maxConcurrency(value: number): Agenda; + + /** + * Takes a number which specifies the default number of a specific job that can be running at any given moment. + * By default it is 5. + * @param value The value to set. + */ + defaultConcurrency(value: number): Agenda; + + /** + * Takes a number shich specifies the max number jobs that can be locked at any given moment. By default it is + * 0 for no max. + * @param value The value to set. + */ + lockLimit(value: number): Agenda; + + /** + * Takes a number which specifies the default number of a specific job that can be locked at any given moment. + * By default it is 0 for no max. + * @param value The value to set. + */ + defaultLockLimit(value: number): Agenda; + + /** + * Takes a number which specifies the default lock lifetime in milliseconds. By default it is 10 minutes. This + * can be overridden by specifying the lockLifetime option to a defined job. + * @param value The value to set. + */ + defaultLockLifetime(value: number): Agenda; + + /** + * Returns an instance of a jobName with data. This does NOT save the job in the database. See below to learn + * how to manually work with jobs. + * @param name The name of the job. + * @param data Data to associated with the job. + */ + create(name: string, data?: any): Job; + + /** + * Find all Jobs matching `query` and pass same back in cb(). + * @param query + * @param cb + */ + jobs(query: any, cb: ResultCallback): void; + + /** + * Removes all jobs in the database without defined behaviors. Useful if you change a definition name and want + * to remove old jobs. + * @param cb Called with the number of jobs removed. + */ + purge(cb?: ResultCallback): void; + + /** + * Defines a job with the name of jobName. When a job of job name gets run, it will be passed to fn(job, done). + * To maintain asynchronous behavior, you must call done() when you are processing the job. If your function is + * synchronous, you may omit done from the signature. + * @param name The name of the jobs. + * @param options The options for the job. + * @param handler The handler to execute. + */ + define(name: string, handler: (job?: Job, done?: (err?: Error) => void) => void): void; + define(name: string, options: JobOptions, handler: (job?: Job, done?: (err?: Error) => void) => void): void; + + /** + * Runs job name at the given interval. Optionally, data and options can be passed in. + * @param interval Can be a human-readable format String, a cron format String, or a Number. + * @param names The name or names of the job(s) to run. + * @param data An optional argument that will be passed to the processing function under job.attrs.data. + * @param options An optional argument that will be passed to job.repeatEvery. + * @param cb An optional callback function which will be called when the job has been persisted in the database. + */ + every(interval: number | string, names: string, data?: any, options?: any, cb?: ResultCallback): Job; + every(interval: number | string, names: string[], data?: any, options?: any, cb?: ResultCallback): Job[]; + + /** + * Schedules a job to run name once at a given time. + * @param when A Date or a String such as tomorrow at 5pm. + * @param names The name or names of the job(s) to run. + * @param data An optional argument that will be passed to the processing function under job.attrs.data. + * @param cb An optional callback function which will be called when the job has been persisted in the database. + */ + schedule(when: Date | string, names: string, data?: any, cb?: ResultCallback): Job; + schedule(when: Date | string, names: string[], data?: any, cb?: ResultCallback): Job[]; + + /** + * Schedules a job to run name once immediately. + * @param name The name of the job to run. + * @param data An optional argument that will be passed to the processing function under job.attrs.data. + * @param cb An optional callback function which will be called when the job has been persisted in the database. + */ + now(name: string, data?: any, cb?: ResultCallback): Job; + + /** + * Cancels any jobs matching the passed mongodb-native query, and removes them from the database. + * @param query Mongodb native query. + * @param cb Called with the number of jobs removed. + */ + cancel(query: any, cb?: ResultCallback): void; + + /** + * Starts the job queue processing, checking processEvery time to see if there are new jobs. + */ + start(): void; + + /** + * Stops the job queue processing. Unlocks currently running jobs. + * @param cb Called after the job processing queue shuts down and unlocks all jobs. + */ + stop(cb: Callback): void; + } + + namespace Agenda { + + } + + export = Agenda; +} diff --git a/alertify/alertify.d.ts b/alertify/alertify.d.ts index 79ff53ec38..aa9219282a 100644 --- a/alertify/alertify.d.ts +++ b/alertify/alertify.d.ts @@ -1,11 +1,11 @@ // Type definitions for alertify 0.3.11 // Project: http://fabien-d.github.io/alertify.js/ // Definitions by: John Jeffery -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var alertify: alertify.IAlertifyStatic; -declare module alertify { +declare namespace alertify { interface IAlertifyStatic { /** * Create an alert dialog box @@ -16,7 +16,7 @@ declare module alertify { * @since 0.0.1 */ alert(message: string, fn?: Function, cssClass?: string): IAlertifyStatic; - + /** * Create a confirm dialog box * @param message The message passed from the callee @@ -26,7 +26,7 @@ declare module alertify { * @since 0.0.1 */ confirm(message: string, fn?: Function, cssClass?: string): IAlertifyStatic; - + /** * Extend the log method to create custom methods * @param type Custom method name @@ -34,7 +34,7 @@ declare module alertify { * @since 0.0.1 */ extend(type: string): (message: string, wait?: number) => IAlertifyStatic; - + /** * Initialize Alertify and create the 2 main elements. * Initialization will happen automatically on the first @@ -42,7 +42,7 @@ declare module alertify { * @since 0.0.1 */ init(): void; - + /** * Show a new log message box * @param message The message passed from the callee @@ -52,7 +52,7 @@ declare module alertify { * @since 0.0.1 */ log(message: string, type?: string, wait?: number): IAlertifyStatic; - + /** * Create a prompt dialog box * @param message The message passed from the callee @@ -63,7 +63,7 @@ declare module alertify { * @since 0.0.1 */ prompt(message: string, fn?: Function, placeholder?: string, cssClass?: string): IAlertifyStatic; - + /** * Shorthand for log messages * @param message The message passed from the callee @@ -71,7 +71,7 @@ declare module alertify { * @since 0.0.1 */ success(message: string): IAlertifyStatic; - + /** * Shorthand for log messages * @param message The message passed from the callee @@ -79,14 +79,14 @@ declare module alertify { * @since 0.0.1 */ error(message: string): IAlertifyStatic; - + /** * Used to set alertify properties * @param Properties * @since 0.2.11 */ set(args: IProperties): void; - + /** * The labels used for dialog buttons */ @@ -105,13 +105,13 @@ declare module alertify { interface IProperties { /** Default value for milliseconds display of log messages */ delay?: number; - + /** Default values for display of labels */ labels?: ILabels; - + /** Default button for focus */ buttonFocus?: string; - + /** Should buttons be displayed in reverse order */ buttonReverse?: boolean; } @@ -121,4 +121,4 @@ declare module alertify { ok?: string; cancel?: string; } -} \ No newline at end of file +} diff --git a/alt/alt.d.ts b/alt/alt.d.ts index 0d7bc86326..20da159f35 100644 --- a/alt/alt.d.ts +++ b/alt/alt.d.ts @@ -1,11 +1,11 @@ // Type definitions for Alt 0.16.10 // Project: https://github.com/goatslacker/alt // Definitions by: Michael Shearer -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module AltJS { +declare namespace AltJS { interface StoreReduce { action:any; diff --git a/amazon-product-api/amazon-product-api.d.ts b/amazon-product-api/amazon-product-api.d.ts index 7ce5d92e3a..f7ccf905e5 100644 --- a/amazon-product-api/amazon-product-api.d.ts +++ b/amazon-product-api/amazon-product-api.d.ts @@ -1,7 +1,7 @@ // Type definitions for amazon-product-api // Project: https://github.com/t3chnoboy/amazon-product-api // Definitions by: Matti Lehtinen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "amazon-product-api" { diff --git a/amcharts/AmCharts.d.ts b/amcharts/AmCharts.d.ts index 647fc6e254..02d2c540a0 100644 --- a/amcharts/AmCharts.d.ts +++ b/amcharts/AmCharts.d.ts @@ -1,10 +1,10 @@ // Type definitions for amCharts // Project: http://www.amcharts.com/ // Definitions by: aleksey-bykov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// AmCharts object (it's not a class) is create automatically when amcharts.js or amstock.js file is included in a web page. -declare module AmCharts { +declare namespace AmCharts { /** Set it to true if you have base href set for your page. This will fix rendering problems in Firefox caused by base href. */ var baseHref: boolean; @@ -29,7 +29,7 @@ declare module AmCharts { /** AmPieChart class creates pie/donut chart. In order to display pie chart you need to set at least three properties - dataProvider, titleField and valueField. @example - var chartData = [{title:"Pie I have eaten",value:70},{title:"Pie I haven\'t eaten",value:30}]; + var chartData = [{title:"Pie I have eaten",value:70},{title:"Pie I haven\'t eaten",value:30}]; var chart = new AmCharts.AmPieChart(); chart.valueField = "value"; chart.titleField = "title"; @@ -113,7 +113,7 @@ declare module AmCharts { outlineAlpha: number; /** Pie outline color. #FFFFFF */ outlineColor: string; - /** Pie outline thickness. + /** Pie outline thickness. @default 1 */ outlineThickness: number; @@ -219,7 +219,7 @@ declare module AmCharts { chart.dataProvider = chartData; chart.categoryField = "country"; chart.startDuration = 2; - + var valueAxis = new AmCharts.ValueAxis(); valueAxis.axisAlpha = 0.15; valueAxis.minimum = 0; @@ -227,13 +227,13 @@ declare module AmCharts { valueAxis.axisTitleOffset = 20; valueAxis.gridCount = 5; chart.addValueAxis(valueAxis); - + var graph = new AmCharts.AmGraph(); graph.valueField = "litres"; graph.bullet = "round"; graph.balloonText = "[[value]] litres of beer per year" chart.addGraph(graph); - + chart.write("chartdiv"); } */ @@ -262,7 +262,7 @@ declare module AmCharts { {x:1, y:6, value:35} ]; - var chart = new AmCharts.AmXYChart(); + var chart = new AmCharts.AmXYChart(); chart.pathToImages = "../../amcharts/javascript/images/"; chart.dataProvider = chartData; chart.marginLeft = 35; @@ -276,7 +276,7 @@ declare module AmCharts { var yAxis = new AmCharts.ValueAxis(); yAxis.position = "bottom"; yAxis.autoGridCount = true; - chart.addValueAxis(yAxis); + chart.addValueAxis(yAxis); var graph = new AmCharts.AmGraph(); graph.valueField = "value"; @@ -292,7 +292,7 @@ declare module AmCharts { var chartScrollbar = new AmCharts.ChartScrollbar(); chartScrollbar.hideResizeGrips = false; chart.addChartScrollbar(chartScrollbar); - + chart.write("chartdiv); */ class AmXYChart extends AmRectangularChart { @@ -368,7 +368,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val } /** ImagesSettings is a class which holds common settings of all MapImage objects. */ class ImagesSettings { - /** Opacity of the image. + /** Opacity of the image. @default 1 */ alpha: number; @@ -382,7 +382,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val color: string; /** Height of a description window. */ descriptionWindowHeight: number; - /** Width of a description window. + /** Width of a description window. @default 250 */ descriptionWindowWidth: number; @@ -392,7 +392,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val descriptionWindowY: number; /** Label color. #000000 */ labelColor: string; - /** Font size of a label. + /** Font size of a label. @default 11 */ labelfontSize: string; @@ -589,7 +589,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** Adds event listener of the type "rollOutStockEvent" or "rollOverStockEvent" or "clickStockEvent" to the object. @param type // Either "rollOutStockEvent" or "rollOverStockEvent" or "clickStockEvent". - @param handler + @param handler If the type is "rollOutStockEvent", dispatched when the user rolls-out of the Stock event (bullet). If the type is "rollOverStockEvent", dispatched when the user rolls-over of the Stock event (bullet). If the type is "clickStockEvent", dispatched when the user clicks on the Stock event (bullet). @@ -941,7 +941,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val @default 11 */ fontSize: string; - /** If you set this to true, the lines of the chart will be distorted and will produce hand-drawn effect. Try to adjust chart.handDrawScatter and chart.handDrawThickness properties for a more scattered result. + /** If you set this to true, the lines of the chart will be distorted and will produce hand-drawn effect. Try to adjust chart.handDrawScatter and chart.handDrawThickness properties for a more scattered result. @Default false */ handDrawn: boolean; @@ -953,7 +953,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val @Default 1 */ handDrawThickness: number; - /** Time, in milliseconds after which balloon is hidden if the user rolls-out of the object. Might be useful for AmMap to avoid balloon flickering while moving mouse over the areas. Note, this is not duration of fade-out. Duration of fade-out is set in AmBalloon class. + /** Time, in milliseconds after which balloon is hidden if the user rolls-out of the object. Might be useful for AmMap to avoid balloon flickering while moving mouse over the areas. Note, this is not duration of fade-out. Duration of fade-out is set in AmBalloon class. @Default 150 */ hideBalloonTime: number; @@ -966,19 +966,19 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** This setting affects touch-screen devices only. If a chart is on a page, and panEventsEnabled are set to true, the page won't move if the user touches the chart first. If a chart is big enough and occupies all the screen of your touch device, the user won’t be able to move the page at all. That's why the default value is "false". If you think that selecting/panning the chart or moving/pinching the map is a primary purpose of your users, you should set panEventsEnabled to true. */ panEventsEnabled: boolean; /** Specifies absolute or relative path to amCharts files, i.e. "amcharts/". (where all .js files are located) - If relative URLs are used, they will be relative to the current web page, displaying the chart. - You can also set path globally, using global JavaScript variable AmCharts_path. If this variable is set, and "path" is not set in chart config, the chart will assume the path from the global variable. This allows setting amCharts path globally. I.e.: + If relative URLs are used, they will be relative to the current web page, displaying the chart. + You can also set path globally, using global JavaScript variable AmCharts_path. If this variable is set, and "path" is not set in chart config, the chart will assume the path from the global variable. This allows setting amCharts path globally. I.e.: var AmCharts_path = "/libs/amcharts/"; "path" parameter will be used by the charts to locate it's files, like images, plugins or patterns.*/ - path: string; + path: string; /** Specifies path to the folder where images like resize grips, lens and similar are. IMPORTANT: Since V3.14.12, you should use "path" to point to amCharts directory instead. The "pathToImages" will be automatically set and does not need to be in the chart config, unless you keep your images separately from other amCharts files. */ pathToImages: string; - /** Precision of percent values. -1 means percent values won't be rounded at all and show as they are. + /** Precision of percent values. -1 means percent values won't be rounded at all and show as they are. @default 2 */ percentPrecision: number; - /** Precision of values. -1 means values won't be rounded at all and show as they are. + /** Precision of values. -1 means values won't be rounded at all and show as they are. @Default 1*/ precision: number; /** Prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc. Prefixes are used on value axes and in the legend. To enable prefixes, set usePrefixes property to true. [{number:1e+3,prefix:"k"},{number:1e+6,prefix:"M"},{number:1e+9,prefix:"G"},{number:1e+12,prefix:"T"},{number:1e+15,prefix:"P"},{number:1e+18,prefix:"E"},{number:1e+21,prefix:"Z"},{number:1e+24,prefix:"Y"}] */ @@ -987,7 +987,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val prefixesOfSmallNumbers: any[]; /** Theme of a chart. Config files of themes can be found in amcharts/themes/ folder. More info about using themes. */ theme: string; - /** Thousands separator. + /** Thousands separator. @default . */ thousandsSeparator: string; @@ -1115,7 +1115,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** Adds a graph to the chart. */ addGraph(graph: AmGraph); - /** Adds a legend to the chart. By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. (NOTE: This method will not work on StockPanel.) */ + /** Adds a legend to the chart. By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. (NOTE: This method will not work on StockPanel.) */ /** Adds value axis to the chart. One value axis is created automatically, so if you don't want to change anything or add more value axes, you don't need to add it. */ @@ -1203,33 +1203,33 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** SerialDataItem holds all the information about each series. When working with a chart, you do not create SerialDataItem objects or change it's properties directly. Consider properties of a SerialDataItem read-only - change values in chart's data provider if you need to. When serial chart parses dataProvider, it generates "chartData" array. Objects of this array are SerialDataItem objects. */ class SerialDataItem { - + /** You can access each GraphDataItem using this object. The data structure is: graphDataItem = serialDataItem.axes[axisId].graphs[graphId]. */ axes: Object; - + /** category value. String if parseDates is false, Date if true. */ category: any; - + /** Timestamp of a series date. Avalable only if parseDates property of CategoryAxis is set to true. */ time: number; - + /** Coordinate (horizontal or vertical, depends on chart's rotate property) of the series. */ x: number; } class CategoryAxis extends AxisBase { - + /** When parse dates is on for the category axis, the chart will try to highlight the beginning of the periods, like month, in bold. Set this to false to disable the functionality. @default true */ boldPeriodBeginning: boolean; - + /** Date formats of different periods. Possible period values: fff - milliseconds, ss - seconds, mm - minutes, hh - hours, DD - days, MM - months, WW - weeks, YYYY - years. Check this page for date formatting strings. [{period:'fff',format:'JJ:NN:SS'},{period:'ss',format:'JJ:NN:SS'},{period:'mm',format:'JJ:NN'},{period:'hh',format:'JJ:NN'},{period:'DD',format:'MMM DD'},{period:'WW',format:'MMM DD'},{period:'MM',format:'MMM'},{period:'YYYY',format:'YYYY'}] */ dateFormats: any[]; - + /** In case your category axis values are Date objects and parseDates is set to true, the chart will parse dates and will place your data points at irregular intervals. However if you want dates to be parsed (displayed on the axis, baloons, etc), but data points to be placed at equal intervals (omiting dates with no data), set equalSpacing to true. */ equalSpacing: boolean; - + /** Field in data provider which specifies if the category value should always be shown. For example: categoryAxis.forceShowField = "forceShow"; Field in data provider which specifies if the category value should always be shown. For example: categoryAxis.forceShowField = "forceShow"; And in data: {category:"one", forceShow:true, value:100} @@ -1256,7 +1256,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** Number Returns coordinate of the date, in case parseDates is set to true. if parseDates is false, use categoryToCoordinate method. date - Date object */ dateToCoordinate(date: Date); - + /** Number Returns index of the category which is most close to specified coordinate. x - coordinate */ xToIndex(x: number); } @@ -1332,7 +1332,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** AmRectangularChart is a base class of AmSerialChart and AmXYChart. It can not be instantiated explicitly.*/ class AmRectangularChart extends AmCoordinateChart { - /** The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). + /** The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). @default 0 */ angle: number; @@ -1348,7 +1348,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val chartCursor: ChartCursor; /** Chart scrollbar. */ chartScrollbar: ChartScrollbar; - /** The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0). + /** The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0). @default 0*/ depth3D: number; /** Number of pixels between the container's bottom border and plot area. This space can be used for bottom axis' values. If autoMargin is true and bottom side has axis, this property is ignored. @@ -1363,7 +1363,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val @default 20 */ marginRight: number; - /** Flag which should be set to false if you need margins to be recalculated on next chart.validateNow() call. + /** Flag which should be set to false if you need margins to be recalculated on next chart.validateNow() call. @default false */ marginsUpdated: boolean; @@ -1375,24 +1375,24 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val @default 0 */ plotAreaBorderAlpha: number; - /** The color of the plot area's border. Note, the it is invisible by default, as plotAreaBorderAlpha default value is 0. Set it to a value higher than 0 to make it visible. + /** The color of the plot area's border. Note, the it is invisible by default, as plotAreaBorderAlpha default value is 0. Set it to a value higher than 0 to make it visible. @default '#000000'*/ plotAreaBorderColor: string; - /** Opacity of plot area. Plural form is used to keep the same property names as our Flex charts'. Flex charts can accept array of numbers to generate gradients. Although you can set array here, only first value of this array will be used. + /** Opacity of plot area. Plural form is used to keep the same property names as our Flex charts'. Flex charts can accept array of numbers to generate gradients. Although you can set array here, only first value of this array will be used. @default 0 */ plotAreaFillAlphas: number; - /** You can set both one color if you need a solid color or array of colors to generate gradients, for example: ["#000000", "#0000CC"] + /** You can set both one color if you need a solid color or array of colors to generate gradients, for example: ["#000000", "#0000CC"] @default '#FFFFFF' */ plotAreaFillColors: any; - /** If you are using gradients to fill the plot area, you can use this property to set gradient angle. The only allowed values are horizontal and vertical: 0, 90, 180, 270. + /** If you are using gradients to fill the plot area, you can use this property to set gradient angle. The only allowed values are horizontal and vertical: 0, 90, 180, 270. @default 0 */ plotAreaGradientAngle: number; /** Array of trend lines added to a chart. You can add trend lines to a chart using this array or access already existing trend lines */ trendLines: TrendLine[]; - /** Opacity of zoom-out button background. + /** Opacity of zoom-out button background. @default 0 */ zoomOutButtonAlpha: number; @@ -1418,7 +1418,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val zoomOutButtonRollOverAlpha: number; /** Text in the zoom-out button. Show all */ zoomOutText: string; - + /** Adds a ChartCursor object to a chart */ addChartCursor(cursor: ChartCursor); /** Adds a ChartScrollbar to a chart */ @@ -1430,7 +1430,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val removeChartCursor(); /** Removes scrollbar from the chart */ removeChartScrollbar(); - /** Removes a trend line from a chart. + /** Removes a trend line from a chart. You should call chart.validateNow() in order the changes to be visible. */ removeTrendLine(trendLine: TrendLine); } @@ -1470,7 +1470,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val categoryBalloonColor: string; /** Category balloon date format (used only if category axis parses dates). Check this page for instructions on how to format dates. MMM DD, YYYY */ categoryBalloonDateFormat: string; - /** Specifies whether category balloon is enabled. + /** Specifies whether category balloon is enabled. @default true */ categoryBalloonEnabled: boolean; @@ -1539,17 +1539,17 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** AmSerialChart is the class you have to use for majority of chart types. The supported chart types are: line, area, column, bar, step line, smoothed line, candlestick and OHLC. The chart can be rotated by 90 degrees so the column chart becomes bar chart. The chart supports simple and logarithmic scales, it can have multiple value axes. The chart can place data points at equal intervals or can parse dates and place data points at irregular intervals. @example var chartData = [{title:"sample 1",value:130},{title:"sample 2",value:26}]; - + var chart = new AmCharts.AmSerialChart(); chart.categoryField = "title"; chart.dataProvider = chartData; - + var graph = new AmCharts.AmGraph(); graph.valueField = "value"; graph.type = "column"; graph.fillAlphas = 1; chart.addGraph(graph); - + chart.write("chartdiv"); */ class AmSerialChart extends AmRectangularChart { @@ -1581,7 +1581,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val maxSelectedSeries: number; /** The longest time span allowed to select (in milliseconds) for example, 259200000 will limit selection to 3 days. */ maxSelectedTime: number; - /** The shortest time span allowed to select (in milliseconds) for example, 1000 will limit selection to 1 second. + /** The shortest time span allowed to select (in milliseconds) for example, 1000 will limit selection to 1 second. @default 0 */ minSelectedTime: number; @@ -1830,7 +1830,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** Specifies if label is bold or not. */ bold: boolean; /** Color of a label */ - color: string; + color: string; /** Unique id of a Label. You don't need to set it, unless you want to. */ id: string; /** Rotation angle. */ @@ -2156,7 +2156,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** Value balloon color. Will use graph or data item color if not set. */ balloonColor: string; /** If you set some function, the graph will call it and pass GraphDataItem and AmGraph object to it. This function should return a string which will be displayed in a balloon. */ - balloonFunction(graphDataItem: GraphDataItem, amGraph: AmGraph): string; + balloonFunction(graphDataItem: GraphDataItem, amGraph: AmGraph): string; /** Balloon text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[category]] [[value]] */ balloonText: string; /** Specifies if the line graph should be placed behind column graphs */ @@ -2431,7 +2431,7 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val /** Specifies whether values on axis can only be integers or both integers and doubles. */ integersOnly: boolean; /** You can use this function to format Value axis labels. This function is called and these parameters are passed: labelFunction(value, valueText, valueAxis); -Where value is numeric value, valueText is formatted string and valueAxis is a reference to valueAxis object. +Where value is numeric value, valueText is formatted string and valueAxis is a reference to valueAxis object. If axis type is "date", labelFunction will pass different arguments: labelFunction(valueText, date, valueAxis) @@ -2510,7 +2510,7 @@ Your function should return string.*/ removeGuide(guide: Guide); /** Removes event listener from the object. */ removeListener(obj: any, type: string, handler: any); - + /** One value axis can be synchronized with another value axis. You should set synchronizationMultiplyer in order for this to work. */ synchronizeWithAxis(axis:ValueAxis); /** XY Chart only. Zooms-in the axis to the provided values. */ @@ -2534,15 +2534,15 @@ Your function should return string.*/ /** Removes event listener from chart object. */ removeListener(chart: AmChart, type: string, handler: any); } - + class Title { /** @default 1 */ alpha: number; - /** Specifies if the tile is bold or not. + /** Specifies if the tile is bold or not. @default false*/ bold: boolean; /** Text color of a title. */ - color: string; + color: string; /** Unique id of a Title. You don't need to set it, unless you want to. */ id: string; /** Text size */ @@ -2555,4 +2555,4 @@ Your function should return string.*/ libs: Object; menu: Object; } -} \ No newline at end of file +} diff --git a/amplify-deferred/amplify-deferred.d.ts b/amplify-deferred/amplify-deferred.d.ts index 11e6d05e0f..b8c1142899 100644 --- a/amplify-deferred/amplify-deferred.d.ts +++ b/amplify-deferred/amplify-deferred.d.ts @@ -1,7 +1,7 @@ // Type definitions for AmplifyJs 1.1.0 using JQuery Deferred // Project: http://amplifyjs.com/ // Definitions by: Jonas Eriksson , Laurentiu Stamate -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/amplifyjs/amplifyjs.d.ts b/amplifyjs/amplifyjs.d.ts index 3eb8829e4a..555c9a378e 100644 --- a/amplifyjs/amplifyjs.d.ts +++ b/amplifyjs/amplifyjs.d.ts @@ -1,7 +1,7 @@ // Type definitions for AmplifyJs 1.1.0 // Project: http://amplifyjs.com/ // Definitions by: Jonas Eriksson -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/amqp-rpc/amqp-rpc.d.ts b/amqp-rpc/amqp-rpc.d.ts index a7334460f1..b2eee1d2ca 100644 --- a/amqp-rpc/amqp-rpc.d.ts +++ b/amqp-rpc/amqp-rpc.d.ts @@ -1,7 +1,7 @@ // Type definitions for amqp-rpc v0.0.8 // Project: https://github.com/demchenkoe/node-amqp-rpc/ // Definitions by: Wonshik Kim -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/amqplib/amqplib.d.ts b/amqplib/amqplib.d.ts index fd74a48c07..6c393014f9 100644 --- a/amqplib/amqplib.d.ts +++ b/amqplib/amqplib.d.ts @@ -1,13 +1,13 @@ // Type definitions for amqplib 0.3.x // Project: https://github.com/squaremo/amqp.node // Definitions by: Michael Nahkies , Ab Reitsma -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// declare module "amqplib/properties" { - module Replies { + namespace Replies { interface Empty { } interface AssertQueue { @@ -29,7 +29,7 @@ declare module "amqplib/properties" { } } - module Options { + namespace Options { interface AssertQueue { exclusive?: boolean; durable?: boolean; diff --git a/analytics-node/analytics-node.d.ts b/analytics-node/analytics-node.d.ts index d4376d83ea..aed257c9cc 100644 --- a/analytics-node/analytics-node.d.ts +++ b/analytics-node/analytics-node.d.ts @@ -1,9 +1,9 @@ // Type definitions for Segment's analytics.js for Node.js // Project: https://segment.com/docs/libraries/node/ // Definitions by: Andrew Fong -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module AnalyticsNode { +declare namespace AnalyticsNode { interface Integrations { [index: string]: boolean; diff --git a/angular-agility/angular-agility.d.ts b/angular-agility/angular-agility.d.ts index 872971aedd..33a8c3b8a4 100644 --- a/angular-agility/angular-agility.d.ts +++ b/angular-agility/angular-agility.d.ts @@ -1,42 +1,42 @@ // Type definitions for AngularAgility // Project: https://github.com/AngularAgility/AngularAgility // Definitions by: Roland Zwaga -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module aa { +declare namespace aa { export interface ILabelStrategies { [strategyName: string]: (element:ng.IAugmentedJQueryStatic, labelText:string, isRequired:boolean)=>void; } - + export interface IFieldGroupStrategies { [strategyName: string]: (element:ng.IAugmentedJQueryStatic)=>void; } - + export interface IValMsgPlacementStrategies { [strategyName: string]: (formFieldElement:ng.IAugmentedJQueryStatic, formName:string, formFieldName:string)=>void; } - + export interface IValidIconStrategy { validIcon:string; invalidIcon:string; getContainer(element:ng.IAugmentedJQueryStatic):void; } - + export interface ISpinnerClickStrategies { [strategyName: string]: (element:ng.IAugmentedJQueryStatic)=>void; } - + export interface IOnNavigateAwayStrategies { [strategyName: string]: (rootFormScope:ng.IScope, rootForm:ng.IAugmentedJQueryStatic, $injector:ng.auto.IInjectorService)=>void; } - + export interface IValidationMessages { [validationKey: string]: string; } - + export interface IGlobalSettings { [settingName: string]: any; } @@ -53,18 +53,18 @@ declare module aa { valMsgForTemplate:string; confirmResetStrategy:()=>boolean; globalSettings:IGlobalSettings; - + labelStrategies:ILabelStrategies; fieldGroupStrategies:IFieldGroupStrategies; valMsgPlacementStrategies:IValMsgPlacementStrategies; spinnerClickStrategies:ISpinnerClickStrategies; onNavigateAwayStrategies:IOnNavigateAwayStrategies; } - + export interface INotifyPredicate { (message:string, options:any, notifier:any):any; } - + export interface INotifyDefaults { success: INotifyPredicate; info: INotifyPredicate; @@ -72,7 +72,7 @@ declare module aa { danger: INotifyPredicate; error: INotifyPredicate; } - + export interface INotifyConfig { name:string; template?:string; @@ -80,14 +80,14 @@ declare module aa { options:INotifyOptions; namedDefaults:INotifyDefaults; } - + export interface INotifyOptions { cssClasses?:string; messageType:string; allowHtml:boolean; message:string; } - + export interface INotifyConfigProvider extends ng.IServiceProvider { notifyConfigs:any; defaultTargetContainerName:string; @@ -95,7 +95,7 @@ declare module aa { addOrUpdateNotifyConfig(name:string, opts:INotifyConfig):void; optionsTransformer(options:INotifyOptions, $sce:ng.ISCEService):void; } - + export interface IExternalFormValidationConfig { validations:any; ignore?:any; @@ -103,4 +103,4 @@ declare module aa { resolve?:any; resolveFn?:(modelValue:string)=>string; } -} \ No newline at end of file +} diff --git a/angular-bootstrap-calendar/angular-bootstrap-calendar-tests.ts b/angular-bootstrap-calendar/angular-bootstrap-calendar-tests.ts new file mode 100644 index 0000000000..a704ced3b2 --- /dev/null +++ b/angular-bootstrap-calendar/angular-bootstrap-calendar-tests.ts @@ -0,0 +1,46 @@ +/// +/// + +var myApp = angular.module('testModule'); + +interface MyAppScope extends ng.IScope { + events: ng.bootstrap.calendar.IEvent[]; +} + +myApp.config(function (calendarConfig: ng.bootstrap.calendar.ICalendarConfig) { + + calendarConfig.templates.calendarMonthView = 'path/to/custom/template.html'; //change the month view template to a custom template + + calendarConfig.dateFormatter = 'moment'; //use either moment or angular to format dates on the calendar. Default angular. Setting this will override any date formats you have already set. + + calendarConfig.allDateFormats.moment.date.hour = 'HH:mm'; //this will configure times on the day view to display in 24 hour format rather than the default of 12 hour + + calendarConfig.allDateFormats.moment.title.day = 'ddd D MMM'; //this will configure the day view title to be shorter + + calendarConfig.i18nStrings.weekNumber = 'Week {week}'; //This will set the week number hover label on the month view + + calendarConfig.displayAllMonthEvents = true; //This will display all events on a month view even if they're not in the current month. Default false. + + calendarConfig.displayEventEndTimes = true; //This will display event end times on the month and year views. Default false. + + calendarConfig.showTimesOnWeekView = true; //Make the week view more like the day view, with the caveat that event end times are ignored. + +}); + +var someController: Function = ($scope: MyAppScope) => { + $scope.events = [ + { + title: 'My event title', // The title of the event + type: 'info', // The type of the event (determines its color). Can be important, warning, info, inverse, success or special + startsAt: new Date(2013, 5, 1, 1), // A javascript date object for when the event starts + endsAt: new Date(2014, 8, 26, 15), // Optional - a javascript date object for when the event ends + editable: false, // If edit-event-html is set and this field is explicitly set to false then dont make it editable. + deletable: false, // If delete-event-html is set and this field is explicitly set to false then dont make it deleteable + draggable: true, //Allow an event to be dragged and dropped + resizable: true, //Allow an event to be resizable + incrementsBadgeTotal: true, //If set to false then will not count towards the badge total amount on the month and year view + recursOn: 'year', // If set the event will recur on the given period. Valid values are year or month + cssClass: 'a-css-class-name' //A CSS class (or more, just separate with spaces) that will be added to the event when it is displayed on each view. Useful for marking an event as selected / active etc + } + ]; +}; \ No newline at end of file diff --git a/angular-bootstrap-calendar/angular-bootstrap-calendar.d.ts b/angular-bootstrap-calendar/angular-bootstrap-calendar.d.ts new file mode 100644 index 0000000000..e32dcfca68 --- /dev/null +++ b/angular-bootstrap-calendar/angular-bootstrap-calendar.d.ts @@ -0,0 +1,138 @@ +// Type definitions for angular-bootstrap-calendar +// Project: https://github.com/mattlewis92/angular-bootstrap-calendar +// Definitions by: Egor Komarov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace angular.bootstrap.calendar { + interface IEvent { + /** + * The title of the event + */ + title: string; + /** + * The type of the event (determines its color). Can be important, warning, info, inverse, success or special + */ + type: string; + /** + * A javascript date object for when the event starts + */ + startsAt: Date; + /** + * Optional - a javascript date object for when the event ends + */ + endsAt?: Date; + /** + * If edit-event-html is set and this field is explicitly set to false then dont make it editable. + */ + editable?: boolean; + /** + * If delete-event-html is set and this field is explicitly set to false then dont make it deleteable + */ + deletable?: boolean; + /** + * Allow an event to be dragged and dropped + */ + draggable?: boolean; + /** + * Allow an event to be resizable + */ + resizable?: boolean; + /** + * If set to false then will not count towards the badge total amount on the month and year view + */ + incrementsBadgeTotal?: boolean; + /** + * If set the event will recur on the given period. Valid values are year or month + */ + recursOn?: string; + /** + * A CSS class (or more, just separate with spaces) that will be added to the event when it is displayed on each view. Useful for marking an event as selected / active etc + */ + cssClass?: string; + } + + interface ICalendarConfig { + allDateFormats: { + angular: IFormats; + moment: IFormats; + }; + dateFormats: IDateFormats; + titleFormats: ITitleFormats; + dateFormatter: string; + displayEventEndTimes: boolean; + showTimesOnWeekView: boolean; + displayAllMonthEvents: boolean; + i18nStrings: { weekNumber: string; }; + templates: { + calendarDayView: string; + calendarHourList: string; + calendarMonthCell: string; + calendarMonthCellEvents: string; + calendarMonthView: string; + calendarSlideBox: string; + calendarWeekView: string; + calendarYearView: string; + }; + } + + interface IFormats { + date: IDateFormats; + title: ITitleFormats; + } + + interface IDateFormats { + hour: string; + day: string; + month: string; + weekDay: string; + time: string; + datetime: string; + } + + interface ITitleFormats { + day: string; + week: string; + month: string; + year: string; + } + + interface ICalendarCell { + label: number; + date: moment.Moment; + inMonth: boolean; + isPast: boolean; + isToday: boolean; + isFuture: boolean; + isWeekend: boolean; + events: IEvent[]; + badgeTotal: number; + } + + namespace events { + interface IOnEventClick { + (calendarEvent: IEvent): void; + } + + interface IOnEventTimesChanged { + (calendarEvent: IEvent, calendarNewEventStart: Date, calendarNewEventEnd: Date): void; + } + + interface IOnEditEventClick { + (calendarEvent: IEvent): void; + } + + interface IOnDeleteEventClick { + (calendarEvent: IEvent): void; + } + + interface IOnTimespanClick { + (calendarDate: Date, calendarCell: ICalendarCell): void; + } + + interface IOnViewChangeClick { + (calendarDate: Date, calendarNextView: string): void; + } + } +} diff --git a/angular-bootstrap-lightbox/angular-bootstrap-lightbox.d.ts b/angular-bootstrap-lightbox/angular-bootstrap-lightbox.d.ts index 299967bdd1..9c7438b042 100644 --- a/angular-bootstrap-lightbox/angular-bootstrap-lightbox.d.ts +++ b/angular-bootstrap-lightbox/angular-bootstrap-lightbox.d.ts @@ -1,9 +1,9 @@ // Type definitions for angular-bootstrap-lightbox // Project: https://github.com/compact/angular-bootstrap-lightbox // Definitions by: Roland Zwaga -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module angular.bootstrap.lightbox { +declare namespace angular.bootstrap.lightbox { export interface ILightboxImageInfo { url: string; @@ -48,4 +48,4 @@ declare module angular.bootstrap.lightbox { calculateImageDimensionLimits:(dimensions:IImageDimensionParameter)=>IImageDimensionLimits; calculateModalDimensions:(dimensions:IModalDimensionsParameter)=>IModalDimensions; } -} \ No newline at end of file +} diff --git a/angular-breadcrumb/angular-breadcrumb.d.ts b/angular-breadcrumb/angular-breadcrumb.d.ts new file mode 100644 index 0000000000..7df33ddef5 --- /dev/null +++ b/angular-breadcrumb/angular-breadcrumb.d.ts @@ -0,0 +1,79 @@ +// Type definitions for angular-breadcrumb 0.4.1 +// Project: https://github.com/ncuillery/angular-breadcrumb +// Definitions by: Marc Talary +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +declare namespace angular.ui { + export interface IState { + ncyBreadcrumb?: { + /** + * Contains the label for the step in the breadcrumb. The state name is used if not defined. + **/ + label?: string; + /** + * Override the parent state (only for the breadcrumb) + **/ + parent?: string; + /** + * When defined to true, the state is never included in the chain of states and never appears in the breadcrumb + **/ + skip?: boolean; + }, + ncyBreadcrumbLabel?: string; + ncyBreadcrumbLink?: string; + } +} + +declare namespace ncy { + + /** + * Provider that returns an instance of $breadcrumb service. It contains the global configuration of the module. + **/ + export interface $breadcrumbProvider { + /** + * Setter for options defined in a module.config block + **/ + setOptions(options: breadcrumbProviderOptions): void; + } + + /** + * Global configuration options for angular-breadcrumb + **/ + export interface breadcrumbProviderOptions { + /** + * An existing state's name to be the state is the first step of the breadcrumb + **/ + prefixStateName?: string; + + /** + * Contains a predefined template's name; 'bootstrap3' (default), 'bootstrap2' or HTML for a custom template. This property is ignored if templateUrl is defined. + **/ + template?: string; + + /** + * Contains the path to a template file. This property takes precedence over the template property. + **/ + templateUrl?: string; + + /** + * If true, abstract states are included in the breadcrumb. This option has a lower priority than the state-specific option skip + **/ + includeAbstract?: boolean; + } + + /** + * Service responsible for access to $state and for directive configuration. + **/ + export interface $breadcrumbService { + /** + * Returns the state chain to the current state (i.e. all the steps of the breadcrumb). It's an array of state object enriched with the module-specific property ncyBreadcrumbLink (the href for the breadcrumb step). + **/ + getStatesChain(): angular.ui.IState[]; + + /** + * Return the last step of the breadcrumb, generally the one relative to the current state, expect if it is configured as skipped (the method returns its parent). As getStatesChain, the state object is enriched with ncyBreadcrumbLink. + **/ + getLastStep(): angular.ui.IState; + } +} \ No newline at end of file diff --git a/angular-cookie/angular-cookie.d.ts b/angular-cookie/angular-cookie.d.ts index 99041f9340..02700ea1bd 100644 --- a/angular-cookie/angular-cookie.d.ts +++ b/angular-cookie/angular-cookie.d.ts @@ -1,65 +1,65 @@ // Type definitions for angular-cookie v4.1.0 // Project: https://github.com/ivpusic/angular-cookie // Definitions by: Borislav Zhivkov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module angular.cookie { +declare namespace angular.cookie { interface CookieService { /** * Get all cookies */ (): any; - + /** * Get a cookie with a specific key */ (key: string): any; - + /** * Create a cookie */ (key: string, value: any, options?: CookieOptions): any; - + /** * Remove a cookie */ remove(key: string, options?: CookieOptions): void; } - + interface CookieOptions { /** * The domain tells the browser to which domain the cookie should be sent. If you don't specify it, it becomes the domain of the page that sets the cookie. */ domain?: string; - + /** * The path gives you the chance to specify a directory where the cookie is active. */ path?: string; - + /** * Each cookie has an expiry date after which it is trashed. If you don't specify the expiry date the cookie is trashed when you close the browser. */ expires?: number; - + /** * Allows you to set the expiration time in hours, minutes, seconds, or `milliseconds. If this is not specified, any expiration time specified will default to days. */ expirationUnit?: string; - + /** * The Secure attribute is meant to keep cookie communication limited to encrypted transmission, directing browsers to use cookies only via secure/encrypted connections. */ secure?: boolean; - + /** * The method that will be used to encode the cookie value (should be passed when using Set). */ encode?: (value: any) => any; - + /** * The method that will be used to decode extracted cookie values (should be passed when using Get). */ decode?: (value: any) => any; } -} \ No newline at end of file +} diff --git a/angular-dialog-service/angular-dialog-service.d.ts b/angular-dialog-service/angular-dialog-service.d.ts index 38ce8589e4..3d75e32222 100644 --- a/angular-dialog-service/angular-dialog-service.d.ts +++ b/angular-dialog-service/angular-dialog-service.d.ts @@ -1,12 +1,12 @@ // Type definitions for Angular Dialog Service 5.2.8 // Project: https://github.com/m-e-conroy/angular-dialog-service // Definitions by: William Comartin -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module angular.dialogservice { +declare namespace angular.dialogservice { interface IDialogOptions { /** diff --git a/angular-dynamic-locale/angular-dynamic-locale.d.ts b/angular-dynamic-locale/angular-dynamic-locale.d.ts index e404e95328..4b7a1f9656 100644 --- a/angular-dynamic-locale/angular-dynamic-locale.d.ts +++ b/angular-dynamic-locale/angular-dynamic-locale.d.ts @@ -1,7 +1,7 @@ // Type definitions for angular-dynamic-locale v0.1.27 // Project: https://github.com/lgalfaso/angular-dynamic-locale // Definitions by: Stephen Lautier -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -10,7 +10,7 @@ declare module "angular-dynamic-locale" { export = ng; } -declare module angular.dynamicLocale { +declare namespace angular.dynamicLocale { interface tmhDynamicLocaleService { set(locale: string): void; @@ -23,4 +23,4 @@ declare module angular.dynamicLocale { useStorage(storageName: string): void; useCookieStorage(): void; } -} \ No newline at end of file +} diff --git a/angular-environment/angular-environment.d.ts b/angular-environment/angular-environment.d.ts index bb38b8f0aa..483474410c 100644 --- a/angular-environment/angular-environment.d.ts +++ b/angular-environment/angular-environment.d.ts @@ -3,7 +3,7 @@ // Definitions by: Matt Wheatley // Definitions: https://github.com/LiberisLabs -declare module angular.environment { +declare namespace angular.environment { interface ServiceProvider { /** * Sets the configuration object diff --git a/angular-file-upload/angular-file-upload.d.ts b/angular-file-upload/angular-file-upload.d.ts index 78efa0ecc5..c79f6b5528 100644 --- a/angular-file-upload/angular-file-upload.d.ts +++ b/angular-file-upload/angular-file-upload.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular File Upload 4.2.1 // Project: https://github.com/danialfarid/ng-file-upload // Definitions by: John Reilly -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/angular-formly/angular-formly.d.ts b/angular-formly/angular-formly.d.ts index 967a16d100..206d3294f9 100644 --- a/angular-formly/angular-formly.d.ts +++ b/angular-formly/angular-formly.d.ts @@ -14,34 +14,36 @@ declare module 'angular-formly' { export = angularFormlyDefaultExport; } -declare module AngularFormly { +declare namespace AngularFormly { - interface IFieldArray extends Array { + interface IFieldArray extends Array { - } + } interface IFieldGroup { data?: { - [key: string]: any; - }; + [key: string]: any; + }; className?: string; elementAttributes?: string; - fieldGroup?: IFieldArray; + fieldGroup?: IFieldArray; form?: Object; hide?: boolean; hideExpression?: string | IExpressionFunction; key?: string | number; - model?: string | Object; - options?: IFormOptionsAPI; - templateOptions?: ITemplateOptions; - wrapper?: string | string[]; + model?: string | { + [key: string]: any; + }; + options?: IFormOptionsAPI; + templateOptions?: ITemplateOptions; + wrapper?: string | string[]; } interface IFormOptionsAPI { data?: { - [key: string]: any; - }; + [key: string]: any; + }; fieldTransform?: Function; formState?: Object; removeChromeAutoComplete?: boolean; @@ -182,8 +184,8 @@ declare module AngularFormly { * see http://docs.angular-formly.com/docs/field-configuration-object#data-object */ data?: { - [key: string]: any; - }; + [key: string]: any; + }; /** @@ -287,7 +289,9 @@ declare module AngularFormly { * * see http://docs.angular-formly.com/docs/field-configuration-object#model-object--string */ - model?: Object | string; + model?: string | { + [key: string]: any; + }; /** @@ -543,8 +547,8 @@ declare module AngularFormly { defaultOptions?: IFieldConfigurationObject | Function; controller?: Function | string | any[]; data?: { - [key: string]: any; - }; + [key: string]: any; + }; extends?: string; link?: ng.IDirectiveLinkFn; overwriteOk?: boolean; @@ -612,7 +616,9 @@ declare module AngularFormly { //The index of the field the form is on (in ng-repeat) index: number; //the model of the form (or the model specified by the field if it was specified). - model: Object | string; + model?: string | { + [key: string]: any; + }; //Shortcut to options.validation.errorExistsAndShouldBeVisible showError: boolean; //Shortcut to options.templateOptions diff --git a/angular-fullscreen/angular-fullscreen-tests.ts b/angular-fullscreen/angular-fullscreen-tests.ts new file mode 100644 index 0000000000..f45202c0db --- /dev/null +++ b/angular-fullscreen/angular-fullscreen-tests.ts @@ -0,0 +1,12 @@ +/// + +angular + .module('TestApp', ['FBAngular']) + .controller('TestCtrl', (Fullscreen: ng.fullscreen.IFullscreen) => { + Fullscreen.all(); + Fullscreen.toggleAll(); + Fullscreen.enable(document.getElementById('test-id')); + Fullscreen.cancel(); + Fullscreen.isEnabled(); + Fullscreen.isSupported(); + }); diff --git a/angular-fullscreen/angular-fullscreen.d.ts b/angular-fullscreen/angular-fullscreen.d.ts new file mode 100644 index 0000000000..414754db43 --- /dev/null +++ b/angular-fullscreen/angular-fullscreen.d.ts @@ -0,0 +1,34 @@ +// Type definitions for AngularJS HTML5 Fullscreen v1.0.1 +// Project: https://github.com/fabiobiondi/angular-fullscreen +// Definitions by: Julien Paroche +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/angular-fullscreen + +/// + +declare namespace angular.fullscreen { + + /** + * Prefixing interface name with "I" is not recommended: http://www.typescriptlang.org/Handbook#writing-dts-files + * However, we let it here to keep consistency with all the other Angular-related definitions + */ + interface IFullscreen { + // enable document fullscreen + all(): void; + + // enable or disable the document fullscreen + toggleAll(): void; + + // enable fullscreen to a specific element + enable(element: Element|HTMLElement): void; + + // disable fullscreen + cancel(): void; + + // return true if fullscreen is enabled, otherwise false + isEnabled(): boolean; + + // return true if fullscreen API is supported by your browser + isSupported(): boolean; + } + +} diff --git a/angular-gettext/angular-gettext-tests.ts b/angular-gettext/angular-gettext-tests.ts index 0b0532fc4f..d15924331d 100644 --- a/angular-gettext/angular-gettext-tests.ts +++ b/angular-gettext/angular-gettext-tests.ts @@ -1,7 +1,7 @@ /// -module angular_gettext_tests { - +namespace angular_gettext_tests { + // Configuring angular-gettext // https://angular-gettext.rocketeer.be/dev-guide/configure/ @@ -15,12 +15,12 @@ module angular_gettext_tests { gettextCatalog.debug = true; }); - - // Marking strings in JavaScript code as translatable. - // https://angular-gettext.rocketeer.be/dev-guide/annotate-js/ + + // Marking strings in JavaScript code as translatable. + // https://angular-gettext.rocketeer.be/dev-guide/annotate-js/ angular.module("myApp").controller("helloController", function (gettext: angular.gettext.gettextFunction) { var myString = gettext("Hello"); - }); + }); //Translating directly in JavaScript. angular.module("myApp").controller("helloController", function (gettextCatalog: angular.gettext.gettextCatalog) { @@ -58,4 +58,4 @@ module angular_gettext_tests { gettextCatalog.loadRemote("/languages/" + lang + ".json"); }; }); -} \ No newline at end of file +} diff --git a/angular-gettext/angular-gettext.d.ts b/angular-gettext/angular-gettext.d.ts index dc1de2bf6c..48734d4433 100644 --- a/angular-gettext/angular-gettext.d.ts +++ b/angular-gettext/angular-gettext.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-gettext v2.1.0 // Project: https://angular-gettext.rocketeer.be/ // Definitions by: Ákos Lukács -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.gettext { +declare namespace angular.gettext { interface gettextCatalog { ////////////// @@ -24,7 +24,7 @@ declare module angular.gettext { translatedMarkerSuffix: string; /** An object of loaded translation strings.Shouldn't be used directly. */ strings: {}; - /** The default language, in which you're application is written. This defaults to English and it's generally a bad idea to use anything else: if your language has different pluralization rules you'll end up with incorrect translations. Deprecated + /** The default language, in which you're application is written. This defaults to English and it's generally a bad idea to use anything else: if your language has different pluralization rules you'll end up with incorrect translations. Deprecated * @deprecreated */ baseLanguage: string; @@ -51,7 +51,7 @@ declare module angular.gettext { /** Get the correct pluralized (but untranslated) string for the value of n. */ getStringForm(string: string, n: number): string; - /** Translate a string with the given context. Uses Angular.JS interpolation, so something like this will do what you expect: + /** Translate a string with the given context. Uses Angular.JS interpolation, so something like this will do what you expect: * var hello = gettextCatalog.getString("Hello {{name}}!", { name: "Ruben" }); * // var hello will be "Hallo Ruben!" in Dutch. * The context parameter is optional: pass null (or don't pass anything) if you're not using it: this skips interpolation and is a lot faster. diff --git a/angular-google-analytics/angular-google-analytics-service.d.ts b/angular-google-analytics/angular-google-analytics-service.d.ts index e69b63d907..9801280740 100644 --- a/angular-google-analytics/angular-google-analytics-service.d.ts +++ b/angular-google-analytics/angular-google-analytics-service.d.ts @@ -1,9 +1,9 @@ // Type definitions for angular-google-analytics v1.1.0 // Project: https://github.com/revolunet/angular-google-analytics // Definitions by: Matt Wheatley -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module angular.google.analytics { +declare namespace angular.google.analytics { interface AnalyticsService { /** * @summary If logging is enabled then all outbound calls are accessible via an in-memory array. diff --git a/angular-google-analytics/angular-google-analytics.d.ts b/angular-google-analytics/angular-google-analytics.d.ts index e3aa5551eb..03ef64ba75 100644 --- a/angular-google-analytics/angular-google-analytics.d.ts +++ b/angular-google-analytics/angular-google-analytics.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-google-analytics v1.1.0 // Project: https://github.com/revolunet/angular-google-analytics // Definitions by: Cyril Schumacher -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.google.analytics { +declare namespace angular.google.analytics { /** * @summary Interface for {@link AnalysticsProvider}. * @interface diff --git a/angular-growl-v2/angular-growl-v2.d.ts b/angular-growl-v2/angular-growl-v2.d.ts index 594e45c425..7b67678b85 100644 --- a/angular-growl-v2/angular-growl-v2.d.ts +++ b/angular-growl-v2/angular-growl-v2.d.ts @@ -1,11 +1,11 @@ // Type definitions for Angular Growl 2 v.0.7.5 // Project: http://janstevens.github.io/angular-growl-2 // Definitions by: Tadeusz Hucal -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.growl { +declare namespace angular.growl { /** * Global Time-To-Leave configuration. @@ -39,7 +39,7 @@ declare module angular.growl { */ interface IGrowlMessage extends IGrowlMessageConfig { text: string; - + /** * Destroy the message. */ diff --git a/angular-hotkeys/angular-hotkeys.d.ts b/angular-hotkeys/angular-hotkeys.d.ts index 3340f9ff31..407d1c7313 100644 --- a/angular-hotkeys/angular-hotkeys.d.ts +++ b/angular-hotkeys/angular-hotkeys.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-hotkeys // Project: https://github.com/chieffancypants/angular-hotkeys // Definitions by: Jason Zhao , Stefan Steinhart -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.hotkeys { +declare namespace angular.hotkeys { interface HotkeysProvider { template: string; diff --git a/angular-http-auth/angular-http-auth.d.ts b/angular-http-auth/angular-http-auth.d.ts index 4a08272cde..d5fb52fd6c 100644 --- a/angular-http-auth/angular-http-auth.d.ts +++ b/angular-http-auth/angular-http-auth.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-http-auth 1.2.1 // Project: https://github.com/witoldsz/angular-http-auth // Definitions by: vvakame -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.httpAuth { +declare namespace angular.httpAuth { interface IAuthService { loginConfirmed(data?:any, configUpdater?:Function):void; loginCancelled(data?:any, reason?:any):void; diff --git a/angular-httpi/angular-httpi.d.ts b/angular-httpi/angular-httpi.d.ts index eb4a16106b..d9aa2b5609 100644 --- a/angular-httpi/angular-httpi.d.ts +++ b/angular-httpi/angular-httpi.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-httpi // Project: https://github.com/bennadel/httpi // Definitions by: Andrew Camilleri -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Httpi { +declare namespace Httpi { export interface HttpiPayload extends ng.IRequestShortcutConfig { method?: string; url?: string; @@ -39,4 +39,4 @@ declare module Httpi { setKeepTrailingSlash(newKeepTrailingSlash: boolean): HttpiResource; } -} \ No newline at end of file +} diff --git a/angular-idle/angular-idle.d.ts b/angular-idle/angular-idle.d.ts index 725beac677..0a980204cb 100644 --- a/angular-idle/angular-idle.d.ts +++ b/angular-idle/angular-idle.d.ts @@ -1,98 +1,98 @@ // Type definitions for ng-idle v1.1.1 // Project: http://hackedbychinese.github.io/ng-idle/ // Definitions by: mthamil -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.idle { +declare namespace angular.idle { /** * Used to configure the Title service. */ interface ITitleProvider extends IServiceProvider { - + /** * Enables or disables the Title functionality. - * + * * @param enabled Boolean, default is true. */ enabled(enabled: boolean): void; } - + interface ITitleService { - + /** * Allows the title functionality to be enabled or disabled on the fly. */ setEnabled(enabled: boolean): void; - + /** * Returns whether or not the title functionality has been enabled. */ isEnabled(): boolean; - + /** * Will store val as the "original" title of the document. - * - * Tracking the original title is important when restoring the title after displaying, for example, the idle warning message. + * + * Tracking the original title is important when restoring the title after displaying, for example, the idle warning message. */ original(val: string): void; - + /** * Returns the "original" title value that has been previously set. - * - * Tracking the original title is important when restoring the title after displaying, for example, the idle warning message. + * + * Tracking the original title is important when restoring the title after displaying, for example, the idle warning message. */ original(): string; - + /** * Changes the actual title of the document. */ value(val: string): void; - + /** * Returns the current document title. */ value(): string; - + /** * If overwrite is false or unspecified, updates the "original" title with the current document title * if it has not already been stored. If overwrite is true, the current document title is stored regardless. */ store(overwrite?: boolean): void; - + /** * Sets the title to the original value (if it was stored or set previously). */ restore(): void; - + /** * Sets the text to use as the message displayed when the user is idle. */ idleMessage(val: string): void; - + /** * Gets the text to use as the message displayed when the user is idle. */ idleMessage(): string; - + /** * Sets the text to use as the message displayed when the user is timed out. */ timedOutMessage(val: string): void; - + /** * Gets the text to use as the message displayed when the user is timed out. */ timedOutMessage(): string; - + /** * Stores the original title if it hasn't been already, determines the number minutes, seconds, * and total seconds from countdown, and displays the idleMessage with the aforementioned values interpolated. */ setAsIdle(countdown: number): void; - + /** * Stores the original title if it hasn't been already, and displays the timedOutMessage. */ @@ -105,19 +105,19 @@ declare module angular.idle { interface IKeepAliveProvider extends IServiceProvider { /** - * If configured, options will be used to issue a request using $http. - * If the value is null, no HTTP request will be issued. - * You can specify a string, which it will assume to be a URL to a simple GET request. + * If configured, options will be used to issue a request using $http. + * If the value is null, no HTTP request will be issued. + * You can specify a string, which it will assume to be a URL to a simple GET request. * Otherwise, you can use the same options $http takes. However, cache will always be false. - * + * * @param value May be string or IRequestConfig, default is null. */ http(value: string | IRequestConfig): void; /** - * This specifies how often the keepalive event is triggered and the + * This specifies how often the keepalive event is triggered and the * HTTP request is issued. - * + * * @param seconds Integer, default is 10 minutes. Must be greater than 0. */ interval(seconds: number): void; @@ -126,7 +126,7 @@ declare module angular.idle { /** * Keepalive will use a timeout to periodically wake, broadcast a Keepalive event on the root scope, * and optionally make an $http request. By default, the Idle service will stop and start Keepalive - * when a user becomes idle or returns from idle, respectively. It is also started automatically when + * when a user becomes idle or returns from idle, respectively. It is also started automatically when * Idle.watch() is called. This can be disabled by configuring the IdleProvider. */ interface IKeepAliveService { @@ -145,7 +145,7 @@ declare module angular.idle { * Performs one ping only. */ ping(): void; - + /** * Changes the interval value at runtime. * You will need to restart the pinging process by calling start() manually for the changes to be reflected. @@ -158,26 +158,26 @@ declare module angular.idle { */ interface IIdleProvider extends IServiceProvider { /** - * Specifies the DOM events the service will watch to reset the idle timeout. + * Specifies the DOM events the service will watch to reset the idle timeout. * Multiple events should be separated by a space. - * + * * @param events string, default 'mousemove keydown DOMMouseScroll mousewheel mousedown' */ interrupt(events: string): void; /** - * The idle timeout duration in seconds. After this amount of time passes without the user - * performing an action that triggers one of the watched DOM events, the user is considered + * The idle timeout duration in seconds. After this amount of time passes without the user + * performing an action that triggers one of the watched DOM events, the user is considered * idle. - * + * * @param seconds integer, default is 20min */ idle(seconds: number): void; /** - * The amount of time the user has to respond (in seconds) before they have been considered + * The amount of time the user has to respond (in seconds) before they have been considered * timed out. - * + * * @param seconds integer, default is 30s */ timeout(seconds: number): void; @@ -187,14 +187,14 @@ declare module angular.idle { * and reset the idle state. If false or off, you will need to manually call watch() * when you want to start watching for idleness again. If notIdle, user activity will * only automatically interrupt if the user is not yet idle. - * + * * @param enabled boolean or string, possible values: off/false, idle/true, or notIdle */ autoResume(enabled: boolean | string): void; /** * When true, the Keepalive service is automatically stopped and started as needed. - * + * * @param enabled boolean, default is true */ keepalive(enabled: boolean): void; @@ -202,9 +202,9 @@ declare module angular.idle { /** * Idle, once watch() is called, will start a timeout which if expires, will enter a warning state - * countdown. Once the countdown reaches zero, idle will broadcast a timeout event indicating the - * user has timed out (where your app should log them out or whatever you like). If the user performs - * an action that triggers a watched DOM event that bubbles up to document.body, this will reset the + * countdown. Once the countdown reaches zero, idle will broadcast a timeout event indicating the + * user has timed out (where your app should log them out or whatever you like). If the user performs + * an action that triggers a watched DOM event that bubbles up to document.body, this will reset the * idle/warning state and start the process over again. */ interface IIdleService { @@ -219,13 +219,13 @@ declare module angular.idle { getTimeout(): number; /** - * Updates the idle value (see IdleProvider.idle()) and + * Updates the idle value (see IdleProvider.idle()) and * restarts the watch if its running. */ setIdle(idle: number): void; /** - * Updates the timeout value (see IdleProvider.timeout()) and + * Updates the timeout value (see IdleProvider.timeout()) and * restarts the watch if its running. */ setTimeout(timeout: number): void; @@ -234,7 +234,7 @@ declare module angular.idle { * Whether user has timed out (meaning idleDuration + timeout has passed without any activity) */ isExpired(): boolean; - + /** * Whether or not the watch() has been called and it is watching for idleness. */ diff --git a/angular-jwt/angular-jwt.d.ts b/angular-jwt/angular-jwt.d.ts index 620fcc8e4c..d8c719e2ef 100644 --- a/angular-jwt/angular-jwt.d.ts +++ b/angular-jwt/angular-jwt.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-jwt 0.0.8 // Project: https://github.com/auth0/angular-jwt // Definitions by: Reto Rezzonico -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.jwt { +declare namespace angular.jwt { interface JwtToken { iss: string; diff --git a/angular-load/angular-load-tests.ts b/angular-load/angular-load-tests.ts new file mode 100644 index 0000000000..7fea2d7924 --- /dev/null +++ b/angular-load/angular-load-tests.ts @@ -0,0 +1,12 @@ +/// + +angular.module('app',['angularLoad']) + .run(['angularLoad',(angularLoad:angular.load.IAngularLoadService)=> { + angularLoad.loadScript("https://ajax.googleapis.com/ajax/libs/angular_material/1.0.4/angular-material.min.js").then( + ()=>console.log("angular material js loaded") + ); + + angularLoad.loadCSS("https://ajax.googleapis.com/ajax/libs/angular_material/1.0.4/angular-material.css").then( + ()=>console.log("angular material css loaded") + ); + }]); diff --git a/angular-load/angular-load.d.ts b/angular-load/angular-load.d.ts new file mode 100644 index 0000000000..cd806c31f3 --- /dev/null +++ b/angular-load/angular-load.d.ts @@ -0,0 +1,15 @@ +// Type definitions for angular-load v0.4.1 +// Project: https://github.com/urish/angular-load +// Definitions by: david-gang +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace angular.load { + + interface IAngularLoadService { + loadScript(url:string): ng.IPromise; + loadCSS(url:string): ng.IPromise; + } + +} diff --git a/angular-loading-bar/angular-loading-bar.d.ts b/angular-loading-bar/angular-loading-bar.d.ts index acea6f048f..22a00f9ee7 100644 --- a/angular-loading-bar/angular-loading-bar.d.ts +++ b/angular-loading-bar/angular-loading-bar.d.ts @@ -1,12 +1,12 @@ // Type definitions for angular-loading-bar // Project: https://github.com/chieffancypants/angular-loading-bar // Definitions by: Stephen Lautier -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular { +declare namespace angular { interface IRequestShortcutConfig { /** @@ -16,8 +16,8 @@ declare module angular { } } -declare module angular.loadingBar { - +declare namespace angular.loadingBar { + interface ILoadingBarProvider{ /** * Turn the spinner on or off diff --git a/angular-local-storage/angular-local-storage.d.ts b/angular-local-storage/angular-local-storage.d.ts index ae027527a4..b2bcf377d2 100644 --- a/angular-local-storage/angular-local-storage.d.ts +++ b/angular-local-storage/angular-local-storage.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-local-storage v0.1.5 // Project: https://github.com/grevory/angular-local-storage // Definitions by: Ken Fukuyama -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.local.storage { +declare namespace angular.local.storage { interface ILocalStorageServiceProvider extends angular.IServiceProvider { /** * Setter for the prefix diff --git a/angular-localForage/angular-localForage.d.ts b/angular-localForage/angular-localForage.d.ts index d9c9ad5adf..edc4ca268d 100644 --- a/angular-localForage/angular-localForage.d.ts +++ b/angular-localForage/angular-localForage.d.ts @@ -1,12 +1,12 @@ // Type definitions for angular-localForage 1.2.2 // Project: https://github.com/ocombe/angular-localForage // Definitions by: Stefan Steinhart -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module angular.localForage { +declare namespace angular.localForage { interface LocalForageConfig { driver?:string; diff --git a/angular-locker/angular-locker.d.ts b/angular-locker/angular-locker.d.ts index e911e3be74..3327521f1a 100644 --- a/angular-locker/angular-locker.d.ts +++ b/angular-locker/angular-locker.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular Locker v2.0.3 // Project: https://github.com/tymondesigns/angular-locker // Definitions by: Niko Kovačič -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -10,7 +10,7 @@ declare module "angular-locker" { export = _; } -declare module angular.locker { +declare namespace angular.locker { interface ILockerServicePutFunction { (current: any): any } @@ -69,7 +69,7 @@ declare module angular.locker { * Add a new item to storage (even if it already exists) * * @param {Mixed} key The key to add - * @param {Mixed} value The value to add + * @param {Mixed} value The value to add */ put(key: string, value: any): ILockerService | boolean; /** @@ -77,7 +77,7 @@ declare module angular.locker { * * @param {Mixed} key The key to add * @param {Mixed} putFunction The default to pass to function if doesn't already exist - * @param {Mixed} value The value to add + * @param {Mixed} value The value to add */ put(key: string, putFunction: ILockerServicePutFunction, value: any): ILockerService | boolean; /** @@ -167,4 +167,4 @@ declare module angular.locker { */ defaults(lockerSettings: ILockerSettings): void; } -} \ No newline at end of file +} diff --git a/angular-material/angular-material-0.8.3.d.ts b/angular-material/angular-material-0.8.3.d.ts index 10724b8122..599a39ba9b 100644 --- a/angular-material/angular-material-0.8.3.d.ts +++ b/angular-material/angular-material-0.8.3.d.ts @@ -1,10 +1,10 @@ // Type definitions for Angular Material 0.8.3+ (angular.material module) // Project: https://github.com/angular/material // Definitions by: Matt Traynham -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.material { +declare namespace angular.material { interface MDBottomSheetOptions { templateUrl?: string; diff --git a/angular-material/angular-material-0.9.0.d.ts b/angular-material/angular-material-0.9.0.d.ts index 96134f114f..daeedc0085 100644 --- a/angular-material/angular-material-0.9.0.d.ts +++ b/angular-material/angular-material-0.9.0.d.ts @@ -1,10 +1,10 @@ // Type definitions for Angular Material 0.9.0-rc1+ (angular.material module) // Project: https://github.com/angular/material // Definitions by: Matt Traynham -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.material { +declare namespace angular.material { interface MDBottomSheetOptions { templateUrl?: string; diff --git a/angular-material/angular-material.d.ts b/angular-material/angular-material.d.ts index 25ac6b8301..6ba65473ed 100644 --- a/angular-material/angular-material.d.ts +++ b/angular-material/angular-material.d.ts @@ -1,10 +1,10 @@ // Type definitions for Angular Material 1.0.0-rc5+ (angular.material module) // Project: https://github.com/angular/material // Definitions by: Matt Traynham -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.material { +declare namespace angular.material { interface IBottomSheetOptions { templateUrl?: string; @@ -126,6 +126,7 @@ declare module angular.material { textContent(content: string): T; action(action: string): T; highlightAction(highlightAction: boolean): T; + highlightClass(highlightClass: string): T; capsule(capsule: boolean): T; theme(theme: string): T; hideDelay(delay: number): T; @@ -139,6 +140,7 @@ declare module angular.material { interface IToastOptions { templateUrl?: string; template?: string; + autoWrap?:boolean; scope?: angular.IScope; // default: new child scope preserveScope?: boolean; // default: false hideDelay?: number; // default (ms): 3000 diff --git a/angular-media-queries/match-media-tests.ts b/angular-media-queries/match-media-tests.ts new file mode 100644 index 0000000000..a9331751ae --- /dev/null +++ b/angular-media-queries/match-media-tests.ts @@ -0,0 +1,60 @@ +/// + +var myApp = angular.module('testModule', ['matchMedia']); + +myApp.controller('TestController', ($log: angular.ILogService, + $scope: angular.IScope, + screenSize: angular.matchmedia.IScreenSize) => { + + var fnCallback = (result: boolean) => { + $log.info(`Result: ${result}`); + } + + // '.isRetina' examples + if(screenSize.isRetina) { + $log.info("Retina screen detected") + } + + // '.is(...)' examples + var res = screenSize.is(["xs", "sm"]); + fnCallback(res); + + res = screenSize.is("xs, lg") + fnCallback(res); + + // '.on(...)' examples + + res = screenSize.on(["xs", "sm"], fnCallback); + fnCallback(res); + + res = screenSize.on("xs, lg", fnCallback); + fnCallback(res); + + res = screenSize.on(["xs", "sm"], fnCallback, $scope); + fnCallback(res); + + res = screenSize.on("xs, lg", fnCallback, $scope); + fnCallback(res); + + // '.onChange(...)' examples + + res = screenSize.onChange($scope, ["xs", "sm"], fnCallback); + fnCallback(res); + + res = screenSize.onChange($scope, "xs, lg", fnCallback); + fnCallback(res); + + // '.when(...)' examples + + res = screenSize.when(["xs", "sm"], fnCallback); + fnCallback(res); + + res = screenSize.when("xs, lg", fnCallback); + fnCallback(res); + + res = screenSize.when(["xs", "sm"], fnCallback, $scope); + fnCallback(res); + + res = screenSize.when("xs, lg", fnCallback, $scope); + fnCallback(res); +}); \ No newline at end of file diff --git a/angular-media-queries/match-media.d.ts b/angular-media-queries/match-media.d.ts new file mode 100644 index 0000000000..401c61f46c --- /dev/null +++ b/angular-media-queries/match-media.d.ts @@ -0,0 +1,30 @@ +// Type definitions for Angular matchMedia 0.6.0 (angular.matchMedia module) +// Project: https://github.com/jacopotarantino/angular-match-media +// Definitions by: Joao Monteiro +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +declare namespace angular.matchmedia { + + interface IScreenSize { + + // Returns a value indicating if the current device has a retina screen + isRetina: boolean; + + is(list: Array | string): boolean; + + // Executes the callback function on window resize with the match truthiness as the first argument. + // Returns the current match truthiness. + // The 'scope' parameter is optional. If it's not passed in, '$rootScope' is used. + on(list: Array | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean; + + // Executes the callback function ONLY when the match differs from previous match. + // Returns the current match truthiness. + // The 'scope' parameter is required for cleanup reasons (destroy event). + onChange(scope: angular.IScope, list: Array | string, callback: (result: boolean) => void): boolean; + + // Executes the callback only when inside of the particular screensize. + // The 'scope' parameter is optional. If it's not passed in, '$rootScope' is used. + when(list: Array | string, callback: (result: boolean) => void, scope?: angular.IScope): boolean; + } +} \ No newline at end of file diff --git a/angular-meteor/angular-meteor.d.ts b/angular-meteor/angular-meteor.d.ts index e3e66bf34b..1e14ae9659 100644 --- a/angular-meteor/angular-meteor.d.ts +++ b/angular-meteor/angular-meteor.d.ts @@ -1,41 +1,41 @@ // Type definitions for Angular JS Meteor v0.8.8 (angular.meteor module) // Project: https://github.com/Urigo/angular-meteor // Definitions by: Peter Grman -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module angular.meteor { +declare namespace angular.meteor { interface IRootScopeService extends angular.IRootScopeService { /** * The current logged in user and it's data. it is null if the user is not logged in. A reactive data source. */ currentUser: Meteor.User; - + /** - * True if a login method (such as Meteor.loginWithPassword, Meteor.loginWithFacebook, or Accounts.createUser) is currently in progress. + * True if a login method (such as Meteor.loginWithPassword, Meteor.loginWithFacebook, or Accounts.createUser) is currently in progress. * A reactive data source. Can be use to display animation while user is logging in. */ loggingIn: boolean; } - + interface IScope extends angular.IScope, IRootScopeService { /** * A method to get a $scope variable and watch it reactivly - * + * * @param scopeVariableName - The name of the scope's variable to bind to * @param [objectEquality=false] - Watch the object equality using angular.equals instead of comparing for reference equality, deeper watch but also slower */ getReactively(scopeVariableName: string, objectEquality?: boolean): ReactiveResult; - + /** * A service which is a wrapper for Meteor.subscribe. It subscribes to a Meteor.publish method in the client and returns a AngularJS promise when ready. * Calling $scope.subscribe will automatically stop the subscription when the scope is destroyed. - * + * * @param name - Name of the subscription. Matches the name of the server's publish() call. * @param publisherArguments - Optional arguments passed to publisher function on server. - * + * * @return The promise solved successfully when subscription is ready. The success promise holds the subscription handle. */ subscribe(name: string, ...publisherArguments: any[]): angular.IPromise; @@ -57,206 +57,206 @@ declare module angular.meteor { * The autorun method is part of the ReactiveContext, and available on every context and $scope. * The argument of this method is a callback, which will be called each time Autorun will be used. * The Autorun will stop automatically when when it's context ($scope) is destroyed. - * + * * @param runFunc - The function to run. It receives one argument: the Computation object that will be returned. */ autorun(runFunc : () => void) : Tracker.Computation; } - + /** * $meteor in angularjs */ interface IMeteorService { /** * A service that wraps the Meteor collections to enable reactivity within AngularJS. - * - * @param collection - A Meteor Collection or a reactive function to bind to. + * + * @param collection - A Meteor Collection or a reactive function to bind to. * - Reactive function can be used with $scope.getReactively to add $scope variable as reactive variable to the cursor. - * @param [autoClientSave=true] - By default, changes in the Angular collection will automatically update the Meteor collection. + * @param [autoClientSave=true] - By default, changes in the Angular collection will automatically update the Meteor collection. * - However if set to false, changes in the client won't be automatically propagated back to the Meteor collection. */ collection(collection: Mongo.Collection|ReactiveResult|Function|(()=>T), autoClientSave?: boolean): AngularMeteorCollection; - + /** * A service that wraps the Meteor collections to enable reactivity within AngularJS. - * - * @param collection - A Meteor Collection or a reactive function to bind to. + * + * @param collection - A Meteor Collection or a reactive function to bind to. * - Reactive function can be used with $scope.getReactively to add $scope variable as reactive variable to the cursor. - * @param [autoClientSave=true] - By default, changes in the Angular collection will automatically update the Meteor collection. + * @param [autoClientSave=true] - By default, changes in the Angular collection will automatically update the Meteor collection. * - However if set to false, changes in the client won't be automatically propagated back to the Meteor collection. * @param [updateCollection] - A collection object which will be used for updates (insert, update, delete). */ collection(collection: Mongo.Collection|ReactiveResult|Function|(()=>T), autoClientSave: boolean, updateCollection: Mongo.Collection): AngularMeteorCollection2; - + /** - * A service that wraps a Meteor object to enable reactivity within AngularJS. + * A service that wraps a Meteor object to enable reactivity within AngularJS. * Finds the first document that matches the selector, as ordered by sort and skip options. Wraps collection.findOne - * + * * @param collection - A Meteor Collection to bind to. - * @param selector - A query describing the documents to find or just the ID of the document. - * - $meteor.object will find the first document that matches the selector, + * @param selector - A query describing the documents to find or just the ID of the document. + * - $meteor.object will find the first document that matches the selector, * - as ordered by sort and skip options, exactly like Meteor's collection.findOne - * @param [autoClientSave=true] - By default, changes in the Angular object will automatically update the Meteor object. + * @param [autoClientSave=true] - By default, changes in the Angular object will automatically update the Meteor object. * - However if set to false, changes in the client won't be automatically propagated back to the Meteor object. */ object(collection: Mongo.Collection, selector: Mongo.Selector|Mongo.ObjectID|string, autoClientSave?: boolean): AngularMeteorObject; - + /** * A service which is a wrapper for Meteor.subscribe. It subscribes to a Meteor.publish method in the client and returns a AngularJS promise when ready. - * + * * @param name - Name of the subscription. Matches the name of the server's publish() call. * @param publisherArguments - Optional arguments passed to publisher function on server. - * + * * @return The promise solved successfully when subscription is ready. The success promise holds the subscription handle. */ subscribe(name: string, ...publisherArguments: any[]): angular.IPromise; - + /** * A service service which wraps up Meteor.methods with AngularJS promises. - * + * * @param name - Name of method to invoke * @param methodArguments - Optional method arguments - * + * * @return The promise solves successfully with the return value of the method or return reject with the error from the method. */ call(name: string, ...methodArguments: any[]): angular.IPromise; - + // User Authentication BEGIN -> - + /** - * Returns a promise fulfilled with the currentUser when the user subscription is ready. + * Returns a promise fulfilled with the currentUser when the user subscription is ready. * This is useful when you want to grab the current user before the route is rendered. - * If there is no logged in user, it will return null. + * If there is no logged in user, it will return null. * See the “Authentication with Routers” section of our tutorial for more information and a full example. */ waitForUser(): angular.IPromise; - + /** - * Resolves the promise successfully if a user is authenticated and rejects otherwise. - * This is useful in cases where you want to require a route to have an authenticated user. - * You can catch the rejected promise and redirect the unauthenticated user to a different page, such as the login page. + * Resolves the promise successfully if a user is authenticated and rejects otherwise. + * This is useful in cases where you want to require a route to have an authenticated user. + * You can catch the rejected promise and redirect the unauthenticated user to a different page, such as the login page. * See the “Authentication with Routers” section of our tutorial for more information and a full example. */ requireUser(): angular.IPromise; - + /** - * Resolves the promise successfully if a user is authenticated and the validatorFn returns true; rejects otherwise. - * This is useful in cases where you want to require a route to have an authenticated user and do extra validation like the user's role or group. - * You can catch the rejected promise and redirect the unauthenticated user to a different page, such as the login page. + * Resolves the promise successfully if a user is authenticated and the validatorFn returns true; rejects otherwise. + * This is useful in cases where you want to require a route to have an authenticated user and do extra validation like the user's role or group. + * You can catch the rejected promise and redirect the unauthenticated user to a different page, such as the login page. * See the “Authentication with Routers” section of our tutorial for more information and a full example. - * - * The mandatory validator function will be called with the authenticated user as the single param and it's expected to return true in order to resolve. - * If it returns a string, the promise will be rejected using said string as the reason. + * + * The mandatory validator function will be called with the authenticated user as the single param and it's expected to return true in order to resolve. + * If it returns a string, the promise will be rejected using said string as the reason. * Any other return (false, null, undefined) will be rejected with the default "FORBIDDEN" reason. */ requireValidUser(validatorFn: (user: Meteor.User) => boolean|string): angular.IPromise; - + /** * Log the user in with a password. - * + * * @param user - Either a string interpreted as a username or an email; or an object with a single key: email, username or id. * @param password - The user's password. */ loginWithPassword(user: string|{email: string}|{username: string}|{id: string}, password: string): angular.IPromise; - + /** * Create a new user. More information: http://docs.meteor.com/#/full/accounts_createuser - * + * * @param options.username - A unique name for this user. Either this, or email is required. * @param options.email - The user's email address. Either this, or username is required. * @param options.password - The user's password. This is not sent in plain text over the wire. * @param options.profile - The user's profile, typically including the name field. */ createUser(options: {username?: string; email?: string; password: string; profile?: Object}): angular.IPromise; - + /** * Change the current user's password. Must be logged in. - * + * * @param oldPassword - The user's current password. This is not sent in plain text over the wire. * @param newPassword - A new password for the user. This is not sent in plain text over the wire. */ changePassword(oldPassword: string, newPassword: string): angular.IPromise; - + /** * Request a forgot password email. - * + * * @param options.email - The email address to send a password reset link. */ forgotPassword(options: {email: string}): angular.IPromise; - + /** * Reset the password for a user using a token received in email. Logs the user in afterwards. - * + * * @param token - The token retrieved from the reset password URL. * @param newPassword - A new password for the user. This is not sent in plain text over the wire. */ resetPassword(token: string, newPassword: string): angular.IPromise; - + /** * Marks the user's email address as verified. Logs the user in afterwards. - * + * * @param token - The token retrieved from the reset password URL. */ verifyEmail(token: string): angular.IPromise; - + loginWithFacebook: ILoginWithExternalService; loginWithTwitter: ILoginWithExternalService; loginWithGoogle: ILoginWithExternalService; loginWithGithub: ILoginWithExternalService; loginWithMeetup: ILoginWithExternalService; loginWithWeibo: ILoginWithExternalService; - + /** * Log the user out. - * + * * @return Resolves with no arguments on success, or reject with a Error argument on failure. */ logout(): angular.IPromise; - + /** - * Log out other clients logged in as the current user, but does not log out the client that calls this function. - * For example, when called in a user's browser, connections in that browser remain logged in, + * Log out other clients logged in as the current user, but does not log out the client that calls this function. + * For example, when called in a user's browser, connections in that browser remain logged in, * but any other browsers or DDP clients logged in as that user will be logged out. - * + * * @return Resolves with no arguments on success, or reject with a Error argument on failure. */ logoutOtherClients(): angular.IPromise; - + // <- User Authentication END // $meteorUtils BEGIN -> - + /** * @param scope - The AngularJS scope you use the autorun on. * @param fn - The function that will re-run every time a reactive variable changes inside it. */ autorun(scope: angular.IScope, fn: Function): void; - + /** * @param collectionName - The name of the collection you want to get back */ getCollectionByName(collectionName: string): Mongo.Collection; - + // <- $meteorUtils END // $meteorCamera BEGIN -> - + /** * A helper service for taking pictures across platforms. * Must add mdg:camera package to use! (meteor add mdg:camera) - * + * * @param [options] - options is an optional argument that is an Object with the following possible keys: * @param options.width - An integer that specifies the minimum width of the returned photo. * @param options.height - An integer that specifies the minimum height of the returned photo. * @param options.quality - A number from 0 to 100 specifying the desired quality of JPEG encoding. - * + * * @return The promise solved successfully when the picture is taken with the data as a parameter or rejected with an error as a parameter in case of error. */ getPicture(options?: {width?: number; height?: number; quality?: number}): angular.IPromise; - + // <- $meteorCamera END - + /** * A service that binds a scope variable to a Meteor Session variable. - * + * * @param sessionKey - The name of the session variable * @return An object with a single function bind - to bind to that variable. */ @@ -268,34 +268,34 @@ declare module angular.meteor { bind: (scope: IScope, model: string) => void; }; } - + /** * An object that connects a Meteor Object to an AngularJS scope variable. - * - * The object contains also all the properties from the generic type T, + * + * The object contains also all the properties from the generic type T, * unfortunately TypeScript doesn't at the moment allow to extend a generic type (see https://github.com/Microsoft/TypeScript/issues/2225 for details and updates). * For a workaround, you'll need to implement an interface which will merge AngularMeteorObject together with T and cast it, like this: - * + * * interface TodoAngularMeteorObject extends ITodo, AngularMeteorObject { } * var todo = $meteor.object(TodoCollection, 'TodoID'); */ interface AngularMeteorObject { /** - * @param [doc] - The doc to save to the Meteor Object. If nothing is passed, the method saves everything in the AngularMeteorObject as is. + * @param [doc] - The doc to save to the Meteor Object. If nothing is passed, the method saves everything in the AngularMeteorObject as is. * - Unchanged properties will be overridden with their existing values, which may trigger hooks. * - If doc is passed, the method only updates the Meteor Object with the properties passed, and no other changes will be saved. - * + * * @return Returns a promise with an error in case for an error or a number of successful docs changed in case of success. */ save(doc?: T): angular.IPromise; - + /** * Reset the current value of the object to the one in the server. */ reset(): void; - + /** - * Returns a copy of the AngularMeteorObject with all the AngularMeteor-specific internal properties removed. + * Returns a copy of the AngularMeteorObject with all the AngularMeteor-specific internal properties removed. * The returned object is then safe to use as a parameter for method calls, or anywhere else where the data needs to be converted to JSON. */ getRawObject(): T; @@ -303,17 +303,17 @@ declare module angular.meteor { /** * A shorten (Syntactic sugar) function for the $meteor.subscribe function. * Takes only one parameter and not returns a promise like $meteor.subscribe does. - * + * * @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service. - */ + */ subscribe(subscriptionName:string): AngularMeteorObject; } - + /** * An object that connects a Meteor Collection to an AngularJS scope variable */ interface AngularMeteorCollection extends AngularMeteorCollection2 { } - + /** * An object that connects a Meteor Collection to an AngularJS scope variable, * but can use a differen type for updates. @@ -321,32 +321,32 @@ declare module angular.meteor { interface AngularMeteorCollection2 extends Array { /** * @param [docs] - The docs to save to the Meteor Collection. - * - If the docs parameter is empty, the method saves everything in the AngularMeteorCollection as is. - * - If an object is passed, the method pushes that object into the AngularMeteorCollection. + * - If the docs parameter is empty, the method saves everything in the AngularMeteorCollection as is. + * - If an object is passed, the method pushes that object into the AngularMeteorCollection. * - If an array is passed, the method pushes all objects in the array into the AngularMeteorCollection. */ save(docs?: U|U[]): void; - - /** + + /** * @param [keys] - The keys of the object to remove from the Meteor Collection. - * - If nothing is passed, the method removes all the documents from the AngularMeteorCollection. - * - If an object is passed, the method removes the object with that key from the AngularMeteorCollection. + * - If nothing is passed, the method removes all the documents from the AngularMeteorCollection. + * - If an object is passed, the method removes the object with that key from the AngularMeteorCollection. * - If an array is passed, the method removes all objects that matches the keys in the array from the AngularMeteorCollection. */ remove(keys?: U|string|number|string[]|number[]): void; - + /** * A shorten (Syntactic sugar) function for the $meteor.subscribe function. * Takes only one parameter and not returns a promise like $meteor.subscribe does. - * + * * @param subscriptionName - The subscription name to subscribe to. Exactly like the first parameter in $meteor.subscribe service. */ subscribe(subscriptionName:string): AngularMeteorCollection2; } - + interface ILoginWithExternalService { (options: Meteor.LoginWithExternalServiceOptions): angular.IPromise; } - + interface ReactiveResult { } } diff --git a/angular-modal/angular-modal.d.ts b/angular-modal/angular-modal.d.ts index 0effea95cc..0bc46ee1f1 100644 --- a/angular-modal/angular-modal.d.ts +++ b/angular-modal/angular-modal.d.ts @@ -6,7 +6,7 @@ /// /// -declare module angularModal { +declare namespace angularModal { type AngularModalControllerDefinition = (new (...args: any[]) => any) | Function | string; // Possible arguments to IControllerService diff --git a/angular-notifications/angular-notifications.d.ts b/angular-notifications/angular-notifications.d.ts index 49883efb3e..58a388e580 100644 --- a/angular-notifications/angular-notifications.d.ts +++ b/angular-notifications/angular-notifications.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-notifications // Project: https://github.com/DerekRies/angular-notifications // Definitions by: Tomasz Ducin -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.notifications { +declare namespace angular.notifications { interface IAnimation { duration: number; diff --git a/angular-notify/angular-notify.d.ts b/angular-notify/angular-notify.d.ts index f97c94e7ac..541d06d720 100644 --- a/angular-notify/angular-notify.d.ts +++ b/angular-notify/angular-notify.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-notify 2.5.0 // Project: https://github.com/cgross/angular-notify // Definitions by: Suwato -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.cgNotify { +declare namespace angular.cgNotify { interface INotifyService { @@ -51,7 +51,7 @@ declare module angular.cgNotify { * Optional. Currently center and right are the only acceptable values. */ position? : string; - + /** * Optional. The duration (in milliseconds) of the message. A duration of 0 will prevent the message from closing automatically. */ @@ -99,7 +99,7 @@ declare module angular.cgNotify { * The default element that contains each notification. Defaults to document.body. */ container? : any; - + /** * The maximum number of total notifications that can be visible at one time. Older notifications will be closed when the maximum is reached. */ diff --git a/angular-odata-resources/angular-odata-resources.d.ts b/angular-odata-resources/angular-odata-resources.d.ts index d9c59ddf3b..04c9ef3cfe 100644 --- a/angular-odata-resources/angular-odata-resources.d.ts +++ b/angular-odata-resources/angular-odata-resources.d.ts @@ -1,12 +1,12 @@ // Type definitions for OData Angular Resources // Project: https://github.com/devnixs/ODataAngularResources // Definitions by: Raphael ATALLAH -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module OData { - +declare namespace OData { + /** * Currently supported options for the $resource factory options argument. */ diff --git a/angular-protractor/angular-protractor.d.ts b/angular-protractor/angular-protractor.d.ts index 78158df9c0..fa2928c136 100644 --- a/angular-protractor/angular-protractor.d.ts +++ b/angular-protractor/angular-protractor.d.ts @@ -1,11 +1,11 @@ // Type definitions for Angular Protractor 1.5.0 // Project: https://github.com/angular/protractor // Definitions by: Bill Armstrong -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module protractor { +declare namespace protractor { //region Wrapped webdriver Items class ActionSequence extends webdriver.ActionSequence {} @@ -24,12 +24,12 @@ declare module protractor { var CommandName: webdriver.ICommandName; var Key: webdriver.IKey; - module error { + namespace error { class Error extends webdriver.error.Error {} var ErrorCode: webdriver.error.IErrorCode; } - module logging { + namespace logging { class Preferences extends webdriver.logging.Preferences { } class Entry extends webdriver.logging.Entry { } @@ -40,7 +40,7 @@ declare module protractor { function getLevel(nameOrValue: number): webdriver.logging.ILevel; } - module promise { + namespace promise { class Thenable extends webdriver.promise.Thenable { } class Promise extends webdriver.promise.Promise { } class Deferred extends webdriver.promise.Deferred { } @@ -283,7 +283,7 @@ declare module protractor { function setDefaultFlow(flow: webdriver.promise.ControlFlow): void; } - module stacktrace { + namespace stacktrace { class Frame extends webdriver.stacktrace.Frame { } class Snapshot extends webdriver.stacktrace.Snapshot { } @@ -311,7 +311,7 @@ declare module protractor { var BROWSER_SUPPORTED: boolean; } - module until { + namespace until { class Condition extends webdriver.until.Condition { } /** @@ -501,7 +501,7 @@ declare module protractor { function titleMatches(regex: RegExp): webdriver.until.Condition; } - module ExpectedConditions { + namespace ExpectedConditions { /** * Negates the result of a promise. * diff --git a/angular-scenario/angular-scenario.d.ts b/angular-scenario/angular-scenario.d.ts index d1b7b19f61..f405a0a9c0 100644 --- a/angular-scenario/angular-scenario.d.ts +++ b/angular-scenario/angular-scenario.d.ts @@ -1,17 +1,17 @@ // Type definitions for Angular Scenario Testing 1.3 (ngScenario module) // Project: http://angularjs.org // Definitions by: RomanoLindano -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module ng { +declare namespace ng { export interface IAngularStatic { scenario: any; } } -declare module angularScenario { +declare namespace angularScenario { export interface RunFunction { (functionToRun: any): any; diff --git a/angular-scroll/angular-scroll-tests.ts b/angular-scroll/angular-scroll-tests.ts index cd4a4fbca1..d7c319df9a 100644 --- a/angular-scroll/angular-scroll-tests.ts +++ b/angular-scroll/angular-scroll-tests.ts @@ -1,6 +1,6 @@ /// -module TestApp { +namespace TestApp { class TestController { @@ -61,4 +61,4 @@ module TestApp { angular.module('testApp', ['duScroll']) .controller('testController', TestController); -} \ No newline at end of file +} diff --git a/angular-scroll/angular-scroll.d.ts b/angular-scroll/angular-scroll.d.ts index 354ecf3d1a..1c96194e8b 100644 --- a/angular-scroll/angular-scroll.d.ts +++ b/angular-scroll/angular-scroll.d.ts @@ -1,12 +1,12 @@ // Type definitions for angular-scroll // Project: https://github.com/oblador/angular-scroll // Definitions by: Sam Herrmann -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module duScroll { +declare namespace duScroll { /** * Extends the angular.element object returned by the $document sercive with a few jQuery like functions. @@ -41,4 +41,4 @@ declare module duScroll { duScrollTop(): number; duScrollLeft(): number; } -} \ No newline at end of file +} diff --git a/angular-signalr-hub/angular-signalr-hub-tests.ts b/angular-signalr-hub/angular-signalr-hub-tests.ts index b46ff63ac7..d20457bcdc 100644 --- a/angular-signalr-hub/angular-signalr-hub-tests.ts +++ b/angular-signalr-hub/angular-signalr-hub-tests.ts @@ -5,12 +5,12 @@ angular .module('app', ['SignalR']) .factory('Employees', ngSignalrTest.EmployeesFactory); -module ngSignalrTest { +namespace ngSignalrTest { export class EmployeesFactory { static $inject = ['$rootScope', 'Hub', '$timeout']; private hub: ngSignalr.Hub; public all: Array; - + constructor($rootScope: ng.IRootScopeService, Hub: ngSignalr.HubFactory, $timeout: ng.ITimeoutService) { // declaring the hub connection this.hub = new Hub('employee', { @@ -27,45 +27,45 @@ module ngSignalrTest { $rootScope.$apply(); } }, - + // server-side methods methods: ['lock', 'unlock'], - + // query params sent on initial connection queryParams:{ 'token': 'exampletoken' }, - + // handle connection error errorHandler: (message: string) => { console.error(message); }, - - stateChanged: (state: SignalRStateChange) => { + + stateChanged: (state: SignalR.StateChanged) => { // your code here } }); } - + private find(id: number) { for (var i = 0; i < this.all.length; i++) { if (this.all[i].Id === id) return this.all[i]; } - + return null; } - + public edit = (employee: Employee) => { employee.Edit = true; this.hub.invoke('lock', employee.Id); }; - + public done = (employee: Employee) => { employee.Edit = false; this.hub.invoke('unlock', employee.Id); } } - + interface Employee { Id: number; Name: string; @@ -74,4 +74,4 @@ module ngSignalrTest { Edit: boolean; Locked: boolean; } -} \ No newline at end of file +} diff --git a/angular-signalr-hub/angular-signalr-hub.d.ts b/angular-signalr-hub/angular-signalr-hub.d.ts index 3027941061..03fa6427eb 100644 --- a/angular-signalr-hub/angular-signalr-hub.d.ts +++ b/angular-signalr-hub/angular-signalr-hub.d.ts @@ -1,73 +1,73 @@ // Type definitions for angular-signalr-hub v1.5.0 // Project: https://github.com/JustMaier/angular-signalr-hub // Definitions by: Adam Santaniello -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module ngSignalr { +declare namespace ngSignalr { interface HubFactory { /** * Creates a new Hub connection */ - new(hubName: string, options: HubOptions) : Hub + new (hubName: string, options: HubOptions): Hub } - + class Hub { hubName: string; - connection: SignalR; - proxy: HubProxy; - + connection: SignalR.Connection; + proxy: SignalR.Hub.Proxy; + on(event: string, fn: (...args: any[]) => void): void; invoke(method: string, ...args: any[]): JQueryDeferred; disconnect(): void; connect(): JQueryPromise; } - + interface HubOptions { /** * Collection of client side callbacks */ - listeners?: { [index: string] : (...args: any[]) => void }; - + listeners?: { [index: string]: (...args: any[]) => void }; + /** * String array of server side methods which the client can call */ methods?: Array; - + /** * Sets the root path for the SignalR web service */ rootPath?: string; - + /** * Object representing additional query params to be sent on connection */ - queryParams?: { [index: string] : string }; - + queryParams?: { [index: string]: string }; + /** * Function to handle hub connection errors */ errorHandler?: (error: string) => void; - + /** * Enable/disable logging */ logging?: boolean; - + /** - * Use a shared global connection or create a new one just for this hub, defaults to true + * Use a shared global connection or create a new one just for this hub, defaults to true */ useSharedConnection?: boolean; - + /** * Sets transport method (e.g 'longPolling' or ['webSockets', 'longPolling'] ) */ transport?: any; - + /** * Function to handle hub connection state changed event */ - stateChanged?: (state: SignalRStateChange) => void; + stateChanged?: (state: SignalR.StateChanged) => void; } } diff --git a/angular-spinner/angular-spinner-tests.ts b/angular-spinner/angular-spinner-tests.ts index cb50a9c37f..4f3f870233 100644 --- a/angular-spinner/angular-spinner-tests.ts +++ b/angular-spinner/angular-spinner-tests.ts @@ -2,9 +2,9 @@ var myApp = angular.module('testModule'); -module AngularSpinnerTest { +namespace AngularSpinnerTest { var app = angular.module("angularSpinnerTest", ["angular-spinner"]); - + app.config(['usSpinnerService', function(usSpinnerService: ISpinnerService) { usSpinnerService.spin('key1'); usSpinnerService.stop('key2'); diff --git a/angular-spinner/angular-spinner.d.ts b/angular-spinner/angular-spinner.d.ts index 99784d38f8..ba85d0e53c 100644 --- a/angular-spinner/angular-spinner.d.ts +++ b/angular-spinner/angular-spinner.d.ts @@ -1,7 +1,7 @@ // Type definitions for angular-spinner.js 0.5.1 // Project: https://github.com/urish/angular-spinner // Definitions by: Marcin Biegała -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/angular-storage/angular-storage.d.ts b/angular-storage/angular-storage.d.ts index 3e442e6693..cb46cd1d7c 100644 --- a/angular-storage/angular-storage.d.ts +++ b/angular-storage/angular-storage.d.ts @@ -1,9 +1,9 @@ // Type definitions for angular-storage v0.0.11 // Project: https://github.com/auth0/angular-storage // Definitions by: Matthew DeKrey -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module angular.a0.storage { +declare namespace angular.a0.storage { interface IStoreService extends INamespacedStoreService { /** * Returns a namespaced store @@ -15,34 +15,34 @@ declare module angular.a0.storage { */ getNamespacedStore(namespace: string, storage?: string, delimiter?: string): INamespacedStoreService; } - + interface INamespacedStoreService { /** * Sets a new value to the storage with the key name. It can be any object. - * + * * @param {String} name - The key name for the location of the value * @param value - The value to store */ set(name: string, value: any): void; - + /** - * Returns the saved value with they key name. - * + * Returns the saved value with they key name. + * * @param {String} name - The key name for the location of the value * @returns The saved value; if you saved an object, you get an object */ get(name: string): any; - + /** * Deletes the saved value with the key name - * + * * @param {String} name - The key name for the location of the value to remove */ - remove(name: string): void; + remove(name: string): void; } - + interface IStoreProvider { - + /** * Sets the storage. * @@ -50,4 +50,4 @@ declare module angular.a0.storage { */ setStore(storage: string): void; } -} \ No newline at end of file +} diff --git a/angular-strap/angular-strap-tests.ts b/angular-strap/angular-strap-tests.ts index 90c7a2bdea..c052ffad4f 100644 --- a/angular-strap/angular-strap-tests.ts +++ b/angular-strap/angular-strap-tests.ts @@ -1,7 +1,7 @@ /// /// -module angularStrapTests { +namespace angularStrapTests { import ngStrap = mgcrea.ngStrap; @@ -9,7 +9,7 @@ module angularStrapTests { // Modal /////////////////////////////////////////////////////////////////////////// - module modalTests { + namespace modalTests { interface IDemoCtrlScope extends ngStrap.modal.IModalScope { showModal: () => void; @@ -54,7 +54,7 @@ module angularStrapTests { // Aside /////////////////////////////////////////////////////////////////////////// - module asideTests { + namespace asideTests { angular.module('demoApp') .config($asideConfig) @@ -85,7 +85,7 @@ module angularStrapTests { var defaults: ngStrap.aside.IAsideOptions = {}; defaults.animation = 'am-fadeAndSlideLeft'; defaults.placement = 'left'; - + angular.extend($asideProvider.defaults, defaults); } } @@ -94,8 +94,8 @@ module angularStrapTests { /////////////////////////////////////////////////////////////////////////// // Alert /////////////////////////////////////////////////////////////////////////// - - module alertTests { + + namespace alertTests { angular.module('demoApp') .config($alertConfig) @@ -127,8 +127,8 @@ module angularStrapTests { /////////////////////////////////////////////////////////////////////////// // Tooltip /////////////////////////////////////////////////////////////////////////// - - module tooltipTests { + + namespace tooltipTests { angular.module('demoApp') .config($tooltipConfig) @@ -139,7 +139,7 @@ module angularStrapTests { drct.restrict = 'EA'; drct.link = link; return drct; - + function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void { var options: ngStrap.tooltip.ITooltipOptions = {}; options.title = 'My Title'; @@ -147,11 +147,11 @@ module angularStrapTests { } } - function $tooltipConfig($tooltipProvider: ngStrap.tooltip.ITooltipProvider): void { + function $tooltipConfig($tooltipProvider: ngStrap.tooltip.ITooltipProvider): void { var defaults: ngStrap.tooltip.ITooltipOptions = {}; defaults.animation = 'am-flip-x'; defaults.trigger = 'hover'; - + angular.extend($tooltipProvider.defaults, defaults); }; } @@ -160,8 +160,8 @@ module angularStrapTests { /////////////////////////////////////////////////////////////////////////// // Popover /////////////////////////////////////////////////////////////////////////// - - module popoverTests { + + namespace popoverTests { angular.module('demoApp') .config($popoverConfig) @@ -172,11 +172,11 @@ module angularStrapTests { drct.restrict = 'EA'; drct.link = link; return drct; - - function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void { + + function link(scope: ng.IScope, elem: ng.IAugmentedJQuery, attrs: ng.IAttributes): void { var options: ngStrap.tooltip.ITooltipOptions = {}; options.title = 'My Title'; - + $popover(elem, options); } } @@ -189,190 +189,190 @@ module angularStrapTests { angular.extend($popoverProvider.defaults, defaults); }; } - + /////////////////////////////////////////////////////////////////////////// // Typeahead /////////////////////////////////////////////////////////////////////////// - - module typeaheadTests { - + + namespace typeaheadTests { + angular.module('myApp') .config($typeaheadConfig); - - function $typeaheadConfig($typeaheadProvider: ngStrap.typeahead.ITypeaheadProvider) { + + function $typeaheadConfig($typeaheadProvider: ngStrap.typeahead.ITypeaheadProvider) { var defaults: ngStrap.typeahead.ITypeaheadOptions = {} defaults.animation = 'am-flip-x'; defaults.minLength = 2; defaults.limit = 8; - + angular.extend($typeaheadProvider.defaults, defaults); } } - - + + /////////////////////////////////////////////////////////////////////////// // Datepicker /////////////////////////////////////////////////////////////////////////// - - module datepickerTests { - + + namespace datepickerTests { + angular.module('myApp') .config($datepickerConfig); - + function $datepickerConfig($datepickerProvider: ngStrap.datepicker.IDatepickerProvider): void { var defaults: ngStrap.datepicker.IDatepickerOptions = {}; defaults.dateFormat = 'dd/MM/yyyy'; defaults.startWeek = 1; - + angular.extend($datepickerProvider.defaults, defaults); }; } - - + + /////////////////////////////////////////////////////////////////////////// // Timepicker /////////////////////////////////////////////////////////////////////////// - - module timepickerTests { - + + namespace timepickerTests { + angular.module('myApp') .config($timepickerConfig); - + function $timepickerConfig($timepickerProvider: ngStrap.timepicker.ITimepickerProvider): void { var defaults: ngStrap.timepicker.ITimepickerOptions = {}; defaults.timeFormat = 'HH:mm'; defaults.length = 7; - + angular.extend($timepickerProvider.defaults, defaults); }; } - - + + /////////////////////////////////////////////////////////////////////////// // Select /////////////////////////////////////////////////////////////////////////// - - module selectTests { - + + namespace selectTests { + angular.module('myApp') .config($selectConfig); - + function $selectConfig($selectProvider: ngStrap.select.ISelectProvider): void { var defaults: ngStrap.select.ISelectOptions = {}; defaults.animation = 'am-flip-x'; defaults.sort = false; - + angular.extend($selectProvider.defaults, defaults); } } - - + + /////////////////////////////////////////////////////////////////////////// // Tabs /////////////////////////////////////////////////////////////////////////// - - module tabTests { - + + namespace tabTests { + angular.module('myApp') .config($tabConfig); - + function $tabConfig($tabProvider: ngStrap.tab.ITabProvider) { var defaults: ngStrap.tab.ITabOptions = {}; defaults.animation = 'am-flip-x'; - + angular.extend($tabProvider.defaults, defaults); } } - + /////////////////////////////////////////////////////////////////////////// // Collapse /////////////////////////////////////////////////////////////////////////// - - module collapseTests { - + + namespace collapseTests { + angular.module('myApp') .config($collapseConfig); - + function $collapseConfig($collapseProvider: ngStrap.collapse.ICollapseProvider):void { var defaults: ngStrap.collapse.ICollapseOptions = {}; defaults.animation = 'am-flip-x'; - + angular.extend($collapseProvider.defaults, defaults); } } - - + + /////////////////////////////////////////////////////////////////////////// // Dropdown /////////////////////////////////////////////////////////////////////////// - - module dropdownTests { - + + namespace dropdownTests { + angular.module('myApp') .config($dropdownConfig); - + function $dropdownConfig($dropdownProvider: ngStrap.dropdown.IDropdownProvider):void { var defaults: ngStrap.dropdown.IDropdownOptions = {}; defaults.animation = 'am-flip-x'; defaults.trigger = 'hover'; - + angular.extend($dropdownProvider.defaults, defaults); } } - - + + /////////////////////////////////////////////////////////////////////////// // Navbar /////////////////////////////////////////////////////////////////////////// - - module navbarTests { - + + namespace navbarTests { + angular.module('myApp') .config($navbarConfig); - + function $navbarConfig($navbarProvider: ngStrap.navbar.INavbarProvider):void { var defaults: ngStrap.navbar.INavbarOptions = {}; defaults.activeClass = 'in'; - + angular.extend($navbarProvider.defaults, defaults); } } - - + + /////////////////////////////////////////////////////////////////////////// // Scrollspy /////////////////////////////////////////////////////////////////////////// - - module scrollspyTests { - + + namespace scrollspyTests { + angular.module('myApp') .config($scrollspyConfig); - + function $scrollspyConfig($scrollspyProvider: ngStrap.scrollspy.IScrollspyProvider):void { var defaults: ngStrap.scrollspy.IScrollspyOptions = {}; defaults.offset = 0; defaults.target = 'my-selector'; - + angular.extend($scrollspyProvider.defaults, defaults); } } - - + + /////////////////////////////////////////////////////////////////////////// // Affix /////////////////////////////////////////////////////////////////////////// - - module affixTests { - + + namespace affixTests { + angular.module('myApp') .config($affixConfig); - + function $affixConfig($affixProvider: ngStrap.affix.IAffixProvider):void { var defaults: ngStrap.affix.IAffixOptions = {}; defaults.offsetTop = 100; - + angular.extend($affixProvider.defaults, defaults); } } -} \ No newline at end of file +} diff --git a/angular-strap/angular-strap.d.ts b/angular-strap/angular-strap.d.ts index 10e46bc1c1..5b85f77de1 100644 --- a/angular-strap/angular-strap.d.ts +++ b/angular-strap/angular-strap.d.ts @@ -1,35 +1,35 @@ // Type definitions for angular-strap v2.2.x // Project: http://mgcrea.github.io/angular-strap/ // Definitions by: Sam Herrmann -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module mgcrea.ngStrap { +declare namespace mgcrea.ngStrap { /////////////////////////////////////////////////////////////////////////// // Modal // see http://mgcrea.github.io/angular-strap/#/modals /////////////////////////////////////////////////////////////////////////// - module modal { - + namespace modal { + interface IModalService { (config?: IModalOptions): IModal; } - + interface IModalProvider { defaults: IModalOptions; } - + interface IModal { $promise: ng.IPromise; show: () => void; hide: () => void; toggle: () => void; } - + interface IModalOptions { animation?: string; backdropAnimation?: string; @@ -47,7 +47,7 @@ declare module mgcrea.ngStrap { id?: string; scope?: ng.IScope; } - + interface IModalScope extends ng.IScope { $show: () => void; $hide: () => void; @@ -61,23 +61,23 @@ declare module mgcrea.ngStrap { // see http://mgcrea.github.io/angular-strap/#/asides /////////////////////////////////////////////////////////////////////////// - module aside { - + namespace aside { + interface IAsideService { (config?: IAsideOptions): IAside; } - + interface IAsideProvider { defaults: IAsideOptions; } - + interface IAside { $promise: ng.IPromise; show: () => void; hide: () => void; toggle: () => void; } - + interface IAsideOptions { animation?: string; placement?: string; @@ -92,7 +92,7 @@ declare module mgcrea.ngStrap { contentTemplate?: string; scope?: ng.IScope; } - + interface IAsideScope extends ng.IScope { $show: () => void; $hide: () => void; @@ -107,23 +107,23 @@ declare module mgcrea.ngStrap { // see http://mgcrea.github.io/angular-strap/#/alerts /////////////////////////////////////////////////////////////////////////// - module alert { - + namespace alert { + interface IAlertService { (config?: IAlertOptions): IAlert; } - + interface IAlertProvider { defaults: IAlertOptions; } - + interface IAlert { $promise: ng.IPromise; show: () => void; hide: () => void; toggle: () => void; } - + interface IAlertOptions { animation?: string; placement?: string; @@ -137,37 +137,37 @@ declare module mgcrea.ngStrap { duration?: number | boolean; dismissable?: boolean; } - + interface IAlertScope extends ng.IScope { $show: () => void; $hide: () => void; $toggle: () => void; } } - + /////////////////////////////////////////////////////////////////////////// // Tooltip // see http://mgcrea.github.io/angular-strap/#/tooltips /////////////////////////////////////////////////////////////////////////// - module tooltip { - + namespace tooltip { + interface ITooltipService { (element: ng.IAugmentedJQuery, config?: ITooltipOptions): ITooltip; } - + interface ITooltipProvider { defaults: ITooltipOptions; } - + interface ITooltip { $promise: ng.IPromise; show: () => void; hide: () => void; toggle: () => void; } - + interface ITooltipOptions { animation?: string; placement?: string; @@ -183,13 +183,13 @@ declare module mgcrea.ngStrap { id?: string; viewport?: string | { selector: string; padding: string | number }; } - + interface ITooltipScope extends ng.IScope { $show: () => void; $hide: () => void; $toggle: () => void; $setEnabled: (isEnabled: boolean) => void; - } + } } @@ -198,23 +198,23 @@ declare module mgcrea.ngStrap { // see http://mgcrea.github.io/angular-strap/#/popovers /////////////////////////////////////////////////////////////////////////// - module popover { - + namespace popover { + interface IPopoverService { (element: ng.IAugmentedJQuery, config?: IPopoverOptions): IPopover; } - + interface IPopoverProvider { defaults: IPopoverOptions; } - + interface IPopover { $promise: ng.IPromise; show: () => void; hide: () => void; toggle: () => void; } - + interface IPopoverOptions { animation?: string; placement?: string; @@ -231,7 +231,7 @@ declare module mgcrea.ngStrap { id?: string; viewport?: string | { selector: string; padding: string | number }; } - + interface IPopoverScope extends ng.IScope { $show: () => void; $hide: () => void; @@ -246,23 +246,23 @@ declare module mgcrea.ngStrap { // see http://mgcrea.github.io/angular-strap/#/typeaheads /////////////////////////////////////////////////////////////////////////// - module typeahead { - + namespace typeahead { + interface ITypeaheadService { (element: ng.IAugmentedJQuery, controller: any, config?: ITypeaheadOptions): ITypeahead; } - + interface ITypeaheadProvider { defaults: ITypeaheadOptions; } - + interface ITypeahead { $promise: ng.IPromise; show: () => void; hide: () => void; toggle: () => void; } - + interface ITypeaheadOptions { animation?: string; placement?: string; @@ -280,38 +280,38 @@ declare module mgcrea.ngStrap { } } - + /////////////////////////////////////////////////////////////////////////// // Datepicker // see http://mgcrea.github.io/angular-strap/#/datepickers /////////////////////////////////////////////////////////////////////////// - module datepicker { - + namespace datepicker { + interface IDatepickerService { (element: ng.IAugmentedJQuery, controller: any, config?: IDatepickerOptions): IDatepicker; } - + interface IDatepickerProvider { defaults: IDatepickerOptions; } - + interface IDatepicker { - update: (date: Date) => void; - updateDisabledDates: (dateRanges: IDatepickerDateRange[]) => void; + update: (date: Date) => void; + updateDisabledDates: (dateRanges: IDatepickerDateRange[]) => void; select: (dateConstructorArg: string | number | number[], keep: boolean) => void; - setMode: (mode: any) => void; + setMode: (mode: any) => void; int: () => void; destroy: () => void; show: () => void; hide: () => void; } - + interface IDatepickerDateRange { start: Date; end: Date; } - + interface IDatepickerOptions { animation?: string; placement?: string; @@ -339,26 +339,26 @@ declare module mgcrea.ngStrap { } } - + /////////////////////////////////////////////////////////////////////////// // Timepicker // see http://mgcrea.github.io/angular-strap/#/timepickers /////////////////////////////////////////////////////////////////////////// - module timepicker { + namespace timepicker { interface ITimepickerService { (element: ng.IAugmentedJQuery, controller: any, config?: ITimepickerOptions): ITimepicker; } - + interface ITimepickerProvider { defaults: ITimepickerOptions; } - + interface ITimepicker { - + } - + interface ITimepickerOptions { animation?: string; placement?: string; @@ -382,33 +382,33 @@ declare module mgcrea.ngStrap { iconUp?: string; iconDown?: string; arrowBehaviour?: string; - } + } } - + /////////////////////////////////////////////////////////////////////////// // Button // see http://mgcrea.github.io/angular-strap/#/buttons /////////////////////////////////////////////////////////////////////////// // No definitions for this module - - + + /////////////////////////////////////////////////////////////////////////// // Select // see http://mgcrea.github.io/angular-strap/#/selects /////////////////////////////////////////////////////////////////////////// - module select { - + namespace select { + interface ISelectService { (element: ng.IAugmentedJQuery, controller: any, config: ISelectOptions): ISelect; } - + interface ISelectProvider { defaults: ISelectOptions; } - + interface ISelect { update: (matches: any) => void; active: (index: number) => number; @@ -416,7 +416,7 @@ declare module mgcrea.ngStrap { show: () => void; hide: () => void; } - + interface ISelectOptions { animation?: string; placement?: string; @@ -437,23 +437,23 @@ declare module mgcrea.ngStrap { id?: string; } } - + /////////////////////////////////////////////////////////////////////////// // Tabs // see http://mgcrea.github.io/angular-strap/#/tabs /////////////////////////////////////////////////////////////////////////// - module tab { - + namespace tab { + interface ITabProvider { defaults: ITabOptions; } - + interface ITabService { defaults: ITabOptions; controller: any; } - + interface ITabOptions { animation?: string; template?: string; @@ -461,19 +461,19 @@ declare module mgcrea.ngStrap { activeClass?: string; } } - - + + /////////////////////////////////////////////////////////////////////////// // Collapses // see http://mgcrea.github.io/angular-strap/#/collapses /////////////////////////////////////////////////////////////////////////// - module collapse { - + namespace collapse { + interface ICollapseProvider { defaults: ICollapseOptions; } - + interface ICollapseOptions { animation?: string; activeClass?: string; @@ -482,29 +482,29 @@ declare module mgcrea.ngStrap { allowMultiple?: boolean; } } - - + + /////////////////////////////////////////////////////////////////////////// // Dropdowsn // see http://mgcrea.github.io/angular-strap/#/dropdowns /////////////////////////////////////////////////////////////////////////// - - module dropdown { - + + namespace dropdown { + interface IDropdownProvider { defaults: IDropdownOptions; } - + interface IDropdownService { (element: ng.IAugmentedJQuery, config: IDropdownOptions): IDropdown; } - + interface IDropdown { show: () => void; hide: () => void; destroy: () => void; } - + interface IDropdownOptions { animation?: string; placement?: string; @@ -515,81 +515,81 @@ declare module mgcrea.ngStrap { template?: string; } } - - + + /////////////////////////////////////////////////////////////////////////// // Navbar // see http://mgcrea.github.io/angular-strap/#/navbars /////////////////////////////////////////////////////////////////////////// - - module navbar { - + + namespace navbar { + interface INavbarProvider { defaults: INavbarOptions; } - + interface INavbarOptions { activeClass?: string; routeAttr?: string; } - + interface INavbarService { defaults: INavbarOptions; } } - - + + /////////////////////////////////////////////////////////////////////////// // Scrollspy // see http://mgcrea.github.io/angular-strap/#/scrollspy /////////////////////////////////////////////////////////////////////////// - - module scrollspy { - + + namespace scrollspy { + interface IScrollspyProvider { defaults: IScrollspyOptions; } - + interface IScrollspyService { (element: ng.IAugmentedJQuery, options: IScrollspyOptions): IScrollspy; } - + interface IScrollspy { checkOffsets: () => void; trackElement: (target: any, source: any) => void; untrackElement: (target: any, source: any) => void; activate: (index: number) => void; } - + interface IScrollspyOptions { target?: string; offset?: number; } } - - + + /////////////////////////////////////////////////////////////////////////// // Affix // see http://mgcrea.github.io/angular-strap/#/affix /////////////////////////////////////////////////////////////////////////// - - module affix { - + + namespace affix { + interface IAffixProvider { defaults: IAffixOptions; } - + interface IAffixService { (element: ng.IAugmentedJQuery, options: IAffixOptions): IAffix; } - + interface IAffix { init: () => void; destroy: () => void; checkPositionWithEventLoop: () => void; checkPosition: () => void; } - + interface IAffixOptions { offsetTop?: number; offsetBottom?: number; diff --git a/angular-toastr/angular-toastr.d.ts b/angular-toastr/angular-toastr.d.ts index 698b88634a..04e7714d33 100644 --- a/angular-toastr/angular-toastr.d.ts +++ b/angular-toastr/angular-toastr.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular Toastr v1.6.0 // Project: https://github.com/Foxandxss/angular-toastr // Definitions by: Niko Kovačič -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -10,7 +10,7 @@ declare module "angular-toastr" { export = _; } -declare module angular.toastr { +declare namespace angular.toastr { interface IToastBaseConfig { allowHtml?: boolean; closeButton?: boolean; @@ -77,13 +77,13 @@ declare module angular.toastr { interface IToastrService { /** * Return the number of active toasts in screen. - */ + */ active(): number; /** * Remove toast from screen. If no toast is passed in, all toasts will be closed. * * @param {IToast} toast Optional toast object to delete - */ + */ clear(toast?: IToast): void; /** * Create error toast notification message. @@ -91,7 +91,7 @@ declare module angular.toastr { * @param {String} message Message to show on toast * @param {String} title Title to show on toast * @param {IToastOptions} options Override default toast options - */ + */ error(message: string, title?: string, options?: IToastOptions): IToast; /** * Create info toast notification message. @@ -99,7 +99,7 @@ declare module angular.toastr { * @param {String} message Message to show on toast * @param {String} title Title to show on toast * @param {IToastOptions} options Override default toast options - */ + */ info(message: string, title?: string, options?: IToastOptions): IToast; /** * Create success toast notification message. @@ -107,7 +107,7 @@ declare module angular.toastr { * @param {String} message Message to show on toast * @param {String} title Title to show on toast * @param {IToastOptions} options Override default toast options - */ + */ success(message: string, title?: string, options?: IToastOptions): IToast; /** * Create warning toast notification message. @@ -115,7 +115,7 @@ declare module angular.toastr { * @param {String} message Message to show on toast * @param {String} title Title to show on toast * @param {IToastOptions} options Override default toast options - */ + */ warning(message: string, title?: string, options?: IToastOptions): IToast; } -} \ No newline at end of file +} diff --git a/angular-toasty/angular-toasty.d.ts b/angular-toasty/angular-toasty.d.ts index c4e3923898..bec5bb32f1 100644 --- a/angular-toasty/angular-toasty.d.ts +++ b/angular-toasty/angular-toasty.d.ts @@ -1,11 +1,11 @@ // Type definitions for Angular Toasty v1.0.2 // Project: https://github.com/invertase/angular-toasty // Definitions by: Dominik Muench -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module toasty { +declare namespace toasty { interface IToastyService { /** diff --git a/angular-touchspin/angular-touchspin.d.ts b/angular-touchspin/angular-touchspin.d.ts index 08cc353a3a..5423b17e55 100644 --- a/angular-touchspin/angular-touchspin.d.ts +++ b/angular-touchspin/angular-touchspin.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular Touchspin v1.0.0 // Project: https://github.com/nkovacic/angular-touchspin // Definitions by: Niko Kovačič -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //// @@ -11,7 +11,7 @@ declare module "angular-touchspin" { export = _; } -declare module angularTouchSpin { +declare namespace angularTouchSpin { interface ITouchSpinOptions { min?: number; max?: number; @@ -40,4 +40,4 @@ declare module angularTouchSpin { interface ITouchSpinConfigProvider { defaults(touchSpinOptions: ITouchSpinOptions): void; } -} \ No newline at end of file +} diff --git a/angular-translate/angular-translate.d.ts b/angular-translate/angular-translate.d.ts index 379bd05ecb..9d9eeb98a1 100644 --- a/angular-translate/angular-translate.d.ts +++ b/angular-translate/angular-translate.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular Translate v2.4.0 (pascalprecht.translate module) // Project: https://github.com/PascalPrecht/angular-translate // Definitions by: Michel Salib -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -10,7 +10,7 @@ declare module "angular-translate" { export = ngt; } -declare module angular.translate { +declare namespace angular.translate { interface ITranslationTable { [key: string]: any; @@ -103,6 +103,8 @@ declare module angular.translate { useMissingTranslationHandlerLog(): ITranslateProvider; useMissingTranslationHandler(factory: string): ITranslateProvider; usePostCompiling(value: boolean): ITranslateProvider; + directivePriority(): number; + directivePriority(priority: number): ITranslateProvider; determinePreferredLanguage(fn?: () => void): ITranslateProvider; registerAvailableLanguageKeys(): string[]; registerAvailableLanguageKeys(languageKeys: string[], aliases?: ILanguageKeyAlias): ITranslateProvider; @@ -110,7 +112,7 @@ declare module angular.translate { } } -declare module angular { +declare namespace angular { interface IFilterService { (name:'translate'): { (translationId: string, interpolateParams?: any, interpolation?: string): string; diff --git a/angular-ui-bootstrap/angular-ui-bootstrap.d.ts b/angular-ui-bootstrap/angular-ui-bootstrap.d.ts index 5b9d09d46c..64518c0cd6 100644 --- a/angular-ui-bootstrap/angular-ui-bootstrap.d.ts +++ b/angular-ui-bootstrap/angular-ui-bootstrap.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular UI Bootstrap 0.13.3 // Project: https://github.com/angular-ui/bootstrap // Definitions by: Brian Surowiec -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -16,7 +16,7 @@ declare module 'angular-ui-bootstrap' { export = _; } -declare module angular.ui.bootstrap { +declare namespace angular.ui.bootstrap { interface IAccordionConfig { /** diff --git a/angular-ui-router/angular-ui-router-tests.ts b/angular-ui-router/angular-ui-router-tests.ts index 07711b9b87..ba42f16cf4 100644 --- a/angular-ui-router/angular-ui-router-tests.ts +++ b/angular-ui-router/angular-ui-router-tests.ts @@ -208,7 +208,7 @@ class UrlLocatorTestService implements IUrlLocatorTestService { myApp.service("urlLocatorTest", UrlLocatorTestService); -module UiViewScrollProviderTests { +namespace UiViewScrollProviderTests { var app = angular.module("uiViewScrollProviderTests", ["ui.router"]); app.config(['$uiViewScrollProvider', function($uiViewScrollProvider: ng.ui.IUiViewScrollProvider) { @@ -227,7 +227,7 @@ interface ITestUserService { handleLogin: () => ng.IPromise<{}>; } -module UrlRouterProviderTests { +namespace UrlRouterProviderTests { var app = angular.module("urlRouterProviderTests", ["ui.router"]); app.config(($urlRouterProvider: ng.ui.IUrlRouterProvider) => { diff --git a/angular-ui-router/angular-ui-router.d.ts b/angular-ui-router/angular-ui-router.d.ts index d5a52ff735..17d1570983 100644 --- a/angular-ui-router/angular-ui-router.d.ts +++ b/angular-ui-router/angular-ui-router.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.1.5+ (ui.router module) // Project: https://github.com/angular-ui/ui-router // Definitions by: Michel Salib -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -28,7 +28,7 @@ declare module 'angular-ui-router' { export type IType = angular.ui.IType; } -declare module angular.ui { +declare namespace angular.ui { interface IState { name?: string; @@ -88,12 +88,12 @@ declare module angular.ui { * Arbitrary data object, useful for custom configuration. */ data?: any; - + /** * Boolean (default true). If false will not re-trigger the same state just because a search/query parameter has changed. Useful for when you'd like to modify $location.search() without triggering a reload. */ reloadOnSearch?: boolean; - + /** * Boolean (default true). If false will reload state on everytransitions. Useful for when you'd like to restore all data to its initial state. */ diff --git a/angular-ui-scroll/angular-ui-scroll-tests.ts b/angular-ui-scroll/angular-ui-scroll-tests.ts index 1a85dd6b58..528d39e552 100644 --- a/angular-ui-scroll/angular-ui-scroll-tests.ts +++ b/angular-ui-scroll/angular-ui-scroll-tests.ts @@ -1,7 +1,7 @@ /// var myApp = angular.module('application', ['ui.scroll', 'ui.scroll.jqlite']); -module application { +namespace application { interface IItem { id: number; content: string; diff --git a/angular-ui-scroll/angular-ui-scroll.d.ts b/angular-ui-scroll/angular-ui-scroll.d.ts index 08ed233c09..168c6ba271 100644 --- a/angular-ui-scroll/angular-ui-scroll.d.ts +++ b/angular-ui-scroll/angular-ui-scroll.d.ts @@ -1,11 +1,11 @@ // Type definitions for Angular JS 1.3.1+ (ui.scroll module) // Project: https://github.com/angular-ui/ui-scroll // Definitions by: Mark Nadig -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.ui { +declare namespace angular.ui { interface IScrollDatasource { /** * The datasource object implements methods and properties to be used by the directive to access the data diff --git a/angular-ui-sortable/angular-ui-sortable.d.ts b/angular-ui-sortable/angular-ui-sortable.d.ts index 48b96f2d37..ac3ac89fc7 100644 --- a/angular-ui-sortable/angular-ui-sortable.d.ts +++ b/angular-ui-sortable/angular-ui-sortable.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular.ui.sortable module v0.13+ // Project: https://github.com/angular-ui/ui-sortable // Definitions by: Thodoris Greasidis -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.ui { +declare namespace angular.ui { interface UISortableOptions extends SortableOptions { 'ui-floating'?: string|boolean; diff --git a/angular-ui-tree/angular-ui-tree.d.ts b/angular-ui-tree/angular-ui-tree.d.ts index cfcb2b1087..66909cf90f 100644 --- a/angular-ui-tree/angular-ui-tree.d.ts +++ b/angular-ui-tree/angular-ui-tree.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular-ui-tree v2.8.0 // Project: https://github.com/angular-ui-tree/angular-ui-tree // Definitions by: Calvin Fernandez -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module AngularUITree { +declare namespace AngularUITree { interface IEventSourceInfo { cloneModel: any; index: number; diff --git a/angular-wizard/angular-wizard.d.ts b/angular-wizard/angular-wizard.d.ts index a854f94a05..347a130827 100644 --- a/angular-wizard/angular-wizard.d.ts +++ b/angular-wizard/angular-wizard.d.ts @@ -1,9 +1,9 @@ // Type definitions for Angular Wizard 0.6.1 // Project: https://github.com/mgonto/angular-wizard // Definitions by: Marko Jurisic , Ronald Wildenberg -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module angular.mgoAngularWizard { +declare namespace angular.mgoAngularWizard { interface WizardHandler { wizard(name?: string): Wizard; addWizard(name: string, wizard: Wizard): void; diff --git a/angular.throttle/angular.throttle.d.ts b/angular.throttle/angular.throttle.d.ts index 0a3033e67a..354d6b3f98 100644 --- a/angular.throttle/angular.throttle.d.ts +++ b/angular.throttle/angular.throttle.d.ts @@ -1,11 +1,11 @@ // Type definitions for angular.throttle // Project: https://github.com/BaggersIO/angular.throttle // Definitions by: Stefan Steinhart -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular { +declare namespace angular { interface IAngularStatic { throttle:( fn:Function, throttle:number, options?:{leading?:boolean; trailing?:boolean;} ) => Function; } diff --git a/angularLocalStorage/angularLocalStorage.d.ts b/angularLocalStorage/angularLocalStorage.d.ts index 08b5d473b4..35bb5928c1 100644 --- a/angularLocalStorage/angularLocalStorage.d.ts +++ b/angularLocalStorage/angularLocalStorage.d.ts @@ -1,11 +1,11 @@ // Type definitions for AngularLocalStorage 0.1.7 // Project: https://github.com/agrublev/angularLocalStorage // Definitions by: Horiuchi_H -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular.localStorage { +declare namespace angular.localStorage { interface ILocalStorageService { set(key: string, value: any): any; get(key: string): any; diff --git a/angularfire/angularfire.d.ts b/angularfire/angularfire.d.ts index b1e7f4c2eb..e60fcad361 100644 --- a/angularfire/angularfire.d.ts +++ b/angularfire/angularfire.d.ts @@ -1,7 +1,7 @@ // Type definitions for AngularFire 0.8.2 // Project: http://angularfire.com // Definitions by: Dénes Harmath -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// diff --git a/angularjs-toaster/angularjs-toaster.d.ts b/angularjs-toaster/angularjs-toaster.d.ts index 9f450b14bb..ee184620ae 100644 --- a/angularjs-toaster/angularjs-toaster.d.ts +++ b/angularjs-toaster/angularjs-toaster.d.ts @@ -1,11 +1,11 @@ // Type definitions for angularjs-toaster v0.4.13 // Project: https://github.com/jirikavi/AngularJS-Toaster // Definitions by: Ben Tesser -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module ngtoaster { +declare namespace ngtoaster { interface IToasterService { pop(params:IPopParams): void /** diff --git a/angularjs/README.md b/angularjs/README.md index cdd9524547..94dc303ae4 100644 --- a/angularjs/README.md +++ b/angularjs/README.md @@ -19,6 +19,7 @@ The following extra definition files are available for referencing: * angular-route.d.ts (for the **ngRoute** module) * angular-cookies.d.ts (for the **ngCookies** module) * angular-sanitize.d.ts (for the **ngSanitize** module) +* angular-animate.d.ts (for the **ngAnimate** module) * angular-mocks.d.ts (for the **ngMock** and **ngMockE2E** modules) (postfix with version number for specific verion, eg. angular-resource-1.0.d.ts) @@ -39,6 +40,7 @@ To avoid cluttering the list of suggestions as you type in your IDE, all interfa * `ng.resource` for **ngResource** * `ng.route` for **ngRoute** * `ng.sanitize` for **ngSanitize** +* `ng.animate` for **ngAnimate** **ngMockE2E** does not define a new namespace, but rather modifies some of **ng**'s interfaces. diff --git a/angularjs/angular-animate.d.ts b/angularjs/angular-animate.d.ts index be83611e07..b53418a76a 100644 --- a/angularjs/angular-animate.d.ts +++ b/angularjs/angular-animate.d.ts @@ -1,7 +1,7 @@ -// Type definitions for Angular JS 1.3 (ngAnimate module) +// Type definitions for Angular JS 1.5 (ngAnimate module) // Project: http://angularjs.org // Definitions by: Michel Salib , Adi Dahiya , Raphael Schweizer , Cody Schaaf -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -13,20 +13,55 @@ declare module "angular-animate" { /** * ngAnimate module (angular-animate.js) */ -declare module angular.animate { - interface IAnimateFactory extends Function { - enter?: (element: ng.IAugmentedJQuery, doneFn: Function) => IAnimateCssRunner|void; - leave?: (element: ng.IAugmentedJQuery, doneFn: Function) => IAnimateCssRunner|void; - addClass?: (element: ng.IAugmentedJQuery, className: string, doneFn: Function) => IAnimateCssRunner|void; - removeClass?: (element: ng.IAugmentedJQuery, className: string, doneFn: Function) => IAnimateCssRunner|void; - setClass?: (element: ng.IAugmentedJQuery, className: string, doneFn: Function) => IAnimateCssRunner|void; +declare namespace angular.animate { + interface IAnimateFactory { + (...args: any[]): IAnimateCallbackObject; } + interface IAnimateCallbackObject { + eventFn?: (element: IAugmentedJQuery, doneFunction: Function, options: IAnimationOptions) => any; + setClass?: (element: IAugmentedJQuery, addedClasses: string, removedClasses: string, doneFunction: Function, options: IAnimationOptions) => any; + addClass?: (element: IAugmentedJQuery, addedClasses: string, doneFunction: Function, options: IAnimationOptions) => any; + removeClass?: (element: IAugmentedJQuery, removedClasses: string, doneFunction: Function, options: IAnimationOptions) => any; + enter?: (element: IAugmentedJQuery, doneFunction: Function, options: IAnimationOptions) => any; + leave?: (element: IAugmentedJQuery, doneFunction: Function, options: IAnimationOptions) => any; + move?: (element: IAugmentedJQuery, doneFunction: Function, options: IAnimationOptions) => any; + animate?: (element: IAugmentedJQuery, fromStyles: string, toStyles: string, doneFunction: Function, options: IAnimationOptions) => any; + } + + interface IAnimationPromise extends IPromise {} + /** * AnimateService * see http://docs.angularjs.org/api/ngAnimate/service/$animate */ interface IAnimateService { + /** + * Sets up an event listener to fire whenever the animation event has fired on the given element or among any of its children. + * + * @param event the animation event that will be captured (e.g. enter, leave, move, addClass, removeClass, etc...) + * @param container the container element that will capture each of the animation events that are fired on itself as well as among its children + * @param callback the callback function that will be fired when the listener is triggered + */ + on(event: string, container: JQuery, callback: Function): void; + + /** + * Deregisters an event listener based on the event which has been associated with the provided element. + * + * @param event the animation event (e.g. enter, leave, move, addClass, removeClass, etc...) + * @param container the container element the event listener was placed on + * @param callback the callback function that was registered as the listener + */ + off(event: string, container?: JQuery, callback?: Function): void; + + /** + * Associates the provided element with a host parent element to allow the element to be animated even if it exists outside of the DOM structure of the Angular application. + * + * @param element the external element that will be pinned + * @param parentElement the host parent element that will be associated with the external element + */ + pin(element: JQuery, parentElement: JQuery): void; + /** * Globally enables / disables animations. * @@ -34,7 +69,13 @@ declare module angular.animate { * @param value If provided then set the animation on or off. * @returns current animation state */ - enabled(element?: JQuery, value?: boolean): boolean; + enabled(element: JQuery, value?: boolean): boolean; + enabled(value: boolean): boolean; + + /** + * Cancels the provided animation. + */ + cancel(animationPromise: IAnimationPromise): void; /** * Performs an inline animation on the element. @@ -46,7 +87,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - animate(element: JQuery, from: any, to: any, className?: string, options?: IAnimationOptions): IPromise; + animate(element: JQuery, from: any, to: any, className?: string, options?: IAnimationOptions): IAnimationPromise; /** * Appends the element to the parentElement element that resides in the document and then runs the enter animation. @@ -57,7 +98,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - enter(element: JQuery, parentElement: JQuery, afterElement?: JQuery, options?: IAnimationOptions): IPromise; + enter(element: JQuery, parentElement: JQuery, afterElement?: JQuery, options?: IAnimationOptions): IAnimationPromise; /** * Runs the leave animation operation and, upon completion, removes the element from the DOM. @@ -66,7 +107,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - leave(element: JQuery, options?: IAnimationOptions): IPromise; + leave(element: JQuery, options?: IAnimationOptions): IAnimationPromise; /** * Fires the move DOM operation. Just before the animation starts, the animate service will either append @@ -78,7 +119,7 @@ declare module angular.animate { * @param afterElement the sibling element (which is the previous element) of the element that will be the focus of the move animation * @returns the animation callback promise */ - move(element: JQuery, parentElement: JQuery, afterElement?: JQuery): IPromise; + move(element: JQuery, parentElement: JQuery, afterElement?: JQuery): IAnimationPromise; /** * Triggers a custom animation event based off the className variable and then attaches the className @@ -89,7 +130,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - addClass(element: JQuery, className: string, options?: IAnimationOptions): IPromise; + addClass(element: JQuery, className: string, options?: IAnimationOptions): IAnimationPromise; /** * Triggers a custom animation event based off the className variable and then removes the CSS class @@ -100,7 +141,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - removeClass(element: JQuery, className: string, options?: IAnimationOptions): IPromise; + removeClass(element: JQuery, className: string, options?: IAnimationOptions): IAnimationPromise; /** * Adds and/or removes the given CSS classes to and from the element. Once complete, the done() callback @@ -112,12 +153,7 @@ declare module angular.animate { * @param options an optional collection of styles that will be picked up by the CSS transition/animation * @returns the animation callback promise */ - setClass(element: JQuery, add: string, remove: string, options?: IAnimationOptions): IPromise; - - /** - * Cancels the provided animation. - */ - cancel(animationPromise: IPromise): void; + setClass(element: JQuery, add: string, remove: string, options?: IAnimationOptions): IAnimationPromise; } /** @@ -131,7 +167,7 @@ declare module angular.animate { * @param name The name of the animation. * @param factory The factory function that will be executed to return the animation object. */ - register(name: string, factory: () => IAnimateCallbackObject): void; + register(name: string, factory: IAnimateFactory): void; /** * Gets and/or sets the CSS class expression that is checked when performing an animation. @@ -252,10 +288,10 @@ declare module angular.animate { (element: JQuery, animateCssOptions: IAnimationOptions): IAnimateCssRunner; } -} - -declare module angular { interface IModule { - animate(cssSelector: string, animateFactory: angular.animate.IAnimateFactory): IModule; + animation(name: string, animationFactory: IAnimateFactory): IModule; + animation(name: string, inlineAnnotatedFunction: any[]): IModule; + animation(object: Object): IModule; } + } diff --git a/angularjs/angular-component-router.d.ts b/angularjs/angular-component-router.d.ts index 6c37b5e86e..2c56ef3a21 100644 --- a/angularjs/angular-component-router.d.ts +++ b/angularjs/angular-component-router.d.ts @@ -1,11 +1,11 @@ // Type definitions for Angular JS 1.5 component router // Project: http://angularjs.org // Definitions by: David Reher -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angular { +declare namespace angular { /** * `Instruction` is a tree of {@link ComponentInstruction}s with all the information needed * to transition each component in the app to a given route, including all auxiliary routes. @@ -45,7 +45,7 @@ declare module angular { specificity(): number; - resolveComponent(): Promise; + resolveComponent(): IPromise; /** * converts the instruction into a URL string @@ -87,20 +87,20 @@ declare module angular { * Called by the Router to instantiate a new component during the commit phase of a navigation. * This method in turn is responsible for calling the `routerOnActivate` hook of its child. */ - activate(nextInstruction: ComponentInstruction): Promise; + activate(nextInstruction: ComponentInstruction): IPromise; /** * Called by the {@link Router} during the commit phase of a navigation when an outlet * reuses a component between different routes. * This method in turn is responsible for calling the `routerOnReuse` hook of its child. */ - reuse(nextInstruction: ComponentInstruction): Promise; + reuse(nextInstruction: ComponentInstruction): IPromise; /** * Called by the {@link Router} when an outlet disposes of a component's contents. * This method in turn is responsible for calling the `routerOnDeactivate` hook of its child. */ - deactivate(nextInstruction: ComponentInstruction): Promise; + deactivate(nextInstruction: ComponentInstruction): IPromise; /** * Called by the {@link Router} during recognition phase of a navigation. @@ -110,7 +110,7 @@ declare module angular { * This method delegates to the child component's `routerCanDeactivate` hook if it exists, * and otherwise resolves to true. */ - routerCanDeactivate(nextInstruction: ComponentInstruction): Promise; + routerCanDeactivate(nextInstruction: ComponentInstruction): IPromise; /** * Called by the {@link Router} during recognition phase of a navigation. @@ -122,7 +122,7 @@ declare module angular { * Otherwise, this method delegates to the child component's `routerCanReuse` hook if it exists, * or resolves to true if the hook is not present. */ - routerCanReuse(nextInstruction: ComponentInstruction): Promise; + routerCanReuse(nextInstruction: ComponentInstruction): IPromise; } interface RouteRegistry { @@ -140,7 +140,7 @@ declare module angular { * Given a URL and a parent component, return the most specific instruction for navigating * the application into the state specified by the url */ - recognize(url: string, ancestorInstructions: Instruction[]): Promise; + recognize(url: string, ancestorInstructions: Instruction[]): IPromise; /** * Given a normalized list with component names and params like: `['user', {id: 3 }]` @@ -197,14 +197,14 @@ declare module angular { * * You probably don't need to use this unless you're writing a reusable component. */ - registerPrimaryOutlet(outlet: RouterOutlet): Promise; + registerPrimaryOutlet(outlet: RouterOutlet): IPromise; /** * Register an outlet to notified of auxiliary route changes. * * You probably don't need to use this unless you're writing a reusable component. */ - registerAuxOutlet(outlet: RouterOutlet): Promise; + registerAuxOutlet(outlet: RouterOutlet): IPromise; /** * Given an instruction, returns `true` if the instruction is currently active, @@ -224,7 +224,7 @@ declare module angular { * ]); * ``` */ - config(definitions: RouteDefinition[]): Promise; + config(definitions: RouteDefinition[]): IPromise; /** * Navigate based on the provided Route Link DSL. It's preferred to navigate with this method @@ -238,7 +238,7 @@ declare module angular { * ``` * See the {@link RouterLink} directive for more. */ - navigate(linkParams: any[]): Promise; + navigate(linkParams: any[]): IPromise; /** * Navigate to a URL. Returns a promise that resolves when navigation is complete. @@ -247,19 +247,19 @@ declare module angular { * If the given URL begins with a `/`, router will navigate absolutely. * If the given URL does not begin with `/`, the router will navigate relative to this component. */ - navigateByUrl(url: string, _skipLocationChange?: boolean): Promise; + navigateByUrl(url: string, _skipLocationChange?: boolean): IPromise; /** * Navigate via the provided instruction. Returns a promise that resolves when navigation is * complete. */ navigateByInstruction(instruction: Instruction, - _skipLocationChange?: boolean): Promise; + _skipLocationChange?: boolean): IPromise; /** * Updates this router and all descendant routers according to the given instruction */ - commit(instruction: Instruction, _skipLocationChange?: boolean): Promise; + commit(instruction: Instruction, _skipLocationChange?: boolean): IPromise; /** * Subscribe to URL updates from the router @@ -269,18 +269,18 @@ declare module angular { /** * Removes the contents of this router's outlet and all descendant outlets */ - deactivate(instruction: Instruction): Promise; + deactivate(instruction: Instruction): IPromise; /** * Given a URL, returns an instruction representing the component graph */ - recognize(url: string): Promise; + recognize(url: string): IPromise; /** * Navigates to either the last URL successfully navigated to, or the last URL requested if the * router has yet to successfully navigate. */ - renavigate(): Promise; + renavigate(): IPromise; /** * Generate an `Instruction` based on the provided Route Link DSL. @@ -364,7 +364,7 @@ declare module angular { * {@example router/ts/can_deactivate/can_deactivate_example.ts region='routerCanDeactivate'} */ interface CanDeactivate { - $routerCanDeactivate(next?: ComponentInstruction, prev?: ComponentInstruction): boolean | Promise; + $routerCanDeactivate(next?: ComponentInstruction, prev?: ComponentInstruction): boolean | IPromise; } /** @@ -407,7 +407,7 @@ declare module angular { * {@example router/ts/reuse/reuse_example.ts region='reuseCmp'} */ interface CanReuse { - $routerCanReuse(next?: angular.ComponentInstruction, prev?: angular.ComponentInstruction): boolean | Promise; + $routerCanReuse(next?: angular.ComponentInstruction, prev?: angular.ComponentInstruction): boolean | IPromise; } /** diff --git a/angularjs/angular-cookies.d.ts b/angularjs/angular-cookies.d.ts index 3a5f535044..e96ae7a671 100644 --- a/angularjs/angular-cookies.d.ts +++ b/angularjs/angular-cookies.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.4 (ngCookies module) // Project: http://angularjs.org // Definitions by: Diego Vilar , Anthony Ciccarello -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -14,7 +14,7 @@ declare module "angular-cookies" { /** * ngCookies module (angular-cookies.js) */ -declare module angular.cookies { +declare namespace angular.cookies { /** * Cookies options @@ -22,13 +22,13 @@ declare module angular.cookies { */ interface ICookiesOptions { /** - * The cookie will be available only for this path and its sub-paths. + * The cookie will be available only for this path and its sub-paths. * By default, this would be the URL that appears in your base tag. */ path?: string; /** * The cookie will be available only for this domain and its sub-domains. - * For obvious security reasons the user agent will not accept the cookie if the + * For obvious security reasons the user agent will not accept the cookie if the * current domain is not a sub domain or equals to the requested domain. */ domain?: string; diff --git a/angularjs/angular-mocks-tests.ts b/angularjs/angular-mocks-tests.ts index 63ea220f60..86bbe6c945 100644 --- a/angularjs/angular-mocks-tests.ts +++ b/angularjs/angular-mocks-tests.ts @@ -87,6 +87,16 @@ logCall = logService.warn; logs = logCall.logs; +/////////////////////////////////////// +// IComponentControllerService +/////////////////////////////////////// +var $componentController: ng.IComponentControllerService; +$componentController<{}, {}>('Test controller', { $scope: {} }); +$componentController<{}, {}>('Test controller', { $scope: {}, test: true }); +$componentController<{}, { test: boolean }>('Test controller', { $scope: {} }, { test: true}); +$componentController<{}, { test?: boolean }>('Test controller', { $scope: {} }, {}); +$componentController<{}, {}>('Test controller', { $scope: {} }, {}, 'identity'); +$componentController<{ cb: () => void }, {}>('Test controller', { $scope: {} }); /////////////////////////////////////// // IHttpBackendService diff --git a/angularjs/angular-mocks.d.ts b/angularjs/angular-mocks.d.ts index 3113881866..429c7b5269 100644 --- a/angularjs/angular-mocks.d.ts +++ b/angularjs/angular-mocks.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.3 (ngMock, ngMockE2E module) // Project: http://angularjs.org // Definitions by: Diego Vilar , Tony Curtis -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -23,7 +23,7 @@ declare module "angular-mocks/ngAnimateMock" { /////////////////////////////////////////////////////////////////////////////// // ngMock module (angular-mocks.js) /////////////////////////////////////////////////////////////////////////////// -declare module angular { +declare namespace angular { /////////////////////////////////////////////////////////////////////////// // AngularStatic @@ -32,7 +32,7 @@ declare module angular { interface IAngularStatic { mock: IMockStatic; } - + // see https://docs.angularjs.org/api/ngMock/function/angular.mock.inject interface IInjectStatic { (...fns: Function[]): any; @@ -97,6 +97,17 @@ declare module angular { logs: string[]; } + /////////////////////////////////////////////////////////////////////////// + // ComponentControllerService + // see https://docs.angularjs.org/api/ngMock/service/$componentController + /////////////////////////////////////////////////////////////////////////// + interface IComponentControllerService { + // TBinding is an interface exposed by a component as per John Papa's style guide + // https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md#accessible-members-up-top + (componentName: string, locals: { $scope: IScope, [key: string]: any }, bindings?: TBinding, ident?: string): T; + } + + /////////////////////////////////////////////////////////////////////////// // HttpBackendService // see https://docs.angularjs.org/api/ngMock/service/$httpBackend @@ -104,27 +115,27 @@ declare module angular { interface IHttpBackendService { /** * Flushes all pending requests using the trained responses. - * @param count Number of responses to flush (in the order they arrived). If undefined, all pending requests will be flushed. + * @param count Number of responses to flush (in the order they arrived). If undefined, all pending requests will be flushed. */ flush(count?: number): void; - + /** * Resets all request expectations, but preserves all backend definitions. */ resetExpectations(): void; - + /** * Verifies that all of the requests defined via the expect api were made. If any of the requests were not made, verifyNoOutstandingExpectation throws an exception. */ verifyNoOutstandingExpectation(): void; - + /** * Verifies that there are no outstanding requests that need to be flushed. */ verifyNoOutstandingRequest(): void; /** - * Creates a new request expectation. + * Creates a new request expectation. * Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false. * Returns an object with respond method that controls how a matched request is handled. * @param method HTTP method. @@ -160,17 +171,17 @@ declare module angular { * @param headers HTTP headers object to be compared with the HTTP headers in the request. */ expectHEAD(url: string | RegExp | ((url: string) => boolean), headers?: Object): mock.IRequestHandler; - + /** * Creates a new request expectation for JSONP requests. * Throws a preformatted error if expectation(s) don't match supplied string, regular expression, or if function returns false. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. - */ + */ expectJSONP(url: string | RegExp | ((url: string) => boolean)): mock.IRequestHandler; /** - * Creates a new request expectation for PATCH requests. + * Creates a new request expectation for PATCH requests. * Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. @@ -180,7 +191,7 @@ declare module angular { expectPATCH(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler; /** - * Creates a new request expectation for POST requests. + * Creates a new request expectation for POST requests. * Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. @@ -190,7 +201,7 @@ declare module angular { expectPOST(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler; /** - * Creates a new request expectation for PUT requests. + * Creates a new request expectation for PUT requests. * Throws a preformatted error if expectation(s) don't match supplied string, regular expression, object, or if function returns false. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. @@ -200,7 +211,7 @@ declare module angular { expectPUT(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object): mock.IRequestHandler; /** - * Creates a new backend definition. + * Creates a new backend definition. * Returns an object with respond method that controls how a matched request is handled. * @param method HTTP method. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. @@ -210,7 +221,7 @@ declare module angular { when(method: string, url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler; /** - * Creates a new backend definition for DELETE requests. + * Creates a new backend definition for DELETE requests. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. * @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation. @@ -218,7 +229,7 @@ declare module angular { whenDELETE(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler; /** - * Creates a new backend definition for GET requests. + * Creates a new backend definition for GET requests. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. * @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation. @@ -226,7 +237,7 @@ declare module angular { whenGET(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler; /** - * Creates a new backend definition for HEAD requests. + * Creates a new backend definition for HEAD requests. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. * @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation. @@ -234,7 +245,7 @@ declare module angular { whenHEAD(url: string | RegExp | ((url: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler; /** - * Creates a new backend definition for JSONP requests. + * Creates a new backend definition for JSONP requests. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. * @param headers HTTP headers object or function that receives the headers and returns true if the headers match the current expectation. @@ -242,7 +253,7 @@ declare module angular { whenJSONP(url: string | RegExp | ((url: string) => boolean)): mock.IRequestHandler; /** - * Creates a new backend definition for PATCH requests. + * Creates a new backend definition for PATCH requests. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. * @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation. @@ -251,7 +262,7 @@ declare module angular { whenPATCH(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler; /** - * Creates a new backend definition for POST requests. + * Creates a new backend definition for POST requests. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. * @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation. @@ -260,7 +271,7 @@ declare module angular { whenPOST(url: string | RegExp | ((url: string) => boolean), data?: string | RegExp | Object | ((data: string) => boolean), headers?: Object | ((object: Object) => boolean)): mock.IRequestHandler; /** - * Creates a new backend definition for PUT requests. + * Creates a new backend definition for PUT requests. * Returns an object with respond method that controls how a matched request is handled. * @param url HTTP url string, regular expression or function that receives a url and returns true if the url matches the current expctation. * @param data HTTP request body string, json object, regular expression or function that receives the data and returns true if the data matches the current expectation. @@ -272,16 +283,16 @@ declare module angular { export module mock { // returned interface by the the mocked HttpBackendService expect/when methods interface IRequestHandler { - + /** - * Controls the response for a matched request using a function to construct the response. + * Controls the response for a matched request using a function to construct the response. * Returns the RequestHandler object for possible overrides. * @param func Function that receives the request HTTP method, url, data, and headers and returns an array containing response status (number), data, headers, and status text. */ respond(func: ((method: string, url: string, data: string | Object, headers: Object) => [number, string | Object, Object, string])): IRequestHandler; /** - * Controls the response for a matched request using supplied static data to construct the response. + * Controls the response for a matched request using supplied static data to construct the response. * Returns the RequestHandler object for possible overrides. * @param status HTTP status code to add to the response. * @param data Data to add to the response. @@ -291,7 +302,7 @@ declare module angular { respond(status: number, data: string | Object, headers?: Object, responseText?: string): IRequestHandler; /** - * Controls the response for a matched request using the HTTP status code 200 and supplied static data to construct the response. + * Controls the response for a matched request using the HTTP status code 200 and supplied static data to construct the response. * Returns the RequestHandler object for possible overrides. * @param data Data to add to the response. * @param headers Headers object to add to the response. diff --git a/angularjs/angular-resource-tests.ts b/angularjs/angular-resource-tests.ts index fcf0bd0a96..5a9963b14c 100644 --- a/angularjs/angular-resource-tests.ts +++ b/angularjs/angular-resource-tests.ts @@ -1,14 +1,19 @@ /// -interface IMyResource extends angular.resource.IResource { }; -interface IMyResourceClass extends angular.resource.IResourceClass { }; + +import IHttpPromiseCallbackArg = angular.IHttpPromiseCallbackArg; + +interface IMyData {} +interface IMyHttpPromiseCallbackArg extends IHttpPromiseCallbackArg {} +interface IMyResource extends angular.resource.IResource { } +interface IMyResourceClass extends angular.resource.IResourceClass { } /////////////////////////////////////// // IActionDescriptor /////////////////////////////////////// var actionDescriptor: angular.resource.IActionDescriptor; -angular.injector(['ng']).invoke(function ($cacheFactory: angular.ICacheFactoryService, $timeout: angular.ITimeoutService) { +angular.injector(['ng']).invoke(function ($cacheFactory: angular.ICacheFactoryService) { actionDescriptor.method = 'method action'; actionDescriptor.params = { key: 'value' }; actionDescriptor.url = '/api/test-url/'; @@ -21,10 +26,13 @@ angular.injector(['ng']).invoke(function ($cacheFactory: angular.ICacheFactorySe actionDescriptor.cache = true; actionDescriptor.cache = $cacheFactory('cacheId'); actionDescriptor.timeout = 1000; - actionDescriptor.timeout = $timeout(function () { }); actionDescriptor.withCredentials = true; actionDescriptor.responseType = 'response type'; - actionDescriptor.interceptor = { key: 'value' }; + actionDescriptor.interceptor = { + response: function () { return {}; }, + responseError: function () {} + }; + actionDescriptor.cancellable = true; }); @@ -44,6 +52,7 @@ resource = resourceClass.delete({ key: 'value' }, { key: 'value' }); resource = resourceClass.delete({ key: 'value' }, { key: 'value' }, function () { }); resource = resourceClass.delete({ key: 'value' }, { key: 'value' }, function () { }, function () { }); resource.$promise.then(function(data: IMyResource) {}); +resource.$cancelRequest(); resource = resourceClass.get(); resource = resourceClass.get({ key: 'value' }); diff --git a/angularjs/angular-resource.d.ts b/angularjs/angular-resource.d.ts index 1e82f31545..caae65ccb2 100644 --- a/angularjs/angular-resource.d.ts +++ b/angularjs/angular-resource.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Angular JS 1.3 (ngResource module) +// Type definitions for Angular JS 1.5 (ngResource module) // Project: http://angularjs.org // Definitions by: Diego Vilar , Michael Jess // Definitions: https://github.com/daptiv/DefinitelyTyped @@ -13,7 +13,7 @@ declare module 'angular-resource' { /////////////////////////////////////////////////////////////////////////////// // ngResource module (angular-resource.js) /////////////////////////////////////////////////////////////////////////////// -declare module angular.resource { +declare namespace angular.resource { /** * Currently supported options for the $resource factory options argument. @@ -23,6 +23,11 @@ declare module angular.resource { * If true then the trailing slashes from any calculated URL will be stripped (defaults to true) */ stripTrailingSlashes?: boolean; + /** + * If true, the request made by a "non-instance" call will be cancelled (if not already completed) by calling + * $cancelRequest() on the call's return value. This can be overwritten per action. (Defaults to false.) + */ + cancellable?: boolean; } @@ -58,10 +63,36 @@ declare module angular.resource { transformResponse?: angular.IHttpResponseTransformer | angular.IHttpResponseTransformer[]; headers?: any; cache?: boolean | angular.ICacheObject; - timeout?: number | angular.IPromise; + /** + * Note: In contrast to $http.config, promises are not supported in $resource, because the same value + * would be used for multiple requests. If you are looking for a way to cancel requests, you should + * use the cancellable option. + */ + timeout?: number + cancellable?: boolean; withCredentials?: boolean; responseType?: string; - interceptor?: any; + interceptor?: IHttpInterceptor; + } + + // Allow specify more resource methods + // No need to add duplicates for all four overloads. + interface IResourceMethod { + (): T; + (params: Object): T; + (success: Function, error?: Function): T; + (params: Object, success: Function, error?: Function): T; + (params: Object, data: Object, success?: Function, error?: Function): T; + } + + // Allow specify resource moethod which returns the array + // No need to add duplicates for all four overloads. + interface IResourceArrayMethod { + (): IResourceArray; + (params: Object): IResourceArray; + (success: Function, error?: Function): IResourceArray; + (params: Object, success: Function, error?: Function): IResourceArray; + (params: Object, data: Object, success?: Function, error?: Function): IResourceArray; } // Baseclass for everyresource with default actions. @@ -83,35 +114,15 @@ declare module angular.resource { // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 interface IResourceClass { new(dataOrParams? : any) : T; - get(): T; - get(params: Object): T; - get(success: Function, error?: Function): T; - get(params: Object, success: Function, error?: Function): T; - get(params: Object, data: Object, success?: Function, error?: Function): T; + get: IResourceMethod; - query(): IResourceArray; - query(params: Object): IResourceArray; - query(success: Function, error?: Function): IResourceArray; - query(params: Object, success: Function, error?: Function): IResourceArray; - query(params: Object, data: Object, success?: Function, error?: Function): IResourceArray; + query: IResourceArrayMethod; - save(): T; - save(data: Object): T; - save(success: Function, error?: Function): T; - save(data: Object, success: Function, error?: Function): T; - save(params: Object, data: Object, success?: Function, error?: Function): T; + save: IResourceMethod; - remove(): T; - remove(params: Object): T; - remove(success: Function, error?: Function): T; - remove(params: Object, success: Function, error?: Function): T; - remove(params: Object, data: Object, success?: Function, error?: Function): T; + remove: IResourceMethod; - delete(): T; - delete(params: Object): T; - delete(success: Function, error?: Function): T; - delete(params: Object, success: Function, error?: Function): T; - delete(params: Object, data: Object, success?: Function, error?: Function): T; + delete: IResourceMethod; } // Instance calls always return the the promise of the request which retrieved the object @@ -137,6 +148,8 @@ declare module angular.resource { $delete(params?: Object, success?: Function, error?: Function): angular.IPromise; $delete(success: Function, error?: Function): angular.IPromise; + $cancelRequest(): void; + /** the promise of the original server interaction that created this instance. **/ $promise : angular.IPromise; $resolved : boolean; @@ -169,7 +182,7 @@ declare module angular.resource { } /** extensions to base ng based on using angular-resource */ -declare module angular { +declare namespace angular { interface IModule { /** creating a resource service factory */ diff --git a/angularjs/angular-route.d.ts b/angularjs/angular-route.d.ts index ec49b3cd92..19dbf04896 100644 --- a/angularjs/angular-route.d.ts +++ b/angularjs/angular-route.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.3 (ngRoute module) // Project: http://angularjs.org // Definitions by: Jonathan Park -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -13,7 +13,7 @@ declare module "angular-route" { /////////////////////////////////////////////////////////////////////////////// // ngRoute module (angular-route.js) /////////////////////////////////////////////////////////////////////////////// -declare module angular.route { +declare namespace angular.route { /////////////////////////////////////////////////////////////////////////// // RouteParamsService @@ -35,7 +35,7 @@ declare module angular.route { // May not always be available. For instance, current will not be available // to a controller that was not initialized as a result of a route maching. current?: ICurrentRoute; - + /** * Causes $route service to update the current URL, replacing current route parameters with those specified in newParams. * Provided property names that match the route's path segment definitions will be interpolated into the diff --git a/angularjs/angular-sanitize.d.ts b/angularjs/angular-sanitize.d.ts index d5d541f4e9..d87515adca 100644 --- a/angularjs/angular-sanitize.d.ts +++ b/angularjs/angular-sanitize.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.3 (ngSanitize module) // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -14,7 +14,7 @@ declare module "angular-sanitize" { /////////////////////////////////////////////////////////////////////////////// // ngSanitize module (angular-sanitize.js) /////////////////////////////////////////////////////////////////////////////// -declare module angular.sanitize { +declare namespace angular.sanitize { /////////////////////////////////////////////////////////////////////////// // SanitizeService diff --git a/angularjs/angular-tests.ts b/angularjs/angular-tests.ts index 5f8270e593..0539ae62ac 100644 --- a/angularjs/angular-tests.ts +++ b/angularjs/angular-tests.ts @@ -1,6 +1,6 @@ /// -// issue: https://github.com/borisyankov/DefinitelyTyped/issues/369 +// issue: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/369 // https://github.com/witoldsz/angular-http-auth/blob/master/src/angular-http-auth.js /** * @license HTTP Auth Interceptor Module for AngularJS @@ -62,6 +62,10 @@ angular.module('http-auth-interceptor', []) */ .config(['$httpProvider', 'authServiceProvider', function ($httpProvider: ng.IHttpProvider, authServiceProvider: any) { + $httpProvider.defaults.headers.common = {'Authorization': 'Bearer token'}; + $httpProvider.defaults.headers.get['Authorization'] = 'Bearer token'; + $httpProvider.defaults.headers.post['Authorization'] = function (config:ng.IRequestConfig):string { return 'Bearer token'; } + var interceptor = ['$rootScope', '$q', function ($rootScope: ng.IScope, $q: ng.IQService) { function success(response: ng.IHttpPromiseCallbackArg) { return response; @@ -87,7 +91,7 @@ angular.module('http-auth-interceptor', []) }]); -module HttpAndRegularPromiseTests { +namespace HttpAndRegularPromiseTests { interface Person { firstName: string; lastName: string; @@ -170,7 +174,7 @@ module HttpAndRegularPromiseTests { // Test for AngularJS Syntax -module My.Namespace { +namespace My.Namespace { export var x: any; // need to export something for module to kick in } @@ -243,7 +247,7 @@ foo.then((x) => { }); // $q signature tests -module TestQ { +namespace TestQ { interface TResult { a: number; b: string; @@ -268,6 +272,9 @@ module TestQ { { let result: angular.IPromise; result = $q.all([promiseAny, promiseAny]); + // TS should infer that n1 and n2 are numbers and have toFixed. + $q.all([1, $q.when(2)]).then(([ n1, n2 ]) => n1.toFixed() + n2.toFixed()); + $q.all([1, $q.when(2), '3']).then(([ n1, n2, n3 ]) => n1.toFixed() + n2.toFixed() + n3.slice(1)); } { let result: angular.IPromise; @@ -339,7 +346,7 @@ httpFoo.success((data, status, headers, config) => { // Deferred signature tests -module TestDeferred { +namespace TestDeferred { var any: any; interface TResult { @@ -379,9 +386,18 @@ module TestDeferred { } } +namespace TestInjector { + let $injector: angular.auto.IInjectorService; + + $injector.strictDi = true; + + $injector.annotate(() => {}); + $injector.annotate(() => {}, true); +} + // Promise signature tests -module TestPromise { +namespace TestPromise { var result: any; var any: any; @@ -463,7 +479,7 @@ var isolateScope: ng.IScope = element.isolateScope(); // $timeout signature tests -module TestTimeout { +namespace TestTimeout { interface TResult { a: number; b: string; @@ -510,6 +526,7 @@ test_IAttributes({ $normalize: function (classVal){ return "foo" }, $addClass: function (classVal){}, $removeClass: function(classVal){}, + $updateClass: function(newClass, oldClass){}, $set: function(key, value){}, $observe: function(name: any, fn: any){ return fn; @@ -748,6 +765,7 @@ angular.module('docsTransclusionExample', []) }; }); + angular.module('docsIsoFnBindExample', []) .controller('Controller', ['$scope', '$timeout', function($scope: any, $timeout: any) { $scope.name = 'Tobias'; @@ -847,6 +865,30 @@ angular.module('docsTabsExample', []) }; }); +angular.module('componentExample', []) + .component('counter', { + require: ['^ctrl'], + bindings: { + count: '=' + }, + controller: 'CounterCtrl', + controllerAs: 'counterCtrl', + template: function () { + return ''; + }, + transclude: { + 'el': 'target' + } + }) + .component('anotherCounter', { + controller: function(){}, + require: { + 'parent': '^parentCtrl' + }, + template: '', + transclude: true + }); + interface copyExampleUser { name?: string; email?: string; @@ -878,7 +920,7 @@ angular.module('copyExample', []) $scope.reset(); }]); -module locationTests { +namespace locationTests { var $location: ng.ILocationService; @@ -957,7 +999,7 @@ function NgModelControllerTyping() { }; } -var $filter: angular.IFilterService; +var $filter: angular.IFilterService; function testFilter() { @@ -1068,3 +1110,10 @@ function doBootstrap(element: Element | JQuery, mode: string): ng.auto.IInjector debugInfoEnabled: false }); } + +function testIHttpParamSerializerJQLikeProvider() { + let serializer: angular.IHttpParamSerializer; + serializer({ + a: "b" + }); +} diff --git a/angularjs/angular.d.ts b/angularjs/angular.d.ts index 656e62865b..e86fd37052 100644 --- a/angularjs/angular.d.ts +++ b/angularjs/angular.d.ts @@ -1,7 +1,7 @@ -// Type definitions for Angular JS 1.4+ +// Type definitions for Angular JS 1.5 // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -23,7 +23,7 @@ declare module 'angular' { /////////////////////////////////////////////////////////////////////////////// // ng module (angular.js) /////////////////////////////////////////////////////////////////////////////// -declare module angular { +declare namespace angular { // not directly implemented, but ensures that constructed class implements $get interface IServiceProviderClass { @@ -178,9 +178,6 @@ declare module angular { // see http://docs.angularjs.org/api/angular.Module /////////////////////////////////////////////////////////////////////////// interface IModule { - animation(name: string, animationFactory: Function): IModule; - animation(name: string, inlineAnnotatedFunction: any[]): IModule; - animation(object: Object): IModule; /** * Use this method to register a component. * @@ -274,7 +271,19 @@ declare module angular { * Run blocks are the closest thing in Angular to the main method. A run block is the code which needs to run to kickstart the application. It is executed after all of the service have been configured and the injector has been created. Run blocks typically contain code which is hard to unit-test, and for this reason should be declared in isolated modules, so that they can be ignored in the unit-tests. */ run(inlineAnnotatedFunction: any[]): IModule; + /** + * Register a service constructor, which will be invoked with new to create the service instance. This is short for registering a service where its provider's $get property is a factory function that returns an instance instantiated by the injector from the service constructor function. + * + * @param name The name of the instance. + * @param serviceConstructor An injectable class (constructor function) that will be instantiated. + */ service(name: string, serviceConstructor: Function): IModule; + /** + * Register a service constructor, which will be invoked with new to create the service instance. This is short for registering a service where its provider's $get property is a factory function that returns an instance instantiated by the injector from the service constructor function. + * + * @param name The name of the instance. + * @param inlineAnnotatedConstructor An injectable class (constructor function) that will be instantiated. + */ service(name: string, inlineAnnotatedConstructor: any[]): IModule; service(object: Object): IModule; /** @@ -336,6 +345,12 @@ declare module angular { */ $removeClass(classVal: string): void; + /** + * Adds and removes the appropriate CSS class values to the element based on the difference between + * the new and old CSS class values (specified as newClasses and oldClasses). + */ + $updateClass(newClasses: string, oldClasses: string): void; + /** * Set DOM element attribute value. */ @@ -373,6 +388,7 @@ declare module angular { $invalid: boolean; $submitted: boolean; $error: any; + $pending: any; $addControl(control: INgModelController): void; $removeControl(control: INgModelController): void; $setValidity(validationErrorKey: string, isValid: boolean, control: INgModelController): void; @@ -426,6 +442,16 @@ declare module angular { $invalid: boolean; } + //Allows tuning how model updates are done. + //https://docs.angularjs.org/api/ng/directive/ngModelOptions + interface INgModelOptions { + updateOn?: string; + debounce?: any; + allowInvalid?: boolean; + getterSetter?: boolean; + timezone?: string; + } + interface IModelValidators { /** * viewValue is any because it can be an object that is called in the view like $viewValue.name:$viewValue.subName @@ -508,18 +534,18 @@ declare module angular { * @param name Event name to listen on. * @param listener Function to call when the event is emitted. */ - $on(name: string, listener: (event: IAngularEvent, ...args: any[]) => any): Function; + $on(name: string, listener: (event: IAngularEvent, ...args: any[]) => any): () => void; - $watch(watchExpression: string, listener?: string, objectEquality?: boolean): Function; - $watch(watchExpression: string, listener?: (newValue: T, oldValue: T, scope: IScope) => any, objectEquality?: boolean): Function; - $watch(watchExpression: (scope: IScope) => any, listener?: string, objectEquality?: boolean): Function; - $watch(watchExpression: (scope: IScope) => T, listener?: (newValue: T, oldValue: T, scope: IScope) => any, objectEquality?: boolean): Function; + $watch(watchExpression: string, listener?: string, objectEquality?: boolean): () => void; + $watch(watchExpression: string, listener?: (newValue: T, oldValue: T, scope: IScope) => any, objectEquality?: boolean): () => void; + $watch(watchExpression: (scope: IScope) => any, listener?: string, objectEquality?: boolean): () => void; + $watch(watchExpression: (scope: IScope) => T, listener?: (newValue: T, oldValue: T, scope: IScope) => any, objectEquality?: boolean): () => void; - $watchCollection(watchExpression: string, listener: (newValue: T, oldValue: T, scope: IScope) => any): Function; - $watchCollection(watchExpression: (scope: IScope) => T, listener: (newValue: T, oldValue: T, scope: IScope) => any): Function; + $watchCollection(watchExpression: string, listener: (newValue: T, oldValue: T, scope: IScope) => any): () => void; + $watchCollection(watchExpression: (scope: IScope) => T, listener: (newValue: T, oldValue: T, scope: IScope) => any): () => void; - $watchGroup(watchExpressions: any[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; - $watchGroup(watchExpressions: { (scope: IScope): any }[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; + $watchGroup(watchExpressions: any[], listener: (newValue: any, oldValue: any, scope: IScope) => any): () => void; + $watchGroup(watchExpressions: { (scope: IScope): any }[], listener: (newValue: any, oldValue: any, scope: IScope) => any): () => void; $parent: IScope; $root: IRootScopeService; @@ -605,15 +631,6 @@ declare module angular { [key: string]: any; } - /////////////////////////////////////////////////////////////////////////// - // BrowserService - // TODO undocumented, so we need to get it from the source code - /////////////////////////////////////////////////////////////////////////// - interface IBrowserService { - defer: angular.ITimeoutService; - [key: string]: any; - } - /////////////////////////////////////////////////////////////////////////// // TimeoutService // see http://docs.angularjs.org/api/ng.$timeout @@ -633,35 +650,6 @@ declare module angular { cancel(promise: IPromise): boolean; } - /////////////////////////////////////////////////////////////////////////// - // AnimateProvider - // see http://docs.angularjs.org/api/ng/provider/$animateProvider - /////////////////////////////////////////////////////////////////////////// - interface IAnimateProvider { - /** - * Registers a new injectable animation factory function. - * - * @param name The name of the animation. - * @param factory The factory function that will be executed to return the animation object. - */ - register(name: string, factory: () => IAnimateCallbackObject): void; - - /** - * Gets and/or sets the CSS class expression that is checked when performing an animation. - * - * @param expression The className expression which will be checked against all animations. - * @returns The current CSS className expression value. If null then there is no expression value. - */ - classNameFilter(expression?: RegExp): RegExp; - } - - /** - * The animation object which contains callback functions for each event that is expected to be animated. - */ - interface IAnimateCallbackObject { - eventFn(element: Node, doneFn: () => void): Function; - } - /** * $filter - $filterProvider - service in module ng * @@ -1018,7 +1006,16 @@ declare module angular { * * @param promises An array of promises. */ - all(promises: IPromise[]): IPromise; + all(values: [T1 | IPromise, T2 | IPromise, T3 | IPromise, T4 | IPromise , T5 | IPromise, T6 | IPromise, T7 | IPromise, T8 | IPromise, T9 | IPromise, T10 | IPromise]): IPromise<[T1, T2, T3, T4, T5, T6, T7, T8, T9, T10]>; + all(values: [T1 | IPromise, T2 | IPromise, T3 | IPromise, T4 | IPromise , T5 | IPromise, T6 | IPromise, T7 | IPromise, T8 | IPromise, T9 | IPromise]): IPromise<[T1, T2, T3, T4, T5, T6, T7, T8, T9]>; + all(values: [T1 | IPromise, T2 | IPromise, T3 | IPromise, T4 | IPromise , T5 | IPromise, T6 | IPromise, T7 | IPromise, T8 | IPromise]): IPromise<[T1, T2, T3, T4, T5, T6, T7, T8]>; + all(values: [T1 | IPromise, T2 | IPromise, T3 | IPromise, T4 | IPromise , T5 | IPromise, T6 | IPromise, T7 | IPromise]): IPromise<[T1, T2, T3, T4, T5, T6, T7]>; + all(values: [T1 | IPromise, T2 | IPromise, T3 | IPromise, T4 | IPromise , T5 | IPromise, T6 | IPromise]): IPromise<[T1, T2, T3, T4, T5, T6]>; + all(values: [T1 | IPromise, T2 | IPromise, T3 | IPromise, T4 | IPromise , T5 | IPromise]): IPromise<[T1, T2, T3, T4, T5]>; + all(values: [T1 | IPromise, T2 | IPromise, T3 | IPromise, T4 | IPromise ]): IPromise<[T1, T2, T3, T4]>; + all(values: [T1 | IPromise, T2 | IPromise, T3 | IPromise]): IPromise<[T1, T2, T3]>; + all(values: [T1 | IPromise, T2 | IPromise]): IPromise<[T1, T2]>; + all(promises: IPromise[]): IPromise; /** * Combines multiple promises into a single promise that is resolved when all of the input promises are resolved. * @@ -1209,10 +1206,15 @@ declare module angular { interface ICompileProvider extends IServiceProvider { directive(name: string, directiveFactory: Function): ICompileProvider; + directive(directivesMap: Object, directiveFactory: Function): ICompileProvider; + directive(name: string, inlineAnnotatedFunction: any[]): ICompileProvider; + directive(directivesMap: Object, inlineAnnotatedFunction: any[]): ICompileProvider; // Undocumented, but it is there... directive(directivesMap: any): ICompileProvider; + component(name: string, options: IComponentOptions): ICompileProvider; + aHrefSanitizationWhitelist(): RegExp; aHrefSanitizationWhitelist(regexp: RegExp): ICompileProvider; @@ -1247,9 +1249,9 @@ declare module angular { /////////////////////////////////////////////////////////////////////////// interface IControllerService { // Although the documentation doesn't state this, locals are optional - (controllerConstructor: new (...args: any[]) => T, locals?: any, bindToController?: any): T; - (controllerConstructor: Function, locals?: any, bindToController?: any): T; - (controllerName: string, locals?: any, bindToController?: any): T; + (controllerConstructor: new (...args: any[]) => T, locals?: any, later?: boolean, ident?: string): T; + (controllerConstructor: Function, locals?: any, later?: boolean, ident?: string): T; + (controllerName: string, locals?: any, later?: boolean, ident?: string): T; } interface IControllerProvider extends IServiceProvider { @@ -1258,6 +1260,15 @@ declare module angular { allowGlobals(): void; } + /** + * xhrFactory + * Replace or decorate this service to create your own custom XMLHttpRequest objects. + * see https://docs.angularjs.org/api/ng/service/$xhrFactory + */ + interface IXhrFactory { + (method: string, url: string): T; + } + /** * HttpService * see http://docs.angularjs.org/api/ng/service/$http @@ -1399,8 +1410,18 @@ declare module angular { } interface IHttpPromise extends IPromise> { - success(callback: IHttpPromiseCallback): IHttpPromise; - error(callback: IHttpPromiseCallback): IHttpPromise; + /** + * The $http legacy promise methods success and error have been deprecated. Use the standard then method instead. + * If $httpProvider.useLegacyPromiseExtensions is set to false then these methods will throw $http/legacy error. + * @deprecated + */ + success?(callback: IHttpPromiseCallback): IHttpPromise; + /** + * The $http legacy promise methods success and error have been deprecated. Use the standard then method instead. + * If $httpProvider.useLegacyPromiseExtensions is set to false then these methods will throw $http/legacy error. + * @deprecated + */ + error?(callback: IHttpPromiseCallback): IHttpPromise; } // See the jsdoc for transformData() at https://github.com/angular/angular.js/blob/master/src/ng/http.js#L228 @@ -1413,13 +1434,15 @@ declare module angular { (data: any, headersGetter: IHttpHeadersGetter, status: number): any; } + type HttpHeaderType = {[requestType: string]:string|((config:IRequestConfig) => string)}; + interface IHttpRequestConfigHeaders { - [requestType: string]: string|(() => string); - common?: string|(() => string); - get?: string|(() => string); - post?: string|(() => string); - put?: string|(() => string); - patch?: string|(() => string); + [requestType: string]: any; + common?: any; + get?: any; + post?: any; + put?: any; + patch?: any; } /** @@ -1479,7 +1502,7 @@ declare module angular { interface IHttpInterceptor { request?: (config: IRequestConfig) => IRequestConfig|IPromise; requestError?: (rejection: any) => any; - response?: (response: IHttpPromiseCallbackArg) => IPromise|T; + response?: (response: IHttpPromiseCallbackArg) => IPromise>|IHttpPromiseCallbackArg; responseError?: (rejection: any) => any; } @@ -1684,11 +1707,13 @@ declare module angular { /** * Controller constructor function that should be associated with newly created scope or the name of a registered * controller if passed as a string. Empty function by default. + * Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection) */ - controller?: any; + controller?: string | Function | (string | Function)[]; /** * An identifier name for a reference to the controller. If present, the controller will be published to scope under * the controllerAs name. If not present, this will default to be the same as the component name. + * @default "$ctrl" */ controllerAs?: string; /** @@ -1697,27 +1722,27 @@ declare module angular { * If template is a function, then it is injected with the following locals: * $element - Current element * $attrs - Current attributes object for the element + * Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection) */ - template?: string | Function; + template?: string | Function | (string | Function)[]; /** * path or function that returns a path to an html template that should be used as the contents of this component. * If templateUrl is a function, then it is injected with the following locals: * $element - Current element * $attrs - Current attributes object for the element + * Use the array form to define dependencies (necessary if strictDi is enabled and you require dependency injection) */ - templateUrl?: string | Function; + templateUrl?: string | Function | (string | Function)[]; /** * Define DOM attribute binding to component properties. Component properties are always bound to the component * controller and not to the scope. */ - bindings?: any; + bindings?: {[binding: string]: string}; /** * Whether transclusion is enabled. Enabled by default. */ - transclude?: boolean; - require? : Object; - $canActivate?: () => boolean; - $routeConfig?: RouteDefinition[]; + transclude?: boolean | string | {[slot: string]: string}; + require?: string | string[] | {[controller: string]: string}; } interface IComponentTemplateFn { @@ -1753,6 +1778,12 @@ declare module angular { ( templateElement: IAugmentedJQuery, templateAttributes: IAttributes, + /** + * @deprecated + * Note: The transclude function that is passed to the compile function is deprecated, + * as it e.g. does not know about the right outer scope. Please use the transclude function + * that is passed to the link function instead. + */ transclude: ITranscludeFunction ): IDirectivePrePost; } @@ -1761,19 +1792,29 @@ declare module angular { compile?: IDirectiveCompileFn; controller?: any; controllerAs?: string; - bindToController?: boolean|Object; + /** + * @deprecated + * Deprecation warning: although bindings for non-ES6 class controllers are currently bound to this before + * the controller constructor is called, this use is now deprecated. Please place initialization code that + * relies upon bindings inside a $onInit method on the controller, instead. + */ + bindToController?: boolean | Object; link?: IDirectiveLinkFn | IDirectivePrePost; + multiElement?: boolean; name?: string; priority?: number; + /** + * @deprecated + */ replace?: boolean; - require? : any; + require?: string | string[] | {[controller: string]: string}; restrict?: string; - scope?: any; + scope?: boolean | Object; template?: string | Function; templateNamespace?: string; templateUrl?: string | Function; terminal?: boolean; - transclude?: any; + transclude?: boolean | string | {[slot: string]: string}; } /** @@ -1804,6 +1845,11 @@ declare module angular { controller(name: string): any; injector(): any; scope(): IScope; + + /** + * Overload for custom scope interfaces + */ + scope(): T; isolateScope(): IScope; inheritedData(key: string, value: any): JQuery; @@ -1821,13 +1867,14 @@ declare module angular { // see http://docs.angularjs.org/api/AUTO.$injector /////////////////////////////////////////////////////////////////////// interface IInjectorService { - annotate(fn: Function): string[]; + annotate(fn: Function, strictDi?: boolean): string[]; annotate(inlineAnnotatedFunction: any[]): string[]; get(name: string, caller?: string): T; has(name: string): boolean; instantiate(typeConstructor: Function, locals?: any): T; invoke(inlineAnnotatedFunction: any[]): any; invoke(func: Function, context?: any, locals?: any): any; + strictDi: boolean; } /////////////////////////////////////////////////////////////////////// @@ -1874,4 +1921,12 @@ declare module angular { } } + + /** + * $http params serializer that converts objects to strings + * see https://docs.angularjs.org/api/ng/service/$httpParamSerializer + */ + interface IHttpParamSerializer { + (obj: Object): string; + } } diff --git a/angularjs/legacy/angular-1.0-tests.ts b/angularjs/legacy/angular-1.0-tests.ts index dc4dbcee00..33138c0c2f 100644 --- a/angularjs/legacy/angular-1.0-tests.ts +++ b/angularjs/legacy/angular-1.0-tests.ts @@ -1,6 +1,6 @@ /// -// issue: https://github.com/borisyankov/DefinitelyTyped/issues/369 +// issue: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/369 https://github.com/witoldsz/angular-http-auth/blob/master/src/angular-http-auth.js /** * @license HTTP Auth Interceptor Module for AngularJS @@ -82,7 +82,7 @@ angular.module('http-auth-interceptor', []) }]); -module HttpAndRegularPromiseTests { +namespace HttpAndRegularPromiseTests { interface Person { firstName: string; lastName: string; @@ -151,7 +151,7 @@ module HttpAndRegularPromiseTests { // Test for AngularJS Syntax -module My.Namespace { +namespace My.Namespace { export var x; // need to export something for module to kick in } diff --git a/angularjs/legacy/angular-1.0.d.ts b/angularjs/legacy/angular-1.0.d.ts index be38898dbe..6e8420b9d2 100644 --- a/angularjs/legacy/angular-1.0.d.ts +++ b/angularjs/legacy/angular-1.0.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.0 // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -16,7 +16,7 @@ interface Function { /////////////////////////////////////////////////////////////////////////////// // ng module (angular.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng { +declare namespace ng { // All service providers extend this interface interface IServiceProvider { @@ -679,7 +679,7 @@ declare module ng { scope?: any; link?: Function; compile?: Function; - controller?: any; + controller?: any; } /////////////////////////////////////////////////////////////////////////// diff --git a/angularjs/legacy/angular-1.2-tests.ts b/angularjs/legacy/angular-1.2-tests.ts index d0f60609ae..71e96d0804 100644 --- a/angularjs/legacy/angular-1.2-tests.ts +++ b/angularjs/legacy/angular-1.2-tests.ts @@ -1,6 +1,6 @@ /// -// issue: https://github.com/borisyankov/DefinitelyTyped/issues/369 +// issue: https://github.com/DefinitelyTyped/DefinitelyTyped/issues/369 // https://github.com/witoldsz/angular-http-auth/blob/master/src/angular-http-auth.js /** * @license HTTP Auth Interceptor Module for AngularJS @@ -87,7 +87,7 @@ angular.module('http-auth-interceptor', []) }]); -module HttpAndRegularPromiseTests { +namespace HttpAndRegularPromiseTests { interface Person { firstName: string; lastName: string; @@ -170,7 +170,7 @@ module HttpAndRegularPromiseTests { // Test for AngularJS Syntax -module My.Namespace { +namespace My.Namespace { export var x: any; // need to export something for module to kick in } diff --git a/angularjs/legacy/angular-1.2.d.ts b/angularjs/legacy/angular-1.2.d.ts index fb21b030a6..fe018ba989 100644 --- a/angularjs/legacy/angular-1.2.d.ts +++ b/angularjs/legacy/angular-1.2.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.2+ // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -16,7 +16,7 @@ interface Function { /////////////////////////////////////////////////////////////////////////////// // ng module (angular.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng { +declare namespace ng { // not directly implemented, but ensures that constructed class implements $get interface IServiceProviderClass { diff --git a/angularjs/legacy/angular-1.4.d.ts b/angularjs/legacy/angular-1.4.d.ts new file mode 100644 index 0000000000..22c504712e --- /dev/null +++ b/angularjs/legacy/angular-1.4.d.ts @@ -0,0 +1,1877 @@ +// Type definitions for Angular JS 1.4+ +// Project: http://angularjs.org +// Definitions by: Diego Vilar +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + + +/// + +declare var angular: angular.IAngularStatic; + +// Support for painless dependency injection +interface Function { + $inject?: string[]; +} + +// Collapse angular into ng +import ng = angular; +// Support AMD require +declare module 'angular' { + export = angular; +} + +/////////////////////////////////////////////////////////////////////////////// +// ng module (angular.js) +/////////////////////////////////////////////////////////////////////////////// +declare namespace angular { + + // not directly implemented, but ensures that constructed class implements $get + interface IServiceProviderClass { + new (...args: any[]): IServiceProvider; + } + + interface IServiceProviderFactory { + (...args: any[]): IServiceProvider; + } + + // All service providers extend this interface + interface IServiceProvider { + $get: any; + } + + interface IAngularBootstrapConfig { + strictDi?: boolean; + debugInfoEnabled?: boolean; + } + + /////////////////////////////////////////////////////////////////////////// + // AngularStatic + // see http://docs.angularjs.org/api + /////////////////////////////////////////////////////////////////////////// + interface IAngularStatic { + bind(context: any, fn: Function, ...args: any[]): Function; + + /** + * Use this function to manually start up angular application. + * + * @param element DOM element which is the root of angular application. + * @param modules An array of modules to load into the application. + * Each item in the array should be the name of a predefined module or a (DI annotated) + * function that will be invoked by the injector as a config block. + * @param config an object for defining configuration options for the application. The following keys are supported: + * - `strictDi`: disable automatic function annotation for the application. This is meant to assist in finding bugs which break minified code. + */ + bootstrap(element: string|Element|JQuery|Document, modules?: (string|Function|any[])[], config?: IAngularBootstrapConfig): auto.IInjectorService; + + /** + * Creates a deep copy of source, which should be an object or an array. + * + * - If no destination is supplied, a copy of the object or array is created. + * - If a destination is provided, all of its elements (for array) or properties (for objects) are deleted and then all elements/properties from the source are copied to it. + * - If source is not an object or array (inc. null and undefined), source is returned. + * - If source is identical to 'destination' an exception will be thrown. + * + * @param source The source that will be used to make a copy. Can be any type, including primitives, null, and undefined. + * @param destination Destination into which the source is copied. If provided, must be of the same type as source. + */ + copy(source: T, destination?: T): T; + + /** + * Wraps a raw DOM element or HTML string as a jQuery element. + * + * If jQuery is available, angular.element is an alias for the jQuery function. If jQuery is not available, angular.element delegates to Angular's built-in subset of jQuery, called "jQuery lite" or "jqLite." + */ + element: IAugmentedJQueryStatic; + equals(value1: any, value2: any): boolean; + extend(destination: any, ...sources: any[]): any; + + /** + * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional. + * + * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method. + * + * @param obj Object to iterate over. + * @param iterator Iterator function. + * @param context Object to become context (this) for the iterator function. + */ + forEach(obj: T[], iterator: (value: T, key: number) => any, context?: any): any; + /** + * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional. + * + * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method. + * + * @param obj Object to iterate over. + * @param iterator Iterator function. + * @param context Object to become context (this) for the iterator function. + */ + forEach(obj: { [index: string]: T; }, iterator: (value: T, key: string) => any, context?: any): any; + /** + * Invokes the iterator function once for each item in obj collection, which can be either an object or an array. The iterator function is invoked with iterator(value, key), where value is the value of an object property or an array element and key is the object property key or array element index. Specifying a context for the function is optional. + * + * It is worth noting that .forEach does not iterate over inherited properties because it filters using the hasOwnProperty method. + * + * @param obj Object to iterate over. + * @param iterator Iterator function. + * @param context Object to become context (this) for the iterator function. + */ + forEach(obj: any, iterator: (value: any, key: any) => any, context?: any): any; + + fromJson(json: string): any; + identity(arg?: T): T; + injector(modules?: any[], strictDi?: boolean): auto.IInjectorService; + isArray(value: any): boolean; + isDate(value: any): boolean; + isDefined(value: any): boolean; + isElement(value: any): boolean; + isFunction(value: any): boolean; + isNumber(value: any): boolean; + isObject(value: any): boolean; + isString(value: any): boolean; + isUndefined(value: any): boolean; + lowercase(str: string): string; + + /** + * Deeply extends the destination object dst by copying own enumerable properties from the src object(s) to dst. You can specify multiple src objects. If you want to preserve original objects, you can do so by passing an empty object as the target: var object = angular.merge({}, object1, object2). + * + * Unlike extend(), merge() recursively descends into object properties of source objects, performing a deep copy. + * + * @param dst Destination object. + * @param src Source object(s). + */ + merge(dst: any, ...src: any[]): any; + + /** + * The angular.module is a global place for creating, registering and retrieving Angular modules. All modules (angular core or 3rd party) that should be available to an application must be registered using this mechanism. + * + * When passed two or more arguments, a new module is created. If passed only one argument, an existing module (the name passed as the first argument to module) is retrieved. + * + * @param name The name of the module to create or retrieve. + * @param requires The names of modules this module depends on. If specified then new module is being created. If unspecified then the module is being retrieved for further configuration. + * @param configFn Optional configuration function for the module. + */ + module( + name: string, + requires?: string[], + configFn?: Function): IModule; + + noop(...args: any[]): void; + reloadWithDebugInfo(): void; + toJson(obj: any, pretty?: boolean): string; + uppercase(str: string): string; + version: { + full: string; + major: number; + minor: number; + dot: number; + codeName: string; + }; + + /** + * If window.name contains prefix NG_DEFER_BOOTSTRAP! when angular.bootstrap is called, the bootstrap process will be paused until angular.resumeBootstrap() is called. + * @param extraModules An optional array of modules that should be added to the original list of modules that the app was about to be bootstrapped with. + */ + resumeBootstrap?(extraModules?: string[]): ng.auto.IInjectorService; + } + + /////////////////////////////////////////////////////////////////////////// + // Module + // see http://docs.angularjs.org/api/angular.Module + /////////////////////////////////////////////////////////////////////////// + interface IModule { + animation(name: string, animationFactory: Function): IModule; + animation(name: string, inlineAnnotatedFunction: any[]): IModule; + animation(object: Object): IModule; + /** + * Use this method to register a component. + * + * @param name The name of the component. + * @param options A definition object passed into the component. + */ + component(name: string, options: IComponentOptions): IModule; + /** + * Use this method to register work which needs to be performed on module loading. + * + * @param configFn Execute this function on module load. Useful for service configuration. + */ + config(configFn: Function): IModule; + /** + * Use this method to register work which needs to be performed on module loading. + * + * @param inlineAnnotatedFunction Execute this function on module load. Useful for service configuration. + */ + config(inlineAnnotatedFunction: any[]): IModule; + config(object: Object): IModule; + /** + * Register a constant service, such as a string, a number, an array, an object or a function, with the $injector. Unlike value it can be injected into a module configuration function (see config) and it cannot be overridden by an Angular decorator. + * + * @param name The name of the constant. + * @param value The constant value. + */ + constant(name: string, value: any): IModule; + constant(object: Object): IModule; + /** + * The $controller service is used by Angular to create new controllers. + * + * This provider allows controller registration via the register method. + * + * @param name Controller name, or an object map of controllers where the keys are the names and the values are the constructors. + * @param controllerConstructor Controller constructor fn (optionally decorated with DI annotations in the array notation). + */ + controller(name: string, controllerConstructor: Function): IModule; + /** + * The $controller service is used by Angular to create new controllers. + * + * This provider allows controller registration via the register method. + * + * @param name Controller name, or an object map of controllers where the keys are the names and the values are the constructors. + * @param controllerConstructor Controller constructor fn (optionally decorated with DI annotations in the array notation). + */ + controller(name: string, inlineAnnotatedConstructor: any[]): IModule; + controller(object: Object): IModule; + /** + * Register a new directive with the compiler. + * + * @param name Name of the directive in camel-case (i.e. ngBind which will match as ng-bind) + * @param directiveFactory An injectable directive factory function. + */ + directive(name: string, directiveFactory: IDirectiveFactory): IModule; + /** + * Register a new directive with the compiler. + * + * @param name Name of the directive in camel-case (i.e. ngBind which will match as ng-bind) + * @param directiveFactory An injectable directive factory function. + */ + directive(name: string, inlineAnnotatedFunction: any[]): IModule; + directive(object: Object): IModule; + /** + * Register a service factory, which will be called to return the service instance. This is short for registering a service where its provider consists of only a $get property, which is the given service factory function. You should use $provide.factory(getFn) if you do not need to configure your service in a provider. + * + * @param name The name of the instance. + * @param $getFn The $getFn for the instance creation. Internally this is a short hand for $provide.provider(name, {$get: $getFn}). + */ + factory(name: string, $getFn: Function): IModule; + /** + * Register a service factory, which will be called to return the service instance. This is short for registering a service where its provider consists of only a $get property, which is the given service factory function. You should use $provide.factory(getFn) if you do not need to configure your service in a provider. + * + * @param name The name of the instance. + * @param inlineAnnotatedFunction The $getFn for the instance creation. Internally this is a short hand for $provide.provider(name, {$get: $getFn}). + */ + factory(name: string, inlineAnnotatedFunction: any[]): IModule; + factory(object: Object): IModule; + filter(name: string, filterFactoryFunction: Function): IModule; + filter(name: string, inlineAnnotatedFunction: any[]): IModule; + filter(object: Object): IModule; + provider(name: string, serviceProviderFactory: IServiceProviderFactory): IModule; + provider(name: string, serviceProviderConstructor: IServiceProviderClass): IModule; + provider(name: string, inlineAnnotatedConstructor: any[]): IModule; + provider(name: string, providerObject: IServiceProvider): IModule; + provider(object: Object): IModule; + /** + * Run blocks are the closest thing in Angular to the main method. A run block is the code which needs to run to kickstart the application. It is executed after all of the service have been configured and the injector has been created. Run blocks typically contain code which is hard to unit-test, and for this reason should be declared in isolated modules, so that they can be ignored in the unit-tests. + */ + run(initializationFunction: Function): IModule; + /** + * Run blocks are the closest thing in Angular to the main method. A run block is the code which needs to run to kickstart the application. It is executed after all of the service have been configured and the injector has been created. Run blocks typically contain code which is hard to unit-test, and for this reason should be declared in isolated modules, so that they can be ignored in the unit-tests. + */ + run(inlineAnnotatedFunction: any[]): IModule; + service(name: string, serviceConstructor: Function): IModule; + service(name: string, inlineAnnotatedConstructor: any[]): IModule; + service(object: Object): IModule; + /** + * Register a value service with the $injector, such as a string, a number, an array, an object or a function. This is short for registering a service where its provider's $get property is a factory function that takes no arguments and returns the value service. + + Value services are similar to constant services, except that they cannot be injected into a module configuration function (see config) but they can be overridden by an Angular decorator. + * + * @param name The name of the instance. + * @param value The value. + */ + value(name: string, value: any): IModule; + value(object: Object): IModule; + + /** + * Register a service decorator with the $injector. A service decorator intercepts the creation of a service, allowing it to override or modify the behaviour of the service. The object returned by the decorator may be the original service, or a new service object which replaces or wraps and delegates to the original service. + * @param name The name of the service to decorate + * @param decorator This function will be invoked when the service needs to be instantiated and should return the decorated service instance. The function is called using the injector.invoke method and is therefore fully injectable. Local injection arguments: $delegate - The original service instance, which can be monkey patched, configured, decorated or delegated to. + */ + decorator(name:string, decoratorConstructor: Function): IModule; + decorator(name:string, inlineAnnotatedConstructor: any[]): IModule; + + // Properties + name: string; + requires: string[]; + } + + /////////////////////////////////////////////////////////////////////////// + // Attributes + // see http://docs.angularjs.org/api/ng.$compile.directive.Attributes + /////////////////////////////////////////////////////////////////////////// + interface IAttributes { + /** + * this is necessary to be able to access the scoped attributes. it's not very elegant + * because you have to use attrs['foo'] instead of attrs.foo but I don't know of a better way + * this should really be limited to return string but it creates this problem: http://stackoverflow.com/q/17201854/165656 + */ + [name: string]: any; + + /** + * Converts an attribute name (e.g. dash/colon/underscore-delimited string, optionally prefixed with x- or data-) to its normalized, camelCase form. + * + * Also there is special case for Moz prefix starting with upper case letter. + * + * For further information check out the guide on @see https://docs.angularjs.org/guide/directive#matching-directives + */ + $normalize(name: string): string; + + /** + * Adds the CSS class value specified by the classVal parameter to the + * element. If animations are enabled then an animation will be triggered + * for the class addition. + */ + $addClass(classVal: string): void; + + /** + * Removes the CSS class value specified by the classVal parameter from the + * element. If animations are enabled then an animation will be triggered for + * the class removal. + */ + $removeClass(classVal: string): void; + + /** + * Set DOM element attribute value. + */ + $set(key: string, value: any): void; + + /** + * Observes an interpolated attribute. + * The observer function will be invoked once during the next $digest + * following compilation. The observer is then invoked whenever the + * interpolated value changes. + */ + $observe(name: string, fn: (value?: T) => any): Function; + + /** + * A map of DOM element attribute names to the normalized name. This is needed + * to do reverse lookup from normalized name back to actual name. + */ + $attr: Object; + } + + /** + * form.FormController - type in module ng + * see https://docs.angularjs.org/api/ng/type/form.FormController + */ + interface IFormController { + + /** + * Indexer which should return ng.INgModelController for most properties but cannot because of "All named properties must be assignable to string indexer type" constraint - see https://github.com/Microsoft/TypeScript/issues/272 + */ + [name: string]: any; + + $pristine: boolean; + $dirty: boolean; + $valid: boolean; + $invalid: boolean; + $submitted: boolean; + $error: any; + $addControl(control: INgModelController): void; + $removeControl(control: INgModelController): void; + $setValidity(validationErrorKey: string, isValid: boolean, control: INgModelController): void; + $setDirty(): void; + $setPristine(): void; + $commitViewValue(): void; + $rollbackViewValue(): void; + $setSubmitted(): void; + $setUntouched(): void; + } + + /////////////////////////////////////////////////////////////////////////// + // NgModelController + // see http://docs.angularjs.org/api/ng.directive:ngModel.NgModelController + /////////////////////////////////////////////////////////////////////////// + interface INgModelController { + $render(): void; + $setValidity(validationErrorKey: string, isValid: boolean): void; + // Documentation states viewValue and modelValue to be a string but other + // types do work and it's common to use them. + $setViewValue(value: any, trigger?: string): void; + $setPristine(): void; + $setDirty(): void; + $validate(): void; + $setTouched(): void; + $setUntouched(): void; + $rollbackViewValue(): void; + $commitViewValue(): void; + $isEmpty(value: any): boolean; + + $viewValue: any; + + $modelValue: any; + + $parsers: IModelParser[]; + $formatters: IModelFormatter[]; + $viewChangeListeners: IModelViewChangeListener[]; + $error: any; + $name: string; + + $touched: boolean; + $untouched: boolean; + + $validators: IModelValidators; + $asyncValidators: IAsyncModelValidators; + + $pending: any; + $pristine: boolean; + $dirty: boolean; + $valid: boolean; + $invalid: boolean; + } + + interface IModelValidators { + /** + * viewValue is any because it can be an object that is called in the view like $viewValue.name:$viewValue.subName + */ + [index: string]: (modelValue: any, viewValue: any) => boolean; + } + + interface IAsyncModelValidators { + [index: string]: (modelValue: any, viewValue: any) => IPromise; + } + + interface IModelParser { + (value: any): any; + } + + interface IModelFormatter { + (value: any): any; + } + + interface IModelViewChangeListener { + (): void; + } + + /** + * $rootScope - $rootScopeProvider - service in module ng + * see https://docs.angularjs.org/api/ng/type/$rootScope.Scope and https://docs.angularjs.org/api/ng/service/$rootScope + */ + interface IRootScopeService { + [index: string]: any; + + $apply(): any; + $apply(exp: string): any; + $apply(exp: (scope: IScope) => any): any; + + $applyAsync(): any; + $applyAsync(exp: string): any; + $applyAsync(exp: (scope: IScope) => any): any; + + /** + * Dispatches an event name downwards to all child scopes (and their children) notifying the registered $rootScope.Scope listeners. + * + * The event life cycle starts at the scope on which $broadcast was called. All listeners listening for name event on this scope get notified. Afterwards, the event propagates to all direct and indirect scopes of the current scope and calls all registered listeners along the way. The event cannot be canceled. + * + * Any exception emitted from the listeners will be passed onto the $exceptionHandler service. + * + * @param name Event name to broadcast. + * @param args Optional one or more arguments which will be passed onto the event listeners. + */ + $broadcast(name: string, ...args: any[]): IAngularEvent; + $destroy(): void; + $digest(): void; + /** + * Dispatches an event name upwards through the scope hierarchy notifying the registered $rootScope.Scope listeners. + * + * The event life cycle starts at the scope on which $emit was called. All listeners listening for name event on this scope get notified. Afterwards, the event traverses upwards toward the root scope and calls all registered listeners along the way. The event will stop propagating if one of the listeners cancels it. + * + * Any exception emitted from the listeners will be passed onto the $exceptionHandler service. + * + * @param name Event name to emit. + * @param args Optional one or more arguments which will be passed onto the event listeners. + */ + $emit(name: string, ...args: any[]): IAngularEvent; + + $eval(): any; + $eval(expression: string, locals?: Object): any; + $eval(expression: (scope: IScope) => any, locals?: Object): any; + + $evalAsync(): void; + $evalAsync(expression: string): void; + $evalAsync(expression: (scope: IScope) => any): void; + + // Defaults to false by the implementation checking strategy + $new(isolate?: boolean, parent?: IScope): IScope; + + /** + * Listens on events of a given type. See $emit for discussion of event life cycle. + * + * The event listener function format is: function(event, args...). + * + * @param name Event name to listen on. + * @param listener Function to call when the event is emitted. + */ + $on(name: string, listener: (event: IAngularEvent, ...args: any[]) => any): Function; + + $watch(watchExpression: string, listener?: string, objectEquality?: boolean): Function; + $watch(watchExpression: string, listener?: (newValue: T, oldValue: T, scope: IScope) => any, objectEquality?: boolean): Function; + $watch(watchExpression: (scope: IScope) => any, listener?: string, objectEquality?: boolean): Function; + $watch(watchExpression: (scope: IScope) => T, listener?: (newValue: T, oldValue: T, scope: IScope) => any, objectEquality?: boolean): Function; + + $watchCollection(watchExpression: string, listener: (newValue: T, oldValue: T, scope: IScope) => any): Function; + $watchCollection(watchExpression: (scope: IScope) => T, listener: (newValue: T, oldValue: T, scope: IScope) => any): Function; + + $watchGroup(watchExpressions: any[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; + $watchGroup(watchExpressions: { (scope: IScope): any }[], listener: (newValue: any, oldValue: any, scope: IScope) => any): Function; + + $parent: IScope; + $root: IRootScopeService; + $id: number; + + // Hidden members + $$isolateBindings: any; + $$phase: any; + } + + interface IScope extends IRootScopeService { } + + /** + * $scope for ngRepeat directive. + * see https://docs.angularjs.org/api/ng/directive/ngRepeat + */ + interface IRepeatScope extends IScope { + + /** + * iterator offset of the repeated element (0..length-1). + */ + $index: number; + + /** + * true if the repeated element is first in the iterator. + */ + $first: boolean; + + /** + * true if the repeated element is between the first and last in the iterator. + */ + $middle: boolean; + + /** + * true if the repeated element is last in the iterator. + */ + $last: boolean; + + /** + * true if the iterator position $index is even (otherwise false). + */ + $even: boolean; + + /** + * true if the iterator position $index is odd (otherwise false). + */ + $odd: boolean; + + } + + interface IAngularEvent { + /** + * the scope on which the event was $emit-ed or $broadcast-ed. + */ + targetScope: IScope; + /** + * the scope that is currently handling the event. Once the event propagates through the scope hierarchy, this property is set to null. + */ + currentScope: IScope; + /** + * name of the event. + */ + name: string; + /** + * calling stopPropagation function will cancel further event propagation (available only for events that were $emit-ed). + */ + stopPropagation?: Function; + /** + * calling preventDefault sets defaultPrevented flag to true. + */ + preventDefault: Function; + /** + * true if preventDefault was called. + */ + defaultPrevented: boolean; + } + + /////////////////////////////////////////////////////////////////////////// + // WindowService + // see http://docs.angularjs.org/api/ng.$window + /////////////////////////////////////////////////////////////////////////// + interface IWindowService extends Window { + [key: string]: any; + } + + /////////////////////////////////////////////////////////////////////////// + // BrowserService + // TODO undocumented, so we need to get it from the source code + /////////////////////////////////////////////////////////////////////////// + interface IBrowserService { + defer: angular.ITimeoutService; + [key: string]: any; + } + + /////////////////////////////////////////////////////////////////////////// + // TimeoutService + // see http://docs.angularjs.org/api/ng.$timeout + /////////////////////////////////////////////////////////////////////////// + interface ITimeoutService { + (delay?: number, invokeApply?: boolean): IPromise; + (fn: (...args: any[]) => T, delay?: number, invokeApply?: boolean, ...args: any[]): IPromise; + cancel(promise?: IPromise): boolean; + } + + /////////////////////////////////////////////////////////////////////////// + // IntervalService + // see http://docs.angularjs.org/api/ng.$interval + /////////////////////////////////////////////////////////////////////////// + interface IIntervalService { + (func: Function, delay: number, count?: number, invokeApply?: boolean, ...args: any[]): IPromise; + cancel(promise: IPromise): boolean; + } + + /////////////////////////////////////////////////////////////////////////// + // AnimateProvider + // see http://docs.angularjs.org/api/ng/provider/$animateProvider + /////////////////////////////////////////////////////////////////////////// + interface IAnimateProvider { + /** + * Registers a new injectable animation factory function. + * + * @param name The name of the animation. + * @param factory The factory function that will be executed to return the animation object. + */ + register(name: string, factory: () => IAnimateCallbackObject): void; + + /** + * Gets and/or sets the CSS class expression that is checked when performing an animation. + * + * @param expression The className expression which will be checked against all animations. + * @returns The current CSS className expression value. If null then there is no expression value. + */ + classNameFilter(expression?: RegExp): RegExp; + } + + /** + * The animation object which contains callback functions for each event that is expected to be animated. + */ + interface IAnimateCallbackObject { + eventFn(element: Node, doneFn: () => void): Function; + } + + /** + * $filter - $filterProvider - service in module ng + * + * Filters are used for formatting data displayed to the user. + * + * see https://docs.angularjs.org/api/ng/service/$filter + */ + interface IFilterService { + (name: 'filter'): IFilterFilter; + (name: 'currency'): IFilterCurrency; + (name: 'number'): IFilterNumber; + (name: 'date'): IFilterDate; + (name: 'json'): IFilterJson; + (name: 'lowercase'): IFilterLowercase; + (name: 'uppercase'): IFilterUppercase; + (name: 'limitTo'): IFilterLimitTo; + (name: 'orderBy'): IFilterOrderBy; + /** + * Usage: + * $filter(name); + * + * @param name Name of the filter function to retrieve + */ + (name: string): T; + } + + interface IFilterFilter { + (array: T[], expression: string | IFilterFilterPatternObject | IFilterFilterPredicateFunc, comparator?: IFilterFilterComparatorFunc|boolean): T[]; + } + + interface IFilterFilterPatternObject { + [name: string]: any; + } + + interface IFilterFilterPredicateFunc { + (value: T, index: number, array: T[]): boolean; + } + + interface IFilterFilterComparatorFunc { + (actual: T, expected: T): boolean; + } + + interface IFilterCurrency { + /** + * Formats a number as a currency (ie $1,234.56). When no currency symbol is provided, default symbol for current locale is used. + * @param amount Input to filter. + * @param symbol Currency symbol or identifier to be displayed. + * @param fractionSize Number of decimal places to round the amount to, defaults to default max fraction size for current locale + * @return Formatted number + */ + (amount: number, symbol?: string, fractionSize?: number): string; + } + + interface IFilterNumber { + /** + * Formats a number as text. + * @param number Number to format. + * @param fractionSize Number of decimal places to round the number to. If this is not provided then the fraction size is computed from the current locale's number formatting pattern. In the case of the default locale, it will be 3. + * @return Number rounded to decimalPlaces and places a “,” after each third digit. + */ + (value: number|string, fractionSize?: number|string): string; + } + + interface IFilterDate { + /** + * Formats date to a string based on the requested format. + * + * @param date Date to format either as Date object, milliseconds (string or number) or various ISO 8601 datetime string formats (e.g. yyyy-MM-ddTHH:mm:ss.sssZ and its shorter versions like yyyy-MM-ddTHH:mmZ, yyyy-MM-dd or yyyyMMddTHHmmssZ). If no timezone is specified in the string input, the time is considered to be in the local timezone. + * @param format Formatting rules (see Description). If not specified, mediumDate is used. + * @param timezone Timezone to be used for formatting. It understands UTC/GMT and the continental US time zone abbreviations, but for general use, use a time zone offset, for example, '+0430' (4 hours, 30 minutes east of the Greenwich meridian) If not specified, the timezone of the browser will be used. + * @return Formatted string or the input if input is not recognized as date/millis. + */ + (date: Date | number | string, format?: string, timezone?: string): string; + } + + interface IFilterJson { + /** + * Allows you to convert a JavaScript object into JSON string. + * @param object Any JavaScript object (including arrays and primitive types) to filter. + * @param spacing The number of spaces to use per indentation, defaults to 2. + * @return JSON string. + */ + (object: any, spacing?: number): string; + } + + interface IFilterLowercase { + /** + * Converts string to lowercase. + */ + (value: string): string; + } + + interface IFilterUppercase { + /** + * Converts string to uppercase. + */ + (value: string): string; + } + + interface IFilterLimitTo { + /** + * Creates a new array containing only a specified number of elements. The elements are taken from either the beginning or the end of the source array, string or number, as specified by the value and sign (positive or negative) of limit. + * @param input Source array to be limited. + * @param limit The length of the returned array. If the limit number is positive, limit number of items from the beginning of the source array/string are copied. If the number is negative, limit number of items from the end of the source array are copied. The limit will be trimmed if it exceeds array.length. If limit is undefined, the input will be returned unchanged. + * @param begin Index at which to begin limitation. As a negative index, begin indicates an offset from the end of input. Defaults to 0. + * @return A new sub-array of length limit or less if input array had less than limit elements. + */ + (input: T[], limit: string|number, begin?: string|number): T[]; + /** + * Creates a new string containing only a specified number of elements. The elements are taken from either the beginning or the end of the source string or number, as specified by the value and sign (positive or negative) of limit. If a number is used as input, it is converted to a string. + * @param input Source string or number to be limited. + * @param limit The length of the returned string. If the limit number is positive, limit number of items from the beginning of the source string are copied. If the number is negative, limit number of items from the end of the source string are copied. The limit will be trimmed if it exceeds input.length. If limit is undefined, the input will be returned unchanged. + * @param begin Index at which to begin limitation. As a negative index, begin indicates an offset from the end of input. Defaults to 0. + * @return A new substring of length limit or less if input had less than limit elements. + */ + (input: string|number, limit: string|number, begin?: string|number): string; + } + + interface IFilterOrderBy { + /** + * Orders a specified array by the expression predicate. It is ordered alphabetically for strings and numerically for numbers. Note: if you notice numbers are not being sorted as expected, make sure they are actually being saved as numbers and not strings. + * @param array The array to sort. + * @param expression A predicate to be used by the comparator to determine the order of elements. + * @param reverse Reverse the order of the array. + * @return Reverse the order of the array. + */ + (array: T[], expression: string|((value: T) => any)|(((value: T) => any)|string)[], reverse?: boolean): T[]; + } + + /** + * $filterProvider - $filter - provider in module ng + * + * Filters are just functions which transform input to an output. However filters need to be Dependency Injected. To achieve this a filter definition consists of a factory function which is annotated with dependencies and is responsible for creating a filter function. + * + * see https://docs.angularjs.org/api/ng/provider/$filterProvider + */ + interface IFilterProvider extends IServiceProvider { + /** + * register(name); + * + * @param name Name of the filter function, or an object map of filters where the keys are the filter names and the values are the filter factories. Note: Filter names must be valid angular Expressions identifiers, such as uppercase or orderBy. Names with special characters, such as hyphens and dots, are not allowed. If you wish to namespace your filters, then you can use capitalization (myappSubsectionFilterx) or underscores (myapp_subsection_filterx). + */ + register(name: string | {}): IServiceProvider; + } + + /////////////////////////////////////////////////////////////////////////// + // LocaleService + // see http://docs.angularjs.org/api/ng.$locale + /////////////////////////////////////////////////////////////////////////// + interface ILocaleService { + id: string; + + // These are not documented + // Check angular's i18n files for exemples + NUMBER_FORMATS: ILocaleNumberFormatDescriptor; + DATETIME_FORMATS: ILocaleDateTimeFormatDescriptor; + pluralCat: (num: any) => string; + } + + interface ILocaleNumberFormatDescriptor { + DECIMAL_SEP: string; + GROUP_SEP: string; + PATTERNS: ILocaleNumberPatternDescriptor[]; + CURRENCY_SYM: string; + } + + interface ILocaleNumberPatternDescriptor { + minInt: number; + minFrac: number; + maxFrac: number; + posPre: string; + posSuf: string; + negPre: string; + negSuf: string; + gSize: number; + lgSize: number; + } + + interface ILocaleDateTimeFormatDescriptor { + MONTH: string[]; + SHORTMONTH: string[]; + DAY: string[]; + SHORTDAY: string[]; + AMPMS: string[]; + medium: string; + short: string; + fullDate: string; + longDate: string; + mediumDate: string; + shortDate: string; + mediumTime: string; + shortTime: string; + } + + /////////////////////////////////////////////////////////////////////////// + // LogService + // see http://docs.angularjs.org/api/ng.$log + // see http://docs.angularjs.org/api/ng.$logProvider + /////////////////////////////////////////////////////////////////////////// + interface ILogService { + debug: ILogCall; + error: ILogCall; + info: ILogCall; + log: ILogCall; + warn: ILogCall; + } + + interface ILogProvider extends IServiceProvider { + debugEnabled(): boolean; + debugEnabled(enabled: boolean): ILogProvider; + } + + // We define this as separate interface so we can reopen it later for + // the ngMock module. + interface ILogCall { + (...args: any[]): void; + } + + /////////////////////////////////////////////////////////////////////////// + // ParseService + // see http://docs.angularjs.org/api/ng.$parse + // see http://docs.angularjs.org/api/ng.$parseProvider + /////////////////////////////////////////////////////////////////////////// + interface IParseService { + (expression: string): ICompiledExpression; + } + + interface IParseProvider { + logPromiseWarnings(): boolean; + logPromiseWarnings(value: boolean): IParseProvider; + + unwrapPromises(): boolean; + unwrapPromises(value: boolean): IParseProvider; + } + + interface ICompiledExpression { + (context: any, locals?: any): any; + + literal: boolean; + constant: boolean; + + // If value is not provided, undefined is gonna be used since the implementation + // does not check the parameter. Let's force a value for consistency. If consumer + // whants to undefine it, pass the undefined value explicitly. + assign(context: any, value: any): any; + } + + /** + * $location - $locationProvider - service in module ng + * see https://docs.angularjs.org/api/ng/service/$location + */ + interface ILocationService { + absUrl(): string; + hash(): string; + hash(newHash: string): ILocationService; + host(): string; + + /** + * Return path of current url + */ + path(): string; + + /** + * Change path when called with parameter and return $location. + * Note: Path should always begin with forward slash (/), this method will add the forward slash if it is missing. + * + * @param path New path + */ + path(path: string): ILocationService; + + port(): number; + protocol(): string; + replace(): ILocationService; + + /** + * Return search part (as object) of current url + */ + search(): any; + + /** + * Change search part when called with parameter and return $location. + * + * @param search When called with a single argument the method acts as a setter, setting the search component of $location to the specified value. + * + * If the argument is a hash object containing an array of values, these values will be encoded as duplicate search parameters in the url. + */ + search(search: any): ILocationService; + + /** + * Change search part when called with parameter and return $location. + * + * @param search New search params + * @param paramValue If search is a string or a Number, then paramValue will override only a single search property. If paramValue is null, the property specified via the first argument will be deleted. If paramValue is an array, it will override the property of the search component of $location specified via the first argument. If paramValue is true, the property specified via the first argument will be added with no value nor trailing equal sign. + */ + search(search: string, paramValue: string|number|string[]|boolean): ILocationService; + + state(): any; + state(state: any): ILocationService; + url(): string; + url(url: string): ILocationService; + } + + interface ILocationProvider extends IServiceProvider { + hashPrefix(): string; + hashPrefix(prefix: string): ILocationProvider; + html5Mode(): boolean; + + // Documentation states that parameter is string, but + // implementation tests it as boolean, which makes more sense + // since this is a toggler + html5Mode(active: boolean): ILocationProvider; + html5Mode(mode: { enabled?: boolean; requireBase?: boolean; rewriteLinks?: boolean; }): ILocationProvider; + } + + /////////////////////////////////////////////////////////////////////////// + // DocumentService + // see http://docs.angularjs.org/api/ng.$document + /////////////////////////////////////////////////////////////////////////// + interface IDocumentService extends IAugmentedJQuery {} + + /////////////////////////////////////////////////////////////////////////// + // ExceptionHandlerService + // see http://docs.angularjs.org/api/ng.$exceptionHandler + /////////////////////////////////////////////////////////////////////////// + interface IExceptionHandlerService { + (exception: Error, cause?: string): void; + } + + /////////////////////////////////////////////////////////////////////////// + // RootElementService + // see http://docs.angularjs.org/api/ng.$rootElement + /////////////////////////////////////////////////////////////////////////// + interface IRootElementService extends JQuery {} + + interface IQResolveReject { + (): void; + (value: T): void; + } + /** + * $q - service in module ng + * A promise/deferred implementation inspired by Kris Kowal's Q. + * See http://docs.angularjs.org/api/ng/service/$q + */ + interface IQService { + new (resolver: (resolve: IQResolveReject) => any): IPromise; + new (resolver: (resolve: IQResolveReject, reject: IQResolveReject) => any): IPromise; + (resolver: (resolve: IQResolveReject) => any): IPromise; + (resolver: (resolve: IQResolveReject, reject: IQResolveReject) => any): IPromise; + + /** + * Combines multiple promises into a single promise that is resolved when all of the input promises are resolved. + * + * Returns a single promise that will be resolved with an array of values, each value corresponding to the promise at the same index in the promises array. If any of the promises is resolved with a rejection, this resulting promise will be rejected with the same rejection value. + * + * @param promises An array of promises. + */ + all(promises: IPromise[]): IPromise; + /** + * Combines multiple promises into a single promise that is resolved when all of the input promises are resolved. + * + * Returns a single promise that will be resolved with a hash of values, each value corresponding to the promise at the same key in the promises hash. If any of the promises is resolved with a rejection, this resulting promise will be rejected with the same rejection value. + * + * @param promises A hash of promises. + */ + all(promises: { [id: string]: IPromise; }): IPromise<{ [id: string]: any; }>; + all(promises: { [id: string]: IPromise; }): IPromise; + /** + * Creates a Deferred object which represents a task which will finish in the future. + */ + defer(): IDeferred; + /** + * Creates a promise that is resolved as rejected with the specified reason. This api should be used to forward rejection in a chain of promises. If you are dealing with the last promise in a promise chain, you don't need to worry about it. + * + * When comparing deferreds/promises to the familiar behavior of try/catch/throw, think of reject as the throw keyword in JavaScript. This also means that if you "catch" an error via a promise error callback and you want to forward the error to the promise derived from the current promise, you have to "rethrow" the error by returning a rejection constructed via reject. + * + * @param reason Constant, message, exception or an object representing the rejection reason. + */ + reject(reason?: any): IPromise; + /** + * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted. + * + * @param value Value or a promise + */ + resolve(value: IPromise|T): IPromise; + /** + * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted. + */ + resolve(): IPromise; + /** + * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted. + * + * @param value Value or a promise + */ + when(value: IPromise|T): IPromise; + /** + * Wraps an object that might be a value or a (3rd party) then-able promise into a $q promise. This is useful when you are dealing with an object that might or might not be a promise, or if the promise comes from a source that can't be trusted. + */ + when(): IPromise; + } + + interface IPromise { + /** + * Regardless of when the promise was or will be resolved or rejected, then calls one of the success or error callbacks asynchronously as soon as the result is available. The callbacks are called with a single argument: the result or rejection reason. Additionally, the notify callback may be called zero or more times to provide a progress indication, before the promise is resolved or rejected. + * The successCallBack may return IPromise for when a $q.reject() needs to be returned + * This method returns a new promise which is resolved or rejected via the return value of the successCallback, errorCallback. It also notifies via the return value of the notifyCallback method. The promise can not be resolved or rejected from the notifyCallback method. + */ + then(successCallback: (promiseValue: T) => IPromise|TResult, errorCallback?: (reason: any) => any, notifyCallback?: (state: any) => any): IPromise; + + /** + * Shorthand for promise.then(null, errorCallback) + */ + catch(onRejected: (reason: any) => IPromise|TResult): IPromise; + + /** + * Allows you to observe either the fulfillment or rejection of a promise, but to do so without modifying the final value. This is useful to release resources or do some clean-up that needs to be done whether the promise was rejected or resolved. See the full specification for more information. + * + * Because finally is a reserved word in JavaScript and reserved keywords are not supported as property names by ES3, you'll need to invoke the method like promise['finally'](callback) to make your code IE8 and Android 2.x compatible. + */ + finally(finallyCallback: () => any): IPromise; + } + + interface IDeferred { + resolve(value?: T|IPromise): void; + reject(reason?: any): void; + notify(state?: any): void; + promise: IPromise; + } + + /////////////////////////////////////////////////////////////////////////// + // AnchorScrollService + // see http://docs.angularjs.org/api/ng.$anchorScroll + /////////////////////////////////////////////////////////////////////////// + interface IAnchorScrollService { + (): void; + (hash: string): void; + yOffset: any; + } + + interface IAnchorScrollProvider extends IServiceProvider { + disableAutoScrolling(): void; + } + + /** + * $cacheFactory - service in module ng + * + * Factory that constructs Cache objects and gives access to them. + * + * see https://docs.angularjs.org/api/ng/service/$cacheFactory + */ + interface ICacheFactoryService { + /** + * Factory that constructs Cache objects and gives access to them. + * + * @param cacheId Name or id of the newly created cache. + * @param optionsMap Options object that specifies the cache behavior. Properties: + * + * capacity — turns the cache into LRU cache. + */ + (cacheId: string, optionsMap?: { capacity?: number; }): ICacheObject; + + /** + * Get information about all the caches that have been created. + * @returns key-value map of cacheId to the result of calling cache#info + */ + info(): any; + + /** + * Get access to a cache object by the cacheId used when it was created. + * + * @param cacheId Name or id of a cache to access. + */ + get(cacheId: string): ICacheObject; + } + + /** + * $cacheFactory.Cache - type in module ng + * + * A cache object used to store and retrieve data, primarily used by $http and the script directive to cache templates and other data. + * + * see https://docs.angularjs.org/api/ng/type/$cacheFactory.Cache + */ + interface ICacheObject { + /** + * Retrieve information regarding a particular Cache. + */ + info(): { + /** + * the id of the cache instance + */ + id: string; + + /** + * the number of entries kept in the cache instance + */ + size: number; + + //...: any additional properties from the options object when creating the cache. + }; + + /** + * Inserts a named entry into the Cache object to be retrieved later, and incrementing the size of the cache if the key was not already present in the cache. If behaving like an LRU cache, it will also remove stale entries from the set. + * + * It will not insert undefined values into the cache. + * + * @param key the key under which the cached data is stored. + * @param value the value to store alongside the key. If it is undefined, the key will not be stored. + */ + put(key: string, value?: T): T; + + /** + * Retrieves named data stored in the Cache object. + * + * @param key the key of the data to be retrieved + */ + get(key: string): T; + + /** + * Removes an entry from the Cache object. + * + * @param key the key of the entry to be removed + */ + remove(key: string): void; + + /** + * Clears the cache object of any entries. + */ + removeAll(): void; + + /** + * Destroys the Cache object entirely, removing it from the $cacheFactory set. + */ + destroy(): void; + } + + /////////////////////////////////////////////////////////////////////////// + // CompileService + // see http://docs.angularjs.org/api/ng.$compile + // see http://docs.angularjs.org/api/ng.$compileProvider + /////////////////////////////////////////////////////////////////////////// + interface ICompileService { + (element: string, transclude?: ITranscludeFunction, maxPriority?: number): ITemplateLinkingFunction; + (element: Element, transclude?: ITranscludeFunction, maxPriority?: number): ITemplateLinkingFunction; + (element: JQuery, transclude?: ITranscludeFunction, maxPriority?: number): ITemplateLinkingFunction; + } + + interface ICompileProvider extends IServiceProvider { + directive(name: string, directiveFactory: Function): ICompileProvider; + + // Undocumented, but it is there... + directive(directivesMap: any): ICompileProvider; + + aHrefSanitizationWhitelist(): RegExp; + aHrefSanitizationWhitelist(regexp: RegExp): ICompileProvider; + + imgSrcSanitizationWhitelist(): RegExp; + imgSrcSanitizationWhitelist(regexp: RegExp): ICompileProvider; + + debugInfoEnabled(enabled?: boolean): any; + } + + interface ICloneAttachFunction { + // Let's hint but not force cloneAttachFn's signature + (clonedElement?: JQuery, scope?: IScope): any; + } + + // This corresponds to the "publicLinkFn" returned by $compile. + interface ITemplateLinkingFunction { + (scope: IScope, cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery; + } + + // This corresponds to $transclude (and also the transclude function passed to link). + interface ITranscludeFunction { + // If the scope is provided, then the cloneAttachFn must be as well. + (scope: IScope, cloneAttachFn: ICloneAttachFunction): IAugmentedJQuery; + // If one argument is provided, then it's assumed to be the cloneAttachFn. + (cloneAttachFn?: ICloneAttachFunction): IAugmentedJQuery; + } + + /////////////////////////////////////////////////////////////////////////// + // ControllerService + // see http://docs.angularjs.org/api/ng.$controller + // see http://docs.angularjs.org/api/ng.$controllerProvider + /////////////////////////////////////////////////////////////////////////// + interface IControllerService { + // Although the documentation doesn't state this, locals are optional + (controllerConstructor: new (...args: any[]) => T, locals?: any, bindToController?: any): T; + (controllerConstructor: Function, locals?: any, bindToController?: any): T; + (controllerName: string, locals?: any, bindToController?: any): T; + } + + interface IControllerProvider extends IServiceProvider { + register(name: string, controllerConstructor: Function): void; + register(name: string, dependencyAnnotatedConstructor: any[]): void; + allowGlobals(): void; + } + + /** + * HttpService + * see http://docs.angularjs.org/api/ng/service/$http + */ + interface IHttpService { + /** + * Object describing the request to be made and how it should be processed. + */ + (config: IRequestConfig): IHttpPromise; + + /** + * Shortcut method to perform GET request. + * + * @param url Relative or absolute URL specifying the destination of the request + * @param config Optional configuration object + */ + get(url: string, config?: IRequestShortcutConfig): IHttpPromise; + + /** + * Shortcut method to perform DELETE request. + * + * @param url Relative or absolute URL specifying the destination of the request + * @param config Optional configuration object + */ + delete(url: string, config?: IRequestShortcutConfig): IHttpPromise; + + /** + * Shortcut method to perform HEAD request. + * + * @param url Relative or absolute URL specifying the destination of the request + * @param config Optional configuration object + */ + head(url: string, config?: IRequestShortcutConfig): IHttpPromise; + + /** + * Shortcut method to perform JSONP request. + * + * @param url Relative or absolute URL specifying the destination of the request + * @param config Optional configuration object + */ + jsonp(url: string, config?: IRequestShortcutConfig): IHttpPromise; + + /** + * Shortcut method to perform POST request. + * + * @param url Relative or absolute URL specifying the destination of the request + * @param data Request content + * @param config Optional configuration object + */ + post(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise; + + /** + * Shortcut method to perform PUT request. + * + * @param url Relative or absolute URL specifying the destination of the request + * @param data Request content + * @param config Optional configuration object + */ + put(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise; + + /** + * Shortcut method to perform PATCH request. + * + * @param url Relative or absolute URL specifying the destination of the request + * @param data Request content + * @param config Optional configuration object + */ + patch(url: string, data: any, config?: IRequestShortcutConfig): IHttpPromise; + + /** + * Runtime equivalent of the $httpProvider.defaults property. Allows configuration of default headers, withCredentials as well as request and response transformations. + */ + defaults: IHttpProviderDefaults; + + /** + * Array of config objects for currently pending requests. This is primarily meant to be used for debugging purposes. + */ + pendingRequests: IRequestConfig[]; + } + + /** + * Object describing the request to be made and how it should be processed. + * see http://docs.angularjs.org/api/ng/service/$http#usage + */ + interface IRequestShortcutConfig extends IHttpProviderDefaults { + /** + * {Object.} + * Map of strings or objects which will be turned to ?key1=value1&key2=value2 after the url. If the value is not a string, it will be JSONified. + */ + params?: any; + + /** + * {string|Object} + * Data to be sent as the request message data. + */ + data?: any; + + /** + * Timeout in milliseconds, or promise that should abort the request when resolved. + */ + timeout?: number|IPromise; + + /** + * See [XMLHttpRequest.responseType]https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest#xmlhttprequest-responsetype + */ + responseType?: string; + } + + /** + * Object describing the request to be made and how it should be processed. + * see http://docs.angularjs.org/api/ng/service/$http#usage + */ + interface IRequestConfig extends IRequestShortcutConfig { + /** + * HTTP method (e.g. 'GET', 'POST', etc) + */ + method: string; + /** + * Absolute or relative URL of the resource that is being requested. + */ + url: string; + } + + interface IHttpHeadersGetter { + (): { [name: string]: string; }; + (headerName: string): string; + } + + interface IHttpPromiseCallback { + (data: T, status: number, headers: IHttpHeadersGetter, config: IRequestConfig): void; + } + + interface IHttpPromiseCallbackArg { + data?: T; + status?: number; + headers?: IHttpHeadersGetter; + config?: IRequestConfig; + statusText?: string; + } + + interface IHttpPromise extends IPromise> { + success(callback: IHttpPromiseCallback): IHttpPromise; + error(callback: IHttpPromiseCallback): IHttpPromise; + } + + // See the jsdoc for transformData() at https://github.com/angular/angular.js/blob/master/src/ng/http.js#L228 + interface IHttpRequestTransformer { + (data: any, headersGetter: IHttpHeadersGetter): any; + } + + // The definition of fields are the same as IHttpPromiseCallbackArg + interface IHttpResponseTransformer { + (data: any, headersGetter: IHttpHeadersGetter, status: number): any; + } + + interface IHttpRequestConfigHeaders { + [requestType: string]: string|(() => string); + common?: string|(() => string); + get?: string|(() => string); + post?: string|(() => string); + put?: string|(() => string); + patch?: string|(() => string); + } + + /** + * Object that controls the defaults for $http provider. Not all fields of IRequestShortcutConfig can be configured + * via defaults and the docs do not say which. The following is based on the inspection of the source code. + * https://docs.angularjs.org/api/ng/service/$http#defaults + * https://docs.angularjs.org/api/ng/service/$http#usage + * https://docs.angularjs.org/api/ng/provider/$httpProvider The properties section + */ + interface IHttpProviderDefaults { + /** + * {boolean|Cache} + * If true, a default $http cache will be used to cache the GET request, otherwise if a cache instance built with $cacheFactory, this cache will be used for caching. + */ + cache?: any; + + /** + * Transform function or an array of such functions. The transform function takes the http request body and + * headers and returns its transformed (typically serialized) version. + * @see {@link https://docs.angularjs.org/api/ng/service/$http#transforming-requests-and-responses} + */ + transformRequest?: IHttpRequestTransformer |IHttpRequestTransformer[]; + + /** + * Transform function or an array of such functions. The transform function takes the http response body and + * headers and returns its transformed (typically deserialized) version. + */ + transformResponse?: IHttpResponseTransformer | IHttpResponseTransformer[]; + + /** + * Map of strings or functions which return strings representing HTTP headers to send to the server. If the + * return value of a function is null, the header will not be sent. + * The key of the map is the request verb in lower case. The "common" key applies to all requests. + * @see {@link https://docs.angularjs.org/api/ng/service/$http#setting-http-headers} + */ + headers?: IHttpRequestConfigHeaders; + + /** Name of HTTP header to populate with the XSRF token. */ + xsrfHeaderName?: string; + + /** Name of cookie containing the XSRF token. */ + xsrfCookieName?: string; + + /** + * whether to to set the withCredentials flag on the XHR object. See [requests with credentials]https://developer.mozilla.org/en/http_access_control#section_5 for more information. + */ + withCredentials?: boolean; + + /** + * A function used to the prepare string representation of request parameters (specified as an object). If + * specified as string, it is interpreted as a function registered with the $injector. Defaults to + * $httpParamSerializer. + */ + paramSerializer?: string | ((obj: any) => string); + } + + interface IHttpInterceptor { + request?: (config: IRequestConfig) => IRequestConfig|IPromise; + requestError?: (rejection: any) => any; + response?: (response: IHttpPromiseCallbackArg) => IPromise|T; + responseError?: (rejection: any) => any; + } + + interface IHttpInterceptorFactory { + (...args: any[]): IHttpInterceptor; + } + + interface IHttpProvider extends IServiceProvider { + defaults: IHttpProviderDefaults; + + /** + * Register service factories (names or implementations) for interceptors which are called before and after + * each request. + */ + interceptors: (string|IHttpInterceptorFactory|(string|IHttpInterceptorFactory)[])[]; + useApplyAsync(): boolean; + useApplyAsync(value: boolean): IHttpProvider; + + /** + * + * @param {boolean=} value If true, `$http` will return a normal promise without the `success` and `error` methods. + * @returns {boolean|Object} If a value is specified, returns the $httpProvider for chaining. + * otherwise, returns the current configured value. + */ + useLegacyPromiseExtensions(value:boolean) : boolean | IHttpProvider; + } + + /////////////////////////////////////////////////////////////////////////// + // HttpBackendService + // see http://docs.angularjs.org/api/ng.$httpBackend + // You should never need to use this service directly. + /////////////////////////////////////////////////////////////////////////// + interface IHttpBackendService { + // XXX Perhaps define callback signature in the future + (method: string, url: string, post?: any, callback?: Function, headers?: any, timeout?: number, withCredentials?: boolean): void; + } + + /////////////////////////////////////////////////////////////////////////// + // InterpolateService + // see http://docs.angularjs.org/api/ng.$interpolate + // see http://docs.angularjs.org/api/ng.$interpolateProvider + /////////////////////////////////////////////////////////////////////////// + interface IInterpolateService { + (text: string, mustHaveExpression?: boolean, trustedContext?: string, allOrNothing?: boolean): IInterpolationFunction; + endSymbol(): string; + startSymbol(): string; + } + + interface IInterpolationFunction { + (context: any): string; + } + + interface IInterpolateProvider extends IServiceProvider { + startSymbol(): string; + startSymbol(value: string): IInterpolateProvider; + endSymbol(): string; + endSymbol(value: string): IInterpolateProvider; + } + + /////////////////////////////////////////////////////////////////////////// + // TemplateCacheService + // see http://docs.angularjs.org/api/ng.$templateCache + /////////////////////////////////////////////////////////////////////////// + interface ITemplateCacheService extends ICacheObject {} + + /////////////////////////////////////////////////////////////////////////// + // SCEService + // see http://docs.angularjs.org/api/ng.$sce + /////////////////////////////////////////////////////////////////////////// + interface ISCEService { + getTrusted(type: string, mayBeTrusted: any): any; + getTrustedCss(value: any): any; + getTrustedHtml(value: any): any; + getTrustedJs(value: any): any; + getTrustedResourceUrl(value: any): any; + getTrustedUrl(value: any): any; + parse(type: string, expression: string): (context: any, locals: any) => any; + parseAsCss(expression: string): (context: any, locals: any) => any; + parseAsHtml(expression: string): (context: any, locals: any) => any; + parseAsJs(expression: string): (context: any, locals: any) => any; + parseAsResourceUrl(expression: string): (context: any, locals: any) => any; + parseAsUrl(expression: string): (context: any, locals: any) => any; + trustAs(type: string, value: any): any; + trustAsHtml(value: any): any; + trustAsJs(value: any): any; + trustAsResourceUrl(value: any): any; + trustAsUrl(value: any): any; + isEnabled(): boolean; + } + + /////////////////////////////////////////////////////////////////////////// + // SCEProvider + // see http://docs.angularjs.org/api/ng.$sceProvider + /////////////////////////////////////////////////////////////////////////// + interface ISCEProvider extends IServiceProvider { + enabled(value: boolean): void; + } + + /////////////////////////////////////////////////////////////////////////// + // SCEDelegateService + // see http://docs.angularjs.org/api/ng.$sceDelegate + /////////////////////////////////////////////////////////////////////////// + interface ISCEDelegateService { + getTrusted(type: string, mayBeTrusted: any): any; + trustAs(type: string, value: any): any; + valueOf(value: any): any; + } + + + /////////////////////////////////////////////////////////////////////////// + // SCEDelegateProvider + // see http://docs.angularjs.org/api/ng.$sceDelegateProvider + /////////////////////////////////////////////////////////////////////////// + interface ISCEDelegateProvider extends IServiceProvider { + resourceUrlBlacklist(blacklist: any[]): void; + resourceUrlWhitelist(whitelist: any[]): void; + resourceUrlBlacklist(): any[]; + resourceUrlWhitelist(): any[]; + } + + /** + * $templateRequest service + * see http://docs.angularjs.org/api/ng/service/$templateRequest + */ + interface ITemplateRequestService { + /** + * Downloads a template using $http and, upon success, stores the + * contents inside of $templateCache. + * + * If the HTTP request fails or the response data of the HTTP request is + * empty then a $compile error will be thrown (unless + * {ignoreRequestError} is set to true). + * + * @param tpl The template URL. + * @param ignoreRequestError Whether or not to ignore the exception + * when the request fails or the template is + * empty. + * + * @return A promise whose value is the template content. + */ + (tpl: string, ignoreRequestError?: boolean): IPromise; + /** + * total amount of pending template requests being downloaded. + * @type {number} + */ + totalPendingRequests: number; + } + + /////////////////////////////////////////////////////////////////////////// + // Component + // see http://angularjs.blogspot.com.br/2015/11/angularjs-15-beta2-and-14-releases.html + // and http://toddmotto.com/exploring-the-angular-1-5-component-method/ + /////////////////////////////////////////////////////////////////////////// + /** + * Runtime representation a type that a Component or other object is instances of. + * + * An example of a `Type` is `MyCustomComponent` class, which in JavaScript is be represented by + * the `MyCustomComponent` constructor function. + */ + interface Type extends Function { + } + + /** + * `RouteDefinition` defines a route within a {@link RouteConfig} decorator. + * + * Supported keys: + * - `path` or `aux` (requires exactly one of these) + * - `component`, `loader`, `redirectTo` (requires exactly one of these) + * - `name` or `as` (optional) (requires exactly one of these) + * - `data` (optional) + * + * See also {@link Route}, {@link AsyncRoute}, {@link AuxRoute}, and {@link Redirect}. + */ + interface RouteDefinition { + path?: string; + aux?: string; + component?: Type | ComponentDefinition | string; + loader?: Function; + redirectTo?: any[]; + as?: string; + name?: string; + data?: any; + useAsDefault?: boolean; + } + + /** + * Represents either a component type (`type` is `component`) or a loader function + * (`type` is `loader`). + * + * See also {@link RouteDefinition}. + */ + interface ComponentDefinition { + type: string; + loader?: Function; + component?: Type; + } + + /** + * Component definition object (a simplified directive definition object) + */ + interface IComponentOptions { + /** + * Controller constructor function that should be associated with newly created scope or the name of a registered + * controller if passed as a string. Empty function by default. + */ + controller?: any; + /** + * An identifier name for a reference to the controller. If present, the controller will be published to scope under + * the controllerAs name. If not present, this will default to be the same as the component name. + */ + controllerAs?: string; + /** + * html template as a string or a function that returns an html template as a string which should be used as the + * contents of this component. Empty string by default. + * If template is a function, then it is injected with the following locals: + * $element - Current element + * $attrs - Current attributes object for the element + */ + template?: string | Function; + /** + * path or function that returns a path to an html template that should be used as the contents of this component. + * If templateUrl is a function, then it is injected with the following locals: + * $element - Current element + * $attrs - Current attributes object for the element + */ + templateUrl?: string | Function; + /** + * Define DOM attribute binding to component properties. Component properties are always bound to the component + * controller and not to the scope. + */ + bindings?: any; + /** + * Whether transclusion is enabled. Enabled by default. + */ + transclude?: boolean; + require? : Object; + $canActivate?: () => boolean; + $routeConfig?: RouteDefinition[]; + } + + interface IComponentTemplateFn { + ( $element?: IAugmentedJQuery, $attrs?: IAttributes ): string; + } + + /////////////////////////////////////////////////////////////////////////// + // Directive + // see http://docs.angularjs.org/api/ng.$compileProvider#directive + // and http://docs.angularjs.org/guide/directive + /////////////////////////////////////////////////////////////////////////// + + interface IDirectiveFactory { + (...args: any[]): IDirective; + } + + interface IDirectiveLinkFn { + ( + scope: IScope, + instanceElement: IAugmentedJQuery, + instanceAttributes: IAttributes, + controller: {}, + transclude: ITranscludeFunction + ): void; + } + + interface IDirectivePrePost { + pre?: IDirectiveLinkFn; + post?: IDirectiveLinkFn; + } + + interface IDirectiveCompileFn { + ( + templateElement: IAugmentedJQuery, + templateAttributes: IAttributes, + transclude: ITranscludeFunction + ): IDirectivePrePost; + } + + interface IDirective { + compile?: IDirectiveCompileFn; + controller?: any; + controllerAs?: string; + bindToController?: boolean|Object; + link?: IDirectiveLinkFn | IDirectivePrePost; + name?: string; + priority?: number; + replace?: boolean; + require? : any; + restrict?: string; + scope?: any; + template?: string | Function; + templateNamespace?: string; + templateUrl?: string | Function; + terminal?: boolean; + transclude?: any; + } + + /** + * angular.element + * when calling angular.element, angular returns a jQuery object, + * augmented with additional methods like e.g. scope. + * see: http://docs.angularjs.org/api/angular.element + */ + interface IAugmentedJQueryStatic extends JQueryStatic { + (selector: string, context?: any): IAugmentedJQuery; + (element: Element): IAugmentedJQuery; + (object: {}): IAugmentedJQuery; + (elementArray: Element[]): IAugmentedJQuery; + (object: JQuery): IAugmentedJQuery; + (func: Function): IAugmentedJQuery; + (array: any[]): IAugmentedJQuery; + (): IAugmentedJQuery; + } + + interface IAugmentedJQuery extends JQuery { + // TODO: events, how to define? + //$destroy + + find(selector: string): IAugmentedJQuery; + find(element: any): IAugmentedJQuery; + find(obj: JQuery): IAugmentedJQuery; + controller(): any; + controller(name: string): any; + injector(): any; + scope(): IScope; + isolateScope(): IScope; + + inheritedData(key: string, value: any): JQuery; + inheritedData(obj: { [key: string]: any; }): JQuery; + inheritedData(key?: string): any; + } + + /////////////////////////////////////////////////////////////////////////// + // AUTO module (angular.js) + /////////////////////////////////////////////////////////////////////////// + export module auto { + + /////////////////////////////////////////////////////////////////////// + // InjectorService + // see http://docs.angularjs.org/api/AUTO.$injector + /////////////////////////////////////////////////////////////////////// + interface IInjectorService { + annotate(fn: Function): string[]; + annotate(inlineAnnotatedFunction: any[]): string[]; + get(name: string, caller?: string): T; + has(name: string): boolean; + instantiate(typeConstructor: Function, locals?: any): T; + invoke(inlineAnnotatedFunction: any[]): any; + invoke(func: Function, context?: any, locals?: any): any; + } + + /////////////////////////////////////////////////////////////////////// + // ProvideService + // see http://docs.angularjs.org/api/AUTO.$provide + /////////////////////////////////////////////////////////////////////// + interface IProvideService { + // Documentation says it returns the registered instance, but actual + // implementation does not return anything. + // constant(name: string, value: any): any; + /** + * Register a constant service, such as a string, a number, an array, an object or a function, with the $injector. Unlike value it can be injected into a module configuration function (see config) and it cannot be overridden by an Angular decorator. + * + * @param name The name of the constant. + * @param value The constant value. + */ + constant(name: string, value: any): void; + + /** + * Register a service decorator with the $injector. A service decorator intercepts the creation of a service, allowing it to override or modify the behaviour of the service. The object returned by the decorator may be the original service, or a new service object which replaces or wraps and delegates to the original service. + * + * @param name The name of the service to decorate. + * @param decorator This function will be invoked when the service needs to be instantiated and should return the decorated service instance. The function is called using the injector.invoke method and is therefore fully injectable. Local injection arguments: + * + * $delegate - The original service instance, which can be monkey patched, configured, decorated or delegated to. + */ + decorator(name: string, decorator: Function): void; + /** + * Register a service decorator with the $injector. A service decorator intercepts the creation of a service, allowing it to override or modify the behaviour of the service. The object returned by the decorator may be the original service, or a new service object which replaces or wraps and delegates to the original service. + * + * @param name The name of the service to decorate. + * @param inlineAnnotatedFunction This function will be invoked when the service needs to be instantiated and should return the decorated service instance. The function is called using the injector.invoke method and is therefore fully injectable. Local injection arguments: + * + * $delegate - The original service instance, which can be monkey patched, configured, decorated or delegated to. + */ + decorator(name: string, inlineAnnotatedFunction: any[]): void; + factory(name: string, serviceFactoryFunction: Function): IServiceProvider; + factory(name: string, inlineAnnotatedFunction: any[]): IServiceProvider; + provider(name: string, provider: IServiceProvider): IServiceProvider; + provider(name: string, serviceProviderConstructor: Function): IServiceProvider; + service(name: string, constructor: Function): IServiceProvider; + service(name: string, inlineAnnotatedFunction: any[]): IServiceProvider; + value(name: string, value: any): IServiceProvider; + } + + } +} diff --git a/angularjs/legacy/angular-animate-1.2.d.ts b/angularjs/legacy/angular-animate-1.2.d.ts index 307e50760c..f4928bd0ca 100644 --- a/angularjs/legacy/angular-animate-1.2.d.ts +++ b/angularjs/legacy/angular-animate-1.2.d.ts @@ -1,14 +1,14 @@ // Type definitions for Angular JS 1.2 (ngAnimate module) // Project: http://angularjs.org // Definitions by: Michel Salib , Adi Dahiya -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /////////////////////////////////////////////////////////////////////////////// // ngAnimate module (angular-animate.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng.animate { +declare namespace ng.animate { /////////////////////////////////////////////////////////////////////////// // AnimateService diff --git a/angularjs/legacy/angular-animate-1.3.d.ts b/angularjs/legacy/angular-animate-1.3.d.ts new file mode 100644 index 0000000000..c689203ff3 --- /dev/null +++ b/angularjs/legacy/angular-animate-1.3.d.ts @@ -0,0 +1,261 @@ +// Type definitions for Angular JS 1.3 (ngAnimate module) +// Project: http://angularjs.org +// Definitions by: Michel Salib , Adi Dahiya , Raphael Schweizer , Cody Schaaf +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "angular-animate" { + var _: string; + export = _; +} + +/** + * ngAnimate module (angular-animate.js) + */ +declare namespace angular.animate { + interface IAnimateFactory extends Function { + enter?: (element: ng.IAugmentedJQuery, doneFn: Function) => IAnimateCssRunner|void; + leave?: (element: ng.IAugmentedJQuery, doneFn: Function) => IAnimateCssRunner|void; + addClass?: (element: ng.IAugmentedJQuery, className: string, doneFn: Function) => IAnimateCssRunner|void; + removeClass?: (element: ng.IAugmentedJQuery, className: string, doneFn: Function) => IAnimateCssRunner|void; + setClass?: (element: ng.IAugmentedJQuery, className: string, doneFn: Function) => IAnimateCssRunner|void; + } + + /** + * AnimateService + * see http://docs.angularjs.org/api/ngAnimate/service/$animate + */ + interface IAnimateService { + /** + * Globally enables / disables animations. + * + * @param element If provided then the element will be used to represent the enable/disable operation. + * @param value If provided then set the animation on or off. + * @returns current animation state + */ + enabled(element?: JQuery, value?: boolean): boolean; + + /** + * Performs an inline animation on the element. + * + * @param element the element that will be the focus of the animation + * @param from a collection of CSS styles that will be applied to the element at the start of the animation + * @param to a collection of CSS styles that the element will animate towards + * @param className an optional CSS class that will be added to the element for the duration of the animation (the default class is 'ng-inline-animate') + * @param options an optional collection of styles that will be picked up by the CSS transition/animation + * @returns the animation callback promise + */ + animate(element: JQuery, from: any, to: any, className?: string, options?: IAnimationOptions): IPromise; + + /** + * Appends the element to the parentElement element that resides in the document and then runs the enter animation. + * + * @param element the element that will be the focus of the enter animation + * @param parentElement the parent element of the element that will be the focus of the enter animation + * @param afterElement the sibling element (which is the previous element) of the element that will be the focus of the enter animation + * @param options an optional collection of styles that will be picked up by the CSS transition/animation + * @returns the animation callback promise + */ + enter(element: JQuery, parentElement: JQuery, afterElement?: JQuery, options?: IAnimationOptions): IPromise; + + /** + * Runs the leave animation operation and, upon completion, removes the element from the DOM. + * + * @param element the element that will be the focus of the leave animation + * @param options an optional collection of styles that will be picked up by the CSS transition/animation + * @returns the animation callback promise + */ + leave(element: JQuery, options?: IAnimationOptions): IPromise; + + /** + * Fires the move DOM operation. Just before the animation starts, the animate service will either append + * it into the parentElement container or add the element directly after the afterElement element if present. + * Then the move animation will be run. + * + * @param element the element that will be the focus of the move animation + * @param parentElement the parent element of the element that will be the focus of the move animation + * @param afterElement the sibling element (which is the previous element) of the element that will be the focus of the move animation + * @returns the animation callback promise + */ + move(element: JQuery, parentElement: JQuery, afterElement?: JQuery): IPromise; + + /** + * Triggers a custom animation event based off the className variable and then attaches the className + * value to the element as a CSS class. + * + * @param element the element that will be animated + * @param className the CSS class that will be added to the element and then animated + * @param options an optional collection of styles that will be picked up by the CSS transition/animation + * @returns the animation callback promise + */ + addClass(element: JQuery, className: string, options?: IAnimationOptions): IPromise; + + /** + * Triggers a custom animation event based off the className variable and then removes the CSS class + * provided by the className value from the element. + * + * @param element the element that will be animated + * @param className the CSS class that will be animated and then removed from the element + * @param options an optional collection of styles that will be picked up by the CSS transition/animation + * @returns the animation callback promise + */ + removeClass(element: JQuery, className: string, options?: IAnimationOptions): IPromise; + + /** + * Adds and/or removes the given CSS classes to and from the element. Once complete, the done() callback + * will be fired (if provided). + * + * @param element the element which will have its CSS classes changed removed from it + * @param add the CSS classes which will be added to the element + * @param remove the CSS class which will be removed from the element CSS classes have been set on the element + * @param options an optional collection of styles that will be picked up by the CSS transition/animation + * @returns the animation callback promise + */ + setClass(element: JQuery, add: string, remove: string, options?: IAnimationOptions): IPromise; + + /** + * Cancels the provided animation. + */ + cancel(animationPromise: IPromise): void; + } + + /** + * AnimateProvider + * see http://docs.angularjs.org/api/ngAnimate/provider/$animateProvider + */ + interface IAnimateProvider { + /** + * Registers a new injectable animation factory function. + * + * @param name The name of the animation. + * @param factory The factory function that will be executed to return the animation object. + */ + register(name: string, factory: () => IAnimateCallbackObject): void; + + /** + * Gets and/or sets the CSS class expression that is checked when performing an animation. + * + * @param expression The className expression which will be checked against all animations. + * @returns The current CSS className expression value. If null then there is no expression value. + */ + classNameFilter(expression?: RegExp): RegExp; + } + + /** + * Angular Animation Options + * see https://docs.angularjs.org/api/ngAnimate/#applying-directive-specific-styles-to-an-animation + */ + interface IAnimationOptions { + /** + * The ending CSS styles (a key/value object) that will be applied across the animation via a CSS transition. + */ + to?: Object; + + /** + * The starting CSS styles (a key/value object) that will be applied at the start of the animation. + */ + from?: Object; + + /** + * The DOM event (e.g. enter, leave, move). When used, a generated CSS class of ng-EVENT and + * ng-EVENT-active will be applied to the element during the animation. Multiple events can be provided when + * spaces are used as a separator. (Note that this will not perform any DOM operation.) + */ + event?: string; + + /** + * The CSS easing value that will be applied to the transition or keyframe animation (or both). + */ + easing?: string; + + /** + * The raw CSS transition style that will be used (e.g. 1s linear all). + */ + transition?: string; + + /** + * The raw CSS keyframe animation style that will be used (e.g. 1s my_animation linear). + */ + keyframe?: string; + + /** + * A space separated list of CSS classes that will be added to the element and spread across the animation. + */ + addClass?: string; + + /** + * A space separated list of CSS classes that will be removed from the element and spread across + * the animation. + */ + removeClass?: string; + + /** + * A number value representing the total duration of the transition and/or keyframe (note that a value + * of 1 is 1000ms). If a value of 0 is provided then the animation will be skipped entirely. + */ + duration?: number; + + /** + * A number value representing the total delay of the transition and/or keyframe (note that a value of + * 1 is 1000ms). If a value of true is used then whatever delay value is detected from the CSS classes will be + * mirrored on the elements styles (e.g. by setting delay true then the style value of the element will be + * transition-delay: DETECTED_VALUE). Using true is useful when you want the CSS classes and inline styles to + * all share the same CSS delay value. + */ + delay?: number; + + /** + * A numeric time value representing the delay between successively animated elements (Click here to + * learn how CSS-based staggering works in ngAnimate.) + */ + stagger?: number; + + /** + * The numeric index representing the stagger item (e.g. a value of 5 is equal to the sixth item + * in the stagger; therefore when a stagger option value of 0.1 is used then there will be a stagger delay of 600ms) + * applyClassesEarly - Whether or not the classes being added or removed will be used when detecting the animation. + * This is set by $animate when enter/leave/move animations are fired to ensure that the CSS classes are resolved in time. + * (Note that this will prevent any transitions from occuring on the classes being added and removed.) + */ + staggerIndex?: number; + } + + interface IAnimateCssRunner { + /** + * Starts the animation + * + * @returns The animation runner with a done function for supplying a callback. + */ + start(): IAnimateCssRunnerStart; + + /** + * Ends (aborts) the animation + */ + end(): void; + } + + interface IAnimateCssRunnerStart extends IPromise { + /** + * Allows you to add done callbacks to the running animation + * + * @param callbackFn: the callback function to be run + */ + done(callbackFn: (animationFinished: boolean) => void): void; + } + + /** + * AnimateCssService + * see http://docs.angularjs.org/api/ngAnimate/service/$animateCss + */ + interface IAnimateCssService { + (element: JQuery, animateCssOptions: IAnimationOptions): IAnimateCssRunner; + } + +} + +declare namespace angular { + interface IModule { + animate(cssSelector: string, animateFactory: angular.animate.IAnimateFactory): IModule; + } +} diff --git a/angularjs/legacy/angular-cookies-1.0.d.ts b/angularjs/legacy/angular-cookies-1.0.d.ts index 546affdea1..0b53de186b 100644 --- a/angularjs/legacy/angular-cookies-1.0.d.ts +++ b/angularjs/legacy/angular-cookies-1.0.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.0 (ngCookies module) // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -9,7 +9,7 @@ /////////////////////////////////////////////////////////////////////////////// // ngCookies module (angular-cookies.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng.cookies { +declare namespace ng.cookies { /////////////////////////////////////////////////////////////////////////// // CookieService diff --git a/angularjs/legacy/angular-cookies-1.2.d.ts b/angularjs/legacy/angular-cookies-1.2.d.ts index c5ff512e84..aaf08327e2 100644 --- a/angularjs/legacy/angular-cookies-1.2.d.ts +++ b/angularjs/legacy/angular-cookies-1.2.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.2 (ngCookies module) // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -9,7 +9,7 @@ /////////////////////////////////////////////////////////////////////////////// // ngCookies module (angular-cookies.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng.cookies { +declare namespace ng.cookies { /////////////////////////////////////////////////////////////////////////// // CookieService diff --git a/angularjs/legacy/angular-mocks-1.0.d.ts b/angularjs/legacy/angular-mocks-1.0.d.ts index 56f78092ae..340f58e3c6 100644 --- a/angularjs/legacy/angular-mocks-1.0.d.ts +++ b/angularjs/legacy/angular-mocks-1.0.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.0 (ngMock, ngMockE2E module) // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -15,7 +15,7 @@ declare var inject: (...fns: Function[]) => any; /////////////////////////////////////////////////////////////////////////////// // ngMock module (angular-mocks.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng { +declare namespace ng { /////////////////////////////////////////////////////////////////////////// // AngularStatic @@ -28,10 +28,10 @@ declare module ng { interface IMockStatic { // see http://docs.angularjs.org/api/angular.mock.debug debug(obj: any): string; - + // see http://docs.angularjs.org/api/angular.mock.inject inject(...fns: Function[]): any; - + // see http://docs.angularjs.org/api/angular.mock.module module(...modules: any[]): any; @@ -85,8 +85,8 @@ declare module ng { expect(method: string, url: string, data?: any, headers?: any): mock.IRequestHandler; expect(method: string, url: RegExp, data?: any, headers?: any): mock.IRequestHandler; expect(method: RegExp, url: string, data?: any, headers?: any): mock.IRequestHandler; - expect(method: RegExp, url: RegExp, data?: any, headers?: any): mock.IRequestHandler; - + expect(method: RegExp, url: RegExp, data?: any, headers?: any): mock.IRequestHandler; + when(method: string, url: string, data?: string, headers?: any): mock.IRequestHandler; when(method: string, url: RegExp, data?: string, headers?: any): mock.IRequestHandler; when(method: string, url: string, data?: RegExp, headers?: any): mock.IRequestHandler; @@ -94,8 +94,8 @@ declare module ng { when(method: RegExp, url: string, data?: string, headers?: any): mock.IRequestHandler; when(method: RegExp, url: RegExp, data?: string, headers?: any): mock.IRequestHandler; when(method: RegExp, url: string, data?: RegExp, headers?: any): mock.IRequestHandler; - when(method: RegExp, url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler; - + when(method: RegExp, url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler; + expectDELETE(url: string, headers?: any): mock.IRequestHandler; expectDELETE(url: RegExp, headers?: any): mock.IRequestHandler; expectGET(url: string, headers?: any): mock.IRequestHandler; @@ -131,13 +131,13 @@ declare module ng { whenPUT(url: RegExp, data?: string, headers?: any): mock.IRequestHandler; whenPUT(url: string, data?: RegExp, headers?: any): mock.IRequestHandler; whenPUT(url: RegExp, data?: RegExp, headers?: any): mock.IRequestHandler; - } + } export module mock { - + // returned interface by the the mocked HttpBackendService expect/when methods interface IRequestHandler { - respond(func: Function): void; + respond(func: Function): void; respond(status: number, data?: any, headers?: any): void; respond(data: any, headers?: any): void; @@ -145,6 +145,6 @@ declare module ng { passThrough(): void; } - } + } } diff --git a/angularjs/legacy/angular-mocks-1.2.d.ts b/angularjs/legacy/angular-mocks-1.2.d.ts index e9b0dc8d24..2a1ce25196 100644 --- a/angularjs/legacy/angular-mocks-1.2.d.ts +++ b/angularjs/legacy/angular-mocks-1.2.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.2 (ngMock, ngMockE2E module) // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -14,7 +14,7 @@ declare var inject: (...fns: Function[]) => any; /////////////////////////////////////////////////////////////////////////////// // ngMock module (angular-mocks.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng { +declare namespace ng { /////////////////////////////////////////////////////////////////////////// // AngularStatic @@ -59,7 +59,7 @@ declare module ng { flushNext(expectedDelay?: number): void; verifyNoPendingTasks(): void; } - + /////////////////////////////////////////////////////////////////////////// // IntervalService // see https://code.angularjs.org/1.2.26/docs/api/ngMock/service/$interval diff --git a/angularjs/legacy/angular-resource-1.0.d.ts b/angularjs/legacy/angular-resource-1.0.d.ts index 82537928b1..07f5f7e0ff 100644 --- a/angularjs/legacy/angular-resource-1.0.d.ts +++ b/angularjs/legacy/angular-resource-1.0.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.0 (ngResource module) // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -9,7 +9,7 @@ /////////////////////////////////////////////////////////////////////////////// // ngResource module (angular-resource.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng.resource { +declare namespace ng.resource { /////////////////////////////////////////////////////////////////////////// // ResourceService @@ -20,7 +20,7 @@ declare module ng.resource { /////////////////////////////////////////////////////////////////////////// interface IResourceService { (url: string, paramDefaults?: any, - /** example: {update: { method: 'PUT' }, delete: deleteDescriptor } + /** example: {update: { method: 'PUT' }, delete: deleteDescriptor } where deleteDescriptor : IActionDescriptor */ actionDescriptors?: any): IResourceClass; } @@ -73,7 +73,7 @@ declare module ng.resource { } /** extensions to base ng based on using angular-resource */ -declare module ng { +declare namespace ng { interface IModule { /** creating a resource service factory */ diff --git a/angularjs/legacy/angular-resource-1.2.d.ts b/angularjs/legacy/angular-resource-1.2.d.ts index f3c3fbe65c..b0ccb5e7e6 100644 --- a/angularjs/legacy/angular-resource-1.2.d.ts +++ b/angularjs/legacy/angular-resource-1.2.d.ts @@ -9,7 +9,7 @@ /////////////////////////////////////////////////////////////////////////////// // ngResource module (angular-resource.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng.resource { +declare namespace ng.resource { /////////////////////////////////////////////////////////////////////////// // ResourceService @@ -136,7 +136,7 @@ declare module ng.resource { } /** extensions to base ng based on using angular-resource */ -declare module ng { +declare namespace ng { interface IModule { /** creating a resource service factory */ diff --git a/angularjs/legacy/angular-resource-1.3.d.ts b/angularjs/legacy/angular-resource-1.3.d.ts new file mode 100644 index 0000000000..798bc0a581 --- /dev/null +++ b/angularjs/legacy/angular-resource-1.3.d.ts @@ -0,0 +1,185 @@ +// Type definitions for Angular JS 1.3 (ngResource module) +// Project: http://angularjs.org +// Definitions by: Diego Vilar , Michael Jess +// Definitions: https://github.com/daptiv/DefinitelyTyped + +/// + +declare module 'angular-resource' { + var _: string; + export = _; +} + +/////////////////////////////////////////////////////////////////////////////// +// ngResource module (angular-resource.js) +/////////////////////////////////////////////////////////////////////////////// +declare namespace angular.resource { + + /** + * Currently supported options for the $resource factory options argument. + */ + interface IResourceOptions { + /** + * If true then the trailing slashes from any calculated URL will be stripped (defaults to true) + */ + stripTrailingSlashes?: boolean; + } + + + /////////////////////////////////////////////////////////////////////////// + // ResourceService + // see http://docs.angularjs.org/api/ngResource.$resource + // Most part of the following definitions were achieved by analyzing the + // actual implementation, since the documentation doesn't seem to cover + // that deeply. + /////////////////////////////////////////////////////////////////////////// + interface IResourceService { + (url: string, paramDefaults?: any, + /** example: {update: { method: 'PUT' }, delete: deleteDescriptor } + where deleteDescriptor : IActionDescriptor */ + actions?: any, options?: IResourceOptions): IResourceClass>; + (url: string, paramDefaults?: any, + /** example: {update: { method: 'PUT' }, delete: deleteDescriptor } + where deleteDescriptor : IActionDescriptor */ + actions?: any, options?: IResourceOptions): U; + (url: string, paramDefaults?: any, + /** example: {update: { method: 'PUT' }, delete: deleteDescriptor } + where deleteDescriptor : IActionDescriptor */ + actions?: any, options?: IResourceOptions): IResourceClass; + } + + // Just a reference to facilitate describing new actions + interface IActionDescriptor { + method: string; + params?: any; + url?: string; + isArray?: boolean; + transformRequest?: angular.IHttpRequestTransformer | angular.IHttpRequestTransformer[]; + transformResponse?: angular.IHttpResponseTransformer | angular.IHttpResponseTransformer[]; + headers?: any; + cache?: boolean | angular.ICacheObject; + timeout?: number | angular.IPromise; + withCredentials?: boolean; + responseType?: string; + interceptor?: any; + } + + // Baseclass for everyresource with default actions. + // If you define your new actions for the resource, you will need + // to extend this interface and typecast the ResourceClass to it. + // + // In case of passing the first argument as anything but a function, + // it's gonna be considered data if the action method is POST, PUT or + // PATCH (in other words, methods with body). Otherwise, it's going + // to be considered as parameters to the request. + // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L461-L465 + // + // Only those methods with an HTTP body do have 'data' as first parameter: + // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L463 + // More specifically, those methods are POST, PUT and PATCH: + // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L432 + // + // Also, static calls always return the IResource (or IResourceArray) retrieved + // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L549 + interface IResourceClass { + new(dataOrParams? : any) : T; + get(): T; + get(params: Object): T; + get(success: Function, error?: Function): T; + get(params: Object, success: Function, error?: Function): T; + get(params: Object, data: Object, success?: Function, error?: Function): T; + + query(): IResourceArray; + query(params: Object): IResourceArray; + query(success: Function, error?: Function): IResourceArray; + query(params: Object, success: Function, error?: Function): IResourceArray; + query(params: Object, data: Object, success?: Function, error?: Function): IResourceArray; + + save(): T; + save(data: Object): T; + save(success: Function, error?: Function): T; + save(data: Object, success: Function, error?: Function): T; + save(params: Object, data: Object, success?: Function, error?: Function): T; + + remove(): T; + remove(params: Object): T; + remove(success: Function, error?: Function): T; + remove(params: Object, success: Function, error?: Function): T; + remove(params: Object, data: Object, success?: Function, error?: Function): T; + + delete(): T; + delete(params: Object): T; + delete(success: Function, error?: Function): T; + delete(params: Object, success: Function, error?: Function): T; + delete(params: Object, data: Object, success?: Function, error?: Function): T; + } + + // Instance calls always return the the promise of the request which retrieved the object + // https://github.com/angular/angular.js/blob/v1.2.0/src/ngResource/resource.js#L538-L546 + interface IResource { + $get(): angular.IPromise; + $get(params?: Object, success?: Function, error?: Function): angular.IPromise; + $get(success: Function, error?: Function): angular.IPromise; + + $query(): angular.IPromise>; + $query(params?: Object, success?: Function, error?: Function): angular.IPromise>; + $query(success: Function, error?: Function): angular.IPromise>; + + $save(): angular.IPromise; + $save(params?: Object, success?: Function, error?: Function): angular.IPromise; + $save(success: Function, error?: Function): angular.IPromise; + + $remove(): angular.IPromise; + $remove(params?: Object, success?: Function, error?: Function): angular.IPromise; + $remove(success: Function, error?: Function): angular.IPromise; + + $delete(): angular.IPromise; + $delete(params?: Object, success?: Function, error?: Function): angular.IPromise; + $delete(success: Function, error?: Function): angular.IPromise; + + /** the promise of the original server interaction that created this instance. **/ + $promise : angular.IPromise; + $resolved : boolean; + toJSON: () => { + [index: string]: any; + } + } + + /** + * Really just a regular Array object with $promise and $resolve attached to it + */ + interface IResourceArray extends Array> { + /** the promise of the original server interaction that created this collection. **/ + $promise : angular.IPromise>; + $resolved : boolean; + } + + /** when creating a resource factory via IModule.factory */ + interface IResourceServiceFactoryFunction { + ($resource: angular.resource.IResourceService): IResourceClass; + >($resource: angular.resource.IResourceService): U; + } + + // IResourceServiceProvider used to configure global settings + interface IResourceServiceProvider extends angular.IServiceProvider { + + defaults: IResourceOptions; + } + +} + +/** extensions to base ng based on using angular-resource */ +declare namespace angular { + + interface IModule { + /** creating a resource service factory */ + factory(name: string, resourceServiceFactoryFunction: angular.resource.IResourceServiceFactoryFunction): IModule; + } +} + +interface Array +{ + /** the promise of the original server interaction that created this collection. **/ + $promise : angular.IPromise>; + $resolved : boolean; +} diff --git a/angularjs/legacy/angular-route-1.2.d.ts b/angularjs/legacy/angular-route-1.2.d.ts index 7afd4af5a5..9c1dd4aa25 100644 --- a/angularjs/legacy/angular-route-1.2.d.ts +++ b/angularjs/legacy/angular-route-1.2.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.2 (ngRoute module) // Project: http://angularjs.org // Definitions by: Jonathan Park -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -9,7 +9,7 @@ /////////////////////////////////////////////////////////////////////////////// // ngRoute module (angular-route.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng.route { +declare namespace ng.route { /////////////////////////////////////////////////////////////////////////// // RouteParamsService @@ -40,8 +40,8 @@ declare module ng.route { // to a controller that was not initialized as a result of a route maching. current?: ICurrentRoute; } - - + + /** * see https://code.angularjs.org/1.2.26/docs/api/ngRoute/provider/$routeProvider#when for API documentation */ @@ -62,24 +62,24 @@ declare module ng.route { /** * {string=|function()=} * Html template as a string or a function that returns an html template as a string which should be used by ngView or ngInclude directives. This property takes precedence over templateUrl. - * + * * If template is a function, it will be called with the following parameters: - * + * * {Array.} - route parameters extracted from the current $location.path() by applying the current route */ template?: string; /** * {string=|function()=} * Path or function that returns a path to an html template that should be used by ngView. - * + * * If templateUrl is a function, it will be called with the following parameters: - * + * * {Array.} - route parameters extracted from the current $location.path() by applying the current route */ templateUrl?: any; /** * {Object.=} - An optional map of dependencies which should be injected into the controller. If any of these dependencies are promises, the router will wait for them all to be resolved or one to be rejected before the controller is instantiated. If all the promises are resolved successfully, the values of the resolved promises are injected and $routeChangeSuccess event is fired. If any of the promises are rejected the $routeChangeError event is fired. The map object is: - * + * * - key - {string}: a name of a dependency to be injected into the controller. * - factory - {string|function}: If string then it is an alias for a service. Otherwise if function, then it is injected and the return value is treated as the dependency. If the result is a promise, it is resolved before its value is injected into the controller. Be aware that ngRoute.$routeParams will still refer to the previous route within these resolve functions. Use $route.current.params to access the new route parameters, instead. */ @@ -87,9 +87,9 @@ declare module ng.route { /** * {(string|function())=} * Value to update $location path with and trigger route redirection. - * + * * If redirectTo is a function, it will be called with the following parameters: - * + * * - {Object.} - route parameters extracted from the current $location.path() by applying the current route templateUrl. * - {string} - current $location.path() * - {Object} - current $location.search() @@ -97,14 +97,14 @@ declare module ng.route { */ redirectTo?: any; /** - * Reload route when only $location.search() or $location.hash() changes. - * + * Reload route when only $location.search() or $location.hash() changes. + * * This option defaults to true. If the option is set to false and url in the browser changes, then $routeUpdate event is broadcasted on the root scope. */ reloadOnSearch?: boolean; /** * Match routes without being case sensitive - * + * * This option defaults to false. If the option is set to true, then the particular route can be matched without being case sensitive */ caseInsensitiveMatch?: boolean; @@ -123,21 +123,21 @@ declare module ng.route { interface IRouteProvider extends IServiceProvider { /** * Sets route definition that will be used on route change when no other route definition is matched. - * + * * @params Mapping information to be assigned to $route.current. */ otherwise(params: IRoute): IRouteProvider; /** * Adds a new route definition to the $route service. - * + * * @param path Route path (matched against $location.path). If $location.path contains redundant trailing slash or is missing one, the route will still match and the $location.path will be updated to add or drop the trailing slash to exactly match the route definition. - * + * * - path can contain named groups starting with a colon: e.g. :name. All characters up to the next slash are matched and stored in $routeParams under the given name when the route matches. * - path can contain named groups starting with a colon and ending with a star: e.g.:name*. All characters are eagerly stored in $routeParams under the given name when the route matches. * - path can contain optional named groups with a question mark: e.g.:name?. * * For example, routes like /color/:color/largecode/:largecode*\/edit will match /color/brown/largecode/code/with/slashes/edit and extract: color: brown and largecode: code/with/slashes. - * + * * @param route Mapping information to be assigned to $route.current on route match. */ when(path: string, route: IRoute): IRouteProvider; diff --git a/angularjs/legacy/angular-sanitize-1.0.d.ts b/angularjs/legacy/angular-sanitize-1.0.d.ts index 4d9fc4c6a5..510a7bc82b 100644 --- a/angularjs/legacy/angular-sanitize-1.0.d.ts +++ b/angularjs/legacy/angular-sanitize-1.0.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.0 (ngSanitize module) // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -9,7 +9,7 @@ /////////////////////////////////////////////////////////////////////////////// // ngSanitize module (angular-sanitize.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng.sanitize { +declare namespace ng.sanitize { /////////////////////////////////////////////////////////////////////////// // SanitizeService diff --git a/angularjs/legacy/angular-sanitize-1.2.d.ts b/angularjs/legacy/angular-sanitize-1.2.d.ts index 4c6805c9a4..cbd559688a 100644 --- a/angularjs/legacy/angular-sanitize-1.2.d.ts +++ b/angularjs/legacy/angular-sanitize-1.2.d.ts @@ -1,7 +1,7 @@ // Type definitions for Angular JS 1.2 (ngSanitize module) // Project: http://angularjs.org // Definitions by: Diego Vilar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -9,7 +9,7 @@ /////////////////////////////////////////////////////////////////////////////// // ngSanitize module (angular-sanitize.js) /////////////////////////////////////////////////////////////////////////////// -declare module ng.sanitize { +declare namespace ng.sanitize { /////////////////////////////////////////////////////////////////////////// // SanitizeService @@ -25,7 +25,7 @@ declare module ng.sanitize { /////////////////////////////////////////////////////////////////////////// export module filter { - // Finds links in text input and turns them into html links. + // Finds links in text input and turns them into html links. // Supports http/https/ftp/mailto and plain email address links. // see https://code.angularjs.org/1.2.26/docs/api/ngSanitize/filter/linky interface ILinky { diff --git a/angularjs/legacy/angular-scenario-1.0.d.ts b/angularjs/legacy/angular-scenario-1.0.d.ts index af8a1e204f..ff0c87075f 100644 --- a/angularjs/legacy/angular-scenario-1.0.d.ts +++ b/angularjs/legacy/angular-scenario-1.0.d.ts @@ -1,9 +1,9 @@ // Type definitions for Angular Scenario Testing 1.0 (ngScenario module) // Project: http://angularjs.org // Definitions by: RomanoLindano -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module angularScenario { +declare namespace angularScenario { export interface AngularModel { scenario: any; } @@ -46,25 +46,25 @@ declare module angularScenario { reload(): void; window(): testWindow; location(): testLocation; - } - + } + export interface Matchers { toEqual(value: any): void; - toBe(value: any): void; - toBeDefined(): void; - toBeTruthy(): void; - toBeFalsy(): void; - toMatch(regularExpression: any): void; - toBeNull(): void; + toBe(value: any): void; + toBeDefined(): void; + toBeTruthy(): void; + toBeFalsy(): void; + toMatch(regularExpression: any): void; + toBeNull(): void; toContain(value: any): void; - toBeLessThan(value: any): void; - toBeGreaterThan(value: any): void; + toBeLessThan(value: any): void; + toBeGreaterThan(value: any): void; } - export interface CustomMatchers extends Matchers{ + export interface CustomMatchers extends Matchers{ } - export interface Expect extends CustomMatchers { + export interface Expect extends CustomMatchers { not(): angularScenario.CustomMatchers; } @@ -92,7 +92,7 @@ declare module angularScenario { export interface Select { option(value: any): any; option(...listOfValues: any[]): any; - } + } export interface Element { count(): Future; @@ -111,7 +111,7 @@ declare module angularScenario { scrollLeft(): Future; scrollTop(): Future; offset(): Future; - + val(value: any): void; text(value: any): void; html(value: any): void; diff --git a/angularjs/legacy/angular-scenario-1.2.d.ts b/angularjs/legacy/angular-scenario-1.2.d.ts index 9e72db8956..75490855bf 100644 --- a/angularjs/legacy/angular-scenario-1.2.d.ts +++ b/angularjs/legacy/angular-scenario-1.2.d.ts @@ -1,17 +1,17 @@ // Type definitions for Angular Scenario Testing 1.2 (ngScenario module) // Project: http://angularjs.org // Definitions by: RomanoLindano -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module ng { +declare namespace ng { export interface IAngularStatic { scenario: any; } } -declare module angularScenario { +declare namespace angularScenario { export interface RunFunction { (functionToRun: any): any; diff --git a/angulartics/angulartics-tests.ts b/angulartics/angulartics-tests.ts index 549b0c4b4a..f5a7190bd6 100644 --- a/angulartics/angulartics-tests.ts +++ b/angulartics/angulartics-tests.ts @@ -1,7 +1,7 @@ /// /// -module Analytics { +namespace Analytics { angular.module("angulartics.app", ["angulartics"]) .config(["$analyticsProvider", ($analyticsProvider:angulartics.IAnalyticsServiceProvider) => { angulartics.waitForVendorApi("location", 1000, (message: string) => { @@ -20,7 +20,7 @@ module Analytics { $analyticsProvider.registerPageTrack((path:string, locationObj:angular.ILocationService) => { console.log("viewed " + path); }); - - $analyticsProvider.settings.pageTracking.basePath = "/my/base/path"; + + $analyticsProvider.settings.pageTracking.basePath = "/my/base/path"; }]); } diff --git a/angulartics/angulartics.d.ts b/angulartics/angulartics.d.ts index fdcb409ca2..8714e1a903 100644 --- a/angulartics/angulartics.d.ts +++ b/angulartics/angulartics.d.ts @@ -1,10 +1,10 @@ // Type definitions for Angulartics v0.20.2 // Project: http://luisfarzati.github.io/angulartics/ // Definitions by: Steven Fan -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module angulartics { +declare namespace angulartics { interface IAngularticsStatic { waitForVendorApi(objectName:string, delay:number, containsField?:any, registerFn?:any, onTimeout?:boolean): void; @@ -33,9 +33,9 @@ declare module angulartics { registerSetUsername(callback: (username: string) => any): void registerSetUserProperties(callback: (userProperties: any) => any): void registerSetSuperProperties(callback: (superProperties: any) => any): void - - settings: { - pageTracking: { + + settings: { + pageTracking: { autoTrackingVirtualPages: boolean, autoTrackingFirstPage: boolean, basePath: string, diff --git a/animation-frame/animation-frame-tests.ts b/animation-frame/animation-frame-tests.ts index 39a9f89375..f7b1648303 100644 --- a/animation-frame/animation-frame-tests.ts +++ b/animation-frame/animation-frame-tests.ts @@ -1,5 +1,5 @@ /// -module AnimationFrameTests { +namespace AnimationFrameTests { var animation = new AnimationFrame(); function frame() { animation.request(frame); diff --git a/animation-frame/animation-frame.d.ts b/animation-frame/animation-frame.d.ts index 956d4dc9d2..244018469d 100644 --- a/animation-frame/animation-frame.d.ts +++ b/animation-frame/animation-frame.d.ts @@ -1,7 +1,7 @@ // Type definitions for animation-frame 0.1.7 // Project: https://github.com/kof/animation-frame // Definitions by: Qinfeng Chen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface AnimationFrame { new(): AnimationFrame; diff --git a/ansi-styles/ansi-styles.d.ts b/ansi-styles/ansi-styles.d.ts index 4c79b118f3..e5c01c6a5a 100644 --- a/ansi-styles/ansi-styles.d.ts +++ b/ansi-styles/ansi-styles.d.ts @@ -1,7 +1,7 @@ // Type definitions for ansi-styles 2.0.1 // Project: https://github.com/sindresorhus/ansi-styles // Definitions by: bryn austin bellomy -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "ansi-styles" diff --git a/ansicolors/ansicolors.d.ts b/ansicolors/ansicolors.d.ts index ec5f0af859..2bbfcafc6e 100644 --- a/ansicolors/ansicolors.d.ts +++ b/ansicolors/ansicolors.d.ts @@ -1,7 +1,7 @@ // Type definitions for ansicolors // Project: https://github.com/thlorenz/ansicolors // Definitions by: rogierschouten -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "ansicolors" { var colors: {[index: string]: (s: string) => string;}; diff --git a/antd/antd-tests.tsx b/antd/antd-tests.tsx new file mode 100644 index 0000000000..6655862723 --- /dev/null +++ b/antd/antd-tests.tsx @@ -0,0 +1,483 @@ +/// +/// +import React = __React +/*import { + Affix, + Button, + Alert, + Badge, + Breadcrumb, + Calendar, + Carousel, + Cascader, + Checkbox, + Collapse, + DatePicker, + Dropdown, + Icon, + Form, + Input, + InputNumber, + Row, + Col, + Menu, + message, + Modal, + notification, + Pagination, + Popconfirm, + Popover, + Progress, + QueueAnim, + Radio, + Select, + Slider, + Spin, + Steps, + Switch, + Table, + Tabs, + Tag, + TimePicker, + Timeline, + Tooltip, + Transfer, + Tree, + TreeSelect, + Upload, + + + +} from 'antd';*/ + +import Affix from 'antd/lib/Affix' +import Button from 'antd/lib/Button' +import Alert from 'antd/lib/Alert' +import Badge from 'antd/lib/Badge' +import Breadcrumb from 'antd/lib/Breadcrumb' +import Calendar from 'antd/lib/Calendar' +import Carousel from 'antd/lib/Carousel' +import Cascader from 'antd/lib/Cascader' +import Checkbox from 'antd/lib/Checkbox' +import Collapse from 'antd/lib/Collapse' +import DatePicker from 'antd/lib/DatePicker' +import Dropdown from 'antd/lib/Dropdown' +import Icon from 'antd/lib/Icon' +import Form from 'antd/lib/Form' +import Input from 'antd/lib/Input' +import InputNumber from 'antd/lib/InputNumber' +import Row from 'antd/lib/Row' +import Col from 'antd/lib/Col' +import Menu from 'antd/lib/Menu' +import message from 'antd/lib/message' +import Modal from 'antd/lib/Modal' +import notification from 'antd/lib/notification' +import Pagination from 'antd/lib/Pagination' +import Popconfirm from 'antd/lib/Popconfirm' +import Popover from 'antd/lib/Popover' +import Progress from 'antd/lib/Progress' +import QueueAnim from 'antd/lib/QueueAnim' +import Radio from 'antd/lib/Radio' +import Select from 'antd/lib/Select' +import Slider from 'antd/lib/Slider' +import Spin from 'antd/lib/Spin' +import Steps from 'antd/lib/Steps' +import Switch from 'antd/lib/Switch' +import Table from 'antd/lib/Table' +import Tabs from 'antd/lib/Tabs' +import Tag from 'antd/lib/Tag' +import TimePicker from 'antd/lib/TimePicker' +import Timeline from 'antd/lib/Timeline' +import Tooltip from 'antd/lib/Tooltip' +import Transfer from 'antd/lib/Transfer' +import Tree from 'antd/lib/Tree' +import TreeSelect from 'antd/lib/TreeSelect' +import Upload from 'antd/lib/Upload' + +const ButtonGroup = Button.Group; +const CheckboxGroup = Checkbox.Group; +const Panel = Collapse.Panel; +const RangePicker = DatePicker.RangePicker; +const MonthPicker = DatePicker.MonthPicker; +const DropdownButton = Dropdown.Button; +const SubMenu = Menu.SubMenu; +const MenuItemGroup = Menu.ItemGroup; +const ProgressCircle = Progress.Circle; +const ProgressLine = Progress.Line; +const RadioGroup = Radio.Group; +const Option = Select.Option; +const OptGroup = Select.OptGroup; +const Step = Steps.Step; +const FormItem = Form.Item; +const TabPane = Tabs.TabPane; +const TreeNode = Tree.TreeNode; +const TreeSelectTreeNode = TreeSelect.TreeNode; + +const onChange = () => { } + +const options = [{ + value: 'zhejiang', + label: '浙江', + children: [{ + value: 'hangzhou', + label: '杭州', + children: [{ + value: 'xihu', + label: '西湖', + }], + }], +}, { + value: 'jiangsu', + label: '江苏', + children: [{ + value: 'nanjing', + label: '南京', + children: [{ + value: 'zhonghuamen', + label: '中华门', + }], + }], + }]; + +const columns = [{ + title: '姓名', + dataIndex: 'name', + key: 'name', + render(text: any) { + return {text}; + } +}, { + title: '年龄', + dataIndex: 'age', + key: 'age', + }, { + title: '住址', + dataIndex: 'address', + key: 'address', + }, { + title: '操作', + key: 'operation', + render(text: any, record: any) { + return ( + + 操作一{record.name} + + 操作二 + + + 更多 + + + ); + } + }]; +const data = [{ + key: '1', + name: '胡彦斌', + age: 32, + address: '西湖区湖底公园1号' +}, { + key: '2', + name: '胡彦祖', + age: 42, + address: '西湖区湖底公园1号' + }, { + key: '3', + name: '李大嘴', + age: 32, + address: '西湖区湖底公园1号' + }]; + +// tests +class AccountForm extends React.Component{ + render() { + const { getFieldProps } = this.props.form; + return ( +
+ + + + + + + + + + +
+ ); + } +} + +var Account = Form.create()(AccountForm); + +// app +class App extends React.Component{ + render() { + message.success('success') + message.config({ top: 100 }) + message.destroy() + message.info('info', 1000) + message.error('error', 3500) + + Modal.info({ title: 'hello' }); + Modal.success({ cancelText: 'No' }) + notification.success({ + message: 'hello', + description: 'test' + }) + const props = { + name: 'file', + action: '/upload.do', + onChange(info: any) { + if (info.file.status !== 'uploading') { + console.log(info.file, info.fileList); + } + if (info.file.status === 'done') { + message.success(`${info.file.name} 上传成功。`); + } else if (info.file.status === 'error') { + message.error(`${info.file.name} 上传失败。`); + } + } + }; + return
+ Affix + + + test + + + + + + + + + + + + 首页 + 应用中心 + 应用列表 + 某应用 + + + + + +

1

+

2

+

3

+

4

+
+ + + + + + +

test1

+
+ +

test2

+
+ +

test3

+
+
+ + + + Hello Dp
}> + + 触发链接 + + + dpb

} type="primary"> + 某功能按钮 +
+ + + + + + + 导航一 + + + 导航 - 子菜单}> + + 选项1 + 选项2 + + + 选项3 + 选项4 + + + + + + + + + + , + + + remove + + Overlay} title="title"> + + + + + + + + + + + + + + + + + + +
demo1
+
demo2
+
demo3
+
demo4
+
+ + + A + B + C + D + + + + + + + + + + + + + + + + + + + + , + + + + 选项卡一内容 + 选项卡二内容 + 选项卡三内容 + + + 标签一 + 标签二 + { } }>标签三 + 标签四(链接) + + + + + + 创建服务现场 2015-09-01 + 初步排除网络异常 2015-09-01 + 技术测试异常 2015-09-01 + 网络异常正在修复 2015-09-01 + + + + + 鼠标移上来就会出现提示 + + + + + + + + + + + + + + + sss} key="0-0-1-0" /> + + + + + + + + + + + + + + + + + + + sss} key="random3" /> + + + + + + } +} diff --git a/antd/antd.d.ts b/antd/antd.d.ts new file mode 100644 index 0000000000..62288af91b --- /dev/null +++ b/antd/antd.d.ts @@ -0,0 +1,2085 @@ +// Type definitions for Antd v0.12.10 +// Project: http://ant.design +// Definitions by: bang88 , Bruce Mitchener +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + + +/// +declare namespace Antd { + + import React = __React + + // Affix + interface AffixProps { + /** + * 达到指定偏移量后触发 + */ + offset?: number + } + /** + * # Affix + * 将页面元素钉在可视范围。 + * ## 何时使用 + * 当内容区域比较长,需要滚动页面时,这部分内容对应的操作或者导航需要在滚动范围内始终展现。常用于侧边菜单和按钮组合。 + * 页面可视范围过小时,慎用此功能以免遮挡页面内容。 + */ + export class Affix extends React.Component { + render(): JSX.Element + } + + + // Alert + interface AlertProps { + /** + * 必选参数,指定警告提示的样式,有四种选择`success`、`info`、`warn`、`error` + */ + type: string, + /**可选参数,默认不显示关闭按钮 */ + closable?: boolean, + /**可选参数,自定义关闭按钮 */ + closeText?: React.ReactNode, + /**必选参数,警告提示内容 */ + message: React.ReactNode, + /**可选参数,警告提示的辅助性文字介绍 */ + description?: React.ReactNode, + /**可选参数,关闭时触发的回调函数 */ + onClose?: Function, + /**可选参数,是否显示辅助图标 */ + showIcon?: boolean + } + + + /** + * # Alert + * 警告提示,展现需要关注的信息。 + + * ## 何时使用 + + * - 当某个页面需要向用户显示警告的信息时。 + * - 非浮层的静态展现形式,始终展现,不会自动消失,用户可以点击关闭。 + * */ + export class Alert extends React.Component { + render(): JSX.Element + } + + + // Badge + /** + * #Badge + * + * 图标右上角的圆形徽标数字。 + + * ## 何时使用 + + * 一般出现在通知图标或头像的右上角,用于显示需要处理的消息条数,通过醒目视觉形式吸引用户处理。 + * + */ + export class Badge extends React.Component { + render(): JSX.Element + } + interface BadgeProps { + /** 展示的数字,大于 overflowCount 时显示为 `${overflowCount}+`,为 0 时隐藏*/ + count: number, + /** 展示封顶的数字值*/ + overflowCount?: number, + /** 不展示数字,只有一个小红点*/ + dot?: boolean + } + + + // Button + interface ButtonProps { + /** 设置按钮类型,可选值为 `primary` `ghost` 或者不设 */ + type?: ButtonType | string, + /** 设置按钮形状,可选值为 `circle` `circle-outline` 或者不设*/ + shape?: string, + /** 设置按钮大小,可选值为 `small` `large` 或者不设*/ + size?: string, + /** 设置 `button` 原生的 `type` 值,可选值请参考 HTML标准*/ + htmlType?: string, + /** `click` 事件的 handler*/ + onClick?: Function, + /** 设置按钮载入状态*/ + loading?: boolean, + /** 样式名*/ + className?: string, + } + + + enum ButtonType { + primary, + ghost, + dashed + } + + interface ButtonGroupProps { + /** 设置按钮大小,可选值为 `small` `large` 或者不设*/ + size?: string + + } + + /** + 可以将多个 `Button` 放入 `Button.Group` 的容器中。 + + 通过设置 `size` 为 `large` `small` 分别把按钮组合设为大、小尺寸。若不设置 `size`,则尺寸为中。*/ + class ButtonGroup extends React.Component { + render(): JSX.Element + } + + /** + * #Button + 按钮用于开始一个即时操作。 + + ## 何时使用 + + 标记了一个(或封装一组)操作命令,响应用户点击行为,触发相应的业务逻辑。*/ + export class Button extends React.Component { + static Group: typeof ButtonGroup + render(): JSX.Element + } + + + + // Breadcrumb + + interface BreadcrumbItemProps { + /** 链接,如不传则不可点击 */ + href?: string + } + export class BreadcrumbItem extends React.Component { + render(): JSX.Element + } + + interface BreadcrumbProps { + /** router 的路由栈信息 */ + routes?: Array, + /** 路由的参数*/ + params?: Object, + /** 分隔符自定义*/ + separator?: string | React.ReactNode + } + /** + * #Breadcrumb + 显示当前页面在系统层级结构中的位置,并能向上返回。 + + ## 何时使用 + + - 当系统拥有超过两级以上的层级结构时; + - 当需要告知用户“你在哪里”时; + - 当需要向上导航的功能时。*/ + export class Breadcrumb extends React.Component { + static Item: typeof BreadcrumbItem + render(): JSX.Element + } + + + // Calendar + interface CalendarProps { + /** 自定义渲染月单元格*/ + monthCellRender?: Function, + /** 自定义渲染日期单元格*/ + dateCellRender?: Function, + /** 是否全屏显示*/ + fullscreen?: boolean, + /** 国际化配置*/ + locale?: Object, + prefixCls?: string, + className?: string, + style?: Object, + /** 日期面板变化回调*/ + onPanelChange?: Function, + /** 展示日期*/ + value?: Date, + /** 默认展示日期*/ + defaultValue?: Date, + /** 初始模式,`month/year`*/ + mode?: string + } + /** + * #Calendar + 按照日历形式展示数据的容器。 + + ## 何时使用 + + 当数据是日期或按照日期划分时,例如日程、课表、价格日历等,农历等。目前支持年/月切换。 + */ + export class Calendar extends React.Component { + render(): JSX.Element + } + + + // Carousel + interface CarouselProps { + /** 动画效果函数,可取 scrollx, fade*/ + effect?: string, + /** 是否显示面板指示点*/ + dots?: boolean, + /** 垂直显示*/ + vertical?: boolean, + /** 是否自动切换*/ + autoplay?: boolean, + /** 动画效果*/ + easing?: string, + /** 切换面板的回调*/ + beforeChange?: Function, + /** 切换面板的回调*/ + afterChange?: Function + } + /** + * #Carousel + 旋转木马,一组轮播的区域。 + + ## 何时使用 + + - 当有一组平级的内容。 + - 当内容空间不足时,可以用走马灯的形式进行收纳,进行轮播展现。 + - 常用于一组图片或卡片轮播。 + */ + export class Carousel extends React.Component { + render(): JSX.Element + } + + + + // Cascader + interface CascaderProps { + /** 可选项数据源*/ + options: Object, + /** 默认的选中项*/ + defaultValue?: Array, + /** 指定选中项*/ + value?: Array, + /** 选择完成后的回调*/ + onChange?: Function, + /** 选择后展示的渲染函数*/ + displayRender?: Function, + /** 自定义样式*/ + style?: Object, + /** 自定义类名*/ + className?: string, + /** 自定义浮层类名*/ + popupClassName?: string, + /** 浮层预设位置:`bottomLeft` `bottomRight` `topLeft` `topRight` */ + popupPlacement?: string, + /** 输入框占位文本*/ + placeholder?: string, + /** 输入框大小,可选 `large` `default` `small` */ + size?: string, + /** 禁用*/ + disabled?: boolean, + /** 是否支持清除*/ + allowClear?: boolean + + } + /** + * #Cascader + 级联选择框。 + + + ## 何时使用 + + - 需要从一组相关联的数据集合进行选择,例如省市区,公司层级,事物分类等。 + - 从一个较大的数据集合中进行选择时,用多级分类进行分隔,方便选择。 + - 比起 Select 组件,可以在同一个浮层中完成选择,有较好的体验。*/ + export class Cascader extends React.Component { + render(): JSX.Element + } + + + + + // Checkbox + interface CheckboxProps { + /** 指定当前是否选中*/ + checked?: boolean, + /** 初始是否选中*/ + defaultChecked?: boolean, + /** 变化时回调函数*/ + onChange?: Function + } + + interface CheckboxGroupProps { + /** 默认选中的选项*/ + defaultValue?: Array, + /** 指定选中的选项*/ + value?: Array, + /** 指定可选项*/ + options?: Array, + /** 变化时回调函数*/ + onChange?: Function + } + /** Checkbox 组*/ + class CheckboxGroup extends React.Component { + render(): JSX.Element + } + /** + * #Checkbox + 多选框。 + + ## 何时使用 + + - 在一组可选项中进行多项选择时; + - 单独使用可以表示两种状态之间的切换,和 `switch` 类似。区别在于切换 `switch` 会直接触发状态改变,而 `checkbox` 一般用于状态标记,需要和提交操作配合。 + */ + export class Checkbox extends React.Component { + static Group: typeof CheckboxGroup + render(): JSX.Element + } + + + + // Collapse + + interface CollapseProps { + /** 当前激活 tab 面板的 key*/ + activeKey?: Array | string, + /** 初始化选中面板的key */ + defaultActiveKey?: Array, + /** 切换面板的回调*/ + onChange?: Function + + } + class CollapsePanel extends React.Component<{ + /** 对应 activeKey */ + key: string, + /** 面板头内容*/ + header: React.ReactNode | string + }, {}> { + render(): JSX.Element + } + /** + * #Collapse + 可以折叠/展开的内容区域。 + + ## 何时使用 + + - 对复杂区域进行分组和隐藏,保持页面的整洁。 + - `手风琴` 是一种特殊的折叠面板,只允许单个内容区域展开。*/ + export class Collapse extends React.Component { + static Panel: typeof CollapsePanel + render(): JSX.Element + } + + + + // DatePicker + interface DatePickerProps { + + value?: string | Date, + defaultValue?: string | Date, + /** 展示的日期格式,配置参考 [GregorianCalendarFormat](https://github.com/yiminghe/gregorian-calendar-format)*/ + format?: string, + /** 不可选择的日期*/ + disabledDate?: Function, + /** 时间发生变化的回调,发生在用户选择时间时*/ + onChange?: Function, + /** 禁用*/ + disabled?: boolean, + style?: Object, + /** 格外的弹出日历样式*/ + popupStyle?: Object, + /** 输入框大小,`large` 高度为 32px,`small` 为 22px,默认是 28px*/ + size?: string, + /** 国际化配置*/ + locale?: Object, + /** 增加时间选择功能*/ + showTime?: boolean, + /** 点击确定按钮的回调*/ + onOk?: Function, + /** 定义浮层的容器,默认为 body 上新建 div*/ + getCalendarContainer?: Function + + } + interface RangePickProps extends DatePickerProps { + + } + class RangePicker extends React.Component { + render(): JSX.Element + } + class MonthPicker extends React.Component { + render(): JSX.Element + } + /** + * #DatePicker + 输入或选择日期的控件。 + + ## 何时使用 + + 当用户需要输入一个日期,可以点击标准输入框,弹出日期面板进行选择。*/ + export class DatePicker extends React.Component, {}> { + static RangePicker: typeof RangePicker + static MonthPicker: typeof MonthPicker + render(): JSX.Element + } + + + + + // Dropdown + + interface DropdownProps { + /** 触发下拉的行为 ['click'] or ['hover']*/ + trigger?: Array, + /** 菜单节点*/ + overlay: React.ReactNode + + } + + class DropdownButton extends React.Component<{ + /** 按钮类型*/ + type?: string, + /** 点击左侧按钮的回调*/ + onClick?: Function, + /** 触发下拉的行为*/ + trigger?: string, + /** 菜单节点*/ + overlay: React.ReactNode + }, {}> { + render(): JSX.Element + } + /** + * #Dropdown + 向下弹出的列表。 + + ## 何时使用 + + 当页面上的操作命令过多时,用此组件可以收纳操作元素。点击或移入触点,会出现一个下拉菜单。可在列表中进行选择,并执行相应的命令。 + */ + export class Dropdown extends React.Component { + static Button: typeof DropdownButton + render(): JSX.Element + } + + + + // Form + + interface FormItemProps { + prefixCls?: string, + /** label 标签的文本*/ + label?: React.ReactNode, + /** label 标签布局,通 `` 组件,设置 `span` `offset` 值,如 `{span: 3, offset: 12}`*/ + labelCol?: Object, + /** 提示信息,如不设置,则会根据校验规则自动生成 */ + help?: React.ReactNode | boolean, + /** 额外的提示信息,和 help 类似,当需要错误信息和提示文案同时出现时,可以使用这个。*/ + extra?: string, + /** 是否必填,如不设置,则会根据校验规则自动生成 */ + validateStatus?: string, + /** 配合 validateStatus 属性使用,是否展示校验状态图标 */ + hasFeedback?: boolean, + /** 需要为输入控件设置布局样式时,使用该属性,用法同 labelCol*/ + wrapperCol?: Object, + className?: string, + required?: boolean, + id?: string + } + /** + 表单一定会包含表单域,表单域可以是输入控件,标准表单域,标签,下拉菜单,文本域等。 + + 这里我们分别封装了表单域 `` 和输入控件 ``。*/ + export class FormItem extends React.Component { + render(): JSX.Element + } + interface FormComponentProps { + form: CreateFormOptions + } + export class FormComponent extends React.Component { + render(): JSX.Element + } + + // function create + type CreateFormOptions = { + /** 获取一组输入控件的值,如不传入参数,则获取全部组件的值*/ + getFieldsValue(): (fieldNames?: Array) => any + /** 获取一个输入控件的值*/ + getFieldValue(): (fieldName: string) => any + /** 设置一组输入控件的值*/ + setFieldsValue(): (obj: Object) => void + /** 设置一组输入控件的值*/ + setFields(): (obj: Object) => void + /** 校验并获取一组输入域的值与 Error*/ + validateFields(): (fieldNames?: Array, options?: Object, callback?: (erros: any, values: any) => void) => any + /** 与 `validateFields` 相似,但校验完后,如果校验不通过的菜单域不在可见范围内,则自动滚动进可见范围 */ + validateFieldsAndScroll(): (fieldNames?: Array, options?: Object, callback?: (erros: any, values: any) => void) => any + /** 获取某个输入控件的 Error */ + getFieldError(): (name: string) => Object + /** 判断一个输入控件是否在校验状态*/ + isFieldValidating(): (name: string) => Object + /**重置一组输入控件的值与状态,如不传入参数,则重置所有组件*/ + resetFields(): (names?: Array) => void + + getFieldsValue(): (id: string, options: { + /** 子节点的值的属性,如 Checkbox 的是 'checked'*/ + valuePropName?: string, + /** 子节点的初始值,类型、可选值均由子节点决定*/ + initialValue?: any, + /** 收集子节点的值的时机*/ + trigger?: string, + /** 校验子节点值的时机*/ + validateTrigger?: string, + /** 校验规则,参见 [async-validator](https://github.com/yiminghe/async-validator) */ + rules?: Array, + /** 必填输入控件唯一标志*/ + id?: string + }) => Array + + + } + + interface ComponentDecorator { + (component: T): T; + } + interface FormProps { + prefixCls?: string, + /** 水平排列布局*/ + horizontal?: boolean, + /** 行内排列布局*/ + inline?: boolean, + /** 经 `Form.create()` 包装过的组件会自带 `this.props.form` 属性,直接传给 Form 即可*/ + form?: Object, + /** 数据验证成功后回调事件*/ + onSubmit?: (e: React.FormEvent) => void, + } + /** + * #Form + 具有数据收集、校验和提交功能的表单,包含复选框、单选框、输入框、下拉选择框等元素。 + + ## 表单 + + 我们为 `form` 提供了以下两种排列方式: + + - 水平排列:可以实现 `label` 标签和表单控件的水平排列; + - 行内排列:使其表现为 `inline-block` 级别的控件。 + */ + export class Form extends React.Component { + static Item: typeof FormItem + static create(options?: { + /** + * 当 `Form.Item` 子节点的值发生改变时触发,可以把对应的值转存到 Redux store + */ + onFieldsChange?: (props: Object, fields: Array) => void, + /** 把 props 转为对应的值,可用于把 Redux store 中的值读出 */ + mapPropsToFields?: (props: Object) => void + }): ComponentDecorator + render(): JSX.Element + } + + + + + + // Icon + interface IconProps { + /** 图标类型*/ + type: string + } + /** + * #Icon + 有含义的矢量图形,每一个图标打倒一个敌人。 + + ## 图标的命名规范 + + 我们为每个图标赋予了语义化的命名,命名规则如下: + + - 实心和描线图标保持同名,用 `-o` 来区分,比如 `question-circle`(实心) 和 `question-circle-o`(描线); + + - 命名顺序:`[icon名]-[形状可选]-[描线与否]-[方向可选]`。 + + ## 如何使用 + + 使用 `` 标签声明组件,指定图标对应的 type 属性,示例代码如下: + + ```html + + ``` + + 最终会渲染为: + + ```html + + ```*/ + export class Icon extends React.Component { + render(): JSX.Element + } + + + + + // Input + interface InputProps { + /** 【必须】声明 input 类型,同原生 input 标签的 type 属性*/ + type?: string, + id: string | number, + /** 控件大小,默认值为 default 。注:标准表单内的输入框大小限制为 large。 {'large','default','small'}*/ + size?: string, + /** 是否禁用状态,默认为 false*/ + disabled?: boolean, + value?: any, + /** 设置初始默认值*/ + defaultValue?: any, + className?: string, + /** 带标签的 input,设置前置标签*/ + addonBefore?: React.ReactNode, + /** 带标签的 input,设置后置标签*/ + addonAfter?: React.ReactNode, + prefixCls?: string, + placeholder?: string + } + export class Input extends React.Component { + render(): JSX.Element + } + + + + + // InputNumber + interface InputNumberProps { + /** 最小值*/ + min: number, + /** 最大值*/ + max: number, + /** 当前值*/ + value?: number, + /** 每次改变步数*/ + step?: number, + /** 初始值*/ + defaultValue?: number, + /** 变化回调*/ + onChange?: Function, + /** 禁用*/ + disabled?: boolean, + /** 输入框大小*/ + size?: string + + } + /** + * #InputNumber + 通过鼠标或键盘,输入范围内的数值。 + + ## 何时使用 + + 当需要获取标准数值时。*/ + export class InputNumber extends React.Component { + render(): JSX.Element + } + + + // Layout + // Row + interface RowProps { + type?: string, + align?: string, + justify?: string, + className?: string + } + export class Row extends React.Component { + render(): JSX.Element + } + + // Col + interface ColProps { + span?: string, + order?: string, + offset?: string, + push?: string, + pull?: string, + className?: string + } + /** + 在多数业务情况下,Ant Design需要在设计区域内解决大量信息收纳的问题,因此在12栅格系统的基础上,我们将整个设计建议区域按照24等分的原则进行划分。 + + 划分之后的信息区块我们称之为“盒子”。建议横向排列的盒子数量最多四个,最少一个。“盒子”在整个屏幕上占比见上图。设计部分基于盒子的单位定制盒子内部的排版规则,以保证视觉层面的舒适感。 + + ## 概述 + + 布局的栅格化系统,我们是基于行(row)和列(col)来定义信息区块的外部框架,以保证页面的每个区域能够稳健地排布起来。下面简单介绍一下它的工作原理: + + * 通过`row`在水平方向建立一组`column`(简写col) + * 你的内容应当放置于`col`内,并且,只有`col`可以作为`row`的直接元素 + * 栅格系统中的列是指1到24的值来表示其跨越的范围。例如,三个等宽的列可以使用`.col-8`来创建 + * 如果一个`row`中的`col`总和超过24,那么多余的`col`会作为一个整体另起一行排列 + + ## Flex 布局 + + 我们的栅格化系统支持 Flex 布局,允许子元素在父节点内的水平对齐方式 - 居左、居中、居右、等宽排列、分散排列。子元素与子元素之间,支持顶部对齐、垂直居中对齐、底部对齐的方式。同时,支持使用 order 来定义元素的排列顺序。 + + Flex 布局是基于 24 栅格来定义每一个“盒子”的宽度,但排版则不拘泥于栅格。*/ + export class Col extends React.Component { + render(): JSX.Element + } + + + + + // Menu + interface MenuItemProps { + /** + * (是否禁用) + * + * @type {boolean} + */ + disabled?: boolean, + key: string + } + export class MenuItem extends React.Component { + render(): JSX.Element + } + + interface MenuSubMenuProps { + /** + * (子菜单项值) + * + * @type {(string | React.ReactNode)} + */ + title: string | React.ReactNode, + /** + * (子菜单的菜单项) + * + * @type {(MenuItem | MenuSubMenu)} + */ + children?: JSX.Element[] + } + export class MenuSubMenu extends React.Component { + render(): JSX.Element + } + + interface MenuItemGroupProps { + /** + * (分组标题) + * + * @type {(string | React.ReactNode)} + */ + title: string | React.ReactNode, + /** + * (分组的菜单项) + * + * @type {MenuItem} + */ + children?: JSX.Element[] + } + export class MenuItemGroup extends React.Component { + render(): JSX.Element + } + + + // enum + enum MenuTheme { + light, + dark + } + enum MenuMode { + vertical, + horizontal, + inline + } + interface MenuProps { + /** 主题颜色*/ + theme?: MenuTheme | string, + /** 菜单类型 enum: `vertical` `horizontal` `inline`*/ + mode?: MenuMode | string, + /** 当前选中的菜单项 key 数组*/ + selectedKeys?: Array, + /** 初始选中的菜单项 key 数组*/ + defaultSelectedKeys?: Array, + /** 当前展开的菜单项 key 数组*/ + openKeys?: Array, + /** 初始展开的菜单项 key 数组*/ + defaultOpenKeys?: Array, + /** + * 被选中时调用 + * + * @type {(item: any, key: string, selectedKeys: Array) => void} + */ + onSelect?: (item: any, key: string, selectedKeys: Array) => void, + /** 取消选中时调用*/ + onDeselect?: (item: any, key: string, selectedKeys: Array) => void, + /** 点击 menuitem 调用此函数*/ + onClick?: (item: any, key: string) => void, + /** 根节点样式*/ + style?: Object + } + /** + # Menu + 为页面和功能提供导航的菜单列表。 + + ## 何时使用 + + 导航菜单是一个网站的灵魂,用户依赖导航在各个页面中进行跳转。一般分为顶部导航和侧边导航,顶部导航提供全局性的类目和功能,侧边导航提供多级结构来收纳和排列网站架构。 + + 更多布局和导航的范例可以参考:[常用布局](/spec/layout)。*/ + export class Menu extends React.Component { + static Item: typeof MenuItem + static SubMenu: typeof MenuSubMenu + static ItemGroup: typeof MenuItemGroup + static Divider: typeof React.Component + render(): JSX.Element + } + + + + // Message + type MessageFunc = ( + /** 提示内容*/ + content: string, + /** 自动关闭的延时*/ + duration?: number + ) => void + /** + * #Message + 全局展示操作反馈信息。 + + ## 何时使用 + + - 可提供成功、警告和错误等反馈信息。 + - 顶部居中显示并自动消失,是一种不打断用户操作的轻量级提示方式。*/ + export const message: { + + success: MessageFunc + error: MessageFunc + info: MessageFunc + loading: MessageFunc + config: (options: { + /** + * 消息距离顶部的位置 + * + * @type {number} + */ + top: number + }) => void + destroy: () => void + } + + // Modal + type ModalFunc = (options: { + visible?: boolean, + title?: React.ReactNode | string, + onOk?: Function, + onCancel?: Function, + width?: string | number, + iconClassName?: string, + okText?: string, + cancelText?: string + }) => void + + interface ModalProps { + /** 对话框是否可见*/ + visible?: boolean, + /** 确定按钮 loading*/ + confirmLoading?: boolean, + /** 标题*/ + title?: React.ReactNode | string, + /** 是否显示右上角的关闭按钮*/ + closable?: boolean, + /** 点击确定回调*/ + onOk?: Function, + /** 点击遮罩层或右上角叉或取消按钮的回调*/ + onCancel?: Function, + /** 宽度*/ + width?: string | number, + /** 底部内容*/ + footer?: React.ReactNode | string, + /** 确认按钮文字*/ + okText?: string, + /** 取消按钮文字*/ + cancelText?: string, + /** 点击蒙层是否允许关闭*/ + maskClosable?: boolean + } + + /** + # Modal + 模态对话框。 + + ## 何时使用 + + 需要用户处理事务,又不希望跳转页面以致打断工作流程时,可以使用 `Modal` 在当前页面正中打开一个浮层,承载相应的操作。 + + 另外当需要一个简洁的确认框询问用户时,可以使用精心封装好的 `ant.Modal.confirm()` 等方法。*/ + export class Modal extends React.Component { + static info: ModalFunc + static success: ModalFunc + static error: ModalFunc + static confirm: ModalFunc + render(): JSX.Element + } + + + + + // Notification + type NotificationFunc = ( + config: { + /** 通知提醒标题,必选 */ + message: React.ReactNode | string, + /** 通知提醒内容,必选*/ + description: React.ReactNode | string, + /** 自定义关闭按钮*/ + btn?: React.ReactNode | string, + /** 当前通知唯一标志*/ + key?: string, + /** 点击默认关闭按钮时触发的回调函数*/ + onClose?: Function, + /** 默认 4.5 秒后自动关闭,配置为 null 则不自动关闭*/ + duration?: number + }) => void + /** + * #notification + 全局展示通知提醒信息。 + + ## 何时使用 + + 在系统右上角显示通知提醒信息。经常用于以下情况: + + - 较为复杂的通知内容。 + - 带有交互的通知,给出用户下一步的行动点。 + - 系统主动推送。*/ + export const notification: { + success: NotificationFunc + error: NotificationFunc + info: NotificationFunc + warn: NotificationFunc + close: (key: string) => void + destroy: () => void + config: (options: { + /** 消息距离顶部的位置*/ + top: number + }) => void + + } + + + + + // Pagination + interface PaginationProps { + /** 当前页数*/ + current?: number, + /** 默认的当前页数*/ + defaultCurrent?: number, + /** 数据总数*/ + total: number, + /** 初始的每页条数*/ + defaultPageSize?: number, + /** 每页条数*/ + pageSize?: number, + /** 页码改变的回调,参数是改变后的页码*/ + onChange?: Function, + /** 是否可以改变 pageSize */ + showSizeChanger?: boolean, + /** 指定每页可以显示多少条*/ + pageSizeOptions?: Array + /** pageSize 变化的回调 */ + onShowSizeChange?: Function, + /** 是否可以快速跳转至某页*/ + showQuickJumper?: boolean, + /** 当为「small」时,是小尺寸分页 */ + size?: string, + /** 当添加该属性时,显示为简单分页*/ + simple?: Object, + /** 用于显示总共有多少条数据*/ + showTotal?: Function + } + /** + * #Pagination + 采用分页的形式分隔长列表,每次只加载一个页面。 + + ## 何时使用 + + - 当加载/渲染所有数据将花费很多时间时; + - 可切换页码浏览数据。*/ + export class Pagination extends React.Component { + render(): JSX.Element + } + + + + + // Popconfirm + enum Placement { + top, left, right, bottom + } + interface PopconfirmProps { + /** + * 气泡框位置,可选 `top/left/right/bottom` + * + * @type {(Placement | string)} + */ + placement?: Placement | string, + /** 确认框的描述*/ + title?: string, + /** 点击确认的回调*/ + onConfirm?: Function, + onCancel?: Function, + /** 显示隐藏的回调*/ + onVisibleChange?: (visible: boolean) => void, + /** 确认按钮文字*/ + okText?: string, + /** 取消按钮文字*/ + cancelText?: string + } + /** + * #Popconfirm + 点击元素,弹出气泡式的确认框。 + + ## 何时使用 + + 目标元素的操作需要用户进一步的确认时,在目标元素附近弹出浮层提示,询问用户。 + + 和 `confirm` 弹出的全屏居中模态对话框相比,交互形式更轻量。 + */ + export class Popconfirm extends React.Component { + render(): JSX.Element + } + + + + + // Popover + enum Trigger { + hover, focus, click + } + enum PopoverPlacement { + top, + left, right, bottom, + topLeft, topRight, bottomLeft, bottomRight, + leftTop, leftBottom, rightTop, rightBottom + } + interface PopoverProps { + /** 触发行为,可选 `hover/focus/click` */ + trigger?: Trigger | string, + /** 气泡框位置,可选 `top/left/right/bottom` `topLeft/topRight/bottomLeft/bottomRight` `leftTop/leftBottom/rightTop/rightBottom`*/ + placement?: PopoverPlacement | string, + /** 卡片标题*/ + title?: React.ReactNode | string, + /** 卡片内容*/ + overlay?: React.ReactNode | string, + prefixCls?: string, + /** 用于手动控制浮层显隐*/ + visible?: boolean, + /** 显示隐藏改变的回调*/ + onVisibleChange?: Function + } + /** + * #Popover + 点击/鼠标移入元素,弹出气泡式的卡片浮层。 + + ## 何时使用 + + 当目标元素有进一步的描述和相关操作时,可以收纳到卡片中,根据用户的操作行为进行展现。 + + 和 `Tooltip` 的区别是,用户可以对浮层上的元素进行操作,因此它可以承载更复杂的内容,比如链接或按钮等。 + */ + export class Popover extends React.Component { + render(): JSX.Element + } + + + + + // Progress + enum ProgressStatus { + normal, + exception, + active + } + + interface LineProps { + /** 百分比*/ + percent: number, + /** 内容的模板函数*/ + format?: (percent: any) => void, + /** 状态,可选:normal、exception、active*/ + status?: ProgressStatus | string, + /** 进度条线的宽度,单位是px*/ + strokeWidth?: number, + /** 是否显示进度数值和状态图标*/ + showInfo?: boolean + } + export class Line extends React.Component { + render(): JSX.Element + } + + interface CircleProps { + /** 百分比*/ + percent: number, + /** 内容的模板函数*/ + format?: (percent: any) => void, + /** 状态,可选:normal、exception*/ + status?: ProgressStatus | string, + /** 进度条线的宽度,单位是进度条画布宽度的百分比*/ + strokeWidth?: number, + /** 必填,进度条画布宽度,单位px。这里没有提供height属性设置,Line型高度就是strokeWidth,Circle型高度等于width*/ + width?: number + } + export class Circle extends React.Component { + render(): JSX.Element + } + /** + * #Progress + 展示操作的当前进度。 + + ## 何时使用 + + 在操作需要较长时间才能完成时,为用户显示该操作的当前进度和状态。 + + * 当一个操作会打断当前界面,或者需要在后台运行,且耗时可能超过2秒时; + * 当需要显示一个操作完成的百分比时。*/ + export const Progress: { + Line: typeof Line, + Circle: typeof Circle + } + + + // QueueAnim + interface QueueAnimProps { + /** 动画内置参数 `left` `right` `top` `bottom` `scale` `scaleBig` `scaleX` `scaleY`*/ + type?: string | Array, + /** 配置动画参数 如 `{opacity:[1, 0],translateY:[0, -30]}` 具体参考 [velocity](http://julian.com/research/velocity) 的写法*/ + animConfig?: Object | Array, + /** 整个动画的延时,以毫秒为单位*/ + delay?: number | Array, + /** 每个动画的时间,以毫秒为单位*/ + duration?: number | Array, + /** 每个动画的间隔时间,以毫秒为单位*/ + interval?: number | Array, + /** 出场时是否倒放,从最后一个 dom 开始往上播放 */ + leaveReverse?: boolean, + /** 动画的缓动函数,[查看详细](http://julian.com/research/velocity/#easing)*/ + ease?: string | Array, + /** 进出场动画进行中的类名*/ + animatingClassName?: Array, + /** QueueAnim 替换的标签名*/ + component?: string + } + /** + * #QueueAnim + 通过简单的配置对一组元素添加串行的进场动画效果。 + + ## 何时使用 + + - 从内容A到内容B的转变过程时能有效的吸引用户注意力,突出视觉中心,提高整体视觉效果。 + + - 小的信息元素排布或块状较多的情况下,根据一定的路径层次依次进场,区分维度层级,来凸显量级,使页面转场更加流畅和舒适,提高整体视觉效果和产品的质感。 + + - 特别适合首页和需要视觉展示效果的宣传页,以及单页应用的切换页面动效。 + */ + export class QueueAnim extends React.Component { + render(): JSX.Element + } + + + + + // Radio + enum RadioGroupSize { + large, + default, + small + } + interface RadioGroupProps { + /** 选项变化时的回调函数*/ + onChange?: (e: Event) => void, + /** 用于设置当前选中的值*/ + value?: string, + /** 默认选中的值*/ + defaultValue?: string, + /** 大小,只对按钮样式生效*/ + size?: RadioGroupSize | string + } + export class RadioGroup extends React.Component { + render(): JSX.Element + } + + + interface RadioProps { + /** 指定当前是否选中*/ + checked?: boolean, + /** 初始是否选中*/ + defaultChecked?: boolean, + /** 根据 value 进行比较,判断是否选中 */ + value?: any + } + /** + * #Radio + 单选框。 + + ## 何时使用 + + - 用于在多个备选项中选中单个状态。 + - 和 Select 的区别是,Radio 所有选项默认可见,方便用户在比较中选择,因此选项不宜过多。 + */ + export class Radio extends React.Component { + static Group: typeof RadioGroup + static Button: typeof Button + render(): JSX.Element + } + + + + // Select + interface SelectOptionProps { + /** 是否禁用*/ + disabled?: boolean, + /** 如果 react 需要你设置此项,此项值与 value 的值相同,然后可以省略 value 设置*/ + key?: string, + /** 默认根据此属性值进行筛选*/ + value: string + } + export class SelectOption extends React.Component { + render(): JSX.Element + } + + interface SelectOptGroupProps { + /** 组名*/ + label: string | React.ReactNode, + key?: string + } + export class SelectOptGroup extends React.Component { + render(): JSX.Element + } + + interface SelectProps { + /** 指定当前选中的条目*/ + value?: string | Array, + /** 指定默认选中的条目*/ + defaultValue?: string | Array, + /** 支持多选*/ + multiple?: boolean, + /** 支持清除, 单选模式有效*/ + allowClear?: boolean, + /** 是否根据输入项进行筛选,可为一个函数,返回满足要求的 option 即可*/ + filterOption?: boolean | Function, + /** 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配*/ + tags?: boolean, + /** 被选中时调用,参数为选中项的 value 值 */ + onSelect?: (value: any, option: any) => void, + /** 取消选中时调用,参数为选中项的 option value 值,仅在 multiple 或 tags 模式下生效*/ + onDeselect?: (value: any, option: any) => void, + /** 选中option,或input的value变化(combobox 模式下)时,调用此函数*/ + onChange?: (value: any, label: any) => void, + /** 文本框值变化时回调*/ + onSearch?: (value: string) => void, + /** 选择框默认文字*/ + placeholder?: string, + /** 搜索框默认文字*/ + searchPlaceholder?: string, + /** 当下拉列表为空时显示的内容*/ + notFoundContent?: string, + /** 下拉菜单和选择器同宽*/ + dropdownMatchSelectWidth?: boolean, + /** 搜索时过滤对应的 option 属性,如设置为 children 表示对内嵌内容进行搜索*/ + optionFilterProp?: string, + /** 输入框自动提示模式*/ + combobox?: SVGSymbolElement, + /** 选择框大小,可选 `large` `small` */ + size?: string, + /** 在下拉中显示搜索框*/ + showSearch?: boolean, + /** 是否禁用*/ + disabled?: boolean, + style?: Object + } + /** + * #Select + 类似 Select2 的选择器。 + + ## 何时使用 + + 弹出一个下拉菜单给用户选择操作,用于代替原生的选择器,或者需要一个更优雅的多选器时。*/ + export class Select extends React.Component { + static Option: typeof SelectOption + static OptGroup: typeof SelectOptGroup + render(): JSX.Element + } + + + + // Slider + interface SliderProps { + /** 最小值*/ + min?: number, + /** 最大值*/ + max?: number, + /** 步长,取值必须大于 0,并且可被 (max - min) 整除。当 `marks` 不为空对象时,可以设置 `step` 为 `null`,此时 Slider 的可选值仅有 marks 标出来的部分。*/ + step?: number, + /** 分段标记,key 的类型必须为 `Number` 且取值在闭区间 [min, max] 内*/ + marks?: { key: number, value: any }, + /** 设置当前取值。当 `range` 为 `false` 时,使用 `Number`,否则用 `[Number, Number]`*/ + value?: number | Array, + /** 设置当前取值。当 `range` 为 `false` 时,使用 `Number`,否则用 `[Number, Number]`*/ + defaultValue?: number | Array, + /** `marks` 不为空对象时有效,值为 true 时表示值为包含关系,false 表示并列*/ + included?: boolean, + /** 值为 `true` 时,滑块为禁用状态*/ + disabled?: boolean, + /** 当 `range` 为 `true` 时,该属性可以设置是否允许两个滑块交换位置。*/ + allowCross?: boolean, + /** 当 Slider 的值发生改变时,会触发 onChange 事件,并把改变后的值作为参数传入。*/ + onChange?: Function, + /** 与 `onmouseup` 触发时机一致,把当前值作为参数传入。*/ + onAfterChange?: Function, + /** Slider 会把当前值传给 `tipFormatter`,并在 Tooltip 中显示 `tipFormatter` 的返回值,若为 null,则隐藏 Tooltip。*/ + tipFormatter?: Function | any, + range?: boolean + } + /** + * #Slider + 滑动型输入器,展示当前值和可选范围。 + + ## 何时使用 + + 当用户需要在数值区间/自定义区间内进行选择时,可为连续或离散值。*/ + export class Slider extends React.Component { + render(): JSX.Element + } + + + + + // Spin + interface SpinProps { + /** spin组件中点的大小,可选值为 small default large*/ + size?: string, + /** 用于内嵌其他组件的模式,可以关闭 loading 效果*/ + spining?: boolean + } + /** + * #Spin + 用于页面和区块的加载中状态。 + + ## 何时使用 + + 页面局部处于等待异步数据或正在渲染过程时,合适的加载动效会有效缓解用户的焦虑。 + */ + export class Spin extends React.Component { + render(): JSX.Element + } + + + + + // Steps + enum StepStatus { + wait, process, finish + } + interface StepProps { + /** 可选参数,指定状态。当不配置该属性时,会使用父Steps元素的current来自动指定状态。*/ + status?: StepStatus | string, + /** 必要参数,标题。*/ + title: string | React.ReactNode, + /** 可选参数,步骤的详情描述。*/ + description?: string | React.ReactNode, + /** 可选参数,步骤的Icon。如果不指定,则使用默认的样式。*/ + icon?: string | React.ReactNode + } + export class Step extends React.Component { + render(): JSX.Element + } + + interface StepsProps { + /** 可选参数,指定当前处理正在执行状态的步骤,从0开始记数。在子Step元素中,可以通过status属性覆盖状态。*/ + current?: number, + /** 可选参数,指定大小(目前只支持普通和迷你两种大小)。 small, default */ + size?: string, + /** 可选参数,指定步骤条方向(目前支持水平和竖直两种方向,默认水平方向)。*/ + direction?: string, + /** 可选参数,指定步骤的详细描述文字的最大宽度。*/ + maxDescriptionWidth?: number + + } + /** + * #Steps + 引导用户按照流程完成任务的导航条。 + + ## 何时使用 + + 当任务复杂或者存在先后关系时,将其分解成一系列步骤,从而简化任务。*/ + export class Steps extends React.Component { + static Step: typeof Step + render(): JSX.Element + } + + + + // Switch + interface SwitchProps { + /** 指定当前是否选中*/ + checked?: boolean, + /** 初始是否选中*/ + defaultChecked?: boolean, + /** 变化时回调函数*/ + onChange?: (checked: boolean) => void, + /** 选中时的内容*/ + checkedChildren?: React.ReactNode, + /** 非选中时的内容*/ + unCheckedChildren?: React.ReactNode, + /** 开关大小*/ + size?: string + } + /** + * #Switch + 开关选择器。 + + ## 何时使用 + + - 需要表示开关状态/两种状态之间的切换时; + - 和 `checkbox `的区别是,切换 `switch` 会直接触发状态改变,而 `checkbox` 一般用于状态标记,需要和提交操作配合。 + */ + export class Switch extends React.Component { + render(): JSX.Element + } + + + + + // Table + enum RowSelectionType { + checkbox, + radio + } + type SelectedRowKeys = Array + interface RowSelection { + type?: RowSelectionType | string, + selectedRowKeys?: SelectedRowKeys, + onChange?: (selectedRowKeys: SelectedRowKeys, selectedRows: any) => void, + getCheckboxProps?: (record: any) => void, + onSelect?: (record: any, selected: any, selectedRows: any) => void, + onSelectAll?: (rselectedecord: any, selectedRows: any, changeRows: any) => void + } + interface Columns { + /** React 需要的 key,建议设置*/ + key?: string, + /** 列头显示文字*/ + title?: string | React.ReactNode, + /** 列数据在数据项中对应的 key*/ + dataIndex?: string, + /** 生成复杂数据的渲染函数,参数分别为当前列的值,当前列数据,列索引,@return里面可以设置表格[行/列合并](#demo-colspan-rowspan)*/ + render?: (text?: any, record?: any, index?: number) => React.ReactNode, + /** 表头的筛选菜单项*/ + filters?: Array, + /** 本地模式下,确定筛选的运行函数*/ + onFilter?: Function, + /** 是否多选*/ + filterMultiple?: boolean, + /** 排序函数,本地排序使用一个函数,需要服务端排序可设为 true */ + sorter?: boolean | Function, + /** 表头列合并,设置为 0 时,不渲染*/ + colSpan?: number, + /** 列宽度*/ + width?: string | number, + /** 列的 className*/ + className?: string + } + interface TableProps { + /** 列表项是否可选择*/ + rowSelection?: RowSelection, + /** 分页器*/ + pagination?: Object, + /** 正常或迷你类型 : `default` or `small` */ + size?: string, + /** 数据数组*/ + dataSource: Array, + /** 表格列的配置描述*/ + columns: Columns, + /** 表格行 key 的取值*/ + rowKey?: (record: any, index: number) => string, + /** 额外的展开行*/ + expandedRowRender?: Function, + /** 默认展开的行*/ + defaultExpandedRowKeys?: Array, + /** 分页、排序、筛选变化时触发*/ + onChange?: (pagination: Object, filters: any, sorter: any) => void, + /** 页面是否加载中*/ + loading?: boolean, + /** 默认文案设置,目前包括排序、过滤、空数据文案: `{ filterConfirm: '确定', filterReset: '重置', emptyText: '暂无数据' }` */ + locale?: Object, + /** 展示树形数据时,每层缩进的宽度,以 px 为单位*/ + indentSize?: number, + /** 处理行点击事件*/ + onRowClick?: (record: any, index: number) => void, + /** 是否固定表头*/ + useFixedHeader?: boolean, + /** 是否展示外边框和列边框*/ + bordered?: boolean, + /** 是否显示表头*/ + showHeader?: boolean, + /** 表格底部自定义渲染函数*/ + footer?: (currentPageData: Object) => void + + } + /** + * #Table + 展示行列数据。 + + ## 何时使用 + + - 当有大量结构化的数据需要展现时; + - 当需要对数据进行排序、搜索、分页、自定义操作等复杂行为时。*/ + export class Table extends React.Component { + render(): JSX.Element + } + + + + // Tabs + interface TabPaneProps { + /** 选项卡头显示文字*/ + tab: React.ReactNode | string + } + export class TabPane extends React.Component { + render(): JSX.Element + } + + enum TabsType { + line, card, 'editable-card' + } + enum TabsPosition { + top, + right, + bottom, + left + } + interface TabsProps { + /** 当前激活 tab 面板的 key */ + activeKey?: string, + /** 初始化选中面板的 key,如果没有设置 activeKey*/ + defaultActiveKey?: string, + /** 切换面板的回调*/ + onChange?: Function, + /** tab 被点击的回调 */ + onTabClick?: Function, + /** tab bar 上额外的元素 */ + tabBarExtraContent?: React.ReactNode, + /** 页签的基本样式,可选 `line`、`card` `editable-card` 类型*/ + type?: TabsType | string, + /** 页签位置,可选值有 `top` `right` `bottom` `left`*/ + tabPosition?: TabsPosition | string, + /** 新增和删除页签的回调,在 `type="editable-card"` 时有效*/ + onEdit?: (targetKey: string, action: any) => void + } + /** + * #Tabs + 选项卡切换组件。 + + ## 何时使用 + + 提供平级的区域将大块内容进行收纳和展现,保持界面整洁。 + + Ant Design 依次提供了三级选项卡,分别用于不同的场景。 + + - 卡片式的页签,提供可关闭的样式,常用于容器顶部。 + - 标准线条式页签,用于容器内部的主功能切换,这是最常用的 Tabs。 + - [RadioButton](/components/radio/#demo-radiobutton) 可作为更次级的页签来使用。*/ + export class Tabs extends React.Component { + static TabPane: typeof TabPane + render(): JSX.Element + } + + + + + // Tag + interface TagProps { + /** 标签是否可以关闭*/ + closable?: boolean, + /** 关闭时的回调*/ + onClose?: Function, + /** 动画关闭后的回调*/ + afterClose?: Function, + /** 标签的色彩*/ + color?: string + } + /** + * #Tag + 进行标记和分类的小标签。 + + ## 何时使用 + + - 用于标记事物的属性和维度。 + - 进行分类。*/ + export class Tag extends React.Component { + render(): JSX.Element + } + + + + + + + // TimePicker + interface TimePickerProps { + /** 默认时间*/ + value?: string | Date, + /** 初始默认时间*/ + defaultValue?: string | Date, + /** 展示的时间格式 : "HH:mm:ss"、"HH:mm"、"mm:ss" */ + format?: string, + /** 时间发生变化的回调*/ + onChange?: (Date: Date) => void, + /** 禁用全部操作*/ + disabled?: boolean, + /** 没有值的时候显示的内容*/ + placeholder?: string, + /** 国际化配置*/ + locale?: Object, + /** 隐藏禁止选择的选项*/ + hideDisabledOptions?: boolean, + /** 禁止选择部分小时选项*/ + disabledHours?: Function, + /** 禁止选择部分分钟选项*/ + disabledMinutes?: Function, + /** 禁止选择部分秒选项*/ + disabledSeconds?: Function + + } + /** + * #TimePicker + 输入或选择时间的控件。 + + 何时使用 + -------- + + 当用户需要输入一个时间,可以点击标准输入框,弹出时间面板进行选择。 + */ + export class TimePicker extends React.Component { + render(): JSX.Element + } + + + + + // Timeline + interface TimeLineItemProps { + /** 指定圆圈颜色。*/ + color?: string + } + export class TimeLineItem extends React.Component { + render(): JSX.Element + } + + interface TimelineProps { + /** 指定最后一个幽灵节点是否存在或内容*/ + pending?: boolean | React.ReactNode + } + /** + * #Timeline + 垂直展示的时间流信息。 + + ## 何时使用 + + - 当有一系列信息需要从上至下按时间排列时; + - 需要有一条时间轴进行视觉上的串联时;*/ + export class Timeline extends React.Component { + static Item: typeof TimeLineItem + render(): JSX.Element + } + + + + // Tooltip + + interface TooltipProps { + /** 气泡框位置,可选 `top` `left` `right` `bottom` `topLeft` `topRight` `bottomLeft` `bottomRight` `leftTop` `leftBottom` `rightTop` `rightBottom`*/ + placement?: PopoverPlacement | string, + /** 提示文字*/ + title?: string | React.ReactNode + } + /** + * #Tooltip + 简单的文字提示气泡框。 + + ## 何时使用 + + 鼠标移入则显示提示,移出消失,气泡浮层不承载复杂文本和操作。 + + 可用来代替系统默认的 `title` 提示,提供一个`按钮/文字/操作`的文案解释。*/ + export class Tooltip extends React.Component { + render(): JSX.Element + } + + + + + + // Transfer + interface TransferProps { + /** 数据源*/ + dataSource: Array, + /** 每行数据渲染函数*/ + render?: (record: Object) => any, + /** 显示在右侧框数据的key集合*/ + targetKeys: Array, + /** 变化时回调函数*/ + onChange?: (targetKeys: any, direction: string, moveKeys: any) => void, + /** 两个穿梭框的自定义样式*/ + listStyle?: Object, + /** 自定义类*/ + className?: string, + /** 标题集合,顺序从左至右*/ + titles?: Array, + /** 操作文案集合,顺序从上至下*/ + operations?: Array, + /** 是否显示搜索框*/ + showSearch?: boolean, + /** 搜索框的默认值*/ + searchPlaceholder?: string, + /** 当列表为空时显示的内容*/ + notFoundContent?: React.ReactNode | string + /** 底部渲染函数*/ + footer?: (props: any) => any + } + /** + * #Transfer + 双栏穿梭选择框。 + + ## 何时使用 + + 用直观的方式在两栏中移动元素,完成选择行为。 + */ + export class Transfer extends React.Component { + render(): JSX.Element + } + + + + + + // Tree + interface TreeNodeProps { + disabled?: boolean, + disableCheckbox?: boolean, + title?: string | React.ReactNode, + key?: string, + isLeaf?: boolean + } + export class TreeNode extends React.Component { + render(): JSX.Element + } + + interface TreeProps { + showLine?: boolean, + className?: string, + /** 是否支持多选*/ + multiple?: boolean, + /** 是否支持选中*/ + checkable?: boolean, + /** 默认展开所有树节点*/ + defaultExpandAll?: boolean, + /** 默认展开指定的树节点*/ + defaultExpandedKeys?: Array, + /** (受控)展开指定的树节点*/ + expandedKeys?: Array, + /** (受控)选中复选框的树节点*/ + checkedKeys?: Array, + /** 默认选中复选框的树节点*/ + defaultCheckedKeys?: Array, + /** (受控)设置选中的树节点*/ + selectedKeys?: Array, + /** 默认选中的树节点*/ + defaultSelectedKeys?: Array, + /** 展开/收起节点时触发 */ + onExpand?: (node: any, expanded: any, expandedKeys: any) => void, + /** 点击复选框触发*/ + onCheck?: (checkedKeys: any, e: { checked: boolean, checkedNodes: any, node: any, event: Event }) => void, + /** 点击树节点触发*/ + onSelect?: (selectedKeys: any, e: { selected: boolean, selectedNodes: any, node: any, event: Event }) => void, + /** filter some treeNodes as you need. it should return true */ + filterTreeNode?: (node: any) => boolean, + /** 异步加载数据*/ + loadData?: (node: any) => void, + /** 响应右键点击*/ + onRightClick?: (options: { event: Event, node: any }) => void, + /** 设置节点可拖拽(IE>8)*/ + draggable?: boolean, + /** 开始拖拽时调用*/ + onDragStart?: (options: { event: Event, node: any }) => void, + /** dragenter 触发时调用*/ + onDragEnter?: (options: { event: Event, node: any, expandedKeys: any }) => void, + /** dragover 触发时调用 */ + onDragOver?: (options: { event: Event, node: any }) => void, + /** dragleave 触发时调用*/ + onDragLeave?: (options: { event: Event, node: any }) => void, + /** drop 触发时调用*/ + onDrop?: (options: { event: Event, node: any, dragNode: any, dragNodesKeys: any }) => void, + } + /** + * #Tree + * 文件夹、组织架构、生物分类、国家地区等等,世间万物的大多数结构都是树形结构。使用`树控件`可以完整展现其中的层级关系,并具有展开收起选择等交互功能。 + */ + export class Tree extends React.Component { + static TreeNode: typeof TreeNode + render(): JSX.Element + } + + + + + + // TreeSelect + interface TreeSelectTreeNodeProps { + disabled?: boolean, + /** 此项必须设置(其值在整个树范围内唯一)*/ + key: string, + /** 默认根据此属性值进行筛选*/ + value?: string, + /** 树节点显示的内容*/ + title?: React.ReactNode | string, + /** 是否是叶子节点*/ + isLeaf?: boolean + } + export class TreeSelectTreeNode extends React.Component { + render(): JSX.Element + } + + type TreeData = Array<{ value: any, label: string, children: TreeData }> + interface TreeSelectProps { + style?: Object, + /** 指定当前选中的条目*/ + value?: string | Array, + /** 指定默认选中的条目*/ + defaultValue?: string | Array, + /** 支持多选*/ + multiple?: boolean, + /** 可以把随意输入的条目作为 tag,输入项不需要与下拉选项匹配*/ + tags?: boolean, + /** 被选中时调用,参数为选中项的 value 值*/ + onSelect?: (value: any) => void, + /** 选中option,或input的value变化(combobox 模式下)时,调用此函数*/ + onChange?: (value: any, label: any) => void, + /** 显示清除按钮*/ + allowClear?: boolean, + /** 文本框值变化时回调*/ + onSearch?: (value: any) => void, + /** 选择框默认文字*/ + placeholder?: string, + /** 搜索框默认文字*/ + searchPlaceholder?: string, + /** 下拉菜单的样式*/ + dropdownStyle?: Object, + /** 下拉菜单和选择器同宽*/ + dropdownMatchSelectWidth?: boolean, + /** 输入框自动提示模式*/ + combobox?: boolean, + /** 选择框大小,可选 `large` `small`*/ + size?: string, + /** 在下拉中显示搜索框*/ + showSearch?: boolean, + /** 是否禁用*/ + disabled?: boolean, + /** 默认展开所有树节点*/ + treeDefaultExpandAll?: boolean, + /** 显示checkbox*/ + treeCheckable?: boolean, + /** 是否根据输入项进行筛选,返回值true*/ + filterTreeNode?: (treeNode: any) => boolean, + /** 输入项过滤对应的 treeNode 属性*/ + treeNodeFilterProp?: string, + /** 作为显示的prop设置*/ + treeNodeLabelProp?: string, + /** treeNodes数据,如果设置则不需要手动构造TreeNode节点(如果value在整个树范围内不唯一,需要设置`key`其值为整个树范围内的唯一id*/ + treeData?: TreeData, + /** 异步加载数据*/ + loadData?: (node: any) => void + } + /** + * #TreeSelect + 树型选择控件。 + + ## 何时使用 + + 类似 Select 的选择控件,可选择的数据结构是一个树形结构时,可以使用 TreeSelect,例如公司层级、学科系统、分类目录等等。 + */ + export class TreeSelect extends React.Component { + static TreeNode: typeof TreeSelectTreeNode + render(): JSX.Element + } + + + + + + + // Upload + interface UploadProps { + /** 可选参数, 上传的文件 */ + name?: string, + /** 必选参数, 上传的地址 */ + action: string, + /** 可选参数, 上传所需参数 */ + data?: Object, + /** 可选参数, 设置上传的请求头部,IE10 以上有效*/ + headers?: Object, + /** 可选参数, 是否展示 uploadList, 默认开启 */ + showUploadList?: boolean, + /** 可选参数, 是否支持多选文件,`ie10+` 支持。开启后按住 ctrl 可选择多个文件。*/ + multiple?: boolean, + /** 可选参数, 接受上传的文件类型, 详见 input accept Attribute */ + accept?: string, + /** 可选参数, 上传文件之前的钩子,参数为上传的文件,若返回 `false` 或者 Promise 则停止上传。**注意:该方法不支持老 IE**。*/ + beforeUpload?: Function, + /** 可选参数, 上传文件改变时的状态,详见 onChange */ + onChange?: (info: Object) => void, + /** 上传列表的内建样式,支持两种基本样式 `text` or `picture` */ + listType?: string, + /** 自定义类名*/ + className?: string + + } + /** + * #Upload + 文件选择上传和拖拽上传控件。 + + ## 何时使用 + + 上传是将信息(网页、文字、图片、视频等)通过网页或者上传工具发布到远程服务器上的过程。 + + - 当需要上传一个或一些文件时。 + - 当需要展现上传的进度时。 + - 当需要使用拖拽交互时。*/ + export class Upload extends React.Component { + render(): JSX.Element + } + + + + + + +} + + +// export all antd +declare module 'antd' { + export = Antd +} +// single export point +declare module 'antd/lib/Affix' { + export default Antd.Affix +} +declare module 'antd/lib/Button' { + export default Antd.Button +} +declare module 'antd/lib/Alert' { + export default Antd.Alert +} +declare module 'antd/lib/Badge' { + export default Antd.Badge +} +declare module 'antd/lib/Breadcrumb' { + export default Antd.Breadcrumb +} +declare module 'antd/lib/Calendar' { + export default Antd.Calendar +} +declare module 'antd/lib/Carousel' { + export default Antd.Carousel +} +declare module 'antd/lib/Cascader' { + export default Antd.Cascader +} +declare module 'antd/lib/Checkbox' { + export default Antd.Checkbox +} +declare module 'antd/lib/Collapse' { + export default Antd.Collapse +} +declare module 'antd/lib/DatePicker' { + export default Antd.DatePicker +} +declare module 'antd/lib/Dropdown' { + export default Antd.Dropdown +} +declare module 'antd/lib/Icon' { + export default Antd.Icon +} +declare module 'antd/lib/Form' { + export default Antd.Form +} +declare module 'antd/lib/Input' { + export default Antd.Input +} +declare module 'antd/lib/InputNumber' { + export default Antd.InputNumber +} +declare module 'antd/lib/Row' { + export default Antd.Row +} +declare module 'antd/lib/Col' { + export default Antd.Col +} +declare module 'antd/lib/Menu' { + export default Antd.Menu +} +declare module 'antd/lib/message' { + export default Antd.message +} +declare module 'antd/lib/Modal' { + export default Antd.Modal +} +declare module 'antd/lib/notification' { + export default Antd.notification +} +declare module 'antd/lib/Pagination' { + export default Antd.Pagination +} +declare module 'antd/lib/Popconfirm' { + export default Antd.Popconfirm +} +declare module 'antd/lib/Popover' { + export default Antd.Popover +} +declare module 'antd/lib/Progress' { + export default Antd.Progress +} +declare module 'antd/lib/QueueAnim' { + export default Antd.QueueAnim +} +declare module 'antd/lib/Radio' { + export default Antd.Radio +} +declare module 'antd/lib/Select' { + export default Antd.Select +} +declare module 'antd/lib/Slider' { + export default Antd.Slider +} +declare module 'antd/lib/Spin' { + export default Antd.Spin +} +declare module 'antd/lib/Steps' { + export default Antd.Steps +} +declare module 'antd/lib/Switch' { + export default Antd.Switch +} +declare module 'antd/lib/Table' { + export default Antd.Table +} +declare module 'antd/lib/Tabs' { + export default Antd.Tabs +} +declare module 'antd/lib/Tag' { + export default Antd.Tag +} +declare module 'antd/lib/TimePicker' { + export default Antd.TimePicker +} +declare module 'antd/lib/Timeline' { + export default Antd.Timeline +} +declare module 'antd/lib/Tooltip' { + export default Antd.Tooltip +} +declare module 'antd/lib/Transfer' { + export default Antd.Transfer +} +declare module 'antd/lib/Tree' { + export default Antd.Tree +} +declare module 'antd/lib/TreeSelect' { + export default Antd.TreeSelect +} +declare module 'antd/lib/Upload' { + export default Antd.Upload +} diff --git a/any-db-transaction/any-db-transaction.d.ts b/any-db-transaction/any-db-transaction.d.ts index 8b4bccfaf9..675f18e9cc 100644 --- a/any-db-transaction/any-db-transaction.d.ts +++ b/any-db-transaction/any-db-transaction.d.ts @@ -1,7 +1,7 @@ // Type definitions for any-db-transaction 2.2.1 // Project: https://github.com/grncdr/node-any-db-transaction // Definitions by: Rogier Schouten -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -9,7 +9,7 @@ declare module "any-db-transaction" { import anyDB = require("any-db"); - module begin { + namespace begin { /** * Transaction objects are are simple wrappers around a Connection that also implement the Queryable API, * but guarantee that all queries take place within a single database transaction or not at all. Note that diff --git a/any-db/any-db.d.ts b/any-db/any-db.d.ts index 8bdd9d706f..8a64b6f323 100644 --- a/any-db/any-db.d.ts +++ b/any-db/any-db.d.ts @@ -1,7 +1,7 @@ // Type definitions for any-db 2.1.0 // Project: https://github.com/grncdr/node-any-db // Definitions by: Rogier Schouten -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/anydb-sql/anydb-sql.d.ts b/anydb-sql/anydb-sql.d.ts index 30b23d2473..6b5f0b2cd6 100644 --- a/anydb-sql/anydb-sql.d.ts +++ b/anydb-sql/anydb-sql.d.ts @@ -12,7 +12,7 @@ declare module "anydb-sql" { interface Dictionary { [key:string]:T; } - module anydbSQL { + namespace anydbSQL { export interface OrderByValueNode {} export interface ColumnDefinition { primaryKey?:boolean; diff --git a/api-error-handler/api-error-handler.d.ts b/api-error-handler/api-error-handler.d.ts index 90318acd00..96fbb16b29 100644 --- a/api-error-handler/api-error-handler.d.ts +++ b/api-error-handler/api-error-handler.d.ts @@ -1,7 +1,7 @@ // Type definitions for api-error-handler v1.0.0 // Project: https://github.com/expressjs/api-error-handler // Definitions by: Tanguy Krotoff -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/apn/apn.d.ts b/apn/apn.d.ts index ca74ce6510..cf11b13c0e 100644 --- a/apn/apn.d.ts +++ b/apn/apn.d.ts @@ -1,7 +1,7 @@ // Type definitions for node-apn // Project: https://github.com/argon/node-apn // Definitions by: Zenorbi -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module "apn" { diff --git a/appframework/appframework.d.ts b/appframework/appframework.d.ts index 66cc32e1ba..2ccdb49b1c 100644 --- a/appframework/appframework.d.ts +++ b/appframework/appframework.d.ts @@ -1,7 +1,7 @@ // Type definitions for AppFramework 2.0 // Project: http://app-framework-software.intel.com/ // Definitions by: kyo_ago -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface appFrameworkStatic { /** diff --git a/appletvjs/appletvjs.d.ts b/appletvjs/appletvjs.d.ts index 7e3847cd2e..743ad7849c 100644 --- a/appletvjs/appletvjs.d.ts +++ b/appletvjs/appletvjs.d.ts @@ -1,7 +1,7 @@ // Type definitions for AppleTVJS // Project: https://developer.apple.com/library/prerelease/tvos/documentation/TVMLJS/Reference/TVJSFrameworkReference/index.html // Definitions by: Adam Valverde -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var App: AppleTVJS.App; declare var Device: AppleTVJS.Device; @@ -10,7 +10,7 @@ declare var Settings: AppleTVJS.Settings; declare function evaluateScripts(scripts: string[], complete: (success: boolean) => void): void; -declare module AppleTVJS { +declare namespace AppleTVJS { interface App { /** @@ -98,7 +98,7 @@ declare module AppleTVJS { class Interstitial { /** The starttime of the interstitial. */ starttime: number; - + /** The duration of the interstitial. */ duration: number; } @@ -115,29 +115,29 @@ declare module AppleTVJS { } class MediaItem { - /** - * Creates a new MediaItem object from the information stored in the URL location. + /** + * Creates a new MediaItem object from the information stored in the URL location. * @type: Valid values are: audio, video. Defaults to video. * @url: The URL pointing to the media item information. * */ constructor(type: string, url?: string); - /** - * The domain that the rating applies to. + /** + * The domain that the rating applies to. * There are three valid values for this property: movie, music, and tvshow. * */ contentRatingDomain: string; - /** - * The rating for a video item. - * The rating is a value from 0-1000. This value corresponds to a specific rating - * used by different countries. For example, a rating value can represent a PG-13 + /** + * The rating for a video item. + * The rating is a value from 0-1000. This value corresponds to a specific rating + * used by different countries. For example, a rating value can represent a PG-13 * rating in the United State and a MA15+ in Australia. * */ contentRatingRanking: number; - /** - * A value indicating whether the item has explicit lyrics. + /** + * A value indicating whether the item has explicit lyrics. * This property is ignored if the MediaItem object type is video. * */ isExplicit: boolean; @@ -154,8 +154,8 @@ declare module AppleTVJS { /** The title of the media item. */ title: string; - /** - * The type of media item. + /** + * The type of media item. * The valid values for this attribute are audio and video. * */ type: string; @@ -169,11 +169,11 @@ declare module AppleTVJS { /** An array of interstitial objects. */ interstitials: Interstitial[]; - /** - * The number, in seconds, that a media item starts playing at. - * Use this to begin playing a MediaItem object at a time other than - * at the beginning of the object. If this property contains anything - * other than 0, the player displays “Resume” instead of + /** + * The number, in seconds, that a media item starts playing at. + * Use this to begin playing a MediaItem object at a time other than + * at the beginning of the object. If this property contains anything + * other than 0, the player displays “Resume” instead of * “Play from beginning” on playback. * */ resumeTime: number; @@ -352,16 +352,16 @@ declare module AppleTVJS { class Playlist { /** Returns the MediaItem located in the indicated array index. */ item(index: number): MediaItem; - + /** The number of items in the playlist. */ length: number; - + /** Removes a media item from the end of a playlist. */ pop(): MediaItem; - + /** Adds a media item to the end of a playlist. */ push(object: MediaItem): void; - + /** Deletes the indicated array elements and replaces them with the specified elements. */ splice(index: number, howManu: number, object: MediaItem): MediaItem[]; } diff --git a/applicationinsights/applicationinsights.d.ts b/applicationinsights/applicationinsights.d.ts index d5c895466d..17ca4a479f 100644 --- a/applicationinsights/applicationinsights.d.ts +++ b/applicationinsights/applicationinsights.d.ts @@ -1,7 +1,7 @@ -// Type definitions for Application Insights v0.15.8 +// Type definitions for Application Insights v0.15.12 // Project: https://github.com/Microsoft/ApplicationInsights-node.js // Definitions by: Scott Southwood -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface AutoCollectConsole { constructor(client: Client): AutoCollectConsole; @@ -28,7 +28,7 @@ interface AutoCollectRequests { } -declare module ContractsModule { +declare namespace ContractsModule { enum DataPointType { Measurement = 0, Aggregation = 1, @@ -338,7 +338,9 @@ interface Client { * @param max the max sample for this set * @param stdDev the standard deviation of the set */ - trackMetric(name: string, value: number, count?:number, min?: number, max?: number, stdDev?: number): void; + trackMetric(name: string, value: number, count?:number, min?: number, max?: number, stdDev?: number, properties?: { + [key: string]: string; + }): void; trackRequest(request: any /* http.ServerRequest */, response: any /* http.ServerResponse */, properties?: { [key: string]: string; }): void; @@ -352,7 +354,7 @@ interface Client { * @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty. * @param dependencyKind ContractsModule.DependencyKind of this dependency. Defaults to Other. * @param async True if the dependency was executed asynchronously, false otherwise. Defaults to false - * @param dependencySource ContractsModule.DependencySourceType of this dependency. Defaults to Undefined. + * @param dependencySource ContractsModule.DependencySourceType of this dependency. Defaults to Undefined. */ trackDependency(name: string, commandName: string, elapsedTimeMs: number, success: boolean, dependencyTypeName?: string, properties?: {}, dependencyKind?: any, async?: boolean, dependencySource?: number): void; /** @@ -463,4 +465,4 @@ interface ApplicationInsights { declare module "applicationinsights" { const applicationinsights: ApplicationInsights; export = applicationinsights; -} \ No newline at end of file +} diff --git a/arbiter/Arbiter-tests.ts b/arbiter/Arbiter-tests.ts index bcb3594565..fbdbe5b94a 100644 --- a/arbiter/Arbiter-tests.ts +++ b/arbiter/Arbiter-tests.ts @@ -1,7 +1,7 @@ // Type definitions for Arbiter.js 1.0 // Project: http://arbiterjs.com/ // Definitions by: Arash Shakery -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // May 22 2013 /// diff --git a/arbiter/Arbiter.d.ts b/arbiter/Arbiter.d.ts index b5bededed6..259e17767f 100644 --- a/arbiter/Arbiter.d.ts +++ b/arbiter/Arbiter.d.ts @@ -1,18 +1,18 @@ // Type definitions for Arbiter.js 1.0 // Project: http://arbiterjs.com/ // Definitions by: Arash Shakery -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // May 22 2013 -declare module ArbiterDef { +declare namespace ArbiterDef { export interface SubscribeHandler { (data: any, message: string, subscriber_context: any): void; } export interface SubscribeOptions { /** - * By default, all subscribers have a priority of 0. Higher values get higher + * By default, all subscribers have a priority of 0. Higher values get higher * priority and are executed first. Negative values are allowed. */ priority?: number; @@ -23,7 +23,7 @@ declare module ArbiterDef { async?: boolean; /** - * If your subscriber is not interested in any past messages that may have been + * If your subscriber is not interested in any past messages that may have been * persisted, you can force them to be ignored. */ persist?: boolean; @@ -32,19 +32,19 @@ declare module ArbiterDef { export interface PublishOptions { /** * By default, subscribers can return "false" to prevent subsequent subscribers from - * receiving the message. By passing cancelable:false in the options, the publisher + * receiving the message. By passing cancelable:false in the options, the publisher * can prevent canceling. */ cancelable?: boolean; /** - * If the publishers wants subscribers to be notified even if they subscribe later, + * If the publishers wants subscribers to be notified even if they subscribe later, * setting the persist flag will do that. */ persist?: boolean; /** - * If you wish to notify the subscribers but return from the publish() call before + * If you wish to notify the subscribers but return from the publish() call before * the subscriber functions execute, use asynchronous mode */ async?: boolean; @@ -63,7 +63,7 @@ declare module ArbiterDef { /** * Publishes a message to all subscribers. * Returns: true on success, false if any subscriber has thrown a js exception. - * + * * @param msg Message may be in any format, but may not contain [ ,*]. A structure like a/b/c is recommended by convention, to allow messages to be categorized. * @param data Pass data to subscribers that contains details about the message. */ diff --git a/arcgis-js-api/arcgis-js-api.d.ts b/arcgis-js-api/arcgis-js-api.d.ts index 88d68cb19f..01d8a02c12 100644 --- a/arcgis-js-api/arcgis-js-api.d.ts +++ b/arcgis-js-api/arcgis-js-api.d.ts @@ -1,7 +1,7 @@ -// Type definitions for ArcGIS API for JavaScript v3.15 +// Type definitions for ArcGIS API for JavaScript v3.16 // Project: http://js.arcgis.com // Definitions by: Esri -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "esri" { import Graphic = require("esri/graphic"); @@ -284,6 +284,68 @@ declare module "esri" { /** An array of strings which correspond to fields to include in the CSVLayer. */ outFields?: string[]; } + export interface ChooseBestFacilitiesOptions { + /** The URL to the analysis service, for example "http://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer". */ + analysisGpServer?: string; + /** The number of facilities to choose when allocating demand locations. */ + candidateCount?: number; + /** Specify how much demand every facility in the candidateFacilitiesLayer is capable of supplying. */ + candidateFacilitiesCapacity?: string; + /** String value indicating the field name on the candidateFacilitiesLayer representing how much demand each facility in the candidatesFacilitiesLayer is capable of supplying. */ + candidateFacilitiesCapacityField?: string; + /** A point layer specifying one or more locations that act as facilities by providing some kind of service. */ + candidateFacilitiesLayer?: FeatureLayer; + /** The amount of demand available at every demand locations. */ + demand?: number; + /** String value indicating the field name on the demandLocationLayer representing the amount of demand available at each demand location. */ + demandField?: string; + /** A point layer specifying the locations that have demand for facilities. */ + demandLocationLayer?: FeatureLayer; + /** Array of point layers to be used for choosing the demandLocationLayer. */ + demandLocationLayers: FeatureLayer[]; + /** When true, Travel Modes (Driving Time) is enabled for the inputLayer with the point geometries (esriGeometryPoint). */ + enableTravelModes?: boolean; + /** Array of point layers used for setting the required facilities layer and candidate facilities layer. */ + featureLayers: FeatureLayer[]; + /** Sets the selected folder of the select folder dropdown. */ + folderId?: string; + /** Sets the selected folder of the select folder dropdown. */ + folderName?: string; + /** Reference to the map. */ + map?: Map; + /** The maximum travel time or distance allowed between a demand location and its allocated facility. */ + maxTravelRange?: number; + /** String value indicating the field name on the demandLocationLayer specifying the maximum travel time or distance allowed between a demand location and its allocated facility. */ + maxTravelRangeField?: string; + /** The name of the output layer to be displayed in the result layer nameinputbox. */ + outputLayerName?: string; + /** The percentage of the total demand that you want the chosen and required facilities to capture. */ + percentDemandCoverage?: number; + /** The URL to the ArcGIS organization or Portal site where the GP server is hosted. */ + portalUrl?: string; + /** Specify how much demand every facility in the requiredFacilitiesLayer is capable of supplying. */ + requiredFacilitiesCapacity?: number; + /** A field on the requiredFacilitiesLayer representing how much demand each facility in this layer is capable of supplying. */ + requiredFacilitiesCapacityField?: string; + /** A point layer specifying one or more locations that act as facilities by providing some kind of service. */ + requiredFacilitiesLayer?: FeatureLayer; + /** Indicates whether to return the result of analysis as a client-side feature collection. */ + returnFeatureCollection?: boolean; + /** Indicates whether the "choose extent checkbox" is displayed. */ + showChooseExtent?: boolean; + /** Indicates whether to show the credit options. */ + showCredits ?: boolean; + /** Indicates whether the help links are displayed. */ + showHelp?: boolean; + /** Indicates whether to add an option to the UI that allows users to choose ready-to-use analysis layers from the Living Atlas Analysis Layers. */ + showReadyToUseLayers?: boolean; + /** Indicates whether to display a dropdown menu listing valid input analysis layers. */ + showSelectAnalysisLayer?: boolean; + /** Indicates whether the select folder dropdown will be displayed. */ + showSelectFolder?: boolean; + /** The default widget title with a custom title. */ + title?: string; + } export interface CircleOptions1 { /** Applicable when the spatial reference of the center point is either set to Web Mercator or geographic/geodesic as true would apply. */ geodesic?: boolean; @@ -525,12 +587,20 @@ declare module "esri" { locationProvider: LocationProviderBase; } export interface DataBrowserOptions { + /** Whether or not to display the hierarchy dropdown for countries with multiple hierarchies (e.g. */ + allowHierarchies?: boolean; /** Show/hide country drop down. */ countryBox?: boolean; /** Two-digit country code selected in the country drop down. */ countryID?: string; + /** The hierarchy to load for a country (e.g. */ + hierarchyID?: string; + /** Text string to display on the back button on the second and third pages of the Data Browser. */ + pageBackButton?: string; /** Selected variables array. */ selection?: string[]; + /** Whether to display the "Shopping Cart" of selected variables. */ + shoppingCart?: boolean; /** Title to show in the top left hand corner. */ title?: string; } @@ -841,28 +911,36 @@ declare module "esri" { layer: FeatureLayer; } export interface FeatureTableOptions { - /** A dGrid property. */ - allowSelectAll?: boolean; - /** A dGrid property. */ - cellNavigation?: boolean; /** Object defining the date options specifically for formatting date and time editors. */ dateOptions?: any; - /** Allows selection of a table's row via clicking a feature on the map. */ - enableLayerClick?: boolean; - /** Allows selection of a feature on a map via clicking row in the table. */ - enableLayerSelection?: boolean; + /** Sets the editing state for the FeatureTable. */ + editable?: boolean; /** The featureLayer that the table is associated with. */ featureLayer: FeatureLayer; + /** An array of objects representing field information. */ + fieldInfos?: any[]; /** Reference to the 'Options' drop-down menu. */ gridMenu?: any; + /** Object that can be used to set properties used by the underlying dgrid. */ + gridOptions?: any; /** Columns to hide by default using the dGrid ColumnHider extension. */ hiddenFields?: string[]; /** A reference to the Map. */ map?: Map; - /** A dGrid property. */ - noDataMessage?: string; - /** A dGrid property. */ - selectionMode?: string; + /** Adds additional functional menu items for the 'Options' drop-down menu. */ + menuFunctions?: any[]; + /** Attribute fields to include in the FeatureTable. */ + outFields?: string[]; + /** Displays the data type of the field right under the field label. */ + showDataTypes?: boolean; + /** Displays or hides the FeatureTable header. */ + showGridHeader?: boolean; + /** Displays or hides 'Options' drop-down menu of the FeatureTable. */ + showGridMenu?: boolean; + /** Enables an interaction between the map and the feature table. */ + syncSelection?: boolean; + /** Enables pan/zoom to selected features on the map when the table in 'sync selection' mode. */ + zoomToSelection?: boolean; } export interface FindHotSpotsOptions { /** An array of feature layer candidates to be selected as the aggregation polygon layer. */ @@ -1419,6 +1497,8 @@ declare module "esri" { popupWindowFeatures?: string; /** The ArcGIS for Portal URL. */ portalUrl?: string; + /** Indicates whether to display social logins such as Google/Facebook. */ + showSocialLogins?: boolean; } export interface ObliqueViewerOptions { /** Azimuth angle value for which to display oblique images. */ @@ -2076,7 +2156,7 @@ declare module "esri" { } export interface VisibleScaleRangeSliderOptions { /** Layer used to determine the suggested scale range and set the minScale, maxScale values. */ - layer: FeatureLayer; + layer?: Layer; /** Reference to the map. */ map: Map; /** Region of preview scale thumbnails. */ @@ -2693,6 +2773,8 @@ declare module "esri/arcgis/OAuthInfo" { popupWindowFeatures: string; /** The ArcGIS for Portal URL. */ portalUrl: string; + /** Indicates whether to display social logins like Google/Facebook. */ + showSocialLogins: boolean; /** * Creates a new OAuthInfo given the specified parameters. * @param params Various options to configure the OAuthInfo object. @@ -3815,43 +3897,56 @@ declare module "esri/dijit/FeatureTable" { import esri = require("esri"); import FeatureLayer = require("esri/layers/FeatureLayer"); import Map = require("esri/map"); + import FeatureEditResult = require("esri/layers/FeatureEditResult"); /** Creates an instance of the FeatureTable widget within the provided DOM node. */ class FeatureTable { - /** An optional dGrid property. */ - allowSelectAll: boolean; - /** An optional dGrid property. */ - cellNavigation: boolean; - /** A reference to the column objects and their parameters. */ + /** Read-only: A reference to the column objects and their parameters. */ columns: any[]; - /** Reference to the dataStore used by the dGrid. */ + /** Read-only: Reference to the dataStore used by the dGrid. */ dataStore: any; /** Object defining the date options specifically for formatting date and time editors. */ dateOptions: any; - /** Allows selection of a table's row via clicking a feature on the map. */ - enableLayerClick: boolean; - /** Allows selection of a feature on a map via clicking row in the table. */ - enableLayerSelection: boolean; + /** Sets the editing state for the FeatureTable. */ + editable: boolean; + /** Read-only: Number of records displayed in FeatureTable. */ + featureCount: number; /** The featureLayer that the table is associated with. */ featureLayer: FeatureLayer; + /** An array of objects representing field information. */ + fieldInfos: any[]; /** Reference to the dGrid. */ grid: any; /** Reference to the 'Options' drop-down menu. */ gridMenu: any; + /** Object that can be used to set properties used by the underlying dgrid. */ + gridOptions: any; /** Optional columns to hide by default using the dGrid ColumnHider extension. */ hiddenFields: string[]; - /** A reference to the primary key used by the dataStore to differentiate columns. */ + /** Read-only: A reference to the primary key used by the dataStore to differentiate columns. */ idProperty: string; /** When true, the FeatureTable widget has successfully loaded. */ loaded: boolean; /** Reference to the map. */ map: Map; - /** A dGrid property. */ - noDataMessage: string; + /** Adds additional functional menu items for the 'Options' drop-down menu. */ + menuFunctions: any[]; /** Attribute fields to include in the FeatureTable. */ outFields: string[]; - /** A dGrid property. */ - selectionMode: string; + /** Read-only: A comma delimited array of ObjectIds for the features selected in the FeatureTable. */ + selectedRowIds: number[]; + /** Read-only: Each element in the array is an object that contains name-value pair of fields and field values associated with the selected rows. */ + selectedRows: any[]; + /** Displays the data type of the field right under the field label in the column header. */ + showDataTypes: boolean; + /** Displays or hides the FeatureTable header. */ + showGridHeader: boolean; + /** Displays or hides 'Options' drop-down menu of the FeatureTable. */ + showGridMenu: boolean; + /** Enables an interaction between the map and the feature table. */ + syncSelection: boolean; + /** Enables pans to selected features on the map when the table in 'sync selection' mode. */ + zoomToSelection: boolean; /** * Creates an instance of the FeatureTable widget within the provided DOM node. * @param params Various options to configure this dijit. @@ -3860,14 +3955,34 @@ declare module "esri/dijit/FeatureTable" { constructor(params: esri.FeatureTableOptions, srcNodeRef: Node | string); /** Finalizes the creation of the widget. */ startup(): void; - /** Fired when a row is deselected. */ - on(type: "dgrid-deselect", listener: (event: { target: FeatureTable }) => void): esri.Handle; - /** Fired when the grid is refreshed. */ - on(type: "dgrid-refresh-complete", listener: (event: { target: FeatureTable }) => void): esri.Handle; - /** Fired when a row is selected. */ - on(type: "dgrid-select", listener: (event: { target: FeatureTable }) => void): esri.Handle; - /** Fired when the FeatureTable is loaded. */ + /** Fires when the grid column is resized. */ + on(type: "column-resize", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when a column is hidden or shown via 'Options' drop-down menu. */ + on(type: "column-state-change", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when grid editor field loses focus after being changed. */ + on(type: "data-change", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when grid editor is hidden. */ + on(type: "editor-hide", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when grid editor is shown. */ + on(type: "editor-show", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when editing is complete. */ + on(type: "edits-complete", listener: (event: { adds: FeatureEditResult[]; deletes: FeatureEditResult[]; updates: FeatureEditResult[]; target: FeatureTable }) => void): esri.Handle; + /** Fires when an error occurs in the grid. */ + on(type: "error", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when grid is filtered. */ + on(type: "filter", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when the FeatureTable is loaded. */ on(type: "load", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when the grid is refreshed. */ + on(type: "refresh", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when a row is deselected. */ + on(type: "row-deselect", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when a row is selected. */ + on(type: "row-select", listener: (event: { target: FeatureTable }) => void): esri.Handle; + /** Fires when the statistics dialog box shows the calculated statistics on a column with numeric data. */ + on(type: "show-statistics", listener: (event: { statistics: any; target: FeatureTable }) => void): esri.Handle; + /** Fires when a column is sorted. */ + on(type: "sort", listener: (event: { target: FeatureTable }) => void): esri.Handle; on(type: string, listener: (event: any) => void): esri.Handle; } export = FeatureTable; @@ -4549,14 +4664,14 @@ declare module "esri/dijit/Measurement" { showTool(toolName: string): void; /** Finalizes the creation of the measurement widget . */ startup(): void; - /** Fires when a measurement is made but the measurement is not complete (single-click). */ - on(type: "measure", listener: (event: { geometry: Geometry; toolName: string; unitName: string; values: number; target: Measurement }) => void): esri.Handle; + /** Fires any time the mouse pointer moves while doing a distance measurement. */ + on(type: "measure", listener: (event: { geometry: Geometry; segmentLength: number; toolName: string; unitName: string; values: number; target: Measurement }) => void): esri.Handle; /** Fired when the measurement is complete. */ on(type: "measure-end", listener: (event: { geometry: Geometry; toolName: string; unitName: string; values: number[] | number; target: Measurement }) => void): esri.Handle; /** Fires when a measurement operation begins (single-click). */ on(type: "measure-start", listener: (event: { toolName: string; unitName: string; target: Measurement }) => void): esri.Handle; /** Fires when the primary tool is changed. */ - on(type: "tool-change", listener: (event: { toolName: string; unitName: string; target: Measurement }) => void): esri.Handle; + on(type: "tool-change", listener: (event: { previousToolName: string; toolName: string; unitName: string; target: Measurement }) => void): esri.Handle; /** Fires when the units currently being used by the Measurement widget changes. */ on(type: "unit-change", listener: (event: { toolName: string; unitName: string; target: Measurement }) => void): esri.Handle; on(type: string, listener: (event: any) => void): esri.Handle; @@ -4611,6 +4726,11 @@ declare module "esri/dijit/ObliqueViewer" { * @param params Constructor options. */ constructor(params: esri.ObliqueViewerOptions); + /** + * Queries and displays the best image in a specific direction. + * @param geometry The specified input geometry needed for querying for the best image in a given azimuth direction. + */ + locate(geometry: Geometry): void; /** * Projects the input geometry to the specified spatial reference. * @param geometry The geometry to project. @@ -4720,7 +4840,7 @@ declare module "esri/dijit/OverviewMap" { * @param params Parameters that define the functionality of the OverviewMap widget. * @param srcNodeRef HTML element where the widget should be rendered. */ - constructor(params: esri.OverviewMapOptions, srcNodeRef: Node | string); + constructor(params: esri.OverviewMapOptions, srcNodeRef?: Node | string); /** Releases the resources used by the dijit. */ destroy(): void; /** Hide the overview map. */ @@ -5399,6 +5519,14 @@ declare module "esri/dijit/TimeSlider" { singleThumbAsTimeInstant(createTimeInstants: boolean): void; /** Finalizes the creation of the widget. */ startup(): void; + /** Fires when the next button is clicked or TimeSlider.next() method is invoked. */ + on(type: "next", listener: (event: { timeExtent: TimeExtent; target: TimeSlider }) => void): esri.Handle; + /** Fires when the pause button is clicked or TImeSlider.pause() method is invoked. */ + on(type: "pause", listener: (event: { timeExtent: TimeExtent; target: TimeSlider }) => void): esri.Handle; + /** Fires once when the play button is clicked or Timeslider.play() method is invoked. */ + on(type: "play", listener: (event: { timeExtent: TimeExtent; target: TimeSlider }) => void): esri.Handle; + /** Fires when the previous button is clicked or TimeSlider.previous() is invoked. */ + on(type: "previous", listener: (event: { timeExtent: TimeExtent; target: TimeSlider }) => void): esri.Handle; /** Fires when the timeExtent of the TimeSlider is changed. */ on(type: "time-extent-change", listener: (event: { timeExtent: TimeExtent; target: TimeSlider }) => void): esri.Handle; on(type: string, listener: (event: any) => void): esri.Handle; @@ -5408,13 +5536,13 @@ declare module "esri/dijit/TimeSlider" { declare module "esri/dijit/VisibleScaleRangeSlider" { import esri = require("esri"); - import FeatureLayer = require("esri/layers/FeatureLayer"); + import Layer = require("esri/layers/layer"); import Map = require("esri/map"); - /** A widget that helps set the visible scale range for a layer. */ + /** A widget that sets the displayed visible scale values. */ class VisibleScaleRangeSlider { /** Setting the layer will update the suggested scale range, minScale and maxScale. */ - layer: FeatureLayer; + layer: Layer; /** Setting this property will update the slider's minimum/maximum values and current scale indicator. */ map: Map; /** Read-only: The maxScale bound in the slider range */ @@ -5434,7 +5562,7 @@ declare module "esri/dijit/VisibleScaleRangeSlider" { /** Finalizes the creation of the widget. */ startup(): void; /** Dispatched whenever minScale or maxScale changes. */ - on(type: "scale-range-change", listener: (event: { target: VisibleScaleRangeSlider }) => void): esri.Handle; + on(type: "scale-range-change", listener: (event: { maxScale: number; minScale: number; target: VisibleScaleRangeSlider }) => void): esri.Handle; on(type: string, listener: (event: any) => void): esri.Handle; } export = VisibleScaleRangeSlider; @@ -5609,6 +5737,84 @@ declare module "esri/dijit/analysis/CalculateDensity" { export = CalculateDensity; } +declare module "esri/dijit/analysis/ChooseBestFacilities" { + import esri = require("esri"); + import AnalysisBase = require("esri/dijit/analysis/AnalysisBase"); + import FeatureLayer = require("esri/layers/FeatureLayer"); + import Map = require("esri/map"); + + /** Choose Best Facilities allows you to choose the best locations for facilities. */ + class ChooseBestFacilities extends AnalysisBase { + /** The URL to the analysis service, for example "http://analysis.arcgis.com/arcgis/rest/services/tasks/GPServer". */ + analysisGpServer: string; + /** The number of facilities to choose when allocating demand locations. */ + candidateCount: number; + /** This specifies how much demand every facility in the candidateFacilitiesLayer is capable of supplying. */ + candidateFacilitiesCapacity: string; + /** String value indicating the field name on the candidateFacilitiesLayer representing how much demand each facility in the candidatesFacilitiesLayer is capable of supplying. */ + candidateFacilitiesCapacityField: string; + /** A point layer specifying one or more locations that act as facilities by providing some kind of service. */ + candidateFacilitiesLayer: FeatureLayer; + /** The amount of demand available at every demand locations. */ + demand: number; + /** String value indicating the field name on the demandLocationLayer representing the amount of demand available at each demand location. */ + demandField: string; + /** A point layer specifying the locations that have demand for facilities. */ + demandLocationLayer: FeatureLayer; + /** Array of point layers to be used for choosing the demandLocationLayer. */ + demandLocationLayers: FeatureLayer[]; + /** When true, Travel Modes (Driving Time) is enabled for the inputLayer with the point geometries (esriGeometryPoint). */ + enableTravelModes: boolean; + /** Array of point layers used for setting the required facilities layer and candidate facilities layer. */ + featureLayers: FeatureLayer[]; + /** Sets the selected folder of the select folder dropdown. */ + folderId: string; + /** Sets the selected folder of the select folder dropdown. */ + folderName: string; + /** Reference to the map. */ + map: Map; + /** The maximum travel time or distance allowed between a demand location and its allocated facility. */ + maxTravelRange: number; + /** String value indicating the field name on the demandLocationLayer specifying the maximum travel time or distance allowed between a demand location and its allocated facility. */ + maxTravelRangeField: string; + /** The name of the output layer to be displayed in the result layer nameinputbox. */ + outputLayerName: string; + /** The percentage of the total demand that you want the chosen and required facilities to capture. */ + percentDemandCoverage: number; + /** The URL to the ArcGIS organization or Portal site where the GP server is hosted. */ + portalUrl: string; + /** Specify how much demand every facility in the requiredFacilitiesLayer is capable of supplying. */ + requiredFacilitiesCapacity: number; + /** A field on the requiredFacilitiesLayer representing how much demand each facility in this layer is capable of supplying. */ + requiredFacilitiesCapacityField: string; + /** A point layer specifying one or more locations that act as facilities by providing some kind of service. */ + requiredFacilitiesLayer: FeatureLayer; + /** Indicates whether to return the result of analysis as a client-side feature collection. */ + returnFeatureCollection: boolean; + /** Indicates whether the "choose extent checkbox" is displayed. */ + showChooseExtent: boolean; + /** Indicates whether to show the credit options. */ + showCredits: boolean; + /** Indicates whether the help links are displayed. */ + showHelp: boolean; + /** Indicates whether to add an option to the UI that allows users to choose ready-to-use analysis layers from the Living Atlas Analysis Layers. */ + showReadyToUseLayers: boolean; + /** Indicates whether to display a dropdown menu listing valid input analysis layers. */ + showSelectAnalysisLayer: boolean; + /** Indicates whether the select folder dropdown will be displayed. */ + showSelectFolder: boolean; + /** The default widget title with a custom title. */ + title: string; + /** + * Creates a new ChooseBestFacilities dijit using the given DOM node. + * @param params Various options to configure this dijit. + * @param srcNodeRef Reference or id of a HTML element that this dijit is rendered into. + */ + constructor(params: esri.ChooseBestFacilitiesOptions, srcNodeRef: Node | string); + } + export = ChooseBestFacilities; +} + declare module "esri/dijit/analysis/ConnectOriginsToDestinations" { import esri = require("esri"); import AnalysisBase = require("esri/dijit/analysis/AnalysisBase"); @@ -6762,6 +6968,8 @@ declare module "esri/dijit/geoenrichment/DataBrowser" { /** The DataBrowser widget allows users to search or browse for geoenrichment variables. */ class DataBrowser { + /** An array of the variables currently loaded in the Data Browser. */ + variables: any[]; /** * Creates a new DataBrowser dijit using the given DOM node. * @param options Optional parameters used to create the layer. @@ -10322,7 +10530,7 @@ declare module "esri/layers/RasterLayer" { /** The RasterLayer is used to display image services. */ class RasterLayer extends Layer { - /** A function that takes a pixelData object as input, processes it, and returns it. */ + /** A function that takes a pixelData object as input and processes it. */ pixelFilter: Function; /** * Creates a new RasterLayer object. @@ -11897,6 +12105,11 @@ declare module "esri/plugins/FeatureLayerStatistics" { * @param options See the Object Specifications table below for the structure of the options object. */ getSampleFeatures(options?: any): any; + /** + * Returns a promise that resolves to an object containing spatial statistics for an array of input features. + * @param params See the Object Specifications table below for the structure of the params object. + */ + getSpatialStatistics(params: any): any; /** * Find optimal scale range for viewing this layer. * @param options See the Object Specifications table below for the structure of the options object. @@ -12268,23 +12481,27 @@ declare module "esri/renderers/Renderer" { /** * Gets the color for the Graphic. * @param graphic Graphic to get color from. + * @param options This optional parameter supports colorInfo. */ - getColor(graphic: Graphic): Color; + getColor(graphic: Graphic, options?: any): Color; /** * Returns the opacity value for the specified graphic. * @param graphic Returns the opacity value appropriate for the given graphic. + * @param options This optional parameter supports opacityInfo. */ - getOpacity(graphic: Graphic): number; + getOpacity(graphic: Graphic, options?: any): number; /** * Returns the angle of rotation (in degrees) for the graphic calculated using rotationInfo. * @param graphic An input graphic for which you want to get the angle of rotation. + * @param options This optional parameter supports rotationInfo. */ - getRotationAngle(graphic: Graphic): number; + getRotationAngle(graphic: Graphic, options?: any): number; /** * Return the symbol size (in pixels) for the graphic, calculated using sizeInfo. * @param graphic The graphic for which you want to calculate the symbol size. + * @param options This optional parameter supports sizeInfo. */ - getSize(graphic: Graphic): number; + getSize(graphic: Graphic, options?: any): number; /** * Gets the symbol for the Graphic. * @param graphic Graphic to symbolize. @@ -12670,6 +12887,11 @@ declare module "esri/renderers/smartMapping" { * @param params See the object specifications table below for the structure of the params object. */ createTypeRenderer(params: any): any; + /** + * Searches the fields of an input layer or array of field objects for field names commonly used in rendering based on usage (e.g. + * @param params See the object specifications table below for details about the params object. + */ + getSuggestedField(params: any): any; }; export = smartMapping; } @@ -15155,7 +15377,7 @@ declare module "esri/tasks/RouteTask" { import esri = require("esri"); import RouteParameters = require("esri/tasks/RouteParameters"); - /** The ArcGIS JavaScript API's routeTask allows you to find routes between two or more locations and optionally get driving directions. */ + /** The ArcGIS JavaScript API's RouteTask allows you to find routes between two or more locations and optionally get driving directions. */ class RouteTask { /** URL to the ArcGIS Server REST resource that represents a network analysis service. */ url: string; @@ -15317,7 +15539,7 @@ declare module "esri/tasks/ServiceAreaTask" { declare module "esri/tasks/StatisticDefinition" { /** The StatisticDefinition class defines the type of statistics, the field used to calculate the statistics and the resulting output field name. */ class StatisticDefinition { - /** Define the field on which statistics will be calculated. */ + /** The field name or standard SQL expression on which statistics will be calculated. */ onStatisticField: string; /** Specify the output field name. */ outStatisticFieldName: string; @@ -16389,8 +16611,6 @@ declare module "esri/tasks/locator" { /** Represents a geocode service resource exposed by the ArcGIS Server REST API. */ class Locator { - /** Limit the results to one or more categories. */ - categories: string[]; /** The country to limit results to for example "US" for United States or "SE" for Sweden. */ countryCode: string; /** The spatial reference of the output geometries. */ @@ -16703,9 +16923,9 @@ declare module "esri/toolbars/draw" { * @param set When set to false, the geometry is modified to be topologically correct. */ setRespectDrawingVertexOrder(set: boolean): void; - /** Fired when the user has ended drawing. */ + /** Fired when the user has completed drawing. */ on(type: "draw-complete", listener: (event: { geographicGeometry: Geometry; geometry: Geometry; target: Draw }) => void): esri.Handle; - /** Fires when drawing is complete. */ + /** This event is deprecated. */ on(type: "draw-end", listener: (event: { geometry: Geometry; target: Draw }) => void): esri.Handle; on(type: string, listener: (event: any) => void): esri.Handle; } diff --git a/archiver/archiver.d.ts b/archiver/archiver.d.ts index e595083d65..d5133555a4 100644 --- a/archiver/archiver.d.ts +++ b/archiver/archiver.d.ts @@ -1,7 +1,7 @@ // Type definitions for archiver v0.15.0 // Project: https://github.com/archiverjs/node-archiver // Definitions by: Esri -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== diff --git a/archy/archy.d.ts b/archy/archy.d.ts index 3d989a8950..f4e13ef8a9 100644 --- a/archy/archy.d.ts +++ b/archy/archy.d.ts @@ -1,13 +1,13 @@ // Type definitions for archy // Project: https://github.com/substack/node-archy // Definitions by: vvakame -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "archy" { function archy(obj: archy.Data, prefix?: string, opts?: archy.Options): string; function archy(obj: string, prefix?: string, opts?: archy.Options): string; - module archy { + namespace archy { interface Data { label: string; nodes?: (Data | string)[]; diff --git a/argparse/argparse.d.ts b/argparse/argparse.d.ts index 7585015a23..886fef8cc9 100644 --- a/argparse/argparse.d.ts +++ b/argparse/argparse.d.ts @@ -1,7 +1,7 @@ // Type definitions for argparse v1.0.3 // Project: https://github.com/nodeca/argparse // Definitions by: Andrew Schurman -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "argparse" { export class ArgumentParser extends ArgumentGroup { diff --git a/asana/asana.d.ts b/asana/asana.d.ts index ff840700e6..61cb54d26f 100644 --- a/asana/asana.d.ts +++ b/asana/asana.d.ts @@ -1,7 +1,7 @@ // Type definitions for node-asana 0.14.0 // Project: https://github.com/Asana/node-asana // Definitions by: Qubo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// diff --git a/asciify/asciify.d.ts b/asciify/asciify.d.ts index 33f82019b1..4cef1bcc5c 100644 --- a/asciify/asciify.d.ts +++ b/asciify/asciify.d.ts @@ -1,7 +1,7 @@ // Type definitions for asciify 1.3.5 // Project: https://www.npmjs.org/package/asciify // Definitions by: Alan Norbauer -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -21,7 +21,7 @@ declare module "asciify" { function asciify(text: string, options: string, callback: AsciifyCallback): void; function asciify(text: string, options: AsciifyOptions, callback: AsciifyCallback): void; - module asciify { + namespace asciify { function getFonts(callback: (err: Error, fonts: string[]) => void): void; } diff --git a/aspnet-identity-pw/aspnet-identity-pw.d.ts b/aspnet-identity-pw/aspnet-identity-pw.d.ts index 2ecb9f07c1..390033602b 100644 --- a/aspnet-identity-pw/aspnet-identity-pw.d.ts +++ b/aspnet-identity-pw/aspnet-identity-pw.d.ts @@ -1,7 +1,7 @@ // Type definitions for aspnet-identity-pw 1.0.0 // Project: https://github.com/Syncbak-Git/aspnet-identity-pw // Definitions by: jt000 -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "aspnet-identity-pw" { diff --git a/assert/assert.d.ts b/assert/assert.d.ts index e334b87e9a..d7cb02eb38 100644 --- a/assert/assert.d.ts +++ b/assert/assert.d.ts @@ -2,12 +2,12 @@ // Project: https://github.com/Jxck/assert // Project: https://github.com/twada/power-assert // Definitions by: vvakame -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // copy from assert external module in node.d.ts declare function assert(value:any, message?:string):void; -declare module assert { +declare namespace assert { export class AssertionError implements Error { name:string; message:string; diff --git a/assertion-error/assertion-error.d.ts b/assertion-error/assertion-error.d.ts index 08217c9e54..a0295bd8b3 100644 --- a/assertion-error/assertion-error.d.ts +++ b/assertion-error/assertion-error.d.ts @@ -1,7 +1,7 @@ // Type definitions for assertion-error 1.0.0 // Project: https://github.com/chaijs/assertion-error // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'assertion-error' { class AssertionError implements Error { diff --git a/assertsharp/assertsharp.d.ts b/assertsharp/assertsharp.d.ts index e66442cf78..c4cf80e867 100644 --- a/assertsharp/assertsharp.d.ts +++ b/assertsharp/assertsharp.d.ts @@ -1,7 +1,7 @@ // Type definitions for assertsharp // Project: https://www.npmjs.com/package/assertsharp // Definitions by: Bruno Leonardo Michels -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "assertsharp" { export default class Assert { diff --git a/async-lock/async-lock-tests.ts b/async-lock/async-lock-tests.ts new file mode 100644 index 0000000000..d3eedf2fda --- /dev/null +++ b/async-lock/async-lock-tests.ts @@ -0,0 +1,22 @@ +/// + +import * as AsyncLock from "async-lock"; +const lock = new AsyncLock(); + +lock.acquire("key", (done) => { + done(); +}, (err, ret) => { /* ... */ }); + +lock.acquire("key", (done) => { + done(); +}).then(() => { /* ... */ }); + +lock.acquire([ "key1", "key2" ], (done) => { + done(); +}, (err, ret) => { /* ... */ }); + +lock.isBusy(); + +const lock2 = new AsyncLock({ timeout : 5000 }); +const lock3 = new AsyncLock({ maxPending : 5000 }); +const lock4 = new AsyncLock({ Promise: null }); diff --git a/async-lock/async-lock.d.ts b/async-lock/async-lock.d.ts new file mode 100644 index 0000000000..e5f8613c73 --- /dev/null +++ b/async-lock/async-lock.d.ts @@ -0,0 +1,30 @@ +// Type definitions for async-lock +// Project: https://github.com/rain1017/async-lock +// Definitions by: Elisée MAURER +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "async-lock" { + interface AsyncLockDoneCallback { + (err?: Error, ret?: any): void; + } + + interface AsyncLockOptions { + timeout?: number; + maxPending?: number; + domainReentrant?: boolean; + Promise?: any; + } + + class AsyncLock { + constructor(options?: AsyncLockOptions); + + acquire(key: string|string[], fn: (done: AsyncLockDoneCallback) => any, cb: AsyncLockDoneCallback, opts?: AsyncLockOptions): void; + acquire(key: string|string[], fn: (done: AsyncLockDoneCallback) => any, opts?: AsyncLockOptions): PromiseLike; + + isBusy(): boolean; + } + + namespace AsyncLock {} + + export = AsyncLock; +} diff --git a/async-writer/async-writer.d.ts b/async-writer/async-writer.d.ts index 42f82d35c4..56c5bb898b 100644 --- a/async-writer/async-writer.d.ts +++ b/async-writer/async-writer.d.ts @@ -1,7 +1,7 @@ // Type definitions for async-writer 1.4.1 // Project: https://github.com/marko-js/async-writer // Definitions by: Yuce Tekol -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -9,7 +9,7 @@ declare module 'async-writer' { import stream = require('stream'); import events = require('events'); - module async_writer { + namespace async_writer { interface EventFunction { (event: string, callback: Function): void; } diff --git a/async/async.d.ts b/async/async.d.ts index 543b3751d9..066685e3c7 100644 --- a/async/async.d.ts +++ b/async/async.d.ts @@ -1,7 +1,7 @@ // Type definitions for Async 1.4.2 // Project: https://github.com/caolan/async // Definitions by: Boris Yankov , Arseniy Maximov , Joe Herman -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Dictionary { [key: string]: T; } @@ -127,8 +127,8 @@ interface Async { doDuring(fn: AsyncVoidFunction, test: (testCallback: (error: Error, truth: boolean) => void) => void, callback: (err: any) => void): void; forever(next: (errCallback : (err: Error) => void) => void, errBack: (err: Error) => void) : void; waterfall(tasks: Function[], callback?: (err: Error, results?: any) => void): void; - compose(...fns: Function[]): void; - seq(...fns: Function[]): void; + compose(...fns: Function[]): Function; + seq(...fns: Function[]): Function; applyEach(fns: Function[], argsAndCallback: any[]): void; // applyEach(fns, args..., callback). TS does not support ... for a middle argument. Callback is optional. applyEachSeries(fns: Function[], argsAndCallback: any[]): void; // applyEachSeries(fns, args..., callback). TS does not support ... for a middle argument. Callback is optional. queue(worker: AsyncWorker, concurrency?: number): AsyncQueue; diff --git a/asyncblock/asyncblock.d.ts b/asyncblock/asyncblock.d.ts index a99eb98a17..6ec1ad1579 100644 --- a/asyncblock/asyncblock.d.ts +++ b/asyncblock/asyncblock.d.ts @@ -1,13 +1,13 @@ // Type definitions for asyncblock 2.1.23 // Project: https://github.com/scriby/asyncblock // Definitions by: Hiroki Horiuchi -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "asyncblock" { function asyncblock(f: (flow: asyncblock.IFlow) => void, callback?: (err: any, res: T) => void): void; - module asyncblock { + namespace asyncblock { export function nostack(f: (flow: asyncblock.IFlow) => void, callback?: (err: any, res: T) => void): void; export interface IFlow { diff --git a/atmosphere/atmosphere.d.ts b/atmosphere/atmosphere.d.ts index 59d743a4b9..bf26ba0db4 100644 --- a/atmosphere/atmosphere.d.ts +++ b/atmosphere/atmosphere.d.ts @@ -1,9 +1,9 @@ // Type definitions for Atmosphere v2.1.5 // Project: https://github.com/Atmosphere/atmosphere-javascript // Definitions by: Kai Toedter -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Atmosphere { +declare namespace Atmosphere { interface Atmosphere { /** * The atmosphere API is a little bit special here: the first parameter can either be diff --git a/atom-keymap/atom-keymap.d.ts b/atom-keymap/atom-keymap.d.ts index 355ea38afe..89b022a67a 100644 --- a/atom-keymap/atom-keymap.d.ts +++ b/atom-keymap/atom-keymap.d.ts @@ -1,11 +1,11 @@ // Type definitions for atom-keymap v5.1.5 // Project: https://github.com/atom/atom-keymap/ // Definitions by: Vadim Macagon -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module AtomKeymap { +declare namespace AtomKeymap { type Disposable = AtomEventKit.Disposable; /** Instance side of KeyBinding class. */ diff --git a/atom/api-docs.d.ts b/atom/api-docs.d.ts index a4fc19eea1..41ea32a277 100644 --- a/atom/api-docs.d.ts +++ b/atom/api-docs.d.ts @@ -1,7 +1,7 @@ // Type definitions for Atom API docs // Project: https://github.com/atom/atom/blob/master/build/tasks/docs-task.coffee // Definitions by: vvakame -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* How to generate. @@ -16,7 +16,7 @@ api.json example https://gist.github.com/vvakame/10f8d2f3884affc32476 */ -declare module AtomDocTypes { +declare namespace AtomDocTypes { interface Metadata { classes: { [className: string]: ClassInfo; }; } diff --git a/atom/atom.d.ts b/atom/atom.d.ts index 9483f103ca..31fa76eb4a 100644 --- a/atom/atom.d.ts +++ b/atom/atom.d.ts @@ -1,7 +1,7 @@ // Type definitions for Atom // Project: https://atom.io/ // Definitions by: vvakame -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -23,7 +23,7 @@ interface Window { profile(description:string, fn:Function):any; // return fn result } -declare module AtomCore { +declare namespace AtomCore { // https://atom.io/docs/v0.84.0/advanced/view-system interface IWorkspaceViewStatic { @@ -165,7 +165,7 @@ declare module AtomCore { } interface ICommandRegistry { - add(selector: string, name: string, callback: (event: any) => void): void; // selector:'atom-editor'|'atom-workspace' + add(target: string, commandName: Object, callback?: (event: any) => void): any; // selector:'atom-editor'|'atom-workspace' findCommands(params: Object): Object[]; dispatch(selector: any, name:string): void; } @@ -589,6 +589,7 @@ declare module AtomCore { subscriptionCounts: any; subscriptionsByObject: any; /* WeakMap */ subscriptions: Emissary.ISubscription[]; + destroy():void; mini: any; @@ -780,6 +781,7 @@ declare module AtomCore { moveCursorToNextWordBoundary():void; moveCursorToBeginningOfNextParagraph():void; moveCursorToBeginningOfPreviousParagraph():void; + moveToBottom():void; scrollToCursorPosition(options:any):any; pageUp():void; pageDown():void; diff --git a/atpl/atpl.d.ts b/atpl/atpl.d.ts index 7eae246a80..a966a8383f 100644 --- a/atpl/atpl.d.ts +++ b/atpl/atpl.d.ts @@ -1,7 +1,7 @@ // Type definitions for atpl // Project: https://github.com/soywiz/atpl.js // Definitions by: Carlos Ballesteros Velasco -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Imported from: https://github.com/soywiz/typescript-node-definitions/atpl.d.ts diff --git a/auth0-angular/auth0-angular.d.ts b/auth0-angular/auth0-angular.d.ts index 5228d706ba..fef9dbd3ef 100644 --- a/auth0-angular/auth0-angular.d.ts +++ b/auth0-angular/auth0-angular.d.ts @@ -5,7 +5,7 @@ /// -declare module auth0.angular { +declare namespace auth0.angular { interface IAuth0ClientOptions { /** @@ -65,7 +65,7 @@ declare module auth0.angular { (error: any): void; } - interface IAuth0Service { + interface IAuth0Service { /** * Hooks to internal Angular events so that a user will be redirected to the login page if trying to visit a restricted resource */ @@ -156,7 +156,7 @@ declare module auth0.angular { * Configures the auth service * @param options Client options passed into Auth0 */ - init(options: IAuth0ClientOptions): void; + init(options: IAuth0ClientOptions): void; /** * @param event Name of the event to handle. @@ -164,4 +164,4 @@ declare module auth0.angular { */ on(event: string, handler: (...args: any[]) => any): void; } -} \ No newline at end of file +} diff --git a/auth0.lock/auth0.lock.d.ts b/auth0.lock/auth0.lock.d.ts index 3269103ab1..15f767984b 100644 --- a/auth0.lock/auth0.lock.d.ts +++ b/auth0.lock/auth0.lock.d.ts @@ -1,7 +1,7 @@ // Type definitions for Auth0Widget.js // Project: http://auth0.com // Definitions by: Robert McLaws -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -78,6 +78,6 @@ interface Auth0LockStatic { declare var Auth0Lock: Auth0LockStatic; -declare module "Auth0Lock" { +declare module "auth0-lock" { export = Auth0Lock; } diff --git a/auth0.widget/auth0.widget.d.ts b/auth0.widget/auth0.widget.d.ts index d45c3a2121..20694526c3 100644 --- a/auth0.widget/auth0.widget.d.ts +++ b/auth0.widget/auth0.widget.d.ts @@ -1,7 +1,7 @@ // Type definitions for Auth0Widget.js // Project: http://auth0.com // Definitions by: Robert McLaws -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/auth0/auth0.d.ts b/auth0/auth0.d.ts index 1548bd06f0..0608674ae7 100644 --- a/auth0/auth0.d.ts +++ b/auth0/auth0.d.ts @@ -1,7 +1,7 @@ // Type definitions for Auth0.js // Project: http://auth0.com // Definitions by: Robert McLaws -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** Extensions to the browser Window object. */ interface Window { diff --git a/auto-launch/auto-launch.d.ts b/auto-launch/auto-launch.d.ts index 0b277c79f2..8a6af4e5dd 100644 --- a/auto-launch/auto-launch.d.ts +++ b/auto-launch/auto-launch.d.ts @@ -1,7 +1,7 @@ // Type definitions for auto-launch 0.1.18 // Project: https://github.com/Teamwork/node-auto-launch // Definitions by: rhysd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface AutoLaunchOption { /** diff --git a/autobahn/autobahn.d.ts b/autobahn/autobahn.d.ts index 7d5589dad5..9ca4c562cc 100644 --- a/autobahn/autobahn.d.ts +++ b/autobahn/autobahn.d.ts @@ -1,11 +1,11 @@ // Type definitions for AutobahnJS v0.9.6 // Project: http://autobahn.ws/js/ // Definitions by: Elad Zelingher , Andy Hawkins -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module autobahn { +declare namespace autobahn { export class Session { id: number; diff --git a/autoprefixer-core/autoprefixer-core.d.ts b/autoprefixer-core/autoprefixer-core.d.ts index 905447acfa..2463880441 100644 --- a/autoprefixer-core/autoprefixer-core.d.ts +++ b/autoprefixer-core/autoprefixer-core.d.ts @@ -1,7 +1,7 @@ // Type definitions for Autoprefixer Core 5.1.11 // Project: https://github.com/postcss/autoprefixer-core // Definitions by: Asana -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "autoprefixer-core" { interface Config { diff --git a/aws-sdk/aws-sdk.d.ts b/aws-sdk/aws-sdk.d.ts index b482cad481..eb54a5991d 100644 --- a/aws-sdk/aws-sdk.d.ts +++ b/aws-sdk/aws-sdk.d.ts @@ -1,7 +1,7 @@ // Type definitions for aws-sdk // Project: https://github.com/aws/aws-sdk-js // Definitions by: midknight41 -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Imported from: https://github.com/soywiz/typescript-node-definitions/aws-sdk.d.ts diff --git a/axios/axios.d.ts b/axios/axios.d.ts index 5b610c1c11..44083f7960 100644 --- a/axios/axios.d.ts +++ b/axios/axios.d.ts @@ -1,9 +1,9 @@ // Type definitions for axios 0.9.1 // Project: https://github.com/mzabriskie/axios // Definitions by: Marcel Buesing -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Axios { +declare namespace Axios { interface IThenable { then(onFulfilled?: (value: R) => U | IThenable, onRejected?: (error: any) => U | IThenable): IThenable; diff --git a/azure-mobile-apps/azure-mobile-apps.d.ts b/azure-mobile-apps/azure-mobile-apps.d.ts index 5441515fee..0a42fa9ecf 100644 --- a/azure-mobile-apps/azure-mobile-apps.d.ts +++ b/azure-mobile-apps/azure-mobile-apps.d.ts @@ -24,10 +24,10 @@ declare module "azure-mobile-apps/src/logger" { declare module "azure-mobile-apps/src/query" { var query: Azure.MobileApps.Query; - export = query; + export = query; } -declare module Azure.MobileApps { +declare namespace Azure.MobileApps { // the additional Platforms namespace is required to avoid collisions with the main Express namespace export module Platforms { export module Express { @@ -61,7 +61,7 @@ declare module Azure.MobileApps { delete: TableOperation; undelete: TableOperation; } - + interface TableOperation { (operationHandler: (context: Context) => void): Table; use(...middleware: Middleware[]): Table; @@ -133,7 +133,7 @@ declare module Azure.MobileApps { cors?: Configuration.Cors; notifications?: Configuration.Notifications; } - + export module Configuration { // it would be nice to have the config for various providers in separate interfaces, // but this is the simplest solution to support variations of the current setup @@ -208,7 +208,7 @@ declare module Azure.MobileApps { } // general - var nh: Azure.ServiceBus.NotificationHubService; + var nh: Azure.ServiceBus.NotificationHubService; interface Context { query: QueryJs; id: string | number; @@ -234,11 +234,11 @@ declare module Azure.MobileApps { interface ApiDefinition { authorize?: boolean; - get?: Middleware | Middleware[]; - post?: Middleware | Middleware[]; - patch?: Middleware | Middleware[]; - put?: Middleware | Middleware[]; - delete?: Middleware | Middleware[]; + get?: Middleware | Middleware[]; + post?: Middleware | Middleware[]; + patch?: Middleware | Middleware[]; + put?: Middleware | Middleware[]; + delete?: Middleware | Middleware[]; } interface Thenable { @@ -268,12 +268,12 @@ declare module Azure.MobileApps { } // additions to the Express modules -declare module Express { +declare namespace Express { interface Request { azureMobile: Azure.MobileApps.Context } - + interface Response { results?: any; } -} \ No newline at end of file +} diff --git a/azure-mobile-services-client/AzureMobileServicesClient.d.ts b/azure-mobile-services-client/AzureMobileServicesClient.d.ts index 107cb242b8..f93ca868c7 100644 --- a/azure-mobile-services-client/AzureMobileServicesClient.d.ts +++ b/azure-mobile-services-client/AzureMobileServicesClient.d.ts @@ -1,10 +1,10 @@ // Type definitions for Microsoft Windows AzureMobile Service 1.0.0 // Project: http://www.windowsazure.com/en-us/develop/mobile/ // Definitions by: Morosinotto Daniele -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace Microsoft.WindowsAzure { -declare module Microsoft.WindowsAzure { - // MobileServiceClient object based on Microsoft Azure documentation: http://msdn.microsoft.com/en-us/library/windowsazure/jj554219.aspx interface MobileServiceClient { new (applicationUrl: string, applicationKey: string): MobileServiceClient; @@ -21,7 +21,7 @@ declare module Microsoft.WindowsAzure { withFilter(serviceFilter: (request: any, next: (request: any, callback: (error:any, response: any) => void ) => void, callback: (error: any, response: any) => void ) => void ) : MobileServiceClient; invokeApi(apiName: string, options?:InvokeApiOptions): asyncPromise; } - + interface InvokeApiOptions { method?: string; @@ -29,7 +29,7 @@ declare module Microsoft.WindowsAzure { headers?: Object; parameters?: Object; } - + // User object based on Microsoft Azure documentation: http://msdn.microsoft.com/en-us/library/windowsazure/jj554220.aspx interface User { getIdentities(): any;// { [providerName: string]: { userId: string, accessToken: string, accessTokenSecret?: string }; }; @@ -78,7 +78,7 @@ declare module Microsoft.WindowsAzure { // Interface to describe Query object fluent creation based on Microsoft Azure documentation: http://msdn.microsoft.com/en-us/library/windowsazure/jj613353.aspx interface IQuery { read(paramsQS?: Object): asyncPromise; - + orderBy(...propName: string[]): IQuery; orderByDescending(...propName: string[]): IQuery; select(...propNameSelected: string[]): IQuery; diff --git a/azure-sb/azure-sb.d.ts b/azure-sb/azure-sb.d.ts index afa4074a99..1c8b087815 100644 --- a/azure-sb/azure-sb.d.ts +++ b/azure-sb/azure-sb.d.ts @@ -3,11 +3,11 @@ // Definitions by: Microsoft Azure // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Azure.ServiceBus { +declare namespace Azure.ServiceBus { interface Callback { (error: any, response: any): void; } - + interface NotificationHubRegistration { RegistrationId: string; ChannelUri?: string; @@ -19,7 +19,7 @@ declare module Azure.ServiceBus { MpnsHeaders?: any; Expiry?: Date; } - + export class NotificationHubService { new(hubName: string, endpointOrConnectionString: string, sharedAccessKeyName?: string, sharedAccessKeyValue?: string): NotificationHubService; hubName: string; @@ -46,7 +46,7 @@ declare module Azure.ServiceBus { */ } - export module Apns { + export module Apns { interface Payload { expiry?: Date; aps?: Object; @@ -55,7 +55,7 @@ declare module Azure.ServiceBus { sound?: string; payload: Object; } - + interface Service { new(service: NotificationHubService): Service; send(tags: string | string[], payload: Apns.Payload, callback?: Callback): void; @@ -79,31 +79,31 @@ declare module Azure.ServiceBus { listRegistrationsByGcmRegistrationId(gcmRegistrationId: string, optionsOrCallback?: { top: number, skip: number } | Callback, callback?: Callback): void; } } - + export module Mpns { interface Service { } } - + export module Wns { interface Payload { - text1?: string; - text2?: string; - text3?: string; + text1?: string; + text2?: string; + text3?: string; text4?: string; - image1src?: string; - image1alt?: string; - image2src?: string; - image2alt?: string; - image3src?: string; - image3alt?: string; - image4src?: string; + image1src?: string; + image1alt?: string; + image2src?: string; + image2alt?: string; + image3src?: string; + image3alt?: string; + image4src?: string; image4alt?: string; lang?: string; - type?: string; + type?: string; } - + interface Options { headers: Object; } - + interface Service { new(service: NotificationHubService): Service; sendTileSquareBlock(tags: string | string[], payload: any, optionsOrCallback?: Options | Callback, callback?: Callback): void; @@ -170,4 +170,4 @@ declare module Azure.ServiceBus { listRegistrationsByChannel(channel: string, optionsOrCallback?: { top: number, skip: number } | Callback, callback?: Callback): void; } } -} \ No newline at end of file +} diff --git a/babylonjs/babylon.d.ts b/babylonjs/babylon.d.ts index bb5b6ebaa0..7e129ee4a7 100644 --- a/babylonjs/babylon.d.ts +++ b/babylonjs/babylon.d.ts @@ -3,7 +3,7 @@ // Definitions by: David Catuhe // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module BABYLON { +declare namespace BABYLON { class _DepthCullingState { private _isDepthTestDirty; private _isDepthMaskDirty; @@ -413,7 +413,7 @@ interface HTMLMediaElement { crossOrigin: string; } -declare module BABYLON { +declare namespace BABYLON { /** * Node is the basic class for all scene objects (Mesh, Light Camera). */ @@ -493,7 +493,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { interface IDisposable { dispose(): void; } @@ -974,7 +974,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Action { triggerOptions: any; trigger: number; @@ -995,7 +995,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { /** * ActionEvent is the event beint sent when an action is triggered. */ @@ -1117,7 +1117,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Condition { _actionManager: ActionManager; _evaluationId: number; @@ -1160,7 +1160,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SwitchBooleanAction extends Action { propertyPath: string; private _target; @@ -1244,7 +1244,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class InterpolateValueAction extends Action { propertyPath: string; value: any; @@ -1259,7 +1259,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Animatable { target: any; fromFrame: number; @@ -1286,7 +1286,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class AnimationRange { name: string; from: number; @@ -1379,7 +1379,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { interface IEasingFunction { ease(gradient: number): number; } @@ -1451,7 +1451,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Analyser { SMOOTHING: number; FFT_SIZE: number; @@ -1485,7 +1485,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class AudioEngine { private _audioContext; private _audioContextInitialized; @@ -1506,7 +1506,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Sound { name: string; autoplay: boolean; @@ -1602,7 +1602,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SoundTrack { private _outputAudioNode; private _inputAudioNode; @@ -1626,7 +1626,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Bone extends Node { name: string; children: Bone[]; @@ -1656,7 +1656,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Skeleton { name: string; id: string; @@ -1695,7 +1695,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class ArcRotateCamera extends TargetCamera { alpha: number; beta: number; @@ -1787,7 +1787,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class VRCameraMetrics { hResolution: number; vResolution: number; @@ -1894,7 +1894,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class DeviceOrientationCamera extends FreeCamera { private _offsetX; private _offsetY; @@ -1913,7 +1913,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class FollowCamera extends TargetCamera { radius: number; rotationOffset: number; @@ -1940,7 +1940,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class FreeCamera extends TargetCamera { ellipsoid: Vector3; keysUp: number[]; @@ -1980,13 +1980,13 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class GamepadCamera extends UniversalCamera { constructor(name: string, position: Vector3, scene: Scene); } } -declare module BABYLON { +declare namespace BABYLON { class AnaglyphFreeCamera extends FreeCamera { interaxialDistance: number; constructor(name: string, position: Vector3, interaxialDistance: number, scene: Scene); @@ -2008,7 +2008,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class TargetCamera extends Camera { cameraDirection: Vector3; cameraRotation: Vector2; @@ -2057,7 +2057,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class TouchCamera extends FreeCamera { private _offsetX; private _offsetY; @@ -2077,7 +2077,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class UniversalCamera extends TouchCamera { gamepad: Gamepad; private _gamepads; @@ -2092,7 +2092,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class VirtualJoysticksCamera extends FreeCamera { private _leftjoystick; private _rightjoystick; @@ -2104,7 +2104,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Collider { radius: Vector3; retry: number; @@ -2141,7 +2141,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { var CollisionWorker: string; interface ICollisionCoordinator { getNewPosition(position: Vector3, velocity: Vector3, collider: Collider, maximumRetry: number, excludedMesh: AbstractMesh, onNewPosition: (collisionIndex: number, newPosition: Vector3, collidedMesh?: AbstractMesh) => void, collisionIndex: number): void; @@ -2277,7 +2277,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { var WorkerIncluded: boolean; class CollisionCache { private _meshes; @@ -2321,7 +2321,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class IntersectionInfo { bu: number; bv: number; @@ -2345,7 +2345,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class DebugLayer { private _scene; private _camera; @@ -2402,7 +2402,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class BoundingBox { minimum: Vector3; maximum: Vector3; @@ -2429,7 +2429,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class BoundingInfo { minimum: Vector3; maximum: Vector3; @@ -2447,7 +2447,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class BoundingSphere { minimum: Vector3; maximum: Vector3; @@ -2464,7 +2464,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Layer { name: string; texture: Texture; @@ -2486,7 +2486,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class LensFlare { size: number; position: number; @@ -2498,7 +2498,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class LensFlareSystem { name: string; lensFlares: LensFlare[]; @@ -2530,7 +2530,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class DirectionalLight extends Light implements IShadowLight { direction: Vector3; position: Vector3; @@ -2558,7 +2558,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class HemisphericLight extends Light { direction: Vector3; groundColor: Color3; @@ -2572,7 +2572,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { interface IShadowLight { id: string; position: Vector3; @@ -2613,7 +2613,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class PointLight extends Light implements IShadowLight { position: Vector3; private _worldMatrix; @@ -2632,7 +2632,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SpotLight extends Light implements IShadowLight { position: Vector3; direction: Vector3; @@ -2656,7 +2656,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { interface ISceneLoaderPlugin { extensions: string; importMesh: (meshesNames: any, scene: Scene, data: any, rootUrl: string, meshes: AbstractMesh[], particleSystems: ParticleSystem[], skeletons: Skeleton[]) => boolean; @@ -2688,7 +2688,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SIMDVector3 { static TransformCoordinatesToRefSIMD(vector: Vector3, transformation: Matrix, result: Vector3): void; static TransformCoordinatesFromFloatsToRefSIMD(x: number, y: number, z: number, transformation: Matrix, result: Vector3): void; @@ -2706,7 +2706,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Color3 { r: number; g: number; @@ -3229,7 +3229,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class EffectFallbacks { private _defines; private _currentRank; @@ -3303,7 +3303,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class MaterialDefines { _keys: string[]; isEqual(other: MaterialDefines): boolean; @@ -3374,7 +3374,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class MultiMaterial extends Material { subMaterials: Material[]; constructor(name: string, scene: Scene); @@ -3385,7 +3385,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class ShaderMaterial extends Material { private _shaderPath; private _options; @@ -3427,7 +3427,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class FresnelParameters { isEnabled: boolean; leftColor: Color3; @@ -3504,7 +3504,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class AbstractMesh extends Node implements IDisposable { private static _BILLBOARDMODE_NONE; private static _BILLBOARDMODE_X; @@ -3708,7 +3708,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class CSG { private polygons; matrix: Matrix; @@ -3734,7 +3734,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Geometry implements IGetSetVerticesData { id: string; delayLoadState: number; @@ -3790,7 +3790,7 @@ declare module BABYLON { static ImportGeometry(parsedGeometry: any, mesh: Mesh): void; static Parse(parsedVertexData: any, scene: Scene, rootUrl: string): Geometry; } - module Geometry.Primitives { + namespace Geometry.Primitives { class _Primitive extends Geometry { private _beingRegenerated; private _canBeRegenerated; @@ -3924,7 +3924,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class GroundMesh extends Mesh { generateOctree: boolean; private _worldInverse; @@ -3965,7 +3965,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { /** * Creates an instance based on a source mesh. */ @@ -3995,7 +3995,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class LinesMesh extends Mesh { color: Color3; alpha: number; @@ -4012,7 +4012,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class _InstancesBatch { mustReturn: boolean; visibleInstances: InstancedMesh[][]; @@ -4236,7 +4236,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { interface IGetSetVerticesData { isVerticesDataPresent(kind: string): boolean; getVerticesData(kind: string, copyWhenShared?: boolean): number[] | Int32Array | Float32Array; @@ -4411,7 +4411,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class MeshBuilder { static CreateBox(name: string, options: { width?: number; @@ -4610,7 +4610,7 @@ declare module BABYLON { } } -declare module BABYLON.Internals { +declare namespace BABYLON.Internals { class MeshLODLevel { distance: number; mesh: Mesh; @@ -4618,7 +4618,7 @@ declare module BABYLON.Internals { } } -declare module BABYLON { +declare namespace BABYLON { /** * A simplifier interface for future simplification implementations. */ @@ -4741,7 +4741,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Polygon { static Rectangle(xmin: number, ymin: number, xmax: number, ymax: number): Vector2[]; static Circle(radius: number, cx?: number, cy?: number, numberOfSides?: number): Vector2[]; @@ -4763,7 +4763,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SubMesh { materialIndex: number; verticesStart: number; @@ -4802,7 +4802,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class VertexBuffer { private _mesh; private _engine; @@ -4849,7 +4849,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Particle { position: Vector3; direction: Vector3; @@ -4864,7 +4864,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class ParticleSystem implements IDisposable { name: string; static BLENDMODE_ONEONE: number; @@ -4944,7 +4944,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SolidParticle { idx: number; color: Color4; @@ -4971,7 +4971,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { /** * Full documentation here : http://doc.babylonjs.com/tutorials/Solid_Particle_System */ @@ -5192,7 +5192,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { interface IPhysicsEnginePlugin { name: string; initialize(iterations?: number): any; @@ -5251,19 +5251,19 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class AnaglyphPostProcess extends PostProcess { constructor(name: string, ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean); } } -declare module BABYLON { +declare namespace BABYLON { class BlackAndWhitePostProcess extends PostProcess { constructor(name: string, ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean); } } -declare module BABYLON { +declare namespace BABYLON { class BlurPostProcess extends PostProcess { direction: Vector2; blurWidth: number; @@ -5271,14 +5271,14 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class ColorCorrectionPostProcess extends PostProcess { private _colorTableTexture; constructor(name: string, colorTableUrl: string, ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean); } } -declare module BABYLON { +declare namespace BABYLON { class ConvolutionPostProcess extends PostProcess { kernel: number[]; constructor(name: string, kernel: number[], ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean); @@ -5291,20 +5291,20 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class DisplayPassPostProcess extends PostProcess { constructor(name: string, ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean); } } -declare module BABYLON { +declare namespace BABYLON { class FilterPostProcess extends PostProcess { kernelMatrix: Matrix; constructor(name: string, kernelMatrix: Matrix, ratio: number, camera?: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean); } } -declare module BABYLON { +declare namespace BABYLON { class FxaaPostProcess extends PostProcess { texelWidth: number; texelHeight: number; @@ -5312,7 +5312,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class HDRRenderingPipeline extends PostProcessRenderPipeline implements IDisposable { /** * Public members @@ -5435,7 +5435,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class LensRenderingPipeline extends PostProcessRenderPipeline { /** * The chromatic aberration PostProcess id in the pipeline @@ -5526,13 +5526,13 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class PassPostProcess extends PostProcess { constructor(name: string, ratio: number, camera: Camera, samplingMode?: number, engine?: Engine, reusable?: boolean); } } -declare module BABYLON { +declare namespace BABYLON { class PostProcess { name: string; onApply: (effect: Effect) => void; @@ -5566,7 +5566,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class PostProcessManager { private _scene; private _indexBuffer; @@ -5582,7 +5582,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class RefractionPostProcess extends PostProcess { color: Color3; depth: number; @@ -5593,7 +5593,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SSAORenderingPipeline extends PostProcessRenderPipeline { /** * The PassPostProcess id in the pipeline that contains the original scene color @@ -5687,14 +5687,14 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class StereoscopicInterlacePostProcess extends PostProcess { private _stepSize; constructor(name: string, camB: Camera, postProcessA: PostProcess, isStereoscopicHoriz: boolean, samplingMode?: number); } } -declare module BABYLON { +declare namespace BABYLON { enum TonemappingOperator { Hable = 0, Reinhard = 1, @@ -5708,7 +5708,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class VolumetricLightScatteringPostProcess extends PostProcess { private _volumetricLightScatteringPass; private _volumetricLightScatteringRTT; @@ -5806,7 +5806,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class VRDistortionCorrectionPostProcess extends PostProcess { aspectRatio: number; private _isRightEye; @@ -5820,7 +5820,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class ReflectionProbe { name: string; private _scene; @@ -5841,7 +5841,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class BoundingBoxRenderer { frontColor: Color3; backColor: Color3; @@ -5859,7 +5859,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class DepthRenderer { private _scene; private _depthMap; @@ -5876,7 +5876,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class EdgesRenderer { edgesWidthScalerForOrthographic: number; edgesWidthScalerForPerspective: number; @@ -5903,7 +5903,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class OutlineRenderer { private _scene; private _effect; @@ -5914,7 +5914,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class RenderingGroup { index: number; private _scene; @@ -5930,7 +5930,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class RenderingManager { static MAX_RENDERINGGROUPS: number; private _scene; @@ -5951,7 +5951,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Sprite { name: string; position: Vector3; @@ -5984,7 +5984,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SpriteManager { name: string; cellSize: number; @@ -6013,7 +6013,7 @@ declare module BABYLON { } } -declare module BABYLON.Internals { +declare namespace BABYLON.Internals { class AndOrNotEvaluator { static Eval(query: string, evaluateCallback: (val: any) => boolean): boolean; private static _HandleParenthesisContent(parenthesisContent, evaluateCallback); @@ -6021,7 +6021,7 @@ declare module BABYLON.Internals { } } -declare module BABYLON { +declare namespace BABYLON { interface IAssetTask { onSuccess: (task: IAssetTask) => void; onError: (task: IAssetTask) => void; @@ -6106,7 +6106,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Database { private callbackManifestChecked; private currentSceneUrl; @@ -6137,7 +6137,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class FilesInput { private _engine; private _currentScene; @@ -6162,7 +6162,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Gamepads { private babylonGamepads; private oneGamepadConnected; @@ -6289,7 +6289,7 @@ interface Navigator { webkitGamepads(func?: any): any; } -declare module BABYLON { +declare namespace BABYLON { interface ILoadingScreen { displayLoadingUI: () => void; hideLoadingUI: () => void; @@ -6311,7 +6311,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SceneOptimization { priority: number; apply: (scene: Scene) => boolean; @@ -6366,14 +6366,14 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SceneSerializer { static Serialize(scene: Scene): any; static SerializeMesh(toSerialize: any, withParents?: boolean, withChildren?: boolean): any; } } -declare module BABYLON { +declare namespace BABYLON { class SmartArray { data: Array; length: number; @@ -6391,7 +6391,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class SmartCollection { count: number; items: any; @@ -6411,7 +6411,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Tags { static EnableFor(obj: any): void; static DisableFor(obj: any): void; @@ -6425,7 +6425,7 @@ declare module BABYLON { } } -declare module BABYLON.Internals { +declare namespace BABYLON.Internals { interface DDSInfo { width: number; height: number; @@ -6444,7 +6444,7 @@ declare module BABYLON.Internals { } } -declare module BABYLON.Internals { +declare namespace BABYLON.Internals { class TGATools { private static _TYPE_NO_DATA; private static _TYPE_INDEXED; @@ -6470,7 +6470,7 @@ declare module BABYLON.Internals { } } -declare module BABYLON { +declare namespace BABYLON { interface IAnimatable { animations: Array; } @@ -6617,7 +6617,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { enum JoystickAxis { X = 0, Y = 1, @@ -6676,7 +6676,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class VRDeviceOrientationFreeCamera extends FreeCamera { _alpha: number; _beta: number; @@ -6692,7 +6692,7 @@ declare module BABYLON { declare var HMDVRDevice: any; declare var PositionSensorVRDevice: any; -declare module BABYLON { +declare namespace BABYLON { class WebVRFreeCamera extends FreeCamera { _hmdDevice: any; _sensorDevice: any; @@ -6708,7 +6708,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { interface IOctreeContainer { blocks: Array>; } @@ -6731,7 +6731,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class OctreeBlock { entries: T[]; blocks: Array>; @@ -6755,7 +6755,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class ShadowGenerator { private static _FILTER_NONE; private static _FILTER_VARIANCESHADOWMAP; @@ -6813,10 +6813,10 @@ declare module BABYLON { } } -declare module BABYLON.Internals { +declare namespace BABYLON.Internals { } -declare module BABYLON { +declare namespace BABYLON { class BaseTexture { name: string; delayLoadState: number; @@ -6855,7 +6855,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class CubeTexture extends BaseTexture { url: string; coordinatesMode: number; @@ -6873,7 +6873,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class DynamicTexture extends Texture { private _generateMipMaps; private _canvas; @@ -6889,7 +6889,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class MirrorTexture extends RenderTargetTexture { mirrorPlane: Plane; private _transformMatrix; @@ -6901,7 +6901,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class RawTexture extends Texture { format: number; constructor(data: ArrayBufferView, width: number, height: number, format: number, scene: Scene, generateMipMaps?: boolean, invertY?: boolean, samplingMode?: number); @@ -6914,7 +6914,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class RenderTargetTexture extends Texture { isCube: boolean; static _REFRESHRATE_RENDER_ONCE: number; @@ -6958,7 +6958,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class Texture extends BaseTexture { static NEAREST_SAMPLINGMODE: number; static BILINEAR_SAMPLINGMODE: number; @@ -7015,7 +7015,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class VideoTexture extends Texture { video: HTMLVideoElement; private _autoLaunch; @@ -7025,7 +7025,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class CannonJSPlugin implements IPhysicsEnginePlugin { private _useDeltaForWorldStep; private _world; @@ -7059,7 +7059,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class OimoJSPlugin implements IPhysicsEnginePlugin { private _world; private _registeredMeshes; @@ -7090,7 +7090,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class PostProcessRenderEffect { private _engine; private _postProcesses; @@ -7124,7 +7124,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class PostProcessRenderPass { private _enabled; private _renderList; @@ -7141,7 +7141,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class PostProcessRenderPipeline { private _engine; private _renderEffects; @@ -7170,7 +7170,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class PostProcessRenderPipelineManager { private _renderPipelines; constructor(); @@ -7191,7 +7191,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class CustomProceduralTexture extends ProceduralTexture { private _animate; private _time; @@ -7207,7 +7207,7 @@ declare module BABYLON { } } -declare module BABYLON { +declare namespace BABYLON { class ProceduralTexture extends Texture { isCube: boolean; private _size; diff --git a/babyparse/babyparse.d.ts b/babyparse/babyparse.d.ts index b8c61c9cb7..6e8df86c3e 100644 --- a/babyparse/babyparse.d.ts +++ b/babyparse/babyparse.d.ts @@ -3,7 +3,7 @@ // Definitions by: Charles Parker // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module BabyParse { +declare namespace BabyParse { interface Static { /** * Parse a csv string or a csv file @@ -18,37 +18,37 @@ declare module BabyParse { unparse(data: Array>, config?: UnparseConfig): string; unparse(data: UnparseObject, config?: UnparseConfig): string; - + /** * Read-Only Properties */ // An array of characters that are not allowed as delimiters. BAD_DELIMETERS: Array; - + // The true delimiter. Invisible. ASCII code 30. Should be doing the job we strangely rely upon commas and tabs for. RECORD_SEP: string; - + // Also sometimes used as a delimiting character. ASCII code 31. UNIT_SEP: string; - + // Whether or not the browser supports HTML5 Web Workers. If false, worker: true will have no effect. WORKERS_SUPPORTED: boolean; - + // The relative path to Papa Parse. This is automatically detected when Papa Parse is loaded synchronously. SCRIPT_PATH: string; - + /** * Configurable Properties */ // The size in bytes of each file chunk. Used when streaming files obtained from the DOM that exist on the local computer. Default 10 MB. LocalChunkSize: string; - + // Same as LocalChunkSize, but for downloading files from remote locations. Default 5 MB. RemoteChunkSize: string; - + // The delimiter used when it is left unspecified and cannot be detected automatically. Default is comma. DefaultDelimiter: string; - + /** * On Papa there are actually more classes exposed * but none of them are officially documented @@ -69,7 +69,7 @@ declare module BabyParse { download?: boolean; // default: false skipEmptyLines?: boolean; // default: false fastMode?: boolean; // default: undefined - + // Callbacks step?(results: ParseResult, parser: Parser): void; // default: undefined complete?(results: ParseResult): void; // default: undefined @@ -85,7 +85,7 @@ declare module BabyParse { fields: Array; data: string | Array; } - + interface ParseError { type: string; // A generalization of the error code: string; // Standardized error code @@ -100,10 +100,10 @@ declare module BabyParse { fields: Array; // Array of field names truncated: boolean; // Whether preview consumed all input } - + /** * @interface ParseResult - * + * * data: is an array of rows. If header is false, rows are arrays; otherwise they are objects of data keyed by the field name. * errors: is an array of errors * meta: contains extra information about the parse, such as delimiter used, the newline sequence, whether the process was aborted, etc. Properties in this object are not guaranteed to exist in all situations @@ -117,10 +117,10 @@ declare module BabyParse { interface Parser { // Parses the input parse(input: string): any; - + // Sets the abort flag abort(): void; - + // Gets the cursor position getCharIndex(): number; } @@ -132,4 +132,4 @@ declare var Baby:BabyParse.Static; declare module "babyparse"{ var Baby:BabyParse.Static; export = Baby; -} \ No newline at end of file +} diff --git a/backbone-associations/backbone-associations-tests.ts b/backbone-associations/backbone-associations-tests.ts index 5f656b8f20..36dc6cbe87 100644 --- a/backbone-associations/backbone-associations-tests.ts +++ b/backbone-associations/backbone-associations-tests.ts @@ -3,8 +3,8 @@ // borrowed from the Backbone.Associations tutorials // separated out into modules to avoid namespace clashes -module Backbone.Associations.Tests { - module OneToOne { +namespace Backbone.Associations.Tests { + namespace OneToOne { class EmployeeWithManager extends Backbone.AssociatedModel { constructor(options?) { super(options); @@ -28,7 +28,7 @@ module Backbone.Associations.Tests { } } - module OneToMany { + namespace OneToMany { class Location extends Backbone.AssociatedModel { defaults() { return { @@ -41,7 +41,7 @@ module Backbone.Associations.Tests { } class Locations extends Backbone.Collection { - comparator(c: Backbone.Model) { + comparator = (c: Backbone.Model) => { return c.get("Number"); } } @@ -76,4 +76,4 @@ module Backbone.Associations.Tests { } } -} \ No newline at end of file +} diff --git a/backbone-associations/backbone-associations.d.ts b/backbone-associations/backbone-associations.d.ts index 2a9ecf7793..c093c01854 100644 --- a/backbone-associations/backbone-associations.d.ts +++ b/backbone-associations/backbone-associations.d.ts @@ -1,11 +1,11 @@ // Type definitions for Backbone-associations 0.6.4 // Project: https://github.com/dhruvaray/backbone-associations/ // Definitions by: Craig Brett -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Backbone { +declare namespace Backbone { export module Associations { /** Defines a 1:Many relationship type */ export var Many: string; @@ -41,7 +41,7 @@ declare module Backbone { /** A transformation function to convert the value before it is assigned to the key on the relatedModel */ map?: (...args: any[]) => any; } - + /** A Backbone model with special provision for handling relations to other models */ export class AssociatedModel extends Backbone.Model { /** Relations with their associated model */ @@ -72,4 +72,4 @@ declare module Backbone { /** Cleans up any parent relations on other AssociatedModels */ cleanup(): void; } -} \ No newline at end of file +} diff --git a/backbone-relational/backbone-relational.d.ts b/backbone-relational/backbone-relational.d.ts index af8e4e31f7..d51991e55d 100644 --- a/backbone-relational/backbone-relational.d.ts +++ b/backbone-relational/backbone-relational.d.ts @@ -1,13 +1,13 @@ // Type definitions for Backbone-relational 0.8.5 // Project: http://backbonerelational.org/ // Definitions by: Eirik Hoem -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module Backbone { +declare namespace Backbone { class RelationalModel extends Model { /** * Do not use, prefer TypeScript's extend functionality. diff --git a/backbone.layoutmanager/backbone.layoutmanager.d.ts b/backbone.layoutmanager/backbone.layoutmanager.d.ts index 5ce5481571..2051458367 100644 --- a/backbone.layoutmanager/backbone.layoutmanager.d.ts +++ b/backbone.layoutmanager/backbone.layoutmanager.d.ts @@ -7,13 +7,13 @@ /// /// -declare module Backbone { +declare namespace Backbone { interface LayoutOptions extends ViewOptions { template?: string; views?: { [viewName: string]: View }; } - + interface LayoutManagerOptions { manage?: boolean; el?: boolean; @@ -26,11 +26,11 @@ declare module Backbone { beforeRender(): void; afterRender(): void; cleanup(): void; - + fetchTemplate(path: string): (context:any)=>string; async():(compiled:(context:any)=>void)=>void; promise(): JQueryPromise; - + getAllOptions(): LayoutOptions; getView(fn?:any): any; @@ -41,13 +41,13 @@ declare module Backbone { remove(): Layout; removeView(fn:any): Layout; - + render(): Layout; // return this renderViews(): Layout; // return this setView(name: any, view: U, insert?:boolean): U; // return view setViews(views:any): Layout; // return this then(fn:()=>void):void; - + static cache(path: string, contents?: any): any; static cleanViews(views: any): void; static configure(options: LayoutManagerOptions): void; diff --git a/backbone.localstorage/backbone.localstorage.d.ts b/backbone.localstorage/backbone.localstorage.d.ts index 122c475876..25c9e4cb72 100644 --- a/backbone.localstorage/backbone.localstorage.d.ts +++ b/backbone.localstorage/backbone.localstorage.d.ts @@ -1,11 +1,11 @@ // Type definitions for backbone.localStorage 1.0.0 // Project: https://github.com/jeromegn/Backbone.localStorage // Definitions by: Louis Grignon -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Backbone { +declare namespace Backbone { interface Serializer { serialize(item: any): any; deserialize(data: any): any; diff --git a/backbone.paginator/backbone.paginator-tests.ts b/backbone.paginator/backbone.paginator-tests.ts index 413c4c3736..c05a07b9d1 100644 --- a/backbone.paginator/backbone.paginator-tests.ts +++ b/backbone.paginator/backbone.paginator-tests.ts @@ -2,7 +2,7 @@ /// /// -module BackbonePaginatorTests { +namespace BackbonePaginatorTests { class TestModel extends Backbone.Model{}; @@ -18,7 +18,7 @@ module BackbonePaginatorTests { }; - module InitializingWithNoOption { + namespace InitializingWithNoOption { class TestCollection extends Backbone.PageableCollection { constructor(){ @@ -32,7 +32,7 @@ module BackbonePaginatorTests { - module InitializingWithOptions { + namespace InitializingWithOptions { class TestCollection extends Backbone.PageableCollection { @@ -90,7 +90,7 @@ module BackbonePaginatorTests { - module Fetching { + namespace Fetching { class TestCollection extends Backbone.PageableCollection { constructor(models?: TestModel[], @@ -112,7 +112,7 @@ module BackbonePaginatorTests { - module Paging { + namespace Paging { class TestCollection extends Backbone.PageableCollection { constructor(models?: TestModel[], @@ -129,7 +129,7 @@ module BackbonePaginatorTests { var result:JQueryXHR|TestCollection = testCollection.getFirstPage(); testCollection.getFirstPage(options); - + // 'silent's type is boolean. (structural subtyping) testCollection.getFirstPage({silent: 'aa'}); // 'url's type is string. (structural subtyping) @@ -195,7 +195,7 @@ module BackbonePaginatorTests { - module Parse { + namespace Parse { class TestCollection extends Backbone.PageableCollection { constructor(models?: TestModel[], @@ -244,7 +244,7 @@ module BackbonePaginatorTests { - module Setting { + namespace Setting { class TestCollection extends Backbone.PageableCollection { constructor(models?: TestModel[], @@ -275,7 +275,7 @@ module BackbonePaginatorTests { - module Syncing { + namespace Syncing { class TestCollection extends Backbone.PageableCollection { constructor(models?: TestModel[], @@ -295,7 +295,7 @@ module BackbonePaginatorTests { - module Confllict { + namespace Confllict { var result:typeof Backbone.PageableCollection = Backbone.PageableCollection.noConflict(); diff --git a/backbone.paginator/backbone.paginator.d.ts b/backbone.paginator/backbone.paginator.d.ts index eb0a719626..b256919893 100644 --- a/backbone.paginator/backbone.paginator.d.ts +++ b/backbone.paginator/backbone.paginator.d.ts @@ -1,11 +1,11 @@ // Type definitions for backbone.paginator 2.0.2 // Project: https://github.com/backbone-paginator/backbone.paginator // Definitions by: Nyamazing -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Backbone { +declare namespace Backbone { interface PageableState { firstPage?: number; diff --git a/backbone.radio/backbone.radio.d.ts b/backbone.radio/backbone.radio.d.ts index 10947fb698..50895b0275 100644 --- a/backbone.radio/backbone.radio.d.ts +++ b/backbone.radio/backbone.radio.d.ts @@ -1,11 +1,11 @@ // Type definitions for Backbone.Radio v0.8.3 // Project: https://github.com/marionettejs/backbone.radio // Definitions by: Peter Palotas -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Backbone { +declare namespace Backbone { interface Radio { tuneIn(channelName: string): Radio; tuneOut(channelName: string): Radio; @@ -13,7 +13,7 @@ declare module Backbone { channel(channelName: string): Radio.Channel; } - module Radio { + namespace Radio { var VERSION: string; var DEBUG: boolean; @@ -89,4 +89,4 @@ declare module Backbone { stopReplying(commandName?: string, callback?: (...args: any[]) => any, context?: any): Requests; } } -} +} diff --git a/backbone/backbone-global.d.ts b/backbone/backbone-global.d.ts index c16e1a59e3..be849cee04 100644 --- a/backbone/backbone-global.d.ts +++ b/backbone/backbone-global.d.ts @@ -1,11 +1,11 @@ // Type definitions for Backbone 1.0.0 // Project: http://backbonejs.org/ // Definitions by: Boris Yankov , Natan Vivo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Backbone { +declare namespace Backbone { interface AddOptions extends Silenceable { at?: number; @@ -192,8 +192,10 @@ declare module Backbone { fetch(options?: CollectionFetchOptions): JQueryXHR; - comparator(element: TModel): number; - comparator(compare: TModel, to?: TModel): number; + /** + * Specify a model attribute name (string) or function that will be used to sort the collection. + */ + comparator: string | ((element: TModel) => number | string) | ((compare: TModel, to?: TModel) => number); add(model: {}|TModel, options?: AddOptions): TModel; add(models: ({}|TModel)[], options?: AddOptions): TModel[]; diff --git a/backbone/backbone-tests.ts b/backbone/backbone-tests.ts index 4f719f92b0..3669a6c4e1 100644 --- a/backbone/backbone-tests.ts +++ b/backbone/backbone-tests.ts @@ -120,6 +120,16 @@ class Library extends Backbone.Collection { // This model definition is here only to test type compatibility of the model, but it // is not necessary in working code as it is automatically inferred through generics. model: typeof Book; + + constructor(models?: Book[] | Object[], options?: any) { + super(models, options); + + // Test comparator allowed types. + this.comparator = "title"; + this.comparator = (model: Book) => { return 1; }; + this.comparator = (model: Book) => { return "Title"; }; + this.comparator = (model1: Book, model2: Book) => { return 1; }; + } } class Books extends Backbone.Collection { } @@ -157,8 +167,8 @@ function test_collection() { Backbone.history.start(); -module v1Changes { - module events { +namespace v1Changes { + namespace events { function test_once() { var model = new Employee; model.once('invalid', () => { }, this); @@ -186,7 +196,7 @@ module v1Changes { } } - module ModelAndCollection { + namespace ModelAndCollection { function test_url() { Employee.prototype.url = () => '/employees'; EmployeeCollection.prototype.url = () => '/employees'; @@ -214,7 +224,7 @@ module v1Changes { } } - module Model { + namespace Model { function test_validationError() { var model = new Employee; if (model.validationError) { @@ -286,7 +296,7 @@ module v1Changes { } } - module Collection { + namespace Collection { function test_fetch() { var collection = new EmployeeCollection; collection.fetch({ reset: true }); @@ -302,7 +312,7 @@ module v1Changes { } } - module Router { + namespace Router { function test_navigate() { var router = new Backbone.Router; diff --git a/backbone/backbone-with-lodash-tests.ts b/backbone/backbone-with-lodash-tests.ts index 001882ca02..e0b04880bf 100644 --- a/backbone/backbone-with-lodash-tests.ts +++ b/backbone/backbone-with-lodash-tests.ts @@ -158,8 +158,8 @@ function test_collection() { Backbone.history.start(); -module v1Changes { - module events { +namespace v1Changes { + namespace events { function test_once() { var model = new Employee; model.once('invalid', () => { }, this); @@ -187,7 +187,7 @@ module v1Changes { } } - module ModelAndCollection { + namespace ModelAndCollection { function test_url() { Employee.prototype.url = () => '/employees'; EmployeeCollection.prototype.url = () => '/employees'; @@ -215,7 +215,7 @@ module v1Changes { } } - module Model { + namespace Model { function test_validationError() { var model = new Employee; if (model.validationError) { @@ -287,7 +287,7 @@ module v1Changes { } } - module Collection { + namespace Collection { function test_fetch() { var collection = new EmployeeCollection; collection.fetch({ reset: true }); @@ -303,7 +303,7 @@ module v1Changes { } } - module Router { + namespace Router { function test_navigate() { var router = new Backbone.Router; diff --git a/backbone/backbone.d.ts b/backbone/backbone.d.ts index 3b777e581c..65e273a61f 100644 --- a/backbone/backbone.d.ts +++ b/backbone/backbone.d.ts @@ -1,7 +1,7 @@ // Type definitions for Backbone 1.0.0 // Project: http://backbonejs.org/ // Definitions by: Boris Yankov , Natan Vivo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// diff --git a/backgrid/backgrid.d.ts b/backgrid/backgrid.d.ts index d0ddc3e511..d208faf415 100644 --- a/backgrid/backgrid.d.ts +++ b/backgrid/backgrid.d.ts @@ -1,11 +1,11 @@ // Type definitions for Backgrid 0.2.6 // Project: http://backgridjs.com/ // Definitions by: Jeremy Lujan -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Backgrid { +declare namespace Backgrid { interface GridOptions { columns: Column[]; diff --git a/baconjs/baconjs.d.ts b/baconjs/baconjs.d.ts index 8cb6ba7381..50823ba422 100644 --- a/baconjs/baconjs.d.ts +++ b/baconjs/baconjs.d.ts @@ -1,7 +1,7 @@ // Type definitions for Bacon.js 0.7.0 // Project: https://baconjs.github.io/ // Definitions by: Alexander Matsievsky -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -65,7 +65,7 @@ interface JQuery { } /** @module Bacon */ -declare module Bacon { +declare namespace Bacon { /** * @function * @description Creates an [EventStream]{@link Bacon.EventStream} from a `promise` Promise object such as JQuery Ajax. This stream will contain a single value or an error, followed immediately by stream end. You can use the optional `abort` flag (i.e. ´Bacon.fromPromise(p, true)´ to have the `abort` method of the given promise be called when all subscribers have been removed from the created stream. diff --git a/barcode/barcode.d.ts b/barcode/barcode.d.ts index 5f4c6cfd8c..c2ad43eb76 100644 --- a/barcode/barcode.d.ts +++ b/barcode/barcode.d.ts @@ -1,7 +1,7 @@ // Type definitions for barcode // Project: https://github.com/samt/barcode // Definitions by: Pascal Vomhoff -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bardjs/bardjs-tests.ts b/bardjs/bardjs-tests.ts index 312b064963..b29900ad7d 100644 --- a/bardjs/bardjs-tests.ts +++ b/bardjs/bardjs-tests.ts @@ -4,7 +4,7 @@ /// /// -module bardTests { +namespace bardTests { var expect = chai.expect, assert = chai.assert; diff --git a/bardjs/bardjs.d.ts b/bardjs/bardjs.d.ts index 3d3ad5f228..4395ef6ddb 100644 --- a/bardjs/bardjs.d.ts +++ b/bardjs/bardjs.d.ts @@ -1,7 +1,7 @@ // Type definitions for bardjs 0.1.4 // Project: https://github.com/wardbell/bardjs // Definitions by: Andrew Archibald -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -10,7 +10,7 @@ /** * Module for bardjs functions */ -declare module bard { +declare namespace bard { /** * Replaces the ngMock'ed $httpBackend with the real one from ng thus * restoring the ability to issue AJAX calls to the backend with $http. diff --git a/base-x/base-x.d.ts b/base-x/base-x.d.ts index 681a058062..b6b764befe 100644 --- a/base-x/base-x.d.ts +++ b/base-x/base-x.d.ts @@ -1,7 +1,7 @@ // Type definitions for base-x v1.0.1 // Project: https://github.com/cryptocoinjs/base-x // Definitions by: Ilya Mochalov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace BaseX { interface EncodeBuffer { diff --git a/basic-auth/basic-auth.d.ts b/basic-auth/basic-auth.d.ts index e25f217e4e..911299a6c6 100644 --- a/basic-auth/basic-auth.d.ts +++ b/basic-auth/basic-auth.d.ts @@ -1,7 +1,7 @@ // Type definitions for basic-auth // Project: https://github.com/jshttp/basic-auth // Definitions by: Clément Bourgeois -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/batch-stream/batch-stream.d.ts b/batch-stream/batch-stream.d.ts index 5aa4889bc6..5b27050104 100644 --- a/batch-stream/batch-stream.d.ts +++ b/batch-stream/batch-stream.d.ts @@ -1,7 +1,7 @@ // Type definitions for batch-stream 0.1.2 // Project: https://github.com/segmentio/batch-stream // Definitions by: Nicholas Penree -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bcrypt-nodejs/bcrypt-nodejs.d.ts b/bcrypt-nodejs/bcrypt-nodejs.d.ts index 32b735d68f..6df662346a 100644 --- a/bcrypt-nodejs/bcrypt-nodejs.d.ts +++ b/bcrypt-nodejs/bcrypt-nodejs.d.ts @@ -1,7 +1,7 @@ // Type definitions for bcrypt-nodejs // Project: https://github.com/shaneGirish/bcrypt-nodejs // Definitions by: David Broder-Rodgers -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "bcrypt-nodejs" { /** diff --git a/bcrypt/bcrypt.d.ts b/bcrypt/bcrypt.d.ts index 98d68b773d..38d9604b44 100644 --- a/bcrypt/bcrypt.d.ts +++ b/bcrypt/bcrypt.d.ts @@ -1,7 +1,7 @@ // Type definitions for bcrypt // Project: https://www.npmjs.org/package/bcrypt // Definitions by: Peter Harris -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "bcrypt" { /** diff --git a/benchmark/benchmark.d.ts b/benchmark/benchmark.d.ts index 3365f335c1..c5c257aaaa 100644 --- a/benchmark/benchmark.d.ts +++ b/benchmark/benchmark.d.ts @@ -1,7 +1,7 @@ // Type definitions for Benchmark v1.0.0 // Project: http://benchmarkjs.com // Definitions by: Asana -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "benchmark" { class Benchmark { @@ -60,7 +60,7 @@ declare module "benchmark" { toString(): string; } - module Benchmark { + namespace Benchmark { export interface Options { async?: boolean; defer?: boolean; diff --git a/better-curry/better-curry.d.ts b/better-curry/better-curry.d.ts index f6342bab2d..3de4a8c9ff 100644 --- a/better-curry/better-curry.d.ts +++ b/better-curry/better-curry.d.ts @@ -1,11 +1,11 @@ // Type definitions for better-curry // Project: https://github.com/pocesar/js-bettercurry // Definitions by: Paulo Cesar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var BetterCurry: BetterCurryModule.BetterCurry; -declare module BetterCurryModule { +declare namespace BetterCurryModule { export interface DelegateOptions { as?: string; @@ -47,4 +47,4 @@ declare module 'better-curry' { var bc: BetterCurryModule.BetterCurry; export = bc; -} \ No newline at end of file +} diff --git a/bezier-easing/bezier-easing-tests.ts b/bezier-easing/bezier-easing-tests.ts index eab1fb4f15..f928fa62de 100644 --- a/bezier-easing/bezier-easing-tests.ts +++ b/bezier-easing/bezier-easing-tests.ts @@ -1,21 +1,10 @@ /// -function test_create_from_array() { - let easing: BezierEasing = BezierEasing([0, 0, 1, 0.5]); +function get_easing() { + let easing: Easing = BezierEasing(0, 0, 1, 0.5); } -function test_create_from_params() { - let easing: BezierEasing = BezierEasing(0, 0, 1, 0.5); -} - -function test_create_from_builtins() { - let easing: BezierEasing = BezierEasing.css['ease-in']; -} - -function test_methods() { - let easing: BezierEasing = BezierEasing.css['ease-in']; - let easedRatio: number = easing.get(0.5); - let points: Array = easing.getPoints(); - let stringified: string = easing.toString(); - let asCSS: string = easing.toCSS(); -} +function use_easing() { + let easing: Easing = BezierEasing(0, 0, 1, 0.5); + let eased: number = easing(1); +} \ No newline at end of file diff --git a/bezier-easing/bezier-easing.d.ts b/bezier-easing/bezier-easing.d.ts index 695368e7af..2a742daf1e 100644 --- a/bezier-easing/bezier-easing.d.ts +++ b/bezier-easing/bezier-easing.d.ts @@ -3,22 +3,8 @@ // Definitions by: brian ridley // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare interface BezierEasing { - get(ratio: number): number; - getPoints(): Array; - toString(): string; - toCSS(): string; +declare interface Easing { + (x: number): number; } -declare function BezierEasing(points: Array): BezierEasing; -declare function BezierEasing(a: number, b: number, c: number, d: number): BezierEasing; - -declare namespace BezierEasing { - let css: { - 'ease': BezierEasing, - 'linear': BezierEasing, - 'ease-in': BezierEasing, - 'ease-out': BezierEasing, - 'ease-in-out': BezierEasing - }; -} +declare function BezierEasing(mX1: number, mY1: number, mX2: number, mY2: number): Easing; diff --git a/bgiframe/typescript.bgiframe.d.ts b/bgiframe/typescript.bgiframe.d.ts index dfe4a7cc75..4959783f72 100644 --- a/bgiframe/typescript.bgiframe.d.ts +++ b/bgiframe/typescript.bgiframe.d.ts @@ -1,7 +1,7 @@ // Type definitions for bgiframe 1.0 // Project: https://github.com/sumegizoltan/BgiFrame // Definitions by: Zoltan Sumegi -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /*! The plugin based on: * @@ -12,7 +12,7 @@ * Copyright (c) 2013 Brandon Aaron (http://brandonaaron.net) */ -declare module BgiFrame { +declare namespace BgiFrame { interface ISettings { top: string; left: string; diff --git a/big-integer/big-integer-tests.ts b/big-integer/big-integer-tests.ts index 92633d2871..fd08f89a14 100644 --- a/big-integer/big-integer-tests.ts +++ b/big-integer/big-integer-tests.ts @@ -6,7 +6,7 @@ var noArgument = bigInt(), stringArgument = bigInt( "75643564363473453456342378564387956906736546456235345" ), baseArgumentInt = bigInt( "101010", 2 ), baseArgumentStr = bigInt( "101010", "2" ), - baseArgumentBi = bigInt( "101010", bigInt( 2 ) ), + baseArgumentBi = bigInt( "101010", bigInt( 2 ) ), bigIntArgument = bigInt( noArgument ); // method tests @@ -26,13 +26,13 @@ isBigInteger = x.add( 0 ); isBigInteger = x.add( x ); isBigInteger = x.add( "100" ); -isBigInteger = x.compare( 0 ); -isBigInteger = x.compare( x ); -isBigInteger = x.compare( "100" ); +isNumber = x.compare( 0 ); +isNumber = x.compare( x ); +isNumber = x.compare( "100" ); -isBigInteger = x.compareAbs( 0 ); -isBigInteger = x.compareAbs( x ); -isBigInteger = x.compareAbs( "100" ); +isNumber = x.compareAbs( 0 ); +isNumber = x.compareAbs( x ); +isNumber = x.compareAbs( "100" ); isBigInteger = x.divide( 0 ); isBigInteger = x.divide( x ); diff --git a/big-integer/big-integer.d.ts b/big-integer/big-integer.d.ts index 9e9127e830..452593e950 100644 --- a/big-integer/big-integer.d.ts +++ b/big-integer/big-integer.d.ts @@ -1,7 +1,7 @@ // Type definitions for BigInteger.js // Project: https://github.com/peterolson/BigInteger.js // Definitions by: Ingo Bürk , Roel van Uden -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface BigInteger { /** Returns the absolute value of a bigInt. */ @@ -134,24 +134,24 @@ interface BigInteger { * Performs a comparison between two numbers. If the numbers are equal, it returns 0. * If the first number is greater, it returns 1. If the first number is lesser, it returns -1. */ - compare( number: number ): BigInteger; + compare( number: number ): number; /** * Performs a comparison between two numbers. If the numbers are equal, it returns 0. * If the first number is greater, it returns 1. If the first number is lesser, it returns -1. */ - compare( number: BigInteger ): BigInteger; + compare( number: BigInteger ): number; /** * Performs a comparison between two numbers. If the numbers are equal, it returns 0. * If the first number is greater, it returns 1. If the first number is lesser, it returns -1. */ - compare( number: string ): BigInteger; + compare( number: string ): number; /** Performs a comparison between the absolute value of two numbers. */ - compareAbs( number: number ): BigInteger; + compareAbs( number: number ): number; /** Performs a comparison between the absolute value of two numbers. */ - compareAbs( number: BigInteger ): BigInteger; + compareAbs( number: BigInteger ): number; /** Performs a comparison between the absolute value of two numbers. */ - compareAbs( number: string ): BigInteger; + compareAbs( number: string ): number; /** Checks if two numbers are equal. */ equals( number: number ): boolean; diff --git a/big.js/big.js-tests.ts b/big.js/big.js-tests.ts index df61283147..0067a0b4f5 100644 --- a/big.js/big.js-tests.ts +++ b/big.js/big.js-tests.ts @@ -1,7 +1,7 @@ // Type definitions for big.js // Project: https://github.com/MikeMcl/big.js/ // Definitions by: Steve Ognibene -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /* diff --git a/big.js/big.js.d.ts b/big.js/big.js.d.ts index 2ad360a564..52a653ba83 100644 --- a/big.js/big.js.d.ts +++ b/big.js/big.js.d.ts @@ -1,10 +1,10 @@ // Type definitions for big.js // Project: https://github.com/MikeMcl/big.js/ // Definitions by: Steve Ognibene -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module BigJsLibrary { +declare namespace BigJsLibrary { export const enum RoundingMode { RoundTowardsZero = 0, @@ -15,7 +15,7 @@ declare module BigJsLibrary { interface BigJS extends BigJS_Constructors { /** The maximum number of decimal places of the results of operations involving division. - It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative. + It is relevant only to the div and sqrt methods, and the pow method when the exponent is negative. @default 40 */ DP: number; @@ -42,7 +42,7 @@ declare module BigJsLibrary { (value: string): BigJS; /** A decimal value. */ (value: BigJS): BigJS; - + /** A decimal value. */ (): BigJS; } @@ -55,19 +55,19 @@ declare module BigJsLibrary { /** Compare @returns {Number} 1 = If the value of this Big number is greater than the value of n - -1 = If the value of this Big number is less than the value of n + -1 = If the value of this Big number is less than the value of n 0 = If this Big number and n have the same value */ cmp(n: number): number; /** Compare @returns {Number} 1 = If the value of this Big number is greater than the value of n - -1 = If the value of this Big number is less than the value of n + -1 = If the value of this Big number is less than the value of n 0 = If this Big number and n have the same value */ cmp(n: string): number; /** Compare @returns {Number} 1 = If the value of this Big number is greater than the value of n - -1 = If the value of this Big number is less than the value of n + -1 = If the value of this Big number is less than the value of n 0 = If this Big number and n have the same value */ cmp(n: BigJS): number; @@ -120,13 +120,13 @@ declare module BigJsLibrary { /** Returns a Big number whose value is the value of this Big number minus n. */ minus(n: BigJS): BigJS; - /** Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n. + /** Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n. The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method. */ mod(n: number): BigJS; - /** Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n. + /** Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n. The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method. */ mod(n: string): BigJS; - /** Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n. + /** Returns a Big number whose value is the value of this Big number modulo n, i.e. the integer remainder of dividing this Big number by n. The result will have the same sign as this Big number, and it will match that of Javascript's % operator (within the limits of its precision) and BigDecimal's remainder method. */ mod(n: BigJS): BigJS; @@ -137,7 +137,7 @@ declare module BigJsLibrary { /** Returns a Big number whose value is the value of this Big number plus n. */ plus(n: BigJS): BigJS; - /** Returns a Big number whose value is the value of this Big number raised to the power exp. + /** Returns a Big number whose value is the value of this Big number raised to the power exp. If exp is negative and the result has more fraction digits than is specified by Big.DP, it will be rounded to Big.DP decimal places using rounding mode Big.RM. @param exp integer, -1e+6 to 1e+6 inclusive */ pow(exp: number): BigJS; diff --git a/bigint/bigint.d.ts b/bigint/bigint.d.ts index a2a8ed4176..98cb205992 100644 --- a/bigint/bigint.d.ts +++ b/bigint/bigint.d.ts @@ -1,12 +1,12 @@ // Type definitions for BigInt v5.5.3 // Project: https://github.com/Evgenus/BigInt // Definitions by: Eugene Chernyshov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Development repository: https://github.com/Evgenus/bigint-typescript-definitions // For answers, fixes and cutting edge version please see development repository. -declare module BigInt { +declare namespace BigInt { export interface BigInt extends Array { } @@ -171,7 +171,7 @@ declare module BigInt { export function inverseMod(x: BigInt, n: BigInt): BigInt; /** - * return x**(-1) mod n, for integers x and n. + * return x**(-1) mod n, for integers x and n. * Return 0 if there is no inverse. * * @param {number} x The BigInt base. @@ -273,7 +273,7 @@ declare module BigInt { export function powMod(x: BigInt, y: BigInt, n: BigInt): BigInt; /** - * return an n-bit random BigInt (n>=1). + * return an n-bit random BigInt (n>=1). * If s=1, then the most significant of those n bits is set to 1. * * @param {number} n The number of bits (n>=1). @@ -329,7 +329,7 @@ declare module BigInt { export function str2bigInt(s: string, b: string, n?: number, m?: number): BigInt; /** - * return (x-y) for bigInts x and y. + * return (x-y) for bigInts x and y. * Negative answers will be 2s complement. * * @param {BigInt} x The minuend as BigInt. @@ -351,7 +351,7 @@ declare module BigInt { /** * do x=x+n where x is a bigInt and n is an integer. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt accumulator. @@ -361,7 +361,7 @@ declare module BigInt { /** * do x=x+y for bigInts x and y. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt accumulator. @@ -371,7 +371,7 @@ declare module BigInt { /** * do x=y on bigInts x and y. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt destination. @@ -381,7 +381,7 @@ declare module BigInt { /** * do x=n on bigInt x and integer n. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt destination. @@ -392,7 +392,7 @@ declare module BigInt { /** * set x to the greatest common divisor of bigInts x and y, (y is destroyed). * This never overflows its array. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt first dividend. @@ -402,7 +402,7 @@ declare module BigInt { /** * do x=x**(-1) mod n, for bigInts x and n. Returns 1 (0) if inverse does (doesn't) exist. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt base and the remainder result. @@ -414,7 +414,7 @@ declare module BigInt { /** * do x=x mod n for bigInts x and n. (This never overflows its array). - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt dividend and the remainder result. @@ -424,7 +424,7 @@ declare module BigInt { /** * do x=x*y for bigInts x and y. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt multiplicand and the product result. @@ -434,7 +434,7 @@ declare module BigInt { /** * do x=x*y mod n for bigInts x,y,n. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt multiplicand and the remainder result. @@ -446,7 +446,7 @@ declare module BigInt { /** * do x=x**y mod n, where x,y,n are bigInts (n is odd) and ** is exponentiation. * 0**0=1. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt base and the remainder result. @@ -458,7 +458,7 @@ declare module BigInt { /** * do b = an n-bit random BigInt. * if s=1, then nth bit (most significant bit) is set to 1. n>=1. - * + * * @private Intend to be internal function. * * @param {BigInt} b The BigInt destination. @@ -469,7 +469,7 @@ declare module BigInt { /** * do ans = a random k-bit true random prime (not just probable prime) with 1 in the msb. - * + * * @private Intend to be internal function. * * @param {BigInt} ans The destination. @@ -479,7 +479,7 @@ declare module BigInt { /** * do x=x-y for bigInts x and y. Negative answers will be 2s complement. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt minuend and the result difference. @@ -489,7 +489,7 @@ declare module BigInt { /** * do x=x+(y<<(ys*bpe)) - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt accumulator. @@ -500,7 +500,7 @@ declare module BigInt { /** * do carries and borrows so each element of the bigInt x fits in bpe bits. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt to process. @@ -509,7 +509,7 @@ declare module BigInt { /** * divide x by y giving quotient q and remainder r. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt dividend. @@ -522,7 +522,7 @@ declare module BigInt { /** * do x=floor(x/n) for bigInt x and integer n, and return the remainder. * This never overflows its array. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt dividend and the quotient result. @@ -534,7 +534,7 @@ declare module BigInt { /** * sets a,b,d to positive bigInts such that d = GCD_(x,y) = a*x-b*y. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt to process. @@ -546,9 +546,9 @@ declare module BigInt { export function eGCD_(x: BigInt, y: BigInt, d: BigInt, a: BigInt, b: BigInt): void; /** - * do x=floor(|x|/2)*sgn(x) for bigInt x in 2's complement. + * do x=floor(|x|/2)*sgn(x) for bigInt x in 2's complement. * This never overflows its array. - * + * * @private Intend to be internal function. * * @param {BigInt} x The BigInt to process. @@ -557,7 +557,7 @@ declare module BigInt { /** * left shift bigInt x by n bits. n -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface BigScreenStatic { // Properties diff --git a/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts b/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts index c302d30c96..a677cd2a4d 100644 --- a/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts +++ b/bingmaps/Microsoft.Maps.AdvancedShapes.d.ts @@ -1,11 +1,11 @@ // Type definitions for Microsoft.Maps.AdvancedShapes 7.0 // Project: http://msdn.microsoft.com/en-us/library/hh921952.aspx // Definitions by: Eric Todd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Microsoft.Maps.AdvancedShapes { +declare namespace Microsoft.Maps.AdvancedShapes { export class EntityCollection { @@ -41,4 +41,4 @@ declare module Microsoft.Maps.AdvancedShapes { toString(): string; } -} \ No newline at end of file +} diff --git a/bingmaps/Microsoft.Maps.Directions.d.ts b/bingmaps/Microsoft.Maps.Directions.d.ts index 30065b84cf..fd0622f880 100644 --- a/bingmaps/Microsoft.Maps.Directions.d.ts +++ b/bingmaps/Microsoft.Maps.Directions.d.ts @@ -1,11 +1,11 @@ // Type definitions for Microsoft.Maps.Directions 7.0 // Project: http://msdn.microsoft.com/en-us/library/hh312813.aspx // Definitions by: Eric Todd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Microsoft.Maps.Directions { +declare namespace Microsoft.Maps.Directions { export interface BusinessDetails { @@ -433,4 +433,4 @@ declare module Microsoft.Maps.Directions { routeLeg: RouteLeg; } -} \ No newline at end of file +} diff --git a/bingmaps/Microsoft.Maps.Search.d.ts b/bingmaps/Microsoft.Maps.Search.d.ts index 88572901be..d13163ef25 100644 --- a/bingmaps/Microsoft.Maps.Search.d.ts +++ b/bingmaps/Microsoft.Maps.Search.d.ts @@ -1,11 +1,11 @@ // Type definitions for Microsoft.Maps.Search 7.0 // Project: http://msdn.microsoft.com/en-us/library/hh868061.aspx // Definitions by: Eric Todd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Microsoft.Maps.Search { +declare namespace Microsoft.Maps.Search { export interface Address { addressLine: string; diff --git a/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts b/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts index 9b009b3d7e..e13be2603b 100644 --- a/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts +++ b/bingmaps/Microsoft.Maps.Themes.BingTheme.d.ts @@ -1,12 +1,12 @@ // Type definitions for Microsoft.Maps.Themes 7.0 // Project: http://msdn.microsoft.com/en-us/library/hh868061.aspx // Definitions by: Eric Todd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace Microsoft.Maps.Themes { -declare module Microsoft.Maps.Themes { - export class BingTheme { constructor(); } -} \ No newline at end of file +} diff --git a/bingmaps/Microsoft.Maps.Traffic.d.ts b/bingmaps/Microsoft.Maps.Traffic.d.ts index 312ae4c939..1451c09000 100644 --- a/bingmaps/Microsoft.Maps.Traffic.d.ts +++ b/bingmaps/Microsoft.Maps.Traffic.d.ts @@ -1,14 +1,14 @@ // Type definitions for Microsoft.Maps.Traffic 7.0 // Project: http://msdn.microsoft.com/en-us/library/hh312840.aspx // Definitions by: Eric Todd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Microsoft.Maps.Traffic { - +declare namespace Microsoft.Maps.Traffic { + export class TrafficManager { - + constructor(map: Map); hide(): void; @@ -21,4 +21,4 @@ declare module Microsoft.Maps.Traffic { showLegend():void; } -} \ No newline at end of file +} diff --git a/bingmaps/Microsoft.Maps.VenueMaps.d.ts b/bingmaps/Microsoft.Maps.VenueMaps.d.ts index f78f30da85..2d67bb3e69 100644 --- a/bingmaps/Microsoft.Maps.VenueMaps.d.ts +++ b/bingmaps/Microsoft.Maps.VenueMaps.d.ts @@ -1,11 +1,11 @@ // Type definitions for Microsoft.Maps.VenueMaps 7.0 // Project: http://msdn.microsoft.com/en-us/library/hh312797.aspx // Definitions by: Eric Todd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Microsoft.Maps.VenueMaps { +declare namespace Microsoft.Maps.VenueMaps { export interface MouseResponse { eventArgs: MouseEventArgs; diff --git a/bingmaps/Microsoft.Maps.d.ts b/bingmaps/Microsoft.Maps.d.ts index 289d9d4947..48edfcc2c4 100644 --- a/bingmaps/Microsoft.Maps.d.ts +++ b/bingmaps/Microsoft.Maps.d.ts @@ -1,9 +1,9 @@ // Type definitions for Microsoft.Maps 7.0 // Project: http://msdn.microsoft.com/en-us/library/gg427611.aspx // Definitions by: Eric Todd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Microsoft.Maps { +declare namespace Microsoft.Maps { export enum AltitudeReference { ground, @@ -67,8 +67,8 @@ declare module Microsoft.Maps { export class Events { - static addHandler(target: any, eventName: string, handler: () => void): any; - static addThrottledHandler(target: any, eventName: string, handler: () => void, throttleInterval: number): any; + static addHandler(target: any, eventName: string, handler: (e: any) => void): any; + static addThrottledHandler(target: any, eventName: string, handler: (e: any) => void, throttleInterval: number): any; static hasHandler(target: any, eventName: string): boolean; static invoke(target: any, eventName: string, args: any): void; static removeHandler(handlerId: any): void; diff --git a/bingmaps/bingmaps-tests.ts b/bingmaps/bingmaps-tests.ts index 5842ee82df..08b3decd5b 100644 --- a/bingmaps/bingmaps-tests.ts +++ b/bingmaps/bingmaps-tests.ts @@ -6,7 +6,7 @@ /// /// -module BingMapsTests { +namespace BingMapsTests { // An interactive set of Bing Maps AJAX control usages can be found at http://www.bingmapsportal.com/isdk/ajaxv7 // A full API description can be found at http://msdn.microsoft.com/en-us/library/gg427610.aspx @@ -90,4 +90,4 @@ module BingMapsTests { return location; } } -} \ No newline at end of file +} diff --git a/bip21/bip21-tests.ts b/bip21/bip21-tests.ts new file mode 100644 index 0000000000..e685eca102 --- /dev/null +++ b/bip21/bip21-tests.ts @@ -0,0 +1,9 @@ +/// + +let decoded:any = bip21.decode('bitcoin:1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH?amount=20.3&label=Foobar'); + +let encoded:string = bip21.encode('1BgGZ9tcN4rm9KBzDn7KprQz87SZ26SAMH', { + amount: 20.3, + label: 'Foobar' +}); + \ No newline at end of file diff --git a/bip21/bip21.d.ts b/bip21/bip21.d.ts new file mode 100644 index 0000000000..7dc6223164 --- /dev/null +++ b/bip21/bip21.d.ts @@ -0,0 +1,13 @@ +// Type definitions for bip21 v1.1.2 +// Project: https://github.com/bitcoinjs/bip21 +// Definitions by: Stefan Huber +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace bip21 { + export function decode(uri:string) : {address:string,amount?:number}; + export function encode(address:string,options?:any) : string; +} + +declare module "bip21" { + export = bip21; +} diff --git a/bitwise-xor/bitwise-xor.d.ts b/bitwise-xor/bitwise-xor.d.ts index 1ea6865c7f..09f104b9af 100644 --- a/bitwise-xor/bitwise-xor.d.ts +++ b/bitwise-xor/bitwise-xor.d.ts @@ -1,7 +1,7 @@ // Type definitions for bitwise-xor 0.0.0 // Project: https://github.com/czzarr/node-bitwise-xor // Definitions by: Rogier Schouten -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module "bitwise-xor" { diff --git a/bl/bl.d.ts b/bl/bl.d.ts index 6e8c3b4a87..b3b97b3983 100644 --- a/bl/bl.d.ts +++ b/bl/bl.d.ts @@ -1,7 +1,7 @@ // Type definitions for BufferList v0.8.0 // Project: https://github.com/rvagg/bl // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/blissfuljs/blissfuljs.d.ts b/blissfuljs/blissfuljs.d.ts index 3fb9e0204e..9338929f16 100644 --- a/blissfuljs/blissfuljs.d.ts +++ b/blissfuljs/blissfuljs.d.ts @@ -11,7 +11,7 @@ interface Array { _: BlissNS.BlissBindedArray & BlissNS.BlissCollectionArray; } -declare module BlissNS { +declare namespace BlissNS { export type BlissDecoratedElement = Element & T; export type BlissDecoratedArrayElement = Array & BlissNS.BlissCollectionArray; diff --git a/blob-stream/blob-stream.d.ts b/blob-stream/blob-stream.d.ts index b55cd13c6f..cb7c6c1146 100644 --- a/blob-stream/blob-stream.d.ts +++ b/blob-stream/blob-stream.d.ts @@ -1,13 +1,13 @@ // Type definitions for blob-stream v0.1.3 // Project: https://github.com/devongovett/blob-stream // Definitions by: Eric Hillah -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare function BlobStream(): BlobStream.IBlobStream; -declare module BlobStream { +declare namespace BlobStream { interface IBlobStream extends NodeJS.WritableStream{ toBlob(type?: string): Blob; diff --git a/blocks/blocks.d.ts b/blocks/blocks.d.ts index 6e57ec762b..42cff624ae 100644 --- a/blocks/blocks.d.ts +++ b/blocks/blocks.d.ts @@ -1,7 +1,7 @@ // Type definitions for jsblocks v0.3.0 // Project: http://jsblocks.com/ // Definitions by: Krzysztof Śmigiel -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped ///////////////////////////////////////// // blocks methods diff --git a/blue-tape/blue-tape.d.ts b/blue-tape/blue-tape.d.ts index 50bf0aab8d..1216600cab 100644 --- a/blue-tape/blue-tape.d.ts +++ b/blue-tape/blue-tape.d.ts @@ -1,7 +1,7 @@ // Type definitions for blue-tape v0.1.11 // Project: https://github.com/spion/blue-tape // Definitions by: Haoqun Jiang -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// diff --git a/bluebird-retry/bluebird-retry.d.ts b/bluebird-retry/bluebird-retry.d.ts index 3719e5e3ac..1210bf3b53 100644 --- a/bluebird-retry/bluebird-retry.d.ts +++ b/bluebird-retry/bluebird-retry.d.ts @@ -1,7 +1,7 @@ // Type definitions for bluebird-retry // Project: https://github.com/jut-io/bluebird-retry // Definitions by: Pascal Vomhoff -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module "bluebird-retry" { @@ -9,7 +9,7 @@ declare module "bluebird-retry" { function retry(func:(param:T)=>void, options?:retry.Options):Promise; - module retry { + namespace retry { export interface Options { interval?:number; backoff?:number; @@ -21,4 +21,4 @@ declare module "bluebird-retry" { } export = retry; -} \ No newline at end of file +} diff --git a/bluebird/bluebird-1.0.d.ts b/bluebird/bluebird-1.0.d.ts index 7979e8b6f8..ab1cd02add 100644 --- a/bluebird/bluebird-1.0.d.ts +++ b/bluebird/bluebird-1.0.d.ts @@ -1,13 +1,13 @@ // Type definitions for bluebird 1.0.0 // Project: https://github.com/petkaantonov/bluebird // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // ES6 model with generics overload was sourced and trans-multiplied from es6-promises.d.ts // By: Campredon // Warning: recommended to use `tsc > v0.9.7` (critical bugs in earlier generic code): -// - https://github.com/borisyankov/DefinitelyTyped/issues/1563 +// - https://github.com/DefinitelyTyped/DefinitelyTyped/issues/1563 // Note: replicate changes to all overloads in both definition and test file // Note: keep both static and instance members inline (so similar) @@ -580,7 +580,7 @@ declare class Promise implements Promise.Thenable { static filter(values: R[], filterer: (item: R, index: number, arrayLength: number) => boolean): Promise; } -declare module Promise { +declare namespace Promise { export interface RangeError extends Error { } export interface CancellationError extends Error { diff --git a/bluebird/bluebird.d.ts b/bluebird/bluebird.d.ts index 7a53d4e07b..4d70205a03 100644 --- a/bluebird/bluebird.d.ts +++ b/bluebird/bluebird.d.ts @@ -1,13 +1,13 @@ // Type definitions for bluebird 2.0.0 // Project: https://github.com/petkaantonov/bluebird // Definitions by: Bart van der Schoor , falsandtru -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // ES6 model with generics overload was sourced and trans-multiplied from es6-promises.d.ts // By: Campredon // Warning: recommended to use `tsc > v0.9.7` (critical bugs in earlier generic code): -// - https://github.com/borisyankov/DefinitelyTyped/issues/1563 +// - https://github.com/DefinitelyTyped/DefinitelyTyped/issues/1563 // Note: replicate changes to all overloads in both definition and test file // Note: keep both static and instance members inline (so similar) @@ -23,6 +23,13 @@ interface PromiseConstructor { * Create a new promise. The passed in function will receive functions `resolve` and `reject` as its arguments which can be called to seal the fate of the created promise. */ new (callback: (resolve: (thenableOrResult?: T | PromiseLike) => void, reject: (error: any) => void) => void): Promise; + + config(options: { + warnings?: boolean | {wForgottenReturn?: boolean}; + longStackTraces?: boolean; + cancellation?: boolean; + monitoring?: boolean; + }): void; // Ideally, we'd define e.g. "export class RangeError extends Error {}", // but as Error is defined as an interface (not a class), TypeScript doesn't diff --git a/blueimp-md5/blueimp-md5.d.ts b/blueimp-md5/blueimp-md5.d.ts index 37c3f3c002..99880ba0d6 100644 --- a/blueimp-md5/blueimp-md5.d.ts +++ b/blueimp-md5/blueimp-md5.d.ts @@ -1,7 +1,7 @@ // Type definitions for blueimp-md5 v1.1.0 // Project: https://github.com/blueimp/JavaScript-MD5 // Definitions by: Ray Martone -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'blueimp-md5' { export function md5(value: string, key?: string, raw?: boolean): string; } diff --git a/body-parser/body-parser.d.ts b/body-parser/body-parser.d.ts index b7b4e75995..16f639dfaf 100644 --- a/body-parser/body-parser.d.ts +++ b/body-parser/body-parser.d.ts @@ -1,7 +1,7 @@ // Type definitions for body-parser // Project: http://expressjs.com // Definitions by: Santi Albo , VILIC VANE , Jonathan Häberle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -40,7 +40,7 @@ declare module "body-parser" { extended?: boolean; }): express.RequestHandler; - module bodyParser { + namespace bodyParser { export function json(options?: { /** * if deflated bodies will be inflated. (default: true) diff --git a/bookshelf/bookshelf.d.ts b/bookshelf/bookshelf.d.ts index 5d91927dbc..74f5e83d4a 100644 --- a/bookshelf/bookshelf.d.ts +++ b/bookshelf/bookshelf.d.ts @@ -1,7 +1,7 @@ // Type definitions for bookshelfjs v0.8.2 // Project: http://bookshelfjs.org/ // Definitions by: Andrew Schurman -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -88,7 +88,7 @@ declare module 'bookshelf' { belongsTo>(target : {new(...args : any[]) : R}, foreignKey? : string) : R; belongsToMany>(target : {new(...args : any[]) : R}, table? : string, foreignKey? : string, otherKey? : string) : Collection; count(column? : string, options? : SyncOptions) : Promise; - destroy(options : SyncOptions) : void; + destroy(options? : SyncOptions) : Promise; fetch(options? : FetchOptions) : Promise; fetchAll(options? : FetchAllOptions) : Promise>; hasMany>(target : {new(...args : any[]) : R}, foreignKey? : string) : Collection; diff --git a/boom/boom.d.ts b/boom/boom.d.ts index e1539d21b3..85c2e22b35 100644 --- a/boom/boom.d.ts +++ b/boom/boom.d.ts @@ -1,11 +1,11 @@ // Type definitions for boom // Project: http://github.com/hapijs/boom // Definitions by: Igor Rogatty -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Boom { +declare namespace Boom { export interface BoomError { data: any; diff --git a/bootbox/bootbox-tests.ts b/bootbox/bootbox-tests.ts index 5b3a26edd2..83837d41fa 100644 --- a/bootbox/bootbox-tests.ts +++ b/bootbox/bootbox-tests.ts @@ -17,7 +17,8 @@ bootbox.confirm("Click cancel to pass test", function (result) { console.log(!result); }); bootbox.confirm({ - message: "Click confirm to pass test", + title: "Click confirm to pass test", + message: "Please confirm this.", callback: function (result) { console.log(result); } @@ -27,13 +28,13 @@ bootbox.prompt("Enter 'ok' to pass test", function (result) { console.log(result); }); bootbox.prompt({ - message: "Enter 'ok' to pass test", callback: function (result) { + title: "Enter 'ok' to pass test", callback: function (result) { console.log(result); } }); bootbox.prompt({ size: "large", - message: "Enter 'ok' to pass test", callback: function (result) { + title: "Enter 'ok' to pass test", callback: function (result) { console.log(result); } }); @@ -42,7 +43,7 @@ bootbox.prompt({ bootbox.dialog({ title: "Wassup?", message: "Test Dialog", - callback: function (result) { } + callback: function () { } }); // Testing the return object of the call. Using the pointer to disable the animation on success callback. @@ -103,4 +104,4 @@ var localeOptions: BootboxLocaleValues = { bootbox.addLocale("Nepali", localeOptions); bootbox.setLocale("Nepali"); -bootbox.removeLocale("Nepali"); \ No newline at end of file +bootbox.removeLocale("Nepali"); diff --git a/bootbox/bootbox.d.ts b/bootbox/bootbox.d.ts index 7e0ed9b401..ce422de880 100644 --- a/bootbox/bootbox.d.ts +++ b/bootbox/bootbox.d.ts @@ -1,25 +1,57 @@ // Type definitions for Bootbox 4.4.0 // Project: https://github.com/makeusabrew/bootbox -// Definitions by: Vincent Bortone , Kon Pik , Anup Kattel , Dominik Schroeter -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions by: Vincent Bortone , Kon Pik , Anup Kattel , Dominik Schroeter , Troy McKinnon +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -interface BootboxAlertOptions { + +/** Bootbox options shared by all modal types */ +interface BootboxBaseOptions { + title?: string | Element; + callback?: (result: boolean | string) => any; + onEscape?: () => any | boolean; + show?: boolean; + backdrop?: boolean; + closeButton?: boolean; + animate?: boolean; + className?: string; size?: string; - message: string; + buttons?: BootboxButtonMap; // complex object where each key is of type BootboxButton +} + +/** Bootbox options available for custom modals */ +interface BootboxDialogOptions extends BootboxBaseOptions { + message: string | Element; +} + +/** Bootbox options available for alert modals */ +interface BootboxAlertOptions extends BootboxDialogOptions { callback?: () => any; + buttons?: BootboxAlertButtonMap; } -interface BootboxConfirmOptions { - size?: string; - message: string; +/** Bootbox options available for confirm modals */ +interface BootboxConfirmOptions extends BootboxDialogOptions { callback: (result: boolean) => any; + buttons?: BootboxConfirmPromptButtonMap; } -interface BootboxPromptOptions { - size?: string; - message?: string; +/** Bootbox options available for prompt modals */ +interface BootboxPromptOptions extends BootboxBaseOptions { + title: string; + value?: string; callback: (result: string) => any; + buttons?: BootboxConfirmPromptButtonMap; +} + +/** Bootbox options available when setting defaults for modals */ +interface BootboxDefaultOptions { + locale?: string; + show?: boolean; + backdrop?: boolean; + closeButton?: boolean; + animate?: boolean; + className?: string; } interface BootboxButton { @@ -32,28 +64,15 @@ interface BootboxButtonMap { [key: string]: BootboxButton | Function; } -interface BootboxDialogOptions { - message: string | Element; - title?: string | Element; - locale?: string; - callback?: (result: boolean) => any; - onEscape?: () => any | boolean; - show?: boolean; - backdrop?: boolean; - closeButton?: boolean; - animate?: boolean; - className?: string; - size?: string; - buttons?: BootboxButtonMap; // complex object where each key is of type BootboxButton +/** ButtonMap options for alerts modals */ +interface BootboxAlertButtonMap extends BootboxButtonMap { + ok: BootboxButton | Function; } -interface BootboxDefaultOptions { - locale?: string; - show?: boolean; - backdrop?: boolean; - closeButton?: boolean; - animate?: boolean; - className?: string; +/** ButtonMap options for confirm and prompt modals */ +interface BootboxConfirmPromptButtonMap extends BootboxButtonMap { + confirm: BootboxButton | Function; + cancel: BootboxButton | Function; } interface BootboxLocaleValues { @@ -80,3 +99,7 @@ interface BootboxStatic { } declare var bootbox: BootboxStatic; + +declare module "bootbox" { + export = bootbox; +} diff --git a/bootpag/bootpag-tests.ts b/bootpag/bootpag-tests.ts new file mode 100644 index 0000000000..a0986e74cc --- /dev/null +++ b/bootpag/bootpag-tests.ts @@ -0,0 +1,17 @@ +/// +/// + +var pagerSelector = ".bootpager"; +var $pager = $(pagerSelector); + +var pagerOptions: JqueryBootpag.Options = { + total: 15, + page: 1, + maxVisible: 5, + first: "", + last: "", + prev: "", + next: "" +}; + +$pager.bootpag(pagerOptions); \ No newline at end of file diff --git a/bootpag/bootpag.d.ts b/bootpag/bootpag.d.ts new file mode 100644 index 0000000000..fef37711cd --- /dev/null +++ b/bootpag/bootpag.d.ts @@ -0,0 +1,126 @@ +// Type definitions for jQuery-Bootpag 1.0.7 +// Project: http://botmonster.com/jquery-bootpag/ +// Definitions by: MAF.DAP / Romain Deneau +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace JqueryBootpag { + /** + * Bootpag plugin interface options + */ + export interface Options { + /** + * number of pages + */ + total: number; + + /** + * maximum number of visible pages + */ + maxVisible: number; + + /** + * page to show on start + */ + page?: number; + + /** + * next/prev buttons move over one page or maximum visible pages (default true) + */ + leaps?: boolean; + + /** + * next button text (default "�") + */ + next?: string; + + /** + * prev button text (default "�") + */ + prev?: string; + + /** + * template for pagination links (default "javascript:void(0);") + */ + href?: string; + + /** + * variable name in href template for page number (default "{{number}}") + */ + hrefVariable?: string; + + /** + * do we ant first and last (default true) + */ + firstLastUse?: boolean; + + /** + * name of first (default 'FIRST') + */ + first?: string; + + /** + * name of last (default 'LAST') + */ + last?: string; + + /** + * css class for wrap (default 'pagination') + */ + wrapClass?: string; + + /** + * css class for active (default 'active') + */ + activeClass?: string; + + /** + * css class for disabled (default 'disabled') + */ + disabledClass?: string; + + /** + * css class for next (default 'next') + */ + nextClass?: string; + + /** + * css class for prev (default 'prev') + */ + prevClass?: string; + + /** + * css class for last (default 'last') + */ + lastClass?: string; + + /** + * css class for first (default 'first') + */ + firstClass?: string; + } + + /** + * Event handler on page click. + * @param event : JQueryEventObject + * @param pageNumber : number of the clicked page + */ + interface PageEventHandler { + (event: JQueryEventObject, pageNumber: number): any; + } +} + +interface JQuery { + /** + * jQuery Bootpag plugin main method + */ + bootpag(options: JqueryBootpag.Options): JQuery; + + /** + * jQuery Bootpag "page" event occurring on page click. + * @param eventName : always "page" + * @param handler : A function to execute when the event is triggered. The value false is also allowed as a shorthand for a function that simply does return false. + */ + on(eventName: "page", handler: JqueryBootpag.PageEventHandler): JQuery; +} diff --git a/bootstrap-maxlength/bootstrap-maxlength.d.ts b/bootstrap-maxlength/bootstrap-maxlength.d.ts index 4d36c70386..024ebcba5f 100644 --- a/bootstrap-maxlength/bootstrap-maxlength.d.ts +++ b/bootstrap-maxlength/bootstrap-maxlength.d.ts @@ -1,11 +1,11 @@ // Type definitions for bootstrap-maxlength v1.7.0 // Project: https://github.com/mimo84/bootstrap-maxlength // Definitions by: Dan Manastireanu -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module BootstrapMaxlength { +declare namespace BootstrapMaxlength { /** * Possible options for the position of the counter. (passed to $.fn.css) @@ -112,7 +112,7 @@ declare module BootstrapMaxlength { */ message?: string | ((currentText : string, maxLength: Number) => string), /** - * If true the input will count using utf8 bytesize/encoding. For example: the '£' character is counted as two characters. + * If true the input will count using utf8 bytesize/encoding. For example: the '�' character is counted as two characters. * @default false */ utf8?: boolean, diff --git a/bootstrap-notify/bootstrap-notify.d.ts b/bootstrap-notify/bootstrap-notify.d.ts index 52e0cb4725..acdb83b9fd 100644 --- a/bootstrap-notify/bootstrap-notify.d.ts +++ b/bootstrap-notify/bootstrap-notify.d.ts @@ -1,7 +1,7 @@ // Type definitions for bootstrap-notify v3.1.3 // Project: http://bootstrap-notify.remabledesigns.com/ // Definitions by: Blake Niemyjski , Robert McIntosh , Robert Voica -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bootstrap-slider/bootstrap-slider.d.ts b/bootstrap-slider/bootstrap-slider.d.ts index d66c85ab10..77a5177fa0 100644 --- a/bootstrap-slider/bootstrap-slider.d.ts +++ b/bootstrap-slider/bootstrap-slider.d.ts @@ -1,7 +1,7 @@ // Type definitions for bootstrap-slider.js 4.8.3 // Project: https://github.com/seiyria/bootstrap-slider // Definitions by: Daniel Beckwith -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bootstrap-switch/bootstrap-switch.d.ts b/bootstrap-switch/bootstrap-switch.d.ts index f562f9ef07..b6738a9b8d 100644 --- a/bootstrap-switch/bootstrap-switch.d.ts +++ b/bootstrap-switch/bootstrap-switch.d.ts @@ -1,7 +1,7 @@ // Type definitions for Bootstrap Switch // Project: http://www.bootstrap-switch.org/ // Definitions by: John M. Baughman -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * bootstrap-switch - v3.3.2 Copyright (c) 2012-2013 Mattia Larentis @@ -11,7 +11,7 @@ /// -declare module BootstrapSwitch { +declare namespace BootstrapSwitch { interface BootstrapSwitchChangeEventObject extends JQueryEventObject { state: boolean } @@ -99,4 +99,4 @@ interface JQuery { on(events: "switchChange.bootstrapSwitch", selector?: string, handler?: (eventobject: BootstrapSwitch.BootstrapSwitchChangeEventObject) => any): JQuery; on(events: "switchChange.bootstrapSwitch", handler?: (eventobject: BootstrapSwitch.BootstrapSwitchChangeEventObject) => any): JQuery; -} \ No newline at end of file +} diff --git a/bootstrap-touchspin/bootstrap-touchspin.d.ts b/bootstrap-touchspin/bootstrap-touchspin.d.ts index 2dcf628842..7334e37bbb 100644 --- a/bootstrap-touchspin/bootstrap-touchspin.d.ts +++ b/bootstrap-touchspin/bootstrap-touchspin.d.ts @@ -1,7 +1,7 @@ // Type definitions for Bootstrap TouchSpin // Project: http://www.virtuosoft.eu/code/bootstrap-touchspin/ // Definitions by: Albin Sunnanbo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bootstrap.datepicker/bootstrap.datepicker.d.ts b/bootstrap.datepicker/bootstrap.datepicker.d.ts index e9ca0159db..0633db5358 100644 --- a/bootstrap.datepicker/bootstrap.datepicker.d.ts +++ b/bootstrap.datepicker/bootstrap.datepicker.d.ts @@ -1,7 +1,7 @@ // Type definitions for bootstrap.datepicker // Project: https://github.com/eternicode/bootstrap-datepicker // Definitions by: Boris Yankov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bootstrap.paginator/bootstrap.paginator.d.ts b/bootstrap.paginator/bootstrap.paginator.d.ts index 1e6c17c28c..805850c88d 100644 --- a/bootstrap.paginator/bootstrap.paginator.d.ts +++ b/bootstrap.paginator/bootstrap.paginator.d.ts @@ -1,7 +1,7 @@ // Type definitions for bootstrap.paginator // Project: https://github.com/lyonlai/bootstrap-paginator // Definitions by: derikwhittaker -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bootstrap.timepicker/bootstrap.timepicker.d.ts b/bootstrap.timepicker/bootstrap.timepicker.d.ts index 2dd80b8581..70a48184e6 100644 --- a/bootstrap.timepicker/bootstrap.timepicker.d.ts +++ b/bootstrap.timepicker/bootstrap.timepicker.d.ts @@ -1,7 +1,7 @@ // Type definitions for bootstrap.timepicker // Project: https://github.com/jdewit/bootstrap-timepicker // Definitions by: derikwhittaker -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-3.0.0.d.ts b/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-3.0.0.d.ts new file mode 100644 index 0000000000..1412ad47eb --- /dev/null +++ b/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-3.0.0.d.ts @@ -0,0 +1,113 @@ +// Type definitions for Bootstrap datetimepicker v3 +// Project: http://eonasdan.github.io/bootstrap-datetimepicker +// Definitions by: Jesica N. Fera +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * bootstrap-datetimepicker.js 3.0.0 Copyright (c) 2014 Jonathan Peterson + * Available via the MIT license. + * see: http://eonasdan.github.io/bootstrap-datetimepicker or https://github.com/Eonasdan/bootstrap-datetimepicker for details. + */ + +/// +/// + +declare namespace BootstrapV3DatetimePicker { + interface DatetimepickerChangeEventObject extends DatetimepickerEventObject { + oldDate: moment.Moment; + } + + interface DatetimepickerEventObject extends JQueryEventObject { + date: moment.Moment; + } + + interface DatetimepickerIcons { + time?: string; + date?: string; + up?: string; + down?: string; + } + + interface DatetimepickerOptions { + pickDate?: boolean; + pickTime?: boolean; + useMinutes?: boolean; + useSeconds?: boolean; + useCurrent?: boolean; + minuteStepping?: number; + minDate?: moment.Moment | Date | string; + maxDate?: moment.Moment | Date | string; + showToday?: boolean; + collapse?: boolean; + language?: string; + defaultDate?: moment.Moment | Date | string; + disabledDates?: Array; + enabledDates?: Array; + icons?: DatetimepickerIcons; + useStrict?: boolean; + direction?: string; + sideBySide?: boolean; + daysOfWeekDisabled?: Array; + calendarWeeks?: boolean; + format?: string | boolean; + locale?: string; + showTodayButton?: boolean; + viewMode?: string; + inline?: boolean; + toolbarPlacement?: string; + showClear?: boolean; + ignoreReadonly?: boolean; + } + + interface Datetimepicker { + date(date: moment.Moment | Date | string): void; + date(): moment.Moment; + minDate(date: moment.Moment | Date | string): void; + minDate(): moment.Moment | boolean; + maxDate(date: moment.Moment | Date | string): void; + maxDate(): moment.Moment | boolean; + show(): void; + disable(): void; + enable(): void; + destroy(): void; + toggle(): void; + } + +} + + +interface JQuery { + + datetimepicker(): JQuery; + datetimepicker(options: BootstrapV3DatetimePicker.DatetimepickerOptions): JQuery; + + off(events: "dp.change", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; + off(events: "dp.change", handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; + + on(events: "dp.change", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; + on(events: "dp.change", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; + on(events: 'dp.change', handler: (eventObject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; + + off(events: "dp.show", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + off(events: "dp.show", handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + + on(events: "dp.show", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + on(events: "dp.show", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + on(events: 'dp.show', handler: (eventObject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + + off(events: "dp.hide", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + off(events: "dp.hide", handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + + on(events: "dp.hide", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + on(events: "dp.hide", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + on(events: 'dp.hide', handler: (eventObject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + + off(events: "dp.error", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + off(events: "dp.error", handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + + on(events: "dp.error", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + on(events: "dp.error", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + on(events: 'dp.error', handler: (eventObject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + + data(key: 'DateTimePicker'): BootstrapV3DatetimePicker.Datetimepicker; +} diff --git a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts b/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts index e17b7b10cf..137e84720d 100644 --- a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts +++ b/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker-tests.ts @@ -3,12 +3,6 @@ function test_cases() { $('#datetimepicker').datetimepicker(); - $('#datetimepicker').datetimepicker({ - pickDate: false - }); - $('#datetimepicker').datetimepicker({ - pickTime: false - }); $('#datetimepicker').datetimepicker({ minDate: '2012-12-31' }); diff --git a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker.d.ts b/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker.d.ts index eced1096f5..d49a0d8814 100644 --- a/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker.d.ts +++ b/bootstrap.v3.datetimepicker/bootstrap.v3.datetimepicker.d.ts @@ -1,10 +1,11 @@ -// Type definitions for Bootstrap datetimepicker v3 +// Type definitions for Bootstrap 3 Datepicker v4.17.37 // Project: http://eonasdan.github.io/bootstrap-datetimepicker -// Definitions by: Jesica N. Fera -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions by: Katona Péter +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// based on the previous version created by Jesica N. Fera /** - * bootstrap-datetimepicker.js 3.0.0 Copyright (c) 2014 Jonathan Peterson + * bootstrap-datetimepicker.js 4.17.37 Copyright (c) 2015 Jonathan Peterson * Available via the MIT license. * see: http://eonasdan.github.io/bootstrap-datetimepicker or https://github.com/Eonasdan/bootstrap-datetimepicker for details. */ @@ -12,102 +13,576 @@ /// /// -declare module BootstrapV3DatetimePicker { - interface DatetimepickerChangeEventObject extends DatetimepickerEventObject { - oldDate: moment.Moment; +declare namespace BootstrapV3DatetimePicker { + + interface Datetimepicker { + /**Clears the datepicker by setting the value to null */ + clear(): void; + /**Returns the component's model current date, a moment object or null if not set. */ + date(): moment.Moment; + /**Takes string, Date, moment, null parameter and sets the components model current moment to it. + * Passing a null value unsets the components model current moment. + * Parsing of the newDate parameter is made using moment library with the options.format and options.useStrict components configuration. + * Throws: + * - TypeError - in case the newDate cannot be parsed + * + * Emits: + * - dp.change - In case newDate is different from current moment + */ + date(date: moment.Moment | Date | string): void; + /**Destroys the widget and removes all attached event listeners */ + destroy(): void; + /**Disables the input element, the component is attached to, by adding a disabled="true" attribute to it. If the widget was visible before that call it is hidden. + * Emits: + * - dp.hide - if the widget was visible before that call + */ + disable(): void; + /**Enables the input element, the component is attached to, by removing disabled attribute from it. */ + enable(): void; + /**Hides the widget + * Emits: + * - dp.hide - if the widget was visible before that call + */ + hide(): void; + /**Returns the components current options object. + * Note that the changing the values of the returned object does not change the components actual configuration. */ + options(): DatetimepickerOptions + /**Takes an object variable with option key:value properties and configures the component. Use this to update multiple options on the component. */ + options(options: DatetimepickerOptions): void + /**Shows the widget + * Emits: + * - dp.show - if the widget was hidden before that call + * - dp.change - if the widget is opened for the first time and the useCurrent is set to true or to a granularity value and the input element the component is attached to has an empty value + */ + show(): void; + /**Shows or hides the widget + * Emits: + * - dp.hide - if the widget is hidden after the toggle call + * - dp.show - if the widget is show after the toggle call + * - dp.change - if the widget is opened for the first time and the input element is empty and options.useCurrent != false + */ + toggle(): void; + + //////////////////////////////////////////////////////////////////////////////////////////////////// + //// Below are the getters/setters for the properties of the 'options(): DatetimepickerOptions' //// + //////////////////////////////////////////////////////////////////////////////////////////////////// + + /**Returns the options.allowInputToggle option. */ + allowInputToggle(): boolean; + /**If true, the picker will show on textbox focus and icon click when used in a button group */ + allowInputToggle(value: boolean): void; + /**Returns the current options.calendarWeeks option configuration */ + calendarWeeks(): boolean; + /**Set if the week numbers will appear to the left on the days view */ + calendarWeeks(value: boolean): void; + /**Returns the options.collapse option configuration */ + collapse(): boolean; + /**If set to false the picker will display similar to sideBySide except vertical. */ + collapse(value: boolean): void; + /**Returns the options.daysOfWeekDisabled configuration + * IMPORTANT! Throws exception if not set explicitly https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1459 + */ + daysOfWeekDisabled(): Array; + /**Takes an [ Number:0 to 6 ] and disallow the user to select weekdays that exist in this array. + * This has lower priority over the options.minDate, options.maxDate, options.disabledDates and options.enabledDates configuration settings. + * Emits: + * - dp.change - if the currently selected moment falls in the values passed on the daysOfWeek parameter. + * - dp.error - if the currently selected moment falls in the values passed on the daysOfWeek parameter. + */ + daysOfWeekDisabled(days: Array): void; + /**Returns the options.dayViewHeaderFormat option. */ + dayViewHeaderFormat(): string; + /**Used to customize the header of the day view. */ + dayViewHeaderFormat(value: string): void; + /**Returns a moment with the options.defaultDate option configuration or false if not set */ + defaultDate(): moment.Moment | boolean; + /**Will set the picker's inital date. + * If a boolean:false value is passed the options.defaultDate parameter is cleared. + * Throws: + * - TypeError - if the provided date doesn't pass validation, including disabledDates, enabledDates, minDate, maxDate, and daysOfWeekDisabled + * - TypeError - if the provided date cannot be parsed by momentjs + */ + defaultDate(date: string | Date | moment.Moment | boolean): void; + /**Returns the options.disabledDates option. + * NOTES: probably should be: disabledDates(): boolean | Array; see: DatetimepickerOptions + */ + disabledDates(): boolean | any; + /**Takes an array of values and disallows the user to select those days. + * Setting this takes precedence over options.minDate, options.maxDate configuration. + * Also calling this function removes the configuration of options.enabledDates if such exist. + * Note: These values are matched with Day granularity. + */ + disabledDates(dates: boolean | Array): void; + /**Returns the options.disabledHours option. + * NOTES: probably should be: disabledHours(): boolean | Array; see: DatetimepickerOptions + */ + disabledHours(): boolean | any; + /**Must be in 24 hour format. Will disallow hour selections (much like disabledTimeIntervals) but will affect all days. + * Like en/disabledDates, the en/disabledHours options are mutually exclusive and will reset one of the options back to false. */ + disabledHours(value: boolean | Array): void; + /**Returns the options.disabledTimeIntervals option, or... not exactly + * IMPORTANT! Creates an object from the options.disabledTimeIntervals with the keys being numbers, the values being the moment arrays. + * eg { "0": [, ], "1": [...] } + * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1498 + */ + disabledTimeIntervals(): boolean | Array>; + /**Disables time selection between the given moments + * eg: [[moment({ h: 0 }), moment({ h: 8 })], [moment({ h: 18 }), moment({ h: 24 })]] + */ + disabledTimeIntervals(value: boolean | Array>): void; + /**Returns the options.enabledDates option + * NOTES: probably should be: enabledDates(): boolean | Array; see: DatetimepickerOptions + */ + enabledDates(): boolean | any; + /**Takes an array of values and allows the user to select only from those days. + * Setting this takes precedence over options.minDate, options.maxDate configuration. + * Also calling this function removes the configuration of options.disabledDates if such exist. + * Note: These values are matched with Day granularity. + */ + enabledDates(dates: boolean | Array): void; + /**Returns the options.enabledHours option. + * NOTES: probably should be: enabledHours(): boolean | Array; see: DatetimepickerOptions + */ + enabledHours(): boolean | any; + /**Must be in 24 hour format. Will allow hour selections (much like enabledTimeIntervals) but will affect all days. + * Like en/disabledDates, the en/disabledHours options are mutually exclusive and will reset one of the options back to false. */ + enabledHours(value: boolean | Array): void; + /**Returns a boolean or array with the options.extraFormats option configuration */ + extraFormats(): boolean | Array; + /**Takes an array of valid input moment format options, or boolean:false */ + extraFormats(formats: boolean | Array): void; + /**Returns the options.focusOnShow option. */ + focusOnShow(): boolean; + /**If false, the textbox will not be given focus when the picker is shown */ + focusOnShow(value: boolean): void; + /**Returns the component's options.format string */ + format(): boolean | string; + /**Takes a moment.js format string and sets the components options.format. + * This is used for displaying and also for parsing input strings either from the input element the component is attached to or the date() function. + * The parameter can also be a boolean:false in which case the format is set to the locale's L LT. + * Note: this is also used to determine if the TimePicker sub component will display the hours in 12 or 24 format. (if "a" or "h" exists in the passed string then a 12 hour mode is set) + */ + format(format: boolean | string): void; + /**Returns options.icons */ + icons(): Icons; + /**Takes an Object of strings. + * Throws: + * - TypeError - if icons parameter is not an Object + */ + icons(icons: Icons): void; + /**Returns the options.ignoreReadonly option. */ + ignoreReadonly(): boolean; + /**Set this to true to allow the picker to be used even if the input field is readonly. This will not bypass the disabled property */ + ignoreReadonly(value: boolean): void; + /**Returns the options.inline option. */ + inline(): boolean; + /**Used to customize the header of the day view. */ + inline(value: boolean): void; + /**Returns the options.keepInvalid option. */ + keepInvalid(): boolean; + /**If true, invalid dates will not be reverted to a previous selection or changed. */ + keepInvalid(value: boolean): void; + /**Returns a string variable with the currently set options.keyBinds option. */ + keyBinds(): any; + /**Allows for several keyBinding functions to be specified for ease of access or accessibility. For defaults see {@link http://eonasdan.github.io/bootstrap-datetimepicker/Options/#keybinds}. + */ + keyBinds(value: any): void; + /**Returns the currently set locale of the options.locale */ + locale(): string; + /**Takes a string of any valid moment locale e.g. de for German. + * Throws: + * - TypeError - if the locale is not loaded via a separate script or moment-with-locale + */ + locale(newLocale: string): void; + /**Returns the currently set moment of the options.maxDate or false if not set */ + maxDate(): moment.Moment | boolean; + /**Takes a parameter and disallows the user to select a moment that is after that moment. + * If a boolean:false value is passed options.maxDate is cleared and there is no restriction to the maximum moment the user can select. + * Note: If the parameter is before the currently selected moment the currently selected moment changes to maxDate + * Throws: + * - TypeError - if the parameter cannot be parsed using the options.format and options.useStrict configuration settings + * - TypeError - if the parameter is before options.minDate + * + * Emits: + * - dp.change - if the new maxDate is after currently selected moment + * - dp.error - if the new maxDate is after currently selected moment + */ + maxDate(date: moment.Moment | Date | string | boolean): void; + /**Returns the currently set moment of the options.minDate or false if not set */ + minDate(): moment.Moment | boolean; + /**Takes a parameter and disallows the user to select a moment that is before that moment. + * If a boolean:false value is passed the options.minDate parameter is cleared and there is no restriction to the miminum moment the user can select. + * Note: If the parameter is after the currently selected moment the currently selected moment changes to minDate parameter + * Throws: + * - TypeError - if the parameter cannot be parsed using the options.format and options.useStrict configuration settings + * - TypeError - if the parameter is after options.maxDate + * + * Emits: + * - dp.change - if the new minDate is after currently selected moment + * - dp.error - if the new minDate is after currently selected moment + */ + minDate(date: moment.Moment | Date | string | boolean): void; + /**Returns the options.parseInputDate option */ + parseInputDate(): Function; + /**Allows custom input formatting For example: the user can enter "yesterday"" or "30 days ago". + * {@link http://eonasdan.github.io/bootstrap-datetimepicker/Functions/#parseinputdate} + */ + parseInputDate(value: (input: string) => moment.Moment): void; + /**Returns the options.showClear option. */ + showClear(): boolean; + /**Set if the clear date button will appear on the widget */ + showClear(value: boolean): void; + /**Returns the options.showClose option. */ + showClose(): boolean; + /**If true, an icon will be displayed on the toolbar that will hide the picker */ + showClose(value: boolean): void; + /**Returns the options.showTodayButton option. */ + showTodayButton(): boolean; + /**Set if the Today button will appear on the widget */ + showTodayButton(value: boolean): void; + /**Returns a boolean of the options.sideBySide. */ + sideBySide(): boolean; + /**If sideBySide is true and the time picker is used, both components will display side by side instead of collapsing. */ + sideBySide(value: boolean): void; + /**Returns a number with the options.stepping option configuration */ + stepping(): number; + /**This will be the amount the up/down arrows move the minute value with a time picker. */ + stepping(step: number): void; + /**Returns the options.toolbarplacement option. */ + toolbarPlacement(): string; + /**Changes the placement of the toolbar where the today, clear, component switch icon are located. + * See valid values at DatetimepickerOptions.toolbarplacement + * Throws: + * - TypeError if the parameter is not a valid value + */ + toolbarPlacement(value: string): void; + /**Returns the options.tooltips option */ + tooltips(): Tooltips; + /**Sets the tooltips for icons. + * Throws: + * - TypeError - if tooltips parameter is not an Object + */ + tooltips(value: Tooltips): void; + /**Returns the options.useCurrent option configuration */ + useCurrent(): boolean | string; + /**Takes a boolean or string. + * If a boolean true is passed and the components model moment is not set (either through setDate or through a valid value on the input element the component is attached to) then the first time the user opens the datetimepicker widget the value is initialized to the current moment of the action. + * If a false boolean is passed then no initialization happens on the input element. + * You can select the granularity on the initialized moment by passing one of the following strings ("year", "month", "day", "hour", "minute") in the variable. + * If for example you pass "day" to the useCurrent function and the input field is empty the first time the user opens the datetimepicker widget the input text will be initialized to the current datetime with day granularity (ie if currentTime = 2014-08-10 13:32:33 the input value will be initialized to 2014-08-10 00:00:00) + * Note: If the options.defaultDate is set or the input element the component is attached to has already a value that takes precedence and the functionality of useCurrent is not triggered! + */ + useCurrent(value: boolean | string): void; + /**Returns the options.useStrict */ + useStrict(): boolean; + /**If useStrict is true, momentjs parsing rules will be stricter when determining if a date is valid or not. */ + useStrict(value: boolean): void; + /**Returns the options.viewDate option. */ + viewDate(): boolean | moment.Moment; + /**This will change the viewDate without changing or setting the selected date. */ + viewDate(value: string | Date | moment.Moment | boolean): void; + /**Returns the options.viewMode. */ + viewMode(): string; + /**Takes a string. See valid values at DatetimepickerOptions.viewMode + * Throws: + * - TypeError - if the parameter is not a string or not a valid value + */ + viewMode(value: string): void; + /**Returns the options.widgetPositioning object */ + widgetPositioning(): WidgetPositioningOptions; + /**WidgetPositioning defines where the dropdown with the widget will appear relative to the input element the component is attached to. + * "auto" is the default value for both horizontal and vertical keys and it tries to automatically place the dropdown in a position that is visible to the user. + * Usually you should not override those options unless you have a special need in your layout. + */ + widgetPositioning(value: WidgetPositioningOptions): void; + } + + interface DatetimepickerOptions { + /**If true, the picker will show on textbox focus and icon click when used in a button group + * @default: false + */ + allowInputToggle?: boolean; + /**Shows the week of the year to the left of first day of the week. + * @default: false + */ + calendarWeeks?: boolean; + /**Using a Bootstraps collapse to switch between date/time pickers. + * @default: true + */ + collapse?: boolean; + /**Disables the section of days of the week, e.g. weekends. + * Accepts: array of numbers from 0-6 + * @default: false + */ + daysOfWeekDisabled?: Array | boolean; + /**Changes the heading of the datepicker when in "days" view. + * @default: "MMMM YYYY" + */ + dayViewHeaderFormat?: string; + /**Will cause the date picker to stay open after a blur event. + * @default: false + */ + debug?: boolean; + /**Sets the picker default date/time. Overrides useCurrent + * @default: false + */ + defaultDate?: boolean | moment.Moment | Date | string; + /**Disables selection of dates in the array, e.g. holidays + * @default: false + * IMPORTANT! The getter returns an Object NOT an Array, with keys being the dates, values being true. + * eg disabledDates = ["2010-10-10"]; -> disabledDated will be { "2010-01-01": true } + * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1499 + */ + disabledDates?: boolean | Array | any; + /**Will allow or disallow hour selections (much like disabledTimeIntervals) but will affect all days + * @default: false + * IMPORTANT! The getter returns an Object NOT an Array, with keys being the hours, values being true. + * eg disabledHours = [0, 1]; -> disabledHours will be { "0": true, "1": true } + * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1499 + */ + disabledHours?: boolean | Array | any; + /**Disables time selection between the given moments + * eg: [[moment({ h: 0 }), moment({ h: 8 })], [moment({ h: 18 }), moment({ h: 24 })]] + * @default: false + */ + disabledTimeIntervals?: boolean | Array>; + /**Disables selection of dates NOT in the array, e.g. holidays + * @default: false + * IMPORTANT! The getter returns an Object NOT an Array, with keys being the dates, values being true. + * eg enabledDates = ["2010-10-10"]; -> enabledDated will be { "2010-01-01": true } + * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1499 + */ + enabledDates?: boolean | Array | any; + /**Will allow or disallow hour selections (much like disabledTimeIntervals) but will affect all days + * @default: false + * IMPORTANT! The getter returns an Object NOT an Array, with keys being the hours, values being true. + * eg enabledHours = [0, 1]; -> enabledHours will be { "0": true, "1": true } + * https://github.com/Eonasdan/bootstrap-datetimepicker/issues/1499 + */ + enabledHours?: boolean | Array; + /**Allows for several input formats to be valid. See: https://github.com/Eonasdan/bootstrap-datetimepicker/pull/666 + * @default: false + */ + extraFormats?: boolean | Array; + /**If false, the textbox will not be given focus when the picker is shown + * @default: true + */ + focusOnShow?: boolean; + /**See momentjs' docs for valid formats. Format also dictates what components are shown, e.g. MM/dd/YYYY will not display the time picker. + * @default: false + */ + format?: boolean | string; + /**Change the default icons for the pickers functions. */ + icons?: Icons; + /**Allow date picker show event to fire even when the associated input element has the readonly="readonly"property. + * @default: false + */ + ignoreReadonly?: boolean; + /**Will display the picker inline without the need of a input field. This will also hide borders and shadows. + * @default: false + */ + inline?: boolean; + /**Allows for custom events to fire on keyboard press. + * eg: keybinds: { + * up: (widget) => console.log(widget), + * "control up": (widget) => console.log(widget) + * } + * The widget parameter is false, if the datepicker is closed. + */ + keyBinds?: { [key: string]: (widget: boolean | JQuery) => void }; + /**Will cause the date picker to not revert or overwrite invalid dates. + * @default: false + */ + keepInvalid?: boolean; + /**Will cause the date picker to stay open after selecting a date if no time components are being used. + * @default: false + */ + keepOpen?: boolean; + /**See momentjs for valid locales. You must include moment-with-locales.js or a local js file. + * @default: moment.locale() + */ + locale?: string; + /**Prevents date/time selections after this date. + * maxDate will override defaultDate and useCurrent if either of these settings are the same day since both options are invalid according to the rules you've selected. + * @default: false + */ + maxDate?: boolean | moment.Moment | Date | string; + /**Prevents date/time selections before this date. + * minDate will override defaultDate and useCurrent if either of these settings are the same day since both options are invalid according to the rules you've selected. + * @default: false + */ + minDate?: boolean | moment.Moment | Date | string; + /**Allows custom input formatting For example: the user can enter "yesterday"" or "30 days ago". + * {@link http://eonasdan.github.io/bootstrap-datetimepicker/Functions/#parseinputdate} + */ + parseInputDate?: (input: string) => moment.Moment; + /**Show the "Clear" button in the icon toolbar. + * Clicking the "Clear" button will set the calendar to null. + * @default: false + */ + showClear?: boolean; + /**Show the "Close" button in the icon toolbar. + * Clicking the "Close" button will call hide() + * @default: false + */ + showClose?: boolean; + /**Show the "Today" button in the icon toolbar. + * Clicking the "Today" button will set the calendar view and set the date to now. + * @default: false + */ + showTodayButton?: boolean; + /**Shows the picker side by side when using the time and date together. + * @default: false + */ + sideBySide?: boolean; + /**Number of minutes the up/down arrow's will move the minutes value in the time picker + * @default: 1 + */ + stepping?: number; + /**Changes the placement of the icon toolbar. + * @default: "default" + */ + toolbarPlacement?: "default" | "top" | "bottom"; + /**This will change the tooltips over each icon to a custom string */ + tooltips?: Tooltips; + /**On show, will set the picker to the current date/time + * @default: true + */ + useCurrent?: boolean; + /**Defines if moment should use strict date parsing when considering a date to be valid + * @default: false + */ + useStrict?: boolean; + /**This will change the viewDate without changing or setting the selected date. + * @default: false + */ + viewDate?: boolean | moment.Moment | Date | string; + /**The default view to display when the picker is shown. + * Note: To limit the picker to selecting, for instance the year and month, use format: MM/YYYY + * @default: "days" + */ + viewMode?: "decades" | "years" | "months" | "days"; + /**On picker show, places the widget at the identifier (string) or jQuery object if the element has css position: "relative" + * @default: null + */ + widgetParent?: string | JQuery; + widgetPositioning?: WidgetPositioningOptions; } - interface DatetimepickerEventObject extends JQueryEventObject { + interface Icons { + /**default: "glyphicon glyphicon-trash" */ + clear?: string; + /**default: "glyphicon glyphicon-remove" */ + close?: string; + /**default: "glyphicon glyphicon-calendar" */ + date?: string; + /**default: "glyphicon glyphicon-time" */ + down?: string; + /**default: "glyphicon glyphicon-chevron-left" */ + next?: string; + /**default: "glyphicon glyphicon-screenshot" */ + previous?: string; + /**default: "glyphicon glyphicon-chevron-right" */ + time?: string; + /**default: "glyphicon glyphicon-chevron-down" */ + today?: string; + /**default: "glyphicon glyphicon-chevron-up" */ + up?: string; + } + + interface Tooltips { + today?: string; + clear?: string; + close?: string; + selectMonth?: string; + prevMonth?: string; + nextMonth?: string; + selectYear?: string; + prevYear?: string; + nextYear?: string; + selectDecade?: string; + prevDecade?: string; + nextDecade?: string; + prevCentury?: string; + nextCentury?: string; + selectTime?: string; + pickHour?: string; + incrementHour?: string; + decrementHour?: string; + pickMinute?: string; + incrementMinute?: string; + decrementMinute?: string; + togglePeriod?: string; + pickSecond?: string; + incrementSecond?: string; + decrementSecond?: string; + } + + interface WidgetPositioningOptions { + horizontal?: "auto" | "left" | "right"; + vertical?: "auto" | "top" | "bottom"; + } + + interface Event extends JQueryEventObject { date: moment.Moment; } - interface DatetimepickerIcons { - time?: string; - date?: string; - up?: string; - down?: string; - } - - interface DatetimepickerOptions { - pickDate?: boolean; - pickTime?: boolean; - useMinutes?: boolean; - useSeconds?: boolean; - useCurrent?: boolean; - minuteStepping?: number; - minDate?: moment.Moment | Date | string; - maxDate?: moment.Moment | Date | string; - showToday?: boolean; - collapse?: boolean; - language?: string; - defaultDate?: moment.Moment | Date | string; - disabledDates?: Array; - enabledDates?: Array; - icons?: DatetimepickerIcons; - useStrict?: boolean; - direction?: string; - sideBySide?: boolean; - daysOfWeekDisabled?: Array; - calendarWeeks?: boolean; - format?: string | boolean; - locale?: string; - showTodayButton?: boolean; - viewMode?: string; - inline?: boolean; - toolbarPlacement?: string; - showClear?: boolean; - ignoreReadonly?: boolean; - } - - interface Datetimepicker { - date(date: moment.Moment | Date | string): void; - date(): moment.Moment; - minDate(date: moment.Moment | Date | string): void; - minDate(): moment.Moment | boolean; - maxDate(date: moment.Moment | Date | string): void; - maxDate(): moment.Moment | boolean; - show(): void; - disable(): void; - enable(): void; - destroy(): void; - toggle(): void; + interface ChangeEvent extends Event { + /**Previous date. False if the previous date is null. */ + oldDate: moment.Moment | boolean; } + interface UpdateEvent extends JQueryEventObject { + /**Change type as a momentjs format token. e.g. yyyy on year change */ + change: string; + /**New viewDate. */ + viewDate: moment.Moment; + } } - interface JQuery { datetimepicker(): JQuery; datetimepicker(options: BootstrapV3DatetimePicker.DatetimepickerOptions): JQuery; - off(events: "dp.change", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; - off(events: "dp.change", handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; + data(key: "DateTimePicker"): BootstrapV3DatetimePicker.Datetimepicker; - on(events: "dp.change", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; - on(events: "dp.change", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; - on(events: 'dp.change', handler: (eventObject: BootstrapV3DatetimePicker.DatetimepickerChangeEventObject) => any): JQuery; + on(events: "dp.change", handler: (eventObject: BootstrapV3DatetimePicker.ChangeEvent) => any): JQuery; + on(events: "dp.change", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.ChangeEvent) => any): JQuery; + on(events: "dp.change", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.ChangeEvent) => any): JQuery; - off(events: "dp.show", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - off(events: "dp.show", handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + off(events: "dp.change", handler: (eventobject: BootstrapV3DatetimePicker.ChangeEvent) => any): JQuery; + off(events: "dp.change", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.ChangeEvent) => any): JQuery; - on(events: "dp.show", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - on(events: "dp.show", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - on(events: 'dp.show', handler: (eventObject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - off(events: "dp.hide", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - off(events: "dp.hide", handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + on(events: "dp.show", handler: (eventObject: BootstrapV3DatetimePicker.Event) => any): JQuery; + on(events: "dp.show", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + on(events: "dp.show", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; - on(events: "dp.hide", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - on(events: "dp.hide", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - on(events: 'dp.hide', handler: (eventObject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + off(events: "dp.show", handler: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + off(events: "dp.show", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; - off(events: "dp.error", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - off(events: "dp.error", handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - on(events: "dp.error", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - on(events: "dp.error", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; - on(events: 'dp.error', handler: (eventObject: BootstrapV3DatetimePicker.DatetimepickerEventObject) => any): JQuery; + on(events: "dp.hide", handler: (eventObject: BootstrapV3DatetimePicker.Event) => any): JQuery; + on(events: "dp.hide", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + on(events: "dp.hide", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; - data(key: 'DateTimePicker'): BootstrapV3DatetimePicker.Datetimepicker; + off(events: "dp.hide", handler: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + off(events: "dp.hide", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + + + on(events: "dp.error", handler: (eventObject: BootstrapV3DatetimePicker.Event) => any): JQuery; + on(events: "dp.error", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + on(events: "dp.error", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + + off(events: "dp.error", handler: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + off(events: "dp.error", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + + + on(events: "dp.update", handler: (eventObject: BootstrapV3DatetimePicker.UpdateEvent) => any): JQuery; + on(events: "dp.update", selector: string, handler: (eventobject: BootstrapV3DatetimePicker.UpdateEvent) => any): JQuery; + on(events: "dp.update", selector: string, data: any, handler?: (eventobject: BootstrapV3DatetimePicker.UpdateEvent) => any): JQuery; + + off(events: "dp.update", handler: (eventobject: BootstrapV3DatetimePicker.Event) => any): JQuery; + off(events: "dp.update", selector?: string, handler?: (eventobject: BootstrapV3DatetimePicker.UpdateEvent) => any): JQuery; } diff --git a/bootstrap/bootstrap.d.ts b/bootstrap/bootstrap.d.ts index 8037cad6c1..b0e8fbf858 100644 --- a/bootstrap/bootstrap.d.ts +++ b/bootstrap/bootstrap.d.ts @@ -1,7 +1,7 @@ // Type definitions for Bootstrap 3.3.5 // Project: http://twitter.github.com/bootstrap/ // Definitions by: Boris Yankov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bounce/bounce.d.ts b/bounce/bounce.d.ts index 9ff7c3a088..54fe897638 100644 --- a/bounce/bounce.d.ts +++ b/bounce/bounce.d.ts @@ -1,7 +1,7 @@ // Type definitions for Bounce.js v0.8.2 // Project: http://github.com/tictail/bounce.js // Definitions by: Cherry -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bowser/bowser.d.ts b/bowser/bowser.d.ts index d3509a72b6..2bf1b3d510 100644 --- a/bowser/bowser.d.ts +++ b/bowser/bowser.d.ts @@ -1,14 +1,14 @@ // Type definitions for Bowser 1.x // Project: https://github.com/ded/bowser // Definitions by: Paulo Cesar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'bowser' { var def: BowserModule.IBowser; export = def; } -declare module BowserModule { +declare namespace BowserModule { export interface IBowserUA { msie: boolean; diff --git a/box2d/box2dweb.d.ts b/box2d/box2dweb.d.ts index 0f0576b433..26411b2198 100644 --- a/box2d/box2dweb.d.ts +++ b/box2d/box2dweb.d.ts @@ -1,7 +1,7 @@ // Type definitions for bootstrap.timepicker // Project: http://code.google.com/p/box2dweb/ // Definitions by: jbaldwin -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * Box2DWeb-2.1.d.ts Copyright (c) 2012-2013 Josh Baldwin http://github.com/jbaldwin/box2dweb.d.ts @@ -26,7 +26,7 @@ * 3. This notice may not be removed or altered from any source distribution. **/ -declare module Box2D.Common { +declare namespace Box2D.Common { /** * Color for debug drawing. Each value has the range [0, 1]. @@ -72,7 +72,7 @@ declare module Box2D.Common { } } -declare module Box2D.Common { +declare namespace Box2D.Common { /** * Controls Box2D global settings. @@ -224,7 +224,7 @@ declare module Box2D.Common { } } -declare module Box2D.Common.Math { +declare namespace Box2D.Common.Math { /** * A 2-by-2 matrix. Stored in column-major order. @@ -337,7 +337,7 @@ declare module Box2D.Common.Math { } } -declare module Box2D.Common.Math { +declare namespace Box2D.Common.Math { /** * A 3-by3 matrix. Stored in column-major order. @@ -424,7 +424,7 @@ declare module Box2D.Common.Math { } } -declare module Box2D.Common.Math { +declare namespace Box2D.Common.Math { /** * Math utility functions. @@ -479,7 +479,7 @@ declare module Box2D.Common.Math { public static MulMV(A: b2Mat22, v: b2Vec2): b2Vec2; /** - * + * * @param A * @param v * @return @@ -487,7 +487,7 @@ declare module Box2D.Common.Math { public static MulTMV(A: b2Mat22, v: b2Vec2): b2Vec2; /** - * + * * @param T * @param v * @return @@ -495,7 +495,7 @@ declare module Box2D.Common.Math { public static MulX(T: b2Transform, v: b2Vec2): b2Vec2; /** - * + * * @param T * @param v * @return @@ -535,7 +535,7 @@ declare module Box2D.Common.Math { public static DistanceSquared(a: b2Vec2, b: b2Vec2): number; /** - * + * * @param s * @param a * @return @@ -543,7 +543,7 @@ declare module Box2D.Common.Math { public static MulFV(s: number, a: b2Vec2): b2Vec2; /** - * + * * @param A * @param B * @return @@ -551,7 +551,7 @@ declare module Box2D.Common.Math { public static AddMM(A: b2Mat22, B: b2Mat22): b2Mat22; /** - * + * * @param A * @param B * @return @@ -559,7 +559,7 @@ declare module Box2D.Common.Math { public static MulMM(A: b2Mat22, B: b2Mat22): b2Mat22; /** - * + * * @param A * @param B * @return @@ -689,7 +689,7 @@ declare module Box2D.Common.Math { } } -declare module Box2D.Common.Math { +declare namespace Box2D.Common.Math { /** * This describes the motion of a body/shape for TOI computation. Shapes are defined with respect to the body origin, which may no coincide with the center of mass. However, to support dynamics we must interpolate the center of mass position. @@ -752,7 +752,7 @@ declare module Box2D.Common.Math { } } -declare module Box2D.Common.Math { +declare namespace Box2D.Common.Math { /** * A transform contains translation and rotation. It is used to represent the position and orientation of rigid frames. @@ -802,7 +802,7 @@ declare module Box2D.Common.Math { } } -declare module Box2D.Common.Math { +declare namespace Box2D.Common.Math { /** * A 2D column vector. @@ -953,7 +953,7 @@ declare module Box2D.Common.Math { } } -declare module Box2D.Common.Math { +declare namespace Box2D.Common.Math { /** * A 2D column vector with 3 elements. @@ -1039,7 +1039,7 @@ declare module Box2D.Common.Math { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Axis aligned bounding box. @@ -1113,7 +1113,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * We use contact ids to facilitate warm starting. @@ -1149,7 +1149,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * This structure is used to report contact points. @@ -1203,7 +1203,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Input for b2Distance. You have to option to use the shape radii in the computation. Even @@ -1237,7 +1237,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Output calculation for b2Distance. @@ -1266,7 +1266,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * A distance proxy is used by the GJK algorithm. It encapsulates any shape. @@ -1323,7 +1323,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * A dynamic tree arranges data in a binary tree to accelerate queries such as volume queries and ray casts. Leafs are proxies with an AABB. In the tree we expand the proxy AABB by b2_fatAABBFactor so that the proxy AABB is bigger than the client object. This allows the client object to move by small amounts without triggering a tree update. Nodes are pooled. @@ -1398,7 +1398,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * The broad-phase is used for computing pairs and performing volume queries and ray casts. This broad-phase does not persist pairs. Instead, this reports potentially new pairs. It is up to the client to consume the new pairs and to track subsequent overlap. @@ -1479,7 +1479,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Empty declaration, used in many callbacks within b2DynamicTree. @@ -1490,7 +1490,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * A manifold for two touching convex shapes. Box2D supports multiple types of contact: - clip point versus plane with radius - point versus point with radius (circles) The local point usage depends on the manifold type: -e_circles: the local center of circleA -e_faceA: the center of faceA -e_faceB: the center of faceB Similarly the local normal usage: -e_circles: not used -e_faceA: the normal on polygonA -e_faceB: the normal on polygonB We store contacts in this way so that position correction can account for movement, which is critical for continuous physics. All contact scenarios must be expressed in one of these types. This structure is stored across time steps, so we keep it small. @@ -1561,7 +1561,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * A manifold point is a contact point belonging to a contact manifold. It holds details related to the geometry and dynamics of the contact points. The local point usage depends on the manifold type: -e_circles: the local center of circleB -e_faceA: the local center of cirlceB or the clip point of polygonB -e_faceB: the clip point of polygonA This structure is stored across time steps, so we keep it small. Note: the impulses are used for internal caching and may not provide reliable contact forces, especially for high speed collisions. @@ -1606,7 +1606,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * An oriented bounding box. @@ -1630,7 +1630,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Ray cast input data. @@ -1662,7 +1662,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Results of a ray cast. @@ -1681,7 +1681,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * A line in space between two given vertices. @@ -1731,7 +1731,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Used to warm start b2Distance. Set count to zero on first call. @@ -1760,7 +1760,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Inpute parameters for b2TimeOfImpact @@ -1794,7 +1794,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * This is used to compute the current state of a contact manifold. @@ -1833,7 +1833,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * We use contact ids to facilitate warm starting. @@ -1862,7 +1862,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision { +declare namespace Box2D.Collision { /** * Interface for objects tracking overlap of many AABBs. @@ -1936,7 +1936,7 @@ declare module Box2D.Collision { } } -declare module Box2D.Collision.Shapes { +declare namespace Box2D.Collision.Shapes { /** * A circle shape. @@ -1959,7 +1959,7 @@ declare module Box2D.Collision.Shapes { /** * Compute the mass properties of this shape using its dimensions and density. The inertia tensor is computed about the local origin, not the centroid. * @param massData Calculate the mass, this argument is `out`. - * @param density + * @param density **/ public ComputeMass(massData: b2MassData, density: number): void; @@ -2034,7 +2034,7 @@ declare module Box2D.Collision.Shapes { } } -declare module Box2D.Collision.Shapes { +declare namespace Box2D.Collision.Shapes { /** * This structure is used to build edge shapes. @@ -2063,7 +2063,7 @@ declare module Box2D.Collision.Shapes { } } -declare module Box2D.Collision.Shapes { +declare namespace Box2D.Collision.Shapes { /** * An edge shape. @@ -2219,7 +2219,7 @@ declare module Box2D.Collision.Shapes { } } -declare module Box2D.Collision.Shapes { +declare namespace Box2D.Collision.Shapes { /** * This holds the mass data computed for a shape. @@ -2243,7 +2243,7 @@ declare module Box2D.Collision.Shapes { } } -declare module Box2D.Collision.Shapes { +declare namespace Box2D.Collision.Shapes { /** * Convex polygon. The vertices must be in CCW order for a right-handed coordinate system with the z-axis coming out of the screen. @@ -2425,7 +2425,7 @@ declare module Box2D.Collision.Shapes { } } -declare module Box2D.Collision.Shapes { +declare namespace Box2D.Collision.Shapes { /** * A shape is used for collision detection. Shapes are created in b2Body. You can use shape for collision detection before they are attached to the world. @@ -2539,7 +2539,7 @@ declare module Box2D.Collision.Shapes { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * A rigid body. @@ -2916,14 +2916,14 @@ declare module Box2D.Dynamics { /** * Splits a body into two, preserving dynamic properties * @note This provides a feature specific to this port. - * @param callback + * @param callback * @return The newly created bodies from the split. **/ public Split(callback: (fixture: b2Fixture) => boolean): b2Body; } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * A body definition holds all the data needed to construct a rigid body. You can safely re-use body definitions. @@ -3005,7 +3005,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * Implement this class to provide collision filtering. In other words, you can implement this class if you want finer control over contact creation. @@ -3033,7 +3033,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * Contact impulses for reporting. Impulses are used instead of forces because sub-step forces may approach infinity for rigid body collisions. These match up one-to-one with the contact points in b2Manifold. @@ -3052,7 +3052,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * Implement this class to get contact information. You can use these results for things like sounds and game logic. You can also get contact results by traversing the contact lists after the time step. However, you might miss some contacts because continuous physics leads to sub-stepping. Additionally you may receive multiple callbacks for the same contact in a single time step. You should strive to make your callbacks efficient because there may be many callbacks per time step. @@ -3088,7 +3088,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * Implement and register this class with a b2World to provide debug drawing of physics entities in your game. @@ -3281,7 +3281,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * Joints and shapes are destroyed when their associated body is destroyed. Implement this listener so that you may nullify references to these joints and shapes. @@ -3302,7 +3302,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * This holds contact filtering data. @@ -3332,7 +3332,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * A fixture is used to attach a shape to a body for collision detection. A fixture inherits its transform from its parent. Fixtures hold additional non-geometric data such as friction, collision filters, etc. Fixtures are created via b2Body::CreateFixture. @@ -3466,7 +3466,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * A fixture definition is used to create a fixture. This class defines an abstract fixture definition. You can reuse fixture definitions safely. @@ -3515,7 +3515,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics { +declare namespace Box2D.Dynamics { /** * The world class manages all physics entities, dynamic simulation, and asynchronous queries. @@ -3684,11 +3684,11 @@ declare module Box2D.Dynamics { /** * Ray-cast the world for all fixtures in the path of the ray. Your callback Controls whether you get the closest point, any point, or n-points The ray-cast ignores shapes that contain the starting point. - * @param callback A callback function which must be of signature: + * @param callback A callback function which must be of signature: * function Callback( - * fixture:b2Fixture, // The fixture hit by the ray - * point:b2Vec2, // The point of initial intersection - * normal:b2Vec2, // The normal vector at the point of intersection + * fixture:b2Fixture, // The fixture hit by the ray + * point:b2Vec2, // The point of initial intersection + * normal:b2Vec2, // The normal vector at the point of intersection * fraction:Number // The fractional length along the ray of the intersection * ):Number * Callback should return the new length of the ray as a fraction of the original length. By returning 0, you immediately terminate. By returning 1, you continue wiht the original ray. By returning the current fraction, you proceed to find the closest point. @@ -3783,7 +3783,7 @@ declare module Box2D.Dynamics { } } -declare module Box2D.Dynamics.Contacts { +declare namespace Box2D.Dynamics.Contacts { /** * The class manages contact between two shapes. A contact exists for each overlapping AABB in the broad-phase (except if filtered). Therefore a contact object may exist that has no contact points. @@ -3869,7 +3869,7 @@ declare module Box2D.Dynamics.Contacts { } } -declare module Box2D.Dynamics.Contacts { +declare namespace Box2D.Dynamics.Contacts { /** * A contact edge is used to connect bodies and contacts together in a contact graph where each body is a node and each contact is an edge. A contact edge belongs to a doubly linked list maintained in each attached body. Each contact has two contact nodes, one for each attached body. @@ -3898,7 +3898,7 @@ declare module Box2D.Dynamics.Contacts { } } -declare module Box2D.Dynamics.Contacts { +declare namespace Box2D.Dynamics.Contacts { /** * This structure is used to report contact point results. @@ -3942,7 +3942,7 @@ declare module Box2D.Dynamics.Contacts { } } -declare module Box2D.Dynamics.Controllers { +declare namespace Box2D.Dynamics.Controllers { /** * Base class for controllers. Controllers are a convience for encapsulating common per-step functionality. @@ -4008,7 +4008,7 @@ declare module Box2D.Dynamics.Controllers { } } -declare module Box2D.Dynamics.Controllers { +declare namespace Box2D.Dynamics.Controllers { /** * Controller Edge. @@ -4047,7 +4047,7 @@ declare module Box2D.Dynamics.Controllers { } } -declare module Box2D.Dynamics.Controllers { +declare namespace Box2D.Dynamics.Controllers { /** * Calculates buoyancy forces for fluids in the form of a half plane. @@ -4108,7 +4108,7 @@ declare module Box2D.Dynamics.Controllers { } } -declare module Box2D.Dynamics.Controllers { +declare namespace Box2D.Dynamics.Controllers { /** * Applies an acceleration every frame, like gravity @@ -4127,7 +4127,7 @@ declare module Box2D.Dynamics.Controllers { } } -declare module Box2D.Dynamics.Controllers { +declare namespace Box2D.Dynamics.Controllers { /** * Applies an acceleration every frame, like gravity. @@ -4146,7 +4146,7 @@ declare module Box2D.Dynamics.Controllers { } } -declare module Box2D.Dynamics.Controllers { +declare namespace Box2D.Dynamics.Controllers { /** * Applies simplified gravity between every pair of bodies. @@ -4171,7 +4171,7 @@ declare module Box2D.Dynamics.Controllers { } } -declare module Box2D.Dynamics.Controllers { +declare namespace Box2D.Dynamics.Controllers { /** * Applies top down linear damping to the controlled bodies The damping is calculated by multiplying velocity by a matrix in local co-ordinates. @@ -4203,7 +4203,7 @@ declare module Box2D.Dynamics.Controllers { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * The base joint class. Joints are used to constraint two bodies together in various fashions. Some joints also feature limits and motors. @@ -4242,7 +4242,7 @@ declare module Box2D.Dynamics.Joints { /** * Get the reaction force on body2 at the joint anchor in Newtons. - * @param inv_dt + * @param inv_dt * @return Reaction force (N) **/ public GetReactionForce(inv_dt: number): Box2D.Common.Math.b2Vec2; @@ -4280,7 +4280,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Joint definitions are used to construct joints. @@ -4319,7 +4319,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * A joint edge is used to connect bodies and joints together in a joint graph where each body is a node and each joint is an edge. A joint edge belongs to a doubly linked list maintained in each attached body. Each joint has two joint nodes, one for each attached body. @@ -4348,7 +4348,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * A distance joint constrains two points on two bodies to remain at a fixed distance from each other. You can view this as a massless, rigid rod. @@ -4419,7 +4419,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Distance joint definition. This requires defining an anchor point on both bodies and the non-zero length of the distance joint. The definition uses local anchor points so that the initial configuration can violate the constraint slightly. This helps when saving and loading a game. @@ -4468,7 +4468,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Friction joint. This is used for top-down friction. It provides 2D translational friction and angular friction. @@ -4536,7 +4536,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Friction joint defintion. @@ -4578,7 +4578,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * A gear joint is used to connect two joints together. Either joint can be a revolute or prismatic joint. You specify a gear ratio to bind the motions together: coordinate1 + ratio coordinate2 = constant The ratio can be negative or positive. If one joint is a revolute joint and the other joint is a prismatic joint, then the ratio will have units of length or units of 1/length. @@ -4626,7 +4626,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Gear joint definition. This definition requires two existing revolute or prismatic joints (any combination will work). The provided joints must attach a dynamic body to a static body. @@ -4655,7 +4655,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * A line joint. This joint provides one degree of freedom: translation along an axis fixed in body1. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction. @@ -4775,7 +4775,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Line joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game. @@ -4843,7 +4843,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * A mouse joint is used to make a point on a body track a specified world point. This a soft constraint with a maximum force. This allows the constraint to stretch and without applying huge forces. Note: this joint is not fully documented as it is intended primarily for the testbed. See that for more instructions. @@ -4926,7 +4926,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Mouse joint definition. This requires a world target point, tuning parameters, and the time step. @@ -4955,7 +4955,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * A prismatic joint. This joint provides one degree of freedom: translation along an axis fixed in body1. Relative rotation is prevented. You can use a joint limit to restrict the range of motion and a joint motor to drive the motion or to model joint friction. @@ -5069,7 +5069,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Prismatic joint definition. This requires defining a line of motion using an axis and an anchor point. The definition uses local anchor points and a local axis so that the initial configuration can violate the constraint slightly. The joint translation is zero when the local anchor points coincide in world space. Using local anchors and a local axis helps when saving and loading a game. @@ -5142,7 +5142,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * The pulley joint is connected to two bodies and two fixed ground points. The pulley supports a ratio such that: length1 + ratio length2 <= constant Yes, the force transmitted is scaled by the ratio. The pulley also enforces a maximum length limit on both sides. This is useful to prevent one side of the pulley hitting the top. @@ -5202,7 +5202,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Pulley joint definition. This requires two ground anchors, two dynamic body anchor points, max lengths for each side, and a pulley ratio. @@ -5272,7 +5272,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * A revolute joint constrains to bodies to share a common point while they are free to rotate about the point. The relative rotation about the shared point is the joint angle. You can limit the relative rotation with a joint limit that specifies a lower and upper angle. You can use a motor to drive the relative rotation about the shared point. A maximum motor torque is provided so that infinite forces are not generated. @@ -5386,7 +5386,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Revolute joint definition. This requires defining an anchor point where the bodies are joined. The definition uses local anchor points so that the initial configuration can violate the constraint slightly. You also need to specify the initial relative angle for joint limits. This helps when saving and loading a game. The local anchor points are measured from the body's origin rather than the center of mass because: 1. you might not know where the center of mass will be. 2. if you add/remove shapes from a body and recompute the mass, the joints will be broken. @@ -5453,7 +5453,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * A weld joint essentially glues two bodies together. A weld joint may distort somewhat because the island constraint solver is approximate. @@ -5488,7 +5488,7 @@ declare module Box2D.Dynamics.Joints { } } -declare module Box2D.Dynamics.Joints { +declare namespace Box2D.Dynamics.Joints { /** * Weld joint definition. You need to specify local anchor points where they are attached and the relative body angle. The position of the anchor points is important for computing the reaction torque. diff --git a/breeze/breeze-tests.ts b/breeze/breeze-tests.ts index 1f9c87dfa9..022f4e3c16 100644 --- a/breeze/breeze-tests.ts +++ b/breeze/breeze-tests.ts @@ -443,7 +443,7 @@ function test_entityType() { var myEntityType: breeze.EntityType; var dataProperty1: breeze.DataProperty, dataProperty2: breeze.DataProperty, navigationProperty1: breeze.DataProperty; var em1: breeze.EntityManager; - /* NOTE https://github.com/borisyankov/DefinitelyTyped/pull/5590 + /* NOTE https://github.com/DefinitelyTyped/DefinitelyTyped/pull/5590 var entityManager = new breeze.EntityType({ metadataStore: myMetadataStore, serviceName: "breeze/NorthwindIBModel", @@ -761,7 +761,7 @@ function test_validator() { orderType = em1.metadataStore.getEntityType("Order"); var orderDateProperty = orderType.getProperty("OrderDate"); orderDateProperty.validators.push(breeze.Validator.date()); - /* NOTE https://github.com/borisyankov/DefinitelyTyped/pull/5590 + /* NOTE https://github.com/DefinitelyTyped/DefinitelyTyped/pull/5590 var v0 = breeze.Validator.maxLength({ maxLength: 5, displayName: "City" }); v0.validate("adasdfasdf"); var errMessage = v0.getMessage(); @@ -792,7 +792,7 @@ function test_validator() { regionProperty.validators.push(breeze.Validator.string()); custType = em1.metadataStore.getEntityType("Customer"); regionProperty = custType.getProperty("Region"); - /* NOTE https://github.com/borisyankov/DefinitelyTyped/pull/5590 + /* NOTE https://github.com/DefinitelyTyped/DefinitelyTyped/pull/5590 regionProperty.validators.push(breeze.Validator.stringLength({ minLength: 2, maxLength: 5 })); var validator = breeze.Validator.maxLength({ maxLength: 5, displayName: "City" }); var result = validator.validate("asdf"); diff --git a/breeze/breeze.d.ts b/breeze/breeze.d.ts index 1cc587c2f2..28a6be26c9 100644 --- a/breeze/breeze.d.ts +++ b/breeze/breeze.d.ts @@ -1,7 +1,7 @@ // Type definitions for Breeze 1.5.x // Project: http://www.breezejs.com/ // Definitions by: Boris Yankov , IdeaBlade -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Updated Jan 14 2011 - Jay Traband ( www.ideablade.com). // Updated Aug 13 2013 - Steve Schmitt ( www.ideablade.com). @@ -12,7 +12,7 @@ // Updated Jan 20 2015 for Breeze 1.5.2 and merging changes from DefinitelyTyped // Updated Feb 28 2015 add any/all clause on Predicate -declare module breeze.core { +declare namespace breeze.core { interface ErrorCallback { (error: Error): void; @@ -89,7 +89,7 @@ declare module breeze.core { export function formatString(format: string, ...args: any[]): string; } -declare module breeze { +declare namespace breeze { interface Entity { entityAspect: EntityAspect; @@ -962,7 +962,7 @@ declare module breeze { /** Creates a regular expression validator with a fixed expression. */ static makeRegExpValidator(validatorName: string, expression: RegExp, defaultMessage: string, context?: any): Validator; - /** Run this validator against the specified value. + /** Run this validator against the specified value. @param value {Object} Value to validate @param additionalContext {Object} Any additional contextual information that the Validator can make use of. @return {ValidationError|null} A ValidationError if validation fails, null otherwise */ @@ -990,7 +990,7 @@ declare module breeze { var version: string; } -declare module breeze.config { +declare namespace breeze.config { var ajax: string; var dataService: string; var functionRegistry: Object; @@ -1014,13 +1014,13 @@ declare module breeze.config { **/ export function getAdapterInstance(interfaceName: string, adapterName?: string): Object; /** - Initializes a single adapter implementation. Initialization means either newing a instance of the + Initializes a single adapter implementation. Initialization means either newing a instance of the specified interface and then calling "initialize" on it or simply calling "initialize" on the instance if it already exists. @method initializeAdapterInstance @param interfaceName {String} The name of the interface to which the adapter to initialize belongs. @param adapterName {String} - The name of a previously registered adapter to initialize. - @param [isDefault=true] {Boolean} - Whether to make this the default "adapter" for this interface. + @param [isDefault=true] {Boolean} - Whether to make this the default "adapter" for this interface. @return {an instance of the specified adapter} **/ export function initializeAdapterInstance(interfaceName: string, adapterName: string, isDefault?: boolean): void; @@ -1040,16 +1040,16 @@ declare module breeze.config { var objectRegistry: Object; /** Method use to register implementations of standard breeze interfaces. Calls to this method are usually - made as the last step within an adapter implementation. + made as the last step within an adapter implementation. @method registerAdapter @param interfaceName {String} - one of the following interface names "ajax", "dataService" or "modelLibrary" - @param adapterCtor {Function} - an ctor function that returns an instance of the specified interface. + @param adapterCtor {Function} - an ctor function that returns an instance of the specified interface. **/ export function registerAdapter(interfaceName: string, adapterCtor: Function): void; export function registerFunction(fn: Function, fnName: string): void; export function registerType(ctor: Function, typeName: string): void; //static setProperties(config: Object): void; //deprecated - /** + /** Set the promise implementation, if Q.js is not found. @param q - implementation of promise. @see http://wiki.commonjs.org/wiki/Promises/A */ @@ -1060,7 +1060,7 @@ declare module breeze.config { } /** Promises interface used by Breeze. Usually implemented by Q (https://github.com/kriskowal/q) or angular.$q using breeze.config.setQ(impl) */ -declare module breeze.promises { +declare namespace breeze.promises { interface IPromise { then(onFulfill: (value: T) => U, onReject?: (reason: any) => U): IPromise; then(onFulfill: (value: T) => IPromise, onReject?: (reason: any) => U): IPromise; diff --git a/brorand/brorand.d.ts b/brorand/brorand.d.ts index aa0e6ff5d3..efef9baa3f 100644 --- a/brorand/brorand.d.ts +++ b/brorand/brorand.d.ts @@ -1,7 +1,7 @@ // Type definitions for Brorand v1.0.5 // Project: https://github.com/indutny/brorand // Definitions by: Ilya Mochalov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/browser-harness/browser-harness.d.ts b/browser-harness/browser-harness.d.ts index 33090e50a5..c57311b1f8 100644 --- a/browser-harness/browser-harness.d.ts +++ b/browser-harness/browser-harness.d.ts @@ -1,7 +1,7 @@ // Type definitions for Browser Harness // Project: https://github.com/scriby/browser-harness // Definitions by: Chris Scribner -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/browser-sync/browser-sync.d.ts b/browser-sync/browser-sync.d.ts index 6640090bcb..3bc083d1f1 100644 --- a/browser-sync/browser-sync.d.ts +++ b/browser-sync/browser-sync.d.ts @@ -1,7 +1,7 @@ // Type definitions for browser-sync // Project: http://www.browsersync.io/ // Definitions by: Asana , Joe Skeen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// diff --git a/browserify/browserify.d.ts b/browserify/browserify.d.ts index 447b39a967..a3a9c4efd1 100644 --- a/browserify/browserify.d.ts +++ b/browserify/browserify.d.ts @@ -1,11 +1,11 @@ // Type definitions for Browserify v12.0.1 // Project: http://browserify.org/ // Definitions by: Andrew Gaspar , John Vilk -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Browserify { +declare namespace Browserify { /** * Options pertaining to an individual file. */ diff --git a/bs58/bs58.d.ts b/bs58/bs58.d.ts index 02b1cd3183..00ebbbfec7 100644 --- a/bs58/bs58.d.ts +++ b/bs58/bs58.d.ts @@ -1,7 +1,7 @@ // Type definitions for bs58 3.0.0 // Project: https://github.com/cryptocoinjs/bs58 // Definitions by: Ilya Mochalov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bson/bson.d.ts b/bson/bson.d.ts index e92801835f..c311103ff3 100644 --- a/bson/bson.d.ts +++ b/bson/bson.d.ts @@ -1,14 +1,14 @@ // Type definitions for bson 0.4.21 // Project: https://github.com/mongodb/js-bson // Definitions by: Hiroki Horiuchi -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module 'bson' { - module bson { + namespace bson { export module BSONPure { diff --git a/bucks/bucks.d.ts b/bucks/bucks.d.ts index cac3c71217..ab3a1f455a 100644 --- a/bucks/bucks.d.ts +++ b/bucks/bucks.d.ts @@ -1,9 +1,9 @@ // Type definitions for bucks.js 0.8.3 // Project: https://github.com/CyberAgent/bucks.js // Definitions by: Shunsuke Ohtani -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Bucks { +declare namespace Bucks { interface BucksStatic { diff --git a/buffer-compare/buffer-compare.d.ts b/buffer-compare/buffer-compare.d.ts index 58e4004dcb..47bd3fcbec 100644 --- a/buffer-compare/buffer-compare.d.ts +++ b/buffer-compare/buffer-compare.d.ts @@ -1,7 +1,7 @@ // Type definitions for buffer-compare // Project: https://github.com/soldair/node-buffer-compare // Definitions by: Ilya Mochalov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "buffer-compare" { interface List { diff --git a/buffer-equal/buffer-equal.d.ts b/buffer-equal/buffer-equal.d.ts index d6af4f8134..b3ede1fc1d 100644 --- a/buffer-equal/buffer-equal.d.ts +++ b/buffer-equal/buffer-equal.d.ts @@ -1,7 +1,7 @@ // Type definitions for buffer-equal 0.0.1 // Project: https://github.com/substack/node-buffer-equal // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/buffers/buffers.d.ts b/buffers/buffers.d.ts index fad36d3c49..e2ca5c2708 100644 --- a/buffers/buffers.d.ts +++ b/buffers/buffers.d.ts @@ -1,7 +1,7 @@ // Type definitions for buffers 0.1.1 // Project: https://github.com/substack/node-buffers // Definitions by: Robert Hencke -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bufferstream/bufferstream.d.ts b/bufferstream/bufferstream.d.ts index 5323103e27..ee115d0ab5 100644 --- a/bufferstream/bufferstream.d.ts +++ b/bufferstream/bufferstream.d.ts @@ -1,7 +1,7 @@ // Type definitions for bufferstream v0.6.2 // Project: https://github.com/dodo/node-bufferstream // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -64,7 +64,7 @@ declare module 'bufferstream' { */ length: number; } - module BufferStream { + namespace BufferStream { export interface Opts { /* diff --git a/bugsnag/bugsnag-tests.ts b/bugsnag/bugsnag-tests.ts new file mode 100644 index 0000000000..8e91e03c6b --- /dev/null +++ b/bugsnag/bugsnag-tests.ts @@ -0,0 +1,27 @@ +/// + +Bugsnag.apiKey = "API-KEY"; + +Bugsnag.releaseStage = "beta"; +Bugsnag.appVersion = "2.4.56"; + +Bugsnag.user = { + name: "Robert K. User", + email: "robbie@example.com" +}; + +Bugsnag.metaData = { + account: { + name: "Acme Co", + plan: "hacker" + } +} + +Bugsnag.notifyException(new Error("Something broke")); + +Bugsnag.notify("Serious Problem", "We are out of cookies"); + +Bugsnag.notify("Serious Problem", + "We are out of cookies", + { remaining_snacks: ["carrots", "biscuits"] }, + "error"); diff --git a/bugsnag/bugsnag.d.ts b/bugsnag/bugsnag.d.ts new file mode 100644 index 0000000000..1ba14de2ef --- /dev/null +++ b/bugsnag/bugsnag.d.ts @@ -0,0 +1,90 @@ +// Type definitions for Bugsnag v2.5.0 +// Project: https://github.com/bugsnag/bugsnag-js +// Definitions by: Delisa Mason +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +interface BugsnagUser { + id?: string, + name?: string, + email?: string +} + +interface BugsnagStatic { + /** Bugsnag project API key */ + apiKey: string; + /** The client application version */ + appVersion: string; + /** true if Bugsnag should be automatically notified of errors which are + * sent to `window.onerror` + */ + autoNotify: boolean; + /** Callback run before error reports are sent to Bugsnag. + * Payload and metadata information can be altered or removed altogether. + * To cancel sending the report, return false from this function. + */ + beforeNotify: (payload: any, metaData: any) => boolean; + /** The pathname of the current page, not including the fragment identifier + * nor search parameters + */ + context: string; + /** Disables console-based logging. Defaults to false. */ + disableLog: boolean; + /** The address used to send errors to Bugsnag. The default is + * `https://notify.bugsnag.com/js` + */ + endpoint: string; + /** Enables sending inline scripts on the page to Bugsnag to assist with + * debugging. Defaults to true + */ + inlineScript: boolean; + /** The maximum depth to parse the error stack */ + maxDepth: number; + /** Additional metadata to send to Bugsnag with every error. */ + metaData: any; + /** The method used for the notify request. The default is a temporary + * JavaScript image object, however Chrome apps/extensions and other + * applications where XHR is needed can use `xhr` instead. + */ + notifyHandler: string; + /** The releases stages during which Bugsnag will be notified of errors. */ + notifyReleaseStages: string[]; + /** The recorded root of the project. The default is the current host + * address (protocol and domain). + */ + projectRoot: string; + /** Current phase of the application release process. The default is + * `production` + */ + releaseStage: string; + /** Information about the current user which is sent to Bugsnag with + * exception reports + */ + user: BugsnagUser; + + /** Continue catching exceptions after the page error limit is reached. + * Useful for long-running single-page apps + */ + refresh(): void; + + /** Remove Bugsnag from the window object and restore the previous + * binding + */ + noConflict(): BugsnagStatic; + + /** Send caught exceptions to Bugsnag. Valid severity values are `info`, + * `warning`, and `error`, in order of increasing severity. + */ + notifyException(exception: Error, name?: string, metaData?: any, + severity?: string): void; + + /** Send custom errors to Bugsnag */ + notify(name: string, message: string, metaData?: any, + severity?: string): void; +} + +declare var Bugsnag: BugsnagStatic; + +declare module "Bugsnag" { + export = Bugsnag; +} + diff --git a/bull/bull.d.ts b/bull/bull.d.ts index 68b1f50043..e04a9f21e8 100644 --- a/bull/bull.d.ts +++ b/bull/bull.d.ts @@ -1,7 +1,7 @@ // Type definitions for bull 0.7.0 // Project: https://github.com/OptimalBits/bull // Definitions by: Bruno Grieder -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -16,7 +16,7 @@ declare module "bull" { */ function Bull(queueName: string, redisPort: number, redisHost: string, redisOpt?: Redis.ClientOpts): Bull.Queue; - module Bull { + namespace Bull { export interface DoneCallback { (error?: Error, value?: any): void @@ -282,7 +282,7 @@ declare module "bull/lib/priority-queue" { */ function PQueue(queueName: string, redisPort: number, redisHost: string, redisOpt?: Redis.ClientOpts): PQueue.PriorityQueue; - module PQueue { + namespace PQueue { export interface AddOptions extends Bull.AddOptions { diff --git a/bunyan-logentries/bunyan-logentries.d.ts b/bunyan-logentries/bunyan-logentries.d.ts index de012b68a0..bc91174dc1 100644 --- a/bunyan-logentries/bunyan-logentries.d.ts +++ b/bunyan-logentries/bunyan-logentries.d.ts @@ -1,7 +1,7 @@ // Type definitions for node-bunyan-logentries v0.1.0 // Project: https://github.com/nemtsov/node-bunyan-logentries // Definitions by: Aymeric Beaumet -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// diff --git a/bunyan-prettystream/bunyan-prettystream.d.ts b/bunyan-prettystream/bunyan-prettystream.d.ts index 12e399ea3a..297e63731c 100644 --- a/bunyan-prettystream/bunyan-prettystream.d.ts +++ b/bunyan-prettystream/bunyan-prettystream.d.ts @@ -1,7 +1,7 @@ // Type definitions for bunyan-prettystream 0.1.3 // Project: https://www.npmjs.com/package/bunyan-prettystream // Definitions by: Jason Swearingen , Vadim Macagon -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bunyan/bunyan.d.ts b/bunyan/bunyan.d.ts index 081b8a0924..4ea2668a2b 100644 --- a/bunyan/bunyan.d.ts +++ b/bunyan/bunyan.d.ts @@ -1,7 +1,7 @@ // Type definitions for node-bunyan // Project: https://github.com/trentm/node-bunyan // Definitions by: Alex Mikhalev -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/business-rules-engine/BasicValidators.d.ts b/business-rules-engine/BasicValidators.d.ts index 8e7723d703..aa176d94a2 100644 --- a/business-rules-engine/BasicValidators.d.ts +++ b/business-rules-engine/BasicValidators.d.ts @@ -1,14 +1,14 @@ // Type definitions for business-rules-engine - v1.0.20 // Project: https://github.com/rsamec/form // Definitions by: Roman Samec -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// /// /// /// -declare module Validators { +declare namespace Validators { class LettersOnlyValidator implements Validation.IStringValidator { public isAcceptable(s: string): boolean; public tagName: string; diff --git a/business-rules-engine/Utils.d.ts b/business-rules-engine/Utils.d.ts index bea120c63a..e9ca88a547 100644 --- a/business-rules-engine/Utils.d.ts +++ b/business-rules-engine/Utils.d.ts @@ -1,10 +1,10 @@ // Type definitions for business-rules-engine - v1.0.20 // Project: https://github.com/rsamec/form // Definitions by: Roman Samec -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Utils { +declare namespace Utils { class StringFce { static format(s: string, args: any): string; } diff --git a/business-rules-engine/Validation.d.ts b/business-rules-engine/Validation.d.ts index dfd6e786fe..bcfd0d6d9a 100644 --- a/business-rules-engine/Validation.d.ts +++ b/business-rules-engine/Validation.d.ts @@ -1,11 +1,11 @@ // Type definitions for business-rules-engine - v1.0.20 // Project: https://github.com/rsamec/form // Definitions by: Roman Samec -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module Validation { +declare namespace Validation { interface IErrorCustomMessage { (config: any, args: any): string; } diff --git a/business-rules-engine/business-rules-engine.d.ts b/business-rules-engine/business-rules-engine.d.ts index 7ca758eb88..a26e49492d 100644 --- a/business-rules-engine/business-rules-engine.d.ts +++ b/business-rules-engine/business-rules-engine.d.ts @@ -1,12 +1,12 @@ // Type definitions for business-rules-engine v1.0.20 // Project: https://github.com/rsamec/form // Definitions by: Roman Samec -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Source: typings/business-rules-engine/Validation.d.ts /// /// -declare module Validation { +declare namespace Validation { interface IErrorCustomMessage { (config: any, args: any): string; } diff --git a/byline/byline.d.ts b/byline/byline.d.ts index 475386b28c..48ddd2d57a 100644 --- a/byline/byline.d.ts +++ b/byline/byline.d.ts @@ -1,7 +1,7 @@ // Type definitions for byline 4.2.1 // Project: https://github.com/jahewson/node-byline // Definitions by: Stefan Steinhart -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/bytebuffer/bytebuffer.d.ts b/bytebuffer/bytebuffer.d.ts index 8f1a800eae..e5d267787f 100644 --- a/bytebuffer/bytebuffer.d.ts +++ b/bytebuffer/bytebuffer.d.ts @@ -1,7 +1,7 @@ // Type definitions for bytebuffer.js 5.0.0 // Project: https://github.com/dcodeIO/bytebuffer.js // Definitions by: Denis Cappellin -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Definitions by: SINTEF-9012 /// @@ -611,5 +611,6 @@ declare class ByteBuffer } declare module 'bytebuffer' { + namespace ByteBuffer {} export = ByteBuffer; } diff --git a/bytes/bytes.d.ts b/bytes/bytes.d.ts index 0d8a63cf7c..b99ebee7c6 100644 --- a/bytes/bytes.d.ts +++ b/bytes/bytes.d.ts @@ -1,7 +1,7 @@ // Type definitions for bytes v2.1.0 // Project: https://github.com/visionmedia/bytes.js // Definitions by: Zhiyuan Wang -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'bytes' { @@ -25,14 +25,14 @@ declare module 'bytes' { */ function bytes(value: string): number; - module bytes { + namespace bytes { /** * Format the given value in bytes into a string. - * + * * If the value is negative, take Math.abs(). If it is a float, * it is rounded. - * + * * @param {number} value * @param {BytesFormatOptions} [options] */ @@ -41,7 +41,7 @@ declare module 'bytes' { /** * Just return the input number value. - * + * * @param {number} value * @return {number} */ @@ -49,9 +49,9 @@ declare module 'bytes' { /** * Parse the string value into an integer in bytes. - * + * * If no unit is given, it is assumed the value is in bytes. - * + * * @param {string} value * @return {number} */ @@ -59,4 +59,4 @@ declare module 'bytes' { } export = bytes; -} \ No newline at end of file +} diff --git a/c3/c3.d.ts b/c3/c3.d.ts index 7ff889073f..32dee37dce 100644 --- a/c3/c3.d.ts +++ b/c3/c3.d.ts @@ -1,11 +1,11 @@ // Type definitions for C3js // Project: http://c3js.org/ // Definitions by: Marc Climent -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module c3 { +declare namespace c3 { type PrimitiveArray = Array; type FormatFunction = (v: any, id: string, i: number, j: number) => void; diff --git a/cal-heatmap/cal-heatmap.d.ts b/cal-heatmap/cal-heatmap.d.ts index b54e3a5bf7..85a20d6d9d 100644 --- a/cal-heatmap/cal-heatmap.d.ts +++ b/cal-heatmap/cal-heatmap.d.ts @@ -1,11 +1,11 @@ // Type definitions for cal-heatmap v3.5.4 // Project: https://github.com/wa0x6e/cal-heatmap // Definitions by: Chris Baker -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module CalHeatMap +declare namespace CalHeatMap { interface CalHeatMapStatic { @@ -25,8 +25,8 @@ declare module CalHeatMap // Various update mode when using the update() API /** Reset the whole calendar data before inserting the new data. */ RESET_ALL_ON_UPDATE: number; - /** - * Update only the dates (subDomain) you pass in the data argument, replace their value by the new ones. + /** + * Update only the dates (subDomain) you pass in the data argument, replace their value by the new ones. * All other dates are leaved untouched. */ RESET_SINGLE_ON_UPDATE: number; @@ -434,8 +434,8 @@ declare module CalHeatMap legendMargin: number[]; /** List of dates to highlight */ highlight: Date[]; - /** - * Name of the items to represent in the calendar. + /** + * Name of the items to represent in the calendar. * First index is singular form, and the second index, the plural form. */ itemName: string[]; diff --git a/callsite/callsite.d.ts b/callsite/callsite.d.ts index be73af4dec..ffaa5d7e6f 100644 --- a/callsite/callsite.d.ts +++ b/callsite/callsite.d.ts @@ -5,7 +5,7 @@ declare module "callsite" { - module Callsite{ + namespace Callsite{ interface CallSite { getThis(): any; diff --git a/calq/calq.d.ts b/calq/calq.d.ts index 331b897205..0d4eb5f347 100644 --- a/calq/calq.d.ts +++ b/calq/calq.d.ts @@ -1,7 +1,7 @@ // Type definitions for calq // Project: https://calq.io/docs/client/javascript/reference // Definitions by: Eirik Hoem -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Calq { @@ -11,7 +11,7 @@ interface Calq init(writeKey:string, options?:{[index:string]:any}):void; } -declare module Calq +declare namespace Calq { interface Action { @@ -33,4 +33,4 @@ declare module Calq } } -declare var calq:Calq; \ No newline at end of file +declare var calq:Calq; diff --git a/camel-case/camel-case.d.ts b/camel-case/camel-case.d.ts index 24f14e84af..e2a4777f21 100644 --- a/camel-case/camel-case.d.ts +++ b/camel-case/camel-case.d.ts @@ -1,7 +1,7 @@ // Type definitions for camel-case // Project: https://github.com/blakeembrey/camel-case // Definitions by: Sam Saint-Pettersen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "camel-case" { function camelCase(string: string, locale?: string): string; diff --git a/camelcase/camelcase.d.ts b/camelcase/camelcase.d.ts index c11e9530ad..2edd71948a 100644 --- a/camelcase/camelcase.d.ts +++ b/camelcase/camelcase.d.ts @@ -1,7 +1,7 @@ // Type definitions for camelcase // Project: https://github.com/sindresorhus/camelcase // Definitions by: Sam Verschueren -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "camelcase" { function camelcase(...args: string[]): string; diff --git a/camljs/camljs.d.ts b/camljs/camljs.d.ts index 4423cf885f..b49337621d 100644 --- a/camljs/camljs.d.ts +++ b/camljs/camljs.d.ts @@ -1,7 +1,7 @@ // Type definitions for camljs // Project: http://camljs.codeplex.com // Definitions by: Andrey Markeev -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class CamlBuilder { @@ -21,7 +21,7 @@ declare class CamlBuilder { */ static Expression(): CamlBuilder.IFieldExpression; } -declare module CamlBuilder { +declare namespace CamlBuilder { interface IView extends IJoinable, IFinalizable { Query(): IQuery; RowLimit(limit: number, paged?: boolean): IView; diff --git a/canvasjs/canvasjs-tests.ts b/canvasjs/canvasjs-tests.ts index 09b309f5ec..c9fe45e927 100644 --- a/canvasjs/canvasjs-tests.ts +++ b/canvasjs/canvasjs-tests.ts @@ -1,6 +1,6 @@ /// -module CanvasJS.Tests { +namespace CanvasJS.Tests { // Column Chart var columnChart = new CanvasJS.Chart("chartContainer", { @@ -56,7 +56,7 @@ module CanvasJS.Tests { data: [ { type: "line", - //lineThickness: 3, + //lineThickness: 3, dataPoints: [ { x: new Date(2012, 0, 1), y: 450 }, { x: new Date(2012, 1, 1), y: 414 }, @@ -100,7 +100,7 @@ module CanvasJS.Tests { type: "spline", showInLegend: true, name: "Season 2", - // markerSize: 0, + // markerSize: 0, // color: "rgba(54,158,173,.6)", dataPoints: [ { label: "Ep. 1", y: 3858000 }, @@ -245,4 +245,4 @@ module CanvasJS.Tests { addCultureInfo("js", { days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"] }); -} \ No newline at end of file +} diff --git a/canvasjs/canvasjs.d.ts b/canvasjs/canvasjs.d.ts index e168371bc4..75ea058e3e 100644 --- a/canvasjs/canvasjs.d.ts +++ b/canvasjs/canvasjs.d.ts @@ -1,39 +1,39 @@ // Type definitions for CanvasJS v1.5.1 // Project: http://canvasjs.com/ // Definitions by: Mark Overholt -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module CanvasJS { +declare namespace CanvasJS { class Chart { - - /** - * The current options of the chart. + + /** + * The current options of the chart. */ options: ChartOptions; - /** + /** * Initializes a new instance of CanvasJS Chart. * @param containerId the DOM ID of the location where the chart is to be rendered * @param options the options used to render the chart */ constructor(containerId: string, options?: ChartOptions); - /** - * Renders the chart. + /** + * Renders the chart. * @param options an optional set of options that will override the constructed values. */ render(options?: ChartOptions): void; } - /** + /** * Adds a new chart color set * @param the name of the color set * @param an array of colors. */ function addColorSet(colorSetName: string, colorSetArray: string[]): void; - - /** + + /** * Adds a new culture info for your chart * @param culture the name of the culture * @param the information used by this culture @@ -41,234 +41,234 @@ declare module CanvasJS { function addCultureInfo(culture: string, info: CultureInfo): void; interface CultureInfo { - /** + /** * Character used to separate fractional part from the whole number. */ decimalSeparator?: string; - /** + /** * Also referred to as Thousand Separator */ digitGroupSeparator?: string; - /** - * Text is shown inside the Button till v1.4 + /** + * Text is shown inside the Button till v1.4 * v1.5 onwards Text is shown as tooltip. */ zoomText?: string; - /** - * Text is shown inside the Button till v1.4 + /** + * Text is shown inside the Button till v1.4 * v1.5 onwards Text is shown as tooltip. */ panText?: string; - /** - * Text is shown inside the Button till v1.4 + /** + * Text is shown inside the Button till v1.4 * v1.5 onwards Text is shown as tooltip. */ resetText?: string; - /** + /** * Set text is shown instead of Save as PNG. */ savePNGText?: string; - /** + /** * Set text is shown instead of Save as JPG. */ saveJPGText?: string; - /** + /** * Tool Tip for Menu Button. */ menuText?: string; - /** + /** * Day names starting from Sunday. Should be exactly 7 in total. */ days?: string[]; - /** + /** * Short Day names starting from Sunday. Should be exactly 7 in total. */ shortDays?: string[]; - /** + /** * Month Names starting from January */ months?: string[]; - /** + /** * Short Month Names starting from January */ shortMonths?: string[]; } interface ChartOptions { - /** + /** * Enables / Disables Chart interactivity like toolTip, mouse and touch events - * Default: true - * Example: false, true + * Default: true + * Example: false, true */ interactivityEnabled?: boolean; - /** + /** * Enables Animation while rendering the Chart. - * Default: true - * Example: false, true + * Default: true + * Example: false, true */ animationEnabled?: boolean; - /** - * While exporting any chart, "Chart" is used as the default fine name with corresponding extension "jpg" or "png". You can override this name using exportFileName property. - * Default: Chart + /** + * While exporting any chart, "Chart" is used as the default fine name with corresponding extension "jpg" or "png". You can override this name using exportFileName property. + * Default: Chart */ exportFileName?: string; - /** - * Setting exportEnabled to true enables the export feature. As of now JPG & PNG formats are supported. Export feature is available in all Chart Types. - * Default: false - * Options: true, false + /** + * Setting exportEnabled to true enables the export feature. As of now JPG & PNG formats are supported. Export feature is available in all Chart Types. + * Default: false + * Options: true, false */ exportEnabled?: boolean; - /** + /** * Setting zoomEnabled to true enables zooming and panning feature of Chart. This way you can zoom into an area of interest when there is a large amount of data. This will also allow you to pan through the chart. If not set, the property is automatically enabled for large number of dataPoints. You can switch between zooming & panning using the toolbar that appears on the chart. After Zooming in, you can reset the chart by clicking the reset button. - * Default: false - * Options: true, false + * Default: false + * Options: true, false */ zoomEnabled?: boolean; - /** + /** * Sets the theme of the Chart. Various predefined themes are bundled along with the library. User can easily switch these themes by changing theme property to the below mentioned options. - * Default: "theme1" - * Options: "theme1","theme2", "theme3" + * Default: "theme1" + * Options: "theme1","theme2", "theme3" */ theme?: string; - /** + /** * Sets the background color of entire Chart Area. Values can be "HTML Color Name", "hex code" or "rgba values" - * Default: "white" - * Example: "yellow", "#F5DEB3".. + * Default: "white" + * Example: "yellow", "#F5DEB3".. */ backgroundColor?: string; - /** + /** * Sets the colorSet of the Chart. Color Set is an array of colors that are used to render data. Various predefined Color Sets are bundled along with the library. You can either choose from the pre-defined Color Sets or define your own Color Set. - * Default: "colorset1" or as defined in the selected theme - * Example: "colorSet1", "colorSet2", "colorSet3" + * Default: "colorset1" or as defined in the selected theme + * Example: "colorSet1", "colorSet2", "colorSet3" */ colorSet?: string; - /** + /** * CanvasJS allows you to localize various culture / language / country specific elements in the Chart like number formatting style – where you can choose which character to use as a decimal separator and as a digit group separator (also referred to as a thousand separator). By default CanvasJS is set to Neutral English Culture – "en". * Default: "en" */ culture?: string; - /** + /** * Sets the width of the Chart. * Default: Takes chart container’s width by default. If the width is not set for the chart container, defaults to 500. - * Example: 380, 500, 720 + * Example: 380, 500, 720 */ width?: number; - /** + /** * Sets the width of the Chart * Default: Takes chart container’s height by default. If the height is not set for the chart container, defaults to 400. - * Example: 260, 300, 400 + * Example: 260, 300, 400 */ height?: number; - /** + /** * Title allows you to set content, appearance and position of Chart’s Title. */ title: ChartTitleOptions; - /** + /** * Whenever the chart contains multiple dataSeries, it is recommended to represent each dataSeries in a legend. This way it becomes easier for the user to know what exactly is represented by each of the dataSeries. In case of Pie and Doughnut charts, an entry is created for each dataPoint and in rest of the chart types entries are created for each dataSeries. * You can selectively show or hide a dataSeries in the Legend using showInLegend property of dataSeries. */ legend?: ChartLegendOptions; - /** + /** * axisX object lets you set various parameters of X Axis like interval, grid lines, etc. It is mostly horizontal, except when we are working with Bar Charts, where axisX is vertical. */ axisX?: ChartAxisXOptions; - /** + /** * axisY object lets you set various parameters of Y Axis like interval, grid lines, etc. It is mostly vertical, except when we are working with Bar Charts, where axisY is horizontal. */ axisY?: ChartAxisYOptions; - /** + /** * toolTip object lets user set behaviour of toolTip at global level like enabling/disabling animation, setting Border Color, sharing toolTip between multiple dataSeries, etc. You can also disable the toolTip by setting enabled property to false. */ toolTip?: ChartToolTipOptions; - /** + /** * data is an array of dataSeries Objects. */ data: ChartDataOptions[]; } interface ChartTitleOptions { - /** + /** * Sets the Title’s text. - * Default: null - * Example: "Chart title" + * Default: null + * Example: "Chart title" */ text?: string; - /** + /** * This property lets you align the Chart Title vertically. - * Default: "top" - * Options: "top", "center", "bottom" + * Default: "top" + * Options: "top", "center", "bottom" */ verticalAlign?: string; - /** + /** * This property lets you align the Chart Title horizontally. - * Default: "center" - * Options: "left", "right", "center" + * Default: "center" + * Options: "left", "right", "center" */ horizontalAlign?: string; - /** + /** * Sets the font Size of Chart Title in pixels. * Default: Automatically Calculated based on Chart Size - * Example: 16,18,22 .. + * Example: 16,18,22 .. */ fontSize?: number; - /** + /** * Sets the Font Family of Chart Title. * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" - * Example: "arial" , "tahoma", "verdana" .. + * Example: "arial" , "tahoma", "verdana" .. */ fontFamily?: string; - /** + /** * Sets the Font Weight used in the Chart Title. - * Default: "bold" - * Options: "lighter", "normal", "bold" , "bolder" + * Default: "bold" + * Options: "lighter", "normal", "bold" , "bolder" */ fontWeight?: string; - /** + /** * Sets the font color of Chart Title. The value of fontColor can be a "HTML Color Name" or "hex" code . * Default: "#3A3A3A" - * Example: "red", "#FAC003" .. + * Example: "red", "#FAC003" .. */ fontColor?: string; - /** + /** * Sets the fontStyle of Chart Title. fontStyle can be set to one of the below options. - * Default: "normal" - * Options: "normal", "italic" , "oblique" + * Default: "normal" + * Options: "normal", "italic" , "oblique" */ fontStyle?: string; - /** + /** * Sets the thickness of border around the Title in pixels. To display border around title, set the borderThickness to a number greater than zero. * Default: 0 - * Example: 2,4 .. + * Example: 2,4 .. */ borderThickness?: number; - /** + /** * To display rounded borders around the title, set the cornerRadius of title. Higher the value, more rounded are the corners. - * Default: 0 - * Options: 5,8 .. + * Default: 0 + * Options: 5,8 .. */ cornerRadius?: number; - /** + /** * Sets the color of border around Chart Title. Values of borderColor can be "HTML Color Name" or "hex" code . * Default: "black" * Example: "red", "#FF0000" .. */ borderColor?: string; - /** + /** * Sets the background color of Chart Title. Values can be "HTML Color Name" or "hex" code. * Default: null - * Example: "red", "#FF0000" .. + * Example: "red", "#FF0000" .. */ backgroundColor?: string; - /** + /** * This property lets you set margin around the Chart Title in pixels. - * Default: 10 - * Example: 4,12 .. + * Default: 10 + * Example: 4,12 .. */ margin?: number; - /** + /** * This property allows you to set the padding for Chart Title - * Default: 0 - * Example: 5, 8 .. + * Default: 0 + * Example: 5, 8 .. */ padding?: number; } @@ -281,64 +281,64 @@ declare module CanvasJS { */ cursor?: string; - /** + /** * Sets the font Size of Legend Text in pixels. - * Default: 12 - * Example: 16,18,22 .. + * Default: 12 + * Example: 16,18,22 .. */ fontSize?: number; - /** + /** * Sets the Font Family of Legend Text. - * Default: "calibri" - * Example: "arial" , "tahoma", "verdana" .. + * Default: "calibri" + * Example: "arial" , "tahoma", "verdana" .. */ fontFamily?: string; - /** + /** * Sets the font color of Legend Text . The value of fontColor can be a "HTML Color Name" or "hex" code . - * Default: "black" - * Example: "red", "#FAC003" .. + * Default: "black" + * Example: "red", "#FAC003" .. */ fontColor?: string; - /** + /** * Sets the Font Weight of Legend Text. - * Default: "normal" - * Example: "lighter", "normal", "bold" , "bolder" + * Default: "normal" + * Example: "lighter", "normal", "bold" , "bolder" */ fontWeight?: string; - /** + /** * Sets the fontStyle of Legend Text. fontStyle can be set to one of the below options. - * Default: "normal" - * Example: "normal", "italic" , "oblique" + * Default: "normal" + * Example: "normal", "italic" , "oblique" */ fontStyle?: string; - /** + /** * This property lets you align the Legend Position vertically. - * Default: "bottom" - * Example: "top", "center", "bottom" + * Default: "bottom" + * Example: "top", "center", "bottom" */ verticalAlign?: string; - /** + /** * This property lets you align the Legend Position horizontally. - * Default: "right" - * Example: "left", "right", "center" + * Default: "right" + * Example: "left", "right", "center" */ horizontalAlign?: string; - /** + /** * Sets the mouseover event handler for the legend, which is triggered when the user moves the mouse(input device) over a legend item. After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ itemmouseover?: (event: ChartEvent) => void; - /** + /** * Sets the mousemove event handler for the legend, which is triggered when the user moves the mouse(input device) within a legend item. When the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ itemmousemove?: (event: ChartEvent) => void; - /** + /** * Sets the mouseout event handler for the legend, which is triggered when the user moves the mouse pointer outside a legend item. After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ itemmouseout?: (event: ChartEvent) => void; - /** + /** * Sets the click event handler for the legend, which is triggered when the user clicks on a legend item. After the event is triggered, the event related data is passed as a parameter to the assigned event handler. Parameters passed to the function are shown in the Event Object section below. * @param event a chart event */ @@ -346,205 +346,205 @@ declare module CanvasJS { } interface ChartEvent { - /** + /** * The x value of the item */ x: any; - /** + /** * The y value of the item */ y: number; - /** + /** * The chart object */ chart: Chart; - /** + /** * The datapoint options */ dataPoint: ChartDataPoint; - /** + /** * The data series options */ dataSeries: ChartDataOptions; - /** + /** * The index of the data point */ dataPointIndex: number; - /** + /** * The index of the data series */ dataSeriesIndex: number; } interface ChartAxisXOptions { - /** + /** * Sets the Axis Title. - * Default: null - * Example: "Axis X Title" + * Default: null + * Example: "Axis X Title" */ title?: string; - /** + /** * Sets the Font Color of Axis Title. The value of titleFontColor can be a "HTML Color Name" or "hex" code . - * Default: "#666666" + * Default: "#666666" * Example: "red", "#006400" . */ titleFontColor?: string; - /** + /** * Sets the Font Size of Axis Title in pixels. * Default: Automatically Calculated based on Chart Size - * Example: 16, 25 .. + * Example: 16, 25 .. */ titleFontSize?: number; - /** + /** * Sets the Font Family of Axis Title. * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" - * Example: "calibri", "tahoma, "verdana" .. + * Example: "calibri", "tahoma, "verdana" .. */ titleFontFamily?: string; - /** + /** * Sets the Font Weight used in the Axis Title. It can be set to one of the options below. - * Default: "normal" - * Options: "lighter", "normal", "bold" , "bolder" + * Default: "normal" + * Options: "lighter", "normal", "bold" , "bolder" */ titleFontWeight?: string; - /** + /** * Sets the Font Style of Axis Title. It can be set to one of the below options. - * Default: "normal" - * Options: "normal", "italic" , "oblique" + * Default: "normal" + * Options: "normal", "italic" , "oblique" */ titleFontStyle?: string; - /** + /** * This property lets you set margin between chart’s boundary and Axis. - * Default: 2 - * Example: 8, 10.. + * Default: 2 + * Example: 8, 10.. */ margin?: number; - /** + /** * Sets the angle for Axis Labels. - * Default: null - * Example: 20, 45, -30 .. + * Default: null + * Example: 20, 45, -30 .. */ labelAngle?: number; - /** + /** * Sets the Axis Label color. The value of labelFontColor can be a "HTML Color Name" or "hex" code . * Default: "grey" - * Example: "red", "#FAC003" .. + * Example: "red", "#FAC003" .. */ labelFontColor?: string; - /** + /** * Sets the Axis Label Font Size in pixels. - * Default: Automatically Calculated based on Chart Size - * Example: 16, 18, 22.. + * Default: Automatically Calculated based on Chart Size + * Example: 16, 18, 22.. */ labelFontSize?: number; - /** + /** * Sets the Font Family of Axis labels. - * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" - * Example: "calibri", "tahoma", "verdana" .. + * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" + * Example: "calibri", "tahoma", "verdana" .. */ labelFontFamily?: string; - /** + /** * Set the font Weight used in Axis Labels. It can be set to one of the options below. * Default: "normal" - * Options: "lighter", "normal", "bold" , "bolder" + * Options: "lighter", "normal", "bold" , "bolder" */ labelFontWeight?: string; - /** + /** * Sets the Font Style of Axis Labels. It can be set to one of the below options. - * Default: "normal" - * Options: "italic", "oblique", "normal" + * Default: "normal" + * Options: "italic", "oblique", "normal" */ labelFontStyle?: string; - /** + /** * A string that prepends all the labels on axisX. - * Default: null - * Example: "$","cat".. + * Default: null + * Example: "$","cat".. */ prefix?: string; - /** + /** * A string that appends all the labels on axisX. - * Default: null - * Example: "$","cat".. + * Default: null + * Example: "$","cat".. */ suffix?: string; - /** + /** * Defines how values must be formatted before they appear on Axis X. You can format numbers and date time values using this property. Below you will find descriptive table explaining various specifiers with example. */ valueFormatString?: string; - /** + /** * Sets the minimum value of Axis. Values smaller than minimum are clipped. - * Default: Automatically Calculated based on the data - * Example: 100, 350.. + * Default: Automatically Calculated based on the data + * Example: 100, 350.. */ minimum?: number; - /** + /** * Sets the maximum value permitted on Axis. Values greater than maximum are clipped. - * Default: Automatically Calculated based on the data - * Example: 100, 350.. + * Default: Automatically Calculated based on the data + * Example: 100, 350.. */ maximum?: number; - /** + /** * Sets the distance between Tick Marks, Grid Lines and Interlaced Colors. * Default: Automatically Calculated - * Example: 50, 75.. + * Example: 50, 75.. */ interval?: number; - /** + /** * intervalType is the unit of interval property. intervalType is by default set to "number" and hence you need to specify the interval type (eg "week", "month", etc) depending on the type of interval you intend to set. If required interval is 3 months, you need to provide interval as 3 and intervalType as "month" - * Default: Automatically handled when interval property is not set. Defaults to "number" when you set the interval. - * Option: "number","millisecond" ,"second"," minute", "hour", "day", "month" ,"year" - * Example: for interval as 15 minutes, set interval as 15, and set intervalType as "minute", + * Default: Automatically handled when interval property is not set. Defaults to "number" when you set the interval. + * Option: "number","millisecond" ,"second"," minute", "hour", "day", "month" ,"year" + * Example: for interval as 15 minutes, set interval as 15, and set intervalType as "minute", */ intervalType?: string; - /** + /** * Sets the length of Tick Marks that are drawn on the Axis. - * Default: 5 - * Example: 10, 14.. + * Default: 5 + * Example: 10, 14.. */ tickLength?: number; - /** + /** * Sets the color of Tick Marks drawn on the axis. The value of tickColor can be a "HTML Color Name" or "hex" code . * Default: "#BBBBBB" - * Example: "red", "#006400". + * Example: "red", "#006400". */ tickColor?: string; - /** + /** * Sets the thickness of the Tick Marks in pixels. - * Default: 2 - * Example: 3, 4.. + * Default: 2 + * Example: 3, 4.. */ tickThickness?: number; - /** + /** * Sets the color of Axis line. Axis line color can be a "HTML Color Name" or "hex" code . - * Default: "#BBBBBB" - * Example: "blue","#21AB13".. + * Default: "#BBBBBB" + * Example: "blue","#21AB13".. */ lineColor?: string; - /** + /** * Sets the Thickness of Axis line in pixels. - * Default: 2 - * Example: 2, 4.. + * Default: 2 + * Example: 2, 4.. */ lineThickness?: string; - /** + /** * Sets the Interlacing Color that alternates between the set interval. If the interval is not set explicitly, then the auto calculated interval is considered. The value of interlacedColor can be a "HTML Color Name" or "hex" code . - * Default: null - * Example: "#F8F1E4", "#FEFDDF" …. + * Default: null + * Example: "#F8F1E4", "#FEFDDF" …. */ interlaceColor?: string; - /** + /** * Sets the Thickness of Grid Lines. To display grid on Axis X, set the Grid Thickness to a number greater than zero. - * Default: 0 - * Example: 2,4 .. + * Default: 0 + * Example: 2,4 .. */ gridThickness?: number; - /** + /** * Sets the Color of Grid Lines. Value of gridColor can be a "HTML Color Name" or "hex" code . - * Default: "#BBBBBB" - * Example: "red", "#FEFDDF" .. + * Default: "#BBBBBB" + * Example: "red", "#FEFDDF" .. */ gridColor?: string; - + /** * Sets the Interlacing Color that alternates between the set interval. * If the interval is not set explicitly, then the auto calculated interval is considered. @@ -553,300 +553,300 @@ declare module CanvasJS { * Example: "#F8F1E4", "#FEFDDF" */ interlacedColor?: string; - - /** - * Strip Lines are vertical or horizontal lines used to highlight/mark a certain region on the plot area. You can choose whether to draw a line at a specific position or shade a region on the plot area. Strip Lines are sometimes referred to as trend lines. - * If you want to just mark a certain position on the axis, you can set the value attribute and it’ll draw a line at that position with the set thickness. If you want to shade a region instead, you need to set startValue and endValue attributes. This will fill the area within the specified range. - * In the case you set startValue and endValue attributes, value and thickness attributes are ignored (as either a single thread of line can exist, or a shaded region between two given points). - * Strip Lines can be displayed using AxisX or AxisY’s stripLines array. This allows you to have one or more strip lines on both x & y axis. + + /** + * Strip Lines are vertical or horizontal lines used to highlight/mark a certain region on the plot area. You can choose whether to draw a line at a specific position or shade a region on the plot area. Strip Lines are sometimes referred to as trend lines. + * If you want to just mark a certain position on the axis, you can set the value attribute and it’ll draw a line at that position with the set thickness. If you want to shade a region instead, you need to set startValue and endValue attributes. This will fill the area within the specified range. + * In the case you set startValue and endValue attributes, value and thickness attributes are ignored (as either a single thread of line can exist, or a shaded region between two given points). + * Strip Lines can be displayed using AxisX or AxisY’s stripLines array. This allows you to have one or more strip lines on both x & y axis. */ stripLines?: ChartStripLines; } interface ChartStripLines { - /** + /** * Sets the point where the stripLine has to be plotted or drawn along the axis X. * Default: null - * Example: 20,30,100,50 + * Example: 20,30,100,50 */ value?: number; - /** + /** * Sets the point where the stripLine’s shaded region begins on the x-axis. * Default: null - * Example: 20,30,100,50 + * Example: 20,30,100,50 */ startValue?: number; - /** + /** * Sets the point where the stripLine’s shaded region ends on the x-axis. * Default: null - * Example: 50,60,200,300 + * Example: 50,60,200,300 */ endValue?: number; - /** + /** * Sets the thickness of the stripLine in pixels. * Default: 2 - * Example: 2,4,5,6 + * Example: 2,4,5,6 */ thickness?: number; - /** + /** * Sets the color of the stripLine. - * Default: "orange" - * Example: "green", "#23EA23" + * Default: "orange" + * Example: "green", "#23EA23" */ color?: string; - /** + /** * Sets the label of the stripLine. These are shown on top of axis labels. - * Default: "" (empty string) - * Example: "Threshold", "Deaths in 1920" + * Default: "" (empty string) + * Example: "Threshold", "Deaths in 1920" */ label?: string; - /** + /** * Sets the background color of stripLine’s label. - * Default: "#eeeeee" - * Example: "red","#fabd76" + * Default: "#eeeeee" + * Example: "red","#fabd76" */ labelBackgroundColor?: string; - /** + /** * Sets the font-family of stripLine’s label. If the first font is not found in the system from the specified font-family list, it tries to use the next font in the list. - * Default: "arial" - * Example: "Arial, Trebuchet MS, Tahoma, sans-serif" + * Default: "arial" + * Example: "Arial, Trebuchet MS, Tahoma, sans-serif" */ labelFontFamily?: string; - /** + /** * Sets the font color of label. - * Default: "orange" - * Example: "blue","#4135e9" + * Default: "orange" + * Example: "blue","#4135e9" */ labelFontColor?: string; - /** + /** * Sets the font size of the label in pixels. - * Default: 12 - * Example: 18,19,20,22 + * Default: 12 + * Example: 18,19,20,22 */ labelFontSize?: number; - /** + /** * Sets the font weight of stripLine’s label. - * Default: "normal" - * Example: "lighter","normal","bold","bolder" + * Default: "normal" + * Example: "lighter","normal","bold","bolder" */ labelFontWeight?: string; - /** + /** * Sets the font style of stripLine’s label. - * Default: "normal" - * Example: "normal","italic","oblique" + * Default: "normal" + * Example: "normal","italic","oblique" */ labelFontStyle?: string; } interface ChartAxisYOptions extends ChartAxisXOptions { - /** + /** * When includeZero is set to true, axisY sets the range in such a way that Zero is a part of it. It is set to true by default. But, whenever y values are very big and difference among dataPoints are hard to judge, setting includeZero to false makes axisY to set a range that makes the differences prominently visible. - * Default: true - * Example: true, false + * Default: true + * Example: true, false */ includeZero?: boolean; } interface ChartToolTipOptions { - /** + /** * Enables or Disables the toolTip for the chart. - * Default: True - * Example: True, False + * Default: True + * Example: True, False */ enabled?: boolean; - /** + /** * In a Multi-Series or a Combination Chart, it is often required to display all values common to x value in a single bubble. Setting shared to true will show in a common bubble all the values of y from each series next to their name. - * Default: True - * Example: True, False + * Default: True + * Example: True, False */ shared?: boolean; - /** + /** * toolTip for entire chart can be set by adding content at toolTip object. content can either be a string or a custom function that returns HTML/String to be displayed inside the toolTip. - * Default: auto + * Default: auto */ content?: string; - /** - * While mouse hovers from one dataPoint to another there is a smooth transition in toolTip. This effect can be controlled by animationEnabled Property. Setting it to false, will disable the animation and toolTip will directly switch from one dataPoint to the other. - * Default: True - * Example: True, False + /** + * While mouse hovers from one dataPoint to another there is a smooth transition in toolTip. This effect can be controlled by animationEnabled Property. Setting it to false, will disable the animation and toolTip will directly switch from one dataPoint to the other. + * Default: True + * Example: True, False */ animationEnabled?: boolean; - /** + /** * Sets the border color around Tool Tip. When not set it takes the color of corresponding dataSeries or dataPoint. * Default: dataSeries color/ dataPoint color - * Example: "red", "#808080".. + * Example: "red", "#808080".. */ borderColor?: string; } interface ChartDataCommon { - /** + /** * Sets the dataPoint Name. dataPoint name is shown in various places like toolTip & legend unless overridden. - * Default: Automatically Named ("dataPoint 1", "dataPoint 2" .. ) + * Default: Automatically Named ("dataPoint 1", "dataPoint 2" .. ) * Example: "apple", "mango" .. */ name?: string; - /** + /** * Sets the color of dataSeries. The value of tickColor can be a "HTML Color Name" or "Hex Code". - * Default: Automatically set from Theme. - * Example: "red", "green" .. + * Default: Automatically set from Theme. + * Example: "red", "green" .. */ color?: string; - /** - * Instead of setting string values for all indexLabels, you can also use keywords like x, y, etc that will automatically show corresponding properties as indexLabel. This will allow you to define indexLabel at the series level once. While setting indexLabel you specify a keyword by enclosing it in flower brackets like {x}, {y}, {color}, etc. - * Range Charts have two indexLabels – one for each y value. This requires the use of a special keyword #index to show index label on either sides of the column/bar/area. + /** + * Instead of setting string values for all indexLabels, you can also use keywords like x, y, etc that will automatically show corresponding properties as indexLabel. This will allow you to define indexLabel at the series level once. While setting indexLabel you specify a keyword by enclosing it in flower brackets like {x}, {y}, {color}, etc. + * Range Charts have two indexLabels – one for each y value. This requires the use of a special keyword #index to show index label on either sides of the column/bar/area. * eg: indexLabel: "{x}: {y[#index]}" * Important keywords to keep in mind are. {x}, {y}, {name}, {label}. - * Default: null - * Example: "{label}", "Win", "x: {x}, y: {y} " + * Default: null + * Example: "{label}", "Win", "x: {x}, y: {y} " */ indexLabel?: string; - /** + /** * Using this property you can define whether to render indexLabel "inside" or "outside" the dataPoint. - * Default: "outside" - * Example: "outside", "inside" + * Default: "outside" + * Example: "outside", "inside" */ indexLabelPlacement?: string; - /** + /** * Sets the Orientation of indexLabel to "horizontal" or "vertical". - * Default: "horizontal" - * Options: "horizontal", "vertical" + * Default: "horizontal" + * Options: "horizontal", "vertical" */ indexLabelOrientation?: string; - /** + /** * Sets the Background color of Index Labels. The value of indexLabelBackgroundColor can be a "HTML Color Name" or "Hex Code". - * Default: null - * Example: "red", "#FAC003" .. + * Default: null + * Example: "red", "#FAC003" .. */ indexLabelBackgroundColor?: string; - /** + /** * Sets the Index Label’s Font Style. It can be set to one of the below options. - * Default: "normal" - * Options: "italic", "oblique", "normal" + * Default: "normal" + * Options: "italic", "oblique", "normal" */ indexLabelFontStyle?: string; - /** + /** * Sets the Index Label’s Font color. The value of IndexLabelFontColor can be a "HTML Color Name" or "Hex Code". - * Default: "grey" - * Example: "red", "#FAC003" .. + * Default: "grey" + * Example: "red", "#FAC003" .. */ indexLabelFontColor?: string; - /** + /** * Sets the Index Label’s Font Size in pixels. - * Default: 18 - * Example: 12, 16, 22.. + * Default: 18 + * Example: 12, 16, 22.. */ indexLabelFontSize?: number; - /** + /** * Sets the Index Label’s Font Family. - * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" - * Example: "calibri", "tahoma", "verdana".. + * Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif" + * Example: "calibri", "tahoma", "verdana".. */ indexLabelFontFamily?: string; - /** + /** * Sets the Index Label’s Font Weight. It can be set to one of the below options. - * Default: "normal" + * Default: "normal" * Example: "lighter", "normal" ,"bold" , "bolder" */ indexLabelFontWeight?: string; - /** + /** * Sets the color of line connecting index labels with their dataPoint. It is only applicable for pie and doughnut chart when indexLabelPlacment is outside. The value of indexLineColor can be a "HTML Color Name" or "Hex Code". - * Default: "lightgrey" - * Example: "red", "#FAC003" .. + * Default: "lightgrey" + * Example: "red", "#FAC003" .. */ indexLabelLineColor?: string; - /** + /** * Sets the thickness of line connecting indexLabel with its corresponding dataPoint. It is only applicable for pie and doughnut chart when indexLabelPlacement is set to "outside". - * Default: 2 - * Example: 4, 6 + * Default: 2 + * Example: 4, 6 */ indexLabelLineThickness?: string; - /** + /** * Default Tooltip can be modified at dataSeries or dataPoint level. You can add content to be displayed in toolTip using toolTipContent. toolTipContent set at dataPoint will override toolTipContent set at dataSeries level. - * Default: auto set depending on chart type. + * Default: auto set depending on chart type. */ toolTipContent?: string; - /** + /** * Sets marker type to be rendered at each dataPoint. While markers are helpful in highlighting individual dataPoints, they do not help much when the dataPoints are crowded. In case of large number of dataPoints it is recommended to disable markers in order to improve the appearance and performance of chart. * Same marker type is also used in legend unless overridden by legendMarkerType property. - * Default: "circle" - * Options: "none", "circle", "square", "triangle" and "cross" + * Default: "circle" + * Options: "none", "circle", "square", "triangle" and "cross" */ markerType?: string; - /** + /** * Sets the color of marker that is displayed on the Chart. Legend Marker for the series uses the same Color as set here unless overridden using legendMarkerColor property. - * Default: dataSeries Color - * Example: "red", "#008000" .. + * Default: dataSeries Color + * Example: "red", "#008000" .. */ markerColor?: string; - /** + /** * Sets the Size of the marker that is drawn. To display marker in area Chart, set markerSize to a value greater than zero. For line, scatter chart, size it is automatically set unless overridden. - * Default: auto. Zero for area chart - * Example: 5, 10.. + * Default: auto. Zero for area chart + * Example: 5, 10.. */ markerSize?: number; - /** + /** * Sets the border color around marker. Value of markerBorderColor can be "HTML Color Name" or "hex code". - * Default: dataSeries color. - * Example: "red", "#008000" .. + * Default: dataSeries color. + * Example: "red", "#008000" .. */ markerBorderColor?: string; - /** + /** * Sets the thickness of the Marker’s Border in pixels. - * Default: 1 - * Example: 2,4 .. + * Default: 1 + * Example: 2,4 .. */ markerBorderThickness?: number; - /** + /** * Sets the text that describes the dataSeries in legend. - * Default: "DataSeries 1", "DataSeries 2" ..etc - * Example: "2010", "2011".. + * Default: "DataSeries 1", "DataSeries 2" ..etc + * Example: "2010", "2011".. */ legendText?: string; - /** + /** * Sets the Legend Marker to one of the options below. This property is used to override the default marker in legend, which is same as dataSeries Marker Type. - * Default: same as markerType - * Options: "circle", "square", "cross" and "triangle" + * Default: same as markerType + * Options: "circle", "square", "cross" and "triangle" */ legendMarkerType?: string; - /** + /** * Sets the click event handler for dataSeries which is triggered when user clicks on a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event. - * Default: null + * Default: null */ click?: (event: ChartEvent) => void; - /** + /** * Sets the color of marker that is displayed on legend. This property overrides default Marker’s Color in Legend, which is same as dataSeries Marker Color. Value of legendMarkerColor can be "HTML Color Name" or "hex code". - * Default: dataSeries marker color - * Example: "red", "#008000" .. + * Default: dataSeries marker color + * Example: "red", "#008000" .. */ legendMarkerColor?: string; - /** + /** * Sets the mouseover event handler for dataSeries which is triggered when user moves Mouse Over a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event. - * Default: null + * Default: null */ mouseover?: (event: ChartEvent) => void; - /** + /** * Sets the mousemove event handler for dataSeries which is triggered when user Moves mouse on a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event. - * Default: null + * Default: null */ mousemove?: (event: ChartEvent) => void; - /** + /** * Sets the mouseout event handler for dataSeries which is triggered when user moves mouse out of a dataSeries. Upon event, a parameter that contains event related data is sent to the assigned event handler. Parameter includes dataPoint and dataSeries corresponding to the event. - * Default: null + * Default: null */ mouseout?: (event: ChartEvent) => void; } interface ChartDataOptions extends ChartDataCommon { - /** + /** * Sets the visibility of dataSeries. Data Series is visible by default and you can hide the same by setting visible property to false. * Default: true - * Example: true, false + * Example: true, false */ visible?: boolean; - /** + /** * Sets the type of chart to be rendered for corresponding dataSeries. One can choose from the following options. - * Default: "column" + * Default: "column" * Options: * "line" * "column" @@ -867,110 +867,110 @@ declare module CanvasJS { * "doughnut" */ type?: string; - /** + /** * Setting axisYType lets you choose between primary and secondary Y Axis for a dataSeries to plot against. By choosing "secondary" Axis you can plot the series against axisY2. * In case of Multi-Series or Combinational Charts, one can assign primary axis to some series and secondary axis to other series. * This is helpful when dataSeries objects use different unit of measurement or range of data. By default, all series are plotted against primary Y axis. * Default: "primary" - * Options: "primary", "secondary" + * Options: "primary", "secondary" */ axisYType?: string; - /** + /** * This defines the data type of x values. Data Type is normally figured out by default based on the object type that is assigned to x. But if you are providing time stamp (which is integer) values instead of Date objects, you’ll have to explicitly set the xValueType to "dateTime". - * Default: Automatically Calculated - * Options: "number", "dateTime" + * Default: Automatically Calculated + * Options: "number", "dateTime" */ xValueType?: string; - /** + /** * Defines how y axis values must be formatted before they appear on the indexLabel or toolTip. You can format numbers and date time values using this property. */ yValueFormatString?: string; - /** + /** * Defines how x axis values must be formatted before they appear on the indexLabel or toolTip. You can format numbers and date time values using this property. */ xValueFormatString?: string; - /** + /** * Defines how z values is formatted before they appear on the indexLabel or toolTip. You can format numbers using this property. */ zValueFormatString?: string; - /** + /** * Sets the bevel property, which creates a chiselled effect at the corners of a Column Charts and Bar Charts. * Default: "true" - * Example: "true", "false" + * Example: "true", "false" */ bevelEnabled?: boolean; - /** + /** * Sets opacity of the filled color. * Default: .7 for Area Charts and 1 for all other chart types. */ fillOpacity?: number; - /** + /** * Sets the starting Angle of the Pie or Doughnut Chart in degrees. - * Default: 0 - * Example: 30, 240, -100.. + * Default: 0 + * Example: 30, 240, -100.. */ startAngle?: number; - /** + /** * Sets the thickness of line in line charts and area charts. - * Default: 2 - * Example: 3,4.. + * Default: 2 + * Example: 3,4.. */ lineThickness?: number; - /** + /** * Setting this property to true makes the dataSeries to appear in legend. In case of pie/ doughnut chart, dataPoints of the single series chart appear in legend. - * Default: false - * Options: false, true + * Default: false + * Options: false, true */ showInLegend?: boolean; - /** + /** * In candle Stick chart, when Closing Price is greater than Opening price, the body is filled with white by default and it can be overridden by risingColor property. - * Default: "white" - * Options: "red", "#DD7E86", etc. + * Default: "white" + * Options: "red", "#DD7E86", etc. */ risingColor?: string; - /** + /** * It represents collection dataPoint inside dataSeries . */ dataPoints: ChartDataPoint[]; } interface ChartDataPoint extends ChartDataCommon { - /** + /** * Sets the x value. It determines the position of the dataPoint on X Axis. It can be numeric or a dateTime value. Values can be positive or Negative. - * Default: null + * Default: null * Example: 10, 20, 30 .. - * new Date(2011, 08, 01) + * new Date(2011, 08, 01) */ x?: any; - /** + /** * Sets the y value of dataPoint. It determines the position of dataPoint on Y Axis. Values can be positive or Negative - * Default: null + * Default: null * Example: 5, 20, -30 .. */ y?: number; - /** + /** * Sets the z value of dataPoint. It is only applicable in case of Bubble chart. This value determines the size of the bubble. - * Default: 1 - * Example: 10, 20, 35.. + * Default: 1 + * Example: 10, 20, 35.. */ z?: number; - /** + /** * Sets label value of a dataPoint. The value appears next to the dataPoint on axisX Line. If not provided, it takes x value for label. - * Default: x value - * Example: "label1", "label2".. + * Default: x value + * Example: "label1", "label2".. */ label?: string; - /** + /** * Sets the exploded value of dataPoint. It is applicable only in case of Pie and Doughnut Charts. This property causes the Pie/Doughnut slice to separate out. - * Default: true - * Example: true, false + * Default: true + * Example: true, false */ exploded?: boolean; - /** + /** * Sets the color of marker that is displayed on legend. This property works only with Pie and Doughnut charts. Value of legendMarkerColor can be "HTML Color Name" or "hex" code. - * Default: dataSeries marker color - * Example: "red", "#008000".. + * Default: dataSeries marker color + * Example: "red", "#008000".. */ legendMarkerColor?: string; } -} \ No newline at end of file +} diff --git a/casperjs/casperjs.d.ts b/casperjs/casperjs.d.ts index e1fdd7dcf8..cfe345c72f 100644 --- a/casperjs/casperjs.d.ts +++ b/casperjs/casperjs.d.ts @@ -1,7 +1,7 @@ // Type definitions for CasperJS v1.0.0 // Project: http://casperjs.org/ // Definitions by: Jed Mao -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/chai-as-promised/chai-as-promised.d.ts b/chai-as-promised/chai-as-promised.d.ts index 36aa358f33..91a46f9033 100644 --- a/chai-as-promised/chai-as-promised.d.ts +++ b/chai-as-promised/chai-as-promised.d.ts @@ -1,7 +1,7 @@ // Type definitions for chai-as-promised // Project: https://github.com/domenic/chai-as-promised/ // Definitions by: jt000 , Yuki Kokubun -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -12,7 +12,7 @@ declare module 'chai-as-promised' { export = chaiAsPromised; } -declare module Chai { +declare namespace Chai { // For BDD API interface Assertion extends LanguageChains, NumericComparison, TypeComparison { diff --git a/chai-datetime/chai-datetime.d.ts b/chai-datetime/chai-datetime.d.ts index b6140689c9..16dd6b8856 100644 --- a/chai-datetime/chai-datetime.d.ts +++ b/chai-datetime/chai-datetime.d.ts @@ -1,11 +1,11 @@ // Type definitions for chai-datetime // Project: https://github.com/gaslight/chai-datetime.git // Definitions by: Cliff Burger -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Chai { +declare namespace Chai { interface Assertion { afterDate(date: Date): Assertion; diff --git a/chai-fuzzy/chai-fuzzy.d.ts b/chai-fuzzy/chai-fuzzy.d.ts index 90955e1e13..163ce7dda7 100644 --- a/chai-fuzzy/chai-fuzzy.d.ts +++ b/chai-fuzzy/chai-fuzzy.d.ts @@ -1,11 +1,11 @@ // Type definitions for chai-fuzzy 1.3.0 // Project: http://chaijs.com/plugins/chai-fuzzy // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Chai { +declare namespace Chai { interface Assertion { /** diff --git a/chai-http/chai-http.d.ts b/chai-http/chai-http.d.ts index 8f009c6abe..a542081635 100644 --- a/chai-http/chai-http.d.ts +++ b/chai-http/chai-http.d.ts @@ -1,12 +1,12 @@ // Type definitions for chai-http // Project: https://github.com/chaijs/chai-http // Definitions by: Wim Looman -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module Chai { +declare namespace Chai { interface ChaiStatic { request: ChaiHttpRequest; @@ -37,7 +37,7 @@ declare module Chai { } } -declare module ChaiHttp { +declare namespace ChaiHttp { interface Promise { then(onFulfilled: (value: T) => U, onRejected?: (reason: any) => U): Promise; } diff --git a/chai-jquery/chai-jquery.d.ts b/chai-jquery/chai-jquery.d.ts index d4eb7465fb..3d287f30fc 100644 --- a/chai-jquery/chai-jquery.d.ts +++ b/chai-jquery/chai-jquery.d.ts @@ -1,12 +1,12 @@ // Type definitions for chai-jquery 1.1.1 // Project: https://github.com/chaijs/chai-jquery // Definitions by: Kazi Manzur Rashid -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module Chai { +declare namespace Chai { interface Assertion { attr: (name: string, value?: string) => Assertion; diff --git a/chai-string/chai-string.d.ts b/chai-string/chai-string.d.ts index fd17665232..ef75470cc7 100644 --- a/chai-string/chai-string.d.ts +++ b/chai-string/chai-string.d.ts @@ -1,11 +1,11 @@ // Type definitions for chai-string 1.1.4 // Project: https://github.com/onechiporenko/chai-string // Definitions by: Nick Malaguti -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Chai { +declare namespace Chai { interface Assertion extends LanguageChains, NumericComparison, TypeComparison { startsWith(expected: string, message?: string): Assertion; startWith(expected: string, message?: string): Assertion; diff --git a/chai-subset/chai-subset.d.ts b/chai-subset/chai-subset.d.ts index b9605241b7..7e2b3a159b 100644 --- a/chai-subset/chai-subset.d.ts +++ b/chai-subset/chai-subset.d.ts @@ -1,11 +1,11 @@ // Type definitions for chai-subset 1.0.0 // Project: https://github.com/e-conomic/chai-subset // Definitions by: Sam Noedel , Andrew Brown -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Chai { +declare namespace Chai { interface Assertion { containSubset(obj: Object): Assertion; } diff --git a/chai-things/chai-things.d.ts b/chai-things/chai-things.d.ts index bc2b89c46f..823329808c 100644 --- a/chai-things/chai-things.d.ts +++ b/chai-things/chai-things.d.ts @@ -5,7 +5,7 @@ /// -declare module Chai { +declare namespace Chai { interface ArrayAssertion { include: ArrayInclude; contain: ArrayInclude; diff --git a/chai/chai-2.0.0.d.ts b/chai/chai-2.0.0.d.ts index cb685f3efa..0983da1fdf 100644 --- a/chai/chai-2.0.0.d.ts +++ b/chai/chai-2.0.0.d.ts @@ -3,9 +3,9 @@ // Definitions by: Jed Mao , // Bart van der Schoor , // Andrew Brown -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Chai { +declare namespace Chai { interface ChaiStatic { expect: ExpectStatic; diff --git a/chai/chai-3.2.0.d.ts b/chai/chai-3.2.0.d.ts index 3ef3046ac3..87b0c08e6f 100644 --- a/chai/chai-3.2.0.d.ts +++ b/chai/chai-3.2.0.d.ts @@ -4,11 +4,11 @@ // Bart van der Schoor , // Andrew Brown , // Olivier Chevet -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // -declare module Chai { +declare namespace Chai { interface ChaiStatic { expect: ExpectStatic; diff --git a/chai/chai.d.ts b/chai/chai.d.ts index fc3ea2cc7b..0ebc855022 100644 --- a/chai/chai.d.ts +++ b/chai/chai.d.ts @@ -5,11 +5,11 @@ // Andrew Brown , // Olivier Chevet , // Matt Wistrand -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // -declare module Chai { +declare namespace Chai { interface ChaiStatic { expect: ExpectStatic; diff --git a/chalk/chalk.d.ts b/chalk/chalk.d.ts index 3a00a5c939..1ead986818 100644 --- a/chalk/chalk.d.ts +++ b/chalk/chalk.d.ts @@ -1,9 +1,9 @@ // Type definitions for chalk v0.4.0 // Project: https://github.com/sindresorhus/chalk // Definitions by: Diullei Gomes , Bart van der Schoor , Nico Jansen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Chalk { +declare namespace Chalk { export var enabled: boolean; export var supportsColor: boolean; diff --git a/chance/chance-tests.ts b/chance/chance-tests.ts index 29d258cf70..d9b4153960 100644 --- a/chance/chance-tests.ts +++ b/chance/chance-tests.ts @@ -19,7 +19,7 @@ var firstCurrency = currencyPair[0]; var secondCurrency = currencyPair[1]; // Mixins can be used with on-the-fly type declaration -declare module Chance { +declare namespace Chance { interface Chance { time(): string; } @@ -36,4 +36,4 @@ chance.mixin({ var timeString: string = chance.time(); var chanceConstructedWithSeed100 = new Chance(100); -var chanceCalledWithSeed100 = Chance() \ No newline at end of file +var chanceCalledWithSeed100 = Chance() diff --git a/chance/chance.d.ts b/chance/chance.d.ts index c77be4d282..290cde8048 100644 --- a/chance/chance.d.ts +++ b/chance/chance.d.ts @@ -1,8 +1,9 @@ // Type definitions for Chance 0.7.3 // Project: http://chancejs.com // Definitions by: Chris Bowdon -// Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module Chance { +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace Chance { interface ChanceStatic { (): Chance diff --git a/change-case/change-case.d.ts b/change-case/change-case.d.ts index 5551b4d3d2..d432db1c35 100644 --- a/change-case/change-case.d.ts +++ b/change-case/change-case.d.ts @@ -1,7 +1,7 @@ // Type definitions for change-case // Project: https://github.com/blakeembrey/change-case // Definitions by: Asana -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "change-case" { function dot(s: string): string; diff --git a/chartist/chartist.d.ts b/chartist/chartist.d.ts index 496b922372..ca2b4206d8 100644 --- a/chartist/chartist.d.ts +++ b/chartist/chartist.d.ts @@ -1,9 +1,9 @@ // Type definitions for Chartist v0.9.5 // Project: https://github.com/gionkunz/chartist-js // Definitions by: Matt Gibbs -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Chartist { +declare namespace Chartist { interface ChartistStatic { diff --git a/chartjs/chart.d.ts b/chartjs/chart.d.ts index 55c06de0d3..fca81b6d22 100644 --- a/chartjs/chart.d.ts +++ b/chartjs/chart.d.ts @@ -1,7 +1,7 @@ // Type definitions for Chart.js // Project: https://github.com/nnnick/Chart.js // Definitions by: Steve Fenton -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface ChartDataSet { label: string; diff --git a/checksum/checksum.d.ts b/checksum/checksum.d.ts index 45974a0612..920164386f 100644 --- a/checksum/checksum.d.ts +++ b/checksum/checksum.d.ts @@ -1,11 +1,11 @@ // Type definitions for checksum 0.1.1 // Project: https://github.com/dshaw/checksum // Definitions by: Rogier Schouten -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "checksum" { - - module checksum { + + namespace checksum { /** * Options object for all functions */ @@ -16,22 +16,22 @@ declare module "checksum" { */ algorithm?: string; } - + /** * Generate the checksum for a file on disk * @param filename The file name - * @param callback Callback which is called with the result or an error + * @param callback Callback which is called with the result or an error */ function file(filename: string, callback: (error: Error, hash: string) => void): void; /** * Generate the checksum for a file on disk * @param filename The file name * @param options Options object to indicate hash algo - * @param callback Callback which is called with the result or an error + * @param callback Callback which is called with the result or an error */ function file(filename: string, options: ChecksumOptions, callback: (error: Error, hash: string) => void): void; } - + /** * Generates a checksum for the given value * @param value Any value @@ -39,6 +39,6 @@ declare module "checksum" { * @returns Checksum */ function checksum(value: any, options?: checksum.ChecksumOptions): string; - + export = checksum; } diff --git a/cheerio/cheerio.d.ts b/cheerio/cheerio.d.ts index 124dae5d92..0f3e4282e0 100644 --- a/cheerio/cheerio.d.ts +++ b/cheerio/cheerio.d.ts @@ -1,7 +1,7 @@ // Type definitions for Cheerio v0.17.0 // Project: https://github.com/cheeriojs/cheerio // Definitions by: Bret Little , VILIC VANE , Wayne Maurer -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Cheerio { // Document References diff --git a/chocolatechipjs/chocolatechipjs.d.ts b/chocolatechipjs/chocolatechipjs.d.ts index 8ba5cc25f3..df54d62951 100644 --- a/chocolatechipjs/chocolatechipjs.d.ts +++ b/chocolatechipjs/chocolatechipjs.d.ts @@ -1,7 +1,7 @@ // Type definitions for chocolatechip v4.0.4 // Project: https://github.com/chocolatechipui/ChocolateChipJS // Definitions by: Robert Biggs -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface ChocolateChipStatic { /** diff --git a/chokidar/chokidar.d.ts b/chokidar/chokidar.d.ts index 6a417ca723..36f2f821c2 100644 --- a/chokidar/chokidar.d.ts +++ b/chokidar/chokidar.d.ts @@ -1,7 +1,7 @@ -// Type definitions for chokidar 1.0.0 +// Type definitions for chokidar 1.4.3 // Project: https://github.com/paulmillr/chokidar // Definitions by: Stefan Steinhart -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -13,6 +13,7 @@ declare module "fs" add(filesDirsOrGlobs:Array):void; unwatch(fileDirOrGlob:string):void; unwatch(filesDirsOrGlobs:Array):void; + getWatched():any; } } @@ -33,10 +34,11 @@ declare module "chokidar" binaryInterval?:number; ignorePermissionErrors?:boolean; atomic?:boolean; + awaitWriteFinish?:any; } import fs = require("fs"); - function watch( fileDirOrGlob:string, options?:WatchOptions ):fs.FSWatcher; - function watch( filesDirsOrGlobs:Array, options?:WatchOptions ):fs.FSWatcher; + function watch(fileDirOrGlob:string, options?:WatchOptions):fs.FSWatcher; + function watch(filesDirsOrGlobs:Array, options?:WatchOptions):fs.FSWatcher; } diff --git a/chosen/chosen.jquery.d.ts b/chosen/chosen.jquery.d.ts index d5c636c406..0033bfdd1d 100644 --- a/chosen/chosen.jquery.d.ts +++ b/chosen/chosen.jquery.d.ts @@ -1,7 +1,7 @@ // Type definitions for Chosen.JQuery 1.4.2 // Project: http://harvesthq.github.com/chosen/ // Definitions by: Boris Yankov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/chroma-js/chroma-js.d.ts b/chroma-js/chroma-js.d.ts index 94b32ae81b..5d785eda27 100644 --- a/chroma-js/chroma-js.d.ts +++ b/chroma-js/chroma-js.d.ts @@ -1,12 +1,12 @@ // Type definitions for Chroma.js v0.5.6 // Project: https://github.com/gka/chroma.js // Definitions by: Sebastian Brückner -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * Chroma.js is a tiny library for all kinds of color conversions and color scales. */ -declare module Chroma { +declare namespace Chroma { export interface ChromaStatic { /** @@ -253,7 +253,7 @@ declare module Chroma { /** * Retreive all possible colors generated by this scale if it has distinct classes. - * + * * @param mode The output mode to use. Must be one of Color's getters. Defaults to "hex". * @return an array of colors in the type specified by mode. */ diff --git a/chrome/chrome-app.d.ts b/chrome/chrome-app.d.ts index eed98fdcf5..1891b960e0 100644 --- a/chrome/chrome-app.d.ts +++ b/chrome/chrome-app.d.ts @@ -1,7 +1,7 @@ // Type definitions for Chrome packaged application development // Project: http://developer.chrome.com/apps/ // Definitions by: Adam Lay , MIZUNE Pine , MIZUSHIMA Junki , Ingvar Stepanyan -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -9,7 +9,7 @@ //////////////////// // App Runtime //////////////////// -declare module chrome.app.runtime { +declare namespace chrome.app.runtime { interface LaunchData { id?: string; items?: LaunchDataItem[]; @@ -34,7 +34,7 @@ declare module chrome.app.runtime { //////////////////// // App Window //////////////////// -declare module chrome.app.window { +declare namespace chrome.app.window { interface ContentBounds { left?: number; top?: number; @@ -146,7 +146,7 @@ declare module chrome.app.window { //////////////////// // fileSystem //////////////////// -declare module chrome.fileSystem { +declare namespace chrome.fileSystem { interface AcceptOptions { description?: string; @@ -177,11 +177,11 @@ declare module chrome.fileSystem { //////////////////// // Media Galleries //////////////////// -declare module chrome.mediaGalleries { +declare namespace chrome.mediaGalleries { interface MediaFileSystemsOptions { interactive?: 'no' | 'yes' | 'if_needed'; } - + interface MediaFileSystemMetadata { name: string; galleryId: string; @@ -190,7 +190,7 @@ declare module chrome.mediaGalleries { isMediaDevice: boolean; isAvailable: boolean; } - + interface MetadataOptions { metadataType: 'all' | 'mimeTypeAndTags' | 'mimeTypeOnly'; } @@ -199,7 +199,7 @@ declare module chrome.mediaGalleries { type: string; tags: { [name: string]: string; }; } - + interface Metadata { // The browser sniffed mime type. mimeType: string; @@ -236,17 +236,17 @@ declare module chrome.mediaGalleries { // The images embedded in the media file's metadata. This is most often used for album art or video thumbnails. attachedImages: Blob[]; } - + interface GalleryWatchResult { galleryId: string; success: boolean; } - + interface GalleryChangedEventArgs { type: 'contents_changed' | 'watch_dropped'; galleryId: string; } - + interface ScanProgressEventArgs { // The type of progress event, i.e. start, finish, etc. type: 'start' | 'cancel' | 'finish' | 'error'; @@ -257,7 +257,7 @@ declare module chrome.mediaGalleries { imageCount?: number; videoCount?: number; } - + export function getMediaFileSystems(callback: (mediaFileSystems: FileSystem[]) => void): void; export function getMediaFileSystems(options: MediaFileSystemsOptions, callback: (mediaFileSystems: FileSystem[]) => void): void; export function addUserSelectedFolder(callback: (mediaFileSystems: FileSystem[], selectedFileSystemName: string) => void): void; @@ -273,7 +273,7 @@ declare module chrome.mediaGalleries { export function removeGalleryWatch(galleryId: string): void; export function getAllGalleryWatch(callback: (galleryIds: string[]) => void): void; export function removeAllGalleryWatch(): void; - + var onGalleryChanged: chrome.events.Event<(args: GalleryChangedEventArgs) => void>; var onScanProgress: chrome.events.Event<(args: ScanProgressEventArgs) => void>; } @@ -281,7 +281,7 @@ declare module chrome.mediaGalleries { //////////////////// // Sockets //////////////////// -declare module chrome.sockets.tcp { +declare namespace chrome.sockets.tcp { interface CreateInfo { socketId: number; } @@ -344,7 +344,7 @@ declare module chrome.sockets.tcp { var onReceiveError: chrome.events.Event<(args: ReceiveErrorEventArgs) => void>; } -declare module chrome.sockets.udp { +declare namespace chrome.sockets.udp { interface CreateInfo { socketId: number; } @@ -403,7 +403,7 @@ declare module chrome.sockets.udp { var onReceiveError: chrome.events.Event<(args: ReceiveErrorEventArgs) => void>; } -declare module chrome.sockets.tcpServer { +declare namespace chrome.sockets.tcpServer { interface CreateInfo { socketId: number; } @@ -459,7 +459,7 @@ declare module chrome.sockets.tcpServer { * Permissions: "system.display" * @since Chrome 30. */ -declare module chrome.system.display { +declare namespace chrome.system.display { interface Bounds { /** The x-coordinate of the upper-left corner. */ left: number; @@ -539,7 +539,7 @@ declare module chrome.system.display { //////////////////// // System - Network //////////////////// -declare module chrome.system.network { +declare namespace chrome.system.network { interface NetworkInterface { name: string; address: string; @@ -549,7 +549,7 @@ declare module chrome.system.network { export function getNetworkInterfaces(callback: (networkInterfaces: NetworkInterface[]) => void): void; } -declare module chrome.runtime { +declare namespace chrome.runtime { interface Manifest { app?: { background?: { @@ -598,7 +598,7 @@ declare module chrome.runtime { //////////////////// // USB //////////////////// -declare module chrome.usb { +declare namespace chrome.usb { type Direction = 'in' | 'out'; interface Device { diff --git a/chrome/chrome-cast.d.ts b/chrome/chrome-cast.d.ts index 71a60ff10b..081d3de1bf 100644 --- a/chrome/chrome-cast.d.ts +++ b/chrome/chrome-cast.d.ts @@ -1,13 +1,13 @@ // Type definitions for Chrome Cast application development // Project: https://developers.google.com/cast/ // Definitions by: Thomas Stig Jacobsen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //////////////////// // Cast // @see https://code.google.com/p/chromium/codesearch#chromium/src/ui/file_manager/externs/chrome_cast.js //////////////////// -declare module chrome.cast { +declare namespace chrome.cast { /** * @enum {string} * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.AutoJoinPolicy @@ -424,7 +424,7 @@ declare module chrome.cast { successCallback: (media: chrome.cast.media.Media) => void, errorCallback: (error: chrome.cast.Error) => void ):void - + /** * @param {!chrome.cast.media.QueueLoadRequest} queueLoadRequest * @param {function(!chrome.cast.media.Media)} successCallback @@ -494,10 +494,10 @@ declare module chrome.cast { } } -declare module chrome.cast.media { - +declare namespace chrome.cast.media { + var DEFAULT_MEDIA_RECEIVER_APP_ID: string; - + /** * @enum {string} * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.MediaCommand @@ -561,7 +561,7 @@ declare module chrome.cast.media { FINISHED: string; ERROR: string; } - + /** * @enum {string} * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media#.RepeatMode @@ -572,7 +572,7 @@ declare module chrome.cast.media { SINGLE:string; ALL_AND_SHUFFLE:string; } - + interface QueueItem { /** * @param {!chrome.cast.media.MediaInfo} mediaInfo @@ -582,7 +582,7 @@ declare module chrome.cast.media { new( mediaInfo: chrome.cast.media.MediaInfo ):QueueItem; - + activeTrackIds: Array; autoplay: boolean; customData: Object; @@ -591,7 +591,7 @@ declare module chrome.cast.media { preloadTime: number; startTime: number; } - + interface QueueLoadRequest { /** * @param {!Array} items @@ -601,13 +601,13 @@ declare module chrome.cast.media { new( items: Array ):QueueLoadRequest; - + customData: Object; items: Array; repeatMode: chrome.cast.media.RepeatMode; startIndex: number; } - + interface QueueInsertItemsRequest { /** * @param {!Array} @@ -617,12 +617,12 @@ declare module chrome.cast.media { new( itemsToInsert: Array ):QueueInsertItemsRequest; - + customData: Object; insertBefore:number; items: Array; } - + interface QueueRemoveItemsRequest { /** * @param {!Array} @@ -632,11 +632,11 @@ declare module chrome.cast.media { new( itemIdsToRemove: Array ):QueueRemoveItemsRequest; - + customData: Object; itemIds: Array; } - + interface QueueReorderItemsRequest { /** * @param {!Array} @@ -646,12 +646,12 @@ declare module chrome.cast.media { new( itemIdsToReorder: Array ):QueueReorderItemsRequest; - + customData: Object; insertBefore: number; itemIds: Array; } - + interface QueueUpdateItemsRequest { /** * @param {!Array} @@ -661,11 +661,11 @@ declare module chrome.cast.media { new( itemsToUpdate: Array ):QueueUpdateItemsRequest; - + customData: Object; item: Array; } - + /** * @enum {string} * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.TrackType @@ -848,7 +848,7 @@ declare module chrome.cast.media { releaseYear: number; subtitle: string; title: string; - /** @deprecated. Use metadataType instead. */ + /** @deprecated. Use metadataType instead. */ type: chrome.cast.media.MetadataType; } @@ -858,7 +858,7 @@ declare module chrome.cast.media { * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.MovieMediaMetadata */ new():MovieMediaMetadata; - + images: Array; metadataType: chrome.cast.media.MetadataType; releaseDate: string; @@ -917,11 +917,11 @@ declare module chrome.cast.media { images: Array; releaseDate: string; - /** @deprecated. Use metadataType instead. */ + /** @deprecated. Use metadataType instead. */ type: chrome.cast.media.MetadataType; - /** @deprecated. Use artist instead. */ + /** @deprecated. Use artist instead. */ artistName: string; - /** @deprecated. Use releaseDate instead. */ + /** @deprecated. Use releaseDate instead. */ releaseYear: number; } @@ -943,7 +943,7 @@ declare module chrome.cast.media { height: number; creationDateTime: string; - /** @deprecated. Use metadataType instead. */ + /** @deprecated. Use metadataType instead. */ type: chrome.cast.media.MetadataType; } @@ -996,7 +996,7 @@ declare module chrome.cast.media { sessionId: string; supportedMediaCommands: Array; volume: chrome.cast.Volume; - + /** @deprecated. Use getEstimatedTime instead */ currentTime: number; @@ -1104,7 +1104,7 @@ declare module chrome.cast.media { * @suppress {deprecated} Uses currentTime member to compute estimated time. */ getEstimatedTime(): number - + /** * @param {!chrome.cast.media.QueueItem} item * @param {function()} successCallback @@ -1115,7 +1115,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + /** * @param {!chrome.cast.media.QueueInsertItemsRequest} queueInsertItemsRequest * @param {function()} successCallback @@ -1126,7 +1126,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + /** * @param {!number} itemId * @param {function()} successCallback @@ -1137,7 +1137,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + /** * @param {!number} itemId * @param {!number} newIndex @@ -1150,7 +1150,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + /** * @param {function()} successCallback * @param {function(!chrome.cast.Error)} errorCallback @@ -1159,8 +1159,8 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - - /** + + /** * @param {function()} successCallback * @param {function(!chrome.cast.Error)} errorCallback */ @@ -1168,7 +1168,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + /** * @param {!number} itemId * @param {function()} successCallback @@ -1179,7 +1179,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + /** * @param {!chrome.cast.media.QueueReorderItemsRequest} queueReorderItemsRequest * @param {function()} successCallback @@ -1190,7 +1190,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + /** * @param {!chrome.cast.media.RepeatMode} repeatMode * @param {function()} successCallback @@ -1201,7 +1201,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + /** * @param {!chrome.cast.media.QueueUpdateItemsRequest} queueUpdateItemsRequest * @param {function()} successCallback @@ -1212,7 +1212,7 @@ declare module chrome.cast.media { successCallback: Function, errorCallback: (error: chrome.cast.Error) => void ): void - + } interface Track { @@ -1263,7 +1263,7 @@ declare module chrome.cast.media { * @namespace * @see https://developers.google.com/cast/docs/reference/chrome/chrome.cast.media.timeout */ -declare module chrome.cast.media.timeout { +declare namespace chrome.cast.media.timeout { var load: number; var getStatus: number; var play: number; @@ -1277,4 +1277,4 @@ declare module chrome.cast.media.timeout { var queueRemove: number; var queueReorder: number; var queueUpdate: number; -} \ No newline at end of file +} diff --git a/chrome/chrome.d.ts b/chrome/chrome.d.ts old mode 100755 new mode 100644 index fccb84895e..9cdf8c3a5d --- a/chrome/chrome.d.ts +++ b/chrome/chrome.d.ts @@ -1,7 +1,7 @@ // Type definitions for Chrome extension development // Project: http://developer.chrome.com/extensions/ // Definitions by: Matthew Kimber , otiai10 , couven92 , RReverser -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -22,7 +22,7 @@ interface Window { * Permissions: "accessibilityFeatures.read" * Important: This API works only on Chrome OS. */ -declare module chrome.accessibilityFeatures { +declare namespace chrome.accessibilityFeatures { interface AccessibilityFeaturesGetArg { /** Optional. Whether to return the value that applies to the incognito session (default false). */ incognito?: boolean; @@ -116,7 +116,7 @@ declare module chrome.accessibilityFeatures { * Availability: Since Chrome 22. * Permissions: "alarms" */ -declare module chrome.alarms { +declare namespace chrome.alarms { interface AlarmCreateInfo { /** Optional. Length of time in minutes after which the onAlarm event should fire. */ delayInMinutes?: number; @@ -199,7 +199,7 @@ declare module chrome.alarms { * Use the chrome.browser API to interact with the Chrome browser associated with * the current application and Chrome profile. */ -declare module chrome.browser { +declare namespace chrome.browser { interface Options { /** The URL to navigate to when the new tab is initially opened. */ url: string; @@ -232,7 +232,7 @@ declare module chrome.browser { * Availability: Since Chrome 5. * Permissions: "bookmarks" */ -declare module chrome.bookmarks { +declare namespace chrome.bookmarks { /** A node (either a bookmark or a folder) in the bookmark tree. Child nodes are ordered within their parent folder. */ interface BookmarkTreeNode { /** Optional. The 0-based position of this node within its parent folder. */ @@ -433,7 +433,7 @@ declare module chrome.bookmarks { * Availability: Since Chrome 5. * Manifest: "browser_action": {...} */ -declare module chrome.browserAction { +declare namespace chrome.browserAction { interface BadgeBackgroundColorDetails { /** An array of four integers in the range [0,255] that make up the RGBA color of the badge. For example, opaque red is [255, 0, 0, 255]. Can also be a string with a CSS value, with opaque red being #FF0000 or #F00. */ color: any; @@ -545,7 +545,7 @@ declare module chrome.browserAction { * Availability: Since Chrome 19. * Permissions: "browsingData" */ -declare module chrome.browsingData { +declare namespace chrome.browsingData { interface OriginTypes { /** Optional. Websites that have been installed as hosted applications (be careful!). */ protectedWeb?: boolean; @@ -723,7 +723,7 @@ declare module chrome.browsingData { * Availability: Since Chrome 25. * Manifest: "commands": {...} */ -declare module chrome.commands { +declare namespace chrome.commands { interface Command { /** Optional. The name of the Extension Command */ name?: string; @@ -755,7 +755,7 @@ declare module chrome.commands { * Availability: Since Chrome 16. * Permissions: "contentSettings" */ -declare module chrome.contentSettings { +declare namespace chrome.contentSettings { interface ClearDetails { /** * Optional. @@ -941,7 +941,7 @@ declare module chrome.contentSettings { * Availability: Since Chrome 6. * Permissions: "contextMenus" */ -declare module chrome.contextMenus { +declare namespace chrome.contextMenus { interface OnClickData { /** * Optional. @@ -1130,7 +1130,7 @@ declare module chrome.contextMenus { * Availability: Since Chrome 6. * Permissions: "cookies", host permissions */ -declare module chrome.cookies { +declare namespace chrome.cookies { /** Represents information about an HTTP cookie. */ interface Cookie { /** The domain of the cookie (e.g. "www.google.com", "example.com"). */ @@ -1377,7 +1377,7 @@ declare module "chrome.debugger" { * Availability: Since Chrome 33. * Permissions: "declarativeContent" */ -declare module chrome.declarativeContent { +declare namespace chrome.declarativeContent { interface PageStateUrlDetails { /** Optional. Matches if the host name of the URL contains a specified string. To test whether a host name component has a prefix 'foo', use hostContains: '.foo'. This matches 'www.foobar.com' and 'foo.com', because an implicit dot is added at the beginning of the host name. Similarly, hostContains can be used to match against component suffix ('foo.') and to exactly match against components ('.foo.'). Suffix- and exact-matching for the last components need to be done separately using hostSuffix, because no implicit dot is added at the end of the host name. */ hostContains?: string; @@ -1439,7 +1439,7 @@ declare module chrome.declarativeContent { //////////////////// // Declarative Web Request //////////////////// -declare module chrome.declarativeWebRequest { +declare namespace chrome.declarativeWebRequest { interface HeaderFilter { nameEquals?: string; valueContains?: any; @@ -1553,7 +1553,7 @@ declare module chrome.declarativeWebRequest { * Availability: Since Chrome 34. * Permissions: "desktopCapture" */ -declare module chrome.desktopCapture { +declare namespace chrome.desktopCapture { /** * Shows desktop media picker UI with the specified set of sources. * @param sources Set of sources that should be shown to the user. @@ -1585,7 +1585,7 @@ declare module chrome.desktopCapture { * Use the chrome.devtools.inspectedWindow API to interact with the inspected window: obtain the tab ID for the inspected page, evaluate the code in the context of the inspected window, reload the page, or obtain the list of resources within the page. * Availability: Since Chrome 18. */ -declare module chrome.devtools.inspectedWindow { +declare namespace chrome.devtools.inspectedWindow { /** A resource within the inspected page, such as a document, a script, or an image. */ interface Resource { /** The URL of the resource. */ @@ -1681,7 +1681,7 @@ declare module chrome.devtools.inspectedWindow { * Use the chrome.devtools.network API to retrieve the information about network requests displayed by the Developer Tools in the Network panel. * Availability: Since Chrome 18. */ -declare module chrome.devtools.network { +declare namespace chrome.devtools.network { /** Represents a network request for a document resource (script, image and so on). See HAR Specification for reference. */ interface Request { /** @@ -1721,7 +1721,7 @@ declare module chrome.devtools.network { * Use the chrome.devtools.panels API to integrate your extension into Developer Tools window UI: create your own panels, access existing panels, and add sidebars. * Availability: Since Chrome 18. */ -declare module chrome.devtools.panels { +declare namespace chrome.devtools.panels { interface PanelShownEvent extends chrome.events.Event<(window: chrome.windows.Window) => void> {} interface PanelHiddenEvent extends chrome.events.Event<() => void> {} @@ -1899,7 +1899,7 @@ declare module chrome.devtools.panels { * Permissions: "documentScan" * Important: This API works only on Chrome OS. */ -declare module chrome.documentScan { +declare namespace chrome.documentScan { interface DocumentScanOptions { /** Optional. The MIME types that are accepted by the caller. */ mimeTypes?: string[]; @@ -1932,7 +1932,7 @@ declare module chrome.documentScan { * Availability: Since Chrome 31. * Permissions: "downloads" */ -declare module chrome.downloads { +declare namespace chrome.downloads { interface HeaderNameValuePair { /** Name of the HTTP header. */ name: string; @@ -2232,7 +2232,7 @@ declare module chrome.downloads { * Important: This API works only on Chrome OS. * Note: This API is only for extensions pre-installed by policy. */ -declare module chrome.enterprise.platformKeys { +declare namespace chrome.enterprise.platformKeys { interface Token { /** * Uniquely identifies this Token. @@ -2291,7 +2291,7 @@ declare module chrome.enterprise.platformKeys { * The chrome.events namespace contains common types used by APIs dispatching events to notify you when something interesting happens. * Availability: Since Chrome 21. */ -declare module chrome.events { +declare namespace chrome.events { /** Filters URLs for various criteria. See event filtering. All criteria are case sensitive. */ interface UrlFilter { /** Optional. Matches if the scheme of the URL is equal to any of the schemes specified in the array. */ @@ -2434,7 +2434,7 @@ declare module chrome.events { * The chrome.extension API has utilities that can be used by any extension page. It includes support for exchanging messages between an extension and its content scripts or between extensions, as described in detail in Message Passing. * Availability: Since Chrome 5. */ -declare module chrome.extension { +declare namespace chrome.extension { interface FetchProperties { /** Optional. The window to restrict the search to. If omitted, returns all views. */ windowId?: number; @@ -2531,7 +2531,7 @@ declare module chrome.extension { * Permissions: "fileBrowserHandler" * Important: This API works only on Chrome OS. */ -declare module chrome.fileBrowserHandler { +declare namespace chrome.fileBrowserHandler { interface SelectionParams { /** * Optional. @@ -2584,7 +2584,7 @@ declare module chrome.fileBrowserHandler { * Permissions: "fileSystemProvider" * Important: This API works only on Chrome OS. */ -declare module chrome.fileSystemProvider { +declare namespace chrome.fileSystemProvider { interface OpenedFileInfo { /** A request ID to be be used by consecutive read/write and close requests. */ openRequestId: number; @@ -2935,7 +2935,7 @@ declare module chrome.fileSystemProvider { * Availability: Since Chrome 22. * Permissions: "fontSettings" */ -declare module chrome.fontSettings { +declare namespace chrome.fontSettings { /** Represents a font name. */ interface FontName { /** The display name of the font. */ @@ -3102,7 +3102,7 @@ declare module chrome.fontSettings { * Availability: Since Chrome 35. * Permissions: "gcm" */ -declare module chrome.gcm { +declare namespace chrome.gcm { interface OutgoingMessage { /** The ID of the server to send the message to as assigned by Google API Console. */ destinationId: string; @@ -3190,7 +3190,7 @@ declare module chrome.gcm { * Availability: Since Chrome 5. * Permissions: "history" */ -declare module chrome.history { +declare namespace chrome.history { /** An object encapsulating one visit to a URL. */ interface VisitItem { /** The transition type for this visit from its referrer. */ @@ -3305,7 +3305,7 @@ declare module chrome.history { * Use the chrome.i18n infrastructure to implement internationalization across your whole app or extension. * @since Chrome 5. */ -declare module chrome.i18n { +declare namespace chrome.i18n { /** * Gets the accept-languages of the browser. This is different from the locale used by the browser; to get the locale, use i18n.getUILanguage. * @param callback The callback parameter should be a function that looks like this: @@ -3334,7 +3334,7 @@ declare module chrome.i18n { * Permissions: "identity" * @since Chrome 29. */ -declare module chrome.identity { +declare namespace chrome.identity { /** @since Chrome 32. */ interface AccountInfo { /** A unique identifier for the account. This ID will not change for the lifetime of the account. */ @@ -3453,7 +3453,7 @@ declare module chrome.identity { * Permissions: "idle" * @since Chrome 6. */ -declare module chrome.idle { +declare namespace chrome.idle { interface IdleStateChangedEvent extends chrome.events.Event<(newState: string) => void> {} /** @@ -3483,7 +3483,7 @@ declare module chrome.idle { * Permissions: "input" * @since Chrome 21. */ -declare module chrome.input.ime { +declare namespace chrome.input.ime { /** See http://www.w3.org/TR/DOM-Level-3-Events/#events-KeyboardEvent */ interface KeyboardEvent { /** @@ -3880,7 +3880,7 @@ declare module chrome.input.ime { * Permissions: "management" * @since Chrome 8. */ -declare module chrome.management { +declare namespace chrome.management { /** Information about an installed extension, app, or theme. */ interface ExtensionInfo { /** @@ -4130,7 +4130,7 @@ declare module chrome.management { * Important: This API works only on Chrome OS. * @since Chrome 43. */ -declare module chrome.networking.config { +declare namespace chrome.networking.config { interface NetworkInfo { /** Currently only WiFi supported. */ Type: string; @@ -4183,7 +4183,7 @@ declare module chrome.networking.config { * Permissions: "notifications" * @since Chrome 28. */ -declare module chrome.notifications { +declare namespace chrome.notifications { interface ButtonOptions { title: string; iconUrl?: string; @@ -4339,7 +4339,7 @@ declare module chrome.notifications { * Manifest: "omnibox": {...} * @since Chrome 9. */ -declare module chrome.omnibox { +declare namespace chrome.omnibox { /** A suggest result. */ interface SuggestResult { /** The text that is put into the URL bar, and that is sent to the extension when the user chooses this entry. */ @@ -4385,7 +4385,7 @@ declare module chrome.omnibox { * Manifest: "page_action": {...} * @since Chrome 5. */ -declare module chrome.pageAction { +declare namespace chrome.pageAction { interface PageActionClickedEvent extends chrome.events.Event<(tab: chrome.tabs.Tab) => void> {} interface TitleDetails { @@ -4474,7 +4474,7 @@ declare module chrome.pageAction { * Permissions: "pageCapture" * @since Chrome 18. */ -declare module chrome.pageCapture { +declare namespace chrome.pageCapture { interface SaveDetails { /** The id of the tab to save as MHTML. */ tabId: number; @@ -4497,7 +4497,7 @@ declare module chrome.pageCapture { * Use the chrome.permissions API to request declared optional permissions at run time rather than install time, so users understand why the permissions are needed and grant only those that are necessary. * @since Chrome 16. */ -declare module chrome.permissions { +declare namespace chrome.permissions { interface Permissions { /** * Optional. @@ -4573,7 +4573,7 @@ declare module chrome.permissions { * Important: This API works only on Chrome OS. * @since Chrome 45. */ -declare module chrome.platformKeys { +declare namespace chrome.platformKeys { interface Match { /** The DER encoding of a X.509 certificate. */ certificate: ArrayBuffer; @@ -4652,7 +4652,7 @@ declare module chrome.platformKeys { * Permissions: "power" * @since Chrome 27. */ -declare module chrome.power { +declare namespace chrome.power { /** Requests that power management be temporarily disabled. |level| describes the degree to which power management should be disabled. If a request previously made by the same app is still active, it will be replaced by the new request. */ export function requestKeepAwake(level: string): void; /** Releases a request previously made via requestKeepAwake(). */ @@ -4667,7 +4667,7 @@ declare module chrome.power { * Permissions: "printerProvider" * @since Chrome 44. */ -declare module chrome.printerProvider { +declare namespace chrome.printerProvider { interface PrinterInfo { /** Unique printer ID. */ id: string; @@ -4726,7 +4726,7 @@ declare module chrome.printerProvider { * The Chrome Privacy Whitepaper gives background detail regarding the features which this API can control. * @since Chrome 18. */ -declare module chrome.privacy { +declare namespace chrome.privacy { interface Services { /** since Chrome 20. */ spellingServiceEnabled: chrome.types.ChromeSetting; @@ -4776,7 +4776,7 @@ declare module chrome.privacy { * Permissions: "proxy" * @since Chrome 13. */ -declare module chrome.proxy { +declare namespace chrome.proxy { /** An object holding proxy auto-config information. Exactly one of the fields should be non-empty. */ interface PacScript { /** Optional. URL of the PAC file to be used. */ @@ -4852,7 +4852,7 @@ declare module chrome.proxy { * Use the chrome.runtime API to retrieve the background page, return details about the manifest, and listen for and respond to events in the app or extension lifecycle. You can also use this API to convert the relative path of URLs to fully-qualified URLs. * @since Chrome 22 */ -declare module chrome.runtime { +declare namespace chrome.runtime { /** This will be defined during an API method callback if there was an error */ var lastError: LastError; /** The ID of the extension/app. */ @@ -4981,17 +4981,17 @@ declare module chrome.runtime { interface RuntimeRestartRequiredEvent extends chrome.events.Event<(reason: string) => void> {} interface RuntimeUpdateAvailableEvent extends chrome.events.Event<(details: UpdateAvailableDetails) => void> {} - + interface ManifestIcons { [size: number]: string; } - + interface ManifestAction { default_icon?: ManifestIcons; default_title?: string; default_popup?: string; } - + interface SearchProvider { name?: string; keyword?: string; @@ -5009,7 +5009,7 @@ declare module chrome.runtime { prepopulated_id?: number; is_default?: boolean; } - + interface Manifest { // Required manifest_version: number; @@ -5312,7 +5312,7 @@ declare module chrome.runtime { * Fired when a connection is made from another extension. * @since Chrome 26. */ - var onConnectExternal: RuntimeEvent; + var onConnectExternal: ExtensionConnectEvent; /** Sent to the event page just before it is unloaded. This gives the extension opportunity to do some clean up. Note that since the page is unloading, any asynchronous operations started while handling this event are not guaranteed to complete. If more activity for the event page occurs before it gets unloaded the onSuspendCanceled event will be sent and the page won't be unloaded. */ var onSuspend: RuntimeEvent; /** @@ -5354,7 +5354,7 @@ declare module chrome.runtime { //////////////////// // Script Badge //////////////////// -declare module chrome.scriptBadge { +declare namespace chrome.scriptBadge { interface GetPopupDetails { tabId: number; } @@ -5385,7 +5385,7 @@ declare module chrome.scriptBadge { * Permissions: "sessions" * @since Chrome 37. */ -declare module chrome.sessions { +declare namespace chrome.sessions { interface Filter { /** * Optional. @@ -5466,7 +5466,7 @@ declare module chrome.sessions { * Permissions: "storage" * @since Chrome 20. */ -declare module chrome.storage { +declare namespace chrome.storage { interface StorageArea { /** * Gets the amount of space (in bytes) being used by one or more items. @@ -5599,7 +5599,7 @@ declare module chrome.storage { //////////////////// // Socket //////////////////// -declare module chrome.socket { +declare namespace chrome.socket { interface CreateInfo { socketId: number; } @@ -5664,7 +5664,7 @@ declare module chrome.socket { * Permissions: "system.cpu" * @since Chrome 32. */ -declare module chrome.system.cpu { +declare namespace chrome.system.cpu { interface ProcessorUsage { /** The cumulative time used by userspace programs on this processor. */ user: number; @@ -5709,7 +5709,7 @@ declare module chrome.system.cpu { * Permissions: "system.memory" * @since Chrome 32. */ -declare module chrome.system.memory { +declare namespace chrome.system.memory { interface MemoryInfo { /** The total amount of physical memory capacity, in bytes. */ capacity: number; @@ -5729,7 +5729,7 @@ declare module chrome.system.memory { * Permissions: "system.storage" * @since Chrome 30. */ -declare module chrome.system.storage { +declare namespace chrome.system.storage { interface StorageUnitInfo { /** The transient ID that uniquely identifies the storage device. This ID will be persistent within the same run of a single application. It will not be a persistent identifier between different runs of an application, or between different applications. */ id: string; @@ -5785,7 +5785,7 @@ declare module chrome.system.storage { * Permissions: "tabCapture" * @since Chrome 31. */ -declare module chrome.tabCapture { +declare namespace chrome.tabCapture { interface CaptureInfo { /** The id of the tab whose status changed. */ tabId: number; @@ -5835,7 +5835,7 @@ declare module chrome.tabCapture { * Permissions: The majority of the chrome.tabs API can be used without declaring any permission. However, the "tabs" permission is required in order to populate the url, title, and favIconUrl properties of Tab. * @since Chrome 5. */ -declare module chrome.tabs { +declare namespace chrome.tabs { /** * Tab muted state and the reason for the last state change. * @since Chrome 46. Warning: this is the current Beta channel. @@ -6580,7 +6580,7 @@ declare module chrome.tabs { * Permissions: "topSites" * @since Chrome 19. */ -declare module chrome.topSites { +declare namespace chrome.topSites { /** An object encapsulating a most visited URL, such as the URLs on the new tab page. */ interface MostVisitedURL { /** The most visited URL. */ @@ -6601,7 +6601,7 @@ declare module chrome.topSites { * Permissions: "tts" * @since Chrome 14. */ -declare module chrome.tts { +declare namespace chrome.tts { /** An event from the TTS engine to communicate the status of an utterance. */ interface TtsEvent { /** Optional. The index of the current character in the utterance. */ @@ -6716,7 +6716,7 @@ declare module chrome.tts { * Permissions: "ttsEngine" * @since Chrome 14. */ -declare module chrome.ttsEngine { +declare namespace chrome.ttsEngine { interface SpeakOptions { /** Optional. The language to be used for synthesis, in the form language-region. Examples: 'en', 'en-US', 'en-GB', 'zh-CN'. */ lang?: string; @@ -6763,7 +6763,7 @@ declare module chrome.ttsEngine { * The chrome.types API contains type declarations for Chrome. * @since Chrome 13. */ -declare module chrome.types { +declare namespace chrome.types { interface ChromeSettingClearDetails { /** * Optional. @@ -6857,7 +6857,7 @@ declare module chrome.types { * Important: This API works only on Chrome OS. * @since Chrome 43. */ -declare module chrome.vpnProvider { +declare namespace chrome.vpnProvider { interface VpnSessionParameters { /** IP address for the VPN interface in CIDR notation. IPv4 is currently the only supported mode. */ address: string; @@ -6944,7 +6944,7 @@ declare module chrome.vpnProvider { * Important: This API works only on Chrome OS. * @since Chrome 43. */ -declare module chrome.wallpaper { +declare namespace chrome.wallpaper { interface WallpaperDetails { /** Optional. The jpeg or png encoded wallpaper image. */ data?: any; @@ -6977,7 +6977,7 @@ declare module chrome.wallpaper { * Permissions: "webNavigation" * @since Chrome 16. */ -declare module chrome.webNavigation { +declare namespace chrome.webNavigation { interface GetFrameDetails { /** * The ID of the process runs the renderer for this tab. @@ -7145,7 +7145,7 @@ declare module chrome.webNavigation { * Permissions: "webRequest", host permissions * @since Chrome 17. */ -declare module chrome.webRequest { +declare namespace chrome.webRequest { interface AuthCredentials { username: string; password: string; @@ -7371,7 +7371,7 @@ declare module chrome.webRequest { * Use the chrome.webstore API to initiate app and extension installations "inline" from your site. * @since Chrome 15. */ -declare module chrome.webstore { +declare namespace chrome.webstore { /** * @param url Optional. If you have more than one tag on your page with the chrome-webstore-item relation, you can choose which item you'd like to install by passing in its URL here. If it is omitted, then the first (or only) link will be used. An exception will be thrown if the passed in URL does not exist on the page. * @param successCallback Optional. This function is invoked when inline installation successfully completes (after the dialog is shown and the user agrees to add the item to Chrome). You may wish to use this to hide the user interface element that prompted the user to install the app or extension. @@ -7472,7 +7472,7 @@ declare module chrome.webstore { * Permissions: The chrome.windows API can be used without declaring any permission. However, the "tabs" permission is required in order to populate the url, title, and favIconUrl properties of Tab objects. * @since Chrome 5. */ -declare module chrome.windows { +declare namespace chrome.windows { interface Window { /** Array of tabs.Tab objects representing the current tabs in the window. */ tabs?: chrome.tabs.Tab[]; diff --git a/chui/chui.d.ts b/chui/chui.d.ts index 5a7d41a5bb..4bf597e869 100644 --- a/chui/chui.d.ts +++ b/chui/chui.d.ts @@ -1,7 +1,7 @@ // Type definitions for chui v3.9.1 // Project: https://github.com/chocolatechipui/chocolatechip-ui // Definitions by: Robert Biggs -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // ChocolateChip-UI 3.9.1 /** These TypeScript delcarations for ChocolateChip-UI contain interfaces for both ChocolateChipJS and jQuery. Depending on which library you are using, you will get the type interfaces appropriate for it. diff --git a/circular-json/circular-json.d.ts b/circular-json/circular-json.d.ts index 2aa27e947a..343744a690 100644 --- a/circular-json/circular-json.d.ts +++ b/circular-json/circular-json.d.ts @@ -1,7 +1,7 @@ // Type definitions for circular-json v0.1.6 // Project: https://github.com/WebReflection/circular-json // Definitions by: Jonathan Pevarnek -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'circular-json' { interface ICircularJSON extends JSON { diff --git a/ckeditor/ckeditor.d.ts b/ckeditor/ckeditor.d.ts index ac036be5d6..bba377090f 100644 --- a/ckeditor/ckeditor.d.ts +++ b/ckeditor/ckeditor.d.ts @@ -1,11 +1,11 @@ // Type definitions for CKEditor // Project: http://ckeditor.com/ // Definitions by: Ondrej Sevcik -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // WORK-IN-PROGRESS: Any contribution support welcomed. -// See https://github.com/borisyankov/DefinitelyTyped/issues/1827 for more informations. -declare module CKEDITOR { +// See https://github.com/DefinitelyTyped/DefinitelyTyped/issues/1827 for more informations. +declare namespace CKEDITOR { // Config options var disableAutoInline: boolean; @@ -88,7 +88,7 @@ declare module CKEDITOR { function replaceAll(assertionFunction: (textarea: HTMLTextAreaElement, config: config) => boolean): void; - module dom { + namespace dom { class comment { @@ -167,7 +167,7 @@ declare module CKEDITOR { // Properties type: number; - // Methods + // Methods constructor(element: string, ownerDocument?: document); constructor(element: HTMLElement, ownerDocument?: document); addClass(className: string): void; @@ -506,7 +506,7 @@ declare module CKEDITOR { } - module ajax { + namespace ajax { // Methods function load(url: string, callback?: Function): string; @@ -556,7 +556,7 @@ declare module CKEDITOR { groups?: string[]; } - module config { + namespace config { interface styleObject { name?: string; element: string; @@ -842,7 +842,7 @@ declare module CKEDITOR { } - module plugins { + namespace plugins { class contextMenu extends menu { constructor(editor: editor); @@ -851,7 +851,7 @@ declare module CKEDITOR { } - module link { + namespace link { var emptyAnchorFix: boolean; var fakeAnchor: boolean; var synAnchorSelector: boolean; @@ -861,9 +861,9 @@ declare module CKEDITOR { } - module widget { + namespace widget { - module nestedEditable { + namespace nestedEditable { interface definition { allowedContent?: any; pathName?: string; @@ -1024,7 +1024,7 @@ declare module CKEDITOR { function get(name: string): any; function getFilePath(name: string): string; function getPath(name: string): string; - function load(name: string, callback: string, scope: any): void; + function load(name: string, callback: Function, scope?: Object): void; function setLang(pluginName: string, languageCode: string, languageEntries: any): void; } @@ -1127,7 +1127,7 @@ declare module CKEDITOR { updateElement(): void; } - module editor { + namespace editor { interface eventObject { activeEnterModeChange?: (evt: CKEDITOR.eventInfo) => void; activeFilterChange?: (evt: CKEDITOR.eventInfo) => void; @@ -1288,8 +1288,8 @@ declare module CKEDITOR { addHandler(type: Object, handler: Object): void; } - module ui { - module dialog { + namespace ui { + namespace dialog { class uiElement { eventProcessors: any; @@ -1460,14 +1460,14 @@ declare module CKEDITOR { show(): void; showPage(id: string): void; updateStyle(): void; - + // NOTE: Static methods are added to dialog module } - module dialog { + namespace dialog { - module definition { + namespace definition { interface button extends uiElement { disabled?: boolean; @@ -1619,7 +1619,7 @@ declare module CKEDITOR { } - module htmlParser { + namespace htmlParser { class basicWriter { constructor(); @@ -1759,16 +1759,16 @@ declare module CKEDITOR { } - module tools { + namespace tools { var callFunction: Function; } - module lang { + namespace lang { var languages: any; var rtl: any; function load(languageCode: string, defaultLanguage: string, callback: Function): void; function detect(defaultLanguage: string, probeLanguage: string): string; } -} \ No newline at end of file +} diff --git a/classnames/classnames.d.ts b/classnames/classnames.d.ts index 58a3e096f2..f9993f3c11 100644 --- a/classnames/classnames.d.ts +++ b/classnames/classnames.d.ts @@ -1,7 +1,7 @@ // Type definitions for classnames // Project: https://github.com/JedWatson/classnames // Definitions by: Dave Keen , Adi Dahiya , Jason Killian -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare type ClassValue = string | number | ClassDictionary | ClassArray; diff --git a/cldr.js/cldr.js-event.d.ts b/cldr.js/cldr.js-event.d.ts index 5e520127c1..b86580aa95 100644 --- a/cldr.js/cldr.js-event.d.ts +++ b/cldr.js/cldr.js-event.d.ts @@ -1,11 +1,11 @@ // Type definitions for Cldr.js 0.4.4 // Project: https://github.com/rxaviers/cldrjs // Definitions by: Raman But-Husaim -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // The definition file for event module. -declare module cldr { +declare namespace cldr { interface CldrStatic { on(event:string, listener:(path:string, value:any) => void): void; once(event:string, listener:(path:string, value:any) => void): void; diff --git a/cldr.js/cldr.js-supplemental.d.ts b/cldr.js/cldr.js-supplemental.d.ts index d1486f0829..3b25e21962 100644 --- a/cldr.js/cldr.js-supplemental.d.ts +++ b/cldr.js/cldr.js-supplemental.d.ts @@ -1,11 +1,11 @@ // Type definitions for Cldr.js 0.4.4 // Project: https://github.com/rxaviers/cldrjs // Definitions by: Raman But-Husaim -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // The definition file for supplemental module. -declare module cldr { +declare namespace cldr { interface TimeDataStatic { allowed(): string; preferred(): string; diff --git a/cldr.js/cldr.js.d.ts b/cldr.js/cldr.js.d.ts index 8466e54aa1..04ecb428f6 100644 --- a/cldr.js/cldr.js.d.ts +++ b/cldr.js/cldr.js.d.ts @@ -1,9 +1,9 @@ // Type definitions for Cldr.js 0.4.4 // Project: https://github.com/rxaviers/cldrjs -// Definitions by: Raman But-Husaim -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions by: Raman But-Husaim , Grégoire Castre +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module cldr { +declare namespace cldr { /** * @name Attributes * @memberof cldr @@ -91,6 +91,19 @@ declare module cldr { * Maximized Language Id {@link http://www.unicode.org/reports/tr35/#Likely_Subtags} */ maxLanguageId: any; + + /** + * @name minLanguageId + * @memberof cldr.Attributes + * @kind property + * @access public + * + * @type {any} + * + * @description + * Minimized Language Id {@link http://www.unicode.org/reports/tr35/#Likely_Subtags} + */ + minLanguageId: any; } /** @@ -229,6 +242,13 @@ declare module cldr { * @returns {cldr.CldrStatic} The instance of {@link cldr.CldrStatic} class. */ new (locale: string): CldrStatic; + + /** + * Allow user to override locale separator "-" (default) | "_". + * According to http://www.unicode.org/reports/tr35/#Unicode_language_identifier, both "-" and "_" are valid locale separators (eg. "en_GB", "en-GB"). + * According to http://unicode.org/cldr/trac/ticket/6786 its usage must be consistent throughout the data set. + */ + localeSep: "-" | "_"; } } diff --git a/clean-css/clean-css.d.ts b/clean-css/clean-css.d.ts index 25bb2471a5..752be96571 100644 --- a/clean-css/clean-css.d.ts +++ b/clean-css/clean-css.d.ts @@ -1,7 +1,7 @@ // Type definitions for clean-css v3.4.9 // Project: https://github.com/jakubpawlowicz/clean-css // Definitions by: Tanguy Krotoff -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'clean-css' { namespace CleanCSS { diff --git a/cli-color/cli-color.d.ts b/cli-color/cli-color.d.ts index 5764a646c9..fdb0c471d1 100644 --- a/cli-color/cli-color.d.ts +++ b/cli-color/cli-color.d.ts @@ -1,10 +1,10 @@ // Type definitions for cli-color 0.3.2 // Project: https://github.com/medikoo/cli-color // Definitions by: Joel Spadin -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "cli-color" { - module m { + namespace m { export interface Format { (...text: any[]): string; @@ -83,7 +83,7 @@ declare module "cli-color/trim" { declare module "cli-color/throbber" { import clc = require('cli-color'); - module setupThrobber { + namespace setupThrobber { export interface Throbber { start(): void; stop(): void; diff --git a/cli/cli-tests.ts b/cli/cli-tests.ts new file mode 100644 index 0000000000..44ff7e66e7 --- /dev/null +++ b/cli/cli-tests.ts @@ -0,0 +1,181 @@ +/// + +import * as cli from "cli"; + +// ======================================================================== +// Example: https://github.com/node-js-libs/cli/blob/master/examples/cat.js +// ======================================================================== + +var output_file = function(file: string) { + cli.withInput(file, function (line, sep, eof) { + if (!eof) { + cli.output(line + sep); + } else if (cli.args.length) { + output_file(cli.args.shift()); + } + }); +}; + +if (cli.args.length) { + output_file(cli.args.shift()); +} + +// ============================================================================ +// Example: https://github.com/node-js-libs/cli/blob/master/examples/command.js +// ============================================================================ + +cli.parse(null, ['install', 'test', 'edit', 'remove', 'uninstall', 'ls']); + +console.log('Command is: ' + cli.command); + + +// ============================================================================ +// Example: https://github.com/node-js-libs/cli/blob/master/examples/echo.js +// ============================================================================ + +cli.parse({ + newline: ['n', 'Do not output the trailing newline'], + escape: ['e', 'Enable interpretation of backslash escapes'], + separator: ['s', 'Separate arguments using this value', 'string', ' '], + output: [false, 'Write to FILE rather than the console', 'file'] +}); + +cli.main(function (args, options) { + var output = '', i: any, j: any, l: number, output_stream: NodeJS.WritableStream; + + if (this.argc) { + if (options.escape) { + var replace: any = {'\\n':'\n','\\r':'\r','\\t':'\t','\\e':'\e','\\v':'\v','\\f':'\f','\\c':'\c','\\b':'\b','\\a':'\a','\\\\':'\\'}; + var escape = function (str: string) { + str += ''; + for (j in replace) { + str = str.replace(i, replace[i]); + } + return str; + } + for (i = 0, l = this.argc; i < l; i++) { + args[i] = escape(args[i]); + } + options.separator = escape(options.separator); + } + output += args.join(options.separator); + } + + if (!options.newline) { + output += '\n'; + } + + try { + if (options.output) { + output_stream = this.native.fs.createWriteStream(options.output) + } else { + output_stream = process.stdout; + } + output_stream.write(output); + } catch (e) { + this.fatal('Could not write to output stream'); + } +}); + + +// ========================================================================= +// Example: https://github.com/node-js-libs/cli/blob/master/examples/glob.js +// ========================================================================= + +cli.enable('glob'); + +//Running `./glob.js *.js` will output a list of .js files in this directory +console.log(cli.args); + + +// ============================================================================== +// Example: https://github.com/node-js-libs/cli/blob/master/examples/long_desc.js +// ============================================================================== + +//You can (optionally) boost the width of output with: +cli.width = 120; + +//You can also adjust the width of the options/command definitions +cli.option_width = 25; + +var long_desc = 'Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry\'s ' + + 'standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make' + + ' a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, ' + + 'remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing ' + + 'Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions' + + ' of Lorem Ipsum.'; + +cli.parse({ + foo: ['f', long_desc] +}); + + +// ============================================================================= +// Example: https://github.com/node-js-libs/cli/blob/master/examples/progress.js +// ============================================================================= + +var i = 0, interval = setInterval(function () { + cli.progress(++i / 100); + if (i === 100) { + clearInterval(interval); + cli.ok('Finished!'); + } +}, 50); + + +// ========================================================================= +// Example: https://github.com/node-js-libs/cli/blob/master/examples/sort.js +// ========================================================================= + +var options = cli.parse({ + numeric: ['n', 'Compare using a numeric sort'], + reverse: ['r', 'Reverse the results'] +}); + +cli.withStdinLines(function (lines, newline) { + lines.sort(!options.numeric ? null : function (a, b) { + return parseInt(a) - parseInt(b); + }); + if (options.reverse) { + lines.reverse(); + } + this.output(lines.join(newline)); +}); + + +// ============================================================================ +// Example: https://github.com/node-js-libs/cli/blob/master/examples/spinner.js +// ============================================================================ + +cli.spinner('Working..'); + +setTimeout(function () { + cli.spinner('Working.. done!', true); //End the spinner +}, 3000); + + +// =========================================================================== +// Example: https://github.com/node-js-libs/cli/blob/master/examples/static.js +// =========================================================================== + +cli.parse({ + log: ['l', 'Enable logging'], + port: ['p', 'Listen on this port', 'number', 8080], + serve: [false, 'Serve static files from PATH', 'path', './public'] +}); + +cli.main(function (args, options) { + var server: any, middleware: any = []; + + if (options.log) { + this.debug('Enabling logging'); + middleware.push(require('creationix/log')()); + } + + this.debug('Serving files from ' + options.serve); + middleware.push(require('creationix/static')('/', options.serve, 'index.html')); + + server = this.createServer(middleware).listen(options.port); + + this.ok('Listening on port ' + options.port); +}); diff --git a/cli/cli.d.ts b/cli/cli.d.ts new file mode 100644 index 0000000000..2283d3d283 --- /dev/null +++ b/cli/cli.d.ts @@ -0,0 +1,66 @@ +// Type definitions for cli v0.11.2 +// Project: https://www.npmjs.com/package/cli +// Definitions by: Klaus Reimer +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "cli" { + interface CLI { + app: string; + version: string; + argv: string[]; + argc: number; + options: any; + args: string[]; + command: string; + width: number; + option_width: number; + native: any; + output(message?: any, ...optionalParams: any[]): void; + exit(code: number): void; + no_color: boolean; + enable(...plugins: string[]): CLI; + disable(...plugins: string[]): CLI; + setArgv(argv: string | Array, keepArg0?: boolean): void; + next(): string; + parse(opts?: { [long: string]: { 0: string | boolean, 1: string, 2?: string, 3?: any } }, + commands?: { [name: string]: string } | string[]): any; + autocompleteCommand(command: string): string; + info(msg: string): void; + error(msg: string): void; + ok(msg: string): void; + debug(msg: string): void; + fatal(msg: string): void; + setApp(appName: string, version: string): CLI; + setApp(packageJson: string): CLI; + parsePackageJson(path?: string): void; + setUsage(usage: string): CLI; + getUsage(code?: number): void; + getOptError(expects: string, type: string): string; + getValue(defaultVal: string, validateFunc: (value: any) => any, errMsg: string): void; + getInt(defaultVal: number): number; + getDate(defaultVal: Date): Date; + getFloat(defaultVal: number): number; + getUrl(defautltVal: string, identifier?: string): string; + getEmail(defaultVal: string): string; + getIp(defaultVal: string): string; + getPath(defaultVal: string, identifier?: string): string; + getArrayValue(arr: T[], defaultVal: T): T; + withStdin(callback: (data: string) => void): void; + withStdin(encoding: string, callback: (text: string) => void): void; + withStdinLines(callback: (lines: string[], newline: string) => void): void; + withInput(file: string, encoding: string, callback: (line: string, newline: string, eof: boolean) => void): void; + withInput(file: string, callback: (line: string, newline: string, eof: boolean) => void): void; + withInput(callback: (line: string, newline: string, eof: boolean) => void): void; + toType(object: any): string; + daemon(arg: string, callback: () => void): void; + main(callback: (args: string[], options: any) => void): void; + createServer(...args: any[]): any; + exec(cmd: string, callback?: (lines: string[]) => void, errback?: (err: any, stdout: string) => void): void; + progress(progress: number, decimals?: number, stream?: NodeJS.WritableStream): void; + spinner(prefix?: string | boolean, end?: boolean, stream?: NodeJS.WritableStream): void; + } + const cli: CLI; + export = cli; +} diff --git a/clipboard/clipboard-tests.ts b/clipboard/clipboard-tests.ts index de6e9fc1ac..1a19fbf230 100644 --- a/clipboard/clipboard-tests.ts +++ b/clipboard/clipboard-tests.ts @@ -1,22 +1,28 @@ /// -var cb1 = new clipboard.Clipboard('.btn'); -var cb2 = new clipboard.Clipboard('.btn', { +var cb1 = new Clipboard('.btn'); +var cb2 = new Clipboard(document.getElementById('id'), { action: elem => 'copy' }); -var cb3 = new clipboard.Clipboard('.btn', { +var cb3 = new Clipboard(document.querySelectorAll('query'), { text: elem => null }); -var cb4 = new clipboard.Clipboard('.btn', { +var cb4 = new Clipboard('.btn', { target: elem => null }); -var cb5 = new clipboard.Clipboard('.btn', { +var cb5 = new Clipboard('.btn', { action: elem => 'copy', target: elem => null }); cb1.destroy(); -cb2.on('success', function(e) { }); +cb2.on('success', function(e) { + console.info('Action:', e.action); + console.info('Text:', e.text); + console.info('Trigger:', e.trigger); + + e.clearSelection(); +}); cb2.on('error', function(e) { }); diff --git a/clipboard/clipboard.d.ts b/clipboard/clipboard.d.ts index ddba32b064..d4b014e2f3 100644 --- a/clipboard/clipboard.d.ts +++ b/clipboard/clipboard.d.ts @@ -1,52 +1,56 @@ -// Type definitions for clipboard.js 1.5.5 +// Type definitions for clipboard.js 1.5.9 // Project: https://github.com/zenorocha/clipboard.js // Definitions by: Andrei Kurosh -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module clipboard { +declare class Clipboard { + constructor(selector: (string | Element | NodeListOf), options?: ClipboardOptions); - export class Clipboard { - constructor(selector: string, options?: IOptions); + /** + * Subscribes to events that indicate the result of a copy/cut operation. + * @param type {String} Event type ('success' or 'error'). + * @param handler Callback function. + */ + on(type: "success", handler: (e: ClipboardEvent) => void): this; + on(type: "error", handler: (e: ClipboardEvent) => void): this; + on(type: string, handler: (e: ClipboardEvent) => void): this; - /** - * Subscribes to events that indicate the result of a copy/cut operation. - * @param type {String} Event type ('success' or 'error'). - * @param handler Callback function. - */ - on(type: "success", handler: (e: Event) => void): void; - on(type: "error", handler: (e: Event) => void): void; - on(type: string, handler: (e: Event) => void): void; + /** + * Clears all event bindings. + */ + destroy(): void; +} - /** - * Clears all event bindings. - */ - destroy(): void; - } +interface ClipboardOptions { + /** + * Overwrites default command ('cut' or 'copy'). + * @param {Element} elem Current element + * @returns {String} Only 'cut' or 'copy'. + */ + action?: (elem: Element) => string; - interface IOptions { - /** - * Overwrites default command ('cut' or 'copy'). - * @param {Element} elem Current element - * @returns {String} Only 'cut' or 'copy'. - */ - action?: (elem: Element) => string; + /** + * Overwrites default target input element. + * @param {Element} elem Current element + * @returns {Element} element to use. + */ + target?: (elem: Element) => Element; - /** - * Overwrites default target input element. - * @param {Element} elem Current element - * @returns {Element} element to use. - */ - target?: (elem: Element) => Element; + /** + * Returns the explicit text to copy. + * @param {Element} elem Current element + * @returns {String} Text to be copied. + */ + text?: (elem: Element) => string; +} - /** - * Returns the explicit text to copy. - * @param {Element} elem Current element - * @returns {String} Text to be copied. - */ - text?: (elem: Element) => string; - } +interface ClipboardEvent { + action: string; + text: string; + trigger: Element; + clearSelection(): void; } declare module 'clipboard' { - export = clipboard; -} \ No newline at end of file + export = Clipboard; +} diff --git a/clone/clone.d.ts b/clone/clone.d.ts index 08acc62e42..79c05cef00 100644 --- a/clone/clone.d.ts +++ b/clone/clone.d.ts @@ -1,7 +1,7 @@ // Type definitions for clone 0.1.11 // Project: https://github.com/pvorb/node-clone // Definitions by: Kieran Simpson -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * See clone JS source for API docs @@ -14,7 +14,7 @@ declare module "clone" { */ function clone(val: T, circular?: boolean, depth?: number): T; - module clone { + namespace clone { /** * @param obj the object that you want to clone */ diff --git a/closure-compiler/closure-compiler.d.ts b/closure-compiler/closure-compiler.d.ts index 0d1aba7416..2e875afbdb 100644 --- a/closure-compiler/closure-compiler.d.ts +++ b/closure-compiler/closure-compiler.d.ts @@ -1,7 +1,7 @@ // Type definitions for closure-compiler // Project: https://github.com/tim-smart/node-closure/ // Definitions by: Martin Probst -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'closure-compiler' { type Callback = (err: Error, stdout: string, stderr: string) => any; diff --git a/codemirror/codemirror-matchbrackets.d.ts b/codemirror/codemirror-matchbrackets.d.ts index 13241a5a3c..cfae62deac 100644 --- a/codemirror/codemirror-matchbrackets.d.ts +++ b/codemirror/codemirror-matchbrackets.d.ts @@ -1,11 +1,11 @@ // Type definitions for CodeMirror // Project: https://github.com/marijnh/CodeMirror // Definitions by: Sixin Li -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // See docs https://codemirror.net/doc/manual.html#addon_matchbrackets -declare module CodeMirror { +declare namespace CodeMirror { interface EditorConfiguration { // when set to true, causes matching brackets to be highlighted whenever the cursor is next to them matchBrackets?: boolean; diff --git a/codemirror/codemirror-runmode-tests.ts b/codemirror/codemirror-runmode-tests.ts new file mode 100644 index 0000000000..e139e7177b --- /dev/null +++ b/codemirror/codemirror-runmode-tests.ts @@ -0,0 +1,6 @@ +/// +/// + +var query = "SELECT * FROM Table"; + +CodeMirror.runMode(query, "text/x-sql", document.body); diff --git a/codemirror/codemirror-runmode.d.ts b/codemirror/codemirror-runmode.d.ts new file mode 100644 index 0000000000..116c092cd2 --- /dev/null +++ b/codemirror/codemirror-runmode.d.ts @@ -0,0 +1,22 @@ +// Type definitions for CodeMirror +// Project: https://github.com/marijnh/CodeMirror +// Definitions by: Joseph Vaughan +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// See docs https://codemirror.net/doc/manual.html#addon_runmode + +declare namespace CodeMirror { + + /** + * Runs a CodeMirror mode over text without opening an editor instance. + * + * @param text The document to run through the highlighter. + * @param mode The mode to use (must be loaded as normal). + * @param output If this is a function, it will be called for each token with + * two arguments, the token's text and the token's style class + * (may be null for unstyled tokens). If it is a DOM node, the + * tokens will be converted to span elements as in an editor, + * and inserted into the node (through innerHTML). + */ + function runMode(text: string, modespec: any, callback: (HTMLElement | ((text: string, style: string) => void)), options? : { tabSize?: number; state?: any; }): void; +} diff --git a/codemirror/codemirror-showhint.d.ts b/codemirror/codemirror-showhint.d.ts index 8b620a414f..e90c137117 100644 --- a/codemirror/codemirror-showhint.d.ts +++ b/codemirror/codemirror-showhint.d.ts @@ -1,11 +1,11 @@ // Type definitions for CodeMirror // Project: https://github.com/marijnh/CodeMirror // Definitions by: jacqt , basarat -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // See docs https://codemirror.net/doc/manual.html#addon_show-hint -declare module CodeMirror { +declare namespace CodeMirror { var commands: any; /** Provides a framework for showing autocompletion hints. Defines editor.showHint, which takes an optional diff --git a/codemirror/codemirror-tests.ts b/codemirror/codemirror-tests.ts index 731a650b79..89bd1d16f3 100644 --- a/codemirror/codemirror-tests.ts +++ b/codemirror/codemirror-tests.ts @@ -39,10 +39,7 @@ var annotation: CodeMirror.Annotation = { ch: 0, line: 0 }, - to: { - ch: 1, - line: 0 - }, + to: CodeMirror.Pos(1), message: "test", severity: "warning" }; @@ -50,3 +47,6 @@ var annotation: CodeMirror.Annotation = { myCodeMirror.getValue(); myCodeMirror.getValue("foo") myCodeMirror.setValue("bar"); + +CodeMirror.registerHelper("lint", "javascript", {}); + diff --git a/codemirror/codemirror.d.ts b/codemirror/codemirror.d.ts index 482ff4be83..6196d015c6 100644 --- a/codemirror/codemirror.d.ts +++ b/codemirror/codemirror.d.ts @@ -1,12 +1,12 @@ // Type definitions for CodeMirror // Project: https://github.com/marijnh/CodeMirror // Definitions by: mihailik -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function CodeMirror(host: HTMLElement, options?: CodeMirror.EditorConfiguration): CodeMirror.Editor; declare function CodeMirror(callback: (host: HTMLElement) => void , options?: CodeMirror.EditorConfiguration): CodeMirror.Editor; -declare module CodeMirror { +declare namespace CodeMirror { export var Doc : CodeMirror.DocConstructor; export var Pos: CodeMirror.PositionConstructor; export var Pass: any; @@ -32,6 +32,11 @@ declare module CodeMirror { whenever a new CodeMirror instance is initialized. */ function defineInitHook(func: Function): void; + /** Registers a helper value with the given name in the given namespace (type). This is used to define functionality + that may be looked up by mode. Will create (if it doesn't already exist) a property on the CodeMirror object for + the given type, pointing to an object that maps names to values. I.e. after doing + CodeMirror.registerHelper("hint", "foo", myFoo), the value CodeMirror.hint.foo will point to myFoo. */ + function registerHelper(namespace: string, name: string, helper: any): void; function on(element: any, eventName: string, handler: Function): void; @@ -486,8 +491,8 @@ declare module CodeMirror { It may be "start" , "end" , "head"(the side of the selection that moves when you press shift + arrow), or "anchor"(the fixed side of the selection).Omitting the argument is the same as passing "head".A { line , ch } object will be returned. */ getCursor(start?: string): CodeMirror.Position; - - /** Retrieves a list of all current selections. These will always be sorted, and never overlap (overlapping selections are merged). + + /** Retrieves a list of all current selections. These will always be sorted, and never overlap (overlapping selections are merged). Each object in the array contains anchor and head properties referring to {line, ch} objects. */ listSelections(): { anchor: CodeMirror.Position; head: CodeMirror.Position }[]; @@ -651,15 +656,15 @@ declare module CodeMirror { } interface PositionConstructor { - new (line: number, ch: number): Position; - (line: number, ch: number): Position; + new (line: number, ch?: number): Position; + (line: number, ch?: number): Position; } - + interface Range{ from: CodeMirror.Position; to: CodeMirror.Position; } - + interface Position { ch: number; line: number; @@ -811,8 +816,8 @@ declare module CodeMirror { /** Optional lint configuration to be used in conjunction with CodeMirror's linter addon. */ lint?: boolean | LintOptions; - /** Optional value to be used in conduction with CodeMirror’s placeholder add-on. */ - placeholder?: string; + /** Optional value to be used in conjunction with CodeMirror’s placeholder add-on. */ + placeholder?: string; } interface TextMarkerOptions { diff --git a/codemirror/searchcursor.d.ts b/codemirror/searchcursor.d.ts index ed7af7a250..fbf5e97965 100644 --- a/codemirror/searchcursor.d.ts +++ b/codemirror/searchcursor.d.ts @@ -1,9 +1,9 @@ // Type definitions for CodeMirror // Project: https://github.com/marijnh/CodeMirror // Definitions by: jacqt -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module CodeMirror { +declare namespace CodeMirror { interface Doc { /** This method can be used to implement search/replace functionality. * `query`: This can be a regular * expression or a string (only strings will match across lines - diff --git a/coffeeify/coffeeify.d.ts b/coffeeify/coffeeify.d.ts index 9651cdb15f..05919f901a 100644 --- a/coffeeify/coffeeify.d.ts +++ b/coffeeify/coffeeify.d.ts @@ -1,7 +1,7 @@ // Type definitions for coffeeify // Project: https://github.com/jnordberg/coffeeify // Definitions by: Qubo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/colorbrewer/colorbrewer.d.ts b/colorbrewer/colorbrewer.d.ts index ecd4bffc7b..014a33b1c6 100644 --- a/colorbrewer/colorbrewer.d.ts +++ b/colorbrewer/colorbrewer.d.ts @@ -1,11 +1,11 @@ // Type definitions for colorbrewer v1.0.0 // Project: https://github.com/jeanlauliac/colorbrewer // Definitions by: Matt Traynham -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var colorbrewer: ColorBrewer.Base; -declare module ColorBrewer { +declare namespace ColorBrewer { interface ColorScheme { [n: number]: string[]; } diff --git a/colors/colors.d.ts b/colors/colors.d.ts index 5aa28553a3..cc6b307c03 100644 --- a/colors/colors.d.ts +++ b/colors/colors.d.ts @@ -1,7 +1,7 @@ // Type definitions for Colors.js 0.6.0-1 // Project: https://github.com/Marak/colors.js // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "colors" { interface Color { @@ -43,7 +43,7 @@ declare module "colors" { random: Color; } - module e { + namespace e { export function setTheme(theme:any): void; export var black: Color; diff --git a/cometd/cometd.d.ts b/cometd/cometd.d.ts index d6f0f6e2a5..0ac377c241 100644 --- a/cometd/cometd.d.ts +++ b/cometd/cometd.d.ts @@ -1,9 +1,9 @@ // Type definitions for CometD 2.5.1 // Project: http://cometd.org // Definitions by: Derek Cicerone -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module CometD { +declare namespace CometD { interface ConfigurationOptions { url: string; @@ -41,7 +41,7 @@ interface CometD { disconnect(): void; - + } diff --git a/commander/commander-tests.ts b/commander/commander-tests.ts index 135ad8bf02..52dd0f8504 100644 --- a/commander/commander-tests.ts +++ b/commander/commander-tests.ts @@ -3,7 +3,7 @@ // NOTE: import statement can not use in TypeScript 1.0.1 var program:commander.IExportedCommand = require('commander'); -declare module commander { +declare namespace commander { interface IExportedCommand { peppers:boolean; pineapple:boolean; @@ -43,7 +43,7 @@ function increaseVerbosity(v:any, total:number) { return total + 1; } -declare module commander { +declare namespace commander { interface IExportedCommand { integer:number; float:number; diff --git a/commander/commander.d.ts b/commander/commander.d.ts index d0efa63051..40543a2768 100644 --- a/commander/commander.d.ts +++ b/commander/commander.d.ts @@ -1,11 +1,11 @@ // Type definitions for commanderjs 2.3.0 // Project: https://github.com/visionmedia/commander.js // Definitions by: Marcelo Dezem , vvakame -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module commander { +declare namespace commander { interface ICommandStatic { /** * Initialize a new `Command`. diff --git a/commonmark/commonmark.d.ts b/commonmark/commonmark.d.ts index 8f12714515..84a76c47f6 100644 --- a/commonmark/commonmark.d.ts +++ b/commonmark/commonmark.d.ts @@ -4,7 +4,7 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module commonmark { +declare namespace commonmark { export interface NodeWalkingStep { /** @@ -41,7 +41,7 @@ declare module commonmark { export class Node { constructor(nodeType: string, sourcepos?: Position); isContainer: boolean; - + /** * (read-only): one of Text, Softbreak, Hardbreak, Emph, Strong, Html, Link, Image, Code, Document, Paragraph, BlockQuote, Item, List, Heading, CodeBlock, HtmlBlock ThematicBreak. */ @@ -139,7 +139,7 @@ declare module commonmark { */ walker(): NodeWalker; /** - * Setting the backing object of listType, listTight, listStat and listDelimiter directly. + * Setting the backing object of listType, listTight, listStat and listDelimiter directly. * Not needed unless creating list nodes directly. Should be fixed from v>0.22.1 * https://github.com/jgm/commonmark.js/issues/74 */ @@ -147,7 +147,7 @@ declare module commonmark { } /** - * Instead of converting Markdown directly to HTML, as most converters do, commonmark.js parses Markdown to an AST (abstract syntax tree), and then renders this AST as HTML. + * Instead of converting Markdown directly to HTML, as most converters do, commonmark.js parses Markdown to an AST (abstract syntax tree), and then renders this AST as HTML. * This opens up the possibility of manipulating the AST between parsing and rendering. For example, one could transform emphasis into ALL CAPS. */ export class Parser { @@ -192,7 +192,7 @@ declare module commonmark { /** * Override the function that will be used to escape (sanitize) the html output. Return value is used to add to the html output * @param input the input to escape - * @param isAttributeValue indicates wheter or not the input value will be used as value of an html attribute. + * @param isAttributeValue indicates wheter or not the input value will be used as value of an html attribute. */ escape: (input: string, isAttributeValue: boolean) => string; } @@ -211,4 +211,4 @@ declare module commonmark { declare module 'commonmark' { export = commonmark; -} \ No newline at end of file +} diff --git a/compare-version/compare-version.d.ts b/compare-version/compare-version.d.ts index 7cc24e6db0..690d517294 100644 --- a/compare-version/compare-version.d.ts +++ b/compare-version/compare-version.d.ts @@ -1,7 +1,7 @@ // Type definitions for compare-version v0.1.2 // Project: https://www.npmjs.com/package/compare-version // Definitions by: Jonathan Pevarnek -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'compare-version' { diff --git a/compression/compression.d.ts b/compression/compression.d.ts index 00b2e0459a..6a444e3f49 100644 --- a/compression/compression.d.ts +++ b/compression/compression.d.ts @@ -1,14 +1,14 @@ // Type definitions for compression // Project: https://github.com/expressjs/compression // Definitions by: Santi Albo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module "compression" { import express = require('express'); - module e { + namespace e { interface CompressionOptions { threshold?: number; filter?: Function; @@ -17,4 +17,4 @@ declare module "compression" { function e(options?: e.CompressionOptions): express.RequestHandler; export = e; -} \ No newline at end of file +} diff --git a/confidence/confidence.d.ts b/confidence/confidence.d.ts index 4c30b44074..62ad82adb1 100644 --- a/confidence/confidence.d.ts +++ b/confidence/confidence.d.ts @@ -1,7 +1,7 @@ // Type definitions for Confidence v1.4.2 // Project: https://github.com/hapijs/confidence.git // Definitions by: Jean-Philippe Pellerin -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * Confidence is a configuration document format, an API, and a foundation for A/B testing. diff --git a/config/config-tests.ts b/config/config-tests.ts index 2f53b76d60..9525a582e1 100644 --- a/config/config-tests.ts +++ b/config/config-tests.ts @@ -1,6 +1,8 @@ /// -import config = require('config'); +import * as config from "config"; + +var class1: config.IConfig = config; var value1: string = config.get(""); var value2: any = config.get(""); diff --git a/config/config.d.ts b/config/config.d.ts index c37eddae9e..f09abdd3f2 100644 --- a/config/config.d.ts +++ b/config/config.d.ts @@ -1,34 +1,44 @@ // Type definitions for node-config // Project: https://github.com/lorenwest/node-config // Definitions by: Roman Korneev -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "config" { - // see https://github.com/lorenwest/node-config/wiki/Using-Config-Utilities - interface IUtil { - // Extend an object (and any object it contains) with one or more objects (and objects contained in them). - extendDeep(mergeInto: any, mergeFrom: any, depth?: number): any; - // Return a deep copy of the specified object. - cloneDeep(copyFrom: any, depth?: number): any; + var c: c.IConfig; - // Return true if two objects have equal contents. - equalsDeep(object1: any, object2: any, dept?: number): boolean; + namespace c { - // Returns an object containing all elements that differ between two objects. - diffDeep(object1: any, object2: any, depth?: number): any; + // see https://github.com/lorenwest/node-config/wiki/Using-Config-Utilities + interface IUtil { + // Extend an object (and any object it contains) with one or more objects (and objects contained in them). + extendDeep(mergeInto: any, mergeFrom: any, depth?: number): any; - // Make a javascript object property immutable (assuring it cannot be changed from the current value). - makeImmutable(object: any, propertyName?: string, propertyValue?: string): any; + // Return a deep copy of the specified object. + cloneDeep(copyFrom: any, depth?: number): any; - // Make an object property hidden so it doesn't appear when enumerating elements of the object. - makeHidden(object: any, propertyName: string, propertyValue?: string): any; + // Return true if two objects have equal contents. + equalsDeep(object1: any, object2: any, dept?: number): boolean; - // Get the current value of a config environment variable - getEnv(varName: string): string; - } + // Returns an object containing all elements that differ between two objects. + diffDeep(object1: any, object2: any, depth?: number): any; - export function get(setting: string): T; - export function has(setting: string): boolean; - export var util: IUtil; + // Make a javascript object property immutable (assuring it cannot be changed from the current value). + makeImmutable(object: any, propertyName?: string, propertyValue?: string): any; + + // Make an object property hidden so it doesn't appear when enumerating elements of the object. + makeHidden(object: any, propertyName: string, propertyValue?: string): any; + + // Get the current value of a config environment variable + getEnv(varName: string): string; + } + + interface IConfig { + get(setting: string): T; + has(setting: string): boolean; + util: IUtil; + } + } + + export = c; } diff --git a/configstore/configstore.d.ts b/configstore/configstore.d.ts index 94849d847f..7ca1bcb9ee 100644 --- a/configstore/configstore.d.ts +++ b/configstore/configstore.d.ts @@ -1,7 +1,7 @@ // Type definitions for configstore 0.3.0 // Project: https://github.com/yeoman/configstore // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'configstore' { /* diff --git a/connect-flash/connect-flash.d.ts b/connect-flash/connect-flash.d.ts index 0b8047a720..2479142bdd 100644 --- a/connect-flash/connect-flash.d.ts +++ b/connect-flash/connect-flash.d.ts @@ -1,11 +1,11 @@ // Type definitions for connect-flash // Project: https://github.com/jaredhanson/connect-flash // Definitions by: Andreas Gassmann -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Express { +declare namespace Express { export interface Request { flash(message: string): any; flash(event: string, message: string): any; diff --git a/connect-livereload/connect-livereload.d.ts b/connect-livereload/connect-livereload.d.ts index 98e851fec6..c8246e62f1 100644 --- a/connect-livereload/connect-livereload.d.ts +++ b/connect-livereload/connect-livereload.d.ts @@ -1,38 +1,38 @@ // Type definitions for connect-livereload v0.5.3 // Project: https://github.com/intesso/connect-livereload // Definitions by: Maxime LUCE -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module "connect-livereload" { import { HandleFunction } from "connect"; - + function livereload(): HandleFunction; function livereload(options: livereload.Options): HandleFunction; - - module livereload { + + namespace livereload { export type FileMatcher = string | RegExp; - + export interface Rule { match: RegExp; fn: (w: string, s: string) => string; } - + export interface Options { ignore?: FileMatcher[]; excludeList?: FileMatcher[]; - + include?: FileMatcher[]; html?: (val: string) => boolean; rules?: Rule[]; disableCompression?: boolean; - + hostname?: string; port?: number; src?: string; } } - + export = livereload; -} \ No newline at end of file +} diff --git a/connect-modrewrite/connect-modrewrite.d.ts b/connect-modrewrite/connect-modrewrite.d.ts index 56011c6df3..57e9e842f3 100644 --- a/connect-modrewrite/connect-modrewrite.d.ts +++ b/connect-modrewrite/connect-modrewrite.d.ts @@ -1,7 +1,7 @@ // Type definitions for connect-modrewrite // Project: https://github.com/tinganho/connect-modrewrite // Definitions by: Tingan Ho -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/connect-mongo/connect-mongo.d.ts b/connect-mongo/connect-mongo.d.ts index ece75973ac..49f93e2d46 100644 --- a/connect-mongo/connect-mongo.d.ts +++ b/connect-mongo/connect-mongo.d.ts @@ -1,7 +1,7 @@ // Type definitions for connect-mongo // Project: https://github.com/kcbanner/connect-mongo // Definitions by: Mizuki Yamamoto -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// @@ -16,7 +16,7 @@ declare module "connect-mongo" { function connectMongo(connect: (options?: session.SessionOptions) => express.RequestHandler): connectMongo.MongoStoreFactory; - module connectMongo { + namespace connectMongo { export interface DefaultOptions{ /** @@ -99,7 +99,7 @@ declare module "connect-mongo" { new (options: NaitiveMongoOptions): MongoStore; } - export class MongoStore implements session.Store { + export class MongoStore extends session.Store { get: (sid: string, callback: (err: any, session: Express.Session) => void) => void; set: (sid: string, session: Express.Session, callback: (err: any) => void) => void; destroy: (sid: string, callback: (err: any) => void) => void; diff --git a/connect-slashes/connect-slashes.d.ts b/connect-slashes/connect-slashes.d.ts index 58f0e7e690..111e29c093 100644 --- a/connect-slashes/connect-slashes.d.ts +++ b/connect-slashes/connect-slashes.d.ts @@ -1,7 +1,7 @@ // Type definitions for connect-slashes // Project: https://github.com/avinoamr/connect-slashes // Definitions by: Sam Herrmann -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* =================== USAGE =================== @@ -23,7 +23,7 @@ declare module "connect-slashes" { */ function slashes (addTrailingSlashes?: boolean, options?: slashes.Options): express.RequestHandler; - module slashes { + namespace slashes { /** * Additional settings diff --git a/connect-timeout/connect-timeout-tests.ts b/connect-timeout/connect-timeout-tests.ts index 4f77b597d9..14e07aa847 100644 --- a/connect-timeout/connect-timeout-tests.ts +++ b/connect-timeout/connect-timeout-tests.ts @@ -4,7 +4,7 @@ /// import * as express from "express"; -import timeout from "connect-timeout"; +import * as timeout from "connect-timeout"; import * as bodyParser from "body-parser"; import * as cookieParser from "cookie-parser"; diff --git a/connect-timeout/connect-timeout.d.ts b/connect-timeout/connect-timeout.d.ts index 88bafbad53..dbd4c5cfd8 100644 --- a/connect-timeout/connect-timeout.d.ts +++ b/connect-timeout/connect-timeout.d.ts @@ -1,11 +1,11 @@ // Type definitions for connect-timeout // Project: https://github.com/expressjs/timeout // Definitions by: Cyril Schumacher -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Express { +declare namespace Express { export interface Request { /** * @summary Clears the timeout on the request. @@ -23,17 +23,20 @@ declare module Express { declare module "connect-timeout" { import express = require("express"); - /** - * @summary Interface for timeout options. - * @interface - */ - interface TimeoutOptions extends Object { + namespace e { /** - * @summary Controls if this module will "respond" in the form of forwarding an error. - * @type {boolean} + * @summary Interface for timeout options. + * @interface */ - respond: boolean; + interface TimeoutOptions { + /** + * @summary Controls if this module will "respond" in the form of forwarding an error. + * @type {boolean} + */ + respond?: boolean; + } } - export default function timeout(timeout: string, options?: TimeoutOptions): express.RequestHandler; + function e(timeout: string, options?: e.TimeoutOptions): express.RequestHandler; + export = e; } diff --git a/connect/connect.d.ts b/connect/connect.d.ts index 575a341b60..4ec11f042d 100644 --- a/connect/connect.d.ts +++ b/connect/connect.d.ts @@ -1,22 +1,22 @@ // Type definitions for connect v3.4.0 // Project: https://github.com/senchalabs/connect // Definitions by: Maxime LUCE -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module "connect" { import * as http from "http"; - + /** * Create a new connect server. * @public */ function createServer(): createServer.Server; - - module createServer { + + namespace createServer { export type ServerHandle = HandleFunction | http.Server; - + export type SimpleHandleFunction = (req: http.IncomingMessage, res: http.ServerResponse) => void; export type NextHandleFunction = (req: http.IncomingMessage, res: http.ServerResponse, next: Function) => void; export type ErrorHandleFunction = (err: Error, req: http.IncomingMessage, res: http.ServerResponse, next: Function) => void; @@ -26,7 +26,7 @@ declare module "connect" { route: string; handle: ServerHandle; } - + export interface Server extends NodeJS.EventEmitter { (req: http.IncomingMessage, res: http.ServerResponse, next?: Function): void; @@ -48,7 +48,7 @@ declare module "connect" { */ use(fn: HandleFunction): Server; use(route: string, fn: HandleFunction): Server; - + /** * Handle server requests, punting them down * the middleware stack. @@ -56,7 +56,7 @@ declare module "connect" { * @private */ handle(req: http.IncomingMessage, res: http.ServerResponse, next: Function): void; - + /** * Listen for connections. * @@ -87,6 +87,6 @@ declare module "connect" { listen(handle: any, listeningListener?: Function): http.Server; } } - + export = createServer; } diff --git a/consolidate/consolidate.d.ts b/consolidate/consolidate.d.ts index db23a31524..ff54a83a8e 100644 --- a/consolidate/consolidate.d.ts +++ b/consolidate/consolidate.d.ts @@ -1,7 +1,7 @@ // Type definitions for consolidate // Project: https://github.com/visionmedia/consolidate.js // Definitions by: Carlos Ballesteros Velasco , Theo Sherry -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Imported from: https://github.com/soywiz/typescript-node-definitions/consolidate.d.ts diff --git a/constant-case/constant-case.d.ts b/constant-case/constant-case.d.ts index dfc14ed774..2bb635c763 100644 --- a/constant-case/constant-case.d.ts +++ b/constant-case/constant-case.d.ts @@ -1,7 +1,7 @@ // Type definitions for constant-case // Project: https://github.com/blakeembrey/constant-case // Definitions by: Sam Saint-Pettersen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "constant-case" { function constantCase(string: string, locale?: string): string; diff --git a/consul/consul-tests.ts b/consul/consul-tests.ts new file mode 100644 index 0000000000..2a8619aca5 --- /dev/null +++ b/consul/consul-tests.ts @@ -0,0 +1,799 @@ +/// + +import * as Consul from "consul"; + +let ConsulStatic: Consul.ConsulStatic; +let AclStatic: Consul.AclStatic = ConsulStatic.Acl; +let AgentStatic: Consul.AgentStatic = ConsulStatic.Agent; +let AgentCheckStatic: Consul.Agent.CheckStatic = ConsulStatic.Agent.Check; +let AgentServiceStatic: Consul.Agent.ServiceStatic = ConsulStatic.Agent.Service; +let CatalogStatic: Consul.CatalogStatic = ConsulStatic.Catalog; +let CatalogNodeStatic: Consul.Catalog.NodeStatic = ConsulStatic.Catalog.Node; +let CatalogServiceStatic: Consul.Catalog.ServiceStatic = ConsulStatic.Catalog.Service; +let EventStatic: Consul.EventStatic = ConsulStatic.Event; +let HealthStatic: Consul.HealthStatic = ConsulStatic.Health; +let KvStatic: Consul.KvStatic = ConsulStatic.Kv; +let LockStatic: Consul.LockStatic = ConsulStatic.Lock; +let SessionStatic: Consul.SessionStatic = ConsulStatic.Session; +let StatusStatic: Consul.StatusStatic = ConsulStatic.Status; +let WatchStatic: Consul.WatchStatic = ConsulStatic.Watch; + +let consul: Consul.Consul; + +consul = Consul(); +consul = new Consul(); + + +// Consul.Acl +{ + let acl: Consul.Acl = consul.acl; + + acl = new AclStatic(consul); + consul = acl.consul; + + { + let opts: Consul.Acl.CreateOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + acl.create(opts, callback); + acl.create(callback); + + result = acl.create(opts); + result = acl.create(); + } + + { + let opts: Consul.Acl.UpdateOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + acl.update(opts, callback); + + result = acl.update(opts); + } + + { + let id: string; + let opts: Consul.Acl.DestroyOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + acl.destroy(id, callback); + acl.destroy(opts, callback); + + result = acl.destroy(id); + result = acl.destroy(opts); + } + + { + let id: string; + let opts: Consul.Acl.InfoOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + acl.info(id, callback); + acl.info(opts, callback); + + result = acl.info(id); + result = acl.info(opts); + + acl.get(id, callback); + acl.get(opts, callback); + + result = acl.get(id); + result = acl.get(opts); + } + + { + let id: string; + let opts: Consul.Acl.CloneOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + acl.clone(id, callback); + acl.clone(opts, callback); + + result = acl.clone(id); + result = acl.clone(opts); + } + + { + let opts: Consul.Acl.ListOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + acl.list(opts, callback); + acl.list(callback); + + result = acl.list(opts); + result = acl.list(); + } +} + + +// Consul.Agent +{ + let agent: Consul.Agent = consul.agent; + + agent = new AgentStatic(consul); + consul = agent.consul; + + { + let opts: Consul.Agent.ChecksOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + agent.checks(opts, callback); + agent.checks(callback); + + result = agent.checks(opts); + result = agent.checks(); + } + + { + let opts: Consul.Agent.ServicesOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + agent.services(opts, callback); + agent.services(callback); + + result = agent.services(opts); + result = agent.services(); + } + + { + let opts: Consul.Agent.MembersOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + agent.members(opts, callback); + agent.members(callback); + + result = agent.members(opts); + result = agent.members(); + } + + { + let opts: Consul.Agent.SelfOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + agent.self(opts, callback); + agent.self(callback); + + result = agent.self(opts); + result = agent.self(); + } + + { + let enable: boolean; + let opts: Consul.Agent.MaintenanceOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + agent.maintenance(enable, callback); + agent.maintenance(opts, callback); + + result = agent.maintenance(enable); + result = agent.maintenance(opts); + } + + { + let address: string; + let opts: Consul.Agent.JoinOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + agent.join(address, callback); + agent.join(opts, callback); + + result = agent.join(address); + result = agent.join(opts); + } + + { + let node: string; + let opts: Consul.Agent.ForceLeaveOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + agent.forceLeave(node, callback); + agent.forceLeave(opts, callback); + + result = agent.forceLeave(node); + result = agent.forceLeave(opts); + } + + + // Consul.Agent.Check + { + let check: Consul.Agent.Check = consul.agent.check; + + check = new AgentCheckStatic(consul); + consul = check.consul; + + { + let id: string; + let opts: Consul.Agent.Check.ListOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + check.list(opts, callback); + check.list(callback); + + result = check.list(opts); + result = check.list(); + } + + { + let opts: Consul.Agent.Check.RegisterOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + check.register(opts, callback); + + result = check.register(opts); + } + + { + let id: string; + let opts: Consul.Agent.Check.DeregisterOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + check.deregister(id, callback); + check.deregister(opts, callback); + + result = check.deregister(id); + result = check.deregister(opts); + } + + { + let id: string; + let opts: Consul.Agent.Check.PassOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + check.pass(id, callback); + check.pass(opts, callback); + + result = check.pass(id); + result = check.pass(opts); + } + + { + let id: string; + let opts: Consul.Agent.Check.WarnOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + check.warn(id, callback); + check.warn(opts, callback); + + result = check.warn(id); + result = check.warn(opts); + } + + { + let id: string; + let opts: Consul.Agent.Check.WarnOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + check.fail(id, callback); + check.fail(opts, callback); + + result = check.fail(id); + result = check.fail(opts); + } + } + + + // Consul.Agent.Service + { + let service: Consul.Agent.Service = consul.agent.service; + + service = new AgentServiceStatic(consul); + consul = service.consul; + + { + let opts: Consul.Agent.Service.ListOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + service.list(opts, callback); + service.list(callback); + + result = service.list(opts); + result = service.list(); + } + + { + let id: string; + let opts: Consul.Agent.Service.RegisterOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + service.register(id, callback); + service.register(opts, callback); + + result = service.register(id); + result = service.register(opts); + } + + { + let id: string; + let opts: Consul.Agent.Service.DeregisterOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + service.deregister(id, callback); + service.deregister(opts, callback); + + result = service.deregister(id); + result = service.deregister(opts); + } + + { + let opts: Consul.Agent.Service.MaintenanceOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + service.maintenance(opts, callback); + + result = service.maintenance(opts); + } + } +} + +// Consul.Catalog +{ + let catalog: Consul.Catalog = consul.catalog; + + catalog = new CatalogStatic(consul); + consul = catalog.consul; + + { + let opts: Consul.Catalog.DatacentersOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + catalog.datacenters(opts, callback); + catalog.datacenters(callback); + + result = catalog.datacenters(opts); + result = catalog.datacenters(); + } + + { + let dc: string; + let opts: Consul.Catalog.NodesOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + catalog.nodes(dc, callback); + catalog.nodes(opts, callback); + catalog.nodes(callback); + + result = catalog.nodes(dc); + result = catalog.nodes(opts); + result = catalog.nodes(); + } + + { + let dc: string; + let opts: Consul.Catalog.ServicesOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + catalog.services(dc, callback); + catalog.services(opts, callback); + catalog.services(callback); + + result = catalog.services(dc); + result = catalog.services(opts); + result = catalog.services(); + } + + + // Consul.Catalog.Node + { + let node: Consul.Catalog.Node = consul.catalog.node; + + node = new CatalogNodeStatic(consul); + consul = node.consul; + + { + let dc: string; + let opts: Consul.Catalog.Node.ListOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + node.list(dc, callback); + node.list(opts, callback); + node.list(callback); + + result = node.list(dc); + result = node.list(opts); + result = node.list(); + } + + { + let nodeOption: string; + let opts: Consul.Catalog.Node.ServicesOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + node.services(nodeOption, callback); + node.services(opts, callback); + + result = node.services(nodeOption); + result = node.services(opts); + } + } + + // Consul.Catalog.Service + { + let service: Consul.Catalog.Service = consul.catalog.service; + + service = new CatalogServiceStatic(consul); + consul = service.consul; + + { + let dc: string; + let opts: Consul.Catalog.Service.ListOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + service.list(dc, callback); + service.list(opts, callback); + service.list(callback); + + result = service.list(dc); + result = service.list(opts); + result = service.list(); + } + + { + let serviceOption: string; + let opts: Consul.Catalog.Service.NodesOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + service.nodes(serviceOption, callback); + service.nodes(opts, callback); + + result = service.nodes(serviceOption); + result = service.nodes(opts); + } + } +} + +// Consul.Event +{ + let event: Consul.Event = consul.event; + + event = new EventStatic(consul); + consul = event.consul; + + { + let name: string; + let payload: string|Buffer; + let opts: Consul.Event.FireOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + event.fire(name, payload, callback); + event.fire(name, callback); + event.fire(opts, callback); + + result = event.fire(name, payload); + result = event.fire(name); + result = event.fire(opts); + } + + { + let name: string; + let opts: Consul.Event.ListOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + event.list(name, callback); + event.list(opts, callback); + event.list(callback); + + result = event.list(name); + result = event.list(opts); + result = event.list(); + } +} + +// Consul.Health +{ + let health: Consul.Health = consul.health; + + health = new HealthStatic(consul); + consul = health.consul; + + { + let node: string; + let opts: Consul.Health.NodeOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + health.node(name, callback); + health.node(opts, callback); + + result = health.node(name); + result = health.node(opts); + } + + { + let service: string; + let opts: Consul.Health.ChecksOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + health.checks(service, callback); + health.checks(opts, callback); + + result = health.checks(service); + result = health.checks(opts); + } + + { + let service: string; + let opts: Consul.Health.ServiceOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + health.service(service, callback); + health.service(opts, callback); + + result = health.service(service); + result = health.service(opts); + } + + { + let state: string; + let opts: Consul.Health.StateOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + health.state(state, callback); + health.state(opts, callback); + + result = health.state(state); + result = health.state(opts); + } +} + + +// Consul.Kv +{ + let kv: Consul.Kv = consul.kv; + + kv = new KvStatic(consul); + consul = kv.consul; + + { + let key: string; + let opts: Consul.Kv.GetOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + kv.get(key, callback); + kv.get(opts, callback); + + result = kv.get(key); + result = kv.get(opts); + } + + { + let key: string; + let opts: Consul.Kv.KeysOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + kv.keys(key, callback); + kv.keys(opts, callback); + kv.keys(callback); + + result = kv.keys(key); + result = kv.keys(opts); + result = kv.keys(); + } + + { + let key: string; + let value: string|Buffer; + let opts: Consul.Kv.SetOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + kv.set(key, value, opts, callback); + kv.set(key, value, callback); + kv.set(opts, callback); + + result = kv.set(key, value, opts); + result = kv.set(key, value); + result = kv.set(opts); + } + + { + let key: string; + let opts: Consul.Kv.DelOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + kv.del(key, callback); + kv.del(opts, callback); + + result = kv.del(key); + result = kv.del(opts); + + kv.delete(key, callback); + kv.delete(opts, callback); + + result = kv.delete(key); + result = kv.delete(opts); + } +} + + +// Consul.Lock +{ + let lock: Consul.Lock; + let opts: Consul.Lock.Options; + + lock = new LockStatic(consul, opts); + lock = consul.lock(opts); + consul = lock.consul; + + lock.acquire(); + + lock.release(); +} + + +// Consul.Session +{ + let session: Consul.Session = consul.session; + + session = new SessionStatic(consul); + consul = session.consul; + + { + let opts: Consul.Session.CreateOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + session.create(opts, callback); + session.create(callback); + + result = session.create(opts); + result = session.create(); + } + + { + let id: string; + let opts: Consul.Session.DestroyOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + session.destroy(id, callback); + session.destroy(opts, callback); + + result = session.destroy(id); + result = session.destroy(opts); + } + + { + let id: string; + let opts: Consul.Session.InfoOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + session.info(id, callback); + session.info(opts, callback); + + result = session.info(id); + result = session.info(opts); + + session.get(id, callback); + session.get(opts, callback); + + result = session.get(id); + result = session.get(opts); + } + + { + let node: string; + let opts: Consul.Session.NodeOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + session.node(node, callback); + session.node(opts, callback); + + result = session.node(node); + result = session.node(opts); + } + + { + let opts: Consul.Session.ListOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + session.list(opts, callback); + session.list(callback); + + result = session.list(opts); + result = session.list(); + } + + { + let id: string; + let opts: Consul.Session.RenewOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + session.renew(id, callback); + session.renew(opts, callback); + + result = session.renew(id); + result = session.renew(opts); + } +} + + +// Consul.Status +{ + let status: Consul.Status = consul.status; + + status = new StatusStatic(consul); + consul = status.consul; + + { + let opts: Consul.Status.LeaderOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + status.leader(opts, callback); + status.leader(callback); + + result = status.leader(opts); + result = status.leader(); + } + + { + let opts: Consul.Status.LeaderOptions; + let callback: Consul.Callback; + let result: Consul.Thenable; + + status.peers(opts, callback); + status.peers(callback); + + result = status.peers(opts); + result = status.peers(); + } +} + + +// Consul.Watch +{ + let watch: Consul.Watch; + let opts: Consul.Watch.Options; + + watch = new WatchStatic(consul, opts); + watch = consul.watch(opts); + consul = watch.consul; + + watch.isRunning(); + + watch.updateTime(); + + watch.end(); +} diff --git a/consul/consul.d.ts b/consul/consul.d.ts new file mode 100644 index 0000000000..4f46e6a5be --- /dev/null +++ b/consul/consul.d.ts @@ -0,0 +1,1034 @@ +// Type definitions for Consul v0.23.0 +// Project: https://github.com/silas/node-consul +// Definitions by: Ilya Mochalov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare module "consul" { + + import {IncomingMessage as HttpIncomingMessage} from "http"; + + namespace Consul { + + interface Thenable { + then(onFulfilled?: (value: T) => U | Thenable, onRejected?: (error: any) => U | Thenable): Thenable; + then(onFulfilled?: (value: T) => U | Thenable, onRejected?: (error: any) => void): Thenable; + catch(onRejected?: (error: any) => U | Thenable): Thenable; + } + + interface CommonOptions { + consistent?: boolean; + dc?: string; + stale?: boolean; + token?: string; + wait?: string; + wan?: boolean; + + ctx?: NodeJS.EventEmitter; + timeout?: number; + } + + interface Response extends HttpIncomingMessage { + body?: Object|string|Buffer; + } + + interface Callback { + (err?: Error, data?: TData, res?: Response): any; + } + + namespace Acl { + + interface CreateOptions extends CommonOptions { + name?: string; + type?: string; + rules?: string; + } + + interface UpdateOptions extends CommonOptions { + id: string; + name?: string; + type?: string; + rules?: string; + } + + interface DestroyOptions extends CommonOptions { + id: string; + } + + interface InfoOptions extends CommonOptions { + id: string; + } + + interface GetOptions extends InfoOptions {} + + interface CloneOptions extends CommonOptions { + id: string; + } + + interface ListOptions extends CommonOptions {} + } + + interface Acl { + consul: Consul; + + /** + * Creates a new token with policy + */ + create: { + (opts: Acl.CreateOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Acl.CreateOptions): Thenable; + }; + + /** + * Update the policy of a token + */ + update: { + (opts: Acl.UpdateOptions, callback: Callback): void; + (opts: Acl.UpdateOptions): Thenable; + } + + /** + * Destroys a given token + */ + destroy: { + (id: string, callback: Callback): void; + (opts: Acl.DestroyOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Acl.DestroyOptions): Thenable; + }; + + /** + * Queries the policy of a given token + */ + info: { + (id: string, callback: Callback): void; + (opts: Acl.InfoOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Acl.InfoOptions): Thenable; + }; + get: { + (id: string, callback: Callback): void; + (opts: Acl.GetOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Acl.GetOptions): Thenable; + }; + + /** + * Creates a new token by cloning an existing token + */ + clone: { + (id: string, callback: Callback): void; + (opts: Acl.CloneOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Acl.CloneOptions): Thenable; + }; + + /** + * Lists all the active tokens + */ + list: { + (opts: Acl.ListOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Acl.ListOptions): Thenable; + }; + } + + interface AclStatic { + new (consul: Consul): Acl; + } + + namespace Agent { + + namespace Check { + + interface ListOptions extends CommonOptions {} + + interface RegisterOptions extends CommonOptions { + name: string; + id?: string; + serviceid?: string; + http?: string; + script?: string; + interval?: string; + ttl?: string; + notes?: string; + status?: string; + } + + interface DeregisterOptions extends CommonOptions { + id: string; + } + + interface PassOptions extends CommonOptions { + id: string; + note?: string; + } + + interface WarnOptions extends CommonOptions { + id: string; + note?: string; + } + + interface FailOptions extends CommonOptions { + id: string; + note?: string; + } + } + + interface Check { + consul: Consul; + + /** + * Returns the checks the local agent is managing + */ + list: { + (opts: Check.ListOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Check.ListOptions): Thenable; + }; + + /** + * Registers a new local check + */ + register: { + (opts: Check.RegisterOptions, callback: Callback): void; + (opts: Check.RegisterOptions): Thenable; + }; + + /** + * Deregister a local check + */ + deregister: { + (id: string, callback: Callback): void; + (opts: Check.DeregisterOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Check.DeregisterOptions): Thenable; + }; + + /** + * Mark a local test as passing + */ + pass: { + (id: string, callback: Callback): void; + (opts: Check.PassOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Check.PassOptions): Thenable; + }; + + /** + * Mark a local test as warning + */ + warn: { + (id: string, callback: Callback): void; + (opts: Check.WarnOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Check.WarnOptions): Thenable; + }; + + /** + * Mark a local test as critical + */ + fail: { + (id: string, callback: Callback): void; + (opts: Check.FailOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Check.FailOptions): Thenable; + }; + } + + interface CheckStatic { + new (consul: Consul): Check; + } + + namespace Service { + + interface RegisterCheck { + http?: string; + script?: string; + interval?: string; + ttl?: string; + notes?: string; + status?: string; + } + + interface ListOptions extends CommonOptions {} + + interface RegisterOptions extends CommonOptions { + name: string; + id?: string; + tags?: string[]; + address?: string; + port?: number; + check?: RegisterCheck; + checks?: RegisterCheck[]; + } + + interface DeregisterOptions extends CommonOptions { + id: string; + } + + interface MaintenanceOptions extends CommonOptions { + id: string; + enable: boolean; + reason?: string; + } + } + + interface Service { + consul: Consul; + + /** + * Returns the services local agent is managing + */ + list: { + (opts: Service.ListOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Service.ListOptions): Thenable; + }; + + /** + * Registers a new local service + */ + register: { + (name: string, callback: Callback): void; + (opts: Service.RegisterOptions, callback: Callback): void; + (name: string): Thenable; + (opts: Service.RegisterOptions): Thenable; + }; + + /** + * Deregister a local service + */ + deregister: { + (id: string, callback: Callback): void; + (opts: Service.DeregisterOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Service.DeregisterOptions): Thenable; + }; + + /** + * Manages node maintenance mode + */ + maintenance: { + (opts: Service.MaintenanceOptions, callback: Callback): void; + (opts: Service.MaintenanceOptions): Thenable; + }; + } + + interface ServiceStatic { + new (consul: Consul): Service; + } + + interface ChecksOptions extends Check.ListOptions {} + + interface ServicesOptions extends Service.ListOptions {} + + interface MembersOptions extends CommonOptions { + wan?: boolean; + } + + interface SelfOptions extends CommonOptions {} + + interface MaintenanceOptions extends CommonOptions { + enable: boolean; + reason?: string; + } + + interface JoinOptions extends CommonOptions { + address: string; + wan?: boolean; + } + + interface ForceLeaveOptions extends CommonOptions { + node: string; + } + } + + interface Agent { + consul: Consul; + check: Agent.Check; + service: Agent.Service; + + /** + * Returns the checks the local agent is managing + */ + checks: { + (opts: Agent.ChecksOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Agent.ChecksOptions): Thenable; + }; + + /** + * Returns the services local agent is managing + */ + services: { + (opts: Agent.ServicesOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Agent.ServicesOptions): Thenable; + }; + + /** + * Returns the members as seen by the local consul agent + */ + members: { + (opts: Agent.MembersOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Agent.MembersOptions): Thenable; + }; + + /** + * Returns the local node configuration + */ + self: { + (opts: Agent.SelfOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Agent.SelfOptions): Thenable; + }; + + /** + * Manages node maintenance mode + */ + maintenance: { + (enable: boolean, callback: Callback): void; + (opts: Agent.MaintenanceOptions, callback: Callback): void; + (enable: boolean): Thenable; + (opts: Agent.MaintenanceOptions): Thenable; + }; + + /** + * Trigger local agent to join a node + */ + join: { + (address: string, callback: Callback): void; + (opts: Agent.JoinOptions, callback: Callback): void; + (address: string): Thenable; + (opts: Agent.JoinOptions): Thenable; + }; + + /** + * Force remove node + */ + forceLeave: { + (node: string, callback: Callback): void; + (opts: Agent.ForceLeaveOptions, callback: Callback): void; + (node: string): Thenable; + (opts: Agent.ForceLeaveOptions): Thenable; + }; + } + + interface AgentStatic { + new (consul: Consul): Agent; + + Check: Agent.CheckStatic; + Service: Agent.ServiceStatic; + } + + namespace Catalog { + + namespace Node { + + interface ListOptions extends CommonOptions { + dc?: string; + } + + interface ServicesOptions extends CommonOptions { + node: string; + } + } + + interface Node { + consul: Consul; + + /** + * Lists nodes in a given DC + */ + list: { + (dc: string, callback: Callback): void; + (opts: Node.ListOptions, callback: Callback): void; + (callback: Callback): void; + (dc?: string): Thenable; + (opts?: Node.ListOptions): Thenable; + }; + + /** + * Lists the services provided by a node + */ + services: { + (node: string, callback: Callback): void; + (opts: Node.ServicesOptions, callback: Callback): void; + (node: string): Thenable; + (opts: Node.ServicesOptions): Thenable; + }; + } + + interface NodeStatic { + new(consul: Consul): Node; + } + + namespace Service { + + interface ListOptions extends CommonOptions { + dc?: string; + } + + interface NodesOptions extends CommonOptions { + service: string; + dc?: string; + tag?: string; + } + } + + + + interface Service { + consul: Consul; + + /** + * Lists services in a given DC + */ + list: { + (dc: string, callback: Callback): void; + (opts: Service.ListOptions, callback: Callback): void; + (callback: Callback): void; + (dc?: string): Thenable; + (opts?: Service.ListOptions): Thenable; + }; + + /** + * Lists the nodes in a given service + */ + nodes: { + (service: string, callback: Callback): void; + (opts: Service.NodesOptions, callback: Callback): void; + (service: string): Thenable; + (opts: Service.NodesOptions): Thenable; + }; + } + + interface ServiceStatic { + new(consul: Consul): Service; + } + + interface DatacentersOptions extends CommonOptions {} + + interface NodesOptions extends Node.ListOptions {} + + interface ServicesOptions extends Service.ListOptions {} + } + + interface Catalog { + consul: Consul; + node: Catalog.Node; + service: Catalog.Service; + + /** + * Lists known datacenters + */ + datacenters: { + (opts: Catalog.DatacentersOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Catalog.DatacentersOptions): Thenable; + }; + + /** + * Lists nodes in a given DC + */ + nodes: { + (dc: string, callback: Callback): void; + (opts: Catalog.NodesOptions, callback: Callback): void; + (callback: Callback): void; + (dc?: string): Thenable; + (opts?: Catalog.NodesOptions): Thenable; + }; + + /** + * Lists services in a given DC + */ + services: { + (dc: string, callback: Callback): void; + (opts: Catalog.ServicesOptions, callback: Callback): void; + (callback: Callback): void; + (dc?: string): Thenable; + (opts?: Catalog.ServicesOptions): Thenable; + }; + } + + interface CatalogStatic { + new(consul: Consul): Catalog; + + Node: Catalog.NodeStatic; + Service: Catalog.ServiceStatic; + } + + namespace Event { + + interface FireOptions extends CommonOptions { + name: string; + payload: string|Buffer; + node?: string; + service?: string; + tag?: string; + } + + interface ListOptions extends CommonOptions { + name?: string; + } + } + + interface Event { + consul: Consul; + + /** + * Fires a new user event + */ + fire: { + (name: string, payload: string|Buffer, callback: Callback): void; + (name: string, callback: Callback): void; + (opts: Event.FireOptions, callback: Callback): void; + (name: string, payload: string|Buffer): Thenable; + (name: string): Thenable; + (opts: Event.FireOptions): Thenable; + }; + + /** + * Lists the most recent events an agent has seen + */ + list: { + (name: string, callback: Callback): void; + (opts: Event.ListOptions, callback: Callback): void; + (callback: Callback): void; + (name?: string): Thenable; + (opts?: Event.ListOptions): Thenable; + }; + } + + interface EventStatic { + new(consul: Consul): Event; + } + + namespace Health { + + interface NodeOptions extends CommonOptions { + node: string; + dc?: string; + } + + interface ChecksOptions extends CommonOptions { + service: string; + dc?: string; + } + + interface ServiceOptions extends CommonOptions { + service: string; + dc?: string; + tag?: string; + passing?: boolean; + } + + interface StateOptions extends CommonOptions { + state: string; + dc?: string; + } + } + + interface Health { + consul: Consul; + + /** + * Returns the health info of a node + */ + node: { + (node: string, callback: Callback): void; + (opts: Health.NodeOptions, callback: Callback): void; + (node: string): Thenable; + (opts: Health.NodeOptions): Thenable; + }; + + /** + * Returns the checks of a service + */ + checks: { + (service: string, callback: Callback): void; + (opts: Health.ChecksOptions, callback: Callback): void; + (service: string): Thenable; + (opts: Health.ChecksOptions): Thenable; + }; + + /** + * Returns the nodes and health info of a service + */ + service: { + (service: string, callback: Callback): void; + (opts: Health.ServiceOptions, callback: Callback): void; + (service: string): Thenable; + (opts: Health.ServiceOptions): Thenable; + }; + + /** + * Returns the checks in a given state + */ + state: { + (state: string, callback: Callback): void; + (opts: Health.StateOptions, callback: Callback): void; + (state: string): Thenable; + (opts: Health.StateOptions): Thenable; + }; + } + + interface HealthStatic { + new(consul: Consul): Health; + } + + namespace Kv { + + interface GetOptions extends CommonOptions { + key: string; + dc?: string; + recurse?: boolean; + index?: string; + wait?: string; + raw?: boolean; + buffer?: boolean; + } + + interface KeysOptions extends CommonOptions { + key: string; + dc?: string; + separator?: string; + } + + interface SetOptions extends CommonOptions { + key: string; + value: string|Buffer; + dc?: string; + flags?: number; + cas?: string; + acquire?: string; + release?: string; + } + + interface DelOptions extends CommonOptions { + key: string; + dc?: string; + recurse?: boolean; + cas?: string; + } + + interface DeleteOptions extends DelOptions {} + } + + interface Kv { + consul: Consul; + + /** + * Get + */ + get: { + (key: string, callback: Callback): void; + (opts: Kv.GetOptions, callback: Callback): void; + (key: string): Thenable; + (opts: Kv.GetOptions): Thenable; + }; + + /** + * Keys + */ + keys: { + (key: string, callback: Callback): void; + (opts: Kv.KeysOptions, callback: Callback): void; + (callback: Callback): void; + (key?: string): Thenable; + (opts?: Kv.KeysOptions): Thenable; + }; + + /** + * Set + */ + set: { + (key: string, value: string|Buffer, opts: Kv.SetOptions, callback: Callback): void; + (key: string, value: string|Buffer, callback: Callback): void; + (opts: Kv.SetOptions, callback: Callback): void; + (key: string, value: string|Buffer, opts: Kv.SetOptions): Thenable; + (key: string, value: string|Buffer): Thenable; + (opts: Kv.SetOptions): Thenable; + }; + + /** + * Delete + */ + del: { + (key: string, callback: Callback): void; + (opts: Kv.DelOptions, callback: Callback): void; + (key: string): Thenable; + (opts: Kv.DelOptions): Thenable; + }; + delete: { + (key: string, callback: Callback): void; + (opts: Kv.DeleteOptions, callback: Callback): void; + (key: string): Thenable; + (opts: Kv.DeleteOptions): Thenable; + }; + } + + interface KvStatic { + new(consul: Consul): Kv; + } + + namespace Lock { + + interface Options { + key: string; + session?: Object|string; + value?: string|Buffer; + lockwaittime?: string; + lockretrytime?: string; + } + } + + interface Lock extends NodeJS.EventEmitter { + consul: Consul; + + /** + * Acquire lock + */ + acquire(): void; + + /** + * Release lock + */ + release(): void; + } + + interface LockStatic { + new(consul: Consul, opts: Lock.Options): Lock; + } + + namespace Session { + + interface CreateOptions extends CommonOptions { + dc?: string; + lockdelay?: string; + name?: string; + node?: string; + checks?: string[]; + behavior?: string; + ttl?: string; + } + + interface DestroyOptions extends CommonOptions { + id: string; + dc?: string; + } + + interface InfoOptions extends CommonOptions { + id: string; + dc?: string; + } + + interface GetOptions extends InfoOptions {} + + interface NodeOptions extends CommonOptions { + node: string; + dc?: string; + } + + interface ListOptions extends CommonOptions { + dc?: string; + } + + interface RenewOptions extends CommonOptions { + id: string; + dc?: string; + } + } + + + interface Session { + consul: Consul; + + /** + * Creates a new session + */ + create: { + (opts: Session.CreateOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Session.CreateOptions): Thenable; + }; + + /** + * Destroys a given session + */ + destroy: { + (id: string, callback: Callback): void; + (opts: Session.DestroyOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Session.DestroyOptions): Thenable; + }; + + /** + * Queries a given session + */ + info: { + (id: string, callback: Callback): void; + (opts: Session.InfoOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Session.InfoOptions): Thenable; + }; + get: { + (id: string, callback: Callback): void; + (opts: Session.GetOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Session.GetOptions): Thenable; + }; + + /** + * Lists sessions belonging to a node + */ + node: { + (node: string, callback: Callback): void; + (opts: Session.NodeOptions, callback: Callback): void; + (node: string): Thenable; + (opts: Session.NodeOptions): Thenable; + }; + + /** + * Lists all the active sessions + */ + list: { + (opts: Session.ListOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Session.ListOptions): Thenable; + }; + + /** + * Renews a TTL-based session + */ + renew: { + (id: string, callback: Callback): void; + (opts: Session.RenewOptions, callback: Callback): void; + (id: string): Thenable; + (opts: Session.RenewOptions): Thenable; + }; + } + + interface SessionStatic { + new(consul: Consul): Session; + } + + namespace Status { + + interface LeaderOptions extends CommonOptions {} + + interface PeersOptions extends CommonOptions {} + } + + interface Status { + consul: Consul; + + /** + * Returns the current Raft leader. + */ + leader: { + (opts: Status.LeaderOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Status.LeaderOptions): Thenable; + }; + + /** + * Returns the current Raft peer set + */ + peers: { + (opts: Status.PeersOptions, callback: Callback): void; + (callback: Callback): void; + (opts?: Status.PeersOptions): Thenable; + }; + } + + interface StatusStatic { + new(consul: Consul): Status; + } + + namespace Watch { + + interface Options { + method: Function; + options?: CommonOptions; + } + } + + interface Watch extends NodeJS.EventEmitter { + consul: Consul; + + /** + * Is running + */ + isRunning(): boolean; + + /** + * Update time + */ + updateTime(): number; + + /** + * End watch + */ + end(): void; + } + + interface WatchStatic { + new(consul: Consul, opts: Watch.Options): Watch; + } + + interface ConsulOptions { + host?: string; + port?: string; + secure?: boolean; + ca?: string[]; + defaults?: CommonOptions; + promisify?: boolean|Function; + } + + interface Consul { + acl: Acl; + agent: Agent; + catalog: Catalog; + event: Event; + health: Health; + kv: Kv; + session: Session; + status: Status; + + /** + * Lock helper. + */ + lock(opts: Lock.Options): Lock; + + /** + * Watch helper. + */ + watch(opts: Watch.Options): Watch; + } + + interface ConsulStatic { + (opts?: ConsulOptions): Consul; + new (opts?: ConsulOptions): Consul; + + Acl: AclStatic; + Agent: AgentStatic; + Catalog: CatalogStatic; + Event: EventStatic; + Health: HealthStatic; + Kv: KvStatic; + Lock: LockStatic; + Session: SessionStatic; + Status: StatusStatic; + Watch: WatchStatic; + } + } + + let Consul: Consul.ConsulStatic; + + export = Consul; +} diff --git a/content-type/content-type.d.ts b/content-type/content-type.d.ts index 71b8152da6..6e901e7f86 100644 --- a/content-type/content-type.d.ts +++ b/content-type/content-type.d.ts @@ -1,9 +1,9 @@ // Type definitions for content-type v0.0.1 // Project: https://github.com/deoxxa/content-type // Definitions by: Pine Mizune -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module ContentType { +declare namespace ContentType { interface MediaType { type: string; q?: number; @@ -29,4 +29,4 @@ declare module ContentType { declare module "content-type" { var x: ContentType.MediaTypeStatic; export = x; -} \ No newline at end of file +} diff --git a/contextjs/contextjs.d.ts b/contextjs/contextjs.d.ts index 7d1ebb21ed..3ae8c54502 100644 --- a/contextjs/contextjs.d.ts +++ b/contextjs/contextjs.d.ts @@ -1,7 +1,7 @@ // Type definitions for contextjs 2.1.1 // Project: https://github.com/jakiestfu/Context.js // Definitions by: Kern Handa -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "contextjs" { interface MenuObject { @@ -22,7 +22,7 @@ declare module "contextjs" { preventDoubleContext?: boolean; } - module context { + namespace context { function init(settings?: InitSettings): void; function destroy(selector: any): void; function attach(selector: any, menuObjects: MenuObject[]): void; diff --git a/convert-source-map/convert-source-map.d.ts b/convert-source-map/convert-source-map.d.ts index b53dfd69eb..76b31445fb 100644 --- a/convert-source-map/convert-source-map.d.ts +++ b/convert-source-map/convert-source-map.d.ts @@ -1,7 +1,7 @@ // Type definitions for convert-source-map // Project: https://github.com/thlorenz/convert-source-map // Definitions by: Andrew Gaspar -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "convert-source-map" { export interface SourceMapConverter { diff --git a/convict/convict.d.ts b/convict/convict.d.ts index 14ecae8f8d..05323de269 100644 --- a/convict/convict.d.ts +++ b/convict/convict.d.ts @@ -1,10 +1,10 @@ // Type definitions for node-convict v0.6.0 // Project: https://github.com/mozilla/node-convict // Definitions by: Wim Looman -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "convict" { - module convict { + namespace convict { interface Format { name?: string; @@ -24,7 +24,7 @@ declare module "convict" { * - an array of enumerated values, e.g. ["production", "development", "testing"] * - built-in JavaScript type, i.e. Object, Array, String, Number, Boolean * - or if omitted, the Object.prototype.toString.call of the default value - * + * * The docs also state that any function that validates is ok too */ format?: string | Array | Function; @@ -52,13 +52,13 @@ declare module "convict" { * @returns {Object} A {JSON} compliant {Object} */ getSchema() : Object; - + /** * Exports all the properties (that is the keys and their current values) as a JSON string. * @returns {String} a string representing this object */ toString() : string; - + /** * Exports the schema as a JSON string. * @returns {String} a string representing the schema of this {Config} diff --git a/cookie-parser/cookie-parser.d.ts b/cookie-parser/cookie-parser.d.ts index dd18bdc235..b2ecb55613 100644 --- a/cookie-parser/cookie-parser.d.ts +++ b/cookie-parser/cookie-parser.d.ts @@ -1,7 +1,7 @@ // Type definitions for cookie-parser v1.3.4 // Project: https://github.com/expressjs/cookie-parser // Definitions by: Santi Albo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/cookie-session/cookie-session-tests.ts b/cookie-session/cookie-session-tests.ts new file mode 100644 index 0000000000..1bd6694c5b --- /dev/null +++ b/cookie-session/cookie-session-tests.ts @@ -0,0 +1,39 @@ +/// + +import express = require('express'); +import cookieSession = require('cookie-session'); + +var app = express() + +app.set('trust proxy', 1) // trust first proxy + +app.use(cookieSession({ + name: 'session', + keys: ['key1', 'key2'] +})) + +app.use(function (req, res, next) { + // Update views + req.session['views'] = (req.session['views'] || 0) + 1 + + // Write response + res.end(req.session['views'] + ' views') +}) + +app.listen(3000); + + +var app2 = express() + +app2.set('trust proxy', 1) // trust first proxy + +app2.use(cookieSession({ + name: 'session', + keys: ['key1', 'key2'] +})) + +// This allows you to set req.session.maxAge to let certain sessions +// have a different value than the default. +app2.use(function (req, res, next) { + req.sessionOptions.maxAge = req.session['maxAge'] || req.sessionOptions.maxAge +}); \ No newline at end of file diff --git a/cookie-session/cookie-session.d.ts b/cookie-session/cookie-session.d.ts new file mode 100644 index 0000000000..812594a299 --- /dev/null +++ b/cookie-session/cookie-session.d.ts @@ -0,0 +1,113 @@ +// Type definitions for cookie-session v2.0.0-alpha.1 +// Project: https://github.com/expressjs/cookie-session +// Definitions by: Borislav Zhivkov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace Express { + interface Request extends CookieSessionInterfaces.CookieSessionRequest {} +} + +declare namespace CookieSessionInterfaces { + interface CookieSessionOptions { + /** + * The name of the cookie to set, defaults to session. + */ + name: string; + + /** + * The list of keys to use to sign & verify cookie values. Set cookies are always signed with keys[0], while the other keys are valid for verification, allowing for key rotation. + */ + keys?: Array; + + /** + * A string which will be used as single key if keys is not provided. + */ + secret?: string; + + /** + * a number representing the milliseconds from Date.now() for expiry. + */ + maxAge?: number; + + /** + * a Date object indicating the cookie's expiration date (expires at the end of session by default). + */ + expires?: Date; + + /** + * a string indicating the path of the cookie (/ by default). + */ + path?: string; + + /** + * a string indicating the domain of the cookie (no default). + */ + domain?: string; + + /** + * a boolean indicating whether the cookie is only to be sent over HTTPS (false by default for HTTP, true by default for HTTPS). + */ + secure?: boolean; + + /** + * a boolean indicating whether the cookie is only to be sent over HTTPS (use this if you handle SSL not in your node process). + */ + secureProxy?: boolean; + + /** + * a boolean indicating whether the cookie is only to be sent over HTTP(S), and not made available to client JavaScript (true by default). + */ + httpOnly?: boolean; + + /** + * a boolean indicating whether the cookie is to be signed (true by default). If this is true, another cookie of the same name with the .sig suffix appended will also be sent, with a 27-byte url-safe base64 SHA1 value representing the hash of cookie-name=cookie-value against the + * first Keygrip key. This signature key is used to detect tampering the next time a cookie is received. + */ + signed?: boolean; + + /** + * a boolean indicating whether to overwrite previously set cookies of the same name (true by default). If this is true, all cookies set during the same request with the same name (regardless of path or domain) are filtered out of the Set-Cookie header when setting this cookie. + */ + overwrite?: boolean; + } + + interface CookieSessionObject { + /** + * Is true if the session has been changed during the request. + */ + isChanged: boolean; + + /** + * Is true if the session is new. + */ + isNew: boolean; + + /** + * Determine if the session has been populated with data or is empty. + */ + isPopulated: boolean; + + [propertyName: string]: any; + } + + interface CookieSessionRequest { + /** + * Represents the session for the given request. + */ + session: CookieSessionObject; + + /** + * Represents the session options for the current request. These options are a shallow clone of what was provided at middleware construction and can be altered to change cookie setting behavior on a per-request basis. + */ + sessionOptions: CookieSessionOptions; + } +} + +declare module "cookie-session" { + import express = require('express'); + + function cookieSession(options?: CookieSessionInterfaces.CookieSessionOptions): express.RequestHandler; + export = cookieSession; +} diff --git a/cookie/cookie.d.ts b/cookie/cookie.d.ts index c6cb17213a..950796fa22 100644 --- a/cookie/cookie.d.ts +++ b/cookie/cookie.d.ts @@ -1,7 +1,7 @@ // Type definitions for cookie v0.1.2 // Project: https://github.com/jshttp/cookie // Definitions by: Pine Mizune -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface CookieSerializeOptions { encode?: (val: string) => string; diff --git a/cookiejs/cookiejs.d.ts b/cookiejs/cookiejs.d.ts index bdd71f0219..1bc4d2b5ee 100644 --- a/cookiejs/cookiejs.d.ts +++ b/cookiejs/cookiejs.d.ts @@ -1,12 +1,12 @@ // Type definitions for cookie.js v1.0.0 // Project: https://github.com/js-coder/cookie.js // Definitions by: Boltmade -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function cookie(key : string, fallback?: string) : string; declare function cookie(keys : string[], fallback?: string) : string; -declare module cookie { +declare namespace cookie { export function set(key : string, value : string, options? : any) : void; export function set(obj : any, options? : any) : void; export function remove(key : string) : void; diff --git a/cookies/cookies.d.ts b/cookies/cookies.d.ts index 5cc5f698a3..23621ee2ae 100644 --- a/cookies/cookies.d.ts +++ b/cookies/cookies.d.ts @@ -8,7 +8,7 @@ declare module "cookies" { import * as http from "http" - module cookies { + namespace cookies { interface ICookies { /** * This extracts the cookie with the given name from the @@ -22,16 +22,16 @@ declare module "cookies" { * its value is returned. Otherwise, nothing is returned. */ get(name: string, opts: IOptions): string; - + /** - * This sets the given cookie in the response and returns - * the current context to allow chaining.If the value is omitted, + * This sets the given cookie in the response and returns + * the current context to allow chaining.If the value is omitted, * an outbound header with an expired date is used to delete the cookie. */ set(name: string, value: string): ICookies; /** - * This sets the given cookie in the response and returns - * the current context to allow chaining.If the value is omitted, + * This sets the given cookie in the response and returns + * the current context to allow chaining.If the value is omitted, * an outbound header with an expired date is used to delete the cookie. */ set(name: string, value: string, opts: IOptions): ICookies; @@ -97,4 +97,4 @@ declare module "cookies" { const cookies: CookiesStatic; export = cookies -} \ No newline at end of file +} diff --git a/cordova-ionic/cordova-ionic.d.ts b/cordova-ionic/cordova-ionic.d.ts index 5f0adee3ec..c9a67bf9c7 100644 --- a/cordova-ionic/cordova-ionic.d.ts +++ b/cordova-ionic/cordova-ionic.d.ts @@ -1,7 +1,7 @@ // Type definitions for Ionic Cordova plugins // Project: https://github.com/driftyco // Definitions by: Hendrik Maus -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/cordova-ionic/plugins/keyboard.d.ts b/cordova-ionic/plugins/keyboard.d.ts index 7a1cd38e10..409811f8d2 100644 --- a/cordova-ionic/plugins/keyboard.d.ts +++ b/cordova-ionic/plugins/keyboard.d.ts @@ -1,9 +1,9 @@ // Type definitions for Cordova Keyboard plugin // Project: https://github.com/driftyco/ionic-plugins-keyboard // Definitions by: Hendrik Maus -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Ionic { +declare namespace Ionic { interface Keyboard { /** @@ -17,11 +17,11 @@ declare module Ionic { * Close the keyboard if it is open. */ close(): void; - + /** * Force keyboard to be shown on Android. * This typically helps if autofocus on a text element does not pop up the keyboard automatically - * + * * Supported Platforms: Android, Blackberry 10 */ show(): void; diff --git a/cordova-plugin-app-version/cordova-plugin-app-version.d.ts b/cordova-plugin-app-version/cordova-plugin-app-version.d.ts index 8f4210eb81..6f36248f94 100644 --- a/cordova-plugin-app-version/cordova-plugin-app-version.d.ts +++ b/cordova-plugin-app-version/cordova-plugin-app-version.d.ts @@ -1,7 +1,7 @@ // Type definitions for cordova-plugin-app-version v0.1.7 // Project: https://github.com/whiteoctober/cordova-plugin-app-version // Definitions by: Markus Wagner -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// diff --git a/cordova-plugin-email-composer/cordova-plugin-email-composer.d.ts b/cordova-plugin-email-composer/cordova-plugin-email-composer.d.ts index f071d6cfa6..74221b2607 100644 --- a/cordova-plugin-email-composer/cordova-plugin-email-composer.d.ts +++ b/cordova-plugin-email-composer/cordova-plugin-email-composer.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Email Composer plugin // Project: https://github.com/katzer/cordova-plugin-email-composer // Definitions by: Dave Taylor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * The plugin provides access to the standard interface that manages the diff --git a/cordova-plugin-ibeacon/cordova-plugin-ibeacon.d.ts b/cordova-plugin-ibeacon/cordova-plugin-ibeacon.d.ts index 8f1f6af1a6..537ae00071 100644 --- a/cordova-plugin-ibeacon/cordova-plugin-ibeacon.d.ts +++ b/cordova-plugin-ibeacon/cordova-plugin-ibeacon.d.ts @@ -1,7 +1,7 @@ // Type definitions for cordova-plugin-ibeacon v3.3.0 // Project: https://github.com/petermetz/cordova-plugin-ibeacon // Definitions by: Markus Wagner -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -9,7 +9,7 @@ interface CordovaPlugins { locationManager: BeaconPlugin.LocationManager; } -declare module BeaconPlugin { +declare namespace BeaconPlugin { /** * Beacon Plugin. */ diff --git a/cordova-plugin-insomnia/cordova-plugin-insomnia.d.ts b/cordova-plugin-insomnia/cordova-plugin-insomnia.d.ts index c7f567a566..7b37c12001 100644 --- a/cordova-plugin-insomnia/cordova-plugin-insomnia.d.ts +++ b/cordova-plugin-insomnia/cordova-plugin-insomnia.d.ts @@ -1,16 +1,16 @@ // Type definitions for Insomnia-PhoneGap-Plugin v4.0.1 // Project: https://github.com/EddyVerbruggen/Insomnia-PhoneGap-Plugin/ // Definitions by: Markus Wagner -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Plugins { insomnia: InsomniaPlugin.Insomnia; } -declare module InsomniaPlugin { +declare namespace InsomniaPlugin { export interface Insomnia { - + /** * Prevent the screen of the mobile device from falling asleep. */ @@ -21,4 +21,4 @@ declare module InsomniaPlugin { */ allowSleepAgain(success?: () => any, fail?: () => any): void; } -} \ No newline at end of file +} diff --git a/cordova-plugin-mapsforge/cordova-plugin-mapsforge.d.ts b/cordova-plugin-mapsforge/cordova-plugin-mapsforge.d.ts index 6314a09fb8..e4c5d02eee 100644 --- a/cordova-plugin-mapsforge/cordova-plugin-mapsforge.d.ts +++ b/cordova-plugin-mapsforge/cordova-plugin-mapsforge.d.ts @@ -1,7 +1,7 @@ // Type definitions for cordova-plugin-mapsforge // Project: https://github.com/afsuarez/mapsforge-cordova-plugin // Definitions by: rafw87 -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Window { mapsforge: MapsforgePlugin; diff --git a/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts b/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts new file mode 100644 index 0000000000..8bdb7f1427 --- /dev/null +++ b/cordova-plugin-ms-adal/cordova-plugin-ms-adal-tests.ts @@ -0,0 +1,47 @@ +/// + +function test_cordova_plugin_ms_adal() { + + var testConfiguration = { + authority: 'https://login.microsoftonline.com/testtenant.onmicrosoft.com', + resourceUrl: 'https://graph.windows.net/', + clientId: '12345678-1234-1234-1234-123456789abc', + redirectUrl: 'http://app.testtenant.onmicrosoft.com' + }; + + // create AuthenticationContext + Microsoft.ADAL.AuthenticationContext.createAsync(testConfiguration.authority) + .then((context) => { + + context.tokenCache.readItems().then((cacheItems) => { + if (cacheItems.length >= 1) { + var testUserId: string; + testUserId = cacheItems[0].userInfo.userId; + + context.acquireTokenSilentAsync(testConfiguration.resourceUrl, testConfiguration.clientId, testUserId).then((authResult) => { + console.log("Silently acquired token successfully"); + }, (err) => { + console.log("Failed to acquire token silently " + JSON.stringify(err)); + }); + } + else { + + context.acquireTokenAsync(testConfiguration.resourceUrl, testConfiguration.clientId, testConfiguration.redirectUrl) + .then((authResult) => { + console.log("Acquired token successfully"); + }, (err) => { + console.log("Failed to acquire token " + JSON.stringify(err)); + }); + } + }); + + // clear TokenCache + context.tokenCache.clear(); + + }, (message) => { + console.log(message); + }); + + +} + diff --git a/cordova-plugin-ms-adal/cordova-plugin-ms-adal.d.ts b/cordova-plugin-ms-adal/cordova-plugin-ms-adal.d.ts new file mode 100644 index 0000000000..407de6347a --- /dev/null +++ b/cordova-plugin-ms-adal/cordova-plugin-ms-adal.d.ts @@ -0,0 +1,161 @@ +// Type definitions for Active Directory Authentication Library plugin for Apache Cordova +// Project: https://github.com/AzureAD/azure-activedirectory-library-for-cordova +// Definitions by: Kai Walter +// Definitions: https://github.com/KaiWalter/DefinitelyTyped + +declare namespace Microsoft { + + namespace ADAL { + + interface UserInfo { + displayableId: string, + userId: string, + familyName: string, + givenName: string, + identityProvider: string, + passwordChangeUrl: string, + passwordExpiresOn: Date, + uniqueId: string, + } + + interface TokenCacheItem { + accessToken: string, + authority: string, + clientId: string, + displayableId: string, + expiresOn: Date, + isMultipleResourceRefreshToken: boolean, + resource: string, + tenantId: string, + userInfo: UserInfo + } + + interface Promise { + then(doneCallBack: () => any, failCallBack?: (message: string) => any):any; + } + + interface PromiseTokenCacheItems { + then(doneCallBack: (tokenCacheItems: TokenCacheItem[]) => any, failCallBack?: (message: string) => any):any; + } + + class TokenCache { + contextAuthority: string + + /** + * Clears the cache by deleting all the items. + * + * @returns {Promise} Promise either fulfilled when operation is completed or rejected with error. + */ + clear(): Promise; + + /** + * Gets all cached items. + * + * @returns {Promise} Promise either fulfilled with array of cached items or rejected with error. + */ + readItems(): PromiseTokenCacheItems; + + /** + * Deletes cached item. + * + * @param {TokenCacheItem} item Cached item to delete from cache + * + * @returns {Promise} Promise either fulfilled when operation is completed or rejected with error. + */ + deleteItem(item: TokenCacheItem): Promise; + } + + class AuthenticationResult { + accessToken: string; + accessTokenType: string; + expiresOn: Date; + idToken: string; + isMultipleResourceRefreshToken: boolean; + status: string; + statusCode: string; + tenantId: string; + userInfo: UserInfo; + + /** + * Creates authorization header for web requests. + * + * @returns {String} The authorization header. + */ + createAuthorizationHeader(): string; + } + + interface PromiseAuthenticationResult { + then(doneCallBack: (context: AuthenticationResult) => any, failCallBack?: (message: string) => any):any; + } + + interface PromiseAuthenticationContext { + then(doneCallBack: (context: AuthenticationContext) => any, failCallBack?: (message: string) => any):any; + } + + class AuthenticationContext { + authority: string; + validateAuthority: boolean; + tokenCache: TokenCache; + + /** + * Constructs context to use with known authority to get the token. It reuses existing context + * for this authority URL in native proxy or creates a new one if it doesn't exists. + * Corresponding native context will be created at first time when it will be needed. + * + * @param {String} authority Authority url to send code and token requests + * @param {Boolean} validateAuthority Validate authority before sending token request + * When context is being created syncronously using this constructor + * validateAuthority in native context will be disabled to prevent + * context initialization failure + * + * @returns {Object} Newly created authentication context. + */ + constructor(authority: string, validateAuthority?: boolean); + + /** + * Constructs context asynchronously to use with known authority to get the token. + * It reuses existing context for this authority URL in native proxy or creates a new one if it doesn't exists. + * + * @param {String} authority Authority url to send code and token requests + * @param {Boolean} validateAuthority Validate authority before sending token request. True by default + * + * @returns {Promise} Promise either fulfilled with newly created authentication context or rejected with error + */ + static createAsync(authority: string, validateAuthority?: boolean): PromiseAuthenticationContext; + + /** + * Acquires token using interactive flow if needed. It checks the cache to return existing result + * if not expired. It tries to use refresh token if available. If it fails to get token with + * refresh token, it will remove this refresh token from cache and start authentication. + * + * @param {String} resourceUrl Resource identifier + * @param {String} clientId Client (application) identifier + * @param {String} redirectUrl Redirect url for this application + * @param {String} userId User identifier (optional) + * @param {String} extraQueryParameters + * Extra query parameters (optional) + * Parameters should be escaped before passing to this method (e.g. using 'encodeURI()') + * + * @returns {Promise} Promise either fulfilled with AuthenticationResult object or rejected with error + */ + acquireTokenAsync(resourceUrl: string, clientId: string, redirectUrl: string, userId?: string, extraQueryParameters?: string): PromiseAuthenticationResult; + + /** + * Acquires token WITHOUT using interactive flow. It checks the cache to return existing result + * if not expired. It tries to use refresh token if available. If it fails to get token without + * displaying UI it will fail. This method guarantees that no UI will be shown to user. + * + * @param {String} resourceUrl Resource identifier + * @param {String} clientId Client (application) identifier + * @param {String} userId User identifier (optional) + * + * @returns {Promise} Promise either fulfilled with AuthenticationResult object or rejected with error + */ + acquireTokenSilentAsync(resourceUrl: string, clientId: string, userId: string): PromiseAuthenticationResult; + + } + } +} + + + diff --git a/cordova-plugin-ouralabs/cordova-plugin-ouralabs.d.ts b/cordova-plugin-ouralabs/cordova-plugin-ouralabs.d.ts index 6596c7f0c5..0756b13c6e 100644 --- a/cordova-plugin-ouralabs/cordova-plugin-ouralabs.d.ts +++ b/cordova-plugin-ouralabs/cordova-plugin-ouralabs.d.ts @@ -1,9 +1,9 @@ // Type definitions for cordova-plugin-ouralabs 1.1.0 // Project: https://github.com/Justin-Credible/cordova-plugin-ouralabs // Definitions by: Justin Unterreiner -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module OuralabsPlugin { +declare namespace OuralabsPlugin { interface OuralabsStatic { @@ -23,7 +23,7 @@ declare module OuralabsPlugin { /** * Initialize the Ourlabs plugin with the given channel ID string value. * You can obtain your channel ID from the Ouralabs dashboard. - * + * * @param channelId The ID of the channel that logs will be written to. * @param successCallback The success callback for this asynchronous function. * @param failureCallback The failure callback for this asynchronous function; receives an error string. @@ -32,7 +32,7 @@ declare module OuralabsPlugin { /** * Used to ensure values logged via the plugin are also displayed in the browser's console. - * + * * @param enable True to enable logs to show up in the browser's console, false to disable. */ setLogToBrowserConsole(enable: boolean): void; @@ -40,14 +40,14 @@ declare module OuralabsPlugin { /** * Used to enable hooking of the browser's console logging functions (eg console.log, * console.error, etc) to ensure that these logs get logged via Ouralabs. - * + * * @param enable True to enable hooking of the console log functions, false to disable. */ setHookBrowserConsole(enable: boolean): void; /** * Allows setting of the three arbitrary attribute values that are stored with the device information. - * + * * @param [string] attribute1 - The (optional) attribute value to set for the first attribute. * @param [string] attribute2 - The (optional) attribute value to set for the first attribute. * @param [string] attribute3 - The (optional) attribute value to set for the first attribute. @@ -58,7 +58,7 @@ declare module OuralabsPlugin { /** * Logs a log message of level TRACE with the given information. - * + * * @param tag The tag for the log entry. * @param message The body of the log message. * @param metadata An optional object to be appended to the log message in JSON format. If the object cannot be serialized into JSON it will be flattened into key/value pairs. @@ -69,7 +69,7 @@ declare module OuralabsPlugin { /** * Logs a log message of level DEBUG with the given information. - * + * * @param tag The tag for the log entry. * @param message The body of the log message. * @param metadata An optional object to be appended to the log message in JSON format. If the object cannot be serialized into JSON it will be flattened into key/value pairs. @@ -80,7 +80,7 @@ declare module OuralabsPlugin { /** * Logs a log message of level INFO with the given information. - * + * * @param tag The tag for the log entry. * @param message The body of the log message. * @param metadata An optional object to be appended to the log message in JSON format. If the object cannot be serialized into JSON it will be flattened into key/value pairs. @@ -91,7 +91,7 @@ declare module OuralabsPlugin { /** * Logs a log message of level WARN with the given information. - * + * * @param tag The tag for the log entry. * @param message The body of the log message. * @param metadata An optional object to be appended to the log message in JSON format. If the object cannot be serialized into JSON it will be flattened into key/value pairs. @@ -102,7 +102,7 @@ declare module OuralabsPlugin { /** * Logs a log message of level ERROR with the given information. - * + * * @param tag The tag for the log entry. * @param message The body of the log message. * @param metadata An optional object to be appended to the log message in JSON format. If the object cannot be serialized into JSON it will be flattened into key/value pairs. @@ -113,7 +113,7 @@ declare module OuralabsPlugin { /** * Logs a log message of level FATAL with the given information. - * + * * @param tag The tag for the log entry. * @param message The body of the log message. * @param metadata An optional object to be appended to the log message in JSON format. If the object cannot be serialized into JSON it will be flattened into key/value pairs. @@ -124,7 +124,7 @@ declare module OuralabsPlugin { /** * Logs a message with the given information. - * + * * @param logLevel The level of the log; see OuralabsPlugin.LogLevels for possible values. * @param tag The tag for the log entry. * @param message The body of the log message. diff --git a/cordova-plugin-spinner/cordova-plugin-spinner.d.ts b/cordova-plugin-spinner/cordova-plugin-spinner.d.ts index 44ccdde453..7557fcbc6d 100644 --- a/cordova-plugin-spinner/cordova-plugin-spinner.d.ts +++ b/cordova-plugin-spinner/cordova-plugin-spinner.d.ts @@ -1,17 +1,17 @@ // Type definitions for cordova-plugin-spinner 1.0.0 // Project: https://github.com/Justin-Credible/cordova-plugin-spinner // Definitions by: Justin Unterreiner -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module SpinnerPlugin { +declare namespace SpinnerPlugin { interface SpinnerPluginStatic { /** * Blocks user input using an indeterminate spinner. - * + * * An optional label can be shown below the spinner. - * + * * @param labelText The optional value to show in a label. * @param successCallback The success callback for this asynchronous function. * @param failureCallback The failure callback for this asynchronous function; receives an error string. @@ -20,7 +20,7 @@ declare module SpinnerPlugin { /** * Allows user input by hiding the indeterminate spinner. - * + * * @param successCallback The success callback for this asynchronous function. * @param failureCallback The failure callback for this asynchronous function; receives an error string. */ diff --git a/cordova/cordova-tests.ts b/cordova/cordova-tests.ts index d0e6e68897..7e97305a25 100644 --- a/cordova/cordova-tests.ts +++ b/cordova/cordova-tests.ts @@ -192,7 +192,7 @@ file.upload('cdvfile://localhost/persistent/path/to/downloads/', console.error('Failed with exception ' + err.exception); } }, - { headers: null, httpMethod: "PUT" }, + { headers: {"X-Email": "user@mail.com", 'X-Token': "asdf3w234"}, httpMethod: "PUT" }, true); file.abort(); diff --git a/cordova/cordova.d.ts b/cordova/cordova.d.ts index fcef3b9fe7..299e2da4d9 100644 --- a/cordova/cordova.d.ts +++ b/cordova/cordova.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova // Project: http://cordova.apache.org // Definitions by: Microsoft Open Technologies Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/BatteryStatus.d.ts b/cordova/plugins/BatteryStatus.d.ts index 7343fab494..11250e41b7 100644 --- a/cordova/plugins/BatteryStatus.d.ts +++ b/cordova/plugins/BatteryStatus.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova BatteryStatus plugin. // Project: https://github.com/apache/cordova-plugin-battery-status // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/Camera.d.ts b/cordova/plugins/Camera.d.ts index 126b329ff6..cf20d16ae8 100644 --- a/cordova/plugins/Camera.d.ts +++ b/cordova/plugins/Camera.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Camera plugin. // Project: https://github.com/apache/cordova-plugin-camera // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/Contacts.d.ts b/cordova/plugins/Contacts.d.ts index 275e8f2fd0..d940fccd77 100644 --- a/cordova/plugins/Contacts.d.ts +++ b/cordova/plugins/Contacts.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Contacts plugin. // Project: https://github.com/apache/cordova-plugin-contacts // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/Device.d.ts b/cordova/plugins/Device.d.ts index 1abb37596e..b9aebbefd2 100644 --- a/cordova/plugins/Device.d.ts +++ b/cordova/plugins/Device.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Device plugin. // Project: https://github.com/apache/cordova-plugin-device // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/DeviceMotion.d.ts b/cordova/plugins/DeviceMotion.d.ts index a0e8908494..803579e66a 100644 --- a/cordova/plugins/DeviceMotion.d.ts +++ b/cordova/plugins/DeviceMotion.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Device Motion plugin. // Project: https://github.com/apache/cordova-plugin-device-motion // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/DeviceOrientation.d.ts b/cordova/plugins/DeviceOrientation.d.ts index effbc06dae..322d25ca9c 100644 --- a/cordova/plugins/DeviceOrientation.d.ts +++ b/cordova/plugins/DeviceOrientation.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Device Orientation plugin. // Project: https://github.com/apache/cordova-plugin-device-orientation // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/Dialogs.d.ts b/cordova/plugins/Dialogs.d.ts index 6d86c6228e..c6753bbfeb 100644 --- a/cordova/plugins/Dialogs.d.ts +++ b/cordova/plugins/Dialogs.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Dialogs plugin. // Project: https://github.com/apache/cordova-plugin-dialogs // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/FileSystem.d.ts b/cordova/plugins/FileSystem.d.ts index c658cd2b67..66a6014dea 100644 --- a/cordova/plugins/FileSystem.d.ts +++ b/cordova/plugins/FileSystem.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova File System plugin. // Project: https://github.com/apache/cordova-plugin-file // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/FileTransfer.d.ts b/cordova/plugins/FileTransfer.d.ts index 7cbde5322d..40829668aa 100644 --- a/cordova/plugins/FileTransfer.d.ts +++ b/cordova/plugins/FileTransfer.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova FileTransfer plugin. // Project: https://github.com/apache/cordova-plugin-file-transfer // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. @@ -93,7 +93,7 @@ interface FileUploadOptions { /** Whether to upload the data in chunked streaming mode. Defaults to true. */ chunkedMode?: boolean; /** A map of header name/header values. Use an array to specify more than one value. */ - headers?: Object[]; + headers?: Object; } /** Optional parameters for download method. */ diff --git a/cordova/plugins/Globalization.d.ts b/cordova/plugins/Globalization.d.ts index e6a36af908..911127357f 100644 --- a/cordova/plugins/Globalization.d.ts +++ b/cordova/plugins/Globalization.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Globalization plugin. // Project: https://github.com/apache/cordova-plugin-globalization // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/InAppBrowser.d.ts b/cordova/plugins/InAppBrowser.d.ts index 882a7cfb3b..2e52068e16 100644 --- a/cordova/plugins/InAppBrowser.d.ts +++ b/cordova/plugins/InAppBrowser.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova InAppBrowser plugin. // Project: https://github.com/apache/cordova-plugin-inappbrowser // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. @@ -107,9 +107,9 @@ interface InAppBrowser extends Window { * loaderror: event fires when the InAppBrowser encounters an error when loading a URL. * exit: event fires when the InAppBrowser window is closed. * @param callback the function that executes when the event fires. The function is - * passed an InAppBrowserEvent object as a parameter. + * passed an Event object as a parameter. */ - addEventListener(type: string, callback: (event: InAppBrowserEvent) => void): void; + addEventListener(type: string, callback: (event: Event) => void): void; // removeEventListener overloads /** * Removes a listener for an event from the InAppBrowser. @@ -163,9 +163,9 @@ interface InAppBrowser extends Window { * loaderror: event fires when the InAppBrowser encounters an error when loading a URL. * exit: event fires when the InAppBrowser window is closed. * @param callback the function that executes when the event fires. The function is - * passed an InAppBrowserEvent object as a parameter. + * passed an Event object as a parameter. */ - removeEventListener(type: string, callback: (event: InAppBrowserEvent) => void): void; + removeEventListener(type: string, callback: (event: Event) => void): void; /** Closes the InAppBrowser window. */ close(): void; /** diff --git a/cordova/plugins/Keyboard.d.ts b/cordova/plugins/Keyboard.d.ts index 414cd87fac..427a5425e5 100644 --- a/cordova/plugins/Keyboard.d.ts +++ b/cordova/plugins/Keyboard.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Keyboard plugin v0.1.2 // Project: https://github.com/apache/cordova-plugins/tree/master/keyboard // Definitions by: Dan Manastireanu -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * The Keyboard object provides some functions to customize the iOS keyboard. diff --git a/cordova/plugins/Media.d.ts b/cordova/plugins/Media.d.ts index b691013d8d..e99db687c7 100644 --- a/cordova/plugins/Media.d.ts +++ b/cordova/plugins/Media.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Media plugin. // Project: https://github.com/apache/cordova-plugin-media // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/MediaCapture.d.ts b/cordova/plugins/MediaCapture.d.ts index f4818b2641..b7c2c9abdf 100644 --- a/cordova/plugins/MediaCapture.d.ts +++ b/cordova/plugins/MediaCapture.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova MediaCapture plugin. // Project: https://github.com/apache/cordova-plugin-media-capture // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/NetworkInformation.d.ts b/cordova/plugins/NetworkInformation.d.ts index 1ba2ae9e03..4f80fdbb7e 100644 --- a/cordova/plugins/NetworkInformation.d.ts +++ b/cordova/plugins/NetworkInformation.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Network Information plugin. // Project: https://github.com/apache/cordova-plugin-network-information // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. @@ -45,7 +45,8 @@ interface Connection { * Connection.CELL * Connection.NONE */ - type: string + type: string; + addEventListener(type: string, listener: EventListenerOrEventListenerObject, useCapture?: boolean): void; } declare var Connection: { diff --git a/cordova/plugins/Push.d.ts b/cordova/plugins/Push.d.ts index 2415aa419c..631cb7f008 100644 --- a/cordova/plugins/Push.d.ts +++ b/cordova/plugins/Push.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Push plugin. // Project: https://github.com/phonegap-build/PushPlugin // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/Splashscreen.d.ts b/cordova/plugins/Splashscreen.d.ts index 1d0d8697aa..cf2f803762 100644 --- a/cordova/plugins/Splashscreen.d.ts +++ b/cordova/plugins/Splashscreen.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Splashscreen plugin. // Project: https://github.com/apache/cordova-plugin-splashscreen // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/StatusBar.d.ts b/cordova/plugins/StatusBar.d.ts index 599408e7b0..d5feeaf0ea 100644 --- a/cordova/plugins/StatusBar.d.ts +++ b/cordova/plugins/StatusBar.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova StatusBar plugin. // Project: https://github.com/apache/cordova-plugin-statusbar // Definitions by: Xinkai Chen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** * Global object StatusBar. diff --git a/cordova/plugins/Vibration.d.ts b/cordova/plugins/Vibration.d.ts index 65952f8e9b..a9371841ea 100644 --- a/cordova/plugins/Vibration.d.ts +++ b/cordova/plugins/Vibration.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova Vibration plugin. // Project: https://github.com/apache/cordova-plugin-vibration // Definitions by: Microsoft Open Technologies, Inc. , Louis Lagrange -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordova/plugins/WebSQL.d.ts b/cordova/plugins/WebSQL.d.ts index 0d180bf53e..f51f30cb6b 100644 --- a/cordova/plugins/WebSQL.d.ts +++ b/cordova/plugins/WebSQL.d.ts @@ -1,7 +1,7 @@ // Type definitions for Apache Cordova WebSQL plugin. // Project: https://github.com/MSOpenTech/cordova-plugin-websql // Definitions by: Microsoft Open Technologies, Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // // Copyright (c) Microsoft Open Technologies, Inc. // Licensed under the MIT license. diff --git a/cordovarduino/cordovarduino.d.ts b/cordovarduino/cordovarduino.d.ts index 0fccff2ad9..8ec58f2f27 100644 --- a/cordovarduino/cordovarduino.d.ts +++ b/cordovarduino/cordovarduino.d.ts @@ -1,9 +1,9 @@ // Type definitions for Cordovarduino plugin // Project: https://github.com/stereolux/cordovarduino // Definitions by: Hendrik Maus -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module Cordovardunio { +declare namespace Cordovardunio { interface Serial { /** * Request permission to interact with the serial port. diff --git a/core-decorators/core-decorators.d.ts b/core-decorators/core-decorators.d.ts index 0d1bba1864..30d3a6c170 100644 --- a/core-decorators/core-decorators.d.ts +++ b/core-decorators/core-decorators.d.ts @@ -1,7 +1,7 @@ // Type definitions for core-decorators.js v0.10 // Project: https://github.com/jayphelps/core-decorators.js // Definitions by: Qubo -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "core-decorators" { export interface ClassDecorator { diff --git a/core-js/core-js.d.ts b/core-js/core-js.d.ts index fa98da2486..16441df233 100644 --- a/core-js/core-js.d.ts +++ b/core-js/core-js.d.ts @@ -1,7 +1,7 @@ // Type definitions for core-js v0.9.7 // Project: https://github.com/zloirock/core-js/ // Definitions by: Ron Buckton -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* ***************************************************************************** Copyright (c) Microsoft Corporation. All rights reserved. @@ -835,7 +835,7 @@ declare var Promise: PromiseConstructor; // Modules: es6.reflect // ############################################################################################# -declare module Reflect { +declare namespace Reflect { function apply(target: Function, thisArgument: any, argumentsList: ArrayLike): any; function construct(target: Function, argumentsList: ArrayLike, newTarget?: any): any; function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean; @@ -1265,8 +1265,8 @@ interface String { declare function delay(msec: number): Promise; -declare module core { - module Reflect { +declare namespace core { + namespace Reflect { function apply(target: Function, thisArgument: any, argumentsList: ArrayLike): any; function construct(target: Function, argumentsList: ArrayLike): any; function defineProperty(target: any, propertyKey: PropertyKey, attributes: PropertyDescriptor): boolean; diff --git a/cors/cors.d.ts b/cors/cors.d.ts index 92fdd9634e..eaf917fb1f 100644 --- a/cors/cors.d.ts +++ b/cors/cors.d.ts @@ -1,14 +1,14 @@ // Type definitions for cors // Project: https://github.com/troygoode/node-cors/ // Definitions by: Mihhail Lapushkin -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module "cors" { import express = require('express'); - module e { + namespace e { interface CorsOptions { origin?: any; methods?: any; @@ -21,4 +21,4 @@ declare module "cors" { function e(options?: e.CorsOptions): express.RequestHandler; export = e; -} \ No newline at end of file +} diff --git a/couchbase/couchbase.d.ts b/couchbase/couchbase.d.ts index 6afd3a7819..351c9a806d 100644 --- a/couchbase/couchbase.d.ts +++ b/couchbase/couchbase.d.ts @@ -1,7 +1,7 @@ // Type definitions for Couchbase Node.js SDK 2.1.2 // Project: https://github.com/couchbase/couchnode // Definitions by: Marwan Aouida -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -16,130 +16,130 @@ declare module 'couchbase' { enum errors { /** Operation was successful. **/ success, - + /** Authentication should continue. **/ authContinue, - + /** Error authenticating. **/ authError, - + /** The passed incr/decr delta was invalid. **/ deltaBadVal, - + /** Object is too large to be stored on the cluster. **/ objectTooBig, - + /** Operation was successful. **/ serverBusy, - + /** Server is too busy to handle your request right now. **/ cLibInternal, - + /** An invalid arguement was passed. **/ cLinInvalidArgument, - + /** The server is out of memory. **/ cLibOutOfMemory, - + /** An invalid range was specified. **/ invalidRange, - + /** An unknown error occured within libcouchbase. **/ cLibGenericError, - + /** A temporary error occured. Try again. **/ temporaryError, - + /** The key already exists on the server. **/ keyAlreadyExists, - + /** The key does not exist on the server. **/ keyNotFound, - + /** Failed to open library. **/ failedToOpenLibrary, - + /** Failed to find expected symbol in library. **/ failedToFindSymbol, - + /** A network error occured. **/ networkError, - + /** Operations were performed on the incorrect server. **/ wrongServer, - + /** Operations were performed on the incorrect server. **/ notMyVBucket, - + /** The document was not stored. **/ notSorted, - + /** An unsupported operation was sent to the server. **/ notSupported, - + /** An unknown command was sent to the server. **/ unknownCommand, - + /** An unknown host was specified. **/ unknownHost, - + /** A protocol error occured. **/ protocolError, - + /** The operation timed out. **/ timedOut, - + /** Error connecting to the server. **/ connectError, - + /** The bucket you request was not found. **/ bukcketNotFound, - + /** libcouchbase is out of memory. **/ clientOutOfMemory, - + /** A temporary error occured in libcouchbase. Try again. **/ clientTemporaryError, - + /** A bad handle was passed. **/ badHandle, - + /** A server bug caused the operation to fail. **/ serverBug, - + /** The host format specified is invalid. **/ invalidHostFormat, - + /** Not enough nodes to meet the operations durability requirements. **/ notEnoughNodes, - + /** Duplicate items. **/ duplicateItems, - + /** Key mapping failed and could not match a server. **/ noMatchingServerForKey, - + /** A bad environment variable was specified. **/ badEnvironmentVariable, - + /** Couchnode is out of memory. **/ outOfMemory, - + /** Invalid arguements were passed. **/ invalidArguments, - + /** An error occured while trying to schedule the operation. **/ schedulingError, - + /** Not all operations completed successfully. **/ checkResults, - + /** A generic error occured in Couchnode. **/ genericError, - + /** The specified durability requirements could not be satisfied. **/ durabilityFailed, - + /** An error occured during a RESTful operation. **/ restError } @@ -213,30 +213,30 @@ declare module 'couchbase' { */ interface ClusterManager { /** - * - * @param name - * @param callback + * + * @param name + * @param callback */ createBucket(name: string, callback: Function): void; /** - * - * @param name - * @param opts - * @param callback + * + * @param name + * @param opts + * @param callback */ createBucket(name: string, opts: any, callback: Function): void; /** - * - * @param callback + * + * @param callback */ listBuckets(callback: Function): void; /** - * - * @param name - * @param callback + * + * @param name + * @param callback */ removeBucket(name: string, callback: Function): void; } @@ -349,7 +349,7 @@ declare module 'couchbase' { * A class for performing management operations against a bucket. This class should not be instantiated directly, but instead through the use of the Bucket#manager method instead. */ interface BucketManager { - + /** * Flushes the cluster, deleting all data stored within this bucket. Note that this method requires the Flush permission to be enabled on the bucket from the management console before it will work. * @param callback The callback function. @@ -358,7 +358,7 @@ declare module 'couchbase' { /** * Retrieves a specific design document from this bucket. - * @param name + * @param name * @param callback The callback function. */ getDesignDocument(name: string, callback: Function): void; @@ -371,27 +371,27 @@ declare module 'couchbase' { /** * Registers a design document to this bucket, failing if it already exists. - * @param name - * @param data + * @param name + * @param data * @param callback The callback function. - * @returns {} + * @returns {} */ insertDesignDocument(name: string, data: any, callback: Function): void; /** * Unregisters a design document from this bucket. - * @param name + * @param name * @param callback The callback function. - * @returns {} + * @returns {} */ removeDesignDocument(name: string, callback: Function): void; /** * Registers a design document to this bucket, overwriting any existing design document that was previously registered. - * @param name - * @param data + * @param name + * @param data * @param callback The callback function. - * @returns {} + * @returns {} */ upsertDesignDocument(name: string, data: any, callback: Function): void; } @@ -508,7 +508,7 @@ declare module 'couchbase' { stale(stale: ViewQuery.Update): ViewQuery; } - module ViewQuery { + namespace ViewQuery { /** * Enumeration for specifying on_error behaviour. */ @@ -576,7 +576,7 @@ declare module 'couchbase' { toString(): string; } - module N1qlQuery { + namespace N1qlQuery { /** * Enumeration for specifying N1QL consistency semantics. */ @@ -645,7 +645,7 @@ declare module 'couchbase' { /** * Specifies a bounding box to query the index for. This value must be an array of exactly 4 numbers which represents the left, top, right and bottom edges of the bounding box (in that order). - * @param bbox + * @param bbox */ bbox(bbox: number[]): SpatialQuery; @@ -674,7 +674,7 @@ declare module 'couchbase' { stale(stale: SpatialQuery.Update): SpatialQuery; } - module SpatialQuery { + namespace SpatialQuery { /** * Enumeration for specifying view update semantics. */ @@ -704,7 +704,7 @@ declare module 'couchbase' { * Returns the version of the Node.js library as a string. */ clientVersion: string; - + /** * Gets or sets the config throttling in milliseconds. The config throttling is the time that Bucket will wait before forcing a configuration refresh. If no refresh occurs before this period while a configuration is marked invalid, an update will be triggered. */ @@ -759,7 +759,7 @@ declare module 'couchbase' { append(key: any | Buffer, fragment: any, callback: Bucket.OpCallback): void; /** - * + * * @param key The target document key. * @param fragment The document's contents to append. * @param options The options object. @@ -775,9 +775,9 @@ declare module 'couchbase' { * @param callback The callback function. */ counter(key: any | Buffer, delta: number, callback: Bucket.OpCallback): void; - + /** - * + * * @param key The target document key. * @param delta The amount to add or subtract from the counter value. This value may be any non-zero integer. * @param options The options object. @@ -826,7 +826,7 @@ declare module 'couchbase' { * @param key The target document key. * @param options The options object. * @param callback The callback function. - * @returns {} + * @returns {} */ getAndLock(key: any, options: GetAndLockOptions, callback: Bucket.OpCallback): void; @@ -838,7 +838,7 @@ declare module 'couchbase' { * @param callback The callback function. */ getAndTouch(key: any | Buffer, expiry: number, options: any, callback: Bucket.OpCallback): void; - + /** * Retrieves a document and updates the expiry of the item at the same time. * @param key The target document key. @@ -876,7 +876,7 @@ declare module 'couchbase' { * @param callback The callback function. */ insert(key: any | Buffer, value: any, callback: Bucket.OpCallback): void; - + /** * Identical to Bucket#upsert but will fail if the document already exists. * @param key The target document key. @@ -1008,8 +1008,8 @@ declare module 'couchbase' { upsert(key: any | Buffer, value: any, options: UpsertOptions, callback: Bucket.OpCallback): void; } - module Bucket { - + namespace Bucket { + /** * his is used as a callback from executed queries. It is a shortcut method that automatically subscribes to the rows and error events of the Bucket.ViewQueryResponse. */ @@ -1066,7 +1066,7 @@ declare module 'couchbase' { */ interface DecoderFunction { /** - * + * * @param doc The data from Couchbase to decode. */ (doc: Bucket.TranscoderDoc): any @@ -1087,7 +1087,7 @@ declare module 'couchbase' { } - module N1qlQueryResponse { + namespace N1qlQueryResponse { /** * The meta-information available from a view query response. */ @@ -1114,7 +1114,7 @@ declare module 'couchbase' { } - module ViewQueryResponse { + namespace ViewQueryResponse { /** * The meta-information available from a view query response. */ @@ -1126,4 +1126,4 @@ declare module 'couchbase' { } } } -} \ No newline at end of file +} diff --git a/cradle/cradle.d.ts b/cradle/cradle.d.ts index 6434af26c5..22a2fcf58e 100644 --- a/cradle/cradle.d.ts +++ b/cradle/cradle.d.ts @@ -1,7 +1,7 @@ // Type definitions for cradle // Project: https://github.com/flatiron/cradle // Definitions by: Panu Horsmalahti -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "cradle" { interface Options { diff --git a/create-error/create-error.d.ts b/create-error/create-error.d.ts index 5db02e474a..a92048ee1d 100644 --- a/create-error/create-error.d.ts +++ b/create-error/create-error.d.ts @@ -1,7 +1,7 @@ // Type definitions for create-error.js 0.3.1 // Project: https://github.com/tgriesser/create-error // Definitions by: Tanguy Krotoff -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'create-error' { // FIXME See Global type references https://github.com/Microsoft/TypeScript/issues/983 diff --git a/createjs-lib/createjs-lib.d.ts b/createjs-lib/createjs-lib.d.ts index cfd77e20ac..db1cbeb9fe 100644 --- a/createjs-lib/createjs-lib.d.ts +++ b/createjs-lib/createjs-lib.d.ts @@ -1,7 +1,7 @@ // Type definitions for CreateJS // Project: http://www.createjs.com/ // Definitions by: Pedro Ferreira , Chris Smith , Satoru Kimura -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* Copyright (c) 2012 Pedro Ferreira @@ -16,7 +16,7 @@ // Library documentation : http://www.createjs.com/Docs/TweenJS/modules/TweenJS.html -declare module createjs { +declare namespace createjs { export class Event { constructor(type: string, bubbles: boolean, cancelable: boolean); diff --git a/createjs/createjs.d.ts b/createjs/createjs.d.ts index f064d07f61..26ebfa1262 100644 --- a/createjs/createjs.d.ts +++ b/createjs/createjs.d.ts @@ -1,7 +1,7 @@ // Type definitions for CreateJS // Project: http://www.createjs.com/ // Definitions by: Pedro Ferreira , Chris Smith , Satoru Kimura -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /* Copyright (c) 2012 Pedro Ferreira diff --git a/credential/credential.d.ts b/credential/credential.d.ts index d8497ec142..2934a090d4 100644 --- a/credential/credential.d.ts +++ b/credential/credential.d.ts @@ -8,7 +8,7 @@ declare module 'credential' { type HashCallback = (err: Error, hash: string) => void; type VerifyCallback = (err: Error, isValid: boolean) => void; - module credential { + namespace credential { function hash(password: string, callback: HashCallback): void; function verify(hash: string, password: string, callback: VerifyCallback): void; } diff --git a/cron/cron.d.ts b/cron/cron.d.ts index f91fedec8b..2eb532cf56 100644 --- a/cron/cron.d.ts +++ b/cron/cron.d.ts @@ -1,7 +1,7 @@ // Type definitions for cron 1.0.9 // Project: https://www.npmjs.com/package/cron // Definitions by: Hiroki Horiuchi -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "cron" { diff --git a/cross-storage/cross-storage-tests.ts b/cross-storage/cross-storage-tests.ts new file mode 100644 index 0000000000..9e6b4204ab --- /dev/null +++ b/cross-storage/cross-storage-tests.ts @@ -0,0 +1,24 @@ +/// + +import { CrossStorageClient, CrossStorageHub } from "cross-storage"; + + +const client = new CrossStorageClient("http://foo.com", { + timeout: 0, + frameId: "null" +}); + +client.onConnect() + .then(() => client.set("foo", "bar")) + .then(() => client.get("foo")) + .then(() => client.getKeys()) + .then((keys) => client.del.apply(client, keys)) + .then(() => client.clear()) + .then(() => client.close()); + +const hub = CrossStorageHub.init([ + { + origin: /foo/, + allow: ['get', 'set', 'del'] + } +]); \ No newline at end of file diff --git a/cross-storage/cross-storage.d.ts b/cross-storage/cross-storage.d.ts new file mode 100644 index 0000000000..05e1b0ac1f --- /dev/null +++ b/cross-storage/cross-storage.d.ts @@ -0,0 +1,86 @@ +// Type definitions for cross-storage v0.8.1 +// Project: https://github.com/zendesk/cross-storage +// Definitions by: Daniel Chao +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "cross-storage" { + interface CrossStorageClientOptions { + timeout?: number; + promise?: any; + frameId?: string; + } + + type CrossStorageMethod = "get" | "set" | "del" | "getKeys" | "clear"; + + interface SubDomain { + origin: RegExp; + allow: CrossStorageMethod[]; + } + + export class CrossStorageClient { + + /** + * Constructs a new cross storage client given the url to a hub. By default, an iframe is created + * within the document body that points to the url. It also accepts an options object, which may include + * a timeout, frameId, and promise. The timeout, in milliseconds, is applied to each request and defaults + * to 5000ms. The options object may also include a frameId, identifying an existing frame on which to + * install its listeners. If the promise key is supplied the constructor for a Promise, that Promise + * library will be used instead of the default window.Promise. + */ + constructor (hubUrl: string, opts: CrossStorageClientOptions) + + /** + * Returns a promise that is fulfilled when a connection has been established with the cross storage + * hub. Its use is required to avoid sending any requests prior to initialization being complete. + */ + onConnect (): Promise; + + /** + * Sets a key to the specified value, optionally accepting a ttl to passively expire the key after a + * number of milliseconds. Returns a promise that is fulfilled on success, or rejected if any errors + * setting the key occurred, or the request timed out. + */ + set (key: string, value: any, ttl?: number): Promise; + /** + * Accepts one or more keys for which to retrieve their values. Returns a promise that is settled on + * hub response or timeout. On success, it is fulfilled with the value of the key if only passed a + * single argument. Otherwise it's resolved with an array of values. On failure, it is rejected with + * the corresponding error message. + */ + get (key: string): Promise; + get (...keys: string[]): Promise; + + /** + * Accepts one or more keys for deletion. Returns a promise that is settled on hub response or timeout. + */ + del (...keys: string[]): Promise; + + /** + * Returns a promise that, when resolved, passes an array of keys currently in storage. + */ + getKeys(): Promise; + + /** + * Returns a promise that, when resolved, passes an array of keys currently in storage. + */ + clear(): Promise; + + /** + * Deletes the iframe and sets the connected state to false. The client can no longer be used after + * being invoked. + */ + close(): void; + } + + export class CrossStorageHub { + /** + * Accepts an array of objects with two keys: origin and allow. The value of origin is expected to be + * a RegExp, and allow, an array of strings. The cross storage hub is then initialized to accept requests + * from any of the matching origins, allowing access to the associated lists of methods. Methods may + * include any of: get, set, del, getKeys and clear. A 'ready' message is sent to the parent window once + * complete. + */ + static init (subdomains: SubDomain[]): void; + } + +} diff --git a/crossfilter/crossfilter.d.ts b/crossfilter/crossfilter.d.ts index 9e506aa43e..646d8abeb0 100644 --- a/crossfilter/crossfilter.d.ts +++ b/crossfilter/crossfilter.d.ts @@ -1,9 +1,9 @@ // Type definitions for CrossFilter // Project: https://github.com/square/crossfilter // Definitions by: Schmulik Raskin -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module CrossFilter { +declare namespace CrossFilter { export interface Selector { (value: T): any; diff --git a/crossroads/crossroads.d.ts b/crossroads/crossroads.d.ts index 84f69ea4c8..6c3e17a832 100644 --- a/crossroads/crossroads.d.ts +++ b/crossroads/crossroads.d.ts @@ -1,11 +1,11 @@ // Type definitions for Crossroads.js // Project: http://millermedeiros.github.io/crossroads.js/ // Definitions by: Diullei Gomes -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module CrossroadsJs { +declare namespace CrossroadsJs { export interface Route { matched: Signal; diff --git a/crypto-js/crypto-js.d.ts b/crypto-js/crypto-js.d.ts index 0f02514027..19ea3cd196 100644 --- a/crypto-js/crypto-js.d.ts +++ b/crypto-js/crypto-js.d.ts @@ -1,9 +1,9 @@ // Type definitions for crypto-js v3.1.3 // Project: https://github.com/evanvosberg/crypto-js // Definitions by: Michael Zabka -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module CryptoJS { +declare namespace CryptoJS { type Hash = (message: string, key?: string, ...options: any[]) => string; export interface Hashes { diff --git a/cryptojs/cryptojs.d.ts b/cryptojs/cryptojs.d.ts index 997306e4a3..ca7cfcc219 100644 --- a/cryptojs/cryptojs.d.ts +++ b/cryptojs/cryptojs.d.ts @@ -1,12 +1,12 @@ // Type definitions for CryptoJS 3.1.2 // Project: https://code.google.com/p/crypto-js/ // Definitions by: Gia Bảo @ Sân Đình -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var CryptoJS: CryptoJS.CryptoJSStatic; -declare module CryptoJS{ - module lib{ +declare namespace CryptoJS{ + namespace lib{ interface Base{ extend(overrides: Object): Object init(...args: any[]): void @@ -208,7 +208,7 @@ declare module CryptoJS{ } } - module enc{ + namespace enc{ interface IEncoder{ stringify(wordArray: lib.WordArray): string } @@ -228,7 +228,7 @@ declare module CryptoJS{ } } - module kdf{ + namespace kdf{ interface KdfStatic{ OpenSSL: IKdfImpl } @@ -239,7 +239,7 @@ declare module CryptoJS{ } } - module format{ + namespace format{ interface FormatStatic{ OpenSSL: IFormatter Hex: IFormatter @@ -251,7 +251,7 @@ declare module CryptoJS{ } } - module algo{ + namespace algo{ interface AlgoStatic{ AES: algo.AES DES: algo.DES @@ -349,7 +349,7 @@ declare module CryptoJS{ interface RC4Drop extends RC4 { } } - module mode{ + namespace mode{ interface ModeStatic{ CBC: mode.CBC CFB: mode.CFB @@ -378,7 +378,7 @@ declare module CryptoJS{ interface OFB extends IBlockCipherModeImpl{} } - module pad{ + namespace pad{ interface PadStatic{ Pkcs7: pad.Pkcs7 AnsiX923: pad.AnsiX923 @@ -401,7 +401,7 @@ declare module CryptoJS{ interface NoPadding extends IPaddingImpl{} } - module x64{ + namespace x64{ interface X64Static{ Word: x64.Word WordArray: x64.WordArray diff --git a/cson/cson.d.ts b/cson/cson.d.ts index ca7d2faed5..0150273c0c 100644 --- a/cson/cson.d.ts +++ b/cson/cson.d.ts @@ -1,7 +1,7 @@ // Type definitions for CSON // Project: https://github.com/bevry/cson // Definitions by: Sam Saint-Pettersen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "cson" { // Create Strings diff --git a/csurf/csurf.d.ts b/csurf/csurf.d.ts index 4284ff39ce..ed2b2e68ed 100644 --- a/csurf/csurf.d.ts +++ b/csurf/csurf.d.ts @@ -1,11 +1,11 @@ // Type definitions for csurf // Project: https://www.npmjs.org/package/csurf // Definitions by: Hiroki Horiuchi -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module Express { +declare namespace Express { export interface Request { csrfToken(): string; } @@ -19,7 +19,7 @@ declare module "csurf" { cookie?: csurf.CookieOptions | boolean; }): express.RequestHandler; - module csurf { + namespace csurf { export interface CookieOptions extends express.CookieOptions { key: string; } diff --git a/csv-stringify/csv-stringify.d.ts b/csv-stringify/csv-stringify.d.ts index 6e5eb8c820..a1cc16a15b 100644 --- a/csv-stringify/csv-stringify.d.ts +++ b/csv-stringify/csv-stringify.d.ts @@ -1,13 +1,13 @@ // Type definitions for csv-stringify 0.0.6 // Project: https://github.com/wdavidw/node-csv-stringify // Definitions by: Rogier Schouten -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// declare module "csv-stringify" { - module stringify { + namespace stringify { interface StringifyOpts { /** * List of fields, applied when transform returns an object, order matters, read the transformer documentation for additionnal information, columns are auto discovered when the user write object, see the "header" option on how to print columns names on the first line. diff --git a/cucumber/cucumber.d.ts b/cucumber/cucumber.d.ts index 2b0eae74b8..d0e742d9c2 100644 --- a/cucumber/cucumber.d.ts +++ b/cucumber/cucumber.d.ts @@ -3,7 +3,7 @@ // Definitions by: Abraão Alves // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module cucumber { +declare namespace cucumber { export interface CallbackStepDefinition{ pending : () => PromiseLike; diff --git a/cuid/cuid.d.ts b/cuid/cuid.d.ts index 0ba27cee7a..a5b9429800 100644 --- a/cuid/cuid.d.ts +++ b/cuid/cuid.d.ts @@ -1,7 +1,7 @@ // Type definitions for cuid // Project: https://github.com/ericelliott/cuid // Definitions by: Dave Keen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'cuid' { function cuid(): string; diff --git a/custom-error-generator/custom-error-generator.d.ts b/custom-error-generator/custom-error-generator.d.ts index 8ce65f673d..b6c3872bda 100644 --- a/custom-error-generator/custom-error-generator.d.ts +++ b/custom-error-generator/custom-error-generator.d.ts @@ -1,11 +1,11 @@ // Type definitions for custom-error-generator 7.0.0 // Project: https://github.com/jproulx/node-custom-error // Definitions by: Thierry Miceli -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "custom-error-generator" { function createError(name: string, parameters?: Object, Constructor?: any): any; - module createError { + namespace createError { } export = createError; } diff --git a/d3-dsv/d3-dsv.d.ts b/d3-dsv/d3-dsv.d.ts index 09ed954919..ef963eeeaa 100644 --- a/d3-dsv/d3-dsv.d.ts +++ b/d3-dsv/d3-dsv.d.ts @@ -1,7 +1,7 @@ // Type definitions for d3-dsv // Project: https://www.npmjs.com/package/d3-dsv // Definitions by: Jason Swearingen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //commonjs loader diff --git a/d3.cloud.layout/d3.cloud.layout.d.ts b/d3.cloud.layout/d3.cloud.layout.d.ts index 1e41ecbc25..a66c6c7a65 100644 --- a/d3.cloud.layout/d3.cloud.layout.d.ts +++ b/d3.cloud.layout/d3.cloud.layout.d.ts @@ -1,16 +1,16 @@ // Type definitions for d3JS cloud layout plugin by Jason Davies // Project: https://github.com/jasondavies/d3-cloud // Definitions by: hans windhoff -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module d3 { - module layout { +declare namespace d3 { + namespace layout { export function cloud(): Cloud; export function cloud(): Cloud; - module cloud { + namespace cloud { interface Word { text?: string; font?: string; diff --git a/d3/d3-tests.ts b/d3/d3-tests.ts index f4efa75d40..c9027b0889 100644 --- a/d3/d3-tests.ts +++ b/d3/d3-tests.ts @@ -899,7 +899,7 @@ function populationPyramid() { } //Example from http://bl.ocks.org/MoritzStefaner/1377729 -module forcedBasedLabelPlacemant { +namespace forcedBasedLabelPlacemant { interface Node extends d3.layout.force.Node { label: string; } @@ -1034,7 +1034,7 @@ module forcedBasedLabelPlacemant { } //Example from http://bl.ocks.org/mbostock/1125997 -module forceCollapsable { +namespace forceCollapsable { interface Node extends d3.layout.force.Node { id: string; _children: Node[]; @@ -1504,7 +1504,7 @@ function convexHull() { } // example from http://bl.ocks.org/mbostock/1044242 -module hierarchicalEdgeBundling { +namespace hierarchicalEdgeBundling { interface Result extends d3.layout.cluster.Result { parent: Result; size: number; @@ -1721,7 +1721,7 @@ function streamGraph() { } // example from http://mbostock.github.io/d3/talk/20111116/force-collapsible.html -module forceCollapsable2 { +namespace forceCollapsable2 { interface Node extends d3.layout.force.Node { children: Node[]; _children: Node[]; @@ -2705,4 +2705,4 @@ function testMultiUtcFormat() { ["%B", function(d) { return d.getMonth(); }], ["%Y", function() { return true; }] ]); -} \ No newline at end of file +} diff --git a/d3/d3.d.ts b/d3/d3.d.ts index 1f5ebe7a1e..c80a922f1f 100644 --- a/d3/d3.d.ts +++ b/d3/d3.d.ts @@ -1,9 +1,9 @@ // Type definitions for d3JS // Project: http://d3js.org/ // Definitions by: Alex Ford , Boris Yankov -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module d3 { +declare namespace d3 { /** * The current version of D3.js. */ @@ -34,7 +34,7 @@ declare module d3 { */ export function selection(): Selection; - module selection { + namespace selection { export var prototype: Selection; /** @@ -800,7 +800,7 @@ declare module d3 { } export function transition(): Transition; - module transition { + namespace transition { export var prototype: Transition; } @@ -916,7 +916,7 @@ declare module d3 { export function timer(func: () => any, delay?: number, time?: number): void; - module timer { + namespace timer { export function flush(): void; } @@ -1802,7 +1802,7 @@ declare module d3 { export module format { export function multi(formats: Array<[string, (d: Date) => boolean|number]>): Format; export function utc(specifier: string): Format; - module utc { + namespace utc { export function multi(formats: Array<[string, (d: Date) => boolean|number]>): Format; } @@ -1873,7 +1873,7 @@ declare module d3 { export function zoom(): Zoom; - module zoom { + namespace zoom { interface Scale { domain(): number[]; domain(values: number[]): Scale; @@ -2044,80 +2044,80 @@ declare module d3 { export function albers(): ConicProjection; export function albersUsa(): ConicProjection; export function azimuthalEqualArea(): InvertibleProjection; - module azimuthalEqualArea { + namespace azimuthalEqualArea { export function raw(lambda: number, phi: number): [number, number]; - module raw { + namespace raw { export function invert(x: number, y: number): [number, number]; } } export function azimuthalEquidistant(): InvertibleProjection; - module azimuthalEquidistant { + namespace azimuthalEquidistant { export function raw(lambda: number, phi: number): [number, number]; - module raw { + namespace raw { export function invert(x: number, y: number): [number, number]; } } export function conicConformal(): ConicProjection; - module conicConformal { + namespace conicConformal { export function raw(phi0: number, phi1: number): RawInvertibleProjection; } export function conicEqualArea(): ConicProjection; - module conicEqualArea { + namespace conicEqualArea { export function raw(phi0: number, phi1: number): RawInvertibleProjection; } export function conicEquidistant(): ConicProjection; - module conicEquidistant { + namespace conicEquidistant { export function raw(phi0: number, phi1: number): RawInvertibleProjection; } export function equirectangular(): InvertibleProjection; - module equirectangular { + namespace equirectangular { export function raw(lambda: number, phi: number): [number, number]; - module raw { + namespace raw { export function invert(x: number, y: number): [number, number]; } } export function gnomonic(): InvertibleProjection; - module gnomonic { + namespace gnomonic { export function raw(lambda: number, phi: number): [number, number]; - module raw { + namespace raw { export function invert(x: number, y: number): [number, number]; } } export function mercator(): InvertibleProjection; - module mercator { + namespace mercator { export function raw(lambda: number, phi: number): [number, number]; - module raw { + namespace raw { export function invert(x: number, y: number): [number, number]; } } export function orthographic(): InvertibleProjection; - module orthographic { + namespace orthographic { export function raw(lambda: number, phi: number): [number, number]; - module raw { + namespace raw { export function invert(x: number, y: number): [number, number]; } } export function stereographic(): InvertibleProjection; - module stereographic { + namespace stereographic { export function raw(lambda: number, phi: number): [number, number]; - module raw { + namespace raw { export function invert(x: number, y: number): [number, number]; } } export function transverseMercator(): InvertibleProjection; - module transverseMercator { + namespace transverseMercator { export function raw(lambda: number, phi: number): [number, number]; - module raw { + namespace raw { export function invert(x: number, y: number): [number, number]; } } @@ -2188,7 +2188,7 @@ declare module d3 { } } - module svg { + namespace svg { export function line(): Line<[number, number]>; export function line(): Line; @@ -2226,7 +2226,7 @@ declare module d3 { defined(defined: (d: T, i: number) => boolean): Line; } - module line { + namespace line { export function radial(): Radial<[number, number]>; export function radial(): Radial; @@ -2314,7 +2314,7 @@ declare module d3 { defined(defined: (d: T, i: number) => boolean): Area; } - module area { + namespace area { export function radial(): Radial<[number, number]>; export function radial(): Radial; @@ -2368,7 +2368,7 @@ declare module d3 { export function arc(): Arc; export function arc(): Arc; - module arc { + namespace arc { interface Arc { innerRadius: number; outerRadius: number; @@ -2434,7 +2434,7 @@ declare module d3 { export function chord(): Chord, Node>; export function chord(): Chord; - module chord { + namespace chord { interface Link { source: Node; target: Node; @@ -2475,7 +2475,7 @@ declare module d3 { export function diagonal(): Diagonal, Node>; export function diagonal(): Diagonal; - module diagonal { + namespace diagonal { interface Link { source: Node; target: Node; @@ -2488,21 +2488,21 @@ declare module d3 { } interface Diagonal { - (d: Link, i: number): string; + (d: Link, i?: number): string; source(): (d: Link, i: number) => Node; source(source: Node): Diagonal; - source(source: (d: Link, i: number) => Node): Diagonal; + source(source: (d: Link, i: number) => { x: number; y: number; }): Diagonal; target(): (d: Link, i: number) => Node; target(target: Node): Diagonal; - target(target: (d: Link, i: number) => Node): Diagonal; + target(target: (d: Link, i: number) => { x: number; y: number; }): Diagonal; projection(): (d: Node, i: number) => [number, number]; projection(projection: (d: Node, i: number) => [number, number]): Diagonal; } - module diagonal { + namespace diagonal { export function radial(): Radial, Node>; export function radial(): Radial, Node>; export function radial(): Radial; @@ -2562,7 +2562,7 @@ declare module d3 { export function brush(): Brush; export function brush(): Brush; - module brush { + namespace brush { interface Scale { domain(): number[]; domain(domain: number[]): Scale; @@ -2745,11 +2745,11 @@ declare module d3 { } } - module layout { + namespace layout { export function bundle(): Bundle; export function bundle(): Bundle - module bundle { + namespace bundle { interface Node { parent: Node; } @@ -2766,7 +2766,7 @@ declare module d3 { export function chord(): Chord; - module chord { + namespace chord { interface Link { source: Node; target: Node; @@ -2811,7 +2811,7 @@ declare module d3 { export function cluster(): Cluster; export function cluster(): Cluster; - module cluster { + namespace cluster { interface Result { parent?: Result; children?: Result[]; @@ -2856,7 +2856,7 @@ declare module d3 { export function force(): Force, Node>; export function force, Node extends force.Node>(): Force; - module force { + namespace force { interface Link { source: T; target: T; @@ -2932,7 +2932,7 @@ declare module d3 { export function hierarchy(): Hierarchy; export function hierarchy(): Hierarchy; - module hierarchy { + namespace hierarchy { interface Result { parent?: Result; children?: Result[]; @@ -2959,7 +2959,7 @@ declare module d3 { export function histogram(): Histogram; export function histogram(): Histogram; - module histogram { + namespace histogram { interface Bin extends Array { x: number; dx: number; @@ -2988,7 +2988,7 @@ declare module d3 { export function pack(): Pack; export function pack(): Pack; - module pack { + namespace pack { interface Node { parent?: Node; children?: Node[]; @@ -3035,7 +3035,7 @@ declare module d3 { export function partition(): Partition; export function partition(): Partition; - module partition { + namespace partition { interface Link { source: T; target: T; @@ -3075,7 +3075,7 @@ declare module d3 { export function pie(): Pie; export function pie(): Pie; - module pie { + namespace pie { interface Arc { value: number; startAngle: number; @@ -3110,7 +3110,7 @@ declare module d3 { export function stack(): Stack; export function stack(): Stack; export function stack(): Stack; - module stack { + namespace stack { interface Value { x: number; y: number; @@ -3152,7 +3152,7 @@ declare module d3 { export function tree(): Tree; export function tree(): Tree; - module tree { + namespace tree { interface Link { source: T; target: T; @@ -3196,7 +3196,7 @@ declare module d3 { export function treemap(): Treemap; export function treemap(): Treemap; - module treemap { + namespace treemap { interface Node { parent?: Node; children?: Node[]; @@ -3257,11 +3257,11 @@ declare module d3 { } } - module geom { + namespace geom { export function voronoi(): Voronoi<[number, number]>; export function voronoi(): Voronoi; - module voronoi { + namespace voronoi { interface Link { source: T; target: T; @@ -3293,7 +3293,7 @@ declare module d3 { export function quadtree(): Quadtree<[number, number]>; export function quadtree(nodes: T[], x1?: number, y1?: number, x2?: number, y2?: number): quadtree.Quadtree; - module quadtree { + namespace quadtree { interface Node { nodes: [Node, Node, Node, Node]; leaf: boolean; diff --git a/d3/plugins/d3.superformula.d.ts b/d3/plugins/d3.superformula.d.ts index d9252a45d4..f8d54a9da4 100644 --- a/d3/plugins/d3.superformula.d.ts +++ b/d3/plugins/d3.superformula.d.ts @@ -1,9 +1,9 @@ /// -declare module d3 { +declare namespace d3 { export function superformula(): Superformula; - module superformula { + namespace superformula { interface Type { m: number; n1: number; diff --git a/dagre-d3/dagre-d3-tests.ts b/dagre-d3/dagre-d3-tests.ts index e3e068816c..f73389015f 100644 --- a/dagre-d3/dagre-d3-tests.ts +++ b/dagre-d3/dagre-d3-tests.ts @@ -1,5 +1,5 @@ /// -module DagreD3Tests { +namespace DagreD3Tests { var gDagre = new dagreD3.graphlib.Graph(); var graph = gDagre.graph(); diff --git a/dagre-d3/dagre-d3.d.ts b/dagre-d3/dagre-d3.d.ts index d654fa0b4b..c8484995e3 100644 --- a/dagre-d3/dagre-d3.d.ts +++ b/dagre-d3/dagre-d3.d.ts @@ -1,12 +1,12 @@ // Type definitions for dagre-d3.core.js // Project: https://github.com/cpettitt/dagre-d3 // Definitions by: Mark Wong Siang Kai -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module Dagre { +declare namespace Dagre { interface DagreD3Factory extends Dagre.DagreFactory { render: Render; diff --git a/dagre/dagre-tests.ts b/dagre/dagre-tests.ts index 6217279443..a4eaad32f3 100644 --- a/dagre/dagre-tests.ts +++ b/dagre/dagre-tests.ts @@ -1,5 +1,5 @@ /// -module DagreTests { +namespace DagreTests { var gDagre = new dagre.graphlib.Graph(); gDagre.setGraph({}) .setDefaultEdgeLabel(function(){ return ; }) diff --git a/dagre/dagre.d.ts b/dagre/dagre.d.ts index d16df52163..2b99bf4d5a 100644 --- a/dagre/dagre.d.ts +++ b/dagre/dagre.d.ts @@ -1,8 +1,9 @@ // Type definitions for dagre 0.7.0 // Project: https://github.com/cpettitt/dagre // Definitions by: Qinfeng Chen -// Definitions: https://github.com/borisyankov/DefinitelyTyped -declare module Dagre{ +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace Dagre{ interface DagreFactory { graphlib: GraphLib; layout(graph: Graph): void; diff --git a/dat-gui/dat-gui.d.ts b/dat-gui/dat-gui.d.ts index c17cb5bd7c..5a902b228b 100644 --- a/dat-gui/dat-gui.d.ts +++ b/dat-gui/dat-gui.d.ts @@ -1,9 +1,9 @@ // Type definitions for dat.GUI v0.5 // Project: https://github.com/dataarts/dat.gui // Definitions by: Satoru Kimura -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module dat { +declare namespace dat { export class GUI { constructor(option?: GUIParams); diff --git a/data-driven/data-driven.d.ts b/data-driven/data-driven.d.ts index 79bb80b315..82c307daa8 100644 --- a/data-driven/data-driven.d.ts +++ b/data-driven/data-driven.d.ts @@ -1,7 +1,7 @@ // Type definitions for data-driven.js // Project: https://github.com/fluentsoftware/data-driven // Definitions by: Adam Babcock -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "data-driven" { function data_driven(data:T[], callback:()=>any):any; diff --git a/datatables-buttons/datatables-buttons.d.ts b/datatables-buttons/datatables-buttons.d.ts index fd047f0a8a..e589ea8c5e 100644 --- a/datatables-buttons/datatables-buttons.d.ts +++ b/datatables-buttons/datatables-buttons.d.ts @@ -6,16 +6,16 @@ /// /// -declare module DataTables { - export interface Settings { +declare namespace DataTables { + export interface Settings { /** * Buttons extension options */ buttons?: boolean | string[] | ButtonSettings[]; } - + //#region "button-settings" - + /** * Buttons extension options */ @@ -110,4 +110,4 @@ declare module DataTables { (e: any, dt: DataTables.DataTable, node: JQuery, config: any): void } //#endregion "button-settings -} \ No newline at end of file +} diff --git a/date.format.js/date.format.d.ts b/date.format.js/date.format.d.ts index d31543aceb..7911cbe8c4 100644 --- a/date.format.js/date.format.d.ts +++ b/date.format.js/date.format.d.ts @@ -1,7 +1,7 @@ // Type definitions for Date Format 1.2.3 // Project: http://blog.stevenlevithan.com/archives/date-time-format // Definitions by: Rob Stutton -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /***************************************************************************** Portions Copyright (c) Microsoft Corporation. All rights reserved. diff --git a/datejs/datejs.d.ts b/datejs/datejs.d.ts index c0b7ad5107..068a5b42a5 100644 --- a/datejs/datejs.d.ts +++ b/datejs/datejs.d.ts @@ -1,7 +1,7 @@ // Type definitions for DateJS // Project: http://www.datejs.com/ // Definitions by: David Khristepher Santos -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped //NOTE: This definition file is for the library located at http://datejs.googlecode.com/svn/ and documented at https://code.google.com/p/datejs/wiki/APIDocumentation //That version of the library is more recent than the one provided at https://code.google.com/p/datejs/downloads/list, which has a slightly different API diff --git a/datejs/sugarpak.d.ts b/datejs/sugarpak.d.ts index 3a30d7f6cb..5ed410740d 100644 --- a/datejs/sugarpak.d.ts +++ b/datejs/sugarpak.d.ts @@ -1,10 +1,10 @@ // Type definitions for DateJS - SugarPak Extensions // Project: http://www.datejs.com/ // Definitions by: David Khristepher Santos -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** SugarPak.js - Domain Specific Language - Syntactical Sugar */ -declare module sugarpak { +declare namespace sugarpak { export interface IAddOrientation { millisecond(): Date; @@ -60,7 +60,7 @@ declare module sugarpak { feb(): Date; mar(): Date; apr(): Date; - // may + // may jun(): Date; jul(): Date; aug(): Date; @@ -255,7 +255,7 @@ interface DateConstructor { feb(): Date; mar(): Date; apr(): Date; - // may + // may jun(): Date; jul(): Date; aug(): Date; @@ -268,4 +268,4 @@ interface DateConstructor { interface Number extends sugarpak.IDateElement { // extend the Number type with all the Date goodness -} \ No newline at end of file +} diff --git a/dcjs/dc-1.6.0.d.ts b/dcjs/dc-1.6.0.d.ts index 2feed9a8c8..cf410f1659 100644 --- a/dcjs/dc-1.6.0.d.ts +++ b/dcjs/dc-1.6.0.d.ts @@ -1,7 +1,7 @@ // Type definitions for DCJS // Project: https://github.com/dc-js // Definitions by: hans windhoff -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // this makes only sense together with d3 and crossfilter so you need the d3.d.ts and crossfilter.d.ts files @@ -10,7 +10,7 @@ -declare module dc { +declare namespace dc { // helper for get/set situation interface IGetSet { @@ -66,14 +66,14 @@ export interface ILegendwidget { right: number; bottom: number; left: number; - + } export interface IMarginable { margins: IGetSet; } - // abstract interfaces + // abstract interfaces export interface IAbstractColorChart { colorDomain: IGetSet; } @@ -90,7 +90,7 @@ export interface ILegendwidget { yAxisPadding: IGetSet; xAxisPadding: IGetSet; renderHorizontalGridLines: IGetSet; - + } export interface IAbstractBubblechart { @@ -112,8 +112,8 @@ export interface ILegendwidget { } - // chart interfaces - + // chart interfaces + export interface IBubblechart extends IBaseChart, diff --git a/dcjs/dc.d.ts b/dcjs/dc.d.ts index 850d1abeca..afb8cc06c2 100644 --- a/dcjs/dc.d.ts +++ b/dcjs/dc.d.ts @@ -1,14 +1,14 @@ // Type definitions for DCJS // Project: https://github.com/dc-js/dc.js // Definitions by: hans windhoff , matt traynham -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // this makes only sense together with d3 and crossfilter so you need the d3.d.ts and crossfilter.d.ts files /// /// -declare module DC { +declare namespace DC { // helper for get/set situation export interface IGetSet { (): T; diff --git a/debug/debug.d.ts b/debug/debug.d.ts index b43cd238c3..80d7fc30c4 100644 --- a/debug/debug.d.ts +++ b/debug/debug.d.ts @@ -1,7 +1,7 @@ // Type definitions for debug // Project: https://github.com/visionmedia/debug // Definitions by: Seon-Wook Park , Gal Talmor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var debug: debug.IDebug; @@ -10,7 +10,7 @@ declare module 'debug' { export = debug; } -declare module debug { +declare namespace debug { export interface IDebug { (namespace: string): debug.IDebugger, coerce: (val: any) => any, diff --git a/decamelize/decamelize-tests.ts b/decamelize/decamelize-tests.ts new file mode 100644 index 0000000000..a4019ad42e --- /dev/null +++ b/decamelize/decamelize-tests.ts @@ -0,0 +1,6 @@ +/// + +import decamelize = require('decamelize'); + +decamelize('unicornRainbow'); +decamelize('unicornRainbow', '-'); \ No newline at end of file diff --git a/decamelize/decamelize.d.ts b/decamelize/decamelize.d.ts new file mode 100644 index 0000000000..2209d1e856 --- /dev/null +++ b/decamelize/decamelize.d.ts @@ -0,0 +1,10 @@ +// Type definitions for decamelize +// Project: https://github.com/sindresorhus/decamelize +// Definitions by: Sam Verschueren +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "decamelize" { + function decamelize(input: string, separator?: string): string; + namespace decamelize {} + export = decamelize; +} \ No newline at end of file diff --git a/decimal.js/decimal.js.d.ts b/decimal.js/decimal.js.d.ts index 74910614e2..16f7839448 100644 --- a/decimal.js/decimal.js.d.ts +++ b/decimal.js/decimal.js.d.ts @@ -1,7 +1,7 @@ // Type definitions for decimal.js // Project: http://mikemcl.github.io/decimal.js // Definitions by: Joseph Rossi -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare var Decimal: decimal.IDecimalStatic; @@ -10,7 +10,7 @@ declare module 'decimal.js' { export = Decimal; } -declare module decimal { +declare namespace decimal { enum RoundingMode { /** diff --git a/decorum/decorum.d.ts b/decorum/decorum.d.ts index 4a966e9d2b..07660acf9f 100644 --- a/decorum/decorum.d.ts +++ b/decorum/decorum.d.ts @@ -1,7 +1,7 @@ // Type definitions for Decorum JS v0.2.0 // Project: https://github.com/dflor003/decorum // Definitions by: Danil Flores -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'decorum' { export = decorum; diff --git a/deep-diff/deep-diff.d.ts b/deep-diff/deep-diff.d.ts index 4242731f27..a0becbf970 100644 --- a/deep-diff/deep-diff.d.ts +++ b/deep-diff/deep-diff.d.ts @@ -1,9 +1,9 @@ // Type definitions for deep-diff // Project: https://github.com/flitbit/diff/ // Definitions by: ZauberNerd -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module deepDiff { +declare namespace deepDiff { interface IDiff { kind: string; path: string[]; diff --git a/deep-equal/deep-equal-tests.ts b/deep-equal/deep-equal-tests.ts new file mode 100644 index 0000000000..922dcf4495 --- /dev/null +++ b/deep-equal/deep-equal-tests.ts @@ -0,0 +1,9 @@ +/// + +import * as deepEqual from "deep-equal"; + +let isDeepEqual1: boolean = deepEqual({}, {}); +let isDeepEqual2: boolean = deepEqual({}, {}, { strict: true }); +let isDeepEqual3: boolean = deepEqual({}, {}, { strict: false }); + +console.log(isDeepEqual1, isDeepEqual2, isDeepEqual3); diff --git a/deep-equal/deep-equal.d.ts b/deep-equal/deep-equal.d.ts new file mode 100644 index 0000000000..0afb0f402b --- /dev/null +++ b/deep-equal/deep-equal.d.ts @@ -0,0 +1,18 @@ +// Type definitions for deep-equal +// Project: https://github.com/substack/node-deep-equal +// Definitions by: remojansen +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare module "deep-equal" { + + interface DeepEqualOptions { + strict: boolean; + } + + let deepEqual: ( + actual: Object, + expected: Object, + opts?: DeepEqualOptions) => boolean; + + export = deepEqual; +} \ No newline at end of file diff --git a/deep-freeze/deep-freeze.d.ts b/deep-freeze/deep-freeze.d.ts index ce3d9421a1..8ab079d6de 100644 --- a/deep-freeze/deep-freeze.d.ts +++ b/deep-freeze/deep-freeze.d.ts @@ -1,9 +1,9 @@ // Type definitions for deep-freeze // Project: https://github.com/substack/deep-freeze // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module DeepFreeze { +declare namespace DeepFreeze { export interface DeepFreezeInterface { (obj: T): T; } diff --git a/del/del.d.ts b/del/del.d.ts index 550f8f5557..6ed59efa39 100644 --- a/del/del.d.ts +++ b/del/del.d.ts @@ -1,7 +1,7 @@ // Type definitions for del v2.2.0 // Project: https://github.com/sindresorhus/del // Definitions by: Asana , Aya Morisawa -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -14,7 +14,7 @@ declare module "del" { function Del(patterns: string[]): Promise; function Del(patterns: string[], options: Del.Options): Promise; - module Del { + namespace Del { function sync(pattern: string, options?: Options): string[]; function sync(patterns: string[], options?: Options): string[]; diff --git a/denodeify/denodeify.d.ts b/denodeify/denodeify.d.ts index f993b02701..f2e27f4bd5 100644 --- a/denodeify/denodeify.d.ts +++ b/denodeify/denodeify.d.ts @@ -1,7 +1,7 @@ // Type definitions for denodeify 1.2.1 // Project: https://github.com/matthew-andrews/denodeify // Definitions by: joaomoreno -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "denodeify" { function _(fn: _.F0, transformer?: _.M): () => Promise; diff --git a/depd/depd.d.ts b/depd/depd.d.ts index 1af4eaa8da..674bb21f32 100644 --- a/depd/depd.d.ts +++ b/depd/depd.d.ts @@ -1,7 +1,7 @@ // Type definitions for depd 1.1.0 // Project: https://github.com/dougwilson/nodejs-depd // Definitions by: Zhiyuan Wang -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'depd' { diff --git a/deployJava/deployJava.d.ts b/deployJava/deployJava.d.ts index 76ff5d8cd1..4496b3d1f9 100644 --- a/deployJava/deployJava.d.ts +++ b/deployJava/deployJava.d.ts @@ -1,9 +1,9 @@ // Type definitions for deployJava.js // Project: https://www.java.com/js/deployJava.txt // Definitions by: Cyril Schumacher -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module DeployJava { +declare namespace DeployJava { /** * @summary Interface for {@link deployJava} object. * @author Cyril Schumacher @@ -65,7 +65,7 @@ declare module DeployJava { returnPage: string; /** - * @summary Determines if the browser has allowed the Java plugin. + * @summary Determines if the browser has allowed the Java plugin. * @return {boolean} True if the Java plugin is allowed, otherwise, False. */ allowPlugin(): boolean; @@ -289,12 +289,12 @@ declare module DeployJava { */ versionCheck(versionPattern: string): boolean; - /** + /** * @summary Write in outputs an applet tag for applet with the specified attributes and parameters. * - * Each key/value pair in attributes becomes an attribute of the applet tag + * Each key/value pair in attributes becomes an attribute of the applet tag * itself, while key/value pairs in parameters become tags. - * No version checking or other special behaviors are performed; the tag is + * No version checking or other special behaviors are performed; the tag is * simply written to the page using document.writeln(). * As document.writeln() is generally only safe to use while the page is * being rendered, you should never call this function after the page @@ -311,5 +311,5 @@ declare module DeployJava { writeEmbedTag(): void; } } - -declare var deployJava: DeployJava.DeployJavaStatic; \ No newline at end of file + +declare var deployJava: DeployJava.DeployJavaStatic; diff --git a/detect-indent/detect-indent.d.ts b/detect-indent/detect-indent.d.ts index 0ee7cad076..eb666199c6 100644 --- a/detect-indent/detect-indent.d.ts +++ b/detect-indent/detect-indent.d.ts @@ -1,7 +1,7 @@ // Type definitions for detect-indent 0.1.3 // Project: https://github.com/sindresorhus/detect-indent // Definitions by: Bart van der Schoor -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module 'detect-indent' { interface DetectIndent { diff --git a/devexpress-web/devexpress-web-tests.ts b/devexpress-web/devexpress-web-tests.ts new file mode 100644 index 0000000000..38c653921f --- /dev/null +++ b/devexpress-web/devexpress-web-tests.ts @@ -0,0 +1,75 @@ +/// + +namespace Tests.Globals { + function ASPxTest(): void { + ASPx.RunStartupScripts(); + } + + function ASPxClientControlTest(): void { + ASPxClientControl.AdjustControls(); + let controls: DevExpress.Web.Scripts.ASPxClientControlCollection = ASPxClientControl.GetControlCollection(); + controls.GetByName("myControl"); + + let elements: DevExpress.Web.Scripts.ASPxClientControl[] = controls.elements; + for (let element of elements) { + let name: string = element.name; + element.AdjustControl(); + let mainElement = element.GetMainElement(); + if (mainElement) { + mainElement.focus(); + } + + let isVisible: boolean = element.GetVisible(); + let inCallback: boolean = element.InCallback(); + element.SetWidth(600); + element.SetHeight(400); + + let initEventHandler: (s: DevExpress.Web.Scripts.ASPxClientControl, e: DevExpress.Web.Scripts.ASPxClientEventArgs) => void = (s: DevExpress.Web.Scripts.ASPxClientControl, e: DevExpress.Web.Scripts.ASPxClientEventArgs) => { }; + element.Init.AddHandler(initEventHandler); + element.Init.RemoveHandler(initEventHandler); + element.Init.ClearHandlers(); + } + } + + function ASPxClientUtilsTest(): void { + ASPxClientUtils.AttachEventToElement(document.getElementById("btnSubmit"), "click", () => { }); + + let htmlEvent: Event; + let x: number = ASPxClientUtils.GetEventX(htmlEvent); + let y: number = ASPxClientUtils.GetEventY(htmlEvent); + + let control: DevExpress.Web.Scripts.ASPxClientControl; + let controlExists: boolean = ASPxClientUtils.IsExists(control); + } + + function MVCxClientGlobalEventsTest(): void { + ASPxClientGlobalEvents.AddControlsInitializedEventHandler((s: any, e: DevExpress.Web.Scripts.ASPxClientControlsInitializedEventArgs) => {}); + } + + function ASPxClientEditTest(): void { + let editorsValid: boolean = ASPxClientEdit.AreEditorsValid(); + + let container: HTMLElement = document.getElementById("form1"); + let editorsInContainerGroupValid: boolean = ASPxClientEdit.AreEditorsValid(container, "group1", false); + + ASPxClientEdit.ClearEditorsInContainer(container, "group1", false); + ASPxClientEdit.ClearGroup("group1", false); + + let editorsInContainerValid: boolean = ASPxClientEdit.ValidateEditorsInContainer(container, "group1", false); + let editorsInGroupValid: boolean =ASPxClientEdit.ValidateGroup("group1", false); + } +} + +namespace Tests.Controls { + declare var comboBox: DevExpress.Web.Scripts.ASPxClientComboBox; + + function ASPxClientComboBoxTest() { + let selectedIndex: number = comboBox.GetSelectedIndex(); + comboBox.SetSelectedIndex(1); + + let selectedIndexChangedEventHandler: (s: DevExpress.Web.Scripts.ASPxClientControl, e: DevExpress.Web.Scripts.ASPxClientEventArgs) => void = (s: DevExpress.Web.Scripts.ASPxClientControl, e: DevExpress.Web.Scripts.ASPxClientEventArgs) => { }; + comboBox.SelectedIndexChanged.AddHandler(selectedIndexChangedEventHandler); + comboBox.SelectedIndexChanged.RemoveHandler(selectedIndexChangedEventHandler); + comboBox.SelectedIndexChanged.ClearHandlers(); + } +} diff --git a/devexpress-web/devexpress-web.d.ts b/devexpress-web/devexpress-web.d.ts new file mode 100644 index 0000000000..eb2dd7d678 --- /dev/null +++ b/devexpress-web/devexpress-web.d.ts @@ -0,0 +1,555 @@ +// Type definitions for DevExpress ASP.NET web controls (Classic and MVC) +// Project: https://www.devexpress.com/Products/NET/Controls/ASP/MVC/ +// Definitions by: Sheron Benedict +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +// DX Globals +declare var ASPx: DevExpress.Web.Scripts.ASPxStatic; +declare var ASPxClientControl: DevExpress.Web.Scripts.ASPxClientControlStatic; +declare var ASPxClientUtils: DevExpress.Web.Scripts.ASPxClientUtils; +declare var ASPxClientGlobalEvents: DevExpress.Web.Scripts.ASPxClientGlobalEvents; +declare var ASPxClientEdit: DevExpress.Web.Scripts.ASPxClientEditStatic; + +declare namespace DevExpress.Web.Scripts { + export interface ASPxStatic { + RunStartupScripts(): void; + } + + export interface ASPxClientControlStatic { + GetControlCollection(): ASPxClientControlCollection; + AdjustControls(): void; + } + + export interface ASPxClientUtils { + AttachEventToElement(element: HTMLElement, eventName: string, method: Function): void; + IsExists(element: ASPxClientControl): boolean; + GetEventX(htmlEvent: Event): number; + GetEventY(htmlEvent: Event): number; + } + + export interface ASPxClientGlobalEvents { + AddControlsInitializedEventHandler(handler: (sender?: any, e?: ASPxClientControlsInitializedEventArgs) => void): void; + } + + export interface ASPxClientEditStatic { + AreEditorsValid(): boolean; + AreEditorsValid(container: HTMLElement, validationGroup?: string, checkInvisibleEditors?: boolean): boolean; + + ClearEditorsInContainer(container: HTMLElement, validationGroup?: string, clearInvisibleEditors?: boolean): void; + ClearGroup(validationGroup: string, clearInvisibleEditors?: boolean): void; + + ValidateEditorsInContainer(container: HTMLElement, validationGroup?: string, validateInvisibleEditors?: boolean): boolean; + ValidateGroup(validationGroup: string, validateInvisibleEditors?: boolean): boolean; + } + + export interface ASPxClientControlsInitializedEventArgs { + isCallback: boolean; + } + + export interface ASPxClientGridViewBatchEditApi { + StartEdit(visibleIndex: number, columnIndex: number): void; + SetCellValue(visibleIndex: number, columnFieldNameOrId: string, value: any, displayText?: string): void; + EndEdit(): void; + HasChanges(visibleIndex?: number, columnFieldNameOrId?: string): boolean; + ValidateRow(visibleIndex: number): boolean; + ValidateRows(): boolean; + } + + export interface ASPxClientControlCollection { + GetByName(name: string): ASPxClientControl; + elements: ASPxClientControl[]; + Remove(control: ASPxClientControl): void; + ForEachControl(processFunc: (control: ASPxClientControl) => void, context?: any): void; + } + + export interface ASPxClientControl { + // Properties + name: string; + + // Methods + AdjustControl(): void; + GetMainElement(): HTMLElement; + GetVisible(): boolean; + SetVisible(visibility: boolean): void; + InCallback(): boolean; + SetWidth(height: number): void; + SetHeight(height: number): void; + + // Events + Init: ASPxClientEvent; + } + + export interface ASPxClientEditBase extends ASPxClientControl { + GetCaption(): string; + SetCaption(caption: string): void; + + GetEnabled(): boolean; + SetEnabled(enabled: boolean): any; + + GetValue(): any; + SetValue(value: any): any; + } + + export interface ASPxClientEdit extends ASPxClientEditBase { + // Methods + GetInputElement(): any; + + ValidateGroup(groupName: string): any; + Validate(): void; + SetErrorText(errorText: string): any; + + GetIsValid(): boolean; + SetIsValid(isValid: boolean): any; + + // Events + Validation: ASPxClientEvent; + ValueChanged: ASPxClientEvent; + } + + export interface ASPxClientTextEdit extends ASPxClientEdit { + } + + export interface ASPxClientTextBoxBase extends ASPxClientTextEdit { + } + + export interface ASPxClientButtonEditBase extends ASPxClientTextBoxBase { + } + + export interface ASPxClientDropDownEditBase extends ASPxClientButtonEditBase { + } + + export interface ASPxClientComboBox extends ASPxClientDropDownEditBase { + GetSelectedIndex(): number; + SetSelectedIndex(index: number): void; + + SelectedIndexChanged: ASPxClientEvent; + } + + export interface ASPxClientListEdit extends ASPxClientEdit { + GetSelectedIndex(): number; + SetSelectedIndex(index: number): void; + } + + export interface ASPxClientCheckListBase extends ASPxClientListEdit { + GetItem(index: number): any; + GetItemCount(): number; + } + + export interface ASPxClientDockZone extends ASPxClientControl { + // Methods + IsVertical(): boolean; + } + + export interface ASPxDockManager { + // Events + AfterDock: ASPxClientEvent; + AfterFloat: ASPxClientEvent; + PanelClosing: ASPxClientEvent; + EndPanelDragging: ASPxClientEvent; + + // Methods + GetPanels(): ASPxClientDockPanel[]; + GetPanels(filterPredicate: Function): ASPxClientDockPanel[]; + GetPanelByUID(uniqueId: string): ASPxClientDockPanel; + } + + export interface ASPxClientGenericEvent { + AddHandler(handler: (s: S, e: E) => void): void; + RemoveHandler(handler: (s: S, e: E) => void): void; + ClearHandlers(): void; + } + + export interface ASPxClientEvent extends ASPxClientGenericEvent { + } + + export interface ASPxClientEventArgs { + } + + export interface ASPxClientCancelEventArgs { + cancel: boolean; + } + + export interface ASPxClientGridViewBatchEditStartEditingEventArgs extends ASPxClientCancelEventArgs { + focusedColumn: ASPxClientGridViewColumn; + rowValues: ASPxClientGridViewRowValues; + visibleIndex: number; + } + + export interface ASPxClientGridViewRowValues { + [columnIndex: string]: ASPxClientGridViewRowValue; + } + + export interface ASPxClientGridViewRowValue { + value: string; + text: string; + } + + export interface ASPxClientBeginCallbackEventArgs extends ASPxClientEventArgs { + // Properties + command: any; + customArgs: any; + } + + export interface ASPxClientEndCallbackEventArgs extends ASPxClientEventArgs { + } + + export interface ASPxClientPopupControlBase extends ASPxClientControl { + // Properties + IsVisible: boolean; + + // Methods + + Show(): void; + Hide(): void; + PerformCallback(): void; + + // Events + BeginCallback: ASPxClientEvent; + EndCallback: ASPxClientEvent; + Closing: ASPxClientEvent; + } + + export interface ASPxClientDockPanel extends ASPxClientPopupControlBase { + // Properties + panelUID: string; + + // Methods + MakeFloat(): any; + MakeFloat(x: number, y: number): any; + + ShowAtPos(x: number, y: number): any; + } + + export interface ASPxPopupControl extends ASPxClientPopupControlBase { + CallbackRouteValues: any; + } + + export interface ASPxClientLoadingPanel extends ASPxClientControl { + // Methods + Show(): void; + ShowInElement(htmlElement: HTMLElement): any; + Hide(): void; + } + + export interface ASPxClientCheckBox extends ASPxClientControl { + // Methods + GetChecked(): boolean; + GetCheckState(): string; + + SetChecked(isChecked: boolean): any; + SetCheckState(checkState: string): any; + + // Events + CheckedChanged: ASPxClientGenericEvent; + } + + export interface ASPxClientRadioButton extends ASPxClientCheckBox { + } + + export interface ASPxClientLabel { + // Methods + SetText(text: String): void; + } + + export enum CheckState { + Checked, + + Indeterminate, + + Unchecked + } + + export interface ASPxClientTab extends ASPxClientControl { + name: string; + index: number; + tabControl: ASPxClientPageControl; + } + + export interface ASPxClientPageControl extends ASPxClientControl { + // Methods + AdjustSize(): void; + GetActiveTab(): ASPxClientTab; + GetActiveTabIndex(): number; + SetActiveTabIndex(index: number): any; + + GetTabByName(name: string): ASPxClientTab; + GetTab(index: number): ASPxClientTab; + + SetTabContentHTML(tab: ASPxClientTab, html: string): any; + + // Events + ActiveTabChanging: ASPxClientEvent; + ActiveTabChanged: ASPxClientEvent; + } + + export interface ASPxClientTabControlTabCancelEventArgs extends ASPxClientEventArgs { + cancel: boolean; + processOnServer: boolean; + reloadContentOnCallback: boolean; + tab: ASPxClientTab; + } + + export interface ASPxClientTabControlTabEventArgs extends ASPxClientEventArgs { + tab: ASPxClientTab; + } + + export interface ASPxClientCallbackPanel extends ASPxClientControl { + // Methods + PerformCallback(): any; + + // Events + BeginCallback: ASPxClientEvent; + CallbackError: ASPxClientEvent; + EndCallback: ASPxClientEvent; + } + + export interface ASPxClientCallbackErrorEventArgs extends ASPxClientEventArgs { + handled: boolean; + message: string; + } + + export interface ASPxClientProcessingModeEventArgs extends ASPxClientEventArgs { + processOnServer: boolean; + } + + export interface ASPxClientDateEdit extends ASPxClientEdit { + GetDate(): Date; + SetDate(date: Date): any; + } + + export interface ASPxClientEditValidationEventArgs { + errorText: string; + isValid: boolean; + value: any; + } + + export interface ASPxClientGridViewColumn { + fieldName: string; + index: number; + name: string; + visible: boolean; + } + + export interface ASPxClientGridView extends ASPxClientControl { + // Properties + batchEditApi: ASPxClientGridViewBatchEditApi; + VisibleRowCount: number; + + // Methods + visibleStartIndex: number; + GetVisibleRowsOnPage(): number; + + SetFocusedRowIndex(visibleIndex: number): void; + GetFocusedRowIndex(): number; + + GetRowKey(visibleIndex: number): string; + GetRowValues(visibleIndex: number, fieldNames: string, onCallback: Function): void; + + StartEditRowByKey(key: any): void; + UpdateEdit(): void; + CancelEdit(): void; + + SelectRowOnPage(visibleIndex: number): void; + SelectRows(visibleIndices: Int32Array): void; + SelectRowsByKey(keys: Object[]): void; + GetColumn(columnIndex: number): ASPxClientGridViewColumn; + GetColumnByField(columnFieldName: string): ASPxClientGridViewColumn; + + GetSelectedRowCount(): number; + GetSelectedKeysOnPage(): Object[]; + IsRowSelectedOnPage(visibleIndex: number): boolean; + UnselectRows(): void; + + AddNewRow(): void; + DeleteRow(visibleIndex: number): void; + DeleteRowByKey(key: any): void; + + PerformCallback(args?: string): void; + GetValuesOnCustomCallback(args: any, onCompleteCallback: Function): any; + GetSelectedFieldValues(fieldNames: string, onCallback: (result: Object[]) => void): any; + + Refresh(): void; + + // Events + BeginCallback: ASPxClientEvent; + EndCallback: ASPxClientGenericEvent; + CallbackError: ASPxClientGenericEvent; + RowClick: ASPxClientGenericEvent; + RowDblClick: ASPxClientGenericEvent; + ContextMenu: ASPxClientGenericEvent; + RowDeleting: ASPxClientEvent; + SelectionChanged: ASPxClientGenericEvent; + CustomButtonClick: ASPxClientEvent; + ColumnResized: ASPxClientEvent; + BatchEditStartEditing: ASPxClientGenericEvent; + BatchEditEndEditing: ASPxClientEvent; + BatchEditRowValidating: ASPxClientEvent; + ColumnResizing: ASPxClientGenericEvent; + BatchEditConfirmShowing: ASPxClientGenericEvent; + } + + export interface ASPxClientGridViewColumnCancelEventArgs extends ASPxClientCancelEventArgs { + column: ASPxClientGridViewColumn; + } + + export interface ASPxClientGridViewRowClickEventArgs { + cancel: boolean; + htmlEvent: Event; + visibleIndex: number; + } + + export interface ASPxClientGridViewSelectionEventArgs { + isAllRecordsOnPage: boolean; + isChangedOnServer: boolean; + isSelected: boolean; + processOnServer: boolean; + visibleIndex: number; + } + + export interface ASPxClientGridViewCustomButtonEventArgs { + buttonID: string; + processOnServer: boolean; + visibleIndex: number; + } + + export interface ASPxClientGridViewContextMenuEventArgs { + htmlEvent: Event; + index: number; + objectType: string; + } + + export interface ASPxClientMenuItemClickEventArgs extends ASPxClientProcessingModeEventArgs { + htmlElement: HTMLElement; + htmlEvent: Event; + item: ASPxClientMenuItem; + } + + export interface ASPxClientPopupMenu extends ASPxClientMenuBase { + // Methods + ShowAtElement(htmlElement: HTMLElement): any; + ShowAtElementByID(id: string): any; + ShowAtPos(x: number, y: number): any; + } + + export interface ASPxClientMenuItem { + index: number; + menu: ASPxClientMenuBase; + name: string; + parent: ASPxClientMenuItem; + + GetEnabled(): boolean; + SetEnabled(enable: boolean): any; + } + + export interface ASPxClientMenuBase extends ASPxClientControl { + // Methods + GetItemByName(name: string): ASPxClientMenuItem; + + // Events + ItemClick: ASPxClientGenericEvent; + PopUp: ASPxClientEvent; + } + + export interface ASPxClientRadioButtonList extends ASPxClientCheckListBase { + } +} + +declare namespace DevExpress.XtraCharts.Web.Scripts { + export interface ASPxClientWebChartElement { + chart: ASPxClientWebChart; + } + + export interface ASPxClientWebChartRequiredElement extends ASPxClientWebChartElement { + } + + export interface ASPxClientWebChart extends ASPxClientWebChartRequiredElement { + annotations: any; + appearanceName: any; + chart: any; + chartControl: any; + crosshairOptions: any; + cssPostfix: any; + diagram: any; + legend: any; + paletteName: any; + selectionMode: any; + series: any; + showCrosshair: any; + showPointToolTip: any; + showSeriesToolTip: any; + titles: any; + toolTipController: any; + toolTipPosition: any; + } + + export interface ASPxClientWebChartHitInfo { + annotation: any; + axis: any; + axisLabelItem: any; + axisTitle: any; + chart: any; + chartTitle: any; + constantLine: any; + diagram: any; + hyperlink: any; + inAnnotation: boolean; + inAxis: boolean; + inAxisLabelItem: boolean; + inAxisTitle: boolean; + inChart: boolean; + inChartTitle: boolean; + inConstantLine: boolean; + inDiagram: boolean; + indicator: boolean; + inHyperlink: boolean; + inIndicator: boolean; + inLegend: boolean; + inNonDefaultPane: boolean; + inSeries: boolean; + inSeriesLabel: boolean; + inSeriesPoint: boolean; + inSeriesTitle: boolean; + legend: any; + nonDefaultPane: any; + series: any; + seriesLabel: any; + seriesPoint: any; + seriesTitle: any; + } + + export interface ASPxClientSeriesPoint extends ASPxClientWebChartRequiredElement { + argument: any; + color: any; + percentValue: any; + series: any; + toolTipHint: any; + toolTipText: any; + values: Object[]; + } + + export interface ASPxClientWebChartControlHotTrackEventArgs extends DevExpress.Web.Scripts.ASPxClientProcessingModeEventArgs { + absoluteX: number; + absoluteY: number; + additionalHitObject: ASPxClientSeriesPoint; + cancel: boolean; + chart: ASPxClientWebChart; + hitInfo: ASPxClientWebChartHitInfo; + hitObject: any; + htmlElement: any; + x: number; + y: number; + } + + export interface ASPxClientWebChartControl extends DevExpress.Web.Scripts.ASPxClientControl { + // Methods + SetCursor(cursor: string): any; + InCallback(): boolean; + PerformCallback(): void; + + // Events + BeginCallback: DevExpress.Web.Scripts.ASPxClientEvent; + EndCallback: DevExpress.Web.Scripts.ASPxClientEvent; + ObjectHotTracked: DevExpress.Web.Scripts.ASPxClientEvent; + ObjectSelected: DevExpress.Web.Scripts.ASPxClientEvent; + } +} diff --git a/devextreme/devextreme-15.1.3.d.ts b/devextreme/devextreme-15.1.3.d.ts index 4825e80b2e..44fd7abbd1 100644 --- a/devextreme/devextreme-15.1.3.d.ts +++ b/devextreme/devextreme-15.1.3.d.ts @@ -1,11 +1,11 @@ // Type definitions for DevExtreme 15.1.3 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -806,7 +806,7 @@ declare module DevExpress { }; } } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -937,7 +937,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -1204,7 +1204,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -2225,7 +2225,7 @@ declare module DevExpress.ui { /** A container widget used to arrange inner elements. */ export class dxBox extends CollectionWidget { constructor(element: JQuery, options?: dxBoxOptions); - constructor(element: Element, options?: dxBoxOptions); + constructor(element: Element, options?: dxBoxOptions); } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ @@ -2946,7 +2946,7 @@ declare module DevExpress.ui { lookup?: { /** Specifies whether or not a user can nullify values of a lookup column. */ allowClearing?: boolean; - /** + /** Specifies the data source providing data for a lookup column. */ dataSource?: any; @@ -3076,7 +3076,7 @@ Specifies the data source providing data for a lookup column. cancel?: string; } }; - /** + /** An array of grid columns. */ columns?: Array; @@ -3176,7 +3176,7 @@ An array of grid columns. autoExpandAll?: boolean; /** Specifies the message displayed in a group row when the corresponding group is continued from the previous page. */ groupContinuedMessage?: string; - /** + /** Specifies the message displayed in a group row when the corresponding group continues on the next page. */ groupContinuesMessage?: string; @@ -3556,7 +3556,7 @@ Specifies the message displayed in a group row when the corresponding group cont removeRow(rowIndex: number): void; /** Saves changes made in a grid. */ saveEditData(): void; - /** + /** Searches grid records by a search string. */ searchByText(text: string): void; @@ -3716,7 +3716,7 @@ Searches grid records by a search string. updateDimensions(): void; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -4743,7 +4743,7 @@ declare module DevExpress.viz.charts { /** Specifies whether a single series or multiple series can be selected in the chart. */ seriesSelectionMode?: string; /** Specifies how the chart must behave when series point labels overlap. */ - resolveLabelOverlapping?: string; + resolveLabelOverlapping?: string; } export interface Legend extends AdvancedLegend { /** Specifies whether the legend is located outside or inside the chart's plot. */ @@ -4938,7 +4938,7 @@ declare module DevExpress.viz.charts { onLegendClick?: any; legendClick?: any; /** Specifies how the chart must behave when series point labels overlap. */ - resolveLabelOverlapping?: string; + resolveLabelOverlapping?: string; } /** A circular chart widget for HTML JS applications. */ export class dxPieChart extends BaseChart { @@ -4948,7 +4948,7 @@ declare module DevExpress.viz.charts { getSeries(): PieSeries; } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { export interface Border { /** Sets a border color for a selected series. */ color?: string; @@ -5139,7 +5139,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -5447,7 +5447,7 @@ declare module DevExpress.viz.gauges { values(values: Array): void; } } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Area object. */ export interface Area { /** Contains the element type. */ @@ -5720,7 +5720,7 @@ declare module DevExpress.viz.map { zoomFactor(zoomFactor: number): void; } } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -5740,7 +5740,7 @@ declare module DevExpress.viz.rangeSelector { behavior?: { /** Indicates whether or not you can swap sliders. */ allowSlidersSwap?: boolean; - /** + /** Indicates whether or not animation is enabled. */ animationEnabled?: boolean; @@ -5853,7 +5853,7 @@ Indicates whether or not animation is enabled. maxRange?: any; /** Specifies the number of minor ticks between neighboring major ticks. */ minorTickCount?: number; - /** + /** Specifies an interval between minor ticks. */ minorTickInterval?: any; @@ -5989,7 +5989,7 @@ Specifies an interval between minor ticks. setSelectedRange(selectedRange: { startValue: any; endValue: any; }): void; } } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. @@ -6400,4 +6400,4 @@ interface JQuery { dxSparkline(options?: DevExpress.viz.sparklines.dxSparklineOptions): JQuery; dxSparkline(methodName: string, ...params: any[]): any; dxSparkline(methodName: "instance"): DevExpress.viz.sparklines.dxSparkline; -} \ No newline at end of file +} diff --git a/devextreme/devextreme-15.1.4.d.ts b/devextreme/devextreme-15.1.4.d.ts index 266da3b125..9357c6da07 100644 --- a/devextreme/devextreme-15.1.4.d.ts +++ b/devextreme/devextreme-15.1.4.d.ts @@ -1,11 +1,11 @@ // Type definitions for DevExtreme 15.1.4 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -822,7 +822,7 @@ declare module DevExpress { }; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -1843,7 +1843,7 @@ declare module DevExpress.ui { /** A container widget used to arrange inner elements. */ export class dxBox extends CollectionWidget { constructor(element: JQuery, options?: dxBoxOptions); - constructor(element: Element, options?: dxBoxOptions); + constructor(element: Element, options?: dxBoxOptions); } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ @@ -2226,7 +2226,7 @@ interface JQuery { dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2460,7 +2460,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2592,7 +2592,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: Date; @@ -2944,7 +2944,7 @@ declare module DevExpress.ui { lookup?: { /** Specifies whether or not a user can nullify values of a lookup column. */ allowClearing?: boolean; - /** + /** Specifies the data source providing data for a lookup column. */ dataSource?: any; @@ -3074,7 +3074,7 @@ Specifies the data source providing data for a lookup column. cancel?: string; } }; - /** + /** An array of grid columns. */ columns?: Array; @@ -3174,7 +3174,7 @@ An array of grid columns. autoExpandAll?: boolean; /** Specifies the message displayed in a group row when the corresponding group is continued from the previous page. */ groupContinuedMessage?: string; - /** + /** Specifies the message displayed in a group row when the corresponding group continues on the next page. */ groupContinuesMessage?: string; @@ -3554,7 +3554,7 @@ Specifies the message displayed in a group row when the corresponding group cont removeRow(rowIndex: number): void; /** Saves changes made in a grid. */ saveEditData(): void; - /** + /** Searches grid records by a search string. */ searchByText(text: string): void; @@ -3761,7 +3761,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4028,7 +4028,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { export interface Border { /** Sets a border color for a selected series. */ color?: string; @@ -4221,7 +4221,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5248,7 +5248,7 @@ declare module DevExpress.viz.charts { /** Specifies whether a single series or multiple series can be selected in the chart. */ seriesSelectionMode?: string; /** Specifies how the chart must behave when series point labels overlap. */ - resolveLabelOverlapping?: string; + resolveLabelOverlapping?: string; } export interface Legend extends AdvancedLegend { /** Specifies whether the legend is located outside or inside the chart's plot. */ @@ -5443,7 +5443,7 @@ declare module DevExpress.viz.charts { onLegendClick?: any; legendClick?: any; /** Specifies how the chart must behave when series point labels overlap. */ - resolveLabelOverlapping?: string; + resolveLabelOverlapping?: string; } /** A circular chart widget for HTML JS applications. */ export class dxPieChart extends BaseChart { @@ -5464,7 +5464,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -5783,7 +5783,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -5803,7 +5803,7 @@ declare module DevExpress.viz.rangeSelector { behavior?: { /** Indicates whether or not you can swap sliders. */ allowSlidersSwap?: boolean; - /** + /** Indicates whether or not animation is enabled. */ animationEnabled?: boolean; @@ -5916,7 +5916,7 @@ Indicates whether or not animation is enabled. maxRange?: any; /** Specifies the number of minor ticks between neighboring major ticks. */ minorTickCount?: number; - /** + /** Specifies an interval between minor ticks. */ minorTickInterval?: any; @@ -6057,7 +6057,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Area object. */ export interface Area { /** Contains the element type. */ @@ -6335,7 +6335,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. diff --git a/devextreme/devextreme-15.1.5.d.ts b/devextreme/devextreme-15.1.5.d.ts index aff7108887..fd6f0ea1b6 100644 --- a/devextreme/devextreme-15.1.5.d.ts +++ b/devextreme/devextreme-15.1.5.d.ts @@ -1,11 +1,11 @@ // Type definitions for DevExtreme 15.1.5 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -824,7 +824,7 @@ declare module DevExpress { }; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -1848,7 +1848,7 @@ declare module DevExpress.ui { /** A container widget used to arrange inner elements. */ export class dxBox extends CollectionWidget { constructor(element: JQuery, options?: dxBoxOptions); - constructor(element: Element, options?: dxBoxOptions); + constructor(element: Element, options?: dxBoxOptions); } export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { /** Specifies the collection of rows for the grid used to position layout elements. */ @@ -2231,7 +2231,7 @@ interface JQuery { dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2465,7 +2465,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2597,7 +2597,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: Date; @@ -2951,7 +2951,7 @@ declare module DevExpress.ui { lookup?: { /** Specifies whether or not a user can nullify values of a lookup column. */ allowClearing?: boolean; - /** + /** Specifies the data source providing data for a lookup column. */ dataSource?: any; @@ -3081,7 +3081,7 @@ Specifies the data source providing data for a lookup column. cancel?: string; } }; - /** + /** An array of grid columns. */ columns?: Array; @@ -3181,7 +3181,7 @@ An array of grid columns. autoExpandAll?: boolean; /** Specifies the message displayed in a group row when the corresponding group is continued from the previous page. */ groupContinuedMessage?: string; - /** + /** Specifies the message displayed in a group row when the corresponding group continues on the next page. */ groupContinuesMessage?: string; @@ -3563,7 +3563,7 @@ Specifies the message displayed in a group row when the corresponding group cont removeRow(rowIndex: number): void; /** Saves changes made in a grid. */ saveEditData(): void; - /** + /** Searches grid records by a search string. */ searchByText(text: string): void; @@ -3774,7 +3774,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4041,7 +4041,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { export interface Border { /** Sets a border color for a selected series. */ color?: string; @@ -4234,7 +4234,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5263,7 +5263,7 @@ declare module DevExpress.viz.charts { /** Specifies whether a single series or multiple series can be selected in the chart. */ seriesSelectionMode?: string; /** Specifies how the chart must behave when series point labels overlap. */ - resolveLabelOverlapping?: string; + resolveLabelOverlapping?: string; } export interface Legend extends AdvancedLegend { /** Specifies whether the legend is located outside or inside the chart's plot. */ @@ -5458,7 +5458,7 @@ declare module DevExpress.viz.charts { onLegendClick?: any; legendClick?: any; /** Specifies how the chart must behave when series point labels overlap. */ - resolveLabelOverlapping?: string; + resolveLabelOverlapping?: string; } /** A circular chart widget for HTML JS applications. */ export class dxPieChart extends BaseChart { @@ -5479,7 +5479,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -5810,7 +5810,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -5830,7 +5830,7 @@ declare module DevExpress.viz.rangeSelector { behavior?: { /** Indicates whether or not you can swap sliders. */ allowSlidersSwap?: boolean; - /** + /** Indicates whether or not animation is enabled. */ animationEnabled?: boolean; @@ -5943,7 +5943,7 @@ Indicates whether or not animation is enabled. maxRange?: any; /** Specifies the number of minor ticks between neighboring major ticks. */ minorTickCount?: number; - /** + /** Specifies an interval between minor ticks. */ minorTickInterval?: any; @@ -6084,7 +6084,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Area object. */ export interface Area { /** Contains the element type. */ @@ -6374,7 +6374,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. diff --git a/devextreme/devextreme-15.1.6.d.ts b/devextreme/devextreme-15.1.6.d.ts index fdb7df96ca..84a5038888 100644 --- a/devextreme/devextreme-15.1.6.d.ts +++ b/devextreme/devextreme-15.1.6.d.ts @@ -1,11 +1,11 @@ // Type definitions for DevExtreme 15.1.6 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -845,7 +845,7 @@ declare module DevExpress { export function registerPalette(paletteName: string, palette: Object): void; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -2315,7 +2315,7 @@ interface JQuery { dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2549,7 +2549,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2681,7 +2681,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: Date; @@ -3041,7 +3041,7 @@ declare module DevExpress.ui { lookup?: { /** Specifies whether or not a user can nullify values of a lookup column. */ allowClearing?: boolean; - /** + /** * Specifies the data source providing data for a lookup column. */ dataSource?: any; @@ -3171,7 +3171,7 @@ declare module DevExpress.ui { cancel?: string; } }; - /** + /** * An array of grid columns. */ columns?: dxDataGridColumn[]; @@ -3271,7 +3271,7 @@ declare module DevExpress.ui { autoExpandAll?: boolean; /** Specifies the message displayed in a group row when the corresponding group is continued from the previous page. */ groupContinuedMessage?: string; - /** + /** * Specifies the message displayed in a group row when the corresponding group continues on the next page. */ groupContinuesMessage?: string; @@ -3653,7 +3653,7 @@ declare module DevExpress.ui { removeRow(rowIndex: number): void; /** Saves changes made in a grid. */ saveEditData(): void; - /** + /** * Searches grid records by a search string. */ searchByText(text: string): void; @@ -3864,7 +3864,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4133,7 +4133,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { /** * Applies a theme for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. @@ -4356,7 +4356,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5601,7 +5601,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -5932,7 +5932,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -5952,7 +5952,7 @@ declare module DevExpress.viz.rangeSelector { behavior?: { /** Indicates whether or not you can swap sliders. */ allowSlidersSwap?: boolean; - /** + /** Indicates whether or not animation is enabled. */ animationEnabled?: boolean; @@ -6067,7 +6067,7 @@ Indicates whether or not animation is enabled. maxRange?: any; /** Specifies the number of minor ticks between neighboring major ticks. */ minorTickCount?: number; - /** + /** Specifies an interval between minor ticks. */ minorTickInterval?: any; @@ -6208,7 +6208,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Area object. */ export interface Area { /** Contains the element type. */ @@ -6498,7 +6498,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. diff --git a/devextreme/devextreme-15.1.7.d.ts b/devextreme/devextreme-15.1.7.d.ts index fc593db200..a2eeb19894 100644 --- a/devextreme/devextreme-15.1.7.d.ts +++ b/devextreme/devextreme-15.1.7.d.ts @@ -1,11 +1,11 @@ // Type definitions for DevExtreme 15.1.7 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -848,7 +848,7 @@ declare module DevExpress { export function registerPalette(paletteName: string, palette: Object): void; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -2267,7 +2267,7 @@ interface JQuery { dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2503,7 +2503,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2639,7 +2639,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: Date; @@ -3036,7 +3036,7 @@ declare module DevExpress.ui { showInColumnChooser?: boolean; /** Specifies the identifier of the column. */ name?: string; - // NOTE https://github.com/borisyankov/DefinitelyTyped/pull/5590 + // NOTE https://github.com/DefinitelyTyped/DefinitelyTyped/pull/5590 text?: string; value?: any; } @@ -3823,7 +3823,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4092,7 +4092,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { /** * Applies a theme for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. @@ -4315,7 +4315,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5556,7 +5556,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -5887,7 +5887,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -6159,7 +6159,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Area object. */ export interface Area { /** Contains the element type. */ @@ -6449,7 +6449,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. diff --git a/devextreme/devextreme-15.1.8.d.ts b/devextreme/devextreme-15.1.8.d.ts index 83e69504be..f0c3eeac34 100644 --- a/devextreme/devextreme-15.1.8.d.ts +++ b/devextreme/devextreme-15.1.8.d.ts @@ -1,11 +1,11 @@ // Type definitions for DevExtreme 15.1.8 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -852,7 +852,7 @@ declare module DevExpress { export function registerPalette(paletteName: string, palette: Object): void; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -2278,7 +2278,7 @@ interface JQuery { dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2514,7 +2514,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2650,7 +2650,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: Date; @@ -3831,7 +3831,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4100,7 +4100,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { /** * Applies a theme for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. @@ -4323,7 +4323,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5564,7 +5564,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -5895,7 +5895,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -6167,7 +6167,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Area object. */ export interface Area { /** Contains the element type. */ @@ -6457,7 +6457,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. @@ -6577,4 +6577,4 @@ interface JQuery { dxSparkline(options?: DevExpress.viz.sparklines.dxSparklineOptions): JQuery; dxSparkline(methodName: string, ...params: any[]): any; dxSparkline(methodName: "instance"): DevExpress.viz.sparklines.dxSparkline; -} \ No newline at end of file +} diff --git a/devextreme/devextreme-15.2.4.d.ts b/devextreme/devextreme-15.2.4.d.ts index e0777077c8..a48987596b 100644 --- a/devextreme/devextreme-15.2.4.d.ts +++ b/devextreme/devextreme-15.2.4.d.ts @@ -1,11 +1,11 @@ // Type definitions for DevExtreme 15.2.4 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -824,7 +824,7 @@ declare module DevExpress { export function registerPalette(paletteName: string, palette: Object): void; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -2376,7 +2376,7 @@ interface JQuery { dxForm(options: DevExpress.ui.dxForm): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2613,7 +2613,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2809,7 +2809,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: Date; @@ -4109,7 +4109,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4391,7 +4391,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { /** * Applies a theme for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. @@ -4627,7 +4627,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5858,7 +5858,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -6275,7 +6275,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -6563,7 +6563,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Layer object. */ export interface MapLayer { /** The name of the layer. */ @@ -7202,7 +7202,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. @@ -7322,4 +7322,4 @@ interface JQuery { dxSparkline(options?: DevExpress.viz.sparklines.dxSparklineOptions): JQuery; dxSparkline(methodName: string, ...params: any[]): any; dxSparkline(methodName: "instance"): DevExpress.viz.sparklines.dxSparkline; -} \ No newline at end of file +} diff --git a/devextreme/devextreme-15.2.5.d.ts b/devextreme/devextreme-15.2.5.d.ts new file mode 100644 index 0000000000..892b4f417c --- /dev/null +++ b/devextreme/devextreme-15.2.5.d.ts @@ -0,0 +1,7383 @@ +// Type definitions for DevExtreme 15.2.5 +// Project: http://js.devexpress.com/ +// Definitions by: DevExpress Inc. +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +declare namespace DevExpress { + /** A mixin that provides a capability to fire and subscribe to events. */ + export interface EventsMixin { + /** Subscribes to a specified event. */ + on(eventName: string, eventHandler: Function): T; + /** Subscribes to the specified events. */ + on(events: { [eventName: string]: Function; }): T; + /** Detaches all event handlers from the specified event. */ + off(eventName: string): Object; + /** Detaches a particular event handler from the specified event. */ + off(eventName: string, eventHandler: Function): T; + } + /** An object that serves as a namespace for the methods required to perform validation. */ + export module validationEngine { + export interface IValidator { + validate(): ValidatorValidationResult; + reset(): void; + } + export interface ValidatorValidationResult { + isValid: boolean; + name?: string; + value: any; + brokenRule: any; + validationRules: any[]; + } + export interface ValidationGroupValidationResult { + isValid: boolean; + brokenRules: any[]; + validators: IValidator[]; + } + export interface GroupConfig extends EventsMixin { + group: any; + validators: IValidator[]; + validate(): ValidationGroupValidationResult; + reset(): void; + } + /** Provides access to the object that represents the specified validation group. */ + export function getGroupConfig(group: any): GroupConfig + /** Provides access to the object that represents the default validation group. */ + export function getGroupConfig(): GroupConfig + /** Validates rules of the validators that belong to the specified validation group. */ + export function validateGroup(group: any): ValidationGroupValidationResult; + /** Validates rules of the validators that belong to the default validation group. */ + export function validateGroup(): ValidationGroupValidationResult; + /** Resets the values and validation result of the editors that belong to the specified validation group. */ + export function resetGroup(group: any): void; + /** Resets the values and validation result of the editors that belong to the default validation group. */ + export function resetGroup(): void; + /** Validates the rules that are defined within the dxValidator objects that are registered for the specified ViewModel. */ + export function validateModel(model: Object): ValidationGroupValidationResult; + /** Registers all the dxValidator objects by which the fields of the specified ViewModel are extended. */ + export function registerModelForValidation(model: Object) : void; + } + export var hardwareBackButton: JQueryCallback; + /** Processes the hardware back button click. */ + export function processHardwareBackButton(): void; + /** Hides the last displayed overlay widget. */ + export function hideTopOverlay(): boolean; + /** Specifies whether or not the entire application/site supports right-to-left representation. */ + export var rtlEnabled: boolean; + /** Registers a new component in the DevExpress.ui namespace as a jQuery plugin, Angular directive and Knockout binding. */ + export function registerComponent(name: string, componentClass: Object): void; + /** Registers a new component in the specified namespace as a jQuery plugin, Angular directive and Knockout binding. */ + export function registerComponent(name: string, namespace: Object, componentClass: Object): void; + export function requestAnimationFrame(callback: Function): number; + export function cancelAnimationFrame(requestID: number): void; + /** Custom Knockout binding that links an HTML element with a specific action. */ + export class Action { } + /** Used to get URLs that vary in a locally running application and the application running on production. */ + export class EndpointSelector { + constructor(options: { + [key: string]: { + local?: string; + production?: string; + } + }); + /** Returns a local or a productional URL depending on how the application is currently running. */ + urlFor(key: string): string; + } + /** An object that serves as a namespace for the methods that are used to animate UI elements. */ + export module fx { + /** Defines animation options. */ + export interface AnimationOptions { + /** A function called after animation is completed. */ + complete?: (element: JQuery, config: AnimationOptions) => void; + /** A number specifying wait time before animation execution. */ + delay?: number; + /** A number specifying the time period to wait before the animation of the next stagger item starts. */ + staggerDelay?: number; + /** A number specifying the time in milliseconds spent on animation. */ + duration?: number; + /** A string specifying the type of an easing function used for animation. */ + easing?: string; + /** Specifies the initial animation state. */ + from?: any; + /** A function called before animation is started. */ + start?: (element: JQuery, config: AnimationOptions) => void; + /** Specifies a final animation state. */ + to?: any; + /** A string value specifying the animation type. */ + type?: string; + /** Specifies the animation direction for the "slideIn" and "slideOut" animation types. */ + direction?: string; + } + /** Animates the specified element. */ + export function animate(element: HTMLElement, config: AnimationOptions): Object; + /** Returns a value indicating whether the specified element is being animated. */ + export function isAnimating(element: HTMLElement): boolean; + /** Stops the animation. */ + export function stop(element: HTMLElement, jumpToEnd: boolean): void; + } + /** The manager that performs several specified animations at a time. */ + export class TransitionExecutor { + /** Deletes all the animations registered in the Transition Executor by using the enter(elements, animation) and leave(elements, animation) methods. */ + reset(): void; + /** Registers a set of elements that should be animated as "entering" using the specified animation configuration. */ + enter(elements: JQuery, animation: any): void; + /** Registers a set of elements that should be animated as "leaving" using the specified animation configuration. */ + leave(elements: JQuery, animation: any): void; + /** Starts all the animations registered using the enter(elements, animation) and leave(elements, animation) methods beforehand. */ + start(config: Object): JQueryPromise; + /** Stops all started animations. */ + stop(): void; + } + export class AnimationPresetCollection { + /** Resets all the changes made in the animation repository. */ + resetToDefaults(): void; + /** Deletes the specified animation or clears all the animation repository, if an animation name is not passed. */ + clear(name: string): void; + /** Adds the specified animation preset to the animation repository by the specified name. */ + registerPreset(name: string, config: any): void; + /** Applies the changes made in the animation repository. */ + applyChanges(): void; + /** Returns the configuration of the animation found in the animation repository by the specified name for the current device. */ + getPreset(name: string): void; + /** Registers predefined animations in the animation repository. */ + registerDefaultPresets(): void; + } + /** A repository of animations. */ + export var animationPresets: AnimationPresetCollection; + /** The device object defines the device on which the application is running. */ + export interface Device { + /** Indicates whether or not the device platform is Android. */ + android?: boolean; + /** Specifies the type of the device on which the application is running. */ + deviceType?: string; + /** Indicates whether or not the device platform is generic, which means that the application will look and behave according to a generic "light" or "dark" theme. */ + generic?: boolean; + /** Indicates whether or not the device platform is iOS. */ + ios?: boolean; + /** Indicates whether or not the device type is 'phone'. */ + phone?: boolean; + /** Specifies the platform of the device on which the application is running. */ + platform?: string; + /** Indicates whether or not the device type is 'tablet'. */ + tablet?: boolean; + /** Specifies an array with the major and minor versions of the device platform. */ + version?: Array; + /** Indicates whether or not the device platform is Windows. */ + win?: boolean; + /** Specifies a performance grade of the current device. */ + grade?: string; + } + export class Devices implements EventsMixin { + constructor(options: { window: Window }); + /** Overrides actual device information to force the application to operate as if it was running on the specified device. */ + current(deviceName: any): void; + /** Returns information about the current device. */ + current(): Device; + orientationChanged: JQueryCallback; + /** Returns the current device orientation. */ + orientation(): string; + /** Returns real information about the current device regardless of the value passed to the devices.current(deviceName) method. */ + real(): Device; + on(eventName: "orientationChanged", eventHandler: (e: { orientation: string }) => void): Devices; + on(eventName: string, eventHandler: Function): Devices; + on(events: { [eventName: string]: Function; }): Devices; + off(eventName: "orientationChanged"): Devices; + off(eventName: string): Devices; + off(eventName: "orientationChanged", eventHandler: (e: { orientation: string }) => void): Devices; + off(eventName: string, eventHandler: Function): Devices; + } + /** An object that serves as a namespace for the methods and events specifying information on the current device. */ + export var devices: Devices; + /** The position object specifies the widget positioning options. */ + export interface PositionOptions { + /** The target element position that the widget is positioned against. */ + at?: string; + /** The element within which the widget is positioned. */ + boundary?: Element; + /** A string value holding horizontal and vertical offset from the window's boundaries. */ + boundaryOffset?: string; + /** Specifies how to move the widget if it overflows the screen. */ + collision?: any; + /** The position of the widget to align against the target element. */ + my?: string; + /** The target element that the widget is positioned against. */ + of?: HTMLElement; + /** A string value holding horizontal and vertical offset in pixels, separated by a space (e.g., "5 -10"). */ + offset?: string; + } + export interface ComponentOptions { + /** A handler for the initialized event. */ + onInitialized?: Function; + /** A handler for the optionChanged event. */ + onOptionChanged?: Function; + /** A handler for the disposing event. */ + onDisposing?: Function; + } + /** A base class for all components and widgets. */ + export class Component { + constructor(options?: ComponentOptions) + /** Prevents the component from refreshing until the endUpdate method is called. */ + beginUpdate(): void; + /** Enables the component to refresh after the beginUpdate method call. */ + endUpdate(): void; + /** Returns an instance of this component class. */ + instance(): Component; + /** Returns the configuration options of this component. */ + option(): { + [optionKey: string]: any; + }; + /** Sets one or more options of this component. */ + option(options: { + [optionKey: string]: any; + }): void; + /** Gets the value of the specified configuration option of this component. */ + option(optionName: string): any; + /** Sets a value to the specified configuration option of this component. */ + option(optionName: string, optionValue: any): void; + } + export interface DOMComponentOptions extends ComponentOptions { + /** Specifies whether or not the current component supports a right-to-left representation. */ + rtlEnabled?: boolean; + /** Specifies the height of the widget. */ + height?: any; + /** Specifies the width of the widget. */ + width?: any; + } + /** A base class for all components. */ + export class DOMComponent extends Component { + constructor(element: JQuery, options?: DOMComponentOptions); + constructor(element: HTMLElement, options?: DOMComponentOptions); + /** Returns the root HTML element of the widget. */ + element(): JQuery; + /** Specifies the device-dependent default configuration options for this component. */ + static defaultOptions(rule: { + device?: any; + options?: any; + }): void; + } + export module data { + export interface ODataError extends Error { + httpStatus?: number; + errorDetails?: any; + } + export interface StoreOptions { + /** A handler for the modified event. */ + onModified?: () => void; + /** A handler for the modifying event. */ + onModifying?: () => void; + /** A handler for the removed event. */ + onRemoved?: (key: any) => void; + /** A handler for the removing event. */ + onRemoving?: (key: any) => void; + /** A handler for the updated event. */ + onUpdated?: (key: any, values: Object) => void; + /** A handler for the updating event. */ + onUpdating?: (key: any, values: Object) => void; + /** A handler for the loaded event. */ + onLoaded?: (result: Array) => void; + /** A handler for the loading event. */ + onLoading?: (loadOptions: LoadOptions) => void; + /** A handler for the inserted event. */ + onInserted?: (values: Object, key: any) => void; + /** A handler for the inserting event. */ + onInserting?: (values: Object) => void; + /** Specifies the function called when the Store causes an error. */ + errorHandler?: (e: Error) => void; + /** Specifies the key properties within the data associated with the Store. */ + key?: any; + } + export interface LoadOptions { + filter?: Object; + sort?: Object; + select?: Object; + expand?: Object; + group?: Object; + skip?: number; + take?: number; + userData?: Object; + requireTotalCount?: boolean; + } + /** The base class for all Stores. */ + export class Store implements EventsMixin { + constructor(options?: StoreOptions); + /** Returns the data item specified by the key. */ + byKey(key: any): JQueryPromise; + /** Adds an item to the data associated with this Store. */ + insert(values: Object): JQueryPromise; + /** Returns the key expression specified via the key configuration option. */ + key(): any; + /** Returns the key of the Store item that matches the specified object. */ + keyOf(obj: Object): any; + /** Starts loading data. */ + load(obj?: LoadOptions): JQueryPromise; + /** Removes the data item specified by the key. */ + remove(key: any): JQueryPromise; + /** Obtains the total count of items that will be returned by the load() function. */ + totalCount(options?: { + filter?: Object; + group?: Object; + }): JQueryPromise; + /** Updates the data item specified by the key. */ + update(key: any, values: Object): JQueryPromise; + on(eventName: "removing", eventHandler: (key: any) => void): Store; + on(eventName: "removed", eventHandler: (key: any) => void): Store; + on(eventName: "updating", eventHandler: (key: any, values: Object) => void): Store; + on(eventName: "updated", eventHandler: (key: any, values: Object) => void): Store; + on(eventName: "inserting", eventHandler: (values: Object) => void): Store; + on(eventName: "inserted", eventHandler: (values: Object, key: any) => void): Store; + on(eventName: "modifying", eventHandler: () => void): Store; + on(eventName: "modified", eventHandler: () => void): Store; + on(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; + on(eventName: "loaded", eventHandler: (result: Array) => void): Store; + on(eventName: string, eventHandler: Function): Store; + on(events: { [eventName: string]: Function; }): Store; + off(eventName: "removing"): Store; + off(eventName: "removed"): Store; + off(eventName: "updating"): Store; + off(eventName: "updated"): Store; + off(eventName: "inserting"): Store; + off(eventName: "inserted"): Store; + off(eventName: "modifying"): Store; + off(eventName: "modified"): Store; + off(eventName: "loading"): Store; + off(eventName: "loaded"): Store; + off(eventName: string): Store; + off(eventName: "removing", eventHandler: (key: any) => void): Store; + off(eventName: "removed", eventHandler: (key: any) => void): Store; + off(eventName: "updating", eventHandler: (key: any, values: Object) => void): Store; + off(eventName: "updated", eventHandler: (key: any, values: Object) => void): Store; + off(eventName: "inserting", eventHandler: (values: Object) => void): Store; + off(eventName: "inserted", eventHandler: (values: Object, key: any) => void): Store; + off(eventName: "modifying", eventHandler: () => void): Store; + off(eventName: "modified", eventHandler: () => void): Store; + off(eventName: "loading", eventHandler: (loadOptions: LoadOptions) => void): Store; + off(eventName: "loaded", eventHandler: (result: Array) => void): Store; + off(eventName: string, eventHandler: Function): Store; + } + export interface ArrayStoreOptions extends StoreOptions { + /** Specifies the array associated with this Store. */ + data?: Array; + } + /** A Store accessing an in-memory array. */ + export class ArrayStore extends Store { + constructor(options?: ArrayStoreOptions); + /** Clears all data associated with the current ArrayStore. */ + clear(): void; + /** Creates the Query object for the underlying array. */ + createQuery(): Query; + } + interface Promise { + then(doneFn?: Function, failFn?: Function, progressFn?: Function): Promise; + } + export interface CustomStoreOptions extends StoreOptions { + /** The user implementation of the byKey(key, extraOptions) method. */ + byKey?: (key: any) => Promise; + /** The user implementation of the insert(values) method. */ + insert?: (values: Object) => Promise; + /** The user implementation of the load(options) method. */ + load?: (options?: LoadOptions) => Promise; + /** The user implementation of the remove(key) method. */ + remove?: (key: any) => Promise; + /** The user implementation of the totalCount(options) method. */ + totalCount?: (options?: { + filter?: Object; + group?: Object; + }) => Promise; + /** The user implementation of the update(key, values) method. */ + update?: (key: any, values: Object) => Promise; + } + /** A Store object that enables you to implement your own data access logic. */ + export class CustomStore extends Store { + constructor(options: CustomStoreOptions); + } + export interface DataSourceOptions { + /** Specifies data filtering conditions. */ + filter?: Object; + /** Specifies data grouping conditions. */ + group?: Object; + /** The item mapping function. */ + map?: (record: any) => any; + /** Specifies the maximum number of items the page can contain. */ + pageSize?: number; + /** Specifies whether a DataSource loads data by pages, or all items at once. */ + paginate?: boolean; + /** The data post processing function. */ + postProcess?: (data: any[]) => any[]; + /** Specifies a value by which the required items are searched. */ + searchExpr?: Object; + /** Specifies the comparison operation used to search for the required items. */ + searchOperation?: string; + /** Specifies the value to which the search expression is compared. */ + searchValue?: Object; + /** Specifies the initial select option value. */ + select?: Object; + /** An array of the strings that represent the names of the navigation properties to be loaded simultaneously with the OData store's entity. */ + expand?: Object; + /** Specifies whether or not the DataSource instance requests the total count of items available in the storage. */ + requireTotalCount?: boolean; + /** Specifies the initial sort option value. */ + sort?: Object; + /** Specifies the underlying Store instance used to access data. */ + store?: any; + /** A handler for the changed event. */ + onChanged?: () => void; + /** A handler for the loadingChanged event. */ + onLoadingChanged?: (isLoading: boolean) => void; + /** A handler for the loadError event. */ + onLoadError?: (e?: Error) => void; + } + /** An object that provides access to a data web service or local data storage for collection container widgets. */ + export class DataSource implements EventsMixin { + constructor(url: string); + constructor(data: Array); + constructor(options: CustomStoreOptions); + constructor(options: DataSourceOptions); + /** Disposes all resources associated with this DataSource. */ + dispose(): void; + /** Returns the current filter option value. */ + filter(): Object; + /** Sets the filter option value. */ + filter(filterExpr: Object): void; + /** Returns the current group option value. */ + group(): Object; + /** Sets the group option value. */ + group(groupExpr: Object): void; + /** Indicates whether or not the current page contains fewer items than the number of items specified by the pageSize configuration option. */ + isLastPage(): boolean; + /** Indicates whether or not at least one load() method execution has successfully finished. */ + isLoaded(): boolean; + /** Indicates whether or not the DataSource is currently being loaded. */ + isLoading(): boolean; + /** Returns the array of items currently operated by the DataSource. */ + items(): Array; + /** Returns the key expression. */ + key(): any; + /** Starts loading data. */ + load(): JQueryPromise>; + /** Clears currently loaded DataSource items and calls the load() method. */ + reload(): JQueryPromise>; + /** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */ + loadOptions(): Object; + /** Returns the current pageSize option value. */ + pageSize(): number; + /** Sets the pageSize option value. */ + pageSize(value: number): void; + /** Specifies the index of the currently loaded page. */ + pageIndex(): number; + /** Specifies the index of the page to be loaded during the next load() method execution. */ + pageIndex(newIndex: number): void; + /** Returns the current paginate option value. */ + paginate(): boolean; + /** Sets the paginate option value. */ + paginate(value: boolean): void; + /** Returns the searchExpr option value. */ + searchExpr(): Object; + /** Sets the searchExpr option value. */ + searchExpr(expr: Object): void; + /** Returns the currently specified search operation. */ + searchOperation(): string; + /** Sets the current search operation. */ + searchOperation(op: string): void; + /** Returns the searchValue option value. */ + searchValue(): Object; + /** Sets the searchValue option value. */ + searchValue(value: Object): void; + /** Returns the current select option value. */ + select(): Object; + /** Sets the select option value. */ + select(expr: Object): void; + /** Returns the current requireTotalCount option value. */ + requireTotalCount(): boolean; + /** Sets the requireTotalCount option value. */ + requireTotalCount(value: boolean): void; + /** Returns the current sort option value. */ + sort(): Object; + /** Sets the sort option value. */ + sort(sortExpr: Object): void; + /** Returns the underlying Store instance. */ + store(): Store; + /** Returns the number of data items available in an underlying Store after the last load() operation without paging. */ + totalCount(): number; + on(eventName: "loadingChanged", eventHandler: (isLoading: boolean) => void): DataSource; + on(eventName: "loadError", eventHandler: (e?: Error) => void): DataSource; + on(eventName: "changed", eventHandler: () => void): DataSource; + on(eventName: string, eventHandler: Function): DataSource; + on(events: { [eventName: string]: Function; }): DataSource; + off(eventName: "loadingChanged"): DataSource; + off(eventName: "loadError"): DataSource; + off(eventName: "changed"): DataSource; + off(eventName: string): DataSource; + off(eventName: "loadingChanged", eventHandler: (isLoading: boolean) => void): DataSource; + off(eventName: "loadError", eventHandler: (e?: Error) => void): DataSource; + off(eventName: "changed", eventHandler: () => void): DataSource; + off(eventName: string, eventHandler: Function): DataSource; + } + /** An object used to work with primitive data types not supported by JavaScript when accessing an OData web service. */ + export class EdmLiteral { + /** Creates an EdmLiteral instance and assigns the specified value to it. */ + constructor(value: string); + /** Returns a string representation of the value associated with this EdmLiteral object. */ + valueOf(): string; + } + /** An object used to generate and hold the GUID. */ + export class Guid { + /** Creates a new Guid instance that holds the specified GUID. */ + constructor(value: string); + /** Creates a new Guid instance holding the generated GUID. */ + constructor(); + /** Returns a string representation of the Guid instance. */ + toString(): string; + /** Returns a string representation of the Guid instance. */ + valueOf(): string; + } + export interface LocalStoreOptions extends ArrayStoreOptions { + /** Specifies the time (in miliseconds) after the change operation, before the data is flushed. */ + flushInterval?: number; + /** Specifies whether the data is flushed immediatelly after each change operation, or after the delay specified via the flushInterval option. */ + immediate?: boolean; + /** The unique identifier used to distinguish the data within the HTML5 Web Storage. */ + name?: string; + } + /** A Store providing access to the HTML5 Web Storage. */ + export class LocalStore extends ArrayStore { + constructor(options?: LocalStoreOptions); + /** Removes all data associated with this Store. */ + clear(): void; + } + export interface ODataContextOptions extends ODataStoreOptions { + /** Specifies the list of entities to be accessed via the ODataContext. */ + entities?: Object; + /** Specifies the function called if the ODataContext causes an error. */ + errorHandler?: (e: Error) => void; + } + /** Provides access to the entire OData service. */ + export class ODataContext { + constructor(options?: ODataContextOptions); + /** Initiates the specified WebGet service operation that returns a value. For the information on service operations, refer to the OData documentation. */ + get(operationName: string, params: Object): JQueryPromise; + /** Initiates the specified WebGet service operation that returns nothing. For the information on service operations, refer to the OData documentation. */ + invoke(operationName: string, params: Object, httpMethod: Object): JQueryPromise; + /** Return a special proxy object to describe the entity link. */ + objectLink(entityAlias: string, key: any): Object; + } + export interface ODataStoreOptions extends StoreOptions { + /** A function used to customize a web request before it is sent. */ + beforeSend?: (request: { + url: string; + async: boolean; + method: string; + timeout: number; + params: Object; + payload: Object; + headers: Object; + }) => void; + /** Specifies whether the ODataStore uses the JSONP approach to access non-CORS-compatible remote services. */ + jsonp?: boolean; + /** Specifies the type of the ODataStore key property. The following key types are supported out of the box: String, Int32, Int64, and Guid. */ + keyType?: any; + /** Specifies whether or not dates found in the response are deserialized. */ + deserializeDates?: boolean; + /** Specifies the URL of the data service being accessed via the current ODataContext. */ + url?: string; + /** Specifies the version of the OData protocol used to interact with the data service. */ + version?: number; + /** Specifies the value of the withCredentials field of the underlying jqXHR object. */ + withCredentials?: boolean; + } + /** A Store providing access to a separate OData web service entity. */ + export class ODataStore extends Store { + constructor(options?: ODataStoreOptions); + /** Creates the Query object for the OData endpoint. */ + createQuery(loadOptions: Object): Object; + /** Returns the data item specified by the key. */ + byKey(key: any, extraOptions?: { expand?: Object }): JQueryPromise; + } + /** An universal chainable data query interface object. */ + export interface Query { + /** Calculates a custom summary for the items in the current Query. */ + aggregate(step: (accumulator: any, value: any) => any): JQueryPromise; + /** Calculates a custom summary for the items in the current Query. */ + aggregate(seed: any, step: (accumulator: any, value: any) => any, finalize: (result: any) => any): JQueryPromise; + /** Calculates the average item value for the current Query. */ + avg(getter: Object): JQueryPromise; + /** Finds the item with the maximum getter value. */ + max(getter: Object): JQueryPromise; + /** Finds the item with the maximum value in the Query. */ + max(): JQueryPromise; + /** Finds the item with the minimum value in the Query. */ + min(): JQueryPromise; + /** Finds the item with the minimum getter value. */ + min(getter: Object): JQueryPromise; + /** Calculates the average item value for the current Query, if each Query item has a numeric type. */ + avg(): JQueryPromise; + /** Returns the total count of items in the current Query. */ + count(): JQueryPromise; + /** Executes the Query. */ + enumerate(): JQueryPromise; + /** Filters the current Query data. */ + filter(criteria: Array): Query; + /** Filters the current Query data. */ + filter(predicate: (item: any) => boolean): Query; + /** Groups the current Query data. */ + groupBy(getter: Object): Query; + /** Applies the specified transformation to each item. */ + select(getter: Object): Query; + /** Limits the data item count. */ + slice(skip: number, take?: number): Query; + /** Sorts current Query data. */ + sortBy(getter: Object, desc: boolean): Query; + /** Sorts current Query data. */ + sortBy(getter: Object): Query; + /** Calculates the sum of item getter values in the current Query. */ + sum(getter: Object): JQueryPromise; + /** Calculates the sum of item values in the current Query. */ + sum(): JQueryPromise; + /** Adds one more sorting condition to the current Query. */ + thenBy(getter: Object): Query; + /** Adds one more sorting condition to the current Query. */ + thenBy(getter: Object, desc: boolean): Query; + /** Returns the array of current Query items. */ + toArray(): Array; + } + /** The global data layer error handler. */ + export var errorHandler: (e: Error) => void; + /** Encodes the specified string or array of bytes to base64 encoding. */ + export function base64_encode(input: any): string; + /** Creates a Query instance. */ + export function query(array: Array): Query; + /** Creates a Query instance for accessing the remote service specified by a URL. */ + export function query(url: string, queryOptions: Object): Query; + /** This section describes the utility objects provided by the DevExtreme data layer. */ + export var utils: { + /** Compiles a getter function from the getter expression. */ + compileGetter(expr: any): Function; + /** Compiles a setter function from the setter expression. */ + compileSetter(expr: any): Function; + odata: { + /** Holds key value converters for OData. */ + keyConverters: { + String(value: any): string; + Int32(value: any): number; + Int64(value: any): EdmLiteral; + Guid(value: any): Guid; + Boolean(value: any): boolean; + Single(value: any): EdmLiteral; + Decimal(value: any): EdmLiteral; + }; + } + } + } + /** An object that serves as a namespace for DevExtreme UI widgets as well as for methods implementing UI logic in DevExtreme sites/applications. */ + export module ui { + export interface WidgetOptions extends DOMComponentOptions { + /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ + activeStateEnabled?: boolean; + /** A Boolean value specifying whether or not the widget can respond to user interaction. */ + disabled?: boolean; + /** A Boolean value specifying whether or not the widget changes its state when being hovered by an end user. */ + hoverStateEnabled?: boolean; + /** Specifies whether or not the widget can be focused. */ + focusStateEnabled?: boolean; + /** Specifies a shortcut key that sets focus on the widget element. */ + accessKey?: string; + /** A Boolean value specifying whether or not the widget is visible. */ + visible?: boolean; + /** Specifies the widget tab index. */ + tabIndex?: number; + /** Specifies the text of the hint displayed for the widget. */ + hint?: string; + } + /** The base class for widgets. */ + export class Widget extends DOMComponent { + constructor(options?: WidgetOptions); + /** Redraws the widget. */ + repaint(): void; + /** Sets focus on the widget. */ + focus(): void; + /** Registers a handler when a specified key is pressed. */ + registerKeyHandler(key: string, handler: Function): void; + } + export interface CollectionWidgetOptions extends WidgetOptions { + /** A data source used to fetch data to be displayed by the widget. */ + dataSource?: any; + /** The time period in milliseconds before the onItemHold event is raised. */ + itemHoldTimeout?: number; + /** An array of items displayed by the widget. */ + items?: Array; + /** The template to be used for rendering items. */ + itemTemplate?: any; + loopItemFocus?: boolean; + /** The text or HTML markup displayed by the widget if the item collection is empty. */ + noDataText?: string; + onContentReady?: any; + /** A handler for the itemClick event. */ + onItemClick?: any; + /** A handler for the itemContextMenu event. */ + onItemContextMenu?: Function; + /** A handler for the itemHold event. */ + onItemHold?: Function; + /** A handler for the itemRendered event. */ + onItemRendered?: Function; + /** A handler for the selectionChanged event. */ + onSelectionChanged?: Function; + /** The index of the currently selected widget item. */ + selectedIndex?: number; + /** The selected item object. */ + selectedItem?: Object; + /** An array of currently selected item objects. */ + selectedItems?: Array; + /** A handler for the itemDeleting event. */ + onItemDeleting?: Function; + /** A handler for the itemDeleted event. */ + onItemDeleted?: Function; + /** A handler for the itemReordered event. */ + onItemReordered?: Function; + } + /** The base class for widgets containing an item collection. */ + export class CollectionWidget extends Widget { + constructor(element: JQuery, options?: CollectionWidgetOptions); + constructor(element: HTMLElement, options?: CollectionWidgetOptions); + selectItem(itemElement: any): void; + unselectItem(itemElement: any): void; + deleteItem(itemElement: any): JQueryPromise; + isItemSelected(itemElement: any): boolean; + reorderItem(itemElement: any, toItemElement: any): JQueryPromise; + } + export interface DataExpressionMixinOptions { + /** A data source used to fetch data to be displayed by the widget. */ + dataSource?: any; + /** Specifies the name of the data source item field whose value is displayed by the widget. */ + displayExpr?: any; + /** Specifies the name of a data source item field whose value is held in the value configuration option. */ + valueExpr?: any; + /** An array of items displayed by the widget. */ + items?: Array; + /** The template to be used for rendering items. */ + itemTemplate?: any; + /** The currently selected value in the widget. */ + value?: Object; + } + export interface EditorOptions extends WidgetOptions { + /** The currently specified value. */ + value?: Object; + /** A handler for the valueChanged event. */ + onValueChanged?: Function; + /** A Boolean value specifying whether or not the widget is read-only. */ + readOnly?: boolean; + /** Holds the object that defines the error that occurred during validation. */ + validationError?: Object; + /** Specifies whether the editor's value is valid. */ + isValid?: boolean; + /** Specifies how the message about the validation rules that are not satisfied by this editor's value is displayed. */ + validationMessageMode?: string; + } + /** A base class for editors. */ + export class Editor extends Widget { + /** Resets the editor's value to undefined. */ + reset(): void; + } + /** An object that serves as a namespace for methods displaying a message in an application/site. */ + export var dialog: { + /** Creates an alert dialog message containing a single "OK" button. */ + alert(message: string, title: string): JQueryPromise; + /** Creates a confirm dialog that contains "Yes" and "No" buttons. */ + confirm(message: string, title: string): JQueryPromise; + /** Creates a custom dialog using the options specified by the passed configuration object. */ + custom(options: { title?: string; message?: string; buttons?: Array; }): { + show(): JQueryPromise; + hide(): void; + hide(value: any): void; + }; + }; + /** Creates a toast message. */ + export function notify(message: any, type: string, displayTime: number): void; + /** Creates a toast message. */ + export function notify(options: Object): void; + /** An object that serves as a namespace for the methods that work with DevExtreme CSS Themes. */ + export var themes: { + /** Returns the name of the currently applied theme. */ + current(): string; + /** Changes the current theme to the specified one. */ + current(themeName: string): void; + }; + /** Sets a specified template engine. */ + export function setTemplateEngine(name: string): void; + /** Sets a custom template engine defined via custom compile and render functions. */ + export function setTemplateEngine(options: Object): void; + } + /** An object that serves as a namespace for utility methods that can be helpful when working with the DevExtreme framework and UI widgets. */ + export var utils: { + /** Sets parameters for the viewport meta tag. */ + initMobileViewport(options: { allowZoom?: boolean; allowPan?: boolean; allowSelection?: boolean }): void; + /** Requests that the browser call a specified function to update animation before the next repaint. */ + requestAnimationFrame(callback: Function): number; + /** Cancels an animation frame request scheduled with the requestAnimationFrame method. */ + cancelAnimationFrame(requestID: number): void; + }; + /** An object that serves as a namespace for DevExtreme Data Visualization Widgets. */ + export module viz { + /** Applies a theme for the entire page with several DevExtreme visualization widgets. */ + export function currentTheme(theme: string): void; + /** Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. */ + export function currentTheme(platform: string, colorScheme: string): void; + /** Registers a new theme based on the existing one. */ + export function registerTheme(customTheme: Object, baseTheme: string): void; + /** Applies a predefined or registered custom palette to all visualization widgets at once. */ + export function currentPalette(paletteName: string): void; + /** Obtains the color sets of a predefined or registered palette. */ + export function getPalette(paletteName: string): Object; + /** Registers a new palette. */ + export function registerPalette(paletteName: string, palette: Object): void; + } +} +declare namespace DevExpress.ui { + export interface dxValidatorOptions extends DOMComponentOptions { + /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ + validationRules?: Array; + /** Specifies the editor name to be used in the validation default messages. */ + name?: string; + /** An object that specifies what and when to validate and how to apply the validation result. */ + adapter?: Object; + /** Specifies the validation group the editor will be related to. */ + validationGroup?: string; + /** A handler for the validated event. */ + onValidated?: (params: validationEngine.ValidatorValidationResult) => void; + } + /** A widget that is used to validate the associated DevExtreme editors against the defined validation rules. */ + export class dxValidator extends DOMComponent implements validationEngine.IValidator { + constructor(element: JQuery, options?: dxValidatorOptions); + constructor(element: Element, options?: dxValidatorOptions); + /** Validates the value of the editor that is controlled by the current dxValidator object against the list of the specified validation rules. */ + validate(): validationEngine.ValidatorValidationResult; + /** Resets the value and validation result of the editor associated with the current dxValidator object. */ + reset(): void; + } + /** The widget that is used in the Knockout and Angular approaches to combine the editors to be validated. */ + export class dxValidationGroup extends DOMComponent { + constructor(element: JQuery); + constructor(element: Element); + /** Validates rules of the validators that belong to the current validation group. */ + validate(): validationEngine.ValidationGroupValidationResult; + /** Resets the value and validation result of the editors that are included to the current validation group. */ + reset(): void; + } + export interface dxValidationSummaryOptions extends CollectionWidgetOptions { + /** Specifies the validation group for which summary should be generated. */ + validationGroup?: string; + } + /** A widget for displaying the result of checking validation rules for editors. */ + export class dxValidationSummary extends CollectionWidget { + constructor(element: JQuery, options?: dxValidationSummaryOptions); + constructor(element: Element, options?: dxValidationSummaryOptions); + } + export interface dxResizableOptions extends DOMComponentOptions { + /** Specifies which borders of the widget element are used as a handle. */ + handles?: string; + /** Specifies the lower width boundary for resizing. */ + minWidth?: number; + /** Specifies the upper width boundary for resizing. */ + maxWidth?: number; + /** Specifies the lower height boundary for resizing. */ + minHeight?: number; + /** Specifies the upper height boundary for resizing. */ + maxHeight?: number; + /** A handler for the resizeStart event. */ + onResizeStart?: Function; + /** A handler for the resize event. */ + onResize?: Function; + /** A handler for the resizeEnd event. */ + onResizeEnd?: Function; + } + /** A widget that displays required content in a resizable element. */ + export class dxResizable extends DOMComponent { + constructor(element: JQuery, options?: dxResizableOptions); + constructor(element: Element, options?: dxResizableOptions); + } + export interface dxTooltipOptions extends dxPopoverOptions { + } + /** A tooltip widget. */ + export class dxTooltip extends dxPopover { + constructor(element: JQuery, options?: dxTooltipOptions); + constructor(element: Element, options?: dxTooltipOptions); + } + export interface dxDropDownListOptions extends dxDropDownEditorOptions, DataExpressionMixinOptions { + /** Returns the value currently displayed by the widget. */ + displayValue?: string; + /** The minimum number of characters that must be entered into the text box to begin a search. */ + minSearchLength?: number; + /** Specifies whether or not the widget displays unfiltered values until a user types a number of characters exceeding the minSearchLength option value. */ + showDataBeforeSearch?: boolean; + /** Specifies the name of a data source item field or an expression whose value is compared to the search criterion. */ + searchExpr?: Object; + /** Specifies the binary operation used to filter data. */ + searchMode?: string; + /** Specifies the time delay, in milliseconds, after the last character has been typed in, before a search is executed. */ + searchTimeout?: number; + /** A handler for the valueChanged event. */ + onValueChanged?: Function; + /** Specifies DOM event names that update a widget's value. */ + valueChangeEvent?: string; + /** Specifies whether or not the widget supports searching. */ + searchEnabled?: boolean; + /** + * Specifies whether or not the widget displays items by pages. + * @deprecated dataSource.paginate.md + */ + pagingEnabled?: boolean; + /** The text or HTML markup displayed by the widget if the item collection is empty. */ + noDataText?: string; + /** A handler for the selectionChanged event. */ + onSelectionChanged?: Function; + /** A handler for the itemClick event. */ + onItemClick?: Function; + onContentReady?: Function; + } + /** A base class for drop-down list widgets. */ + export class dxDropDownList extends dxDropDownEditor { + constructor(element: JQuery, options?: dxDropDownListOptions); + constructor(element: Element, options?: dxDropDownListOptions); + } + export interface dxToolbarOptions extends CollectionWidgetOptions { + /** The template used to render menu items. */ + menuItemTemplate?: any; + /** Informs the widget about its location in a view HTML markup. */ + renderAs?: string; + } + /** A toolbar widget. */ + export class dxToolbar extends CollectionWidget { + constructor(element: JQuery, options?: dxToolbarOptions); + constructor(element: Element, options?: dxToolbarOptions); + } + export interface dxToastOptions extends dxOverlayOptions { + animation?: fx.AnimationOptions; + /** The time span in milliseconds during which the dxToast widget is visible. */ + displayTime?: number; + height?: any; + /** The dxToast message text. */ + message?: string; + position?: PositionOptions; + shading?: boolean; + /** Specifies the dxToast widget type. */ + type?: string; + width?: any; + closeOnBackButton?: boolean; + /** A Boolean value specifying whether or not the toast is closed if a user swipes it out of the screen boundaries. */ + closeOnSwipe?: boolean; + /** A Boolean value specifying whether or not the toast is closed if a user clicks it. */ + closeOnClick?: boolean; + } + /** The toast message widget. */ + export class dxToast extends dxOverlay { + constructor(element: JQuery, options?: dxToastOptions); + constructor(element: Element, options?: dxToastOptions); + } + export interface dxTextEditorOptions extends EditorOptions { + /** A handler for the change event. */ + onChange?: Function; + /** A handler for the copy event. */ + onCopy?: Function; + /** A handler for the cut event. */ + onCut?: Function; + /** A handler for the enterKey event. */ + onEnterKey?: Function; + /** A handler for the focusIn event. */ + onFocusIn?: Function; + /** A handler for the focusOut event. */ + onFocusOut?: Function; + /** A handler for the input event. */ + onInput?: Function; + /** A handler for the keyDown event. */ + onKeyDown?: Function; + /** A handler for the keyPress event. */ + onKeyPress?: Function; + /** A handler for the keyUp event. */ + onKeyUp?: Function; + /** A handler for the paste event. */ + onPaste?: Function; + /** The text displayed by the widget when the widget value is empty. */ + placeholder?: string; + /** Specifies whether to display the Clear button in the widget. */ + showClearButton?: boolean; + /** Specifies the current value displayed by the widget. */ + value?: any; + /** Specifies DOM event names that update a widget's value. */ + valueChangeEvent?: string; + /** Specifies whether or not the widget checks the inner text for spelling mistakes. */ + spellcheck?: boolean; + /** Specifies HTML attributes applied to the inner input element of the widget. */ + attr?: Object; + /** The read-only option that holds the text displayed by the widget input element. */ + text?: string; + focusStateEnabled?: boolean; + hoverStateEnabled?: boolean; + /** The editor mask that specifies the format of the entered string. */ + mask?: string; + /** Specifies a mask placeholder character. */ + maskChar?: string; + /** Specifies custom mask rules. */ + maskRules?: Object; + /** A message displayed when the entered text does not match the specified pattern. */ + maskInvalidMessage?: string; + /** Specifies whether the value option holds only characters entered by a user or prompt characters as well. */ + useMaskedValue?: boolean; + } + /** A base class for text editing widgets. */ + export class dxTextEditor extends Editor { + constructor(element: JQuery, options?: dxTextEditorOptions); + constructor(element: Element, options?: dxTextEditorOptions); + /** Removes focus from the input element. */ + blur(): void; + /** Sets focus to the input element representing the widget. */ + focus(): void; + } + export interface dxTextBoxOptions extends dxTextEditorOptions { + /** Specifies the maximum number of characters you can enter into the textbox. */ + maxLength?: any; + /** The "mode" attribute value of the actual HTML input element representing the text box. */ + mode?: string; + } + /** A single-line text box widget. */ + export class dxTextBox extends dxTextEditor { + constructor(element: JQuery, options?: dxTextBoxOptions); + constructor(element: Element, options?: dxTextBoxOptions); + } + export interface dxTextAreaOptions extends dxTextBoxOptions { + /** Specifies whether or not the widget checks the inner text for spelling mistakes. */ + spellcheck?: boolean; + } + /** A widget used to display and edit multi-line text. */ + export class dxTextArea extends dxTextBox { + constructor(element: JQuery, options?: dxTextAreaOptions); + constructor(element: Element, options?: dxTextAreaOptions); + } + export interface dxTabsOptions extends CollectionWidgetOptions { + /** Specifies whether the widget enables an end-user to select only a single item or multiple items. */ + selectionMode?: string; + /** Specifies whether or not an end-user can scroll tabs by swiping. */ + scrollByContent?: boolean; + /** Specifies whether or not an end-user can scroll tabs. */ + scrollingEnabled?: boolean; + /** A Boolean value that specifies the availability of navigation buttons. */ + showNavButtons?: boolean; + } + /** A tab strip used to switch between pages. */ + export class dxTabs extends CollectionWidget { + constructor(element: JQuery, options?: dxTabsOptions); + constructor(element: Element, options?: dxTabsOptions); + } + export interface dxTabPanelOptions extends dxMultiViewOptions { + /** A handler for the titleClick event. */ + onTitleClick?: any; + /** A handler for the titleHold event. */ + onTitleHold?: Function; + /** A handler for the titleRendered event. */ + onTitleRendered?: Function; + /** The template to be used for rendering an item title. */ + itemTitleTemplate?: any; + /** A Boolean value specifying if the list is scrolled by content. */ + scrollByContent?: boolean; + /** A Boolean value specifying whether to enable or disable scrolling. */ + scrollingEnabled?: boolean; + /** A Boolean value that specifies the availability of navigation buttons. */ + showNavButtons?: boolean; + } + /** A widget used to display a view and to switch between several views by clicking the appropriate tabs. */ + export class dxTabPanel extends dxMultiView { + constructor(element: JQuery, options?: dxTabPanelOptions); + constructor(element: Element, options?: dxTabPanelOptions); + } + export interface dxSelectBoxOptions extends dxDropDownListOptions { + /** Specifies DOM event names that update a widget's value. */ + valueChangeEvent?: string; + /** The template to be used for rendering the widget text field. */ + fieldTemplate?: any; + /** The text that is provided as a hint in the select box editor. */ + placeholder?: string; + /** Specifies whether or not the widget allows an end-user to enter a custom value. */ + fieldEditEnabled?: boolean; + } + /** A widget that allows you to select an item in a dropdown list. */ + export class dxSelectBox extends dxDropDownList { + constructor(element: JQuery, options?: dxSelectBoxOptions); + constructor(element: Element, options?: dxSelectBoxOptions); + } + export interface dxTagBoxOptions extends dxSelectBoxOptions { + /** Holds the list of selected values. */ + values?: Array; + /** A read-only option that holds the last selected value. */ + value?: Object; + } + /** A widget that allows you to select multiple items from a dropdown list. */ + export class dxTagBox extends dxSelectBox { + constructor(element: JQuery, options?: dxTagBoxOptions); + constructor(element: Element, options?: dxTagBoxOptions); + } + export interface dxScrollViewOptions extends dxScrollableOptions { + /** A handler for the pullDown event. */ + onPullDown?: Function; + /** Specifies the text shown in the pullDown panel when pulling the content down lowers the refresh threshold. */ + pulledDownText?: string; + /** Specifies the text shown in the pullDown panel while pulling the content down to the refresh threshold. */ + pullingDownText?: string; + /** A handler for the reachBottom event. */ + onReachBottom?: Function; + /** Specifies the text shown in the pullDown panel displayed when content is scrolled to the bottom. */ + reachBottomText?: string; + /** Specifies the text shown in the pullDown panel displayed when the content is being refreshed. */ + refreshingText?: string; + /** Returns a value indicating if the scrollView content is larger then the widget container. */ + isFull(): boolean; + /** Locks the widget until the release(preventScrollBottom) method is called and executes the function passed to the onPullDown option and the handler assigned to the pullDown event. */ + refresh(): void; + /** Notifies the scroll view that data loading is finished. */ + release(preventScrollBottom: boolean): JQueryPromise; + /** Toggles the loading state of the widget. */ + toggleLoading(showOrHide: boolean): void; + } + /** A widget used to display scrollable content. */ + export class dxScrollView extends dxScrollable { + constructor(element: JQuery, options?: dxScrollViewOptions); + constructor(element: Element, options?: dxScrollViewOptions); + } + export interface dxScrollableLocation { + top?: number; + left?: number; + } + export interface dxScrollableOptions extends DOMComponentOptions { + /** A string value specifying the available scrolling directions. */ + direction?: string; + /** A Boolean value specifying whether or not the widget can respond to user interaction. */ + disabled?: boolean; + /** A handler for the scroll event. */ + onScroll?: Function; + /** Specifies when the widget shows the scrollbar. */ + showScrollbar?: string; + /** A handler for the update event. */ + onUpdated?: Function; + /** Indicates whether to use native or simulated scrolling. */ + useNative?: boolean; + /** A Boolean value specifying whether to enable or disable the bounce-back effect. */ + bounceEnabled?: boolean; + /** A Boolean value specifying whether or not an end-user can scroll the widget content swiping it up or down. */ + scrollByContent?: boolean; + /** A Boolean value specifying whether or not an end-user can scroll the widget content using the scrollbar. */ + scrollByThumb?: boolean; + } + /** A widget used to display scrollable content. */ + export class dxScrollable extends DOMComponent { + constructor(element: JQuery, options?: dxScrollableOptions); + constructor(element: Element, options?: dxScrollableOptions); + /** Returns the height of the scrollable widget in pixels. */ + clientHeight(): number; + /** Returns the width of the scrollable widget in pixels. */ + clientWidth(): number; + /** Returns an HTML element of the widget. */ + content(): JQuery; + /** Scrolls the widget content by the specified number of pixels. */ + scrollBy(distance: number): void; + /** Scrolls widget content by the specified number of pixels in horizontal and vertical directions. */ + scrollBy(distanceObject: dxScrollableLocation): void; + /** Returns the height of the scrollable content in pixels. */ + scrollHeight(): number; + /** Returns the current scroll position against the leftmost position. */ + scrollLeft(): number; + /** Returns how far the scrollable content is scrolled from the top and from the left. */ + scrollOffset(): dxScrollableLocation; + /** Scrolls widget content to the specified position. */ + scrollTo(targetLocation: number): void; + /** Scrolls widget content to a specified position. */ + scrollTo(targetLocation: dxScrollableLocation): void; + /** Scrolls widget content to the specified element. */ + scrollToElement(element: Element): void; + /** Returns the current scroll position against the topmost position. */ + scrollTop(): number; + /** Returns the width of the scrollable content in pixels. */ + scrollWidth(): number; + /** Updates the dimensions of the scrollable contents. */ + update(): void; + } + export interface dxRadioGroupOptions extends CollectionWidgetOptions, DataExpressionMixinOptions { + activeStateEnabled?: boolean; + /** Specifies the radio group layout. */ + layout?: string; + } + /** A widget that enables a user to select one item within a list of items represented by radio buttons. */ + export class dxRadioGroup extends CollectionWidget { + constructor(element: JQuery, options?: dxRadioGroupOptions); + constructor(element: Element, options?: dxRadioGroupOptions); + } + export interface dxPopupOptions extends dxOverlayOptions { + animation?: fx.AnimationOptions; + /** Specifies whether or not to allow a user to drag the popup window. */ + dragEnabled?: boolean; + /** A Boolean value specifying whether or not to display the widget in full-screen mode. */ + fullScreen?: boolean; + position?: PositionOptions; + /** A Boolean value specifying whether or not to display the title in the popup window. */ + showTitle?: boolean; + /** The title in the overlay window. */ + title?: string; + /** A template to be used for rendering the widget title. */ + titleTemplate?: any; + width?: any; + /** Specifies items displayed on the top or bottom toolbar of the popup window. */ + buttons?: Array; + /** Specifies whether or not the widget displays the Close button. */ + showCloseButton?: boolean; + /** A handler for the titleRendered event. */ + onTitleRendered?: Function; + } + /** A widget that displays required content in a popup window. */ + export class dxPopup extends dxOverlay { + constructor(element: JQuery, options?: dxPopupOptions); + constructor(element: Element, options?: dxPopupOptions); + } + export interface dxPopoverOptions extends dxPopupOptions { + /** An object defining animation options of the widget. */ + animation?: fx.AnimationOptions; + /** Specifies the height of the widget. */ + height?: any; + /** An object defining widget positioning options. */ + position?: PositionOptions; + shading?: boolean; + /** A Boolean value specifying whether or not to display the title in the overlay window. */ + showTitle?: boolean; + /** The target element associated with a popover. */ + target?: any; + /** Specifies the width of the widget. */ + width?: any; + } + /** A widget that displays the required content in a popup window. */ + export class dxPopover extends dxPopup { + constructor(element: JQuery, options?: dxPopoverOptions); + constructor(element: Element, options?: dxPopoverOptions); + /** Displays the widget for the specified target element. */ + show(target?: any): JQueryPromise; + } + export interface dxOverlayOptions extends WidgetOptions { + /** An object that defines the animation options of the widget. */ + animation?: fx.AnimationOptions; + /** A Boolean value specifying whether or not the widget is closed if a user presses the Back hardware button. */ + closeOnBackButton?: boolean; + /** A Boolean value specifying whether or not the widget is closed if a user clicks outside of the overlapping window. */ + closeOnOutsideClick?: any; + /** A template to be used for rendering widget content. */ + contentTemplate?: any; + /** Specifies whether widget content is rendered when the widget is shown or when rendering the widget. */ + deferRendering?: boolean; + /** Specifies whether or not an end-user can drag the widget. */ + dragEnabled?: boolean; + /** Specifies whether or not an end user can resize the widget. */ + resizeEnabled?: boolean; + /** The height of the widget in pixels. */ + height?: any; + /** Specifies the maximum height the widget can reach while resizing. */ + maxHeight?: any; + /** Specifies the maximum width the widget can reach while resizing. */ + maxWidth?: any; + /** Specifies the minimum height the widget can reach while resizing. */ + minHeight?: any; + /** Specifies the minimum width the widget can reach while resizing. */ + minWidth?: any; + /** A handler for the hidden event. */ + onHidden?: Function; + /** A handler for the resizeStart event. */ + onResizeStart?: Function; + /** A handler for the resize event. */ + onResize?: Function; + /** A handler for the resizeEnd event. */ + onResizeEnd?: Function; + /** A handler for the hiding event. */ + onHiding?: Function; + /** An object defining widget positioning options. */ + position?: PositionOptions; + /** A Boolean value specifying whether or not the main screen is inactive while the widget is active. */ + shading?: boolean; + /** Specifies the shading color. */ + shadingColor?: string; + /** A handler for the showing event. */ + onShowing?: Function; + /** A handler for the shown event. */ + onShown?: Function; + /** A Boolean value specifying whether or not the widget is visible. */ + visible?: boolean; + /** The widget width in pixels. */ + width?: any; + } + /** A widget displaying the required content in an overlay window. */ + export class dxOverlay extends Widget { + constructor(element: JQuery, options?: dxOverlayOptions); + constructor(element: Element, options?: dxOverlayOptions); + /** An HTML element of the widget. */ + content(): JQuery; + /** Hides the widget. */ + hide(): JQueryPromise; + /** Recalculates the overlay's size and position. */ + repaint(): void; + /** Shows the widget. */ + show(): JQueryPromise; + /** Toggles the visibility of the widget. */ + toggle(showing: boolean): JQueryPromise; + /** A static method that specifies the base z-index for all overlay widgets. */ + static baseZIndex(zIndex: number): void; + } + export interface dxNumberBoxOptions extends dxTextEditorOptions { + /** The maximum value accepted by the number box. */ + max?: number; + /** The minimum value accepted by the number box. */ + min?: number; + /** Specifies whether or not to show spin buttons. */ + showSpinButtons?: boolean; + useTouchSpinButtons?: boolean; + /** Specifies by which value the widget value changes when a spin button is clicked. */ + step?: number; + /** The current number box value. */ + value?: number; + } + /** A textbox widget that enables a user to enter numeric values. */ + export class dxNumberBox extends dxTextEditor { + constructor(element: JQuery, options?: dxNumberBoxOptions); + constructor(element: Element, options?: dxNumberBoxOptions); + } + export interface dxNavBarOptions extends dxTabsOptions { + scrollingEnabled?: boolean; + } + /** A widget that contains items used to navigate through application views. */ + export class dxNavBar extends dxTabs { + constructor(element: JQuery, options?: dxNavBarOptions); + constructor(element: Element, options?: dxNavBarOptions); + } + export interface dxMultiViewOptions extends CollectionWidgetOptions { + /** Specifies whether or not to animate the displayed item change. */ + animationEnabled?: boolean; + /** A Boolean value specifying whether or not to scroll back to the first item after the last item is swiped. */ + loop?: boolean; + /** The index of the currently displayed item. */ + selectedIndex?: number; + /** A Boolean value specifying whether or not to allow users to change the selected index by swiping. */ + swipeEnabled?: boolean; + /** Specifies whether widget content is rendered when the widget is shown or when rendering the widget. */ + deferRendering?: boolean; + } + /** A widget used to display a view and to switch between several views. */ + export class dxMultiView extends CollectionWidget { + constructor(element: JQuery, options?: dxMultiViewOptions); + constructor(element: Element, options?: dxMultiViewOptions); + } + export interface dxMapOptions extends WidgetOptions { + /** Specifies whether or not the widget automatically adjusts center and zoom option values when adding a new marker or route. */ + autoAdjust?: boolean; + center?: { + /** The latitude location displayed in the center of the widget. */ + lat?: number; + /** The longitude location displayed in the center of the widget. */ + lng?: number; + }; + /** A handler for the click event. */ + onClick?: any; + /** Specifies whether or not map widget controls are available. */ + controls?: boolean; + /** Specifies the height of the widget. */ + height?: any; + /** A key used to authenticate the application within the required map provider. */ + key?: { + /** A key used to authenticate the application within the "Bing" map provider. */ + bing?: string; + /** A key used to authenticate the application within the "Google" map provider. */ + google?: string; + /** A key used to authenticate the application within the "Google Static" map provider. */ + googleStatic?: string; + } + /** A handler for the markerAdded event. */ + onMarkerAdded?: Function; + /** A URL pointing to the custom icon to be used for map markers. */ + markerIconSrc?: string; + /** A handler for the markerRemoved event. */ + onMarkerRemoved?: Function; + /** An array of markers displayed on a map. */ + markers?: Array; + /** The name of the current map data provider. */ + provider?: string; + /** A handler for the ready event. */ + onReady?: Function; + /** A handler for the routeAdded event. */ + onRouteAdded?: Function; + /** A handler for the routeRemoved event. */ + onRouteRemoved?: Function; + /** An array of routes shown on the map. */ + routes?: Array; + /** The type of a map to display. */ + type?: string; + /** Specifies the width of the widget. */ + width?: any; + /** The zoom level of the map. */ + zoom?: number; + } + /** An interactive map widget. */ + export class dxMap extends Widget { + constructor(element: JQuery, options?: dxMapOptions); + constructor(element: Element, options?: dxMapOptions); + /** Adds a marker to the map. */ + addMarker(markerOptions: Object): JQueryPromise; + /** Adds a route to the map. */ + addRoute(routeOptions: Object): JQueryPromise; + /** Removes a marker from the map. */ + removeMarker(marker: Object): JQueryPromise; + /** Removes a route from the map. */ + removeRoute(route: any): JQueryPromise; + } + export interface dxLookupOptions extends dxDropDownListOptions { + /** An object defining widget animation options. */ + animation?: fx.AnimationOptions; + /** The text displayed on the Cancel button. */ + cancelButtonText?: string; + /** The text displayed on the Clear button. */ + clearButtonText?: string; + /** Specifies whether or not the widget cleans the search box when the popup window is displayed. */ + cleanSearchOnOpening?: boolean; + /** A Boolean value specifying whether or not a widget is closed if a user clicks outside of the overlaying window. */ + closeOnOutsideClick?: any; + /** The text displayed on the Apply button. */ + applyButtonText?: string; + /** A Boolean value specifying whether or not to display the lookup in full-screen mode. */ + fullScreen?: boolean; + focusStateEnabled?: boolean; + /** A Boolean value specifying whether or not to group widget items. */ + grouped?: boolean; + /** The name of the template used to display a group header. */ + groupTemplate?: any; + /** The text displayed on the button used to load the next page from the data source. */ + nextButtonText?: string; + /** A handler for the pageLoading event. */ + onPageLoading?: Function; + /** Specifies whether the next page is loaded when a user scrolls the widget to the bottom or when the "next" button is clicked. */ + pageLoadMode?: string; + /** Specifies the text shown in the pullDown panel, which is displayed when the widget is scrolled to the bottom. */ + pageLoadingText?: string; + /** The text displayed by the widget when nothing is selected. */ + placeholder?: string; + /** The height of the widget popup element. */ + popupHeight?: any; + /** The width of the widget popup element. */ + popupWidth?: any; + /** An object defining widget positioning options. */ + position?: PositionOptions; + /** Specifies the text displayed in the pullDown panel when the widget is pulled below the refresh threshold. */ + pulledDownText?: string; + /** Specifies the text shown in the pullDown panel while the list is being pulled down to the refresh threshold. */ + pullingDownText?: string; + /** A handler for the pullRefresh event. */ + onPullRefresh?: Function; + /** A Boolean value specifying whether or not the widget supports the "pull down to refresh" gesture. */ + pullRefreshEnabled?: boolean; + /** Specifies the text displayed in the pullDown panel while the widget is being refreshed. */ + refreshingText?: string; + /** A handler for the scroll event. */ + onScroll?: Function; + /** A Boolean value specifying whether or not the search bar is visible. */ + searchEnabled?: boolean; + /** The text that is provided as a hint in the lookup's search bar. */ + searchPlaceholder?: string; + /** A Boolean value specifying whether or not the main screen is inactive while the lookup is active. */ + shading?: boolean; + /** Specifies whether to display the Cancel button in the lookup window. */ + showCancelButton?: boolean; + /** + * A Boolean value specifying whether the widget loads the next page automatically when you reach the bottom of the list or when a button is clicked. + * @deprecated pageLoadMode.md + */ + showNextButton?: boolean; + /** The title of the lookup window. */ + title?: string; + /** A template to be used for rendering the widget title. */ + titleTemplate?: any; + /** Specifies whether or not the widget uses native scrolling. */ + useNativeScrolling?: boolean; + /** Specifies whether or not to show lookup contents in a dxPopover widget. */ + usePopover?: boolean; + /** A handler for the valueChanged event. */ + onValueChanged?: Function; + /** A handler for the titleRendered event. */ + onTitleRendered?: Function; + /** A Boolean value specifying whether or not to display the title in the popup window. */ + showPopupTitle?: boolean; + } + /** A widget that allows a user to select predefined values from a lookup window. */ + export class dxLookup extends dxDropDownList { + constructor(element: JQuery, options?: dxLookupOptions); + constructor(element: Element, options?: dxLookupOptions); + /** This section lists the data source fields that are used in a default template for lookup drop-down items. */ + } + export interface dxLoadPanelOptions extends dxOverlayOptions { + /** An object defining the animation options of the widget. */ + animation?: fx.AnimationOptions; + /** The delay in milliseconds after which the load panel is displayed. */ + delay?: number; + /** The height of the widget. */ + height?: number; + /** A URL pointing to an image to be used as a load indicator. */ + indicatorSrc?: string; + /** The text displayed in the load panel. */ + message?: string; + /** A Boolean value specifying whether or not to show a load indicator. */ + showIndicator?: boolean; + /** A Boolean value specifying whether or not to show the pane behind the load indicator. */ + showPane?: boolean; + /** The width of the widget. */ + width?: number; + } + /** A widget used to indicate whether or not an element is loading. */ + export class dxLoadPanel extends dxOverlay { + constructor(element: JQuery, options?: dxLoadPanelOptions); + constructor(element: Element, options?: dxLoadPanelOptions); + } + export interface dxLoadIndicatorOptions extends WidgetOptions { + /** Specifies the path to an image used as the indicator. */ + indicatorSrc?: string; + } + /** The widget used to indicate the loading process. */ + export class dxLoadIndicator extends Widget { + constructor(element: JQuery, options?: dxLoadIndicatorOptions); + constructor(element: Element, options?: dxLoadIndicatorOptions); + } + export interface dxListOptions extends CollectionWidgetOptions { + /** A Boolean value specifying whether or not to display a grouped list. */ + grouped?: boolean; + /** The template to be used for rendering item groups. */ + groupTemplate?: any; + onItemDeleting?: Function; + /** A handler for the itemDeleted event. */ + onItemDeleted?: Function; + /** A handler for the groupRendered event. */ + onGroupRendered?: Function; + /** A handler for the itemReordered event. */ + onItemReordered?: Function; + /** A handler for the itemClick event. */ + onItemClick?: any; + /** A handler for the itemSwipe event. */ + onItemSwipe?: Function; + /** The text displayed on the button used to load the next page from the data source. */ + nextButtonText?: string; + /** A handler for the pageLoading event. */ + onPageLoading?: Function; + /** Specifies the text shown in the pullDown panel, which is displayed when the list is scrolled to the bottom. */ + pageLoadingText?: string; + /** Specifies the text displayed in the pullDown panel when the list is pulled below the refresh threshold. */ + pulledDownText?: string; + /** Specifies the text shown in the pullDown panel while the list is being pulled down to the refresh threshold. */ + pullingDownText?: string; + /** A handler for the pullRefresh event. */ + onPullRefresh?: Function; + /** A Boolean value specifying whether or not the widget supports the "pull down to refresh" gesture. */ + pullRefreshEnabled?: boolean; + /** Specifies the text displayed in the pullDown panel while the list is being refreshed. */ + refreshingText?: string; + /** A handler for the scroll event. */ + onScroll?: Function; + /** A Boolean value specifying whether to enable or disable list scrolling. */ + scrollingEnabled?: boolean; + /** Specifies when the widget shows the scrollbar. */ + showScrollbar?: string; + /** Specifies whether or not the widget uses native scrolling. */ + useNativeScrolling?: boolean; + /** A Boolean value specifying whether to enable or disable the bounce-back effect. */ + bounceEnabled?: boolean; + /** A Boolean value specifying if the list is scrolled by content. */ + scrollByContent?: boolean; + /** A Boolean value specifying if the list is scrolled using the scrollbar. */ + scrollByThumb?: boolean; + onItemContextMenu?: Function; + onItemHold?: Function; + /** Specifies whether or not an end-user can collapse groups. */ + collapsibleGroups?: boolean; + /** Specifies whether the next page is loaded when a user scrolls the widget to the bottom or when the "next" button is clicked. */ + pageLoadMode?: string; + /** Specifies whether or not to display controls used to select list items. */ + showSelectionControls?: boolean; + /** Specifies item selection mode. */ + selectionMode?: string; + selectAllText?: string; + onSelectAllChanged?: Function; + /** Specifies the array of items for a context menu called for a list item. */ + menuItems?: Array; + /** Specifies whether an item context menu is shown when a user holds or swipes an item. */ + menuMode?: string; + /** Specifies whether or not an end user can delete list items. */ + allowItemDeleting?: boolean; + /** Specifies the way a user can delete items from the list. */ + itemDeleteMode?: string; + /** Specifies whether or not an end user can reorder list items. */ + allowItemReordering?: boolean; + /** Specifies whether or not to show the loading panel when the DataSource bound to the widget is loading data. */ + indicateLoading?: boolean; + activeStateEnabled?: boolean; + } + /** A list widget. */ + export class dxList extends CollectionWidget { + constructor(element: JQuery, options?: dxListOptions); + constructor(element: Element, options?: dxListOptions); + /** Returns the height of the widget in pixels. */ + clientHeight(): number; + /** Removes the specified item from the list. */ + deleteItem(itemIndex: any): JQueryPromise; + /** Removes the specified item from the list. */ + deleteItem(itemElement: Element): JQueryPromise; + /** Returns a Boolean value that indicates whether or not the specified item is selected. */ + isItemSelected(itemIndex: any): boolean; + /** Returns a Boolean value that indicates whether or not the specified item is selected. */ + isItemSelected(itemElement: Element): boolean; + /** Reloads list data. */ + reload(): void; + /** Moves the specified item to the specified position in the list. */ + reorderItem(itemElement: Element, toItemElement: Element): JQueryPromise; + /** Moves the specified item to the specified position in the list. */ + reorderItem(itemIndex: any, toItemIndex: any): JQueryPromise; + /** Scrolls the list content by the specified number of pixels. */ + scrollBy(distance: number): void; + /** Returns the height of the list content in pixels. */ + scrollHeight(): number; + /** Scrolls list content to the specified position. */ + scrollTo(location: number): void; + /** Scrolls the list to the specified item. */ + scrollToItem(itemElement: Element): void; + /** Scrolls the list to the specified item. */ + scrollToItem(itemIndex: any): void; + /** Returns how far the list content is scrolled from the top. */ + scrollTop(): number; + /** Selects the specified item from the list. */ + selectItem(itemElement: Element): void; + /** Selects the specified item from the list. */ + selectItem(itemIndex: any): void; + /** Deselects the specified item from the list. */ + unselectItem(itemElement: Element): void; + /** Unselects the specified item from the list. */ + unselectItem(itemIndex: any): void; + /** Updates the widget scrollbar according to widget content size. */ + updateDimensions(): JQueryPromise; + /** Expands the specified group. */ + expandGroup(groupIndex: number): JQueryPromise; + /** Collapses the specified group. */ + collapseGroup(groupIndex: number): JQueryPromise; + } + export interface dxGalleryOptions extends CollectionWidgetOptions { + /** The time, in milliseconds, spent on slide animation. */ + animationDuration?: number; + /** Specifies whether or not to animate the displayed item change. */ + animationEnabled?: boolean; + /** A Boolean value specifying whether or not to allow users to switch between items by clicking an indicator. */ + indicatorEnabled?: boolean; + /** A Boolean value specifying whether or not to scroll back to the first item after the last item is swiped. */ + loop?: boolean; + /** The index of the currently active gallery item. */ + selectedIndex?: number; + /** A Boolean value specifying whether or not to display an indicator that points to the selected gallery item. */ + showIndicator?: boolean; + /** A Boolean value that specifies the availability of the "Forward" and "Back" navigation buttons. */ + showNavButtons?: boolean; + /** The time interval in milliseconds, after which the gallery switches to the next item. */ + slideshowDelay?: number; + /** A Boolean value specifying whether or not to allow users to switch between items by swiping. */ + swipeEnabled?: boolean; + /** Specifies whether or not to display parts of previous and next images along the sides of the current image. */ + wrapAround?: boolean; + /** Specifies if the widget stretches images to fit the total gallery width. */ + stretchImages?: boolean; + /** Specifies the width of an area used to display a single image. */ + initialItemWidth?: number; + } + /** An image gallery widget. */ + export class dxGallery extends CollectionWidget { + constructor(element: JQuery, options?: dxGalleryOptions); + constructor(element: Element, options?: dxGalleryOptions); + /** Shows the specified gallery item. */ + goToItem(itemIndex: number, animation: boolean): JQueryPromise; + /** Shows the next gallery item. */ + nextItem(animation: boolean): JQueryPromise; + /** Shows the previous gallery item. */ + prevItem(animation: boolean): JQueryPromise; + } + export interface dxDropDownEditorOptions extends dxTextBoxOptions { + /** Specifies the current value displayed by the widget. */ + value?: Object; + /** A handler for the closed event. */ + onClosed?: Function; + /** A handler for the opened event. */ + onOpened?: Function; + /** Specifies whether or not the drop-down editor is displayed. */ + opened?: boolean; + /** Specifies whether or not the widget allows an end-user to enter a custom value. */ + fieldEditEnabled?: boolean; + /** Specifies the way an end-user applies the selected value. */ + applyValueMode?: string; + /** Specifies whether widget content is rendered when the widget is shown or when rendering the widget. */ + deferRendering?: boolean; + activeStateEnabled?: boolean; + } + /** A drop-down editor widget. */ + export class dxDropDownEditor extends dxTextBox { + constructor(element: JQuery, options?: dxDropDownEditorOptions); + constructor(element: Element, options?: dxDropDownEditorOptions); + /** Closes the drop-down editor. */ + close(): void; + /** Opens the drop-down editor. */ + open(): void; + /** Resets the widget's value to null. */ + reset(): void; + /** Returns an <input> element of the widget. */ + field(): JQuery; + /** Returns an HTML element of the popup window content. */ + content(): JQuery; + } + export interface dxDateBoxOptions extends dxTextEditorOptions { + /** A format used to display date/time information. */ + format?: string; + /** A Globalize format string specifying the date display format. */ + formatString?: string; + /** The last date that can be selected within the widget. */ + max?: any; + /** The minimum date that can be selected within the widget. */ + min?: any; + /** The text displayed by the widget when the widget value is not yet specified. This text is also used as a title of the date picker. */ + placeholder?: string; + /** + * Specifies whether or not a user can pick out a date using the drop-down calendar. + * @deprecated Use 'pickerType' option instead. + */ + useCalendar?: boolean; + /** An object or a value, specifying the date and time currently selected using the date box. */ + value?: any; + /** + * Specifies whether or not the widget uses the native HTML input element. + * @deprecated Use 'pickerType' option instead. + */ + useNative?: boolean; + /** Specifies the interval between neighboring values in the popup list in minutes. */ + interval?: number; + /** Specifies the maximum zoom level of a calendar, which is used to pick the date. */ + maxZoomLevel?: string; + /** Specifies the minimal zoom level of a calendar, which is used to pick the date. */ + minZoomLevel?: string; + /** Specifies the type of date/time picker. */ + pickerType?: string; + /** Specifies the message displayed if the typed value is not a valid date or time. */ + invalidDateMessage?: string; + /** Specifies the message displayed if the specified date is later than the max value or earlier than the min value. */ + dateOutOfRangeMessage?: string; + } + /** A date box widget. */ + export class dxDateBox extends dxDropDownEditor { + constructor(element: JQuery, options?: dxDateBoxOptions); + constructor(element: Element, options?: dxDateBoxOptions); + } + export interface dxCheckBoxOptions extends EditorOptions { + activeStateEnabled?: boolean; + /** Specifies the widget state. */ + value?: boolean; + /** Specifies the text displayed by the check box. */ + text?: string; + } + /** A check box widget. */ + export class dxCheckBox extends Editor { + constructor(element: JQuery, options?: dxCheckBoxOptions); + constructor(element: Element, options?: dxCheckBoxOptions); + } + export interface dxCalendarOptions extends EditorOptions { + activeStateEnabled?: boolean; + /** Specifies a date displayed on the current calendar page. */ + currentDate?: Date; + /** Specifies the first day of a week. */ + firstDayOfWeek?: number; + /** The latest date the widget allows to select. */ + max?: Date; + /** The earliest date the widget allows to select. */ + min?: Date; + /** Specifies whether or not the widget displays a button that selects the current date. */ + showTodayButton?: boolean; + /** Specifies the current calendar zoom level. */ + zoomLevel?: string; + /** Specifies the maximum zoom level of the calendar. */ + maxZoomLevel?: string; + /** Specifies the minimum zoom level of the calendar. */ + minZoomLevel?: string; + /** The template to be used for rendering calendar cells. */ + cellTemplate?: any; + } + /** A calendar widget. */ + export class dxCalendar extends Editor { + constructor(element: JQuery, options?: dxCalendarOptions); + constructor(element: Element, options?: dxCalendarOptions); + } + export interface dxButtonOptions extends WidgetOptions { + /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ + activeStateEnabled?: boolean; + /** A handler for the click event. */ + onClick?: any; + /** Specifies the icon to be displayed on the button. */ + icon?: string; + iconSrc?: string; + /** A template to be used for rendering the dxButton widget. */ + template?: any; + /** The text displayed on the button. */ + text?: string; + /** Specifies the button type. */ + type?: string; + /** Specifies the name of the validation group to be accessed in the click event handler. */ + validationGroup?: string; + } + /** A button widget. */ + export class dxButton extends Widget { + constructor(element: JQuery, options?: dxButtonOptions); + constructor(element: Element, options?: dxButtonOptions); + } + export interface dxBoxOptions extends CollectionWidget { + /** Specifies how widget items are aligned along the main direction. */ + align?: string; + /** Specifies the direction of item positioning in the widget. */ + direction?: string; + /** Specifies how widget items are aligned cross-wise. */ + crossAlign?: string; + } + /** A container widget used to arrange inner elements. */ + export class dxBox extends CollectionWidget { + constructor(element: JQuery, options?: dxBoxOptions); + constructor(element: Element, options?: dxBoxOptions); + } + export interface dxResponsiveBoxOptions extends CollectionWidgetOptions { + /** Specifies the collection of rows for the grid used to position layout elements. */ + rows?: Array; + /** Specifies the collection of columns for the grid used to position layout elements. */ + cols?: Array; + /** Specifies the function returning the screen factor depending on the screen width. */ + screenByWidth?: (width: number) => string; + /** Specifies the screen factor with which all elements are located in a single column. */ + singleColumnScreen?: string; + } + /** A widget used to build an adaptive markup that is dependent on screen resolution. */ + export class dxResponsiveBox extends CollectionWidget { + constructor(element: JQuery, options?: dxBoxOptions); + constructor(element: Element, options?: dxBoxOptions); + } + export interface dxAutocompleteOptions extends dxDropDownListOptions { + /** Specifies the current value displayed by the widget. */ + value?: string; + /** The minimum number of characters that must be entered into the text box to begin a search. */ + minSearchLength?: number; + /** Specifies the maximum count of items displayed by the widget. */ + maxItemCount?: number; + /** Gets the currently selected item. */ + selectedItem?: Object; + } + /** A textbox widget that supports autocompletion. */ + export class dxAutocomplete extends dxDropDownList { + constructor(element: JQuery, options?: dxAutocompleteOptions); + constructor(element: Element, options?: dxAutocompleteOptions); + /** Opens the drop-down editor. */ + open(): void; + /** Closes the drop-down editor. */ + close(): void; + } + export interface dxAccordionOptions extends CollectionWidgetOptions { + /** A number specifying the time in milliseconds spent on the animation of the expanding or collapsing of a panel. */ + animationDuration?: number; + /** Specifies the height of the widget. */ + height?: any; + /** Specifies whether all items can be collapsed or whether at least one item must always be expanded. */ + collapsible?: boolean; + /** Specifies whether the widget can expand several items or only a single item at once. */ + multiple?: boolean; + /** The template to be used for rendering dxAccordion items. */ + itemTemplate?: any; + /** A handler for the itemTitleClick event. */ + onItemTitleClick?: any; + /** A handler for the itemTitleHold event. */ + onItemTitleHold?: Function; + /** The template to be used for rendering an item title. */ + itemTitleTemplate?: any; + /** The index number of the currently selected item. */ + selectedIndex?: number; + /** Specifies whether widget content is rendered when the widget is shown or when rendering the widget. */ + deferRendering?: boolean; + } + /** A widget that displays data source items on collapsible panels. */ + export class dxAccordion extends CollectionWidget { + constructor(element: JQuery, options?: dxAccordionOptions); + constructor(element: Element, options?: dxAccordionOptions); + /** Collapses the specified item. */ + collapseItem(index: number): JQueryPromise; + /** Expands the specified item. */ + expandItem(index: number): JQueryPromise; + /** Updates the dimensions of the widget contents. */ + updateDimensions(): JQueryPromise; + } + export interface dxFileUploaderOptions extends EditorOptions { + /** A read-only option that holds a File instance representing the selected file. */ + value?: File; + /** Holds the File instances representing files selected in the widget. */ + values?: Array; + buttonText?: string; + /** The text displayed on the button that opens the file browser. */ + selectButtonText?: string; + /** The text displayed on the button that starts uploading. */ + uploadButtonText?: string; + /** Specifies the text displayed on the area to which an end-user can drop a file. */ + labelText?: string; + /** Specifies the value passed to the name attribute of the underlying input element. */ + name?: string; + /** Specifies whether the widget enables an end-user to select a single file or multiple files. */ + multiple?: boolean; + /** Specifies a file type or several types accepted by the widget. */ + accept?: string; + /** Specifies a target Url for the upload request. */ + uploadUrl?: string; + /** Specifies if an end user can remove a file from the selection and interrupt uploading. */ + allowCanceling?: boolean; + /** Specifies whether or not the widget displays the list of selected files. */ + showFileList?: boolean; + /** Gets the current progress in percentages. */ + progress?: number; + /** The message displayed by the widget when it is ready to upload the specified files. */ + readyToUploadMessage?: string; + /** The message displayed by the widget when uploading is finished. */ + uploadedMessage?: string; + /** The message displayed by the widget on uploading failure. */ + uploadFailedMessage?: string; + /** Specifies how the widget uploads files. */ + uploadMode?: string; + /** A handler for the uploaded event. */ + onUploaded?: Function; + /** A handler for the uploaded event. */ + onProgress?: Function; + /** A handler for the uploadError event. */ + onUploadError?: Function; + /** A handler for the valueChanged event. */ + onValueChanged?: Function; + } + /** A widget used to select and upload a file or multiple files. */ + export class dxFileUploader extends Editor { + constructor(element: JQuery, options?: dxFileUploaderOptions); + constructor(element: Element, options?: dxFileUploaderOptions); + } + export interface dxTrackBarOptions extends EditorOptions { + /** The minimum value the widget can accept. */ + min?: number; + /** The maximum value the widget can accept. */ + max?: number; + /** The current widget value. */ + value?: number; + } + /** A base class for track bar widgets. */ + export class dxTrackBar extends Editor { + constructor(element: JQuery, options?: dxTrackBarOptions); + constructor(element: Element, options?: dxTrackBarOptions); + } + export interface dxProgressBarOptions extends dxTrackBarOptions { + /** Specifies a format for the progress status. */ + statusFormat?: any; + /** Specifies whether or not the widget displays a progress status. */ + showStatus?: boolean; + /** A handler for the complete event. */ + onComplete?: Function; + } + /** A widget used to indicate progress. */ + export class dxProgressBar extends dxTrackBar { + constructor(element: JQuery, options?: dxProgressBarOptions); + constructor(element: Element, options?: dxProgressBarOptions); + } + export interface dxSliderOptions extends dxTrackBarOptions { + activeStateEnabled?: boolean; + /** The slider step size. */ + step?: number; + /** The current slider value. */ + value?: number; + /** Specifies whether or not to highlight a range selected within the widget. */ + showRange?: boolean; + /** Specifies the size of a step by which a slider handle is moved when a user uses the Page up or Page down keyboard shortcuts. */ + keyStep?: number; + /** Specifies options for the slider tooltip. */ + tooltip?: { + /** Specifies whether or not the tooltip is enabled. */ + enabled?: boolean; + /** Specifies format for the tooltip. */ + format?: any; + /** Specifies whether the tooltip is located over or under the slider. */ + position?: string; + /** Specifies whether the widget always shows a tooltip or only when a pointer is over the slider. */ + showMode?: string; + }; + /** Specifies options for labels displayed at the min and max values. */ + label?: { + /** Specifies whether or not slider labels are visible. */ + visible?: boolean; + /** Specifies whether labels are located over or under the scale. */ + position?: string; + /** Specifies a format for labels. */ + format?: any; + }; + } + /** A widget that allows a user to select a numeric value within a given range. */ + export class dxSlider extends dxTrackBar { + constructor(element: JQuery, options?: dxSliderOptions); + constructor(element: Element, options?: dxSliderOptions); + } + export interface dxRangeSliderOptions extends dxSliderOptions { + /** The left edge of the interval currently selected using the range slider. */ + start?: number; + /** The right edge of the interval currently selected using the range slider. */ + end?: number; + } + /** A widget that enables a user to select a range of numeric values. */ + export class dxRangeSlider extends dxSlider { + constructor(element: JQuery, options?: dxRangeSliderOptions); + constructor(element: Element, options?: dxRangeSliderOptions); + } + export interface dxFormItemLabel { + /** Specifies the label text. */ + text?: string; + /** Specifies whether or not the label is visible. */ + visible?: boolean; + /** Specifies whether or not a colon is displayed at the end of the current label. */ + showColon?: boolean; + /** Specifies the location of a label against the editor. */ + location?: string; + /** Specifies the label horizontal alignment. */ + alignment?: string; + } + export interface dxFormItem { + /** Specifies the type of the current item. */ + itemType?: string; + /** Specifies whether or not the current form item is visible. */ + visible?: boolean; + /** Specifies the sequence number of the item in a form, group or tab. */ + visibleIndex?: number; + /** Specifies a CSS class to be applied to the form item. */ + cssClass?: string; + /** Specifies the number of columns spanned by the item. */ + colSpan?: number; + } + export interface dxFormSimpleItem extends dxFormItem { + /** Specifies the path to the formData object field bound to the current form item. */ + dataField?: string; + /** Specifies the form item name. */ + name?: string; + /** Specifies which editor widget is used to display and edit the form item value. */ + editorType?: string; + /** Specifies configuration options for the editor widget of the current form item. */ + editorOptions?: Object; + /** A template to be used for rendering the form item. */ + template?: any; + /** Specifies the help text displayed for the current form item. */ + helpText?: string; + /** Specifies whether the current form item is required. */ + isRequired?: boolean; + /** Specifies options for the form item label. */ + label?: dxFormItemLabel; + /** An array of validation rules to be checked for the form item editor. */ + validationRules?: Array; + } + export interface dxFormGroupItem extends dxFormItem { + /** Specifies the group caption. */ + caption?: string; + /** A template to be used for rendering the group item. */ + template?: any; + /** The count of columns in the group layout. */ + colCount?: number; + /** Specifies whether or not all group item labels are aligned. */ + alignItemLabels?: boolean; + /** Holds an array of form items displayed within the group. */ + items?: Array; + } + export interface dxFormTab { + /** Specifies the tab title. */ + title?: string; + /** The count of columns in the tab layout. */ + colCount?: number; + /** Specifies whether or not labels of items displayed within the current tab are aligned. */ + alignItemLabels?: boolean; + /** Holds an array of form items displayed within the tab. */ + items?: Array; + } + export interface dxFormTabbedItem extends dxFormItem { + /** Holds a configuration object for the dxTabPanel widget used to display the current form item. */ + tabPanelOptions?: Object; + /** An array of tab configuration objects. */ + tabs?: Array; + } + export interface dxFormOptions extends WidgetOptions { + /** An object providing data for the form. */ + formData?: Object; + /** The count of columns in the form layout. */ + colCount?: any; + /** Specifies the location of a label against the editor. */ + labelLocation?: string; + /** Specifies whether or not all editors on the form are read-only. */ + readOnly?: boolean; + /** A handler for the fieldDataChanged event. */ + onFieldDataChanged?: (e: Object) => void; + /** A handler for the editorEnterKey event. */ + onEditorEnterKey?: (e: Object) => void; + /** Specifies a function that customizes a form item after it has been created. */ + customizeItem?: Function; + /** The minimum column width used for calculating column count in the form layout. */ + minColWidth?: number; + /** Specifies whether or not all root item labels are aligned. */ + alignItemLabels?: boolean; + /** Specifies whether or not item labels in all groups are aligned. */ + alignItemLabelsInAllGroups?: boolean; + /** Specifies whether or not a colon is displayed at the end of form labels. */ + showColonAfterLabel?: boolean; + /** Specifies whether or not the required mark is displayed for optional fields. */ + showRequiredMark?: boolean; + /** Specifies whether or not the optional mark is displayed for optional fields. */ + showOptionalMark?: boolean; + /** The text displayed for required fields. */ + requiredMark?: string; + /** The text displayed for optional fields. */ + optionalMark?: string; + /** Specifies whether or not the total validation summary is displayed on the form. */ + showValidationSummary?: boolean; + /** Holds an array of form items. */ + items?: Array; + /** A Boolean value specifying whether to enable or disable form scrolling. */ + scrollingEnabled?: boolean; + onContentReady?: Function; + } + /** A form widget used to display and edit values of object fields. */ + export class dxForm extends Widget { + constructor(element: JQuery, options?: dxFormOptions); + constructor(element: Element, options?: dxFormOptions); + /** Updates the specified field of the formData object and the corresponding editor on the form. */ + updateData(dataField: string, value: any): void; + /** Updates the specified fields of the formData object and the corresponding editors on the form. */ + updateData(data: Object): void; + /** Updates the value of a form item option. */ + itemOption(field: string, option: string, value: any): void; + /** Updates the values of form item options. */ + itemOption(field: string, options: Object): void; + /** Returns an editor instance associated with the specified formData field. */ + getEditor(field: string): Object; + /** Updates the dimensions of the widget contents. */ + updateDimensions(): JQueryPromise; + /** Validates the values of all editors on the form against the list of the validation rules specified for each form item. */ + validate(): Object; + } +} +interface JQuery { + dxProgressBar(): JQuery; + dxProgressBar(options: "instance"): DevExpress.ui.dxProgressBar; + dxProgressBar(options: string): any; + dxProgressBar(options: string, ...params: any[]): any; + dxProgressBar(options: DevExpress.ui.dxProgressBarOptions): JQuery; + dxSlider(): JQuery; + dxSlider(options: "instance"): DevExpress.ui.dxSlider; + dxSlider(options: string): any; + dxSlider(options: string, ...params: any[]): any; + dxSlider(options: DevExpress.ui.dxSliderOptions): JQuery; + dxRangeSlider(): JQuery; + dxRangeSlider(options: "instance"): DevExpress.ui.dxRangeSlider; + dxRangeSlider(options: string): any; + dxRangeSlider(options: string, ...params: any[]): any; + dxRangeSlider(options: DevExpress.ui.dxRangeSliderOptions): JQuery; + dxFileUploader(): JQuery; + dxFileUploader(options: "instance"): DevExpress.ui.dxFileUploader; + dxFileUploader(options: string): any; + dxFileUploader(options: string, ...params: any[]): any; + dxFileUploader(options: DevExpress.ui.dxFileUploaderOptions): JQuery; + dxValidator(): JQuery; + dxValidator(options: "instance"): DevExpress.ui.dxValidator; + dxValidator(options: string): any; + dxValidator(options: string, ...params: any[]): any; + dxValidator(options: DevExpress.ui.dxValidatorOptions): JQuery; + dxValidationGroup(): JQuery; + dxValidationGroup(options: "instance"): DevExpress.ui.dxValidationGroup; + dxValidationGroup(options: string): any; + dxValidationGroup(options: string, ...params: any[]): any; + dxValidationSummary(): JQuery; + dxValidationSummary(options: "instance"): DevExpress.ui.dxValidationSummary; + dxValidationSummary(options: string): any; + dxValidationSummary(options: string, ...params: any[]): any; + dxValidationSummary(options: DevExpress.ui.dxValidationSummaryOptions): JQuery; + dxTooltip(): JQuery; + dxTooltip(options: "instance"): DevExpress.ui.dxTooltip; + dxTooltip(options: string): any; + dxTooltip(options: string, ...params: any[]): any; + dxTooltip(options: DevExpress.ui.dxTooltipOptions): JQuery; + dxResizable(): JQuery; + dxResizable(options: "instance"): DevExpress.ui.dxResizable; + dxResizable(options: string): any; + dxResizable(options: string, ...params: any[]): any; + dxResizable(options: DevExpress.ui.dxResizableOptions): JQuery; + dxDropDownList(): JQuery; + dxDropDownList(options: "instance"): DevExpress.ui.dxDropDownList; + dxDropDownList(options: string): any; + dxDropDownList(options: string, ...params: any[]): any; + dxDropDownList(options: DevExpress.ui.dxDropDownListOptions): JQuery; + dxToolbar(): JQuery; + dxToolbar(options: "instance"): DevExpress.ui.dxToolbar; + dxToolbar(options: string): any; + dxToolbar(options: string, ...params: any[]): any; + dxToolbar(options: DevExpress.ui.dxToolbarOptions): JQuery; + dxToast(): JQuery; + dxToast(options: "instance"): DevExpress.ui.dxToast; + dxToast(options: string): any; + dxToast(options: string, ...params: any[]): any; + dxToast(options: DevExpress.ui.dxToastOptions): JQuery; + dxTextEditor(): JQuery; + dxTextEditor(options: "instance"): DevExpress.ui.dxTextEditor; + dxTextEditor(options: string): any; + dxTextEditor(options: string, ...params: any[]): any; + dxTextEditor(options: DevExpress.ui.dxTextEditorOptions): JQuery; + dxTextBox(): JQuery; + dxTextBox(options: "instance"): DevExpress.ui.dxTextBox; + dxTextBox(options: string): any; + dxTextBox(options: string, ...params: any[]): any; + dxTextBox(options: DevExpress.ui.dxTextBoxOptions): JQuery; + dxTextArea(): JQuery; + dxTextArea(options: "instance"): DevExpress.ui.dxTextArea; + dxTextArea(options: string): any; + dxTextArea(options: string, ...params: any[]): any; + dxTextArea(options: DevExpress.ui.dxTextAreaOptions): JQuery; + dxTabs(): JQuery; + dxTabs(options: "instance"): DevExpress.ui.dxTabs; + dxTabs(options: string): any; + dxTabs(options: string, ...params: any[]): any; + dxTabs(options: DevExpress.ui.dxTabsOptions): JQuery; + dxTabPanel(): JQuery; + dxTabPanel(options: "instance"): DevExpress.ui.dxTabPanel; + dxTabPanel(options: string): any; + dxTabPanel(options: string, ...params: any[]): any; + dxTabPanel(options: DevExpress.ui.dxTabPanelOptions): JQuery; + dxSelectBox(): JQuery; + dxSelectBox(options: "instance"): DevExpress.ui.dxSelectBox; + dxSelectBox(options: string): any; + dxSelectBox(options: string, ...params: any[]): any; + dxSelectBox(options: DevExpress.ui.dxSelectBoxOptions): JQuery; + dxTagBox(): JQuery; + dxTagBox(options: "instance"): DevExpress.ui.dxTagBox; + dxTagBox(options: string): any; + dxTagBox(options: string, ...params: any[]): any; + dxTagBox(options: DevExpress.ui.dxTagBoxOptions): JQuery; + dxScrollView(): JQuery; + dxScrollView(options: "instance"): DevExpress.ui.dxScrollView; + dxScrollView(options: string): any; + dxScrollView(options: string, ...params: any[]): any; + dxScrollView(options: DevExpress.ui.dxScrollViewOptions): JQuery; + dxScrollable(): JQuery; + dxScrollable(options: "instance"): DevExpress.ui.dxScrollable; + dxScrollable(options: string): any; + dxScrollable(options: string, ...params: any[]): any; + dxScrollable(options: DevExpress.ui.dxScrollableOptions): JQuery; + dxRadioGroup(): JQuery; + dxRadioGroup(options: "instance"): DevExpress.ui.dxRadioGroup; + dxRadioGroup(options: string): any; + dxRadioGroup(options: string, ...params: any[]): any; + dxRadioGroup(options: DevExpress.ui.dxRadioGroupOptions): JQuery; + dxPopup(): JQuery; + dxPopup(options: "instance"): DevExpress.ui.dxPopup; + dxPopup(options: string): any; + dxPopup(options: string, ...params: any[]): any; + dxPopup(options: DevExpress.ui.dxPopupOptions): JQuery; + dxPopover(): JQuery; + dxPopover(options: "instance"): DevExpress.ui.dxPopover; + dxPopover(options: string): any; + dxPopover(options: string, ...params: any[]): any; + dxPopover(options: DevExpress.ui.dxPopoverOptions): JQuery; + dxOverlay(): JQuery; + dxOverlay(options: "instance"): DevExpress.ui.dxOverlay; + dxOverlay(options: string): any; + dxOverlay(options: string, ...params: any[]): any; + dxOverlay(options: DevExpress.ui.dxOverlayOptions): JQuery; + dxNumberBox(): JQuery; + dxNumberBox(options: "instance"): DevExpress.ui.dxNumberBox; + dxNumberBox(options: string): any; + dxNumberBox(options: string, ...params: any[]): any; + dxNumberBox(options: DevExpress.ui.dxNumberBoxOptions): JQuery; + dxNavBar(): JQuery; + dxNavBar(options: "instance"): DevExpress.ui.dxNavBar; + dxNavBar(options: string): any; + dxNavBar(options: string, ...params: any[]): any; + dxNavBar(options: DevExpress.ui.dxNavBarOptions): JQuery; + dxMultiView(): JQuery; + dxMultiView(options: "instance"): DevExpress.ui.dxMultiView; + dxMultiView(options: string): any; + dxMultiView(options: string, ...params: any[]): any; + dxMultiView(options: DevExpress.ui.dxMultiViewOptions): JQuery; + dxMap(): JQuery; + dxMap(options: "instance"): DevExpress.ui.dxMap; + dxMap(options: string): any; + dxMap(options: string, ...params: any[]): any; + dxMap(options: DevExpress.ui.dxMapOptions): JQuery; + dxLookup(): JQuery; + dxLookup(options: "instance"): DevExpress.ui.dxLookup; + dxLookup(options: string): any; + dxLookup(options: string, ...params: any[]): any; + dxLookup(options: DevExpress.ui.dxLookupOptions): JQuery; + dxLoadPanel(): JQuery; + dxLoadPanel(options: "instance"): DevExpress.ui.dxLoadPanel; + dxLoadPanel(options: string): any; + dxLoadPanel(options: string, ...params: any[]): any; + dxLoadPanel(options: DevExpress.ui.dxLoadPanelOptions): JQuery; + dxLoadIndicator(): JQuery; + dxLoadIndicator(options: "instance"): DevExpress.ui.dxLoadIndicator; + dxLoadIndicator(options: string): any; + dxLoadIndicator(options: string, ...params: any[]): any; + dxLoadIndicator(options: DevExpress.ui.dxLoadIndicatorOptions): JQuery; + dxList(): JQuery; + dxList(options: "instance"): DevExpress.ui.dxList; + dxList(options: string): any; + dxList(options: string, ...params: any[]): any; + dxList(options: DevExpress.ui.dxListOptions): JQuery; + dxGallery(): JQuery; + dxGallery(options: "instance"): DevExpress.ui.dxGallery; + dxGallery(options: string): any; + dxGallery(options: string, ...params: any[]): any; + dxGallery(options: DevExpress.ui.dxGalleryOptions): JQuery; + dxDropDownEditor(): JQuery; + dxDropDownEditor(options: "instance"): DevExpress.ui.dxDropDownEditor; + dxDropDownEditor(options: string): any; + dxDropDownEditor(options: string, ...params: any[]): any; + dxDropDownEditor(options: DevExpress.ui.dxDropDownEditorOptions): JQuery; + dxDateBox(): JQuery; + dxDateBox(options: "instance"): DevExpress.ui.dxDateBox; + dxDateBox(options: string): any; + dxDateBox(options: string, ...params: any[]): any; + dxDateBox(options: DevExpress.ui.dxDateBoxOptions): JQuery; + dxCheckBox(): JQuery; + dxCheckBox(options: "instance"): DevExpress.ui.dxCheckBox; + dxCheckBox(options: string): any; + dxCheckBox(options: string, ...params: any[]): any; + dxCheckBox(options: DevExpress.ui.dxCheckBoxOptions): JQuery; + dxBox(): JQuery; + dxBox(options: "instance"): DevExpress.ui.dxBox; + dxBox(options: string): any; + dxBox(options: string, ...params: any[]): any; + dxBox(options: DevExpress.ui.dxBoxOptions): JQuery; + dxButton(): JQuery; + dxButton(options: "instance"): DevExpress.ui.dxButton; + dxButton(options: string): any; + dxButton(options: string, ...params: any[]): any; + dxButton(options: DevExpress.ui.dxButtonOptions): JQuery; + dxCalendar(): JQuery; + dxCalendar(options: "instance"): DevExpress.ui.dxCalendar; + dxCalendar(options: string): any; + dxCalendar(options: string, ...params: any[]): any; + dxCalendar(options: DevExpress.ui.dxCalendarOptions): JQuery; + dxAccordion(): JQuery; + dxAccordion(options: "instance"): DevExpress.ui.dxAccordion; + dxAccordion(options: string): any; + dxAccordion(options: string, ...params: any[]): any; + dxAccordion(options: DevExpress.ui.dxAccordionOptions): JQuery; + dxResponsiveBox(): JQuery; + dxResponsiveBox(options: "instance"): DevExpress.ui.dxResponsiveBox; + dxResponsiveBox(options: string): any; + dxResponsiveBox(options: string, ...params: any[]): any; + dxResponsiveBox(options: DevExpress.ui.dxResponsiveBoxOptions): JQuery; + dxAutocomplete(): JQuery; + dxAutocomplete(options: "instance"): DevExpress.ui.dxAutocomplete; + dxAutocomplete(options: string): any; + dxAutocomplete(options: string, ...params: any[]): any; + dxAutocomplete(options: DevExpress.ui.dxAutocompleteOptions): JQuery; + dxForm(): JQuery; + dxForm(options: "instance"): DevExpress.ui.dxForm; + dxForm(options: string): any; + dxForm(options: string, ...params: any[]): any; + dxForm(options: DevExpress.ui.dxForm): JQuery; +} + +declare namespace DevExpress.ui { + export interface dxTileViewOptions extends CollectionWidgetOptions { + /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ + activeStateEnabled?: boolean; + /** Specifies the height of the base tile view item. */ + baseItemHeight?: number; + /** Specifies the width of the base tile view item. */ + baseItemWidth?: number; + /** Specifies whether tiles are placed horizontally or vertically. */ + direction?: string; + /** Specifies the height of the widget. */ + height?: any; + /** Specifies the distance in pixels between adjacent tiles. */ + itemMargin?: number; + /** A Boolean value specifying whether or not to display a scrollbar. */ + showScrollbar?: boolean; + } + /** A widget displaying several blocks of data as tiles. */ + export class dxTileView extends CollectionWidget { + constructor(element: JQuery, options?: dxTileViewOptions); + constructor(element: Element, options?: dxTileViewOptions); + /** Returns the current scroll position of the widget content. */ + scrollPosition(): number; + } + export interface dxSwitchOptions extends EditorOptions { + activeStateEnabled?: boolean; + /** Text displayed when the widget is in a disabled state. */ + offText?: string; + /** Text displayed when the widget is in an enabled state. */ + onText?: string; + /** A Boolean value specifying whether the current switch state is "On" or "Off". */ + value?: boolean; + } + /** A switch widget. */ + export class dxSwitch extends Editor { + constructor(element: JQuery, options?: dxSwitchOptions); + constructor(element: Element, options?: dxSwitchOptions); + } + export interface dxSlideOutViewOptions extends WidgetOptions { + /** Specifies the current menu position. */ + menuPosition?: string; + /** Specifies whether or not the menu panel is visible. */ + menuVisible?: boolean; + /** Specifies whether or not the menu is shown when a user swipes the widget content. */ + swipeEnabled?: boolean; + /** A template to be used for rendering menu panel content. */ + menuTemplate?: any; + /** A template to be used for rendering widget content. */ + contentTemplate?: any; + } + /** The widget that allows you to slide-out the current view to reveal a custom menu. */ + export class dxSlideOutView extends Widget { + constructor(element: JQuery, options?: dxSlideOutViewOptions); + constructor(element: Element, options?: dxSlideOutViewOptions); + /** Returns an HTML element of the widget menu block. */ + menuContent(): JQuery; + /** Returns an HTML element of the widget content block. */ + content(): JQuery; + /** Displays the widget's menu block. */ + showMenu(): JQueryPromise; + /** Hides the widget's menu block. */ + hideMenu(): JQueryPromise; + /** Toggles the visibility of the widget's menu block. */ + toggleMenuVisibility(): JQueryPromise; + } + export interface dxSlideOutOptions extends CollectionWidgetOptions { + /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ + activeStateEnabled?: boolean; + /** A Boolean value specifying whether or not to display a grouped menu. */ + menuGrouped?: boolean; + /** Specifies the current menu position. */ + menuPosition?: string; + /** The name of the template used to display a group header. */ + menuGroupTemplate?: any; + /** The template used to render menu items. */ + menuItemTemplate?: any; + /** A handler for the menuGroupRendered event. */ + onMenuGroupRendered?: Function; + /** A handler for the menuItemRendered event. */ + onMenuItemRendered?: Function; + /** Specifies whether or not the slide-out menu is displayed. */ + menuVisible?: boolean; + /** Indicates whether the menu can be shown/hidden by swiping the widget's main panel. */ + swipeEnabled?: boolean; + /** A template to be used for rendering widget content. */ + contentTemplate?: any; + } + /** The widget that allows you to slide-out the current view to reveal an item list. */ + export class dxSlideOut extends CollectionWidget { + constructor(element: JQuery, options?: dxSlideOutOptions); + constructor(element: Element, options?: dxSlideOutOptions); + /** Hides the widget's slide-out menu. */ + hideMenu(): JQueryPromise; + /** Displays the widget's slide-out menu. */ + showMenu(): JQueryPromise; + /** Toggles the visibility of the widget's slide-out menu. */ + toggleMenuVisibility(showing: boolean): JQueryPromise; + } + export interface dxPivotOptions extends CollectionWidgetOptions { + /** The index of the currently active pivot item. */ + selectedIndex?: number; + /** A Boolean value specifying whether or not to allow users to switch between items by swiping. */ + swipeEnabled?: boolean; + /** A template to be used for rendering widget content. */ + contentTemplate?: any; + /** The template to be used for rendering an item title. */ + itemTitleTemplate?: any; + } + /** A widget that is similar to a traditional tab control, but optimized for the phone with simplified end-user interaction. */ + export class dxPivot extends CollectionWidget { + constructor(element: JQuery, options?: dxPivotOptions); + constructor(element: Element, options?: dxPivotOptions); + } + export interface dxPanoramaOptions extends CollectionWidgetOptions { + /** An object exposing options for setting a background image for the panorama. */ + backgroundImage?: { + /** Specifies the height of the panorama's background image. */ + height?: number; + /** Specifies the URL of the image that is used as the panorama's background image. */ + url?: string; + /** Specifies the width of the panorama's background image. */ + width?: number; + }; + /** The index of the currently active panorama item. */ + selectedIndex?: number; + /** Specifies the widget content title. */ + title?: string; + } + /** A widget displaying the required content in a long horizontal canvas that extends beyond the frames of the screen. */ + export class dxPanorama extends CollectionWidget { + constructor(element: JQuery, options?: dxDropDownEditorOptions); + constructor(element: Element, options?: dxDropDownEditorOptions); + } + export interface dxDropDownMenuOptions extends WidgetOptions { + /** A handler for the buttonClick event. */ + onButtonClick?: any; + /** The name of the icon to be displayed by the DropDownMenu button. */ + buttonIcon?: string; + /** The text displayed in the DropDownMenu button. */ + buttonText?: string; + buttonIconSrc?: string; + /** A data source used to fetch data to be displayed by the widget. */ + dataSource?: any; + /** A handler for the itemClick event. */ + onItemClick?: any; + /** An array of items displayed by the widget. */ + items?: Array; + /** The template to be used for rendering items. */ + itemTemplate?: any; + /** Specifies whether or not to show the drop down menu within a dxPopover widget. */ + usePopover?: boolean; + /** The width of the menu popup in pixels. */ + popupWidth?: any; + /** The height of the menu popup in pixels. */ + popupHeight?: any; + /** Specifies whether or not the drop-down menu is displayed. */ + opened?: boolean; + hoverStateEnabled?: boolean; + activeStateEnabled?: boolean; + } + /** A drop-down menu widget. */ + export class dxDropDownMenu extends Widget { + constructor(element: JQuery, options?: dxDropDownEditorOptions); + constructor(element: Element, options?: dxDropDownEditorOptions); + /** This section lists the data source fields that are used in a default template for drop-down menu items. */ + /** Opens the drop-down menu. */ + open(): void; + /** Closes the drop-down menu. */ + close(): void; + } + export interface dxActionSheetOptions extends CollectionWidgetOptions { + /** A handler for the cancelClick event. */ + onCancelClick?: any; + /** The text displayed in the button that closes the action sheet. */ + cancelText?: string; + /** Specifies whether or not to display the Cancel button in action sheet. */ + showCancelButton?: boolean; + /** A Boolean value specifying whether or not the title of the action sheet is visible. */ + showTitle?: boolean; + /** Specifies the element the action sheet popover points at. */ + target?: any; + /** The title of the action sheet. */ + title?: string; + /** Specifies whether or not to show the action sheet within a dxPopover widget. */ + usePopover?: boolean; + /** A Boolean value specifying whether or not the dxActionSheet widget is visible. */ + visible?: boolean; + } + /** A widget consisting of a set of choices related to a certain task. */ + export class dxActionSheet extends CollectionWidget { + constructor(element: JQuery, options?: dxActionSheetOptions); + constructor(element: Element, options?: dxActionSheetOptions); + /** Hides the widget. */ + hide(): JQueryPromise; + /** Shows the widget. */ + show(): JQueryPromise; + /** Shows or hides the widget depending on the Boolean value passed as the parameter. */ + toggle(showing: boolean): JQueryPromise; + } +} +interface JQuery { + dxTileView(): JQuery; + dxTileView(options: "instance"): DevExpress.ui.dxTileView; + dxTileView(options: string): any; + dxTileView(options: string, ...params: any[]): any; + dxTileView(options: DevExpress.ui.dxTileViewOptions): JQuery; + dxSwitch(): JQuery; + dxSwitch(options: "instance"): DevExpress.ui.dxSwitch; + dxSwitch(options: string): any; + dxSwitch(options: string, ...params: any[]): any; + dxSwitch(options: DevExpress.ui.dxSwitchOptions): JQuery; + dxSlideOut(): JQuery; + dxSlideOut(options: "instance"): DevExpress.ui.dxSlideOut; + dxSlideOut(options: string): any; + dxSlideOut(options: string, ...params: any[]): any; + dxSlideOut(options: DevExpress.ui.dxSlideOutOptions): JQuery; + dxPivot(): JQuery; + dxPivot(options: "instance"): DevExpress.ui.dxPivot; + dxPivot(options: string): any; + dxPivot(options: string, ...params: any[]): any; + dxPivot(options: DevExpress.ui.dxPivotOptions): JQuery; + dxPanorama(): JQuery; + dxPanorama(options: "instance"): DevExpress.ui.dxPanorama; + dxPanorama(options: string): any; + dxPanorama(options: string, ...params: any[]): any; + dxPanorama(options: DevExpress.ui.dxPanoramaOptions): JQuery; + dxActionSheet(): JQuery; + dxActionSheet(options: "instance"): DevExpress.ui.dxActionSheet; + dxActionSheet(options: string): any; + dxActionSheet(options: string, ...params: any[]): any; + dxActionSheet(options: DevExpress.ui.dxActionSheetOptions): JQuery; + dxDropDownMenu(): JQuery; + dxDropDownMenu(options: "instance"): DevExpress.ui.dxDropDownMenu; + dxDropDownMenu(options: string): any; + dxDropDownMenu(options: string, ...params: any[]): any; + dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; +} +declare namespace DevExpress.data { + export interface XmlaStoreOptions { + /** The HTTP address to an XMLA OLAP server. */ + url?: string; + /** The name of the database associated with the Store. */ + catalog?: string; + /** The cube name. */ + cube?: string; + beforeSend?: (request: Object) => void; + } + /** A Store that provides access to an OLAP cube using the XMLA standard. */ + export class XmlaStore { + constructor(options: XmlaStoreOptions); + } + export interface PivotGridField { + index?: number; + /** A boolean value specifying whether or not the field is visible in the pivot grid and the Field Chooser. */ + visible?: boolean; + /** Name of the data source field containing data for the pivot grid field. */ + dataField?: string; + /** A caption that will be displayed in the pivot grid's field chooser to identify the field. */ + caption?: string; + /** Specifies a type of field values. */ + dataType?: string; + /** Specifies how the values of the current field are combined into groups. Cannot be used for the XmlaStore store type. */ + groupInterval?: any; + /** Specifies how to aggregate field data. Cannot be used for the XmlaStore store type. */ + summaryType?: string; + /** Allows you to use a custom aggregate function to calculate the summary values. Cannot be used for the XmlaStore store type. */ + calculateCustomSummary?: (options: { + summaryProcess?: string; + value?: any; + totalValue?: any; + }) => void; + /** Specifies the function that determines how to split data from the data source into ranges for header items. Cannot be used for the XmlaStore store type. */ + selector?: (data: Object) => any; + /** Type of the area where the field is located. */ + area?: string; + /** Index among the other fields displayed within the same area. */ + areaIndex?: number; + /** The name of the folder in which the field is located. */ + displayFolder?: string; + /** The name of the group to which the field belongs. */ + groupName?: string; + /** The index of the field within a group. */ + groupIndex?: number; + /** Specifies the initial sort order of field values. */ + sortOrder?: string; + /** Specifies how field data should be sorted. Can be used for the XmlaStore store type only. */ + sortBy?: string; + /** Specifies the data field against which the header items of this field should be sorted. */ + sortBySummaryField?: string; + /** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */ + sortBySummaryPath?: Array; + /** The filter values for the current field. */ + filterValues?: Array; + /** The filter type for the current field. */ + filterType?: string; + /** Indicates whether all header items of the field's header level are expanded. */ + expanded?: boolean; + /** Specifies whether the field should be treated as a Data Field. */ + isMeasure?: boolean; + /** Specifies a display format for field values. */ + format?: string; + /** Specifies a callback function that returns the text to be displayed in the cells of a field. */ + customizeText?: (cellInfo: { value: any; valueText: string }) => string; + /** Specifies a precision for formatted field values. */ + precision?: number; + /** Specifies how to sort the header items. */ + sortingMethod?: (a: Object, b: Object) => number; + /** Allows an end-user to change sorting options. */ + allowSorting?: boolean; + /** Allows an end-user to sort columns by summary values. */ + allowSortingBySummary?: boolean; + /** Allows an end-user to change filtering options. */ + allowFiltering?: boolean; + /** Allows an end-user to expand/collapse all header items within a header level. */ + allowExpandAll?: boolean; + /** Specifies the absolute width of the field in the pivot grid. */ + width?: number; + /** Specifies the summary post-processing algorithm. */ + summaryDisplayMode?: string; + /** Specifies whether to summarize each next summary value with the previous one by rows or columns. */ + runningTotal?: string; + /** Specifies whether to allow the predefined summary post-processing functions ('absoluteVariation' and 'percentVariation') and runningTotal to take values of different groups into account. */ + allowCrossGroupCalculation?: boolean; + /** Specifies a callback function that allows you to modify summary values after they are calculated. */ + calculateSummaryValue?: (e: Object) => number; + /** Specifies whether or not to display Total values for the field. */ + showTotals?: boolean; + /** Specifies whether or not to display Grand Total values for the field. */ + showGrandTotals?: boolean; + } + export class SummaryCell { + /** Gets the parent cell in a specified direction. */ + parent(direction: string): SummaryCell; + /** Gets all children cells in a specified direction. */ + children(direction: string): Array; + /** Gets a partial Grand Total cell of a row or column. */ + grandTotal(direction: string): SummaryCell; + /** Gets the Grand Total of the entire pivot grid. */ + grandTotal(): SummaryCell; + /** Gets the cell next to the current one in a specified direction. */ + next(direction: string): SummaryCell; + /** Gets the cell next to current in a specified direction. */ + next(direction: string, allowCrossGroup: boolean): SummaryCell; + /** Gets the cell prior to the current one in a specified direction. */ + prev(direction: string): SummaryCell; + /** Gets the cell previous to current in a specified direction. */ + prev(direction: string, allowCrossGroup: boolean): SummaryCell; + /** Gets the child cell in a specified direction. */ + child(direction: string, fieldValue: any): SummaryCell; + /** Gets the cell located by the path of the source cell with one field value changed. */ + slice(field: PivotGridField, value: any): SummaryCell; + /** Gets the header cell of a row or column field to which the current cell belongs. */ + field(area: string): PivotGridField; + /** Gets the value of the current cell. */ + value(): any; + /** Gets the value of the current cell. */ + value(isCalculatedValue: boolean): any; + /** Gets the value of any field linked with the current cell. */ + value(field: PivotGridField): any; + /** Gets the value of any field linked with the current cell. */ + value(field: PivotGridField, isCalculatedValue: boolean): any; + } + export interface PivotGridDataSourceOptions { + /** Specifies the underlying Store instance used to access data. */ + store?: any; + /** Indicates whether or not the automatic field generation from data in the Store is enabled. */ + retrieveFields?: boolean; + /** Specifies data filtering conditions. Cannot be used for the XmlaStore store type. */ + filter?: Object; + /** An array of pivot grid fields. */ + fields?: Array; + /** A handler for the changed event. */ + onChanged?: () => void; + /** A handler for the loadingChanged event. */ + onLoadingChanged?: (isLoading: boolean) => void; + /** A handler for the loadError event. */ + onLoadError?: (e?: Object) => void; + /** A handler for the fieldsPrepared event. */ + onFieldsPrepared?: (e?: Array) => void; + } + /** An object that provides access to data for the dxPivotGrid widget. */ + export class PivotGridDataSource implements EventsMixin { + constructor(options?: PivotGridDataSource); + /** Starts reloading data from any store and updating the data source. */ + reload(): JQueryPromise; + /** Starts updating the data source. Reloads data from the XMLA store only. */ + load(): JQueryPromise; + /** Indicates whether or not the PivotGridDataSource is currently being loaded. */ + isLoading(): boolean; + /** Gets data displayed in a PivotGrid. */ + getData(): Object; + /** Gets all fields within a specified area. */ + getAreaFields(area: string, collectGroups: boolean): Array; + /** Gets all fields from the data source. */ + fields(): Array; + /** Sets the fields option. */ + fields(fields: Array): void; + /** Gets current options of a specified field. */ + field(id: any): PivotGridField; + /** Sets one or more options of a specified field. */ + field(id: any, field: PivotGridField): void; + /** Collapses a specified header item. */ + collapseHeaderItem(area: string, path: Array): void; + /** Expands a specified header item. */ + expandHeaderItem(area: string, path: Array): void; + /** Expands all header items of a field. */ + expandAll(id: any): void; + /** Collapses all header items of a field. */ + collapseAll(id: any): void; + /** Disposes of all resources associated with this PivotGridDataSource. */ + dispose(): void; + /** Gets the current filter expression. Cannot be used for the XmlaStore store type. */ + filter(): Object; + /** Applies a new filter expression. Cannot be used for the XmlaStore store type. */ + filter(filterExpr: Object): void; + /** Provides access to a list of records (facts) that were used to calculate a specific summary. */ + createDrillDownDataSource(options: { + columnPath?: Array; + rowPath?: Array; + dataIndex?: number; + maxRowCount?: number; + customColumns?: Array; + }): DevExpress.data.DataSource; + /** Gets the current PivotGridDataSource state (fields configuration, sorting, filters, expanded headers, etc.) */ + state(): Object; + /** Sets the PivotGridDataSource state. */ + state(state: Object): void; + on(eventName: string, eventHandler: Function): PivotGridDataSource; + on(events: { [eventName: string]: Function; }): PivotGridDataSource; + off(eventName: string): PivotGridDataSource; + off(eventName: string, eventHandler: Function): PivotGridDataSource; + } +} +declare namespace DevExpress.ui { + export interface dxSchedulerOptions extends WidgetOptions { + /** Specifies a date displayed on the current scheduler view by default. */ + currentDate?: Date; + /** The earliest date the widget allows you to select. */ + min?: Date; + /** The latest date the widget allows you to select. */ + max?: Date; + /** Specifies the view used in the scheduler by default. */ + currentView?: string; + /** A data source used to fetch data to be displayed by the widget. */ + dataSource?: any; + /** Specifies the first day of a week. */ + firstDayOfWeek?: number; + /** The template to be used for rendering appointments. */ + appointmentTemplate?: any; + /** The template to be used for rendering an appointment tooltip. */ + appointmentTooltipTemplate?: any; + /** Lists the views to be available within the scheduler's View Selector. */ + views?: Array; + /** Specifies the resource kinds by which the scheduler's appointments are grouped in a timetable. */ + groups?: Array; + /** Specifies a start hour in the scheduler view's time interval. */ + startDayHour?: number; + /** Specifies an end hour in the scheduler view's time interval. */ + endDayHour?: number; + /** Specifies whether or not the "All-day" panel is visible. */ + showAllDayPanel?: boolean; + /** Specifies cell duration in minutes. */ + cellDuration?: number; + /** Specifies the edit mode for recurrent appointments. */ + recurrenceEditMode?: string; + /** Specifies which editing operations an end-user can perform on appointments. */ + editing?: { + /** Specifies whether or not an end-user can add appointments. */ + allowAdding?: boolean; + /** Specifies whether or not an end-user can change appointment options. */ + allowUpdating?: boolean; + /** Specifies whether or not an end-user can delete appointments. */ + allowDeleting?: boolean; + /** Specifies whether or not an end-user can change an appointment duration. */ + allowResizing?: boolean; + /** Specifies whether or not an end-user can drag appointments. */ + allowDragging?: boolean; + } + /** Specifies an array of resources available in the scheduler. */ + resources?: Array<{ + /** Indicates whether or not several resources of this kind can be assigned to an appointment. */ + allowMultiple?: boolean; + /** + * Indicates whether or not resources of this kind have priority in the color identification of the appointments that have resources of different kinds assigned. + * @deprecated Use the 'useColorAsDefault' property instead + */ + mainColor?: boolean; + /** Indicates whether or not resources of this kind have priority in the color identification of the appointments that have resources of different kinds assigned. */ + useColorAsDefault?: boolean; + /** A data source used to fetch resources to be available in the scheduler. */ + dataSource?: any; + /** Specifies the resource object field whose value is displayed by the Resource editor in the Appointment popup window. */ + displayExpr?: any; + /** Specifies the resource object field that is used as a value of the Resource editor in the Appointment popup window. */ + valueExpr?: any; + /** The name of the appointment object field that specifies a resource of this kind. */ + field?: string; + /** Specifies the label of the Appointment popup window field that allows end users to assign a resource of this kind. */ + label?: string; + }>; + /** A handler for the AppointmentAdding event. */ + onAppointmentAdding?: Function; + /** A handler for the appointmentAdded event. */ + onAppointmentAdded?: Function; + /** A handler for the AppointmentUpdating event. */ + onAppointmentUpdating?: Function; + /** A handler for the appointmentUpdated event. */ + onAppointmentUpdated?: Function; + /** A handler for the AppointmentDeleting event. */ + onAppointmentDeleting?: Function; + /** A handler for the appointmentDeleted event. */ + onAppointmentDeleted?: Function; + /** A handler for the appointmentRendered event. */ + onAppointmentRendered?: Function; + /** A handler for the appointmentClick event. */ + onAppointmentClick?: any; + /** A handler for the appointmentDblClick event. */ + onAppointmentDblClick?: any; + /** A handler for the cellClick event. */ + onCellClick?: any; + /** A handler for the appointmentFormCreated event. */ + onAppointmentFormCreated?: Function; + /** Specifies whether or not an end-user can scroll the view horizontally. */ + horizontalScrollingEnabled?: boolean; + /** Specifies whether a user can switch views using tabs or a drop-down menu. */ + useDropDownViewSwitcher?: boolean; + /** Specifies the name of the data source item field that defines the start of the appointment. */ + startDateExpr?: string; + /** Specifies the name of the data source item field that defines the ending of the appointment. */ + endDateExpr?: string; + /** Specifies the name of the data source item field that holds the subject of the appointment. */ + textExpr?: string; + /** Specifies the name of the data source item field whose value holds the description of the corresponding appointment. */ + descriptionExpr?: string; + /** Specifies the name of the data source item field whose value defines whether or not the corresponding appointment is an all-day appointment. */ + allDayExpr?: string; + /** Specifies the name of the data source item field that defines a recurrence rule for generating recurring appointments. */ + recurrenceRuleExpr?: string; + /** Specifies the name of the data source item field that defines exceptions for the current recurring appointment. */ + recurrenceExceptionExpr?: string; + /** Specifies whether filtering is performed on the server or client side. */ + remoteFiltering?: boolean; + } + /** A widget that displays scheduled data using different views and provides the capability to load, add and edit appointments. */ + export class dxScheduler extends Widget { + constructor(element: JQuery, options?: dxSchedulerOptions); + constructor(element: Element, options?: dxSchedulerOptions); + /** Add the appointment defined by the object passed as a parameter to the data associated with the widget. */ + addAppointment(appointment: Object): void; + /** Updates the appointment specified by the first method parameter by the appointment object specified by the second method parameter in the the data associated with the widget. */ + updateAppointment(target: Object, appointment: Object): void; + /** Deletes the appointment defined by the parameter from the the data associated with the widget. */ + deleteAppointment(appointment: Object): void; + /** Scrolls the scheduler work space to the specified time. */ + scrollToTime(hours: number, minutes: number): void; + /** Displays the Appointment Details popup. */ + showAppointmentPopup(appointmentData: Object, createNewAppointment?: boolean): void; + } + export interface dxColorBoxOptions extends dxDropDownEditorOptions { + /** Specifies the text displayed on the button that applies changes and closes the drop-down editor. */ + applyButtonText?: string; + applyValueMode?: string; + /** Specifies the text displayed on the button that cancels changes and closes the drop-down editor. */ + cancelButtonText?: string; + /** Specifies whether or not the widget value includes the alpha channel component. */ + editAlphaChannel?: boolean; + /** Specifies the size of a step by which a handle is moved using a keyboard shortcut. */ + keyStep?: number; + } + /** A widget used to specify a color value. */ + export class dxColorBox extends dxDropDownEditor { + constructor(element: JQuery, options?: dxColorBoxOptions); + constructor(element: Element, options?: dxColorBoxOptions); + } + export interface HierarchicalCollectionWidgetOptions extends CollectionWidgetOptions { + /** Specifies the name of the data source item field whose value is displayed by the widget. */ + displayExpr?: any; + /** Specifies the name of the data source item field used as a key. */ + keyExpr?: any; + /** Specifies the name of the data source item field whose value defines whether or not the corresponding widget items is selected. */ + selectedExpr?: any; + /** Specifies the name of the data source item field that contains an array of nested items. */ + itemsExpr?: any; + /** Specifies the name of the data source item field whose value defines whether or not the corresponding widget item is disabled. */ + disabledExpr?: any; + /** Specifies the name of the data source item field that holds the key of the parent item. */ + parentIdExpr?: any; + /** Specifies the name of the data source item field whose value defines whether or not the corresponding widget items is expanded. */ + expandedExpr?: any; + hoverStateEnabled?: boolean; + focusStateEnabled?: boolean; + } + export class HierarchicalCollectionWidget extends CollectionWidget { + } + export interface dxTreeViewOptions extends HierarchicalCollectionWidgetOptions { + /** Specifies whether or not to animate item collapsing and expanding. */ + animationEnabled?: boolean; + /** Specifies whether a nested or plain array is used as a data source. */ + dataStructure?: string; + /** Specifies whether or not a user can expand all tree view items by the "*" hot key. */ + expandAllEnabled?: boolean; + /** + * Specifies whether or not a check box is displayed at each tree view item. + * @deprecated Use the showCheckBoxesMode option instead. + */ + showCheckBoxes?: boolean; + /** Specifies the current check boxes display mode. */ + showCheckBoxesMode?: string; + /** Specifies whether or not to select nodes recursively. */ + selectNodesRecursive?: boolean; + /** Specifies whether or not all parent nodes of an initially expanded node are displayed expanded. */ + expandNodesRecursive?: boolean; + /** + * Specifies whether the "Select All" check box is displayed over the tree view. + * @deprecated Use the showCheckBoxesMode option instead. + */ + selectAllEnabled?: boolean; + /** Specifies the text displayed at the "Select All" check box. */ + selectAllText?: string; + /** Specifies the name of the data source item field whose value defines whether or not the corresponding node includes child nodes. */ + hasItemsExpr?: any; + /** Specifies if the virtual mode is enabled. */ + virtualModeEnabled?: boolean; + /** Specifies the parent ID value of the root item. */ + rootValue?: any; + /** Specifies the current value used to filter tree view items. */ + searchValue?: string; + /** A string value specifying available scrolling directions. */ + scrollDirection?: string; + /** A handler for the itemSelected event. */ + onItemSelected?: Function; + /** A handler for the itemExpanded event. */ + onItemExpanded?: Function; + /** A handler for the itemCollapsed event. */ + onItemCollapsed?: Function; + onItemClick?: Function; + onItemContextMenu?: Function; + onItemRendered?: Function; + onItemHold?: Function; + } + /** A widget displaying specified data items as a tree. */ + export class dxTreeView extends HierarchicalCollectionWidget { + constructor(element: JQuery, options?: dxTreeViewOptions); + constructor(element: Element, options?: dxTreeViewOptions); + /** Updates the tree view scrollbars according to the current size of the widget content. */ + updateDimensions(): JQueryPromise; + /** Selects the specified item. */ + selectItem(itemElement: any): void; + /** Unselects the specified item. */ + unselectItem(itemElement: any): void; + /** Expands the specified item. */ + expandItem(itemElement: any): void; + /** Collapses the specified item. */ + collapseItem(itemElement: any): void; + /** Returns all nodes of the tree view. */ + getNodes(): Array; + /** Selects all widget items. */ + selectAll(): void; + /** Unselects all widget items. */ + unselectAll(): void; + } + export interface dxMenuBaseOptions extends HierarchicalCollectionWidgetOptions { + /** An object that defines the animation options of the widget. */ + animation?: fx.AnimationOptions; + /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ + activeStateEnabled?: boolean; + /** Specifies the name of the CSS class associated with the menu. */ + cssClass?: string; + /** Holds an array of menu items. */ + items?: Array; + /** Specifies whether or not an item becomes selected if an end-user clicks it. */ + selectionByClick?: boolean; + /** Specifies the selection mode supported by the menu. */ + selectionMode?: string; + /** Specifies options of submenu showing and hiding. */ + showSubmenuMode?: { + /** Specifies the mode name. */ + name?: string; + /** Specifies the delay of submenu show and hiding. */ + delay?: { + /** The time span after which the submenu is shown. */ + show?: number; + /** The time span after which the submenu is hidden. */ + hide?: number; + }; + }; + } + export class dxMenuBase extends HierarchicalCollectionWidget { + constructor(element: JQuery, options?: dxMenuBaseOptions); + constructor(element: Element, options?: dxMenuBaseOptions); + /** Selects the specified item. */ + selectItem(itemElement: any): void; + /** Unselects the specified item. */ + unselectItem(itemElement: any): void; + } + export interface dxMenuOptions extends dxMenuBaseOptions { + /** Specifies whether or not the submenu is hidden when the mouse pointer leaves it. */ + hideSubmenuOnMouseLeave?: boolean; + /** Specifies whether the menu has horizontal or vertical orientation. */ + orientation?: string; + /** Specifies options for showing and hiding the first level submenu. */ + showFirstSubmenuMode?: { + /** Specifies the mode name. */ + name?: string; + /** Specifies the delay of submenu showing and hiding. */ + delay?: { + /** The time span after which the submenu is shown. */ + show?: number; + /** The time span after which the submenu is hidden. */ + hide?: number; + }; + }; + /** Specifies the direction at which the submenus are displayed. */ + submenuDirection?: string; + /** A handler for the submenuHidden event. */ + onSubmenuHidden?: Function; + /** A handler for the submenuHiding event. */ + onSubmenuHiding?: Function; + /** A handler for the submenuShowing event. */ + onSubmenuShowing?: Function; + /** A handler for the submenuShown event. */ + onSubmenuShown?: Function; + } + /** A menu widget. */ + export class dxMenu extends dxMenuBase { + constructor(element: JQuery, options?: dxMenuOptions); + constructor(element: Element, options?: dxMenuOptions); + } + export interface dxContextMenuOptions extends dxMenuBaseOptions { + /** Holds an object that specifies options of alternative menu invocation. */ + alternativeInvocationMode?: { + /** Specifies whether or not the standard context menu invocation (on a right mouse click or on a long tap) is disabled. */ + enabled?: Boolean; + /** Specifies the element used to invoke the context menu. */ + invokingElement?: any; + }; + /** A handler for the hidden event. */ + onHidden?: Function; + /** A handler for the hiding event. */ + onHiding?: Function; + /** A handler for the positioning event. */ + onPositioning?: Function; + /** A handler for the showing event. */ + onShowing?: Function; + /** A handler for the shown event. */ + onShown?: Function; + /** An object defining widget positioning options. */ + position?: PositionOptions; + /** Specifies the direction at which submenus are displayed. */ + submenuDirection?: string; + /** The target element associated with a popover. */ + target?: any; + /** A Boolean value specifying whether or not the widget is visible. */ + visible?: boolean; + } + /** A context menu widget. */ + export class dxContextMenu extends dxMenuBase { + constructor(element: JQuery, options?: dxContextMenuOptions); + constructor(element: Element, options?: dxContextMenuOptions); + /** Toggles the visibility of the widget. */ + toggle(showing: boolean): JQueryPromise; + /** Shows the widget. */ + show(): JQueryPromise; + /** Hides the widget. */ + hide(): JQueryPromise; + } + export interface dxRemoteOperations { + /** Specifies whether or not filtering must be performed on the server side. */ + filtering?: boolean; + /** Specifies whether or not paging must be performed on the server side. */ + paging?: boolean; + /** Specifies whether or not sorting must be performed on the server side. */ + sorting?: boolean; + /** Specifies whether or not grouping must be performed on the server side. */ + grouping?: boolean; + /** Specifies whether or not summaries calculation must be performed on the server side. */ + summary?: boolean; + } + export interface dxDataGridColumn { + /** Specifies the content alignment within column cells. */ + alignment?: string; + /** Specifies whether the values in a column can be edited at runtime. Setting this option makes sense only when editing is enabled for a grid. */ + allowEditing?: boolean; + /** Specifies whether or not a column can be used for filtering grid records. Setting this option makes sense only when the filter row and column header filtering are visible. */ + allowFiltering?: boolean; + /** Specifies whether or not to allow filtering by this column using its header. */ + allowHeaderFiltering?: boolean; + /** Specifies whether or not the column can be anchored to a grid edge by end users. Setting this option makes sense only when the columnFixing | enabled option is set to true. */ + allowFixing?: boolean; + /** Specifies if a column can be used for searching grid records. Setting this option makes sense only when the search panel is visible. */ + allowSearch?: boolean; + /** Specifies whether a column can be used for grouping grid records at runtime. Setting this option makes sense only when the group panel is visible. */ + allowGrouping?: boolean; + /** Specifies whether or not a column can be hidden by a user. Setting this option makes sense only when the column chooser is visible. */ + allowHiding?: boolean; + /** Specifies whether or not a particular column can be used in column reordering. Setting this option makes sense only when the allowColumnReordering option is set to true. */ + allowReordering?: boolean; + /** Specifies whether or not a particular column can be resized by a user. Setting this option makes sense only when the allowColumnResizing option is true. */ + allowResizing?: boolean; + /** Specifies whether grid records can be sorted by a specific column at runtime. Setting this option makes sense only when the sorting mode differs from none. */ + allowSorting?: boolean; + /** Specifies whether groups appear expanded or not when records are grouped by a specific column. Setting this option makes sense only when grouping is allowed for this column. */ + autoExpandGroup?: boolean; + /** Specifies a callback function that returns a value to be displayed in a column cell. */ + calculateCellValue?: (rowData: Object) => string; + /** Specifies a callback function to be invoked after the cell value is edited by an end-user and before the new value is saved to the data source. */ + setCellValue?: (rowData: Object, value: any) => void; + /** Specifies a callback function that defines filters for customary calculated grid cells. */ + calculateFilterExpression?: (filterValue: any, selectedFilterOperation: string, target: string) => Array; + /** Specifies a caption for a column. */ + caption?: string; + /** Specifies a custom template for grid column cells. */ + cellTemplate?: any; + /** Specifies a CSS class to be applied to a column. */ + cssClass?: string; + /** Specifies how to get a value to be displayed in a cell when it is not in an editing state. */ + calculateDisplayValue?: any; + /** Specifies a field name or a function that returns a field name or a value to be used for grouping column cells. */ + calculateGroupValue?: any; + /** Specifies a field name or a function that returns a field name or a value to be used for sorting column cells. */ + calculateSortValue?: any; + /** Specifies a callback function that returns the text to be displayed in the cells of a column. */ + customizeText?: (cellInfo: { value: any; valueText: string }) => string; + /** Specifies the field of a data source that provides data for a column. */ + dataField?: string; + /** Specifies the required type of column values. */ + dataType?: string; + /** Specifies a custom template for the cell of a grid column when it is in an editing state. */ + editCellTemplate?: any; + /** Specifies configuration options for the editor widget of the current column. */ + editorOptions?: Object; + /** Specifies whether HTML tags are displayed as plain text or applied to the values of the column. */ + encodeHtml?: boolean; + /** In a boolean column, replaces all false items with a specified text. */ + falseText?: string; + /** Specifies the set of available filter operations. */ + filterOperations?: Array; + /** Specifies a filter value for a column. */ + filterValue?: any; + /** Specifies initial filter values for the column's header filter. */ + filterValues?: Array; + /** Specifies whether to include or exclude the records with the values selected in the column's header filter. */ + filterType?: string; + /** Indicates whether the column takes part in horizontal grid scrolling or is anchored to a grid edge. */ + fixed?: boolean; + /** Specifies the grid edge to which the column is anchored. */ + fixedPosition?: string; + /** Specifies a format for the values displayed in a column. */ + format?: string; + /** Specifies a custom template for the group cell of a grid column. */ + groupCellTemplate?: any; + /** Specifies the index of a column when grid records are grouped by the values of this column. */ + groupIndex?: number; + /** Specifies a custom template for the header of a grid column. */ + headerCellTemplate?: any; + /** Specifies options of a lookup column. */ + lookup?: { + /** Specifies whether or not a user can nullify values of a lookup column. */ + allowClearing?: boolean; + /** Specifies the data source providing data for a lookup column. */ + dataSource?: any; + /** Specifies the expression defining the data source field whose values must be displayed. */ + displayExpr?: any; + /** Specifies the expression defining the data source field whose values must be replaced. */ + valueExpr?: string; + }; + /** Specifies column-level options for filtering using a column header filter. */ + headerFilter?: { + /** Specifies the data source to be used for the header filter. */ + dataSource?: any; + /** Specifies how header filter values should be combined into groups. */ + groupInterval?: any; + }; + /** Specifies a precision for formatted values displayed in a column. */ + precision?: number; + /** Specifies a filter operation applied to a column. */ + selectedFilterOperation?: string; + /** Specifies whether or not the column displays its values by using editors. */ + showEditorAlways?: boolean; + /** Specifies whether or not to display the column when grid records are grouped by it. */ + showWhenGrouped?: boolean; + /** Specifies the index of a column when grid records are sorted by the values of this column. */ + sortIndex?: number; + /** Specifies the initial sort order of column values. */ + sortOrder?: string; + /** In a boolean column, replaces all true items with a specified text. */ + trueText?: string; + /** Specifies whether a column is visible or not. */ + visible?: boolean; + /** Specifies the sequence number of the column in the grid. */ + visibleIndex?: number; + /** Specifies a column width in pixels or percentages. */ + width?: any; + /** Specifies an array of validation rules to be checked when updating column cell values. */ + validationRules?: Array; + /** Specifies whether or not to display the header of a hidden column in the column chooser. */ + showInColumnChooser?: boolean; + /** Specifies the identifier of the column. */ + name?: string; + /** The form item configuration object. Used only when the editing mode is "form". */ + formItem?: DevExpress.ui.dxFormItem; + } + export interface dxDataGridOptions extends WidgetOptions { + /** Specifies whether the outer borders of the grid are visible or not. */ + showBorders?: boolean; + /** Indicates whether to show the error row for the grid. */ + errorRowEnabled?: boolean; + /** A handler for the rowValidating event. */ + onRowValidating?: (e: Object) => void; + /** A handler for the contextMenuPreparing event. */ + onContextMenuPreparing?: (e: Object) => void; + /** A handler for the initNewRow event. */ + onInitNewRow?: (e: { data: Object }) => void; + /** A handler for the rowInserted event. */ + onRowInserted?: (e: { data: Object; key: any }) => void; + /** A handler for the rowInserting event. */ + onRowInserting?: (e: { data: Object; cancel: any }) => void; + /** A handler for the rowRemoved event. */ + onRowRemoved?: (e: { data: Object; key: any }) => void; + /** A handler for the rowRemoving event. */ + onRowRemoving?: (e: { data: Object; key: any; cancel: any }) => void; + /** A handler for the rowUpdated event. */ + onRowUpdated?: (e: { data: Object; key: any }) => void; + /** A handler for the rowUpdating event. */ + onRowUpdating?: (e: { oldData: Object; newData: Object; key: any; cancel: any }) => void; + /** Enables a hint that appears when a user hovers the mouse pointer over a cell with truncated content. */ + cellHintEnabled?: boolean; + /** Specifies whether or not grid columns can be reordered by a user. */ + allowColumnReordering?: boolean; + /** Specifies whether or not grid columns can be resized by a user. */ + allowColumnResizing?: boolean; + /** A handler for the cellClick event. */ + onCellClick?: any; + /** A handler for the cellHoverChanged event. */ + onCellHoverChanged?: (e: Object) => void; + /** A handler for the cellPrepared event. */ + onCellPrepared?: (e: Object) => void; + /** Specifies whether or not the width of grid columns depends on column content. */ + columnAutoWidth?: boolean; + /** Specifies the options of a column chooser. */ + columnChooser?: { + /** Specifies text displayed by the column chooser panel when it does not contain any columns. */ + emptyPanelText?: string; + /** Specifies whether a user can invoke the column chooser or not. */ + enabled?: boolean; + /** Specifies the height of the column chooser panel. */ + height?: number; + /** Specifies text displayed in the title of the column chooser panel. */ + title?: string; + /** Specifies the width of the column chooser panel. */ + width?: number; + }; + /** Specifies options for column fixing. */ + columnFixing?: { + /** Indicates if column fixing is enabled. */ + enabled?: boolean; + /** Contains options that specify texts for column-fixing related commands in the column header's context menu. */ + texts?: { + /** Specifies text for a context menu item that fixes the column for which the context menu is invoked. */ + fix?: string; + /** Specifies text for a context menu item that unfixes the column for which the context menu is invoked. */ + unfix?: string; + /** Specifies text for a context menu subitem that fixes a column, for which the context menu is invoked, to the left grid edge. */ + leftPosition?: string; + /** Specifies text for a context menu subitem that fixes a column, for which the context menu is invoked, to the right grid edge. */ + rightPosition?: string; + }; + }; + /** Specifies options for filtering using a column header filter. */ + headerFilter?: { + /** Indicates whether or not the column header filter button is visible. */ + visible?: boolean; + /** Specifies the height of the dropdown menu invoked when using a column header filter. */ + height?: number; + /** Specifies the width of the dropdown menu invoked when using a column header filter. */ + width?: number; + /** Contains options that specify texts for the dropdown menu invoked when you use a column header filter. */ + texts?: { + /** Specifies text for the item specifying an empty value in the column header filter's dropdown menu. */ + emptyValue?: string; + /** Specifies text for a button that closes the column header filter's dropdown menu and applies specified filtering. */ + ok?: string; + /** Specifies text for a button that closes the column header filter's dropdown menu without applying performed selection. */ + cancel?: string; + } + }; + /** An array of grid columns. */ + columns?: Array; + onContentReady?: Function; + /** Specifies a function that customizes grid columns after they are created. */ + customizeColumns?: (columns: Array) => void; + /** Specifies a data source for the grid. */ + dataSource?: any; + /** Specifies whether or not to enable data caching. */ + cacheEnabled?: boolean; + /** A handler for the editingStart event. */ + onEditingStart?: (e: { + data: Object; + key: any; + cancel: boolean; + column: dxDataGridColumn + }) => void; + /** A handler for the editorPrepared event. */ + onEditorPrepared?: (e: Object) => void; + /** A handler for the editorPreparing event. */ + onEditorPreparing?: (e: Object) => void; + /** Contains options that specify how grid content can be changed. */ + editing?: { + editMode?: string; + editEnabled?: boolean; + insertEnabled?: boolean; + removeEnabled?: boolean; + /** Specifies how grid values can be edited manually. */ + mode?: string; + /** Specifies whether or not grid records can be edited at runtime. */ + allowUpdating?: boolean; + /** Specifies whether or not new grid records can be added at runtime. */ + allowAdding?: boolean; + /** Specifies whether or not grid records can be deleted at runtime. */ + allowDeleting?: boolean; + /** The form configuration object. Used only when the editing mode is "form". */ + form?: DevExpress.ui.dxFormOptions; + /** Contains options that specify texts for editing-related grid controls. */ + texts?: { + /** Specifies text for a hint that appears when a user hovers the mouse pointer over the "Save" button. Setting this option makes sense only when the editMode option is set to batch. */ + saveAllChanges?: string; + /** Specifies text for a cancel button displayed when a row is in the editing state. Setting this option makes sense only when the allowUpdating option is set to true. */ + cancelRowChanges?: string; + /** Specifies text for a hint that appears when a user hovers the mouse pointer over the "Revert" button. Setting this option makes sense only when the editMode option is set to batch. */ + cancelAllChanges?: string; + /** Specifies a message to be displayed by a confirmation window. Setting this option makes sense only when the edit mode is "row". */ + confirmDeleteMessage?: string; + /** Specifies text to be displayed in the title of a confirmation window. Setting this option makes sense only when the edit mode is "row". */ + confirmDeleteTitle?: string; + /** Specifies text for a hint that appears when a user hovers the mouse pointer over the "Cancel changes" button. Setting this option makes sense only when the editMode option is set to cell and the validation capabilities are enabled. */ + validationCancelChanges?: string; + /** Specifies text for a button that deletes a row from a grid. Setting this option makes sense only when the allowDeleting option is set to true. */ + deleteRow?: string; + /** Specifies text for a hint that appears when a user hovers the mouse pointer over the "Add" button. Setting this option makes sense only when the allowAdding option is true. */ + addRow?: string; + /** Specifies text for a button that turns a row into the editing state. Setting this option makes sense only when the allowUpdating option is set to true. */ + editRow?: string; + /** Specifies text for a save button displayed when a row is in the editing state. Setting this option makes sense only when the allowUpdating option is set to true. */ + saveRowChanges?: string; + /** Specifies text for a button that recovers a deleted row. Setting this option makes sense only if the grid uses the batch edit mode and the allowDeleting option is set to true. */ + undeleteRow?: string; + }; + }; + /** Specifies filter row options. */ + filterRow?: { + /** Specifies when to apply a filter. */ + applyFilter?: string; + /** Specifies text for the hint that pops up when a user hovers the mouse pointer over the "Apply Filter" button. */ + applyFilterText?: string; + /** Specifies descriptions for filter operations. */ + operationDescriptions?: { + "=": string; + "<>": string; + "<": string; + "<=": string; + ">": string; + ">=": string; + "startswith": string; + "contains": string; + "notcontains": string; + "endswith": string; + }; + /** Specifies text for the reset operation in a filter list. */ + resetOperationText?: string; + /** Specifies text for the operation of clearing the applied filter when a select box is used. */ + showAllText?: string; + /** Specifies text for the range start in the 'between' filter type. */ + betweenStartText?: string; + /** Specifies text for the range end in the 'between' filter type. */ + betweenEndText?: string; + /** Specifies whether or not an icon that allows the user to choose a filter operation is visible. */ + showOperationChooser?: boolean; + /** Specifies whether the filter row is visible or not. */ + visible?: boolean; + }; + /** Specifies the behavior of grouped grid records. */ + grouping?: { + /** Specifies whether the user can collapse grouped records in a grid or not. */ + allowCollapsing?: boolean; + /** Specifies whether groups appear expanded or not. */ + autoExpandAll?: boolean; + /** Specifies the message displayed in a group row when the corresponding group is continued from the previous page. */ + groupContinuedMessage?: string; + /** Specifies the message displayed in a group row when the corresponding group continues on the next page. */ + groupContinuesMessage?: string; + }; + /** Specifies options that configure the group panel. */ + groupPanel?: { + /** Specifies whether columns can be dragged onto or from the group panel. */ + allowColumnDragging?: boolean; + /** Specifies text displayed by the group panel when it does not contain any columns. */ + emptyPanelText?: string; + /** Specifies whether the group panel is visible or not. */ + visible?: boolean; + }; + /** Specifies options configuring the load panel. */ + loadPanel?: { + /** Specifies whether to show the load panel or not. */ + enabled?: boolean; + /** Specifies the height of the load panel in pixels. */ + height?: number; + /** Specifies a URL pointing to an image to be used as a loading indicator. */ + indicatorSrc?: string; + /** Specifies whether or not a loading indicator must be displayed on the load panel. */ + showIndicator?: boolean; + /** Specifies whether or not the pane of the load panel must be displayed. */ + showPane?: boolean; + /** Specifies text displayed by the load panel. */ + text?: string; + /** Specifies the width of the load panel in pixels. */ + width?: number; + }; + /** Specifies text displayed when a grid does not contain any records. */ + noDataText?: string; + /** Specifies the options of a grid pager. */ + pager?: { + /** Specifies the page sizes that can be selected at runtime. */ + allowedPageSizes?: any; + /** Specifies whether to show the page size selector or not. */ + showPageSizeSelector?: boolean; + /** Specifies whether to show the pager or not. */ + visible?: any; + /** Specifies the text accompanying the page navigator. */ + infoText?: string; + /** Specifies whether or not to display the text accompanying the page navigator. This text is specified by the infoText option. */ + showInfo?: boolean; + /** Specifies whether or not to display buttons that switch the grid to the previous or next page. */ + showNavigationButtons?: boolean; + }; + /** Specifies paging options. */ + paging?: { + /** Specifies whether dxDataGrid loads data page by page or all at once. */ + enabled?: boolean; + /** Specifies the grid page that should be displayed by default. */ + pageIndex?: number; + /** Specifies the size of grid pages. */ + pageSize?: number; + }; + /** Specifies whether or not grid rows must be shaded in a different way. */ + rowAlternationEnabled?: boolean; + /** Specifies whether to enable two-way data binding. */ + twoWayBindingEnabled?: boolean; + /** A handler for the rowClick event. */ + onRowClick?: any; + /** A handler for the rowPrepared event. */ + onRowPrepared?: (e: Object) => void; + /** Specifies a custom template for grid rows. */ + rowTemplate?: any; + /** A configuration object specifying scrolling options. */ + scrolling?: { + /** Specifies the scrolling mode. */ + mode?: string; + /** Specifies whether or not a grid must preload pages adjacent to the current page when using virtual scrolling. */ + preloadEnabled?: boolean; + /** Specifies whether or not the widget uses native scrolling. */ + useNative?: any; + /** Specifies the scrollbar display policy. */ + showScrollbar?: string; + /** Specifies whether or not the scrolling by content is enabled. */ + scrollByContent?: boolean; + /** Specifies whether or not the scrollbar thumb scrolling enabled. */ + scrollByThumb?: boolean; + }; + /** Specifies options of the search panel. */ + searchPanel?: { + /** Specifies whether or not search strings in the located grid records should be highlighted. */ + highlightSearchText?: boolean; + /** Specifies text displayed by the search panel when no search string was typed. */ + placeholder?: string; + /** Specifies whether the search panel is visible or not. */ + visible?: boolean; + /** Specifies the width of the search panel in pixels. */ + width?: number; + /** Sets a search string for the search panel. */ + text?: string; + }; + /** Specifies the operations that must be performed on the server side. */ + remoteOperations?: any; + /** Allows you to sort groups according to the values of group summary items. */ + sortByGroupSummaryInfo?: Array<{ + /** Specifies the group summary item whose values must be used to sort groups. */ + summaryItem?: string; + /** Specifies the identifier of the column that must be used in grouping so that sorting by group summary item values be applied. */ + groupColumn?: string; + /** Specifies the sort order of group summary item values. */ + sortOrder?: string; + }>; + /** Allows you to build a master-detail interface in the grid. */ + masterDetail?: { + /** Enables an end-user to expand/collapse detail sections. */ + enabled?: boolean; + /** Specifies whether detail sections appear expanded or collapsed. */ + autoExpandAll?: boolean; + /** Specifies the template for detail sections. */ + template?: any; + }; + /** Specifies options for exporting grid data. */ + export?: { + /** Indicates if the export feature is enabled in the grid. */ + enabled?: boolean; + /** Specifies a default name for the file to which grid data is exported. */ + fileName?: string; + /** Specifies whether to enable Excel filtering for the exported data in the resulting XLSX file. */ + excelFilterEnabled?: boolean; + /** Specifies whether to enable word wrapping for the exported data in the resulting XLSX file. */ + excelWrapTextEnabled?: boolean; + /** Specifies the URL of the server-side proxy that streams the resulting file to the end user to enable export in IE8, IE9 and Safari browsers. */ + proxyUrl?: string; + /** Indicates whether to allow end users to export not only the data displayed in the grid, but the selected rows only. */ + allowExportSelectedData?: boolean; + /** Contains options that specify texts for the export-related commands and hints. */ + texts?: { + /** Specifies text for the Export button when this button invokes a dropdown menu so you can choose the required export format. */ + exportTo?: string; + /** Specifies text for the Export button's hint when this button exports to the XSLX format without invoking the drop-down menu. */ + exportToExcel?: string; + /** Specifies text for the item in the Export dropdown menu that exports grid data to Excel. */ + excelFormat?: string; + /** Specifies text for the option in the Export dropdown menu that allows you to choose whether to export all the grid data or the selected rows only. */ + selectedRows?: string; + } + }; + /** Specifies the keys of the records that must appear selected initially. */ + selectedRowKeys?: Array; + /** Specifies options of runtime selection. */ + selection?: { + /** Specifies the checkbox row display policy in the multiple mode. */ + showCheckBoxesMode?: string; + /** Specifies whether the user can select all grid records at once. */ + allowSelectAll?: boolean; + /** Specifies the selection mode. */ + mode?: string; + }; + /** A handler for the dataErrorOccured event. */ + onDataErrorOccurred?: (e: { error: Error }) => void; + /** A handler for the selectionChanged event. */ + onSelectionChanged?: (e: { + currentSelectedRowKeys: Array; + currentDeselectedRowKeys: Array; + selectedRowKeys: Array; + selectedRowsData: Array; + }) => void; + /** A handler for the exporting event. */ + onExporting?: (e: { + fileName: string; + format: string; + cancel: boolean; + }) => void; + /** A handler for the fileSaving event. */ + onFileSaving?: (e: { + fileName: string; + format: string; + data: any; + cancel: boolean; + }) => void; + /** A handler for the exported event. */ + onExported?: (e: Object) => void; + /** A handler for the keyDown event. */ + onKeyDown?: (e: Object) => void; + /** A handler for the rowExpanding event. */ + onRowExpanding?: (e: Object) => void; + /** A handler for the rowExpanded event. */ + onRowExpanded?: (e: Object) => void; + /** A handler for the rowCollapsing event. */ + onRowCollapsing?: (e: Object) => void; + /** A handler for the rowCollapsed event. */ + onRowCollapsed?: (e: Object) => void; + /** Specifies whether column headers are visible or not. */ + showColumnHeaders?: boolean; + /** Specifies whether or not vertical lines separating one grid column from another are visible. */ + showColumnLines?: boolean; + /** Specifies whether or not horizontal lines separating one grid row from another are visible. */ + showRowLines?: boolean; + /** Specifies options of runtime sorting. */ + sorting?: { + /** Specifies text for the context menu item that sets an ascending sort order in a column. */ + ascendingText?: string; + /** Specifies text for the context menu item that resets sorting settings for a column. */ + clearText?: string; + /** Specifies text for the context menu item that sets a descending sort order in a column. */ + descendingText?: string; + /** Specifies the runtime sorting mode. */ + mode?: string; + }; + /** Specifies options of state storing. */ + stateStoring?: { + /** Specifies a callback function that performs specific actions on state loading. */ + customLoad?: () => JQueryPromise; + /** Specifies a callback function that performs specific actions on state saving. */ + customSave?: (state: Object) => void; + /** Specifies whether or not a grid saves its state. */ + enabled?: boolean; + /** Specifies the delay between the last change of a grid state and the operation of saving this state in milliseconds. */ + savingTimeout?: number; + /** Specifies a unique key to be used for storing the grid state. */ + storageKey?: string; + /** Specifies the type of storage to be used for state storing. */ + type?: string; + }; + /** Specifies the options of the grid summary. */ + summary?: { + /** Contains options that specify text patterns for summary items. */ + texts?: { + /** Specifies a pattern for the 'sum' summary items when they are displayed in the parent column. */ + sum?: string; + /** Specifies a pattern for the 'sum' summary items displayed in a group row or in any other column rather than the parent one. */ + sumOtherColumn?: string; + /** Specifies a pattern for the 'min' summary items when they are displayed in the parent column. */ + min?: string; + /** Specifies a pattern for the 'min' summary items displayed in a group row or in any other column rather than the parent one. */ + minOtherColumn?: string; + /** Specifies a pattern for the 'max' summary items when they are displayed in the parent column. */ + max?: string; + /** Specifies a pattern for the 'max' summary items displayed in a group row or in any other column rather than the parent one. */ + maxOtherColumn?: string; + /** Specifies a pattern for the 'avg' summary items when they are displayed in the parent column. */ + avg?: string; + /** Specifies a pattern for the 'avg' summary items displayed in a group row or in any other column rather than the parent one. */ + avgOtherColumn?: string; + /** Specifies a pattern for the 'count' summary items. */ + count?: string; + }; + /** Specifies items of the group summary. */ + groupItems?: Array<{ + /** Specifies the identifier of a summary item. */ + name?: string; + /** Specifies the column that provides data for a group summary item. */ + column?: string; + /** Customizes the text to be displayed in the summary item. */ + customizeText?: (itemInfo: { + value: any; + valueText: string; + }) => string; + /** Specifies a pattern for the summary item text. */ + displayFormat?: string; + /** Specifies a precision for the summary item value of a numeric format. */ + precision?: number; + /** Specifies whether or not a summary item must be displayed in the group footer. */ + showInGroupFooter?: boolean; + /** Indicates whether to display group summary items in parentheses after the group row header or to align them by the corresponding columns within the group row. */ + alignByColumn?: boolean; + /** Specifies the column that must hold the summary item when this item is displayed in the group footer or aligned by a column in the group row. */ + showInColumn?: string; + /** Specifies how to aggregate data for a summary item. */ + summaryType?: string; + /** Specifies a format for the summary item value. */ + valueFormat?: string; + }>; + /** Specifies items of the total summary. */ + totalItems?: Array<{ + /** Specifies the identifier of a summary item. */ + name?: string; + /** Specifies the alignment of a summary item. */ + alignment?: string; + /** Specifies the column that provides data for a summary item. */ + column?: string; + /** Specifies a CSS class to be applied to a summary item. */ + cssClass?: string; + /** Customizes the text to be displayed in the summary item. */ + customizeText?: (itemInfo: { + value: any; + valueText: string; + }) => string; + /** Specifies a pattern for the summary item text. */ + displayFormat?: string; + /** Specifies a precision for the summary item value of a numeric format. */ + precision?: number; + /** Specifies the column that must hold the summary item. */ + showInColumn?: string; + /** Specifies how to aggregate data for a summary item. */ + summaryType?: string; + /** Specifies a format for the summary item value. */ + valueFormat?: string; + }>; + /** Allows you to use a custom aggregate function to calculate the value of a summary item. */ + calculateCustomSummary?: (options: { + component: dxDataGrid; + name?: string; + value: any; + totalValue: any; + summaryProcess: string + }) => void; + }; + /** Specifies whether text that does not fit into a column should be wrapped. */ + wordWrapEnabled?: boolean; + } + /** A data grid widget. */ + export class dxDataGrid extends Widget { + constructor(element: JQuery, options?: dxDataGridOptions); + constructor(element: Element, options?: dxDataGridOptions); + /** Ungroups grid records. */ + clearGrouping(): void; + /** Clears sorting settings of all grid columns at once. */ + clearSorting(): void; + /** Allows you to obtain a cell by its row index and the data field of its column. */ + getCellElement(rowIndex: number, dataField: string): any; + /** Allows you to obtain a cell by its row index and the visible index of its column. */ + getCellElement(rowIndex: number, visibleColumnIndex: number): any; + /** Returns the current state of the grid. */ + state(): Object; + /** Sets the grid state. */ + state(state: Object): void; + /** Allows you to obtain the row index by a data key. */ + getRowIndexByKey(key: any): number; + /** Allows you to obtain the data key by a row index. */ + getKeyByRowIndex(rowIndex: number): any; + /** Adds a new column to a grid. */ + addColumn(columnOptions: dxDataGridColumn): void; + /** Removes the column from the grid. */ + deleteColumn(id: any): void; + /** Displays the load panel. */ + beginCustomLoading(messageText: string): void; + /** Discards changes made in a grid. */ + cancelEditData(): void; + /** Checks whether or not the grid contains unsaved changes. */ + hasEditData(): boolean; + /** Clears all the filters of a specific type applied to grid records. */ + clearFilter(): void; + /** Deselects all grid records. */ + clearSelection(): void; + /** Draws the cell being edited from the editing state. Use this method when the edit mode is batch. */ + closeEditCell(): void; + /** Collapses groups or master rows in a grid. */ + collapseAll(groupIndex?: number): void; + /** Returns the number of data columns in a grid. */ + columnCount(): number; + /** Returns the value of a specific column option. */ + columnOption(id: any, optionName: string): any; + /** Sets an option of a specific column. */ + columnOption(id: any, optionName: string, optionValue: any): void; + /** Returns the options of a column by an identifier. */ + columnOption(id: any): Object; + /** Sets several options of a column at once. */ + columnOption(id: any, options: Object): void; + /** Sets a specific cell into the editing state. */ + editCell(rowIndex: number, visibleColumnIndex: number): void; + /** Sets a specific cell into the editing state. */ + editCell(rowIndex: number, dataField: string): void; + /** Sets a specific row into the editing state. */ + editRow(rowIndex: number): void; + /** Gets the cell value. */ + cellValue(rowIndex: number, dataField: string): any; + /** Gets the cell value. */ + cellValue(rowIndex: number, visibleColumnIndex: number): any; + /** Sets the cell value. */ + cellValue(rowIndex: number, dataField: string, value: any): void; + /** Sets the cell value. */ + cellValue(rowIndex: number, visibleColumnIndex: number, value: any): void; + /** Hides the load panel. */ + endCustomLoading(): void; + /** Expands groups or master rows in a grid. */ + expandAll(groupIndex: number): void; + /** Allows you to find out whether a specific group or master row is expanded or collapsed. */ + isRowExpanded(key: any): boolean; + /** Allows you to expand a specific group or master row by its key. */ + expandRow(key: any): void; + /** Allows you to collapse a specific group or master row by its key. */ + collapseRow(key: any): void; + /** Applies a filter to the grid's data source. */ + filter(filterExpr?: any): void; + /** Returns a filter expression applied to the grid's data source using the filter(filterExpr) method. */ + filter(): any; + /** Returns a filter expression applied to the grid using all possible scenarious. */ + getCombinedFilter(): any; + /** Gets the keys of currently selected grid records. */ + getSelectedRowKeys(): Array; + /** Gets the data objects of currently selected grid records. */ + getSelectedRowsData(): Array; + /** Hides the column chooser panel. */ + hideColumnChooser(): void; + /** Adds a new data row to a grid. */ + addRow(): void; + /** + * Adds a new data row to a grid. + * @deprecated Use the addRow() method instead. + */ + insertRow(): void; + /** Returns the key corresponding to the passed data object. */ + keyOf(obj: Object): any; + /** Switches a grid to a specified page. */ + pageIndex(newIndex: number): void; + /** Gets the index of the current page. */ + pageIndex(): number; + /** Sets the page size. */ + pageSize(value: number): void; + /** Gets the current page size. */ + pageSize(): number; + /** Refreshes grid data. */ + refresh(): void; + /** Removes a specific row from a grid. */ + deleteRow(rowIndex: number): void; + /** + * Removes a specific row from a grid. + * @deprecated Use the deleteRow() method instead. + */ + removeRow(rowIndex: number): void; + /** Saves changes made in a grid. */ + saveEditData(): void; + /** Searches grid records by a search string. */ + searchByText(text: string): void; + /** Selects all grid records. */ + selectAll(): void; + /** Deselects the rows that are currently selected within the applied filter. */ + deselectAll(): void; + /** Selects specific grid records. */ + selectRows(keys: Array, preserve: boolean): void; + /** Deselects specific grid records. */ + deselectRows(keys: Array): void; + /** Selects grid rows by indexes. */ + selectRowsByIndexes(indexes: Array): void; + /** Allows you to find out whether a row is selected or not. */ + isRowSelected(key: any): boolean; + /** Invokes the column chooser panel. */ + showColumnChooser(): void; + startSelectionWithCheckboxes(): boolean; + /** Returns the number of records currently held by a grid. */ + totalCount(): number; + /** Recovers a row deleted in the batch edit mode. */ + undeleteRow(rowIndex: number): void; + /** Allows you to obtain a data object by its key. */ + byKey(key: any): JQueryPromise; + /** Gets the value of a total summary item. */ + getTotalSummaryValue(summaryItemName: string): any; + /** Exports grid data to Excel. */ + exportToExcel(selectionOnly: boolean): void; + /** Updates the grid to the size of its content. */ + updateDimensions(): void; + /** Focuses the specified cell element in the grid. */ + focus(element?: JQuery): void; + } + export interface dxPivotGridOptions extends WidgetOptions { + onContentReady?: Function; + /** Specifies a data source for the pivot grid. */ + dataSource?: any; + useNativeScrolling?: any; + /** A configuration object specifying scrolling options. */ + scrolling?: { + /** Specifies the scrolling mode. */ + mode?: string; + /** Specifies whether or not the widget uses native scrolling. */ + useNative?: any; + }; + /** Allows an end-user to change sorting options. */ + allowSorting?: boolean; + /** Allows an end-user to sort columns by summary values. */ + allowSortingBySummary?: boolean; + /** Allows an end-user to change filtering options. */ + allowFiltering?: boolean; + /** Allows an end-user to expand/collapse all header items within a header level. */ + allowExpandAll?: boolean; + /** Specifies whether to display the Total rows. */ + showRowTotals?: boolean; + /** Specifies whether to display the Grand Total row. */ + showRowGrandTotals?: boolean; + /** Specifies whether to display the Total columns. */ + showColumnTotals?: boolean; + /** Specifies whether to display the Grand Total column. */ + showColumnGrandTotals?: boolean; + /** Specifies whether or not to hide rows and columns with no data. */ + hideEmptySummaryCells?: boolean; + /** Specifies where to show the total rows or columns. */ + showTotalsPrior?: string; + /** Specifies whether the outer borders of the grid are visible or not. */ + showBorders?: boolean; + /** The Field Chooser configuration options. */ + fieldChooser?: { + /** Enables or disables the field chooser. */ + enabled?: boolean; + /** Specifies the field chooser layout. */ + layout?: number; + /** Specifies the text to display as a title of the field chooser popup window. */ + title?: string; + /** Specifies the field chooser width. */ + width?: number; + /** Specifies the field chooser height. */ + height?: number; + /** Strings that can be changed or localized in the pivot grid's integrated Field Chooser. */ + texts?: { + /** The string to display instead of Row Fields. */ + rowFields?: string; + /** The string to display instead of Column Fields. */ + columnFields?: string; + /** The string to display instead of Data Fields. */ + dataFields?: string; + /** The string to display instead of Filter Fields. */ + filterFields?: string; + /** The string to display instead of All Fields. */ + allFields?: string; + }; + } + /** Strings that can be changed or localized in the dxPivotGrid widget. */ + texts?: { + /** The string to display as a header of the Grand Total row and column. */ + grandTotal?: string; + /** The string to display as a header of the Total row and column. */ + total?: string; + /** Specifies the text displayed when a pivot grid does not contain any fields. */ + noData?: string; + /** The string to display as a Show Field Chooser context menu item. */ + showFieldChooser?: string; + /** The string to display as an Expand All context menu item. */ + expandAll?: string; + /** The string to display as a Collapse All context menu item. */ + collapseAll?: string; + /** The string to display as a Sort Column by Summary Value context menu item. */ + sortColumnBySummary?: string; + /** The string to display as a Sort Row by Summary Value context menu item. */ + sortRowBySummary?: string; + /** The string to display as a Remove All Sorting context menu item. */ + removeAllSorting?: string; + /** The string to display as an Export to Excel file context menu item. */ + exportToExcel?: string; + }; + /** The Load panel configuration options. */ + loadPanel?: { + /** Enables or disables the load panel. */ + enabled?: boolean; + /** Specifies the height of the load panel. */ + height?: number; + /** Specifies the URL pointing to an image that will be used as a load indicator. */ + indicatorSrc?: string; + /** Specifies whether or not to show a load indicator. */ + showIndicator?: boolean; + /** Specifies whether or not to show load panel background. */ + showPane?: boolean; + /** Specifies the text to display inside a load panel. */ + text?: string; + /** Specifies the width of the load panel. */ + width?: number; + }; + /** A handler for the cellClick event. */ + onCellClick?: (e: any) => void; + /** A handler for the cellPrepared event. */ + onCellPrepared?: (e: any) => void; + /** A handler for the contextMenuPreparing event. */ + onContextMenuPreparing?: (e: Object) => void; + /** Specifies options for exporting pivot grid data. */ + export?: { + /** Indicates whether the export feature is enabled for the pivot grid. */ + enabled?: boolean; + /** Specifies a default name for the file to which grid data is exported. */ + fileName?: string; + /** Specifies the URL of the server-side proxy that streams the resulting file to the end user to enable export in IE8, IE9 and Safari browsers. */ + proxyUrl?: string; + }; + /** A handler for the exporting event. */ + onExporting?: (e: { + fileName: string; + format: string; + cancel: boolean; + }) => void; + /** A handler for the fileSaving event. */ + onFileSaving?: (e: { + fileName: string; + format: string; + data: any; + cancel: boolean; + }) => void; + /** A handler for the exported event. */ + onExported?: (e: Object) => void; + /** A configuration object specifying options related to state storing. */ + stateStoring?: { + /** Specifies a callback function that performs specific actions on state loading. */ + customLoad?: () => JQueryPromise; + /** Specifies a callback function that performs specific actions on state saving. */ + customSave?: (gridState: Object) => void; + /** Specifies whether or not a grid saves its state. */ + enabled?: boolean; + /** Specifies the delay between the last change of a grid state and the operation of saving this state in milliseconds. */ + savingTimeout?: number; + /** Specifies a unique key to be used for storing the grid state. */ + storageKey?: string; + /** Specifies the type of storage to be used for state storing. */ + type?: string; + }; + } + /** A data summarization widget for multi-dimensional data analysis and data mining. */ + export class dxPivotGrid extends Widget { + constructor(element: JQuery, options?: dxPivotGridOptions); + constructor(element: Element, options?: dxPivotGridOptions); + /** Gets the PivotGridDataSource instance. */ + getDataSource(): DevExpress.data.PivotGridDataSource; + /** Gets the dxPopup instance of the field chooser window. */ + getFieldChooserPopup(): DevExpress.ui.dxPopup; + /** Updates the widget to the size of its content. */ + updateDimensions(): void; + /** Exports pivot grid data to the Excel file. */ + exportToExcel(): void; + } + export interface dxPivotGridFieldChooserOptions extends WidgetOptions { + /** Specifies the height of the widget. */ + height?: any; + /** Specifies the field chooser layout. */ + layout?: number; + /** The data source of a dxPivotGrid widget. */ + dataSource?: DevExpress.data.PivotGridDataSource; + onContentReady?: Function; + /** Strings that can be changed or localized in the dxPivotGridFieldChooser widget. */ + texts?: { + /** The string to display instead of Row Fields. */ + rowFields?: string; + /** The string to display instead of Column Fields. */ + columnFields?: string; + /** The string to display instead of Data Fields. */ + dataFields?: string; + /** The string to display instead of Filter Fields. */ + filterFields?: string; + /** The string to display instead of All Fields. */ + allFields?: string; + }; + } + /** A complementary widget for dxPivotGrid that allows you to manage data displayed in the dxPivotGrid. */ + export class dxPivotGridFieldChooser extends Widget { + constructor(element: JQuery, options?: dxPivotGridFieldChooserOptions); + constructor(element: Element, options?: dxPivotGridFieldChooserOptions); + /** Updates the widget to the size of its content. */ + updateDimensions(): void; + } +} +interface JQuery { + dxTreeView(): JQuery; + dxTreeView(options: "instance"): DevExpress.ui.dxTreeView; + dxTreeView(options: string): any; + dxTreeView(options: string, ...params: any[]): any; + dxTreeView(options: DevExpress.ui.dxTreeViewOptions): JQuery; + dxMenuBase(): JQuery; + dxMenuBase(options: "instance"): DevExpress.ui.dxMenuBase; + dxMenuBase(options: string): any; + dxMenuBase(options: string, ...params: any[]): any; + dxMenuBase(options: DevExpress.ui.dxMenuBaseOptions): JQuery; + dxMenu(): JQuery; + dxMenu(options: "instance"): DevExpress.ui.dxMenu; + dxMenu(options: string): any; + dxMenu(options: string, ...params: any[]): any; + dxMenu(options: DevExpress.ui.dxMenuOptions): JQuery; + dxContextMenu(): JQuery; + dxContextMenu(options: "instance"): DevExpress.ui.dxContextMenu; + dxContextMenu(options: string): any; + dxContextMenu(options: string, ...params: any[]): any; + dxContextMenu(options: DevExpress.ui.dxContextMenuOptions): JQuery; + dxColorBox(): JQuery; + dxColorBox(options: "instance"): DevExpress.ui.dxColorBox; + dxColorBox(options: string): any; + dxColorBox(options: string, ...params: any[]): any; + dxColorBox(options: DevExpress.ui.dxColorBoxOptions): JQuery; + dxDataGrid(): JQuery; + dxDataGrid(options: "instance"): DevExpress.ui.dxDataGrid; + dxDataGrid(options: string): any; + dxDataGrid(options: string, ...params: any[]): any; + dxDataGrid(options: DevExpress.ui.dxDataGridOptions): JQuery; + dxPivotGrid(): JQuery; + dxPivotGrid(options: "instance"): DevExpress.ui.dxPivotGrid; + dxPivotGrid(options: string): any; + dxPivotGrid(options: string, ...params: any[]): any; + dxPivotGrid(options: DevExpress.ui.dxPivotGridOptions): JQuery; + dxPivotGridFieldChooser(): JQuery; + dxPivotGridFieldChooser(options: "instance"): DevExpress.ui.dxPivotGridFieldChooser; + dxPivotGridFieldChooser(options: string): any; + dxPivotGridFieldChooser(options: string, ...params: any[]): any; + dxPivotGridFieldChooser(options: DevExpress.ui.dxPivotGridFieldChooserOptions): JQuery; + dxScheduler(): JQuery; + dxScheduler(options: "instance"): DevExpress.ui.dxScheduler; + dxScheduler(options: string): any; + dxScheduler(options: string, ...params: any[]): any; + dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; +} +declare namespace DevExpress.framework { + /** An object used to store information on the views displayed in an application. */ + export class ViewCache { + viewRemoved: JQueryCallback; + /** Removes all the viewInfo objects from the cache. */ + clear(): void; + /** Obtains a viewInfo object from the cache by the specified key. */ + getView(key: string): Object; + /** Checks whether or not a viewInfo object is contained in the view cache under the specified key. */ + hasView(key: string): boolean; + /** Removes a viewInfo object from the cache by the specified key. */ + removeView(key: string): Object; + /** Adds the specified viewInfo object to the cache under the specified key. */ + setView(key: string, viewInfo: Object): void; + } + export interface dxCommandOptions extends DOMComponentOptions { + /** Specifies an action performed when the execute() method of the command is called. */ + onExecute?: any; + /** Indicates whether or not the widget that displays this command is disabled. */ + disabled?: boolean; + /** Specifies whether the current command is rendered when a view is being rendered or after a view is shown. */ + renderStage?: string; + /** Specifies the name of the icon shown inside the widget associated with this command. */ + icon?: string; + iconSrc?: string; + /** The identifier of the command. */ + id?: string; + /** Specifies the title of the widget associated with this command. */ + title?: string; + /** Specifies the type of the button, if the command is rendered as a dxButton widget. */ + type?: string; + /** A Boolean value specifying whether or not the widget associated with this command is visible. */ + visible?: boolean; + } + /** A markup component used to define markup options for a command. */ + export class dxCommand extends DOMComponent { + constructor(element: JQuery, options: dxCommandOptions); + constructor(options: dxCommandOptions); + /** Executes the action associated with this command. */ + execute(): void; + } + /** An object responsible for routing. */ + export class Router { + /** Adds a routing rule to the list of registered rules. */ + register(pattern: string, defaults?: Object, constraints?: Object): void; + /** Decodes the specified URI to an object using the registered routing rules. */ + parse(uri: string): Object; + /** Formats an object to a URI. */ + format(obj: Object): string; + } + export interface StateManagerOptions { + /** A storage to which the state manager saves the application state. */ + storage?: Object; + } + /** An object used to store the current application state. */ + export class StateManager { + constructor(options?: StateManagerOptions); + /** Adds an object that implements an interface of a state source to the state manager's collection of state sources. */ + addStateSource(stateSource: Object): void; + /** Removes a specified state source from the state manager's collection of state sources. */ + removeStateSource(stateSource: Object): void; + /** Saves the current application state. */ + saveState(): void; + /** Restores the application state that has been saved by the saveState() method to the state storage. */ + restoreState(): void; + /** Removes the application state that has been saved by the saveState() method to the state storage. */ + clearState(): void; + } + export module html { + export var layoutSets: Array; + export var animationSets: { [animationSetName: string]: AnimationSet }; + export interface AnimationSet { + [animationName: string]: any + } + export interface HtmlApplicationOptions { + /** Specifies where the commands that are defined in the application's views must be displayed. */ + commandMapping?: Object; + /** Specifies whether or not view caching is disabled. */ + disableViewCache?: boolean; + /** An array of layout controllers that should be used to show application views in the current navigation context. */ + layoutSet?: any; + /** Specifies the animation presets that are used to animate different UI elements in the current application. */ + animationSet?: AnimationSet; + /** Specifies whether the current application must behave as a mobile or web application. */ + mode?: string; + /** Specifies the object that represents a root namespace of the application. */ + namespace?: Object; + /** Specifies application behavior when the user navigates to a root view. */ + navigateToRootViewMode?: string; + /** An array of dxCommand configuration objects used to define commands available from the application's global navigation. */ + navigation?: Array; + /** A state manager to be used in the application. */ + stateManager?: StateManager; + /** Specifies the storage to be used by the application's state manager to store the application state. */ + stateStorage?: Object; + /** Indicates whether on not to use the title of the previously displayed view as text on the Back button. */ + useViewTitleAsBackText?: boolean; + /** A custom view cache to be used in the application. */ + viewCache?: Object; + /** Specifies a limit for the views that can be cached. */ + viewCacheSize?: number; + /** Specifies the current version of application templates. */ + templatesVersion?: string; + /** Specifies options for the viewport meta tag of a mobile browser. */ + viewPort?: JQuery; + /** A custom router to be used in the application. */ + router?: Router; + } + /** An object used to manage views, as well as control the application life cycle. */ + export class HtmlApplication implements EventsMixin { + constructor(options: HtmlApplicationOptions); + afterViewSetup: JQueryCallback; + beforeViewSetup: JQueryCallback; + initialized: JQueryCallback; + navigating: JQueryCallback; + navigatingBack: JQueryCallback; + resolveLayoutController: JQueryCallback; + resolveViewCacheKey: JQueryCallback; + viewDisposed: JQueryCallback; + viewDisposing: JQueryCallback; + viewHidden: JQueryCallback; + viewRendered: JQueryCallback; + viewShowing: JQueryCallback; + viewShown: JQueryCallback; + /** Provides access to the ViewCache object. */ + viewCache: ViewCache; + /** An array of dxCommand components that are created based on the application's navigation option value. */ + navigation: Array; + /** Provides access to the StateManager object. */ + stateManager: StateManager; + /** Provides access to the Router object. */ + router: Router; + /** Navigates to the URI preceding the current one in the navigation history. */ + back(): void; + /** Returns a Boolean value indicating whether or not backwards navigation is currently possible. */ + canBack(): boolean; + /** Calls the clearState() method of the application's StateManager object. */ + clearState(): void; + /** Creates global navigation commands. */ + createNavigation(navigationConfig: Array): void; + /** Returns an HTML template of the specified view. */ + getViewTemplate(viewName: string): JQuery; + /** Returns a configuration object used to create a dxView component for a specified view. */ + getViewTemplateInfo(viewName: string): Object; + /** Adds a specified HTML template to a collection of view or layout templates. */ + loadTemplates(source: any): JQueryPromise; + /** Navigates to the specified URI. */ + navigate(uri?: any, options?: Object): void; + /** Renders navigation commands to the navigation command containers that are located in the layouts used in the application. */ + renderNavigation(): void; + /** Calls the restoreState() method of the application's StateManager object. */ + restoreState(): void; + /** Calls the saveState method of the application's StateManager object. */ + saveState(): void; + /** Provides access to the object that defines the current context to be considered when choosing an appropriate template for a view. */ + templateContext(): Object; + on(eventName: "initialized", eventHandler: () => void): HtmlApplication; + on(eventName: "afterViewSetup", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + on(eventName: "beforeViewSetup", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + on(eventName: "navigating", eventHandler: (e: { + currentUri: string; + uri: string; + cancel: boolean; + options: { + root: boolean; + target: string; + direction: string; + rootInDetailPane: boolean; + modal: boolean; + }; + }) => void): HtmlApplication; + on(eventName: "navigatingBack", eventHandler: (e: { + cancel: boolean; + isHardwareButton: boolean; + }) => void): HtmlApplication; + on(eventName: "resolveLayoutController", eventHandler: (e: { + viewInfo: Object; + layoutController: Object; + availableLayoutControllers: Array; + }) => void): HtmlApplication; + on(eventName: "resolveViewCacheKey", eventHandler: (e: { + key: string; + navigationItem: Object; + routeData: Object; + }) => void): HtmlApplication; + on(eventName: "viewDisposed", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + on(eventName: "viewDisposing", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + on(eventName: "viewHidden", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + on(eventName: "viewRendered", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + on(eventName: "viewShowing", eventHandler: (e: { + viewInfo: Object; + direction: string; + }) => void): HtmlApplication; + on(eventName: "viewShown", eventHandler: (e: { + viewInfo: Object; + direction: string; + }) => void): HtmlApplication; + on(eventName: string, eventHandler: Function): HtmlApplication; + on(events: { [eventName: string]: Function; }): HtmlApplication; + off(eventName: "initialized"): HtmlApplication; + off(eventName: "afterViewSetup"): HtmlApplication; + off(eventName: "beforeViewSetup"): HtmlApplication; + off(eventName: "navigating"): HtmlApplication; + off(eventName: "navigatingBack"): HtmlApplication; + off(eventName: "resolveLayoutController"): HtmlApplication; + off(eventName: "resolveViewCacheKey"): HtmlApplication; + off(eventName: "viewDisposed"): HtmlApplication; + off(eventName: "viewDisposing"): HtmlApplication; + off(eventName: "viewHidden"): HtmlApplication; + off(eventName: "viewRendered"): HtmlApplication; + off(eventName: "viewShowing"): HtmlApplication; + off(eventName: "viewShown"): HtmlApplication; + off(eventName: string): HtmlApplication; + off(eventName: "initialized", eventHandler: () => void): HtmlApplication; + off(eventName: "afterViewSetup", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + off(eventName: "beforeViewSetup", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + off(eventName: "navigating", eventHandler: (e: { + currentUri: string; + uri: string; + cancel: boolean; + options: { + root: boolean; + target: string; + direction: string; + rootInDetailPane: boolean; + modal: boolean; + }; + }) => void): HtmlApplication; + off(eventName: "navigatingBack", eventHandler: (e: { + cancel: boolean; + isHardwareButton: boolean; + }) => void): HtmlApplication; + off(eventName: "resolveLayoutController", eventHandler: (e: { + viewInfo: Object; + layoutController: Object; + availableLayoutControllers: Array; + }) => void): HtmlApplication; + off(eventName: "resolveViewCacheKey", eventHandler: (e: { + key: string; + navigationItem: Object; + routeData: Object; + }) => void): HtmlApplication; + off(eventName: "viewDisposed", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + off(eventName: "viewDisposing", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + off(eventName: "viewHidden", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + off(eventName: "viewRendered", eventHandler: (e: { + viewInfo: Object; + }) => void): HtmlApplication; + off(eventName: "viewShowing", eventHandler: (e: { + viewInfo: Object; + direction: string; + }) => void): HtmlApplication; + off(eventName: "viewShown", eventHandler: (e: { + viewInfo: Object; + direction: string; + }) => void): HtmlApplication; + off(eventName: string, eventHandler: Function): HtmlApplication; + } + } +} +declare namespace DevExpress.viz.core { + /** + * Applies a theme for the entire page with several DevExtreme visualization widgets. + * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. + */ + export function currentTheme(theme: string): void; + /** + * Applies a new theme (with the color scheme defined separately) for the entire page with several DevExtreme visualization widgets. + * @deprecated Use the DevExpress.viz.currentTheme(platform, colorScheme) method instead. + */ + export function currentTheme(platform: string, colorScheme: string): void; + /** + * Registers a new theme based on the existing one. + * @deprecated Use the DevExpress.viz.registerTheme(customTheme, baseTheme) method instead. + */ + export function registerTheme(customTheme: Object, baseTheme: string): void; + /** + * Applies a predefined or registered custom palette to all visualization widgets at once. + * @deprecated Use the DevExpress.viz.currentPalette(paletteName) method instead. + */ + export function currentPalette(paletteName: string): void; + /** + * Obtains the color sets of a predefined or registered palette. + * @deprecated Use the DevExpress.viz.getPalette(paletteName) method instead. + */ + export function getPalette(paletteName: string): Object; + /** + * Registers a new palette. + * @deprecated Use the DevExpress.viz.registerPalette(paletteName, palette) method instead. + */ + export function registerPalette(paletteName: string, palette: Object): void; + export interface Border { + /** Sets a border color for a selected series. */ + color?: string; + /** Sets border visibility for a selected series. */ + visible?: boolean; + /** Sets a border width for a selected series. */ + width?: number; + } + export interface DashedBorder extends Border { + /** Specifies a dash style for the border of a selected series point. */ + dashStyle?: string; + } + export interface DashedBorderWithOpacity extends DashedBorder { + /** Specifies the opacity of the tooltip's border. */ + opacity?: number; + } + export interface Font { + /** Specifies the font color for a strip label. */ + color?: string; + /** Specifies the font family for a strip label. */ + family?: string; + /** Specifies the font opacity for a strip label. */ + opacity?: number; + /** Specifies the font size for a strip label. */ + size?: any; + /** Specifies the font weight for the text displayed in strips. */ + weight?: number; + } + export interface Hatching { + direction?: string; + /** Specifies the opacity of hatching lines. */ + opacity?: number; + /** Specifies the distance between hatching lines in pixels. */ + step?: number; + /** Specifies the width of hatching lines in pixels. */ + width?: number; + } + export interface Margins { + /** Specifies the distance in pixels between the bottom side of the title and the surrounding widget elements. */ + bottom?: number; + /** Specifies the distance in pixels between the left side of the title and the surrounding widget elements. */ + left?: number; + /** Specifies the distance between the right side of the title and surrounding widget elements in pixels. */ + right?: number; + /** Specifies the distance between the top side of the title and surrounding widget elements in pixels. */ + top?: number; + } + export interface Size { + /** Specifies the width of the widget. */ + width?: number; + /** Specifies the height of the widget. */ + height?: number; + } + export interface Title { + /** Specifies font options for the title. */ + font?: viz.core.Font; + /** Specifies the widget title's horizontal position. */ + horizontalAlignment?: string; + /** Specifies the widget title's position in the vertical direction. */ + verticalAlignment?: string; + /** Specifies the distance between the title and surrounding widget elements in pixels. */ + margin?: viz.core.Margins; + /** Specifies the height of the space reserved for the title. */ + placeholderSize?: number; + /** Specifies text for the title. */ + text?: string; + /** Specifies a subtitle for the widget. */ + subtitle?: { + /** Specifies font options for the subtitle. */ + font?: viz.core.Font; + /** Specifies text for the subtitle. */ + text?: string; + } + } + export interface Tooltip { + /** Specifies the length of the tooltip's arrow in pixels. */ + arrowLength?: number; + /** Specifies the appearance of the tooltip's border. */ + border?: viz.core.DashedBorderWithOpacity; + /** Specifies a color for the tooltip. */ + color?: string; + /** Specifies the z-index for tooltips. */ + zIndex?: number; + /** Specifies the container to draw tooltips inside of it. */ + container?: any; + /** Specifies text and appearance of a set of tooltips. */ + customizeTooltip?: (arg: Object) => { color?: string; text?: string }; + /** Specifies whether or not the tooltip is enabled. */ + enabled?: boolean; + /** Specifies font options for the text displayed by the tooltip. */ + font?: Font; + /** Specifies a format for the text displayed by the tooltip. */ + format?: string; + /** Specifies the opacity of a tooltip. */ + opacity?: number; + /** Specifies a distance from the tooltip's left/right boundaries to the inner text in pixels. */ + paddingLeftRight?: number; + /** Specifies a distance from the tooltip's top/bottom boundaries to the inner text in pixels. */ + paddingTopBottom?: number; + /** Specifies a precision for formatted values displayed by the tooltip. */ + precision?: number; + /** Specifies options of the tooltip's shadow. */ + shadow?: { + /** Specifies the blur distance of the tooltip's shadow. */ + blur?: number; + /** Specifies the color of the tooltip's shadow. */ + color?: string; + /** Specifies the horizontal offset of the tooltip's shadow relative to the tooltip in pixels. */ + offsetX?: number; + /** Specifies the vertical offset of the tooltip's shadow relative to the tooltip in pixels. */ + offsetY?: number; + /** Specifies the opacity of the tooltip's shadow. */ + opacity?: number; + }; + } + export interface Animation { + /** Determines how long animation runs. */ + duration?: number; + /** Specifies the animation easing mode. */ + easing?: string; + /** Indicates whether or not animation is enabled. */ + enabled?: boolean; + } + export interface LoadingIndicator { + /** Specifies a color for the loading indicator background. */ + backgroundColor?: string; + /** Specifies font options for the loading indicator text. */ + font?: viz.core.Font; + /** Specifies whether to show the loading indicator or not. */ + show?: boolean; + /** Specifies a text to be displayed by the loading indicator. */ + text?: string; + } + export interface LegendBorder extends viz.core.DashedBorderWithOpacity { + /** Specifies a radius for the corners of the legend border. */ + cornerRadius?: number; + } + export interface BaseLegend { + /** Specifies the color of the legend's background. */ + backgroundColor?: string; + /** Specifies legend border settings. */ + border?: viz.core.LegendBorder; + /** Specifies how many columns must be taken to arrange legend items. */ + columnCount?: number; + /** Specifies the spacing between a pair of neighboring legend columns in pixels. */ + columnItemSpacing?: number; + /** Specifies font options for legend items. */ + font?: viz.core.Font; + /** Specifies the legend's position on the map. */ + horizontalAlignment?: string; + /** Specifies the alignment of legend items. */ + itemsAlignment?: string; + /** Specifies the position of text relative to the item marker. */ + itemTextPosition?: string; + /** Specifies the distance between the legend and the container borders in pixels. */ + margin?: viz.core.Margins; + /** Specifies the size of item markers in the legend in pixels. */ + markerSize?: number; + /** Specifies whether to arrange legend items horizontally or vertically. */ + orientation?: string; + /** Specifies the spacing between the legend left/right border and legend items in pixels. */ + paddingLeftRight?: number; + /** Specifies the spacing between the legend top/bottom border and legend items in pixels. */ + paddingTopBottom?: number; + /** Specifies how many rows must be taken to arrange legend items. */ + rowCount?: number; + /** Specifies the spacing between a pair of neighboring legend rows in pixels. */ + rowItemSpacing?: number; + /** Specifies the legend's position on the map. */ + verticalAlignment?: string; + /** Specifies whether or not the legend is visible on the map. */ + visible?: boolean; + } + export interface BaseWidgetOptions extends DOMComponentOptions { + /** A handler for the drawn event. */ + onDrawn?: (e: { + component: BaseWidget; + element: Element; + }) => void; + /** A handler for the incidentOccurred event. */ + onIncidentOccurred?: ( + component: BaseWidget, + element: Element, + target: { + id: string; + type: string; + args: any; + text: string; + widget: string; + version: string; + } + ) => void; + /** Notifies a widget that it is embedded into an HTML page that uses a path modifier. */ + pathModified?: boolean; + /** Specifies whether or not the widget supports right-to-left representation. */ + rtlEnabled?: boolean; + /** Sets the name of the theme to be used in the widget. */ + theme?: string; + } + /** This section describes options and methods that are common to all widgets. */ + export class BaseWidget extends DOMComponent { + /** Returns the widget's SVG markup. */ + svg(): string; + } +} +declare namespace DevExpress.viz.charts { + /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ + export interface BaseSeries { + /** Provides information about the state of the series object. */ + fullState: number; + /** Returns the type of the series. */ + type: string; + /** Unselects all the selected points of the series. The points are displayed in an initial style. */ + clearSelection(): void; + /** Gets the color of a particular series. */ + getColor(): string; + /** Gets points from the series point collection based on the specified argument. */ + getPointsByArg(pointArg: any): Array; + /** Gets a point from the series point collection based on the specified point position. */ + getPointByPos(positionIndex: number): Object; + /** Selects the series. The series is displayed in a 'selected' style until another series is selected or the current series is deselected programmatically. */ + select(): void; + /** Selects the specified point. The point is displayed in a 'selected' style. */ + selectPoint(point: BasePoint): void; + /** Deselects the specified point. The point is displayed in an initial style. */ + deselectPoint(point: BasePoint): void; + /** Returns an array of all points in the series. */ + getAllPoints(): Array; + /** Returns visible series points. */ + getVisiblePoints(): Array; + /** Returns the name of the series. */ + name: string; + /** Returns the tag of the series. */ + tag: string; + /** Hides a series. */ + hide(): void; + /** Provides information about the hover state of a series. */ + isHovered(): boolean; + /** Provides information about the selection state of a series. */ + isSelected(): boolean; + /** Provides information about the visibility state of a series. */ + isVisible(): boolean; + /** Makes a particular series visible. */ + show(): void; + } + /** This section describes the methods that can be used in code to manipulate the Point object. */ + export interface BasePoint { + /** Provides information about the state of the point object. */ + fullState: number; + /** Returns the point's argument value that was set in the data source. */ + originalArgument: any; + /** Returns the point's value that was set in the data source. */ + originalValue: any; + /** Returns the tag of the point. */ + tag: string; + /** Deselects the point. */ + clearSelection(): void; + /** Gets the color of a particular point. */ + getColor(): string; + /** Hides the tooltip of the point. */ + hideTooltip(): void; + /** Provides information about the hover state of a point. */ + isHovered(): boolean; + /** Provides information about the selection state of a point. */ + isSelected(): boolean; + /** Selects the point. The point is displayed in a 'selected' style until another point is selected or the current point is deselected programmatically. */ + select(): void; + /** Shows the tooltip of the point. */ + showTooltip(): void; + /** Allows you to obtain the label of a series point. */ + getLabel(): any; + /** Returns the series object to which the point belongs. */ + series: BaseSeries; + } + /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ + export interface ChartSeries extends BaseSeries { + /** Returns the name of the series pane. */ + pane: string; + /** Returns the name of the value axis of the series. */ + axis: string; + selectPoint(point: ChartPoint): void; + deselectPoint(point: ChartPoint): void; + getAllPoints(): Array; + getVisiblePoints(): Array; + } + /** This section describes the methods that can be used in code to manipulate the Point object. */ + export interface ChartPoint extends BasePoint { + /** Contains the close value of the point. This field is useful for points belonging to a series of the candle stick or stock type only. */ + originalCloseValue: any; + /** Contains the high value of the point. This field is useful for points belonging to a series of the candle stick or stock type only. */ + originalHighValue: any; + /** Contains the low value of the point. This field is useful for points belonging to a series of the candle stick or stock type only. */ + originalLowValue: any; + /** Contains the first value of the point. This field is useful for points belonging to a series of the range area or range bar type only. */ + originalMinValue: any; + /** Contains the open value of the point. This field is useful for points belonging to a series of the candle stick or stock type only. */ + originalOpenValue: any; + /** Contains the size of the bubble as it was set in the data source. This field is useful for points belonging to a series of the bubble type only. */ + size: any; + /** Gets the parameters of the point's minimum bounding rectangle (MBR). */ + getBoundingRect(): { x: number; y: number; width: number; height: number; }; + series: ChartSeries; + } + /** This section describes the methods that can be used in code to manipulate the Label object. */ + export interface Label { + /** Gets the parameters of the label's minimum bounding rectangle (MBR). */ + getBoundingRect(): { x: number; y: number; width: number; height: number; }; + /** Hides the point label. */ + hide(): void; + /** Shows the point label. */ + show(): void; + } + export interface PieSeries extends BaseSeries { + selectPoint(point: PiePoint): void; + deselectPoint(point: PiePoint): void; + getAllPoints(): Array; + getVisiblePoints(): Array; + } + /** This section describes the methods that can be used in code to manipulate the Point object. */ + export interface PiePoint extends BasePoint { + /** Gets the percentage value of the specific point. */ + percent: any; + /** Provides information about the visibility state of a point. */ + isVisible(): boolean; + /** Makes a specific point visible. */ + show(): void; + /** Hides a specific point. */ + hide(): void; + series: PieSeries; + } + /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ + export interface PolarSeries extends BaseSeries { + /** Returns the name of the value axis of the series. */ + axis: string; + selectPoint(point: PolarPoint): void; + deselectPoint(point: PolarPoint): void; + getAllPoints(): Array; + getVisiblePoints(): Array; + } + /** This section describes the methods that can be used in code to manipulate the Point object. */ + export interface PolarPoint extends BasePoint { + series: PolarSeries; + } + export interface Strip { + /** Specifies a color for a strip. */ + color?: string; + /** An object that defines the label configuration options of a strip. */ + label?: { + /** Specifies the text displayed in a strip. */ + text?: string; + }; + /** Specifies a start value for a strip. */ + startValue?: any; + /** Specifies an end value for a strip. */ + endValue?: any; + } + export interface BaseSeriesConfigLabel { + /** Specifies a format for arguments displayed by point labels. */ + argumentFormat?: string; + /** Specifies a precision for formatted point arguments displayed in point labels. */ + argumentPrecision?: number; + /** Specifies a background color for point labels. */ + backgroundColor?: string; + /** Specifies border options for point labels. */ + border?: viz.core.DashedBorder; + /** Specifies connector options for series point labels. */ + connector?: { + /** Specifies the color of label connectors. */ + color?: string; + /** Indicates whether or not label connectors are visible. */ + visible?: boolean; + /** Specifies the width of label connectors. */ + width?: number; + }; + /** Specifies a callback function that returns the text to be displayed by point labels. */ + customizeText?: (pointInfo: Object) => string; + /** Specifies font options for the text displayed in point labels. */ + font?: viz.core.Font; + /** Specifies a format for the text displayed by point labels. */ + format?: string; + position?: string; + /** Specifies a precision for formatted point values displayed in point labels. */ + precision?: number; + /** Specifies the angle used to rotate point labels from their initial position. */ + rotationAngle?: number; + /** Specifies the visibility of point labels. */ + visible?: boolean; + } + export interface SeriesConfigLabel extends BaseSeriesConfigLabel { + /** Specifies whether or not to show a label when the point has a zero value. */ + showForZeroValues?: boolean; + } + export interface ChartSeriesConfigLabel extends SeriesConfigLabel { + /** Specifies how to align point labels relative to the corresponding data points that they represent. */ + alignment?: string; + /** Specifies how to shift point labels horizontally from their initial positions. */ + horizontalOffset?: number; + /** Specifies how to shift point labels vertically from their initial positions. */ + verticalOffset?: number; + /** Specifies a precision for the percentage values displayed in the labels of a full-stacked-like series. */ + percentPrecision?: number; + } + export interface BaseCommonSeriesConfig { + /** Specifies the data source field that provides arguments for series points. */ + argumentField?: string; + axis?: string; + /** An object defining the label configuration options for a series in the dxChart widget. */ + label?: ChartSeriesConfigLabel; + /** Specifies border options for point labels. */ + border?: viz.core.DashedBorder; + /** Specifies a series color. */ + color?: string; + /** Specifies the dash style of the series' line. */ + dashStyle?: string; + hoverMode?: string; + hoverStyle?: { + /** An object defining the border options for a hovered series. */ + border?: viz.core.DashedBorder; + /**

Sets a color for a series when it is hovered over.

*/ + color?: string; + /** Specifies the dash style for the line in a hovered series. */ + dashStyle?: string; + hatching?: viz.core.Hatching; + /** Specifies the width of a line in a hovered series. */ + width?: number; + }; + /** Specifies whether a chart ignores null data points or not. */ + ignoreEmptyPoints?: boolean; + /** Specifies how many points are acceptable to be in a series to display all labels for these points. Otherwise, the labels will not be displayed. */ + maxLabelCount?: number; + /** Specifies the minimal length of a displayed bar in pixels. */ + minBarSize?: number; + /** Specifies opacity for a series. */ + opacity?: number; + /** Specifies the series elements to highlight when the series is selected. */ + selectionMode?: string; + selectionStyle?: { + /** An object defining the border options for a selected series. */ + border?: viz.core.DashedBorder; + /** Sets a color for a series when it is selected. */ + color?: string; + /** Specifies the dash style for the line in a selected series. */ + dashStyle?: string; + hatching?: viz.core.Hatching; + /** Specifies the width of a line in a selected series. */ + width?: number; + }; + /** Specifies whether or not to show the series in the chart's legend. */ + showInLegend?: boolean; + /** Specifies the name of the stack where the values of the _stackedBar_ series must be located. */ + stack?: string; + /** Specifies the name of the data source field that provides data about a point. */ + tagField?: string; + /** Specifies the data source field that provides values for series points. */ + valueField?: string; + /** Specifies the visibility of a series. */ + visible?: boolean; + /** Specifies a line width. */ + width?: number; + /** Configures error bars. */ + valueErrorBar?: { + /** Specifies whether error bars must be displayed in full or partially. */ + displayMode?: string; + /** Specifies the data field that provides data for low error values. */ + lowValueField?: string; + /** Specifies the data field that provides data for high error values. */ + highValueField?: string; + /** Specifies how error bar values must be calculated. */ + type?: string; + /** Specifies the value to be used for generating error bars. */ + value?: number; + /** Specifies the color of error bars. */ + color?: string; + /** Specifies the opacity of error bars. */ + opacity?: number; + /** Specifies the length of the lines that indicate the error bar edges. */ + edgeLength?: number; + /** Specifies the width of the error bar line. */ + lineWidth?: number; + }; + } + export interface CommonPointOptions { + /** Specifies border options for points in the line and area series. */ + border?: viz.core.Border; + /** Specifies the points color. */ + color?: string; + /** Specifies what series points to highlight when a point is hovered over. */ + hoverMode?: string; + /** An object defining configuration options for a hovered point. */ + hoverStyle?: { + /** An object defining the border options for a hovered point. */ + border?: viz.core.Border; + /** Sets a color for a point when it is hovered over. */ + color?: string; + /** Specifies the diameter of a hovered point in the series that represents data points as symbols (not as bars for instance). */ + size?: number; + }; + /** Specifies what series points to highlight when a point is selected. */ + selectionMode?: string; + /** An object defining configuration options for a selected point. */ + selectionStyle?: { + /** An object defining the border options for a selected point. */ + border?: viz.core.Border; + /**

Sets a color for a point when it is selected.

*/ + color?: string; + /** Specifies the diameter of a selected point in the series that represents data points as symbols (not as bars for instance). */ + size?: number; + }; + /** Specifies the point diameter in pixels for those series that represent data points as symbols (not as bars for instance). */ + size?: number; + /** Specifies a symbol for presenting points of the line and area series. */ + symbol?: string; + visible?: boolean; + } + export interface ChartCommonPointOptions extends CommonPointOptions { + /** An object specifying the parameters of an image that is used as a point marker. */ + image?: { + /** Specifies the height of an image that is used as a point marker. */ + height?: any; + /** Specifies a URL leading to the image to be used as a point marker. */ + url?: any; + /** Specifies the width of an image that is used as a point marker. */ + width?: any; + }; + } + export interface PolarCommonPointOptions extends CommonPointOptions { + /** An object specifying the parameters of an image that is used as a point marker. */ + image?: { + /** Specifies the height of an image that is used as a point marker. */ + height?: number; + /** Specifies a URL leading to the image to be used as a point marker. */ + url?: string; + /** Specifies the width of an image that is used as a point marker. */ + width?: number; + }; + } + /** An object that defines configuration options for chart series. */ + export interface CommonSeriesConfig extends BaseCommonSeriesConfig { + /** Specifies the data source field that provides a 'close' value for a _candleStick_ or _stock_ series. */ + closeValueField?: string; + /** Specifies a radius for bar corners. */ + cornerRadius?: number; + /** Specifies the data source field that provides a 'high' value for a _candleStick_ or _stock_ series. */ + highValueField?: string; + /** Specifies the color for the body (rectangle) of a _candleStick_ series. */ + innerColor?: string; + /** Specifies the data source field that provides a 'low' value for a _candleStick_ or _stock_ series. */ + lowValueField?: string; + /** Specifies the data source field that provides an 'open' value for a _candleStick_ or _stock_ series. */ + openValueField?: string; + /** Specifies the pane that will be used to display a series. */ + pane?: string; + /** An object defining configuration options for points in line-, scatter- and area-like series. */ + point?: ChartCommonPointOptions; + /** Specifies the data source field that provides values for one end of a range series. To set the data source field for the other end of the range series, use the rangeValue2Field property. */ + rangeValue1Field?: string; + /** Specifies the data source field that provides values for the second end of a range series. To set the data source field for the other end of the range series, use the rangeValue1Field property. */ + rangeValue2Field?: string; + /** Specifies reduction options for the stock or candleStick series. */ + reduction?: { + /** Specifies a color for the points whose reduction level price is lower in comparison to the value in the previous point. */ + color?: string; + /** Specifies for which price level (open, high, low or close) to enable reduction options in the series. */ + level?: string; + }; + /** Specifies the data source field that defines the size of bubbles. */ + sizeField?: string; + } + export interface CommonSeriesSettings extends CommonSeriesConfig { + /**

An object that specifies configuration options for all series of the area type in the chart.

*/ + area?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _bar_ type in the chart. */ + bar?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the bubble type in the chart. */ + bubble?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _candleStick_ type in the chart. */ + candlestick?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _fullStackedArea_ type in the chart. */ + fullstackedarea?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the Full-Stacked Spline Area type in the chart. */ + fullstackedsplinearea?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _fullStackedBar_ type in the chart. */ + fullstackedbar?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _fullStackedLine_ type in the chart. */ + fullstackedline?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the Full-Stacked Spline type in the chart. */ + fullstackedspline?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _line_ type in the chart. */ + line?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _rangeArea_ type in the chart. */ + rangearea?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _rangeBar_ type in the chart. */ + rangebar?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _scatter_ type in the chart. */ + scatter?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _spline_ type in the chart. */ + spline?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _splineArea_ type in the chart. */ + splinearea?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _stackedArea_ type in the chart. */ + stackedarea?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the Stacked Spline Area type in the chart. */ + stackedsplinearea?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _stackedBar_ type in the chart. */ + stackedbar?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _stackedLine_ type in the chart. */ + stackedline?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the Stacked Spline type in the chart. */ + stackedspline?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _stepArea_ type in the chart. */ + steparea?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _stepLine_ type in the chart. */ + stepline?: CommonSeriesConfig; + /** An object that specifies configuration options for all series of the _stock_ type in the chart. */ + stock?: CommonSeriesConfig; + /** Sets a series type. */ + type?: string; + } + export interface SeriesConfig extends CommonSeriesConfig { + /** Specifies the name that identifies the series. */ + name?: string; + /** Specifies data about a series. */ + tag?: any; + /** Sets the series type. */ + type?: string; + } + /** An object that defines configuration options for polar chart series. */ + export interface CommonPolarSeriesConfig extends BaseCommonSeriesConfig { + /** Specifies whether or not to close the chart by joining the end point with the first point. */ + closed?: boolean; + label?: SeriesConfigLabel; + point?: PolarCommonPointOptions; + } + export interface CommonPolarSeriesSettings extends CommonPolarSeriesConfig { + /** An object that specifies configuration options for all series of the area type in the chart. */ + area?: CommonPolarSeriesConfig; + /** An object that specifies configuration options for all series of the _bar_ type in the chart. */ + bar?: CommonPolarSeriesConfig; + /** An object that specifies configuration options for all series of the _line_ type in the chart. */ + line?: CommonPolarSeriesConfig; + /** An object that specifies configuration options for all series of the _scatter_ type in the chart. */ + scatter?: CommonPolarSeriesConfig; + /** An object that specifies configuration options for all series of the _stackedBar_ type in the chart. */ + stackedbar?: CommonPolarSeriesConfig; + /** Sets a series type. */ + type?: string; + } + export interface PolarSeriesConfig extends CommonPolarSeriesConfig { + /** Specifies the name that identifies the series. */ + name?: string; + /** Specifies data about a series. */ + tag?: any; + /** Sets the series type. */ + type?: string; + } + export interface PieSeriesConfigLabel extends BaseSeriesConfigLabel { + /** Specifies how to shift labels from their initial position in a radial direction in pixels. */ + radialOffset?: number; + /** Specifies a precision for the percentage values displayed in labels. */ + percentPrecision?: number; + } + /** An object that defines configuration options for chart series. */ + export interface CommonPieSeriesConfig { + /** Specifies the data source field that provides arguments for series points. */ + argumentField?: string; + /** Specifies the required type for series arguments. */ + argumentType?: string; + /** An object defining the series border configuration options. */ + border?: viz.core.DashedBorder; + /** Specifies a series color. */ + color?: string; + /** Specifies the chart elements to highlight when a series is hovered over. */ + hoverMode?: string; + /** An object defining configuration options for a hovered series. */ + hoverStyle?: { + /** An object defining the border options for a hovered series. */ + border?: viz.core.DashedBorder; + /** Sets a color for the series when it is hovered over. */ + color?: string; + /** Specifies the hatching options to be applied when a point is hovered over. */ + hatching?: viz.core.Hatching; + }; + /** + * Specifies the fraction of the inner radius relative to the total radius in the series of the 'doughnut' type. + * @deprecated use the 'innerRadius' option instead + */ + innerRadius?: number; + /** An object defining the label configuration options. */ + label?: PieSeriesConfigLabel; + /** Specifies how many points are acceptable to be in a series to display all labels for these points. Otherwise, the labels will not be displayed. */ + maxLabelCount?: number; + /** Specifies a minimal size of a displayed pie segment. */ + minSegmentSize?: number; + /** + * Specifies the direction in which the dxPieChart series points are located. + * @deprecated use the 'segmentsDirection' option instead + */ + segmentsDirection?: string; + /**

Specifies the chart elements to highlight when the series is selected.

*/ + selectionMode?: string; + /** An object defining configuration options for the series when it is selected. */ + selectionStyle?: { + /** An object defining the border options for a selected series. */ + border?: viz.core.DashedBorder; + /** Sets a color for a series when it is selected. */ + color?: string; + /** Specifies the hatching options to be applied when a point is selected. */ + hatching?: viz.core.Hatching; + }; + /** Specifies chart segment grouping options. */ + smallValuesGrouping?: { + /** Specifies the name of the grouped chart segment. This name represents the segment in the chart legend. */ + groupName?: string; + /** Specifies the segment grouping mode. */ + mode?: string; + /** Specifies a threshold for segment values. */ + threshold?: number; + /** Specifies how many segments must not be grouped. */ + topCount?: number; + }; + /** + * Specifies a start angle for a pie chart in arc degrees. + * @deprecated use the 'startAngle' option instead + */ + startAngle?: number; + /**

Specifies the name of the data source field that provides data about a point.

*/ + tagField?: string; + /** Specifies the data source field that provides values for series points. */ + valueField?: string; + } + export interface CommonPieSeriesSettings extends CommonPieSeriesConfig { + /** + * Specifies the type of the pie chart series. + * @deprecated use the 'type' option instead + */ + type?: string; + } + export interface PieSeriesConfig extends CommonPieSeriesConfig { + /** + * Sets the series type. + * @deprecated use the 'type' option instead + */ + type?: string; + /** Specifies the name that identifies the series. */ + name?: string; + /** Specifies data about a series. */ + tag?: any; + } + export interface SeriesTemplate { + /** Specifies a callback function that returns a series object with individual series settings. */ + customizeSeries?: (seriesName: string) => SeriesConfig; + /** Specifies a data source field that represents the series name. */ + nameField?: string; + } + export interface PolarSeriesTemplate { + /** Specifies a callback function that returns a series object with individual series settings. */ + customizeSeries?: (seriesName: string) => PolarSeriesConfig; + /** Specifies a data source field that represents the series name. */ + nameField?: string; + } + export interface ChartCommonConstantLineLabel { + /** Specifies font options for a constant line label. */ + font?: viz.core.Font; + /** Specifies the position of the constant line label relative to the chart plot. */ + position?: string; + /** Indicates whether or not to display labels for the axis constant lines. */ + visible?: boolean; + } + export interface PolarCommonConstantLineLabel { + /** Indicates whether or not to display labels for the axis constant lines. */ + visible?: boolean; + /** Specifies font options for a constant line label. */ + font?: viz.core.Font; + } + export interface ConstantLineStyle { + /** Specifies a color for a constant line. */ + color?: string; + /** Specifies a dash style for a constant line. */ + dashStyle?: string; + /** Specifies a constant line width in pixels. */ + width?: number; + } + export interface ChartCommonConstantLineStyle extends ConstantLineStyle { + /** An object defining constant line label options. */ + label?: ChartCommonConstantLineLabel; + /** Specifies the space between the constant line label and the left/right side of the constant line. */ + paddingLeftRight?: number; + /** Specifies the space between the constant line label and the top/bottom side of the constant line. */ + paddingTopBottom?: number; + } + export interface PolarCommonConstantLineStyle extends ConstantLineStyle { + /** An object defining constant line label options. */ + label?: PolarCommonConstantLineLabel; + } + export interface CommonAxisLabel { + /** Specifies font options for axis labels. */ + font?: viz.core.Font; + /** Specifies the spacing between an axis and its labels in pixels. */ + indentFromAxis?: number; + /** Indicates whether or not axis labels are visible. */ + visible?: boolean; + } + export interface ChartCommonAxisLabel extends CommonAxisLabel { + /** Specifies the label's position relative to the tick (grid line). */ + alignment?: string; + /** Specifies the overlap resolving algorithm to be applied to axis labels. */ + overlappingBehavior?: { + /** Specifies how to arrange axis labels. */ + mode?: string; + /** Specifies the angle used to rotate axis labels. */ + rotationAngle?: number; + /** Specifies the spacing that must be set between staggered rows when the 'stagger' algorithm is applied. */ + staggeringSpacing?: number; + }; + } + export interface PolarCommonAxisLabel extends CommonAxisLabel { + /** Specifies the overlap resolving algorithm to be applied to axis labels. */ + overlappingBehavior?: string; + } + export interface CommonAxisTitle { + /** Specifies font options for an axis title. */ + font?: viz.core.Font; + /** Specifies a margin for an axis title in pixels. */ + margin?: number; + } + export interface BaseCommonAxisSettings { + /** Specifies the color of the line that represents an axis. */ + color?: string; + /** Specifies whether ticks/grid lines of a discrete axis are located between labels or cross the labels. */ + discreteAxisDivisionMode?: string; + /** An object defining the configuration options for the grid lines of an axis in the dxPolarChart widget. */ + grid?: { + /** Specifies a color for grid lines. */ + color?: string; + /** Specifies an opacity for grid lines. */ + opacity?: number; + /** Indicates whether or not the grid lines of an axis are visible. */ + visible?: boolean; + /** Specifies the width of grid lines. */ + width?: number; + }; + /** Specifies the options of the minor grid. */ + minorGrid?: { + /** Specifies a color for the lines of the minor grid. */ + color?: string; + /** Specifies an opacity for the lines of the minor grid. */ + opacity?: number; + /** Indicates whether the minor grid is visible or not. */ + visible?: boolean; + /** Specifies a width for the lines of the minor grid. */ + width?: number; + }; + /** Indicates whether or not an axis is inverted. */ + inverted?: boolean; + /** Specifies the opacity of the line that represents an axis. */ + opacity?: number; + /** Indicates whether or not to set ticks/grid lines of a continuous axis of the 'date-time' type at the beginning of each date-time interval. */ + setTicksAtUnitBeginning?: boolean; + /** An object defining the configuration options for axis ticks. */ + tick?: { + /** Specifies ticks color. */ + color?: string; + /** Specifies tick opacity. */ + opacity?: number; + /** Indicates whether or not ticks are visible on an axis. */ + visible?: boolean; + /** Specifies tick width. */ + width?: number; + /** Specifies tick length. */ + length?: number; + }; + /** Specifies the options of the minor ticks. */ + minorTick?: { + /** Specifies a color for the minor ticks. */ + color?: string; + /** Specifies an opacity for the minor ticks. */ + opacity?: number; + /** Indicates whether or not the minor ticks are displayed on an axis. */ + visible?: boolean; + /** Specifies minor tick width. */ + width?: number; + /** Specifies minor tick length. */ + length?: number; + }; + /** Indicates whether or not the line that represents an axis in a chart is visible. */ + visible?: boolean; + /** Specifies the width of the line that represents an axis in the chart. */ + width?: number; + } + export interface ChartCommonAxisSettings extends BaseCommonAxisSettings { + /** Specifies the appearance of all the widget's constant lines. */ + constantLineStyle?: ChartCommonConstantLineStyle; + /** An object defining the label configuration options that are common for all axes in the dxChart widget. */ + label?: ChartCommonAxisLabel; + /** Specifies a coefficient that determines the spacing between the maximum series point and the axis. */ + maxValueMargin?: number; + /** Specifies a coefficient that determines the spacing between the minimum series point and the axis. */ + minValueMargin?: number; + /** Specifies, in pixels, the space reserved for an axis. */ + placeholderSize?: number; + /** An object defining configuration options for strip style. */ + stripStyle?: { + /** An object defining the configuration options for a strip label style. */ + label?: { + /** Specifies font options for a strip label. */ + font?: viz.core.Font; + /** Specifies the label's position on a strip. */ + horizontalAlignment?: string; + /** Specifies a label's position on a strip. */ + verticalAlignment?: string; + }; + /** Specifies the spacing, in pixels, between the left/right strip border and the strip label. */ + paddingLeftRight?: number; + /** Specifies the spacing, in pixels, between the top/bottom strip borders and the strip label. */ + paddingTopBottom?: number; + }; + /** An object defining the title configuration options that are common for all axes in the dxChart widget. */ + title?: CommonAxisTitle; + /** Indicates whether or not to display series with indents from axis boundaries. */ + valueMarginsEnabled?: boolean; + } + export interface PolarCommonAxisSettings extends BaseCommonAxisSettings { + /** Specifies the appearance of all the widget's constant lines. */ + constantLineStyle?: PolarCommonConstantLineStyle; + /** An object defining the label configuration options that are common for all axes in the dxPolarChart widget. */ + label?: PolarCommonAxisLabel; + /** An object defining configuration options for strip style. */ + stripStyle?: { + /** An object defining the configuration options for a strip label style. */ + label?: { + /** Specifies font options for a strip label. */ + font?: viz.core.Font; + }; + }; + } + export interface ChartConstantLineLabel extends ChartCommonConstantLineLabel { + /** Specifies the horizontal alignment of a constant line label. */ + horizontalAlignment?: string; + /** Specifies the vertical alignment of a constant line label. */ + verticalAlignment?: string; + /** Specifies the text to be displayed in a constant line label. */ + text?: string; + } + export interface PolarConstantLineLabel extends PolarCommonConstantLineLabel { + /** Specifies the text to be displayed in a constant line label. */ + text?: string; + } + export interface AxisLabel { + /** Specifies the text for a hint that appears when a user hovers the mouse pointer over a label on the value axis. */ + customizeHint?: (argument: { value: any; valueText: string }) => string; + /** Specifies a callback function that returns the text to be displayed in value axis labels. */ + customizeText?: (argument: { value: any; valueText: string }) => string; + /** Specifies a format for the text displayed by axis labels. */ + format?: string; + /** Specifies a precision for the formatted value displayed in the axis labels. */ + precision?: number; + } + export interface ChartAxisLabel extends ChartCommonAxisLabel, AxisLabel { } + export interface PolarAxisLabel extends PolarCommonAxisLabel, AxisLabel { } + export interface AxisTitle extends CommonAxisTitle { + /** Specifies the text for the value axis title. */ + text?: string; + } + export interface ChartConstantLineStyle extends ChartCommonConstantLineStyle { + /** An object defining constant line label options. */ + label?: ChartConstantLineLabel; + } + export interface ChartConstantLine extends ChartConstantLineStyle { + /** An object defining constant line label options. */ + label?: ChartConstantLineLabel; + /** Specifies a value to be displayed by a constant line. */ + value?: any; + } + export interface PolarConstantLine extends PolarCommonConstantLineStyle { + /** An object defining constant line label options. */ + label?: PolarConstantLineLabel; + /** Specifies a value to be displayed by a constant line. */ + value?: any; + } + export interface Axis { + /** Specifies a coefficient for dividing the value axis. */ + axisDivisionFactor?: number; + /** Specifies the order in which discrete values are arranged on the value axis. */ + categories?: Array; + /** Specifies the value to be raised to a power when generating ticks for a logarithmic axis. */ + logarithmBase?: number; + /** Specifies an interval between axis ticks/grid lines. */ + tickInterval?: any; + /** Specifies the interval between minor ticks. */ + minorTickInterval?: any; + /** Specifies the number of minor ticks between two neighboring major ticks. */ + minorTickCount?: number; + /** Specifies the required type of the value axis. */ + type?: string; + /** Specifies the pane on which the current value axis will be displayed. */ + pane?: string; + /** Specifies options for value axis strips. */ + strips?: Array; + } + export interface ChartAxis extends ChartCommonAxisSettings, Axis { + /** Defines an array of the value axis constant lines. */ + constantLines?: Array; + /** Specifies the appearance options for the constant lines of the value axis. */ + constantLineStyle?: ChartCommonConstantLineStyle; + /** Specifies options for value axis labels. */ + label?: ChartAxisLabel; + /** Specifies the maximum value on the value axis. */ + max?: any; + /** Specifies the minimum value on the value axis. */ + min?: any; + /** Specifies the position of the value axis on a chart. */ + position?: string; + /** Specifies the title for a value axis. */ + title?: AxisTitle; + } + export interface PolarAxis extends PolarCommonAxisSettings, Axis { + /** Defines an array of the value axis constant lines. */ + constantLines?: Array; + /** Specifies options for value axis labels. */ + label?: PolarAxisLabel; + } + export interface ArgumentAxis { + /** Specifies the desired type of axis values. */ + argumentType?: string; + /** Specifies the elements that will be highlighted when the argument axis is hovered over. */ + hoverMode?: string; + } + export interface ChartArgumentAxis extends ChartAxis, ArgumentAxis { } + export interface PolarArgumentAxis extends PolarAxis, ArgumentAxis { + /** Specifies the angle in arc degrees to which the argument axis should be rotated. The positive values rotate the axis clockwise. */ + startAngle?: number; + /** Specifies whether or not to display the first point at the angle specified by the startAngle option. */ + firstPointOnStartAngle?: boolean; + /** Specifies the value to be used as the origin for the argument axis. */ + originValue?: number; + /** Specifies the period of the argument values in the data source. */ + period?: number; + } + export interface ValueAxis { + /** Specifies the name of the value axis. */ + name?: string; + /** Specifies whether or not to indicate a zero value on the value axis. */ + showZero?: boolean; + /** Specifies the desired type of axis values. */ + valueType?: string; + } + export interface ChartValueAxis extends ChartAxis, ValueAxis { + /** Specifies the spacing, in pixels, between multiple value axes in a chart. */ + multipleAxesSpacing?: number; + /** Specifies the value by which the chart's value axes are synchronized. */ + synchronizedValue?: number; + } + export interface PolarValueAxis extends PolarAxis, ValueAxis { + /** Indicates whether to display series with indents from axis boundaries. */ + valueMarginsEnabled?: boolean; + /** Specifies a coefficient that determines the spacing between the maximum series point and the axis. */ + maxValueMargin?: number; + /** Specifies a coefficient that determines the spacing between the minimum series point and the axis. */ + minValueMargin?: number; + tick?: { + visible?: boolean; + } + } + export interface CommonPane { + /** Specifies a background color in a pane. */ + backgroundColor?: string; + /** Specifies the border options of a chart's pane. */ + border?: PaneBorder; + } + export interface Pane extends CommonPane { + /** Specifies the name of a pane. */ + name?: string; + } + export interface PaneBorder extends viz.core.DashedBorderWithOpacity { + /** Specifies the bottom border's visibility state in a pane. */ + bottom?: boolean; + /** Specifies the left border's visibility state in a pane. */ + left?: boolean; + /** Specifies the right border's visibility state in a pane. */ + right?: boolean; + /** Specifies the top border's visibility state in a pane. */ + top?: boolean; + } + export interface ChartAnimation extends viz.core.Animation { + /** Specifies the maximum series point count in the chart that the animation supports. */ + maxPointCountSupported?: number; + } + export interface BaseChartTooltip extends viz.core.Tooltip { + /** Specifies a format for arguments of the chart's series points. */ + argumentFormat?: string; + /** Specifies a precision for formatted arguments displayed in tooltips. */ + argumentPrecision?: number; + /** Specifies a precision for a percent value displayed in tooltips for stacked series and dxPieChart series. */ + percentPrecision?: number; + } + export interface BaseChartOptions extends viz.core.BaseWidgetOptions { + /** Specifies adaptive layout options. */ + adaptiveLayout?: { + /** Specifies the width of the widget that is small enough for the layout to begin adapting. */ + width?: number; + /** Specifies the height of the widget that is small enough for the layout to begin adapting. */ + height?: number; + /** Specifies whether or not point labels can be hidden when the layout is adapting. */ + keepLabels?: boolean; + }; + /** Specifies animation options. */ + animation?: ChartAnimation; + /** Specifies a callback function that returns an object with options for a specific point label. */ + customizeLabel?: (labelInfo: Object) => Object; + /** Specifies a callback function that returns an object with options for a specific point. */ + customizePoint?: (pointInfo: Object) => Object; + /** Specifies a data source for the chart. */ + dataSource?: any; + /** Specifies the appearance of the loading indicator. */ + loadingIndicator?: viz.core.LoadingIndicator; + /** Specifies options of a dxChart's (dxPieChart's) legend. */ + legend?: core.BaseLegend; + /** Specifies the blank space between the chart's extreme elements and the boundaries of the area provided for the widget (see size) in pixels. */ + margin?: viz.core.Margins; + /** Sets the name of the palette to be used in the chart. Alternatively, an array of colors can be set as a custom palette to be used within this chart. */ + palette?: any; + /** A handler for the done event. */ + onDone?: (e: { + component: BaseChart; + element: Element; + }) => void; + /** A handler for the pointClick event. */ + onPointClick?: any; + /** A handler for the pointHoverChanged event. */ + onPointHoverChanged?: (e: { + component: BaseChart; + element: Element; + target: TPoint; + }) => void; + /** A handler for the pointSelectionChanged event. */ + onPointSelectionChanged?: (e: { + component: BaseChart; + element: Element; + target: TPoint; + }) => void; + /** Specifies whether a single point or multiple points can be selected in the chart. */ + pointSelectionMode?: string; + /** Specifies whether to redraw the widget when the size of the parent browser window changes or a mobile device rotates. */ + redrawOnResize?: boolean; + /** Specifies options for the dxChart and dxPieChart widget series. */ + series?: any; + /** Specifies the size of the widget in pixels. */ + size?: viz.core.Size; + /** Specifies a title for the chart. */ + title?: viz.core.Title; + /** Specifies tooltip options. */ + tooltip?: BaseChartTooltip; + /** A handler for the tooltipShown event. */ + onTooltipShown?: (e: { + component: BaseChart; + element: Element; + target: BasePoint; + }) => void; + /** A handler for the tooltipHidden event. */ + onTooltipHidden?: (e: { + component: BaseChart; + element: Element; + target: BasePoint; + }) => void; + } + /** A base class for all chart widgets included in the ChartJS library. */ + export class BaseChart extends viz.core.BaseWidget { + /** Deselects the chart's selected series. The series is displayed in an initial style. */ + clearSelection(): void; + /** Gets the current size of the widget. */ + getSize(): { width: number; height: number }; + /** Returns an array of all series in the chart. */ + getAllSeries(): Array; + /** Gets a series within the chart's series collection by the specified name (see the name option). */ + getSeriesByName(seriesName: string): BaseSeries; + /** Gets a series within the chart's series collection by its position number. */ + getSeriesByPos(seriesIndex: number): BaseSeries; + /** Displays the loading indicator. */ + showLoadingIndicator(): void; + /** Conceals the loading indicator. */ + hideLoadingIndicator(): void; + /** Hides all widget tooltips. */ + hideTooltip(): void; + /** Redraws a widget. */ + render(renderOptions?: { + force?: boolean; + animate?: boolean; + asyncSeriesRendering?: boolean; + }): void; + } + export interface AdvancedLegend extends core.BaseLegend { + /** Specifies the text for a hint that appears when a user hovers the mouse pointer over a legend item. */ + customizeHint?: (seriesInfo: { seriesName: string; seriesIndex: number; seriesColor: string; }) => string; + /**

Specifies a callback function that returns the text to be displayed by legend items.

*/ + customizeText?: (seriesInfo: { seriesName: string; seriesIndex: number; seriesColor: string; }) => string; + /** Specifies what series elements to highlight when a corresponding item in the legend is hovered over. */ + hoverMode?: string; + } + export interface AdvancedOptions extends BaseChartOptions { + /** A handler for the argumentAxisClick event. */ + onArgumentAxisClick?: any; + /** Specifies the color of the parent page element. */ + containerBackgroundColor?: string; + /** An object providing options for managing data from a data source. */ + dataPrepareSettings?: { + /** Specifies whether or not to validate the values from a data source. */ + checkTypeForAllData?: boolean; + /** Specifies whether or not to convert the values from a data source into the data type of an axis. */ + convertToAxisDataType?: boolean; + /** Specifies how to sort the series points. */ + sortingMethod?: any; + }; + /** A handler for the legendClick event. */ + onLegendClick?: any; + /** A handler for the seriesClick event. */ + onSeriesClick?: any; + /** A handler for the seriesHoverChanged event. */ + onSeriesHoverChanged?: (e: { + component: BaseChart; + element: Element; + target: TSeries; + }) => void; + /** A handler for the seriesSelectionChanged event. */ + onSeriesSelectionChanged?: (e: { + component: BaseChart; + element: Element; + target: TSeries; + }) => void; + /** Specifies whether a single series or multiple series can be selected in the chart. */ + seriesSelectionMode?: string; + /** Specifies how the chart must behave when series point labels overlap. */ + resolveLabelOverlapping?: string; + /** Specifies whether or not all bars in a series must have the same angle, or may have different angles if any points in other series are missing. */ + equalBarWidth?: boolean; + /** Specifies a common bar width as a percentage from 0 to 1. */ + barWidth?: number; + } + export interface Legend extends AdvancedLegend { + /** Specifies whether the legend is located outside or inside the chart's plot. */ + position?: string; + } + export interface ChartTooltip extends BaseChartTooltip { + /** Specifies whether the tooltip must be located in the center of a bar or on its edge. Applies to the Bar and Bubble series. */ + location?: string; + /** Specifies the kind of information to display in a tooltip. */ + shared?: boolean; + } + export interface dxChartOptions extends AdvancedOptions { + adaptiveLayout?: { + keepLabels?: boolean; + }; + /** Indicates whether or not to synchronize value axes when they are displayed on a single pane. */ + synchronizeMultiAxes?: boolean; + /** Specifies whether or not to filter the series points depending on their quantity. */ + useAggregation?: boolean; + /** Indicates whether or not to adjust a value axis to the current minimum and maximum values of a zoomed chart. */ + adjustOnZoom?: boolean; + /** Specifies argument axis options for the dxChart widget. */ + argumentAxis?: ChartArgumentAxis; + /** An object defining the configuration options that are common for all axes of the dxChart widget. */ + commonAxisSettings?: ChartCommonAxisSettings; + /** An object defining the configuration options that are common for all panes in the dxChart widget. */ + commonPaneSettings?: CommonPane; + /** An object defining the configuration options that are common for all series of the dxChart widget. */ + commonSeriesSettings?: CommonSeriesSettings; + /** An object that specifies the appearance options of the chart crosshair. */ + crosshair?: { + /** Specifies a color for the crosshair lines. */ + color?: string; + /** Specifies a dash style for the crosshair lines. */ + dashStyle?: string; + /** Specifies whether to enable the crosshair or not. */ + enabled?: boolean; + /** Specifies the opacity of the crosshair lines. */ + opacity?: number; + /** Specifies the width of the crosshair lines. */ + width?: number; + /** Specifies the appearance of the horizontal crosshair line. */ + horizontalLine?: CrosshaierWithLabel; + /** Specifies the appearance of the vertical crosshair line. */ + verticalLine?: CrosshaierWithLabel; + /** Specifies the options of the crosshair labels. */ + label?: { + /** Specifies a color for the background of the crosshair labels. */ + backgroundColor?: string; + /** Specifies whether the crosshair labels are visible or not. */ + visible?: boolean; + /** Specifies font options for the text of the crosshair labels. */ + font?: viz.core.Font; + } + }; + /** Specifies a default pane for the chart's series. */ + defaultPane?: string; + /** Specifies a coefficient determining the diameter of the largest bubble. */ + maxBubbleSize?: number; + /** Specifies the diameter of the smallest bubble measured in pixels. */ + minBubbleSize?: number; + /** Defines the dxChart widget's pane(s). */ + panes?: Array; + /** Swaps the axes round so that the value axis becomes horizontal and the argument axes becomes vertical. */ + rotated?: boolean; + /** Specifies the options of a chart's legend. */ + legend?: Legend; + /** Specifies options for dxChart widget series. */ + series?: Array; + /** Defines options for the series template. */ + seriesTemplate?: SeriesTemplate; + /** Specifies tooltip options. */ + tooltip?: ChartTooltip; + /** Specifies value axis options for the dxChart widget. */ + valueAxis?: Array; + /** Enables scrolling in your chart. */ + scrollingMode?: string; + /** Enables zooming in your chart. */ + zoomingMode?: string; + /** Specifies the settings of the scroll bar. */ + scrollBar?: { + /** Specifies whether the scroll bar is visible or not. */ + visible?: boolean; + /** Specifies the spacing between the scroll bar and the chart's plot in pixels. */ + offset?: number; + /** Specifies the color of the scroll bar. */ + color?: string; + /** Specifies the width of the scroll bar in pixels. */ + width?: number; + /** Specifies the opacity of the scroll bar. */ + opacity?: number; + /** Specifies the position of the scroll bar in the chart. */ + position?: string; + }; + } + /** A widget used to embed charts into HTML JS applications. */ + export class dxChart extends BaseChart { + constructor(element: JQuery, options?: dxChartOptions); + constructor(element: Element, options?: dxChartOptions); + /** Sets the specified start and end values for the chart's argument axis. */ + zoomArgument(startValue: any, endValue: any): void; + } + interface CrosshaierWithLabel extends viz.core.DashedBorderWithOpacity { + /** Configures the label that belongs to the horizontal crosshair line. */ + label?: { + /** Specifies a color for the background of the label that belongs to the horizontal crosshair line. */ + backgroundColor?: string; + /** Specifies whether the label of the horizontal crosshair line is visible or not. */ + visible?: boolean; + /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ + font?: viz.core.Font; + } + } + export interface PolarChartTooltip extends BaseChartTooltip { + /** Specifies the kind of information to display in a tooltip. */ + shared?: boolean; + } + export interface dxPolarChartOptions extends AdvancedOptions { + /** Specifies adaptive layout options. */ + adaptiveLayout?: { + width?: number; + height?: number; + /** Specifies whether or not point labels can be hidden when the layout is adapting. */ + keepLabels?: boolean; + }; + /** Indicates whether or not to display a "spider web". */ + useSpiderWeb?: boolean; + /** Specifies argument axis options for the dxPolarChart widget. */ + argumentAxis?: PolarArgumentAxis; + /** An object defining the configuration options that are common for all axes of the dxPolarChart widget. */ + commonAxisSettings?: PolarCommonAxisSettings; + /** An object defining the configuration options that are common for all series of the dxPolarChart widget. */ + commonSeriesSettings?: CommonPolarSeriesSettings; + /** Specifies the options of a chart's legend. */ + legend?: AdvancedLegend; + /** Specifies options for dxPolarChart widget series. */ + series?: Array; + /** Defines options for the series template. */ + seriesTemplate?: PolarSeriesTemplate; + /** Specifies tooltip options. */ + tooltip?: PolarChartTooltip; + /** Specifies value axis options for the dxPolarChart widget. */ + valueAxis?: PolarValueAxis; + } + /** A chart widget displaying data in a polar coordinate system. */ + export class dxPolarChart extends BaseChart { + constructor(element: JQuery, options?: dxPolarChartOptions); + constructor(element: Element, options?: dxPolarChartOptions); + } + export interface PieLegend extends core.BaseLegend { + /** Specifies what chart elements to highlight when a corresponding item in the legend is hovered over. */ + hoverMode?: string; + /** Specifies the text for a hint that appears when a user hovers the mouse pointer over a legend item. */ + customizeHint?: (pointInfo: { pointName: string; pointIndex: number; pointColor: string; }) => string; + /** Specifies a callback function that returns the text to be displayed by a legend item. */ + customizeText?: (pointInfo: { pointName: string; pointIndex: number; pointColor: string; }) => string; + } + export interface dxPieChartOptions extends BaseChartOptions { + /** Specifies adaptive layout options. */ + adaptiveLayout?: { + /** Specifies whether or not point labels can be hidden when the layout is adapting. */ + keepLabels?: boolean; + }; + /** Specifies dxPieChart legend options. */ + legend?: PieLegend; + /** Specifies options for the series of the dxPieChart widget. */ + series?: Array; + /** Specifies the diameter of the pie. */ + diameter?: number; + /** Specifies the direction that the pie chart segments will occupy. */ + segmentsDirection?: string; + /** Specifies the angle in arc degrees from which the first segment of a pie chart should start. */ + startAngle?: number; + /** Specifies the fraction of the inner radius relative to the total radius in the series of the 'doughnut' type. The value should be between 0 and 1. */ + innerRadius?: number; + /** A handler for the legendClick event. */ + onLegendClick?: any; + /** Specifies how a chart must behave when series point labels overlap. */ + resolveLabelOverlapping?: string; + /** An object defining the configuration options that are common for all series of the dxPieChart widget. */ + commonSeriesSettings?: CommonPieSeriesSettings; + /** Specifies the type of the pie chart series. */ + type?: string; + } + /** A circular chart widget for HTML JS applications. */ + export class dxPieChart extends BaseChart { + constructor(element: JQuery, options?: dxPieChartOptions); + constructor(element: Element, options?: dxPieChartOptions); + /** + * Provides access to the dxPieChart series. + * @deprecated ..\..\BaseChart\3 Methods\getAllSeries().md + */ + getSeries(): PieSeries; + } +} +interface JQuery { + dxChart(options?: DevExpress.viz.charts.dxChartOptions): JQuery; + dxChart(methodName: string, ...params: any[]): any; + dxChart(methodName: "instance"): DevExpress.viz.charts.dxChart; + dxPieChart(options?: DevExpress.viz.charts.dxPieChartOptions): JQuery; + dxPieChart(methodName: string, ...params: any[]): any; + dxPieChart(methodName: "instance"): DevExpress.viz.charts.dxPieChart; + dxPolarChart(options?: DevExpress.viz.charts.dxPolarChartOptions): JQuery; + dxPolarChart(methodName: string, ...params: any[]): any; + dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; +} +declare namespace DevExpress.viz.gauges { + export interface BaseRangeContainer { + /** Specifies a range container's background color. */ + backgroundColor?: string; + /** Specifies the offset of the range container from an invisible scale line in pixels. */ + offset?: number; + /** Sets the name of the palette or an array of colors to be used for coloring the gauge range container. */ + palette?: any; + /** An array of objects representing ranges contained in the range container. */ + ranges?: Array<{ startValue: number; endValue: number; color: string }>; + /** Specifies a color of a range. */ + color?: string; + /** Specifies an end value of a range. */ + endValue?: number; + /** Specifies a start value of a range. */ + startValue?: number; + } + export interface ScaleTick { + /** Specifies the color of the scale's minor ticks. */ + color?: string; + /** + * Specifies an array of custom minor ticks. + * @deprecated ..\customMinorTicks.md + */ + customTickValues?: Array; + /** Specifies the length of the scale's minor ticks. */ + length?: number; + /** + * Indicates whether automatically calculated minor ticks are visible or not. + * @deprecated This functionality in not more available + */ + showCalculatedTicks?: boolean; + /** + * Specifies an interval between minor ticks. + * @deprecated ..\minorTickInterval.md + */ + tickInterval?: number; + /** Indicates whether scale minor ticks are visible or not. */ + visible?: boolean; + /** Specifies the width of the scale's minor ticks. */ + width?: number; + } + export interface ScaleMajorTick extends ScaleTick { + /** + * Specifies whether or not to expand the current major tick interval if labels overlap each other. + * @deprecated ..\label\overlappingBehavior\useAutoArrangement.md + */ + useTicksAutoArrangement?: boolean; + } + export interface ScaleMinorTick extends ScaleTick { + /** Specifies the opacity of the scale's minor ticks. */ + opacity?: number; + } + export interface BaseScaleLabel { + /** Specifies whether or not scale labels should be colored similarly to their corresponding ranges in the range container. */ + useRangeColors?: boolean; + /** Specifies a callback function that returns the text to be displayed in scale labels. */ + customizeText?: (scaleValue: { value: number; valueText: string }) => string; + /** Specifies the overlap resolving options to be applied to scale labels. */ + overlappingBehavior?: { + /** Specifies whether or not to expand the current major tick interval if labels overlap each other. */ + useAutoArrangement?: boolean; + /** Specifies what label to hide in case of overlapping. */ + hideFirstOrLast?: string; + }; + /** Specifies font options for the text displayed in the scale labels of the gauge. */ + font?: viz.core.Font; + /** Specifies a format for the text displayed in scale labels. */ + format?: string; + /** Specifies a precision for the formatted value displayed in the scale labels. */ + precision?: number; + /** Specifies whether or not scale labels are visible on the gauge. */ + visible?: boolean; + } + export interface BaseScale { + /** Specifies the end value for the scale of the gauge. */ + endValue?: number; + /** + * Specifies whether or not to hide the first scale label. + * @deprecated This functionality in not more available + */ + hideFirstLabel?: boolean; + /** + * Specifies whether or not to hide the first major tick on the scale. + * @deprecated This functionality in not more available + */ + hideFirstTick?: boolean; + /** + * Specifies whether or not to hide the last scale label. + * @deprecated This functionality in not more available + */ + hideLastLabel?: boolean; + /** + * Specifies whether or not to hide the last major tick on the scale. + * @deprecated This functionality in not more available + */ + hideLastTick?: boolean; + /** Specifies an interval between major ticks. */ + tickInterval?: number; + /** Specifies an interval between minor ticks. */ + minorTickInterval?: number; + /** Specifies an array of custom major ticks. */ + customTicks?: Array; + /** Specifies an array of custom minor ticks. */ + customMinorTicks?: Array; + /** Specifies common options for scale labels. */ + label?: BaseScaleLabel; + /** + * Specifies options of the gauge's major ticks. + * @deprecated ..\tick\tick.md + */ + majorTick?: ScaleMajorTick; + /** Specifies options of the gauge's major ticks. */ + tick?: { + /** Specifies the color of the scale's major ticks. */ + color?: string; + /** Specifies the length of the scale's major ticks. */ + length?: number; + /** Indicates whether scale major ticks are visible or not. */ + visible?: boolean; + /** Specifies the width of the scale's major ticks. */ + width?: number; + /** Specifies the opacity of the scale's major ticks. */ + opacity?: number; + }; + /** Specifies options of the gauge's minor ticks. */ + minorTick?: ScaleMinorTick; + /** Specifies the start value for the scale of the gauge. */ + startValue?: number; + } + export interface BaseValueIndicator { + /** Specifies the type of subvalue indicators. */ + type?: string; + /** Specifies the background color for the indicator of the rangeBar type. */ + backgroundColor?: string; + /** Specifies the base value for the indicator of the rangeBar type. */ + baseValue?: number; + /** Specifies a color of the indicator. */ + color?: string; + /** Specifies the range bar size for an indicator of the rangeBar type. */ + size?: number; + text?: { + /** Specifies a callback function that returns the text to be displayed in an indicator. */ + customizeText?: (indicatedValue: { value: number; valueText: string }) => string; + font?: viz.core.Font; + /** Specifies a format for the text displayed in an indicator. */ + format?: string; + /** Specifies the range bar's label indent in pixels. */ + indent?: number; + /** Specifies a precision for the formatted value displayed by an indicator. */ + precision?: number; + }; + offset?: number; + length?: number; + width?: number; + /** Specifies the length of an arrow for the indicator of the textCloud type in pixels. */ + arrowLength?: number; + /** Sets the array of colors to be used for coloring subvalue indicators. */ + palette?: Array; + /** Specifies the distance between the needle and the center of a gauge for the indicator of a needle-like type. */ + indentFromCenter?: number; + /** Specifies the second color for the indicator of the twoColorNeedle type. */ + secondColor?: string; + /** Specifies the length of a twoNeedleColor type indicator tip as a percentage. */ + secondFraction?: number; + /** Specifies the spindle's diameter in pixels for the indicator of a needle-like type. */ + spindleSize?: number; + /** Specifies the inner diameter in pixels, so that the spindle has the shape of a ring. */ + spindleGapSize?: number; + /** Specifies the orientation of the rangeBar indicator on a vertically oriented dxLinearGauge widget. */ + horizontalOrientation?: string; + /** Specifies the orientation of the rangeBar indicator on a horizontally oriented dxLinearGauge widget. */ + verticalOrientation?: string; + } + export interface SharedGaugeOptions { + /** Specifies animation options. */ + animation?: viz.core.Animation; + /** Specifies the appearance of the loading indicator. */ + loadingIndicator?: viz.core.LoadingIndicator; + /** Specifies whether to redraw the widget when the size of the parent browser window changes or a mobile device rotates. */ + redrawOnResize?: boolean; + /** Specifies the size of the widget in pixels. */ + size?: viz.core.Size; + /** + * Specifies a subtitle for the widget. + * @deprecated ..\..\..\BaseGauge\1 Configuration\title\subtitle\subtitle.md + */ + subtitle?: { + /** + * Specifies font options for the subtitle. + * @deprecated ..\..\title\subtitle\font\font.md + */ + font?: viz.core.Font; + /** + * Specifies a text for the subtitle. + * @deprecated ..\title\subtitle\text.md + */ + text?: string; + }; + /** Specifies a title for a gauge. */ + title?: { + /** Specifies font options for the title. */ + font?: viz.core.Font; + /** + * Specifies a title's position on the gauge. + * @deprecated basegaugeoptions_title_verticalAlignment and basegaugeoptions_title_horizontalAlignment + */ + position?: string; + /** Specifies the distance between the title and surrounding gauge elements in pixels. */ + margin?: viz.core.Margins; + /** Specifies the height of the space reserved for the title. */ + placeholderSize?: number; + /** Specifies the gauge title's position in the vertical direction. */ + verticalAlignment?: string; + /** Specifies the gauge title's horizontal position. */ + horizontalAlignment?: string; + /** Specifies text for the title. */ + text?: string; + /** Specifies a subtitle for the widget. */ + subtitle?: { + /** Specifies font options for the subtitle. */ + font?: viz.core.Font; + /** Specifies text for the subtitle. */ + text?: string; + } + }; + /** Specifies options for gauge tooltips. */ + tooltip?: viz.core.Tooltip; + /** A handler for the tooltipShown event. */ + onTooltipShown?: (e: { + component: dxBaseGauge; + element: Element; + target: {}; + }) => void; + /** A handler for the tooltipHidden event. */ + onTooltipHidden?: (e: { + component: dxBaseGauge; + element: Element; + target: {}; + }) => void; + } + export interface BaseGaugeOptions extends viz.core.BaseWidgetOptions, SharedGaugeOptions { + /** Specifies the color of the parent page element. */ + containerBackgroundColor?: string; + /** Specifies the blank space in pixels between the widget's extreme elements and the boundaries of the area provided for the widget (see the size option). */ + margin?: viz.core.Margins; + /** Specifies options of the gauge's range container. */ + rangeContainer?: BaseRangeContainer; + /** Specifies a gauge's scale options. */ + scale?: BaseScale; + /** Specifies the appearance options of subvalue indicators. */ + subvalueIndicator?: BaseValueIndicator; + /** Specifies a set of subvalues to be designated by the subvalue indicators. */ + subvalues?: Array; + /** Specifies the main value on a gauge. */ + value?: number; + /** Specifies the appearance options of the value indicator. */ + valueIndicator?: BaseValueIndicator; + } + /** A gauge widget. */ + export class dxBaseGauge extends viz.core.BaseWidget { + /** Displays the loading indicator. */ + showLoadingIndicator(): void; + /** Conceals the loading indicator. */ + hideLoadingIndicator(): void; + /** Redraws a widget. */ + render(): void; + /** Returns the main gauge value. */ + value(): number; + /** Updates a gauge value. */ + value(value: number): void; + /** Returns an array of gauge subvalues. */ + subvalues(): Array; + /** Updates gauge subvalues. */ + subvalues(subvalues: Array): void; + } + export interface LinearRangeContainer extends BaseRangeContainer { + /** Specifies the orientation of the range container on a vertically oriented dxLinearGauge widget. */ + horizontalOrientation?: string; + /** Specifies the orientation of a range container on a horizontally oriented dxLinearGauge widget. */ + verticalOrientation?: string; + /** Specifies the width of the range container's start and end boundaries in the dxLinearGauge widget. */ + width?: any; + /** Specifies an end width of a range container. */ + end?: number; + /** Specifies a start width of a range container. */ + start?: number; + } + export interface LinearScaleLabel extends BaseScaleLabel { + /** Specifies the spacing between scale labels and ticks. */ + indentFromTick?: number; + } + export interface LinearScale extends BaseScale { + /** Specifies the orientation of scale ticks on a vertically oriented dxLinearGauge widget. */ + horizontalOrientation?: string; + label?: LinearScaleLabel; + /** Specifies the orientation of scale ticks on a horizontally oriented dxLinearGauge widget. */ + verticalOrientation?: string; + } + export interface dxLinearGaugeOptions extends BaseGaugeOptions { + /** Specifies the options required to set the geometry of the dxLinearGauge widget. */ + geometry?: { + /** Indicates whether to display the dxLinearGauge widget vertically or horizontally. */ + orientation?: string; + }; + /** Specifies gauge range container options. */ + rangeContainer?: LinearRangeContainer; + scale?: LinearScale; + } + /** A widget that represents a gauge with a linear scale. */ + export class dxLinearGauge extends dxBaseGauge { + constructor(element: JQuery, options?: dxLinearGaugeOptions); + constructor(element: Element, options?: dxLinearGaugeOptions); + } + export interface CircularRangeContainer extends BaseRangeContainer { + /** Specifies the orientation of the range container in the dxCircularGauge widget. */ + orientation?: string; + /** Specifies the range container's width in pixels. */ + width?: number; + } + export interface CircularScaleLabel extends BaseScaleLabel { + /** Specifies the spacing between scale labels and ticks. */ + indentFromTick?: number; + } + export interface CircularScale extends BaseScale { + label?: CircularScaleLabel; + /** Specifies the orientation of scale ticks. */ + orientation?: string; + } + export interface dxCircularGaugeOptions extends BaseGaugeOptions { + /** Specifies the options required to set the geometry of the dxCircularGauge widget. */ + geometry?: { + /** Specifies the end angle of the circular gauge's arc. */ + endAngle?: number; + /** Specifies the start angle of the circular gauge's arc. */ + startAngle?: number; + }; + /** Specifies gauge range container options. */ + rangeContainer?: CircularRangeContainer; + scale?: CircularScale; + } + /** A widget that represents a gauge with a circular scale. */ + export class dxCircularGauge extends dxBaseGauge { + constructor(element: JQuery, options?: dxCircularGaugeOptions); + constructor(element: Element, options?: dxCircularGaugeOptions); + } + export interface dxBarGaugeOptions extends viz.core.BaseWidgetOptions, SharedGaugeOptions { + /** Specifies a color for the remaining segment of the bar's track. */ + backgroundColor?: string; + /** Specifies a distance between bars in pixels. */ + barSpacing?: number; + /** Specifies a base value for bars. */ + baseValue?: number; + /** Specifies an end value for the gauge's invisible scale. */ + endValue?: number; + /** Defines the shape of the gauge's arc. */ + geometry?: { + /** Specifies the end angle of the bar gauge's arc. */ + endAngle?: number; + /** Specifies the start angle of the bar gauge's arc. */ + startAngle?: number; + }; + /** Specifies the options of the labels that accompany gauge bars. */ + label?: { + /** Specifies a color for the label connector text. */ + connectorColor?: string; + /** Specifies the width of the label connector in pixels. */ + connectorWidth?: number; + /** Specifies a callback function that returns a text for labels. */ + customizeText?: (barValue: { value: number; valueText: string }) => string; + /** Specifies font options for bar labels. */ + font?: viz.core.Font; + /** Specifies a format for bar labels. */ + format?: string; + /** Specifies the distance between the upper bar and bar labels in pixels. */ + indent?: number; + /** Specifies a precision for the formatted value displayed by labels. */ + precision?: number; + /** Specifies whether bar labels appear on a gauge or not. */ + visible?: boolean; + }; + /** Sets the name of the palette or an array of colors to be used for coloring the gauge range container. */ + palette?: string; + /** Defines the radius of the bar that is closest to the center relatively to the radius of the topmost bar. */ + relativeInnerRadius?: number; + /** Specifies a start value for the gauge's invisible scale. */ + startValue?: number; + /** Specifies the array of values to be indicated on a bar gauge. */ + values?: Array; + } + /** A circular bar widget. */ + export class dxBarGauge extends viz.core.BaseWidget { + constructor(element: JQuery, options?: dxBarGaugeOptions); + constructor(element: Element, options?: dxBarGaugeOptions); + /** Displays the loading indicator. */ + showLoadingIndicator(): void; + /** Conceals the loading indicator. */ + hideLoadingIndicator(): void; + /** Redraws the widget. */ + render(): void; + /** Returns an array of gauge values. */ + values(): Array; + /** Updates the values displayed by a gauge. */ + values(values: Array): void; + } +} +interface JQuery { + dxLinearGauge(options?: DevExpress.viz.gauges.dxLinearGaugeOptions): JQuery; + dxLinearGauge(methodName: string, ...params: any[]): any; + dxLinearGauge(methodName: "instance"): DevExpress.viz.gauges.dxLinearGauge; + dxCircularGauge(options?: DevExpress.viz.gauges.dxCircularGaugeOptions): JQuery; + dxCircularGauge(methodName: string, ...params: any[]): any; + dxCircularGauge(methodName: "instance"): DevExpress.viz.gauges.dxCircularGauge; + dxBarGauge(options?: DevExpress.viz.gauges.dxBarGaugeOptions): JQuery; + dxBarGauge(methodName: string, ...params: any[]): any; + dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; +} +declare namespace DevExpress.viz.rangeSelector { + export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { + /** Specifies the options for the range selector's background. */ + background?: { + /** Specifies the background color for the dxRangeSelector. */ + color?: string; + /** Specifies image options. */ + image?: { + /** Specifies a location for the image in the background of a range selector. */ + location?: string; + /** Specifies the image's URL. */ + url?: string; + }; + /** Indicates whether or not the background (background color and/or image) is visible. */ + visible?: boolean; + }; + /** Specifies a title for the range selector. */ + title?: viz.core.Title; + /** Specifies the dxRangeSelector's behavior options. */ + behavior?: { + /** Indicates whether or not you can swap sliders. */ + allowSlidersSwap?: boolean; + /** Indicates whether or not animation is enabled. */ + animationEnabled?: boolean; + /** Specifies when to call the onSelectedRangeChanged function. */ + callSelectedRangeChanged?: string; + /** Indicates whether or not an end user can specify the range using a mouse, without the use of sliders. */ + manualRangeSelectionEnabled?: boolean; + /** Indicates whether or not an end user can shift the selected range to the required location on a scale by clicking. */ + moveSelectedRangeByClick?: boolean; + /** Indicates whether to snap a slider to ticks. */ + snapToTicks?: boolean; + }; + /** Specifies the options required to display a chart as the range selector's background. */ + chart?: { + /** Specifies a coefficient for determining an indent from the bottom background boundary to the lowest chart point. */ + bottomIndent?: number; + /** An object defining the common configuration options for the chart’s series. */ + commonSeriesSettings?: viz.charts.CommonSeriesSettings; + /** An object providing options for managing data from a data source. */ + dataPrepareSettings?: { + /** Specifies whether or not to validate values from a data source. */ + checkTypeForAllData?: boolean; + /** Specifies whether or not to convert the values from a data source into the data type of an axis. */ + convertToAxisDataType?: boolean; + /** Specifies how to sort series points. */ + sortingMethod?: any; + }; + /** Specifies whether all bars in a series must have the same width, or may have different widths if any points in other series are missing. */ + equalBarWidth?: boolean; + /** Specifies a common bar width as a percentage from 0 to 1. */ + barWidth?: number; + /** Sets the name of the palette to be used in the range selector's chart. Alternatively, an array of colors can be set as a custom palette to be used within this chart. */ + palette?: any; + /** An object defining the chart’s series. */ + series?: Array; + /** Defines options for the series template. */ + seriesTemplate?: viz.charts.SeriesTemplate; + /** Specifies a coefficient for determining an indent from the background's top boundary to the topmost chart point. */ + topIndent?: number; + /** Specifies whether or not to filter the series points depending on their quantity. */ + useAggregation?: boolean; + /** Specifies options for the chart's value axis. */ + valueAxis?: { + /** Indicates whether or not the chart's value axis must be inverted. */ + inverted?: boolean; + /** Specifies the value to be raised to a power when generating ticks for a logarithmic value axis. */ + logarithmBase?: number; + /** Specifies the maximum value of the chart's value axis. */ + max?: number; + /** Specifies the minimum value of the chart's value axis. */ + min?: number; + /** Specifies the type of the value axis. */ + type?: string; + /** Specifies the desired type of axis values. */ + valueType?: string; + }; + }; + /** Specifies the color of the parent page element. */ + containerBackgroundColor?: string; + /** Specifies a data source for the scale values and for the chart at the background. */ + dataSource?: any; + /** Specifies the data source field that provides data for the scale. */ + dataSourceField?: string; + /** Specifies the appearance of the loading indicator. */ + loadingIndicator?: viz.core.LoadingIndicator; + /** Specifies the blank space in pixels between the dxRangeSelector widget's extreme elements and the boundaries of the area provided for the widget (see size). */ + margin?: viz.core.Margins; + /** Specifies whether to redraw the widget when the size of the parent browser window changes or a mobile device rotates. */ + redrawOnResize?: boolean; + /** Specifies options of the range selector's scale. */ + scale?: { + /** Specifies the scale's end value. */ + endValue?: any; + /** Specifies common options for scale labels. */ + label?: { + /** Specifies a callback function that returns the text to be displayed in scale labels. */ + customizeText?: (scaleValue: { value: any; valueText: string; }) => string; + /** Specifies font options for the text displayed in the range selector's scale labels. */ + font?: viz.core.Font; + /** Specifies a format for the text displayed in scale labels. */ + format?: string; + /** Specifies a precision for the formatted value displayed in the scale labels. */ + precision?: number; + /** Specifies a spacing between scale labels and the background bottom edge. */ + topIndent?: number; + /** Specifies whether or not the scale's labels are visible. */ + visible?: boolean; + }; + /** Specifies the value to be raised to a power when generating ticks for a logarithmic scale. */ + logarithmBase?: number; + /** + * Specifies an interval between major ticks. + * @deprecated ..\tickInterval\tickInterval.md + */ + majorTickInterval?: any; + /** Specifies an interval between axis ticks. */ + tickInterval?: any; + /** Specifies options for the date-time scale's markers. */ + marker?: { + /** Defines the options that can be set for the text that is displayed by the scale markers. */ + label?: { + /** Specifies a callback function that returns the text to be displayed in scale markers. */ + customizeText?: (markerValue: { value: any; valueText: string }) => string; + /** Specifies a format for the text displayed in scale markers. */ + format?: string; + }; + /** Specifies the height of the marker's separator. */ + separatorHeight?: number; + /** Specifies the space between the marker label and the marker separator. */ + textLeftIndent?: number; + /** Specifies the space between the marker's label and the top edge of the marker's separator. */ + textTopIndent?: number; + /** Specified the indent between the marker and the scale lables. */ + topIndent?: number; + /** Indicates whether scale markers are visible. */ + visible?: boolean; + }; + /** Specifies the maximum range that can be selected. */ + maxRange?: any; + /** Specifies the number of minor ticks between neighboring major ticks. */ + minorTickCount?: number; + /** Specifies an interval between minor ticks. */ + minorTickInterval?: any; + /** Specifies the minimum range that can be selected. */ + minRange?: any; + /** Specifies the height of the space reserved for the scale in pixels. */ + placeholderHeight?: number; + /** Indicates whether or not to set ticks of a date-time scale at the beginning of each date-time interval. */ + setTicksAtUnitBeginning?: boolean; + /** Specifies whether or not to show ticks for the boundary scale values, when neither major ticks nor minor ticks are created for these values. */ + showCustomBoundaryTicks?: boolean; + /** + * Indicates whether or not to show minor ticks on the scale. + * @deprecated minorTick\visible.md + */ + showMinorTicks?: boolean; + /** Specifies the scale's start value. */ + startValue?: any; + /** Specifies options defining the appearance of scale ticks. */ + tick?: { + /** Specifies the color of scale ticks (both major and minor ticks). */ + color?: string; + /** Specifies the opacity of scale ticks (both major and minor ticks). */ + opacity?: number; + /** Specifies the width of the scale's ticks (both major and minor ticks). */ + width?: number; + }; + /** Specifies options of the range selector's minor ticks. */ + minorTick?: { + /** Specifies the color of the scale's minor ticks. */ + color?: string; + /** Specifies the opacity of the scale's minor ticks. */ + opacity?: number; + /** Specifies the width of the scale's minor ticks. */ + width?: number; + /** Indicates whether scale minor ticks are visible or not. */ + visible?: boolean; + }; + /** Specifies the type of the scale. */ + type?: string; + /** Specifies whether or not to expand the current tick interval if labels overlap each other. */ + useTicksAutoArrangement?: boolean; + /** Specifies the type of values on the scale. */ + valueType?: string; + /** Specifies the order of arguments on a discrete scale. */ + categories?: Array; + }; + /** Specifies the range to be selected when displaying the dxRangeSelector. */ + selectedRange?: { + /** Specifies the start value of the range to be selected when displaying the dxRangeSelector widget on a page. */ + startValue?: any; + /** Specifies the end value of the range to be selected when displaying the dxRangeSelector widget on a page. */ + endValue?: any; + }; + /** Specifies the color of the selected range. */ + selectedRangeColor?: string; + /** Range selector's indent options. */ + indent?: { + /** Specifies range selector's left indent. */ + left?: number; + /** Specifies range selector's right indent. */ + right?: number; + }; + /** A handler for the selectedRangeChanged event. */ + onSelectedRangeChanged?: (e: { + startValue: any; + endValue: any; + component: dxRangeSelector; + element: Element; + }) => void; + /** Specifies range selector shutter options. */ + shutter?: { + /** Specifies shutter color. */ + color?: string; + /** Specifies the opacity of the color of shutters. */ + opacity?: number; + }; + /** Specifies in pixels the size of the dxRangeSelector widget. */ + size?: viz.core.Size; + /** Specifies the appearance of the range selector's slider handles. */ + sliderHandle?: { + /** Specifies the color of the slider handles. */ + color?: string; + /** Specifies the opacity of the slider handles. */ + opacity?: number; + /** Specifies the width of the slider handles. */ + width?: number; + }; + /** Defines the options of the range selector slider markers. */ + sliderMarker?: { + /** Specifies the color of the slider markers. */ + color?: string; + /** Specifies a callback function that returns the text to be displayed by slider markers. */ + customizeText?: (scaleValue: { value: any; valueText: any; }) => string; + /** Specifies font options for the text displayed by the range selector slider markers. */ + font?: viz.core.Font; + /** Specifies a format for the text displayed in slider markers. */ + format?: string; + /** Specifies the color used for the slider marker text when the currently selected range does not match the minRange and maxRange values. */ + invalidRangeColor?: string; + /** + * Specifies the empty space between the marker's border and the marker’s text. + * @deprecated Use the 'paddingTopBottom' and 'paddingLeftRight' options instead + */ + padding?: number; + /** Specifies the empty space between the marker's top and bottom borders and the marker's text. */ + paddingTopBottom?: number; + /** Specifies the empty space between the marker's left and right borders and the marker's text. */ + paddingLeftRight?: number; + /** Specifies the placeholder height of the slider marker. */ + placeholderHeight?: number; + /** + * Specifies in pixels the height and width of the space reserved for the range selector slider markers. + * @deprecated Use the 'placeholderHeight' and 'indent' options instead + */ + placeholderSize?: { + /** Specifies the height of the placeholder for the left and right slider markers. */ + height?: number; + /** Specifies the width of the placeholder for the left and right slider markers. */ + width?: { + /** Specifies the width of the left slider marker's placeholder. */ + left?: number; + /** Specifies the width of the right slider marker's placeholder. */ + right?: number; + }; + }; + /** Specifies a precision for the formatted value displayed in slider markers. */ + precision?: number; + /** Indicates whether or not the slider markers are visible. */ + visible?: boolean; + }; + } + /** A widget that allows end users to select a range of values on a scale. */ + export class dxRangeSelector extends viz.core.BaseWidget { + constructor(element: JQuery, options?: dxRangeSelectorOptions); + constructor(element: Element, options?: dxRangeSelectorOptions); + /** Displays the loading indicator. */ + showLoadingIndicator(): void; + /** Conceals the loading indicator. */ + hideLoadingIndicator(): void; + /** Redraws a widget. */ + render(skipChartAnimation?: boolean): void; + /** Returns the currently selected range. */ + getSelectedRange(): { startValue: any; endValue: any; }; + /** Sets a specified range. */ + setSelectedRange(selectedRange: { startValue: any; endValue: any; }): void; + } +} +interface JQuery { + dxRangeSelector(options?: DevExpress.viz.rangeSelector.dxRangeSelectorOptions): JQuery; + dxRangeSelector(methodName: string, ...params: any[]): any; + dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; +} +declare namespace DevExpress.viz.map { + /** This section describes the fields and methods that can be used in code to manipulate the Layer object. */ + export interface MapLayer { + /** The name of the layer. */ + name: string; + /** The layer index in the layers array. */ + index: number; + /** The layer type. Can be "area", "line" or "marker". */ + type: string; + /** The type of the layer elements. */ + elementType: string; + /** Gets all layer elements. */ + getElements(): Array; + /** Deselects all layer elements. */ + clearSelection(): void; + } + /** This section describes the fields and methods that can be used in code to manipulate the Layer Element object. */ + export interface MapLayerElement { + /** The parent layer of the layer element. */ + layer: MapLayer; + /** Gets the layer element coordinates. */ + coordinates(): Object; + /** Sets the value of an attribute. */ + attribute(name: string, value: any): void; + /** Gets the value of an attribute. */ + attribute(name: string): any; + /** Gets the selection state of the layer element. */ + selected(): boolean; + /** Sets the selection state of the layer element. */ + selected(state: boolean): void; + /** Applies the layer element settings and updates element appearance. */ + applySettings(settings: any): void; + } + /** + * This section describes the fields and methods that can be used in code to manipulate the Area object. + * @deprecated Use the "Layer Element" instead + */ + export interface Area { + /** + * Contains the element type. + * @deprecated ..\..\Layer\2 Fields\type.md + */ + type: string; + /** + * Return the value of an attribute. + * @deprecated ..\..\Layer Element\3 Methods\attribute(name_value).md + */ + attribute(name: string): any; + /** + * Provides information about the selection state of an area. + * @deprecated Use the "selected()" method of the Layer Element + */ + selected(): boolean; + /** + * Sets a new selection state for an area. + * @deprecated Use the "selected(state)" method of the Layer Element + */ + selected(state: boolean): void; + /** + * Applies the area settings specified as a parameter and updates the area appearance. + * @deprecated ..\..\Layer Element\3 Methods\applySettings(settings).md + */ + applySettings(settings: any): void; + } + /** + * This section describes the fields and methods that can be used in code to manipulate the Markers object. + * @deprecated Use the "Layer Element" instead + */ + export interface Marker { + /** + * Contains the descriptive text accompanying the map marker. + * @deprecated Get the text with the "attribute" method (using the "layers.label.dataField" value) + */ + text: string; + /** + * Contains the type of the element. + * @deprecated ..\..\Layer\2 Fields\type.md + */ + type: string; + /** + * Contains the URL of an image map marker. + * @deprecated Get the url with the "attribute" method (using the "layers.dataField" value) + */ + url: string; + /** + * Contains the value of a bubble map marker. + * @deprecated Get the value with the "attribute" method (using the "layers.dataField" value) + */ + value: number; + /** + * Contains the values of a pie map marker. + * @deprecated Get the values with the "attribute" method (using the "layers.dataField" value) + */ + values: Array; + /** + * Returns the value of an attribute. + * @deprecated ..\..\Layer Element\3 Methods\attribute(name_value).md + */ + attribute(name: string): any; + /** + * Returns the coordinates of a specific marker. + * @deprecated ..\..\Layer Element\3 Methods\coordinates().md + */ + coordinates(): Array; + /** + * Provides information about the selection state of a marker. + * @deprecated Use the "selected()" method of the Layer Element + */ + selected(): boolean; + /** + * Sets a new selection state for a marker. + * @deprecated Use the "selected(state)" method of the Layer Element + */ + selected(state: boolean): void; + /** + * Applies the marker settings specified as a parameter and updates marker appearance. + * @deprecated ..\..\Layer Element\3 Methods\applySettings(settings).md + */ + applySettings(settings: any): void; + } + export interface MapLayerSettings { + /** Specifies the layer name. */ + name?: string; + /** Specifies layer type. */ + type?: string; + /** Specifies the type of a marker element. Setting this option makes sense only if the layer type is "marker". */ + elementType?: string; + /** Specifies a data source for the layer. */ + data?: any; + /** Specifies the line width (for layers of a line type) or width of the layer elements border in pixels. */ + borderWidth?: number; + /** Specifies a color for the border of the layer elements. */ + borderColor?: string; + /** Specifies a color for layer elements. */ + color?: string; + /** Specifies a color for the border of the layer element when it is hovered over. */ + hoveredBorderColor?: string; + /** Specifies the pixel-measured line width (for layers of a line type) or width for the border of the layer element when it is hovered over. */ + hoveredBorderWidth?: number; + /** Specifies a color for a layer element when it is hovered over. */ + hoveredColor?: string; + /** Specifies a pixel-measured line width (for layers of a line type) or width for the border of the layer element when it is selected. */ + selectedBorderWidth?: number; + /** Specifies a color for the border of the layer element when it is selected. */ + selectedBorderColor?: string; + /** Specifies a color for the layer element when it is selected. */ + selectedColor?: string; + /** Specifies the layer opacity (from 0 to 1). */ + opacity?: number; + /** Specifies the size of markers. Setting this option makes sense only if the layer type is "marker" and the elementType is "dot", "pie" or "image". */ + size?: number; + /** Specifies the pixel-measured diameter of the marker that represents the smallest value. Setting this option makes sense only if the layer type is "marker". */ + minSize?: number; + /** Specifies the pixel-measured diameter of the marker that represents the biggest value. Setting this option makes sense only if the layer type is "marker". */ + maxSize?: number; + /** Specifies whether or not to change the appearance of a layer element when it is hovered over. */ + hoverEnabled?: boolean; + /** Specifies whether single or multiple map elements can be selected on a vector map. */ + selectionMode?: string; + /** Specifies the name of the palette or a custom range of colors to be used for coloring a layer. */ + palette?: any; + /** Specifies the number of colors in a palette. */ + paletteSize?: number; + /** Allows you to paint layer elements with similar attributes in the same color. */ + colorGroups?: Array; + /** Specifies the field that provides data to be used for coloring of layer elements. */ + colorGroupingField?: string; + /** Allows you to display bubbles with similar attributes in the same size. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ + sizeGroups?: Array; + /** Specifies the field that provides data to be used for sizing bubble markers. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble". */ + sizeGroupingField?: string; + /** Specifies the name of the attribute containing marker data. Setting this option makes sense only if the layer type is "marker" and the elementType is "bubble", "pie" or "image". */ + dataField?: string; + /** Specifies the function that customizes each layer element individually. */ + customize?: (eleemnts: Array) => void; + /** Specifies marker label options. */ + label?: { + /** The name of the data attribute containing marker texts. */ + dataField?: string; + /** Enables marker labels. */ + enabled?: boolean; + /** Specifies font options for marker labels. */ + font?: viz.core.Font; + }; + } + export interface AreaSettings { + /** + * Specifies the width of the area border in pixels. + * @deprecated ..\layers\borderWidth.md + */ + borderWidth?: number; + /** + * Specifies a color for the area border. + * @deprecated ..\layers\borderColor.md + */ + borderColor?: string; + /** + * Specifies a color for an area. + * @deprecated ..\layers\color.md + */ + color?: string; + /** + * Specifies the function that customizes each area individually. + * @deprecated ..\layers\customize.md + */ + customize?: (areaInfo: Area) => AreaSettings; + /** + * Specifies a color for the area border when the area is hovered over. + * @deprecated ..\layers\hoveredBorderColor.md + */ + hoveredBorderColor?: string; + /** + * Specifies the pixel-measured width of the area border when the area is hovered over. + * @deprecated ..\layers\hoveredBorderWidth.md + */ + hoveredBorderWidth?: number; + /** + * Specifies a color for an area when this area is hovered over. + * @deprecated ..\layers\hoveredColor.md + */ + hoveredColor?: string; + /** + * Specifies whether or not to change the appearance of an area when it is hovered over. + * @deprecated ..\layers\hoverEnabled.md + */ + hoverEnabled?: boolean; + /** + * Configures area labels. + * @deprecated ..\..\layers\label\label.md + */ + label?: { + /** + * Specifies the data field that provides data for area labels. + * @deprecated ..\..\layers\label\dataField.md + */ + dataField?: string; + /** + * Enables area labels. + * @deprecated ..\..\layers\label\enabled.md + */ + enabled?: boolean; + /** + * Specifies font options for area labels. + * @deprecated ..\..\..\layers\label\font\font.md + */ + font?: viz.core.Font; + }; + /** + * Specifies the name of the palette or a custom range of colors to be used for coloring a map. + * @deprecated ..\layers\palette.md + */ + palette?: any; + /** + * Specifies the number of colors in a palette. + * @deprecated ..\layers\paletteSize.md + */ + paletteSize?: number; + /** + * Allows you to paint areas with similar attributes in the same color. + * @deprecated ..\layers\colorGroups.md + */ + colorGroups?: Array; + /** + * Specifies the field that provides data to be used for coloring areas. + * @deprecated ..\layers\colorGroupingField.md + */ + colorGroupingField?: string; + /** + * Specifies a color for the area border when the area is selected. + * @deprecated ..\layers\selectedBorderColor.md + */ + selectedBorderColor?: string; + /** + * Specifies a color for an area when this area is selected. + * @deprecated ..\layers\selectedColor.md + */ + selectedColor?: string; + /** + * Specifies the pixel-measured width of the area border when the area is selected. + * @deprecated ..\layers\selectedBorderWidth.md + */ + selectedBorderWidth?: number; + /** + * Specifies whether single or multiple areas can be selected on a vector map. + * @deprecated ..\layers\selectionMode.md + */ + selectionMode?: string; + } + export interface MarkerSettings { + /** + * Specifies a color for the marker border. + * @deprecated ..\layers\borderColor.md + */ + borderColor?: string; + /** + * Specifies the width of the marker border in pixels. + * @deprecated ..\layers\borderWidth.md + */ + borderWidth?: number; + /** + * Specifies a color for a marker of the dot or bubble type. + * @deprecated ..\layers\color.md + */ + color?: string; + /** + * Specifies the function that customizes each marker individually. + * @deprecated ..\layers\customize.md + */ + customize?: (markerInfo: Marker) => MarkerSettings; + /** + * Specifies the pixel-measured width of the marker border when the marker is hovered over. + * @deprecated ..\layers\hoveredBorderWidth.md + */ + hoveredBorderWidth?: number; + /** + * Specifies a color for the marker border when the marker is hovered over. + * @deprecated ..\layers\hoveredBorderColor.md + */ + hoveredBorderColor?: string; + /** + * Specifies a color for a marker of the dot or bubble type when this marker is hovered over. + * @deprecated ..\layers\hoveredColor.md + */ + hoveredColor?: string; + /** + * Specifies whether or not to change the appearance of a marker when it is hovered over. + * @deprecated ..\layers\hoverEnabled.md + */ + hoverEnabled?: boolean; + /** + * Specifies marker label options. + * @deprecated ..\..\layers\label\label.md + */ + label?: { + /** + * Enables marker labels. + * @deprecated ..\..\layers\label\enabled.md + */ + enabled?: boolean; + /** + * Specifies font options for marker labels. + * @deprecated ..\..\..\layers\label\font\font.md + */ + font?: viz.core.Font; + }; + /** + * Specifies the pixel-measured diameter of the marker that represents the biggest value. Setting this option makes sense only if you use markers of the bubble type. + * @deprecated ..\layers\maxSize.md + */ + maxSize?: number; + /** + * Specifies the pixel-measured diameter of the marker that represents the smallest value. Setting this option makes sense only if you use markers of the bubble type. + * @deprecated ..\layers\minSize.md + */ + minSize?: number; + /** + * Specifies the opacity of markers. Setting this option makes sense only if you use markers of the bubble type. + * @deprecated ..\layers\opacity.md + */ + opacity?: number; + /** + * Specifies the pixel-measured width of the marker border when the marker is selected. + * @deprecated ..\layers\selectedBorderWidth.md + */ + selectedBorderWidth?: number; + /** + * Specifies a color for the marker border when the marker is selected. + * @deprecated ..\layers\selectedBorderColor.md + */ + selectedBorderColor?: string; + /** + * Specifies a color for a marker of the dot or bubble type when this marker is selected. + * @deprecated ..\layers\selectedColor.md + */ + selectedColor?: string; + /** + * Specifies whether a single or multiple markers can be selected on a vector map. + * @deprecated ..\layers\selectionMode.md + */ + selectionMode?: string; + /** + * Specifies the size of markers. Setting this option makes sense for any type of marker except bubble. + * @deprecated ..\layers\size.md + */ + size?: number; + /** + * Specifies the type of markers to be used on the map. + * @deprecated ..\layers\elementType.md + */ + type?: string; + /** + * Specifies the name of a palette or a custom set of colors to be used for coloring markers of the pie type. + * @deprecated ..\layers\palette.md + */ + palette?: any; + /** + * Allows you to paint markers with similar attributes in the same color. + * @deprecated ..\layers\colorGroups.md + */ + colorGroups?: Array; + /** + * Specifies the field that provides data to be used for coloring markers. + * @deprecated ..\layers\colorGroupingField.md + */ + colorGroupingField?: string; + /** + * Allows you to display bubbles with similar attributes in the same size. + * @deprecated ..\layers\sizeGroups.md + */ + sizeGroups?: Array; + /** + * Specifies the field that provides data to be used for sizing bubble markers. + * @deprecated ..\layers\sizeGroupingField.md + */ + sizeGroupingField?: string; + } + export interface dxVectorMapOptions extends viz.core.BaseWidgetOptions { + /** + * An object specifying options for the map areas. + * @deprecated Use the 'layers' option instead + */ + areaSettings?: AreaSettings; + /** Specifies the options for the map background. */ + background?: { + /** Specifies a color for the background border. */ + borderColor?: string; + /** Specifies a color for the background. */ + color?: string; + }; + /** Specifies options for dxVectorMap widget layers. */ + layers?: Array; + /** Specifies the map projection. */ + projection?: Object; + /** Specifies the positioning of a map in geographical coordinates. */ + bounds?: Array; + /** Specifies the options of the control bar. */ + controlBar?: { + /** Specifies a color for the outline of the control bar elements. */ + borderColor?: string; + /** Specifies a color for the inner area of the control bar elements. */ + color?: string; + /** Specifies whether or not to display the control bar. */ + enabled?: boolean; + /** Specifies the margin of the control bar in pixels. */ + margin?: number; + /** Specifies the position of the control bar. */ + horizontalAlignment?: string; + /** Specifies the position of the control bar. */ + verticalAlignment?: string; + /** Specifies the opacity of the Control_Bar. */ + opacity?: number; + }; + /** Specifies the appearance of the loading indicator. */ + loadingIndicator?: viz.core.LoadingIndicator; + /** + * Specifies a data source for the map area. + * @deprecated Use the 'layers.data' option instead + */ + mapData?: any; + /** + * Specifies a data source for the map markers. + * @deprecated Use the 'layers.data' option instead + */ + markers?: any; + /** + * An object specifying options for the map markers. + * @deprecated Use the 'layers' option instead + */ + markerSettings?: MarkerSettings; + /** Specifies the size of the dxVectorMap widget. */ + size?: viz.core.Size; + /** Specifies a title for the vector map. */ + title?: viz.core.Title; + /** Specifies tooltip options. */ + tooltip?: viz.core.Tooltip; + /** Configures map legends. */ + legends?: Array; + /** Specifies whether or not the map should respond when a user rolls the mouse wheel. */ + wheelEnabled?: boolean; + /** Specifies whether the map should respond to touch gestures. */ + touchEnabled?: boolean; + /** Disables the zooming capability. */ + zoomingEnabled?: boolean; + /** Specifies the geographical coordinates of the center for a map. */ + center?: Array; + /** A handler for the centerChanged event. */ + onCenterChanged?: (e: { + center: Array; + component: dxVectorMap; + element: Element; + }) => void; + /** A handler for the tooltipShown event. */ + onTooltipShown?: (e: { + component: dxVectorMap; + element: Element; + target: {}; + }) => void; + /** A handler for the tooltipHidden event. */ + onTooltipHidden?: (e: { + component: dxVectorMap; + element: Element; + target: {}; + }) => void; + /** Specifies a number that is used to zoom a map initially. */ + zoomFactor?: number; + /** Specifies a map's maximum zoom factor. */ + maxZoomFactor?: number; + /** A handler for the zoomFactorChanged event. */ + onZoomFactorChanged?: (e: { + component: dxVectorMap; + element: Element; + zoomFactor: number; + }) => void; + /** A handler for the click event. */ + onClick?: any; + /** A handler for the selectionChanged event. */ + onSelectionChanged?: (e: { + component: dxVectorMap; + element: Element; + target: MapLayerElement; + }) => void; + /** + * A handler for the areaClick event. + * @deprecated Use the 'onClick' option instead + */ + onAreaClick?: any; + /** + * A handler for the areaSelectionChanged event. + * @deprecated Use the 'onSelectionChanged' option instead + */ + onAreaSelectionChanged?: (e: { + target: Area; + component: dxVectorMap; + element: Element; + }) => void; + /** + * A handler for the markerClick event. + * @deprecated Use the 'onClick' option instead + */ + onMarkerClick?: any; + /** + * A handler for the markerSelectionChanged event. + * @deprecated Use the 'onSelecitonChanged' option instead + */ + onMarkerSelectionChanged?: (e: { + target: Marker; + component: dxVectorMap; + element: Element; + }) => void; + /** Disables the panning capability. */ + panningEnabled?: boolean; + } + export interface Legend extends viz.core.BaseLegend { + /** Specifies the color of item markers in the legend. The specified color applied only when the legend uses 'size' source. */ + markerColor?: string; + /** Specifies text for legend items. */ + customizeText?: (itemInfo: { start: number; end: number; index: number; color: string; size: number; }) => string; + /** Specifies text for a hint that appears when a user hovers the mouse pointer over the text of a legend item. */ + customizeHint?: (itemInfo: { start: number; end: number; index: number; color: string; size: number }) => string; + /** Specifies the source of data for the legend. */ + source?: { + /** Specifies a layer to which the legend belongs. */ + layer?: string; + /** Specifies the type of the legend grouping. */ + grouping?: string; + } + } + /** A vector map widget. */ + export class dxVectorMap extends viz.core.BaseWidget { + constructor(element: JQuery, options?: dxVectorMapOptions); + constructor(element: Element, options?: dxVectorMapOptions); + /** Displays the loading indicator. */ + showLoadingIndicator(): void; + /** Conceals the loading indicator. */ + hideLoadingIndicator(): void; + /** Redraws a widget. */ + render(): void; + /** Gets the current coordinates of the map center. */ + center(): Array; + /** Sets the coordinates of the map center. */ + center(centerCoordinates: Array): void; + /** + * Deselects all the selected areas on a map. The areas are displayed in their initial style after. + * @deprecated Use the 'clearSelection' method on a layer instead + */ + clearAreaSelection(): void; + /** + * Deselects all the selected markers on a map. The markers are displayed in their initial style after. + * @deprecated Use the 'clearSelection' method on a layer instead + */ + clearMarkerSelection(): void; + /** Deselects all the selected area and markers on a map at once. The areas and markers are displayed in their initial style after. */ + clearSelection(): void; + /** Converts client area coordinates into map coordinates. */ + convertCoordinates(x: number, y: number): Array; + /** Gets all map layers. */ + getLayers(): Array; + /** Gets the layer by its index. */ + getLayerByIndex(index: number): MapLayer; + /** Gets the layer by its name. */ + getLayerByName(name: string): MapLayer; + /** + * Returns an array with all the map areas. + * @deprecated Use the 'getElements' method on a layer instead + */ + getAreas(): Array; + /** + * Returns an array with all the map markers. + * @deprecated Use the 'getElements' method on a layer instead + */ + getMarkers(): Array; + /** Gets the current coordinates of the map viewport. */ + viewport(): Array; + /** Sets the coordinates of the map viewport. */ + viewport(viewportCoordinates: Array): void; + /** Gets the current value of the map zoom factor. */ + zoomFactor(): number; + /** Sets the value of the map zoom factor. */ + zoomFactor(zoomFactor: number): void; + } + export var projection: ProjectionCreator; + export interface ProjectionCreator { + /** Creates a new projection. */ + (data: { + to?: (coordinates: Array) => Array; + from?: (coordinates: Array) => Array; + aspectRatio?: number; + }): Object; + /** Gets the default or custom projection from the projection storage. */ + get(name: string): Object; + /** Adds a new projection to the internal projections storage. */ + add(name: string, projection: Object): void; + } +} +interface JQuery { + dxVectorMap(options?: DevExpress.viz.map.dxVectorMapOptions): JQuery; + dxVectorMap(methodName: string, ...params: any[]): any; + dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; +} +declare namespace DevExpress.viz.sparklines { + export interface SparklineTooltip extends viz.core.Tooltip { + /** + * Specifies how a tooltip is horizontally aligned relative to the graph. + * @deprecated Tooltip alignment is no more available. + */ + horizontalAlignment?: string; + /** + * Specifies how a tooltip is vertically aligned relative to the graph. + * @deprecated Tooltip alignment is no more available. + */ + verticalAlignment?: string; + } + export interface BaseSparklineOptions extends viz.core.BaseWidgetOptions { + /** Specifies the blank space between the widget's extreme elements and the boundaries of the area provided for the widget in pixels. */ + margin?: viz.core.Margins; + /** Specifies the size of the widget. */ + size?: viz.core.Size; + /** Specifies tooltip options. */ + tooltip?: SparklineTooltip; + /** A handler for the tooltipShown event. */ + onTooltipShown?: (e: { + component: BaseSparkline; + element: Element; + }) => void; + /** A handler for the tooltipHidden event. */ + onTooltipHidden?: (e: { + component: BaseSparkline; + element: Element; + }) => void; + } + /** Overridden by descriptions for particular widgets. */ + export class BaseSparkline extends viz.core.BaseWidget { + /** Redraws a widget. */ + render(): void; + } + export interface dxBulletOptions extends BaseSparkline { + /** Specifies a color for the bullet bar. */ + color?: string; + /** Specifies an end value for the invisible scale. */ + endScaleValue?: number; + /** Specifies whether or not to show the target line. */ + showTarget?: boolean; + /** Specifies whether or not to show the line indicating zero on the invisible scale. */ + showZeroLevel?: boolean; + /** Specifies a start value for the invisible scale. */ + startScaleValue?: number; + /** Specifies the value indicated by the target line. */ + target?: number; + /** Specifies a color for both the target and zero level lines. */ + targetColor?: string; + /** Specifies the width of the target line. */ + targetWidth?: number; + /** Specifies the primary value indicated by the bullet bar. */ + value?: number; + } + /** A bullet graph widget. */ + export class dxBullet extends BaseSparkline { + constructor(element: JQuery, options?: dxBulletOptions); + constructor(element: Element, options?: dxBulletOptions); + } + export interface dxSparklineOptions extends BaseSparklineOptions { + /** Specifies the data source field that provides arguments for a sparkline. */ + argumentField?: string; + /** Sets a color for the bars indicating negative values. Available for a sparkline of the bar type only. */ + barNegativeColor?: string; + /** Sets a color for the bars indicating positive values. Available for a sparkline of the bar type only. */ + barPositiveColor?: string; + /** Specifies a data source for the sparkline. */ + dataSource?: Array; + /** Sets a color for the boundary of both the first and last points on a sparkline. */ + firstLastColor?: string; + /** Specifies whether a sparkline ignores null data points or not. */ + ignoreEmptyPoints?: boolean; + /** Sets a color for a line on a sparkline. Available for the sparklines of the line- and area-like types. */ + lineColor?: string; + /** Specifies a width for a line on a sparkline. Available for the sparklines of the line- and area-like types. */ + lineWidth?: number; + /** Sets a color for the bars indicating the values that are less than the winloss threshold. Available for a sparkline of the winloss type only. */ + lossColor?: string; + /** Sets a color for the boundary of the maximum point on a sparkline. */ + maxColor?: string; + /** Sets a color for the boundary of the minimum point on a sparkline. */ + minColor?: string; + /** Sets a color for points on a sparkline. Available for the sparklines of the line- and area-like types. */ + pointColor?: string; + /** Specifies the diameter of sparkline points in pixels. Available for the sparklines of line- and area-like types. */ + pointSize?: number; + /** Specifies a symbol to use as a point marker on a sparkline. Available for the sparklines of the line- and area-like types. */ + pointSymbol?: string; + /** Specifies whether or not to indicate both the first and last values on a sparkline. */ + showFirstLast?: boolean; + /** Specifies whether or not to indicate both the minimum and maximum values on a sparkline. */ + showMinMax?: boolean; + /** Determines the type of a sparkline. */ + type?: string; + /** Specifies the data source field that provides values for a sparkline. */ + valueField?: string; + /** Sets a color for the bars indicating the values greater than a winloss threshold. Available for a sparkline of the winloss type only. */ + winColor?: string; + /** Specifies a value that serves as a threshold for the sparkline of the winloss type. */ + winlossThreshold?: number; + /** Specifies the minimum value of the sparkline value axis. */ + minValue?: number; + /** Specifies the maximum value of the sparkline's value axis. */ + maxValue?: number; + } + /** A sparkline widget. */ + export class dxSparkline extends BaseSparkline { + constructor(element: JQuery, options?: dxSparklineOptions); + constructor(element: Element, options?: dxSparklineOptions); + } +} +interface JQuery { + dxBullet(options?: DevExpress.viz.sparklines.dxBulletOptions): JQuery; + dxBullet(methodName: string, ...params: any[]): any; + dxBullet(methodName: "instance"): DevExpress.viz.sparklines.dxBullet; + dxSparkline(options?: DevExpress.viz.sparklines.dxSparklineOptions): JQuery; + dxSparkline(methodName: string, ...params: any[]): any; + dxSparkline(methodName: "instance"): DevExpress.viz.sparklines.dxSparkline; +} diff --git a/devextreme/devextreme-tests.ts b/devextreme/devextreme-tests.ts index 6a05825749..33e00bda32 100644 --- a/devextreme/devextreme-tests.ts +++ b/devextreme/devextreme-tests.ts @@ -1,6 +1,6 @@ /// -module Tests.ui { +namespace Tests.ui { var dataGridOptions: DevExpress.ui.dxDataGridOptions = { activeStateEnabled: true, allowColumnReordering: true, @@ -194,7 +194,7 @@ module Tests.ui { $("#data-grid").dxDataGrid(dataGridOptions); } -module Tests.viz { +namespace Tests.viz { var chartOptions: DevExpress.viz.charts.dxChartOptions = { dataSource: [ { arg: "Illinois", s1: 100, s2: 50, s3: 75, s4: 25, s5: 50, s6: 100, s7: 25, s8: 75 }, @@ -267,7 +267,7 @@ module Tests.viz { $("#pie-chart").dxPieChart(pieChartOptions); } -module Tests.framework { +namespace Tests.framework { var app = new DevExpress.framework.html.HtmlApplication({ namespace: "Application", navigation: [ @@ -288,7 +288,7 @@ module Tests.framework { app.navigate(); } -module Tests.data { +namespace Tests.data { new DevExpress.data.DataSource({ sort: ["value", true], group: ["id", false], @@ -317,4 +317,4 @@ module Tests.data { return $.Deferred().promise(); } }); -} \ No newline at end of file +} diff --git a/devextreme/devextreme.d.ts b/devextreme/devextreme.d.ts index 1d31b7d4f9..df967b19f3 100644 --- a/devextreme/devextreme.d.ts +++ b/devextreme/devextreme.d.ts @@ -1,11 +1,11 @@ -// Type definitions for DevExtreme 15.2.5 +// Type definitions for DevExtreme 15.2.7 // Project: http://js.devexpress.com/ // Definitions by: DevExpress Inc. -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// -declare module DevExpress { +declare namespace DevExpress { /** A mixin that provides a capability to fire and subscribe to events. */ export interface EventsMixin { /** Subscribes to a specified event. */ @@ -831,7 +831,7 @@ declare module DevExpress { export function registerPalette(paletteName: string, palette: Object): void; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxValidatorOptions extends DOMComponentOptions { /** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */ validationRules?: Array; @@ -1197,7 +1197,7 @@ declare module DevExpress.ui { /** Updates the dimensions of the scrollable contents. */ update(): void; } - export interface dxRadioGroupOptions extends CollectionWidgetOptions, DataExpressionMixinOptions { + export interface dxRadioGroupOptions extends EditorOptions, DataExpressionMixinOptions { activeStateEnabled?: boolean; /** Specifies the radio group layout. */ layout?: string; @@ -1300,6 +1300,7 @@ declare module DevExpress.ui { onShowing?: Function; /** A handler for the shown event. */ onShown?: Function; + onContentReady?: Function; /** A Boolean value specifying whether or not the widget is visible. */ visible?: boolean; /** The widget width in pixels. */ @@ -1334,6 +1335,8 @@ declare module DevExpress.ui { step?: number; /** The current number box value. */ value?: number; + /** The "mode" attribute value of the actual HTML input element representing the widget. */ + mode?: string; } /** A textbox widget that enables a user to enter numeric values. */ export class dxNumberBox extends dxTextEditor { @@ -1366,7 +1369,7 @@ declare module DevExpress.ui { constructor(element: Element, options?: dxMultiViewOptions); } export interface dxMapOptions extends WidgetOptions { - /** Specifies whether or not the widget automatically adjusts center and zoom option values when adding a new marker or route. */ + /** Specifies whether or not the widget automatically adjusts center and zoom option values when adding a new marker or route or when creating a widget if it initially contains markers or routes. */ autoAdjust?: boolean; center?: { /** The latitude location displayed in the center of the widget. */ @@ -1502,6 +1505,8 @@ declare module DevExpress.ui { onTitleRendered?: Function; /** A Boolean value specifying whether or not to display the title in the popup window. */ showPopupTitle?: boolean; + /** The template to be used for rendering the widget text field. */ + fieldTemplate?: any; } /** A widget that allows a user to select predefined values from a lookup window. */ export class dxLookup extends dxDropDownList { @@ -1764,6 +1769,10 @@ declare module DevExpress.ui { invalidDateMessage?: string; /** Specifies the message displayed if the specified date is later than the max value or earlier than the min value. */ dateOutOfRangeMessage?: string; + /** The text displayed on the Apply button. */ + applyButtonText?: string; + /** The text displayed on the Cancel button. */ + cancelButtonText?: string; } /** A date box widget. */ export class dxDateBox extends dxDropDownEditor { @@ -2055,6 +2064,10 @@ declare module DevExpress.ui { /** Specifies the number of columns spanned by the item. */ colSpan?: number; } + export interface dxFormEmptyItem extends dxFormItem { + /** Specifies the form item name. */ + name?: string; + } export interface dxFormSimpleItem extends dxFormItem { /** Specifies the path to the formData object field bound to the current form item. */ dataField?: string; @@ -2096,6 +2109,16 @@ declare module DevExpress.ui { alignItemLabels?: boolean; /** Holds an array of form items displayed within the tab. */ items?: Array; + /** Specifies a badge text for the tab. */ + badge?: string; + /** A Boolean value specifying whether or not the tab can respond to user interaction. */ + disabled?: boolean; + /** Specifies the icon to be displayed on the tab. */ + icon?: string; + /** The template to be used for rendering the tab. */ + tabTemplate?: any; + /** The template to be used for rendering the tab content. */ + template?: any; } export interface dxFormTabbedItem extends dxFormItem { /** Holds a configuration object for the dxTabPanel widget used to display the current form item. */ @@ -2126,7 +2149,7 @@ declare module DevExpress.ui { alignItemLabelsInAllGroups?: boolean; /** Specifies whether or not a colon is displayed at the end of form labels. */ showColonAfterLabel?: boolean; - /** Specifies whether or not the required mark is displayed for optional fields. */ + /** Specifies whether or not the required mark is displayed for required fields. */ showRequiredMark?: boolean; /** Specifies whether or not the optional mark is displayed for optional fields. */ showOptionalMark?: boolean; @@ -2134,6 +2157,8 @@ declare module DevExpress.ui { requiredMark?: string; /** The text displayed for optional fields. */ optionalMark?: string; + /** Specifies the message that is shown for end-users a required field value is not specified. */ + requiredMessage?: string; /** Specifies whether or not the total validation summary is displayed on the form. */ showValidationSummary?: boolean; /** Holds an array of form items. */ @@ -2384,7 +2409,7 @@ interface JQuery { dxForm(options: DevExpress.ui.dxForm): JQuery; } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxTileViewOptions extends CollectionWidgetOptions { /** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */ activeStateEnabled?: boolean; @@ -2621,7 +2646,7 @@ interface JQuery { dxDropDownMenu(options: string, ...params: any[]): any; dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery; } -declare module DevExpress.data { +declare namespace DevExpress.data { export interface XmlaStoreOptions { /** The HTTP address to an XMLA OLAP server. */ url?: string; @@ -2629,6 +2654,7 @@ declare module DevExpress.data { catalog?: string; /** The cube name. */ cube?: string; + /** A function used to customize a web request before it is sent. */ beforeSend?: (request: Object) => void; } /** A Store that provides access to an OLAP cube using the XMLA standard. */ @@ -2817,7 +2843,7 @@ declare module DevExpress.data { off(eventName: string, eventHandler: Function): PivotGridDataSource; } } -declare module DevExpress.ui { +declare namespace DevExpress.ui { export interface dxSchedulerOptions extends WidgetOptions { /** Specifies a date displayed on the current scheduler view by default. */ currentDate?: Date; @@ -2910,11 +2936,11 @@ declare module DevExpress.ui { horizontalScrollingEnabled?: boolean; /** Specifies whether a user can switch views using tabs or a drop-down menu. */ useDropDownViewSwitcher?: boolean; - /** Specifies the name of the data source item field that defines the start of the appointment. */ + /** Specifies the name of the data source item field that defines the start of an appointment. */ startDateExpr?: string; - /** Specifies the name of the data source item field that defines the ending of the appointment. */ + /** Specifies the name of the data source item field that defines the ending of an appointment. */ endDateExpr?: string; - /** Specifies the name of the data source item field that holds the subject of the appointment. */ + /** Specifies the name of the data source item field that holds the subject of an appointment. */ textExpr?: string; /** Specifies the name of the data source item field whose value holds the description of the corresponding appointment. */ descriptionExpr?: string; @@ -3088,7 +3114,7 @@ declare module DevExpress.ui { showFirstSubmenuMode?: { /** Specifies the mode name. */ name?: string; - /** Specifies the delay of submenu showing and hiding. */ + /** Specifies the delay in submenu showing and hiding. */ delay?: { /** The time span after which the submenu is shown. */ show?: number; @@ -3162,6 +3188,16 @@ declare module DevExpress.ui { /** Specifies whether or not summaries calculation must be performed on the server side. */ summary?: boolean; } + export interface dxDataGridRow { + /** The data object represented by the row. */ + data: Object; + /** The key of the data object represented by the row. */ + key: any; + /** The visible index of the row. */ + rowIndex: number; + /** The type of the row. */ + rowType: string; + } export interface dxDataGridColumn { /** Specifies the content alignment within column cells. */ alignment?: string; @@ -3634,7 +3670,6 @@ declare module DevExpress.ui { /** A handler for the exporting event. */ onExporting?: (e: { fileName: string; - format: string; cancel: boolean; }) => void; /** A handler for the fileSaving event. */ @@ -4037,7 +4072,6 @@ declare module DevExpress.ui { /** A handler for the exporting event. */ onExporting?: (e: { fileName: string; - format: string; cancel: boolean; }) => void; /** A handler for the fileSaving event. */ @@ -4155,7 +4189,7 @@ interface JQuery { dxScheduler(options: string, ...params: any[]): any; dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery; } -declare module DevExpress.framework { +declare namespace DevExpress.framework { /** An object used to store information on the views displayed in an application. */ export class ViewCache { viewRemoved: JQueryCallback; @@ -4437,7 +4471,7 @@ declare module DevExpress.framework { } } } -declare module DevExpress.viz.core { +declare namespace DevExpress.viz.core { /** * Applies a theme for the entire page with several DevExtreme visualization widgets. * @deprecated Use the DevExpress.viz.currentTheme(theme) method instead. @@ -4673,7 +4707,7 @@ declare module DevExpress.viz.core { svg(): string; } } -declare module DevExpress.viz.charts { +declare namespace DevExpress.viz.charts { /** This section describes the fields and methods that can be used in code to manipulate the Series object. */ export interface BaseSeries { /** Provides information about the state of the series object. */ @@ -5757,6 +5791,12 @@ declare module DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the crosshair labels. */ font?: viz.core.Font; + /** Specifies the format of the values displayed by crosshair labels. */ + format?: string; + /** Specifies a precision for formatted values. */ + precision?: number; + /** Customizes the text displayed by the crosshair labels. */ + customizeText?: (info: { value: any; valueText: string; point: ChartPoint; }) => string; } }; /** Specifies a default pane for the chart's series. */ @@ -5815,6 +5855,12 @@ declare module DevExpress.viz.charts { visible?: boolean; /** Specifies font options for the text of the label that belongs to the horizontal crosshair line. */ font?: viz.core.Font; + /** Specifies the format of the values displayed by crosshair labels. */ + format?: string; + /** Specifies a precision for formatted values. */ + precision?: number; + /** Customizes the text displayed by the crosshair label that accompany the horizontal line. */ + customizeText?: (info: { value: any; valueText: string; point: ChartPoint; }) => string; } } export interface PolarChartTooltip extends BaseChartTooltip { @@ -5910,7 +5956,7 @@ interface JQuery { dxPolarChart(methodName: string, ...params: any[]): any; dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart; } -declare module DevExpress.viz.gauges { +declare namespace DevExpress.viz.gauges { export interface BaseRangeContainer { /** Specifies a range container's background color. */ backgroundColor?: string; @@ -6327,7 +6373,7 @@ interface JQuery { dxBarGauge(methodName: string, ...params: any[]): any; dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge; } -declare module DevExpress.viz.rangeSelector { +declare namespace DevExpress.viz.rangeSelector { export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions { /** Specifies the options for the range selector's background. */ background?: { @@ -6621,7 +6667,7 @@ interface JQuery { dxRangeSelector(methodName: string, ...params: any[]): any; dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector; } -declare module DevExpress.viz.map { +declare namespace DevExpress.viz.map { /** This section describes the fields and methods that can be used in code to manipulate the Layer object. */ export interface MapLayer { /** The name of the layer. */ @@ -7260,7 +7306,7 @@ interface JQuery { dxVectorMap(methodName: string, ...params: any[]): any; dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap; } -declare module DevExpress.viz.sparklines { +declare namespace DevExpress.viz.sparklines { export interface SparklineTooltip extends viz.core.Tooltip { /** * Specifies how a tooltip is horizontally aligned relative to the graph. @@ -7380,4 +7426,4 @@ interface JQuery { dxSparkline(options?: DevExpress.viz.sparklines.dxSparklineOptions): JQuery; dxSparkline(methodName: string, ...params: any[]): any; dxSparkline(methodName: "instance"): DevExpress.viz.sparklines.dxSparkline; -} \ No newline at end of file +} diff --git a/dexie/dexie-tests.ts b/dexie/dexie-tests.ts index 79c5ff36a9..10597dfd4b 100644 --- a/dexie/dexie-tests.ts +++ b/dexie/dexie-tests.ts @@ -1,256 +1,25 @@ -/// - -import Dexie = require("dexie"); - -module Utils { - - export class Console { - textarea: HTMLTextAreaElement; - - constructor() { - this.textarea = document.createElement('textarea'); - } - - log(txt: string, type?: string) { - if (type) this.textarea.value += type + " "; - this.textarea.value += txt + "\n"; - } - error = function (txt: string) { - this.log(txt, "ERROR!"); - } - } +import Dexie from "./dexie"; +interface IFriend { + id?: number, + name?: string, + age?: number } -module AppDb { - - export class AppDatabase extends Dexie { - - contacts: Dexie.Table; - emails: Dexie.Table; - phones: Dexie.Table; - - constructor() { - - super("MyTypeScriptAppDb"); - - var db = this; - - // - // Define tables and indexes - // - db.version(1).stores({ - contacts: '++id, first, last', - emails: '++id, contactId, type, email', - phones: '++id, contactId, type, phone', - }); - - // Let's physically map Contact class to contacts table. - // This will make it possible to call loadEmailsAndPhones() - // directly on retrieved database objects. - db.contacts.mapToClass(Contact); - } - } - - /* Just for code completion and compilation - defines - * the interface of objects stored in the emails table. - */ - export interface IEmailAddress { - id?: number; - contactId: number; - type: string; - email: string; - } - - /* Just for code completion and compilation - defines - * the interface of objects stored in the phones table. - */ - export interface IPhoneNumber { - id?: number; - contactId: number; - type: string; - phone: string; - } - - /* This is a 'physical' class that is mapped to - * the contacts table. We can have methods on it that - * we could call on retrieved database objects. - */ - export class Contact { - id: number; - first: string; - last: string; - emails: IEmailAddress[]; - phones: IPhoneNumber[]; - - constructor(first: string, last: string, id?: number) { - this.first = first; - this.last = last; - if (id) this.id = id; - } - - loadEmailsAndPhones() : Dexie.Promise { - return Dexie.Promise.all( - db.emails - .where('contactId').equals(this.id) - .toArray(emails => this.emails = emails) - , - db.phones - .where('contactId').equals(this.id) - .toArray(phones => this.phones = phones) - - ).then(() => this); - } - - save() { - return db.transaction('rw', db.contacts, db.emails, db.phones, () => { - Dexie.Promise.all( - // Save existing arrays - Dexie.Promise.all(this.emails.map(email => db.emails.put(email))), - Dexie.Promise.all(this.phones.map(phone => db.phones.put(phone)))) - .then(results => { - // Remove items from DB that is was not saved here: - var emailIds = results[0], // array of resulting primary keys - phoneIds = results[1]; // array of resulting primary keys - - db.emails.where('contactId').equals(this.id) - .and(email => emailIds.indexOf(email.id) === -1) - .delete(); - - db.phones.where('contactId').equals(this.id) - .and(phone => phoneIds.indexOf(phone.id) === -1) - .delete(); - - // At last, save our own properties. - // (Must not do put(this) because we would get - // reduntant emails/phones arrays saved into db) - db.contacts.put( - new Contact(this.first, this.last, this.id)) - .then(id => this.id = id); - }); - }); - } - } - - export var db = new AppDatabase(); - db.open(); -} - - -import Console = Utils.Console; -import db = AppDb.db; - -document.addEventListener('DOMContentLoaded', () => { - - // Initialize our Console widget - it will log browser window. - var console = new Console(); - document.getElementById('consoleArea').appendChild(console.textarea); - - // Test it: - console.log("Hello world!"); - - // Make sure to never miss any unexpected error: - Dexie.Promise.on.error.subscribe(e => { - // Log any uncatched error: - console.error(e); - }); - - // - // Let's clear and re-seed the database: - // - clearDatabase() - .then(seedDatabase) - .then(playALittle_add_phone_to_adam) - .then(printContacts); - - function clearDatabase() { - console.log("Clearing database..."); - return Dexie.Promise.all( - db.contacts.clear(), - db.emails.clear(), - db.phones.clear()); - } - - function seedDatabase() { - console.log("Seeding database with some contacts..."); - return db.transaction('rw', db.contacts, db.emails, db.phones, () => { - // Populate a contact - db.contacts.add(new AppDb.Contact('Arnold', 'Fitzgerald')).then(id => { - // Populate some emails and phone numbers for the contact - db.emails.add({ contactId: id, type: 'home', email: 'arnold@email.com' }); - db.emails.add({ contactId: id, type: 'work', email: 'arnold@abc.com' }); - db.phones.add({ contactId: id, type: 'home', phone: '12345678' }); - db.phones.add({ contactId: id, type: 'work', phone: '987654321' }); - }); - - // ... and another one... - db.contacts.add(new AppDb.Contact('Adam', 'Tensta')).then(id => { - // Populate some emails and phone numbers for the contact - db.emails.add({ contactId: id, type: 'home', email: 'adam@tensta.se' }); - db.phones.add({ contactId: id, type: 'work', phone: '88888888' }); - }); +class MyDB extends Dexie { + friends: Dexie.Table; + constructor() { + super("MyDB"); + this.version(1).stores({ + friends: "++id,name,age" }); } +} - function playALittle_add_phone_to_adam() { - // Now, just to examplify how to use the save() method as an alternative - // to db.phones.add(), we will add yet another phone number - // to an existing contact and then re-save it: - console.log("Playing a little: adding another phone entry for Adam Tensta..."); - return db.contacts - .where('last').equals('Tensta').first(c => c.loadEmailsAndPhones()) - .then(contact => { - // Also add another phone number to Adam Tensta: - contact.phones.push({ - contactId: contact.id, - type: 'custom', - phone: '112' - }); - contact.save(); - }); - } +var db = new MyDB(); - function printContacts() { - - // Now we're gonna list all contacts starting with letter 'A' - // and print them out. - // For each contact, also resolve its collection of - // phone number entries and email addresses by reverse-quering - // the foreign tables. - - // For atomicity and speed, use a single transaction for the - // queries to make: - db.transaction('r', [db.contacts, db.phones, db.emails], () => { - - // Query some contacts - return db.contacts - .where('first').startsWithIgnoreCase('a') - .sortBy('id') - .then(contacts => - - // Resolve array properties 'emails' and 'phones' - // on each and every contact: - Dexie.Promise.all( - contacts.map(contact => - contact.loadEmailsAndPhones())) - ); - - }).then(contacts => { - - // Print result - console.log("Database contains the following contacts:"); - contacts.forEach(contact => { - console.log(contact.id + ". " + contact.first + " " + contact.last); - console.log(" Phone numbers: "); - contact.phones.forEach(phone => { - console.log(" " + phone.phone + "(" + phone.type + ")"); - }); - console.log(" Emails: "); - contact.emails.forEach(email => { - console.log(" " + email.email + "(" + email.type + ")"); - }); - }); - }); - } +db.friends.add({name: "Kalle", age: 23}).then(()=>{ + db.friends.where('age').below(30).count(count => { + console.log("Num yound friends: " + count); + }); }); - diff --git a/dexie/dexie.d.ts b/dexie/dexie.d.ts index 2220bac56d..f31ec0db52 100644 --- a/dexie/dexie.d.ts +++ b/dexie/dexie.d.ts @@ -1,7 +1,7 @@ -// Type definitions for Dexie v1.2 +// Type definitions for Dexie v1.3.1 // Project: https://github.com/dfahlander/Dexie.js // Definitions by: David Fahlander -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface Thenable { then(onFulfilled: (value: R) => Thenable, onRejected: (error: any) => Thenable): Thenable; @@ -10,6 +10,8 @@ interface Thenable { then(onFulfilled?: (value: R) => U, onRejected?: (error: any) => U): Thenable; } +declare type IndexableType = string | number | Date | Array; + declare class Dexie { constructor(databaseName: string); @@ -38,7 +40,7 @@ declare class Dexie { static deepClone(obj: Object): Object; - version(versionNumber: number): Dexie.Version; + version(versionNumber: Number): Dexie.Version on: { (eventName: string, subscriber: () => any): void; @@ -48,7 +50,7 @@ declare class Dexie { populate: Dexie.DexieEvent; blocked: Dexie.DexieEvent; versionchange: Dexie.DexieVersionChangeEvent; - }; + } open(): Dexie.Promise; @@ -89,7 +91,7 @@ declare class Dexie { vip(scopeFunction: () => U): U; } -declare module Dexie { +declare namespace Dexie { class Promise implements Thenable { constructor(callback: (resolve: (value?: Thenable) => void, reject: (error?: any) => void) => void); @@ -104,18 +106,24 @@ declare module Dexie { then(onFulfilled?: (value: R) => U, onRejected?: (error: any) => U): Promise; - catch(onRejected: (error: any) => Promise): Promise; + catch(onRejected: (error: any) => Thenable): Promise; + + catch(onRejected: (error: any) => U): Promise; catch(ExceptionType: Function, onRejected: (error: any) => Promise): Promise; + catch(ExceptionType: Function, onRejected: (error: any) => U): Promise; + catch(errorName: string, onRejected: (error: any) => Promise): Promise; + catch(errorName: string, onRejected: (error: any) => U): Promise; + finally(onFinally: () => any): Promise; onuncatched: () => any; } - module Promise { + namespace Promise { function resolve(value?: Thenable): Promise; function resolve(value?: R): Promise; @@ -229,42 +237,26 @@ declare module Dexie { } interface WhereClause { - above(key: number): Collection; - above(key: string): Collection; - above(key: Date): Collection; - above(key: Array): Collection; - aboveOrEqual(key: number): Collection; - aboveOrEqual(key: string): Collection; - aboveOrEqual(key: Date): Collection; - aboveOrEqual(key: Array): Collection; - anyOf(keys: Array): Collection; - anyOf(...keys: any[]): Collection; - below(key: number): Collection; - below(key: string): Collection; - below(key: Date): Collection; - below(key: Array): Collection; - belowOrEqual(key: number): Collection; - belowOrEqual(key: string): Collection; - belowOrEqual(key: Date): Collection; - belowOrEqual(key: Array): Collection; - between(lower: number, upper: number, includeLower?: boolean, includeUpper?: boolean): Collection; - between(lower: string, upper: string, includeLower?: boolean, includeUpper?: boolean): Collection; - between(lower: Date, upper: Date, includeLower?: boolean, includeUpper?: boolean): Collection; - between(lower: Array, upper: Array, includeLower?: boolean, includeUpper?: boolean): Collection; - equals(key: number): Collection; - equals(key: string): Collection; - equals(key: Date): Collection; - equals(key: Array): Collection; + above(key: IndexableType): Collection; + aboveOrEqual(key: IndexableType): Collection; + anyOf(keys: IndexableType[]): Collection; + anyOf(...keys: IndexableType[]): Collection; + anyOfIgnoreCase(keys: string[]): Collection; + anyOfIgnoreCase(...keys: string[]): Collection; + below(key: IndexableType): Collection; + belowOrEqual(key: IndexableType): Collection; + between(lower: IndexableType, upper: IndexableType, includeLower?: boolean, includeUpper?: boolean): Collection; + equals(key: IndexableType): Collection; equalsIgnoreCase(key: string): Collection; + inAnyRange(ranges: Array): Collection; startsWith(key: string): Collection; startsWithAnyOf(prefixes: string[]): Collection; startsWithAnyOf(...prefixes: string[]): Collection; startsWithIgnoreCase(key: string): Collection; - noneOf(keys: Array): Collection; - notEqual(key: number): Collection; - notEqual(key: string): Collection; - notEqual(key: Date): Collection; - notEqual(key: Array): Collection; + startsWithAnyOfIgnoreCase(prefixes: string[]): Collection; + startsWithAnyOfIgnoreCase(...prefixes: string[]): Collection; + noneOf(keys: Array): Collection; + notEqual(key: IndexableType): Collection; } interface Collection { @@ -323,6 +315,5 @@ declare module Dexie { } } -declare module 'dexie' { - export = Dexie; -} +export default Dexie; + diff --git a/dexie/tsconfig.json b/dexie/tsconfig.json new file mode 100644 index 0000000000..4ec77382dc --- /dev/null +++ b/dexie/tsconfig.json @@ -0,0 +1,10 @@ +{ + "compilerOptions": { + "module": "es6", + "target": "es6", + "noImplicitAny": true, + "removeComments": false, + "sourceMap": true, + "outDir": "out/ts" + } +} \ No newline at end of file diff --git a/dhtmlxgantt/dhtmlxgantt.d.ts b/dhtmlxgantt/dhtmlxgantt.d.ts index fbdba35432..f9ec6808cd 100644 --- a/dhtmlxgantt/dhtmlxgantt.d.ts +++ b/dhtmlxgantt/dhtmlxgantt.d.ts @@ -1,7 +1,7 @@ // Type definitions for dhtmlxGantt 2.0 // Project: http://dhtmlx.com/docs/products/dhtmlxGantt // Definitions by: Maksim Kozhukh -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface GanttTemplates{ diff --git a/dhtmlxscheduler/dhtmlxscheduler.d.ts b/dhtmlxscheduler/dhtmlxscheduler.d.ts index 78537e3935..42bd819e4c 100644 --- a/dhtmlxscheduler/dhtmlxscheduler.d.ts +++ b/dhtmlxscheduler/dhtmlxscheduler.d.ts @@ -1,7 +1,7 @@ // Type definitions for dhtmlxScheduler 4.0 // Project: http://dhtmlx.com/docs/products/dhtmlxScheduler // Definitions by: Maksim Kozhukh -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface SchedulerTemplates{ diff --git a/di-lite/di-lite-tests.ts b/di-lite/di-lite-tests.ts index 8d6bfb777b..13bc9e3ddb 100644 --- a/di-lite/di-lite-tests.ts +++ b/di-lite/di-lite-tests.ts @@ -23,7 +23,7 @@ function doTest(test: (ctx: any, ...obj: Dependency[]) => void) { test(ctx, A, B, C); } -module BasicWiring { +namespace BasicWiring { doTest(ctx => { // initialize di container so all singleton(default) objects will be wired at this stage ctx.initialize(); @@ -37,7 +37,7 @@ module BasicWiring { }); } -module WiringWithAssignment { +namespace WiringWithAssignment { doTest((ctx, A) => { A.dependencies = "bee=b, c"; // mix explicit and implicit assignment @@ -49,7 +49,7 @@ module WiringWithAssignment { }); } -module PassiveDependencyResolution { +namespace PassiveDependencyResolution { doTest((ctx, A) => { ctx.register("a", A); ctx.get("a"); // this triggers the dependency resolution for "a" alone @@ -57,7 +57,7 @@ module PassiveDependencyResolution { }); } -module PrototypeStrategy { +namespace PrototypeStrategy { doTest((ctx, A) => { ctx.register("prototype", A).strategy(di.strategy.proto); ctx.get("prototype") === ctx.get("prototype"); // false @@ -65,7 +65,7 @@ module PrototypeStrategy { }); } -module PassingConstructorArguments { +namespace PassingConstructorArguments { class ProfileView { } doTest(ctx => { @@ -75,7 +75,7 @@ module PassingConstructorArguments { }); } -module CyclicalDependency { +namespace CyclicalDependency { doTest((ctx, A, B) => { A.dependencies = "b"; B.dependencies = "a"; @@ -92,7 +92,7 @@ module CyclicalDependency { }); } -module FunctionalObject { +namespace FunctionalObject { doTest(ctx => { var FuncObject = (spec: any) => { var that = {}; @@ -114,7 +114,7 @@ module FunctionalObject { }); } -module RuntimeDependenciesOverride { +namespace RuntimeDependenciesOverride { doTest((ctx, A) => { ctx.register("a", A) .dependencies("bee=b"); // dependencies specified here will take precedence @@ -122,7 +122,7 @@ module RuntimeDependenciesOverride { }); } -module CreateYourOwn { +namespace CreateYourOwn { class Backbone { history: History = new History(); } diff --git a/di-lite/di-lite.d.ts b/di-lite/di-lite.d.ts index 356f70c7bc..bda842e4d0 100644 --- a/di-lite/di-lite.d.ts +++ b/di-lite/di-lite.d.ts @@ -1,9 +1,9 @@ // Type definitions for di-lite 0.3.3 // Project: https://github.com/NickQiZhu/di.js // Definitions by: Timothy Morris -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module DiLite { +declare namespace DiLite { interface DiLiteStatic { version: string; createContext(): CreateContext; diff --git a/diff-match-patch/diff-match-patch.d.ts b/diff-match-patch/diff-match-patch.d.ts index 63bf7eaa07..028fe9d65c 100644 --- a/diff-match-patch/diff-match-patch.d.ts +++ b/diff-match-patch/diff-match-patch.d.ts @@ -1,7 +1,7 @@ // Type definitions for diff-match-patch v1.0.0 // Project: https://www.npmjs.com/package/diff-match-patch // Definitions by: Asana -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare module "diff-match-patch" { type Diff = [number, string]; diff --git a/diff/diff.d.ts b/diff/diff.d.ts index f5c2cc48f8..b1f947300b 100644 --- a/diff/diff.d.ts +++ b/diff/diff.d.ts @@ -1,11 +1,12 @@ // Type definitions for diff // Project: https://github.com/kpdecker/jsdiff // Definitions by: vvakame -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module JsDiff { +declare namespace JsDiff { interface IDiffResult { value: string; + count?: number; added?: boolean; removed?: boolean; } diff --git a/docCookies/docCookies-tests.ts b/docCookies/docCookies-tests.ts index f81346b9ed..49205b6fb1 100644 --- a/docCookies/docCookies-tests.ts +++ b/docCookies/docCookies-tests.ts @@ -1,7 +1,7 @@ // Type definitions for docCookies // Project: https://developer.mozilla.org/en-US/docs/Web/API/document.cookie // Definitions by: Jon Egerton -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/docCookies/docCookies.d.ts b/docCookies/docCookies.d.ts index e7ecf14242..c8f87bffb0 100644 --- a/docCookies/docCookies.d.ts +++ b/docCookies/docCookies.d.ts @@ -1,7 +1,7 @@ // Type definitions for docCookies // Project: https://developer.mozilla.org/en-US/docs/Web/API/document.cookie // Definitions by: Jon Egerton -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface docCookies { diff --git a/dock-spawn/dock-spawn.d.ts b/dock-spawn/dock-spawn.d.ts index 0c9d8fb4d8..df20eb632a 100644 --- a/dock-spawn/dock-spawn.d.ts +++ b/dock-spawn/dock-spawn.d.ts @@ -2,9 +2,9 @@ // Project: http://dockspawn.com // https://github.com/coderespawn/dock-spawn // Definitions by: Drew Noakes -// Definitions: https://github.com/borisyankov/DefinitelyTyped/dock-spawn +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/dock-spawn -declare module dockspawn +declare namespace dockspawn { /** * Dock manager manages all the dock panels in a hierarchy, similar to Visual Studio. diff --git a/docopt/docopt.d.ts b/docopt/docopt.d.ts index ea2330a193..8976c6fe36 100644 --- a/docopt/docopt.d.ts +++ b/docopt/docopt.d.ts @@ -1,7 +1,7 @@ // Type definitions for Docopt v0.6.2 // Project: http://docopt.org/ // Definitions by: Giovanni Bassi -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped interface DocoptOption { /** is an optional argument vector. It defaults to the arguments passed to your program (process.argv[2..]). You can also supply it with an array of strings, as with process.argv. For example: ['--verbose', '-o', 'hai.txt'] */ diff --git a/documentdb-server/documentdb-server.d.ts b/documentdb-server/documentdb-server.d.ts index e878960b1c..4afc0da96e 100644 --- a/documentdb-server/documentdb-server.d.ts +++ b/documentdb-server/documentdb-server.d.ts @@ -1,7 +1,7 @@ // Type definitions for DocumentDB server side JavaScript SDK // Project: http://dl.windowsazure.com/documentDB/jsserverdocs // Definitions by: François Nguyen -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /** The Context object provides access to all operations that can be performed on DocumentDB data, as well as access to the request and response objects. */ interface IContext { diff --git a/documentdb/documentdb.d.ts b/documentdb/documentdb.d.ts index 01cc493425..1d901179a6 100644 --- a/documentdb/documentdb.d.ts +++ b/documentdb/documentdb.d.ts @@ -1,7 +1,7 @@ // Type definitions for DocumentDB // Project: https://github.com/Azure/azure-documentdb-node // Definitions by: Noel Abrahams , Brett Gutstein -// Definitions: https://github.com/borisyankov/DefinitelyTyped/documentdb +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/documentdb declare module 'documentdb' { diff --git a/dojo/dijit.d.ts b/dojo/dijit.d.ts index 94f64d0dbd..8d3e99b6b5 100644 --- a/dojo/dijit.d.ts +++ b/dojo/dijit.d.ts @@ -1,7 +1,7 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// diff --git a/dojo/doh.d.ts b/dojo/doh.d.ts index eab1a6b195..c0a7c10629 100644 --- a/dojo/doh.d.ts +++ b/dojo/doh.d.ts @@ -1,108 +1,108 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module doh { - module plugins { - module alwaysAudio { +declare namespace doh { + namespace plugins { + namespace alwaysAudio { } - module hello { + namespace hello { } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/plugins/remoteRobot.html * * Plugin that bridges the doh.robot and WebDriver APIs. - * + * */ interface remoteRobot { } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/plugins/android-webdriver-robot.html * - * + * */ interface android_webdriver_robot { /** - * - * @param sec - * @param charCode - * @param keyCode - * @param delay + * + * @param sec + * @param charCode + * @param keyCode + * @param delay */ downKey(sec: any, charCode: any, keyCode: any, delay: any): void; /** - * - * @param sec - * @param x - * @param y - * @param delay - * @param duration + * + * @param sec + * @param x + * @param y + * @param delay + * @param duration */ moveMouse(sec: any, x: any, y: any, delay: any, duration: any): void; /** - * - * @param sec - * @param left - * @param middle - * @param right - * @param delay + * + * @param sec + * @param left + * @param middle + * @param right + * @param delay */ pressMouse(sec: any, left: any, middle: any, right: any, delay: any): void; /** - * - * @param sec - * @param left - * @param middle - * @param right - * @param delay + * + * @param sec + * @param left + * @param middle + * @param right + * @param delay */ releaseMouse(sec: any, left: any, middle: any, right: any, delay: any): void; /** - * - * @param sec - * @param docScreenX - * @param docScreenY - * @param width - * @param height + * + * @param sec + * @param docScreenX + * @param docScreenY + * @param width + * @param height */ setDocumentBounds(sec: any, docScreenX: any, docScreenY: any, width: any, height: any): void; /** - * - * @param sec - * @param charCode - * @param keyCode - * @param alt - * @param ctrl - * @param shift - * @param meta - * @param delay - * @param async + * + * @param sec + * @param charCode + * @param keyCode + * @param alt + * @param ctrl + * @param shift + * @param meta + * @param delay + * @param async */ typeKey(sec: any, charCode: any, keyCode: any, alt: any, ctrl: any, shift: any, meta: any, delay: any, async: any): void; /** - * - * @param chars - * @param delay - * @param duration + * + * @param chars + * @param delay + * @param duration */ typeKeys(chars: String, delay: number, duration: number): void; /** - * - * @param chars - * @param delay - * @param duration + * + * @param chars + * @param delay + * @param duration */ typeKeys(chars: number, delay: number, duration: number): void; /** - * - * @param sec - * @param charCode - * @param keyCode - * @param delay + * + * @param sec + * @param charCode + * @param keyCode + * @param delay */ upKey(sec: any, charCode: any, keyCode: any, delay: any): void; } @@ -113,7 +113,7 @@ declare module doh { * * Module for running DOH tests in node (as opposed to a browser). * Augments return value from doh/runner. - * + * */ interface _nodeRunner { } @@ -122,26 +122,26 @@ declare module doh { * * Module for running DOH tests in rhino (as opposed to a browser). * Augments return value from doh/runner. - * + * */ interface _rhinoRunner { } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/_parseURLargs.html * - * + * */ interface _parseURLargs { /** - * + * */ isDebug: boolean; /** - * + * */ noGlobals: boolean; /** - * + * */ scopeMap: any[]; } @@ -149,250 +149,250 @@ declare module doh { * Permalink: http://dojotoolkit.org/api/1.9/doh/_browserRunner.html * * Functions for registering and running automated tests. - * + * */ interface _browserRunner { /** - * + * */ debug: Object; /** - * + * */ error: Object; /** - * + * */ isBrowser: boolean; /** - * + * */ registerUrl: Object; /** - * + * */ robot: Object; /** * are the passed expected and actual objects/values deeply * equivalent? - * - * @param expected - * @param actual - * @param hint Optional - * @param doNotThrow + * + * @param expected + * @param actual + * @param hint Optional + * @param doNotThrow */ assertEqual(expected: Object, actual: Object, hint: String, doNotThrow: any): void; /** * Test for a certain error to be thrown by the given function. - * - * @param expectedError - * @param scope - * @param functionName - * @param args - * @param hint Optional + * + * @param expectedError + * @param scope + * @param functionName + * @param args + * @param hint Optional */ assertError(expectedError: Object, scope: Object, functionName: String, args: any[], hint: String): void; /** * is the passed item "falsey"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ assertFalse(condition: Object, hint: String): void; /** * are the passed notexpected and actual objects/values deeply * not equivalent? - * - * @param notExpected - * @param actual - * @param hint Optional + * + * @param notExpected + * @param actual + * @param hint Optional */ assertNotEqual(notExpected: Object, actual: Object, hint: String): void; /** * is the passed item "truthy"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ assertTrue(condition: Object, hint: String): void; /** - * - * @param canceller + * + * @param canceller */ Deferred(canceller: any): void; /** * Test for a certain error to be thrown by the given function. - * - * @param expectedError - * @param scope - * @param functionName - * @param args - * @param hint Optional + * + * @param expectedError + * @param scope + * @param functionName + * @param args + * @param hint Optional */ e(expectedError: Object, scope: Object, functionName: String, args: any[], hint: String): void; /** * is the passed item "falsey"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ f(condition: Object, hint: String): void; /** * are the passed expected and actual objects/values deeply * equivalent? - * - * @param expected - * @param actual - * @param hint Optional - * @param doNotThrow + * + * @param expected + * @param actual + * @param hint Optional + * @param doNotThrow */ is(expected: Object, actual: Object, hint: String, doNotThrow: any): void; /** * are the passed notexpected and actual objects/values deeply * not equivalent? - * - * @param notExpected - * @param actual - * @param hint Optional + * + * @param notExpected + * @param actual + * @param hint Optional */ isNot(notExpected: Object, actual: Object, hint: String): void; /** * halt test run. Can be resumed. - * + * */ pause(): void; /** - * - * @param a1 - * @param a2 - * @param a3 - * @param a4 - * @param a5 + * + * @param a1 + * @param a2 + * @param a3 + * @param a4 + * @param a5 */ register(a1: any, a2: any, a3: any, a4: any, a5: any): void; /** * Deprecated. Won't work unless you manually load dojox.testing.DocTest, and likely not even then. * Gets all the doctests from the given module and register each of them as a single test case here. - * - * @param module dojox/dgauges/components/utils + * + * @param module dojox/dgauges/components/utils */ registerDocTests(module: any): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: any[], setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: Function, setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: Object, setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: any[], type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: Object, type: String): void; /** * Deprecated. Use doh.register(group, ns) instead - * - * @param group - * @param ns + * + * @param group + * @param ns */ registerTestNs(group: String, ns: Object): void; /** * Deprecated. Use doh.register(group/type, testArr) instead - * - * @param group - * @param testArr - * @param type + * + * @param group + * @param testArr + * @param type */ registerTests(group: String, testArr: any[], type: String): void; /** * Adds a test type and associates a function used to initialize each test of the given type - * - * @param name The name of the type. - * @param initProc Type specific test initializer; called after the test object is created. + * + * @param name The name of the type. + * @param initProc Type specific test initializer; called after the test object is created. */ registerTestType(name: String, initProc: Function): void; /** - * + * */ run(): void; /** * runs the specified test group - * - * @param groupName - * @param idx + * + * @param groupName + * @param idx */ runGroup(groupName: String, idx: number): void; /** - * + * */ runOnLoad(): void; /** - * + * */ showLogPage(): void; /** - * + * */ showPerfTestsPage(): void; /** - * + * */ showTestPage(): void; /** * is the passed item "truthy"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ t(condition: Object, hint: String): void; /** - * + * */ togglePaused(): void; /** - * + * */ toggleRunAll(): void; } @@ -400,77 +400,77 @@ declare module doh { /** * Permalink: http://dojotoolkit.org/api/1.9/doh/_browserRunner._groups.html * - * + * */ interface _groups { } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/_browserRunner._testTypes.html * - * + * */ interface _testTypes { /** - * - * @param group - * @param tObj - * @param type + * + * @param group + * @param tObj + * @param type */ perf(group: any, tObj: any, type: any): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/_browserRunner.robot.html * - * + * */ interface robot { /** - * + * */ doc: Object; /** - * + * */ mouseWheelSize: number; /** - * + * */ window: Object; /** * Opens the application at the specified URL for testing, redirecting dojo to point to the application * environment instead of the test environment. - * - * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. + * + * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. */ initRobot(url: String): void; /** * Holds down a single key, like SHIFT or 'a'. * Holds down a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ keyDown(charOrCode: number, delay: number): void; /** * Types a key combination, like SHIFT-TAB. * Types a key combination, like SHIFT-TAB. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta - * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta + * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. */ keyPress(charOrCode: number, delay: number, modifiers: Object, asynchronous: boolean): void; /** * Releases a single key, like SHIFT or 'a'. * Releases a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ keyUp(charOrCode: number, delay: number): void; /** - * + * */ killRobot(): void; /** @@ -478,19 +478,19 @@ declare module doh { * See robot.mousePress for more info. * Convenience function to do a press/release. * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional + * + * @param buttons + * @param delay Optional */ mouseClick(buttons: Object, delay: number): void; /** * Moves the mouse to the specified x,y offset relative to the viewport. - * - * @param x x offset relative to the viewport, in pixels, to move the mouse. - * @param y y offset relative to the viewport, in pixels, to move the mouse. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. - * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) + * + * @param x x offset relative to the viewport, in pixels, to move the mouse. + * @param y y offset relative to the viewport, in pixels, to move the mouse. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. + * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) */ mouseMove(x: number, y: number, delay: number, duration: number, absolute: boolean): void; /** @@ -498,12 +498,12 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: String, delay: number, duration: number, offsetX: number, offsetY: number): void; /** @@ -511,12 +511,12 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: HTMLElement, delay: number, duration: number, offsetX: number, offsetY: number): void; /** @@ -524,23 +524,23 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: Function, delay: number, duration: number, offsetX: number, offsetY: number): void; /** * Move the mouse from the current position to the specified point. * Delays reading contents point until queued command starts running. * See mouseMove() for details. - * - * @param point x, y position relative to viewport, or if absolute == true, to document - * @param delay Optional - * @param duration Optional - * @param absolute + * + * @param point x, y position relative to viewport, or if absolute == true, to document + * @param delay Optional + * @param duration Optional + * @param absolute */ mouseMoveTo(point: Object, delay: number, duration: number, absolute: boolean): void; /** @@ -548,9 +548,9 @@ declare module doh { * Presses the mouse buttons you pass as true. * Example: to press the left mouse button, pass {left: true}. * Mouse buttons you don't specify keep their previous pressed state. - * - * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ mousePress(buttons: Object, delay: number): void; /** @@ -559,9 +559,9 @@ declare module doh { * Example: to release the left mouse button, pass {left: true}. * Mouse buttons you don't specify keep their previous pressed state. * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional + * + * @param buttons + * @param delay Optional */ mouseRelease(buttons: Object, delay: number): void; /** @@ -572,77 +572,77 @@ declare module doh { * Note: this will all happen in one event. * Warning: the size of one mouse wheel notch is an OS setting. * You can access this size from robot.mouseWheelSize - * - * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. + * + * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. */ mouseWheel(wheelAmt: number, delay: number, duration: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: String, delay: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: HTMLElement, delay: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: Function, delay: number): void; /** * Defer an action by adding it to the robot's incrementally delayed queue of actions to execute. - * - * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalDelay to wait after firing. + * + * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalDelay to wait after firing. */ sequence(f: Function, delay: number, duration: number): void; /** * Set clipboard content. * Set data as clipboard content, overriding anything already there. The * data will be put to the clipboard using the given format. - * - * @param data New clipboard content to set - * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. + * + * @param data New clipboard content to set + * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. */ setClipboard(data: String, format: String): void; /** - * + * */ startRobot(): any; /** * Types a string of characters in order, or types a dojo.keys.* constant. * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. */ typeKeys(chars: String, delay: number, duration: number): void; /** * Types a string of characters in order, or types a dojo.keys.* constant. * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. */ typeKeys(chars: number, delay: number, duration: number): void; /** * Notifies DOH that the doh.robot is about to make a page change in the application it is driving, * returning a doh.Deferred object the user should return in their runTest function as part of a DOH test. - * - * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. + * + * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. */ waitForPageToLoad(submitActions: Function): any; } @@ -652,328 +652,328 @@ declare module doh { * Permalink: http://dojotoolkit.org/api/1.9/doh/main.html * * Functions for registering and running automated tests. - * + * */ interface main { /** - * + * */ debug: Object; /** - * + * */ error: Object; /** - * + * */ isBrowser: boolean; /** - * + * */ registerUrl: Object; /** - * + * */ robot: Object; /** * are the passed expected and actual objects/values deeply * equivalent? - * - * @param expected - * @param actual - * @param hint Optional - * @param doNotThrow + * + * @param expected + * @param actual + * @param hint Optional + * @param doNotThrow */ assertEqual(expected: Object, actual: Object, hint: String, doNotThrow: any): void; /** * Test for a certain error to be thrown by the given function. - * - * @param expectedError - * @param scope - * @param functionName - * @param args - * @param hint Optional + * + * @param expectedError + * @param scope + * @param functionName + * @param args + * @param hint Optional */ assertError(expectedError: Object, scope: Object, functionName: String, args: any[], hint: String): void; /** * is the passed item "falsey"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ assertFalse(condition: Object, hint: String): void; /** * are the passed notexpected and actual objects/values deeply * not equivalent? - * - * @param notExpected - * @param actual - * @param hint Optional + * + * @param notExpected + * @param actual + * @param hint Optional */ assertNotEqual(notExpected: Object, actual: Object, hint: String): void; /** * is the passed item "truthy"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ assertTrue(condition: Object, hint: String): void; /** - * - * @param canceller + * + * @param canceller */ Deferred(canceller: any): void; /** * Test for a certain error to be thrown by the given function. - * - * @param expectedError - * @param scope - * @param functionName - * @param args - * @param hint Optional + * + * @param expectedError + * @param scope + * @param functionName + * @param args + * @param hint Optional */ e(expectedError: Object, scope: Object, functionName: String, args: any[], hint: String): void; /** * is the passed item "falsey"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ f(condition: Object, hint: String): void; /** * are the passed expected and actual objects/values deeply * equivalent? - * - * @param expected - * @param actual - * @param hint Optional - * @param doNotThrow + * + * @param expected + * @param actual + * @param hint Optional + * @param doNotThrow */ is(expected: Object, actual: Object, hint: String, doNotThrow: any): void; /** * are the passed notexpected and actual objects/values deeply * not equivalent? - * - * @param notExpected - * @param actual - * @param hint Optional + * + * @param notExpected + * @param actual + * @param hint Optional */ isNot(notExpected: Object, actual: Object, hint: String): void; /** * halt test run. Can be resumed. - * + * */ pause(): void; /** - * - * @param a1 - * @param a2 - * @param a3 - * @param a4 - * @param a5 + * + * @param a1 + * @param a2 + * @param a3 + * @param a4 + * @param a5 */ register(a1: any, a2: any, a3: any, a4: any, a5: any): void; /** * Deprecated. Won't work unless you manually load dojox.testing.DocTest, and likely not even then. * Gets all the doctests from the given module and register each of them as a single test case here. - * - * @param module dojox/dgauges/components/utils + * + * @param module dojox/dgauges/components/utils */ registerDocTests(module: any): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: any[], setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: Function, setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: Object, setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: any[], type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: Object, type: String): void; /** * Deprecated. Use doh.register(group, ns) instead - * - * @param group - * @param ns + * + * @param group + * @param ns */ registerTestNs(group: String, ns: Object): void; /** * Deprecated. Use doh.register(group/type, testArr) instead - * - * @param group - * @param testArr - * @param type + * + * @param group + * @param testArr + * @param type */ registerTests(group: String, testArr: any[], type: String): void; /** * Adds a test type and associates a function used to initialize each test of the given type - * - * @param name The name of the type. - * @param initProc Type specific test initializer; called after the test object is created. + * + * @param name The name of the type. + * @param initProc Type specific test initializer; called after the test object is created. */ registerTestType(name: String, initProc: Function): void; /** - * + * */ run(): void; /** * runs the specified test group - * - * @param groupName - * @param idx + * + * @param groupName + * @param idx */ runGroup(groupName: String, idx: number): void; /** - * + * */ runOnLoad(): void; /** - * + * */ showLogPage(): void; /** - * + * */ showPerfTestsPage(): void; /** - * + * */ showTestPage(): void; /** * is the passed item "truthy"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ t(condition: Object, hint: String): void; /** - * + * */ togglePaused(): void; /** - * + * */ toggleRunAll(): void; } - module main { + namespace main { /** * Permalink: http://dojotoolkit.org/api/1.9/doh/main._groups.html * - * + * */ interface _groups { } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/main._testTypes.html * - * + * */ interface _testTypes { /** - * - * @param group - * @param tObj - * @param type + * + * @param group + * @param tObj + * @param type */ perf(group: any, tObj: any, type: any): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/main.robot.html * - * + * */ interface robot { /** - * + * */ doc: Object; /** - * + * */ mouseWheelSize: number; /** - * + * */ window: Object; /** * Opens the application at the specified URL for testing, redirecting dojo to point to the application * environment instead of the test environment. - * - * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. + * + * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. */ initRobot(url: String): void; /** * Holds down a single key, like SHIFT or 'a'. * Holds down a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ keyDown(charOrCode: number, delay: number): void; /** * Types a key combination, like SHIFT-TAB. * Types a key combination, like SHIFT-TAB. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta - * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta + * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. */ keyPress(charOrCode: number, delay: number, modifiers: Object, asynchronous: boolean): void; /** * Releases a single key, like SHIFT or 'a'. * Releases a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ keyUp(charOrCode: number, delay: number): void; /** - * + * */ killRobot(): void; /** @@ -981,19 +981,19 @@ declare module doh { * See robot.mousePress for more info. * Convenience function to do a press/release. * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional + * + * @param buttons + * @param delay Optional */ mouseClick(buttons: Object, delay: number): void; /** * Moves the mouse to the specified x,y offset relative to the viewport. - * - * @param x x offset relative to the viewport, in pixels, to move the mouse. - * @param y y offset relative to the viewport, in pixels, to move the mouse. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. - * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) + * + * @param x x offset relative to the viewport, in pixels, to move the mouse. + * @param y y offset relative to the viewport, in pixels, to move the mouse. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. + * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) */ mouseMove(x: number, y: number, delay: number, duration: number, absolute: boolean): void; /** @@ -1001,12 +1001,12 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: String, delay: number, duration: number, offsetX: number, offsetY: number): void; /** @@ -1014,12 +1014,12 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: HTMLElement, delay: number, duration: number, offsetX: number, offsetY: number): void; /** @@ -1027,23 +1027,23 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: Function, delay: number, duration: number, offsetX: number, offsetY: number): void; /** * Move the mouse from the current position to the specified point. * Delays reading contents point until queued command starts running. * See mouseMove() for details. - * - * @param point x, y position relative to viewport, or if absolute == true, to document - * @param delay Optional - * @param duration Optional - * @param absolute + * + * @param point x, y position relative to viewport, or if absolute == true, to document + * @param delay Optional + * @param duration Optional + * @param absolute */ mouseMoveTo(point: Object, delay: number, duration: number, absolute: boolean): void; /** @@ -1051,9 +1051,9 @@ declare module doh { * Presses the mouse buttons you pass as true. * Example: to press the left mouse button, pass {left: true}. * Mouse buttons you don't specify keep their previous pressed state. - * - * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ mousePress(buttons: Object, delay: number): void; /** @@ -1062,9 +1062,9 @@ declare module doh { * Example: to release the left mouse button, pass {left: true}. * Mouse buttons you don't specify keep their previous pressed state. * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional + * + * @param buttons + * @param delay Optional */ mouseRelease(buttons: Object, delay: number): void; /** @@ -1075,77 +1075,77 @@ declare module doh { * Note: this will all happen in one event. * Warning: the size of one mouse wheel notch is an OS setting. * You can access this size from robot.mouseWheelSize - * - * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. + * + * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. */ mouseWheel(wheelAmt: number, delay: number, duration: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: String, delay: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: HTMLElement, delay: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: Function, delay: number): void; /** * Defer an action by adding it to the robot's incrementally delayed queue of actions to execute. - * - * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalDelay to wait after firing. + * + * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalDelay to wait after firing. */ sequence(f: Function, delay: number, duration: number): void; /** * Set clipboard content. * Set data as clipboard content, overriding anything already there. The * data will be put to the clipboard using the given format. - * - * @param data New clipboard content to set - * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. + * + * @param data New clipboard content to set + * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. */ setClipboard(data: String, format: String): void; /** - * + * */ startRobot(): any; /** * Types a string of characters in order, or types a dojo.keys.* constant. * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. */ typeKeys(chars: String, delay: number, duration: number): void; /** * Types a string of characters in order, or types a dojo.keys.* constant. * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. */ typeKeys(chars: number, delay: number, duration: number): void; /** * Notifies DOH that the doh.robot is about to make a page change in the application it is driving, * returning a doh.Deferred object the user should return in their runTest function as part of a DOH test. - * - * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. + * + * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. */ waitForPageToLoad(submitActions: Function): any; } @@ -1154,56 +1154,56 @@ declare module doh { /** * Permalink: http://dojotoolkit.org/api/1.9/doh/robot.html * - * + * */ interface robot { /** - * + * */ doc: Object; /** - * + * */ mouseWheelSize: number; /** - * + * */ window: Object; /** * Opens the application at the specified URL for testing, redirecting dojo to point to the application * environment instead of the test environment. - * - * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. + * + * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. */ initRobot(url: String): void; /** * Holds down a single key, like SHIFT or 'a'. * Holds down a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ keyDown(charOrCode: number, delay: number): void; /** * Types a key combination, like SHIFT-TAB. * Types a key combination, like SHIFT-TAB. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta - * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta + * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. */ keyPress(charOrCode: number, delay: number, modifiers: Object, asynchronous: boolean): void; /** * Releases a single key, like SHIFT or 'a'. * Releases a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ keyUp(charOrCode: number, delay: number): void; /** - * + * */ killRobot(): void; /** @@ -1211,19 +1211,19 @@ declare module doh { * See robot.mousePress for more info. * Convenience function to do a press/release. * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional + * + * @param buttons + * @param delay Optional */ mouseClick(buttons: Object, delay: number): void; /** * Moves the mouse to the specified x,y offset relative to the viewport. - * - * @param x x offset relative to the viewport, in pixels, to move the mouse. - * @param y y offset relative to the viewport, in pixels, to move the mouse. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. - * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) + * + * @param x x offset relative to the viewport, in pixels, to move the mouse. + * @param y y offset relative to the viewport, in pixels, to move the mouse. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. + * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) */ mouseMove(x: number, y: number, delay: number, duration: number, absolute: boolean): void; /** @@ -1231,12 +1231,12 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: String, delay: number, duration: number, offsetX: number, offsetY: number): void; /** @@ -1244,12 +1244,12 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: HTMLElement, delay: number, duration: number, offsetX: number, offsetY: number): void; /** @@ -1257,23 +1257,23 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: Function, delay: number, duration: number, offsetX: number, offsetY: number): void; /** * Move the mouse from the current position to the specified point. * Delays reading contents point until queued command starts running. * See mouseMove() for details. - * - * @param point x, y position relative to viewport, or if absolute == true, to document - * @param delay Optional - * @param duration Optional - * @param absolute + * + * @param point x, y position relative to viewport, or if absolute == true, to document + * @param delay Optional + * @param duration Optional + * @param absolute */ mouseMoveTo(point: Object, delay: number, duration: number, absolute: boolean): void; /** @@ -1281,9 +1281,9 @@ declare module doh { * Presses the mouse buttons you pass as true. * Example: to press the left mouse button, pass {left: true}. * Mouse buttons you don't specify keep their previous pressed state. - * - * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ mousePress(buttons: Object, delay: number): void; /** @@ -1292,9 +1292,9 @@ declare module doh { * Example: to release the left mouse button, pass {left: true}. * Mouse buttons you don't specify keep their previous pressed state. * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional + * + * @param buttons + * @param delay Optional */ mouseRelease(buttons: Object, delay: number): void; /** @@ -1305,93 +1305,93 @@ declare module doh { * Note: this will all happen in one event. * Warning: the size of one mouse wheel notch is an OS setting. * You can access this size from robot.mouseWheelSize - * - * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. + * + * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. */ mouseWheel(wheelAmt: number, delay: number, duration: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: String, delay: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: HTMLElement, delay: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: Function, delay: number): void; /** * Defer an action by adding it to the robot's incrementally delayed queue of actions to execute. - * - * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalDelay to wait after firing. + * + * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalDelay to wait after firing. */ sequence(f: Function, delay: number, duration: number): void; /** * Set clipboard content. * Set data as clipboard content, overriding anything already there. The * data will be put to the clipboard using the given format. - * - * @param data New clipboard content to set - * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. + * + * @param data New clipboard content to set + * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. */ setClipboard(data: String, format: String): void; /** - * + * */ startRobot(): any; /** * Types a string of characters in order, or types a dojo.keys.* constant. * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. */ typeKeys(chars: String, delay: number, duration: number): void; /** * Types a string of characters in order, or types a dojo.keys.* constant. * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. */ typeKeys(chars: number, delay: number, duration: number): void; /** * Notifies DOH that the doh.robot is about to make a page change in the application it is driving, * returning a doh.Deferred object the user should return in their runTest function as part of a DOH test. - * - * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. + * + * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. */ waitForPageToLoad(submitActions: Function): any; } - module robot { + namespace robot { /** * Permalink: http://dojotoolkit.org/api/1.9/doh/robot._runsemaphore.html * - * + * */ interface _runsemaphore { /** - * + * */ lock: any[]; /** - * + * */ unlock(): any; } @@ -1401,328 +1401,328 @@ declare module doh { * Permalink: http://dojotoolkit.org/api/1.9/doh/runner.html * * Functions for registering and running automated tests. - * + * */ interface runner { /** - * + * */ debug: Object; /** - * + * */ error: Object; /** - * + * */ isBrowser: boolean; /** - * + * */ registerUrl: Object; /** - * + * */ robot: Object; /** * are the passed expected and actual objects/values deeply * equivalent? - * - * @param expected - * @param actual - * @param hint Optional - * @param doNotThrow + * + * @param expected + * @param actual + * @param hint Optional + * @param doNotThrow */ assertEqual(expected: Object, actual: Object, hint: String, doNotThrow: any): void; /** * Test for a certain error to be thrown by the given function. - * - * @param expectedError - * @param scope - * @param functionName - * @param args - * @param hint Optional + * + * @param expectedError + * @param scope + * @param functionName + * @param args + * @param hint Optional */ assertError(expectedError: Object, scope: Object, functionName: String, args: any[], hint: String): void; /** * is the passed item "falsey"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ assertFalse(condition: Object, hint: String): void; /** * are the passed notexpected and actual objects/values deeply * not equivalent? - * - * @param notExpected - * @param actual - * @param hint Optional + * + * @param notExpected + * @param actual + * @param hint Optional */ assertNotEqual(notExpected: Object, actual: Object, hint: String): void; /** * is the passed item "truthy"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ assertTrue(condition: Object, hint: String): void; /** - * - * @param canceller + * + * @param canceller */ Deferred(canceller: any): void; /** * Test for a certain error to be thrown by the given function. - * - * @param expectedError - * @param scope - * @param functionName - * @param args - * @param hint Optional + * + * @param expectedError + * @param scope + * @param functionName + * @param args + * @param hint Optional */ e(expectedError: Object, scope: Object, functionName: String, args: any[], hint: String): void; /** * is the passed item "falsey"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ f(condition: Object, hint: String): void; /** * are the passed expected and actual objects/values deeply * equivalent? - * - * @param expected - * @param actual - * @param hint Optional - * @param doNotThrow + * + * @param expected + * @param actual + * @param hint Optional + * @param doNotThrow */ is(expected: Object, actual: Object, hint: String, doNotThrow: any): void; /** * are the passed notexpected and actual objects/values deeply * not equivalent? - * - * @param notExpected - * @param actual - * @param hint Optional + * + * @param notExpected + * @param actual + * @param hint Optional */ isNot(notExpected: Object, actual: Object, hint: String): void; /** * halt test run. Can be resumed. - * + * */ pause(): void; /** - * - * @param a1 - * @param a2 - * @param a3 - * @param a4 - * @param a5 + * + * @param a1 + * @param a2 + * @param a3 + * @param a4 + * @param a5 */ register(a1: any, a2: any, a3: any, a4: any, a5: any): void; /** * Deprecated. Won't work unless you manually load dojox.testing.DocTest, and likely not even then. * Gets all the doctests from the given module and register each of them as a single test case here. - * - * @param module dojox/dgauges/components/utils + * + * @param module dojox/dgauges/components/utils */ registerDocTests(module: any): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: any[], setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: Function, setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, tests, setUp, tearDown) instead - * - * @param group - * @param tests - * @param setUp - * @param tearDown - * @param type + * + * @param group + * @param tests + * @param setUp + * @param tearDown + * @param type */ registerGroup(group: String, tests: Object, setUp: Function, tearDown: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: any[], type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: Function, type: String): void; /** * Deprecated. Use doh.register(group/type, test) instead - * - * @param group - * @param test - * @param type + * + * @param group + * @param test + * @param type */ registerTest(group: String, test: Object, type: String): void; /** * Deprecated. Use doh.register(group, ns) instead - * - * @param group - * @param ns + * + * @param group + * @param ns */ registerTestNs(group: String, ns: Object): void; /** * Deprecated. Use doh.register(group/type, testArr) instead - * - * @param group - * @param testArr - * @param type + * + * @param group + * @param testArr + * @param type */ registerTests(group: String, testArr: any[], type: String): void; /** * Adds a test type and associates a function used to initialize each test of the given type - * - * @param name The name of the type. - * @param initProc Type specific test initializer; called after the test object is created. + * + * @param name The name of the type. + * @param initProc Type specific test initializer; called after the test object is created. */ registerTestType(name: String, initProc: Function): void; /** - * + * */ run(): void; /** * runs the specified test group - * - * @param groupName - * @param idx + * + * @param groupName + * @param idx */ runGroup(groupName: String, idx: number): void; /** - * + * */ runOnLoad(): void; /** - * + * */ showLogPage(): void; /** - * + * */ showPerfTestsPage(): void; /** - * + * */ showTestPage(): void; /** * is the passed item "truthy"? - * - * @param condition - * @param hint Optional + * + * @param condition + * @param hint Optional */ t(condition: Object, hint: String): void; /** - * + * */ togglePaused(): void; /** - * + * */ toggleRunAll(): void; } - module runner { + namespace runner { /** * Permalink: http://dojotoolkit.org/api/1.9/doh/runner._groups.html * - * + * */ interface _groups { } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/runner._testTypes.html * - * + * */ interface _testTypes { /** - * - * @param group - * @param tObj - * @param type + * + * @param group + * @param tObj + * @param type */ perf(group: any, tObj: any, type: any): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/doh/runner.robot.html * - * + * */ interface robot { /** - * + * */ doc: Object; /** - * + * */ mouseWheelSize: number; /** - * + * */ window: Object; /** * Opens the application at the specified URL for testing, redirecting dojo to point to the application * environment instead of the test environment. - * - * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. + * + * @param url URL to open. Any of the test's dojo.doc calls (e.g. dojo.byId()), and any dijit.registry calls(e.g. dijit.byId()) will point to elements and widgets inside this application. */ initRobot(url: String): void; /** * Holds down a single key, like SHIFT or 'a'. * Holds down a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to hold downWarning: holding down a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ keyDown(charOrCode: number, delay: number): void; /** * Types a key combination, like SHIFT-TAB. * Types a key combination, like SHIFT-TAB. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta - * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to press + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param modifiers JSON object that represents all of the modifier keys being pressed.It takes the following Boolean attributes:shiftaltctrlmeta + * @param asynchronous If true, the delay happens asynchronously and immediately, outside of the browser's JavaScript thread and any previous calls.This is useful for interacting with the browser's modal dialogs. */ keyPress(charOrCode: number, delay: number, modifiers: Object, asynchronous: boolean): void; /** * Releases a single key, like SHIFT or 'a'. * Releases a single key, like SHIFT or 'a'. - * - * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param charOrCode char/JS keyCode/dojo.keys.* constant for the key you want to releaseWarning: releasing a shifted key, like 'A', can have unpredictable results. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ keyUp(charOrCode: number, delay: number): void; /** - * + * */ killRobot(): void; /** @@ -1730,19 +1730,19 @@ declare module doh { * See robot.mousePress for more info. * Convenience function to do a press/release. * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional + * + * @param buttons + * @param delay Optional */ mouseClick(buttons: Object, delay: number): void; /** * Moves the mouse to the specified x,y offset relative to the viewport. - * - * @param x x offset relative to the viewport, in pixels, to move the mouse. - * @param y y offset relative to the viewport, in pixels, to move the mouse. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. - * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) + * + * @param x x offset relative to the viewport, in pixels, to move the mouse. + * @param y y offset relative to the viewport, in pixels, to move the mouse. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseThe default is 100ms. This also affects how many mousemove events willbe generated, which is the log of the duration. + * @param absolute Boolean indicating whether the x and y values are absolute coordinates.If false, then mouseMove expects that the x,y will be relative to the window. (clientX/Y)If true, then mouseMove expects that the x,y will be absolute. (pageX/Y) */ mouseMove(x: number, y: number, delay: number, duration: number, absolute: boolean): void; /** @@ -1750,12 +1750,12 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: String, delay: number, duration: number, offsetX: number, offsetY: number): void; /** @@ -1763,12 +1763,12 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: HTMLElement, delay: number, duration: number, offsetX: number, offsetY: number): void; /** @@ -1776,23 +1776,23 @@ declare module doh { * Moves the mouse over the specified node at the specified relative x,y offset. * If you do not specify an offset, mouseMove will default to move to the middle of the node. * Example: to move the mouse over a ComboBox's down arrow node, call doh.mouseMoveAt(dijit.byId('setvaluetest').downArrowNode); - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. - * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. - * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left:true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration Approximate time Robot will spend moving the mouseThe default is 100ms. + * @param offsetX x offset relative to the node, in pixels, to move the mouse. The default is half the node's width. + * @param offsetY y offset relative to the node, in pixels, to move the mouse. The default is half the node's height. */ mouseMoveAt(node: Function, delay: number, duration: number, offsetX: number, offsetY: number): void; /** * Move the mouse from the current position to the specified point. * Delays reading contents point until queued command starts running. * See mouseMove() for details. - * - * @param point x, y position relative to viewport, or if absolute == true, to document - * @param delay Optional - * @param duration Optional - * @param absolute + * + * @param point x, y position relative to viewport, or if absolute == true, to document + * @param delay Optional + * @param duration Optional + * @param absolute */ mouseMoveTo(point: Object, delay: number, duration: number, absolute: boolean): void; /** @@ -1800,9 +1800,9 @@ declare module doh { * Presses the mouse buttons you pass as true. * Example: to press the left mouse button, pass {left: true}. * Mouse buttons you don't specify keep their previous pressed state. - * - * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * + * @param buttons JSON object that represents all of the mouse buttons being pressed.It takes the following Boolean attributes:leftmiddleright + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all */ mousePress(buttons: Object, delay: number): void; /** @@ -1811,9 +1811,9 @@ declare module doh { * Example: to release the left mouse button, pass {left: true}. * Mouse buttons you don't specify keep their previous pressed state. * See robot.mousePress for more info. - * - * @param buttons - * @param delay Optional + * + * @param buttons + * @param delay Optional */ mouseRelease(buttons: Object, delay: number): void; /** @@ -1824,77 +1824,77 @@ declare module doh { * Note: this will all happen in one event. * Warning: the size of one mouse wheel notch is an OS setting. * You can access this size from robot.mouseWheelSize - * - * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. + * + * @param wheelAmt Number of notches to spin the wheel.Negative wheelAmt scrolls up/away from the user.Positive wheelAmt scrolls down/toward the user. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms: robot.mouseClick({left: true}, 100) // first call; wait 100ms robot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalApproximate time Robot will spend moving the mouseBy default, the Robot will wheel the mouse as fast as possible. */ mouseWheel(wheelAmt: number, delay: number, duration: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: String, delay: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: HTMLElement, delay: number): void; /** * Scroll the passed node into view, if it is not. - * - * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. - * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. + * + * @param node The id of the node, or the node itself, to move the mouse to.If you pass an id or a function that returns a node, the node will not be evaluated until the movement executes.This is useful if you need to move the mouse to an node that is not yet present. + * @param delay Delay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call. */ scrollIntoView(node: Function, delay: number): void; /** * Defer an action by adding it to the robot's incrementally delayed queue of actions to execute. - * - * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalDelay to wait after firing. + * + * @param f A function containing actions you want to defer. It can return a Promiseto delay further actions. + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalDelay to wait after firing. */ sequence(f: Function, delay: number, duration: number): void; /** * Set clipboard content. * Set data as clipboard content, overriding anything already there. The * data will be put to the clipboard using the given format. - * - * @param data New clipboard content to set - * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. + * + * @param data New clipboard content to set + * @param format OptionalSet this to "text/html" to put richtext to the clipboard.Otherwise, data is treated as plaintext. By default, plaintextis used. */ setClipboard(data: String, format: String): void; /** - * + * */ startRobot(): any; /** * Types a string of characters in order, or types a dojo.keys.* constant. * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. */ typeKeys(chars: String, delay: number, duration: number): void; /** * Types a string of characters in order, or types a dojo.keys.* constant. * Types a string of characters in order, or types a dojo.keys.* constant. - * - * @param chars String of characters to type, or a dojo.keys.* constant - * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all - * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. + * + * @param chars String of characters to type, or a dojo.keys.* constant + * @param delay OptionalDelay, in milliseconds, to wait before firing.The delay is a delta with respect to the previous automation call.For example, the following code ends after 600ms:robot.mouseClick({left: true}, 100) // first call; wait 100msrobot.typeKeys("dij", 500) // 500ms AFTER previous call; 600ms in all + * @param duration OptionalTime, in milliseconds, to spend pressing all of the keys.The default is (string length)*50 ms. */ typeKeys(chars: number, delay: number, duration: number): void; /** * Notifies DOH that the doh.robot is about to make a page change in the application it is driving, * returning a doh.Deferred object the user should return in their runTest function as part of a DOH test. - * - * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. + * + * @param submitActions The doh.robot will execute the actions the test passes into the submitActions argument (like clicking the submit button),expecting these actions to create a page change (like a form submit).After these actions execute and the resulting page loads, the next test will start. */ waitForPageToLoad(submitActions: Function): any; } diff --git a/dojo/dojo.d.ts b/dojo/dojo.d.ts index ccdeda71e6..455ffc8fe3 100644 --- a/dojo/dojo.d.ts +++ b/dojo/dojo.d.ts @@ -1,127 +1,127 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare function define(dependencies: String[], factory: Function): any; declare function require(config?:Object, dependencies?: String[], callback?: Function): any; -declare module dojox.dtl { +declare namespace dojox.dtl { interface __StringArgs { } interface __ObjectArgs { } } -declare module dojo { +declare namespace dojo { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.html * * Send a request using the default transport for the current platform. - * - * @param url The URL to request. - * @param options OptionalOptions for the request. + * + * @param url The URL to request. + * @param options OptionalOptions for the request. */ interface request { (url: String, options?: dojo.request.__Options): void } interface request { /** * Send an HTTP DELETE request using the default transport for the current platform. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ del(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP GET request using the default transport for the current platform. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ get(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP POST request using the default transport for the current platform. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ post(url: String, options?: dojo.request.__BaseOptions): any; /** * Send an HTTP POST request using the default transport for the current platform. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ put(url: String, options?: dojo.request.__BaseOptions): dojo.request.__Promise; } - module request { + namespace request { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/handlers.html * - * - * @param response + * + * @param response */ interface handlers { (response: any): void } interface handlers { /** - * - * @param name - * @param handler + * + * @param name + * @param handler */ register(name: any, handler: any): void; } - module handlers { + namespace handlers { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.html * * Sends a request using an iframe element with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ interface iframe { (url: String, options?: dojo.request.iframe.__Options): void } interface iframe { /** - * - * @param name - * @param onloadstr - * @param uri + * + * @param name + * @param onloadstr + * @param uri */ create(name: any, onloadstr: any, uri: any): any; /** - * - * @param iframeNode + * + * @param iframeNode */ doc(iframeNode: any): any; /** * Send an HTTP GET request using an iframe element with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ get(url: String, options?: dojo.request.iframe.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP POST request using an iframe element with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ post(url: String, options?: dojo.request.iframe.__BaseOptions): dojo.request.__Promise; /** - * - * @param _iframe - * @param src - * @param replace + * + * @param _iframe + * @param src + * @param replace */ setSrc(_iframe: any, src: any, replace: any): void; } - module iframe { + namespace iframe { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__MethodOptions.html * - * + * */ class __MethodOptions { constructor(); @@ -129,14 +129,14 @@ declare module dojo { * The HTTP method to use to make the request. Must be * uppercase. Only "GET" and "POST" are accepted. * Default is "POST". - * + * */ "method": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__BaseOptions.html * - * + * */ class __BaseOptions { constructor(); @@ -144,41 +144,41 @@ declare module dojo { * Data to transfer. When making a GET request, this will * be converted to key=value parameters and appended to the * URL. - * + * */ "data": string; /** * A form node to use to submit data to the server. - * + * */ "form": HTMLElement; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/iframe.__Options.html * - * + * */ class __Options { constructor(); @@ -186,41 +186,41 @@ declare module dojo { * Data to transfer. When making a GET request, this will * be converted to key=value parameters and appended to the * URL. - * + * */ "data": string; /** * A form node to use to submit data to the server. - * + * */ "form": HTMLElement; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** * The HTTP method to use to make the request. Must be * uppercase. Only "GET" and "POST" are accepted. * Default is "POST". - * + * */ "method": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; } @@ -231,51 +231,51 @@ declare module dojo { * * Register a listener to be notified when an event * in dojo/request happens. - * - * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". - * @param listener OptionalA callback to be run when an event happens. + * + * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". + * @param listener OptionalA callback to be run when an event happens. */ interface notify { (type?: String, listener?: Function): void } interface notify { /** - * - * @param type - * @param event - * @param cancel + * + * @param type + * @param event + * @param cancel */ emit(type: any, event: any, cancel: any): void; } - module notify { + namespace notify { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/registry.html * - * - * @param url - * @param options + * + * @param url + * @param options */ interface registry { (url: any, options: any): void } interface registry { /** - * - * @param id - * @param parentRequire - * @param loaded - * @param config + * + * @param id + * @param parentRequire + * @param loaded + * @param config */ load(id: any, parentRequire: any, loaded: any, config: any): void; /** - * - * @param url - * @param provider - * @param first + * + * @param url + * @param provider + * @param first */ register(url: any, provider: any, first: any): void; } - module registry { + namespace registry { } /** @@ -283,162 +283,162 @@ declare module dojo { * * Sends a request using the included http or https interface from node.js * with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ interface node { (url: String, options?: dojo.request.node.__Options): void } interface node { /** * Send an HTTP DELETE request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ del(url: String, options?: dojo.request.node.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP GET request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ get(url: String, options?: dojo.request.node.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP POST request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ post(url: String, options?: dojo.request.node.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP PUT request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ put(url: String, options?: dojo.request.node.__BaseOptions): dojo.request.__Promise; } - module node { + namespace node { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__MethodOptions.html * - * + * */ class __MethodOptions { constructor(); /** * The HTTP method to use to make the request. Must be * uppercase. Default is "GET". - * + * */ "method": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__Options.html * - * + * */ class __Options { constructor(); /** * Data to transfer. This is ignored for GET and DELETE * requests. - * + * */ "data": string; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** * Headers to use for the request. - * + * */ "headers": Object; /** * The HTTP method to use to make the request. Must be * uppercase. Default is "GET". - * + * */ "method": string; /** * Password to use during the request. - * + * */ "password": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; /** * Username to use during the request. - * + * */ "user": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/node.__BaseOptions.html * - * + * */ class __BaseOptions { constructor(); /** * Data to transfer. This is ignored for GET and DELETE * requests. - * + * */ "data": string; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** * Headers to use for the request. - * + * */ "headers": Object; /** * Password to use during the request. - * + * */ "password": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; /** * Username to use during the request. - * + * */ "user": string; } @@ -448,77 +448,77 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/watch.html * * Watches the io request represented by dfd to see if it completes. - * - * @param dfd The Deferred object to watch. + * + * @param dfd The Deferred object to watch. */ interface watch { (dfd: dojo.Deferred): void } interface watch { /** * Function used to check if basic IO call worked. Gets the dfd * object as its only argument. - * + * */ ioCheck: Function; /** * Function used to process response. Gets the dfd * object as its only argument. - * + * */ resHandle: Function; /** * Function used to check if the IO request is still valid. Gets the dfd * object as its only argument. - * + * */ validCheck: Function; /** * Cancels all pending IO requests, regardless of IO type - * + * */ cancelAll(): void; } - module watch { + namespace watch { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.html * * Sends a request using a script element with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ interface script { (url: String, options?: dojo.request.script.__Options): void } interface script { /** * Send an HTTP GET request using a script element with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ get(url: String, options?: dojo.request.script.__BaseOptions): dojo.request.__Promise; } - module script { + namespace script { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.__MethodOptions.html * - * + * */ class __MethodOptions { constructor(); /** * This option is ignored. All requests using this transport are * GET requests. - * + * */ "method": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.__BaseOptions.html * - * + * */ class __BaseOptions { constructor(); @@ -527,26 +527,26 @@ declare module dojo { * "typeof(" + checkString + ") != 'undefined'" * being true means that the script fetched has been loaded. * Do not use this if doing a JSONP type of call (use jsonp instead). - * + * */ "checkString": string; /** * Data to transfer. This is ignored for GET and DELETE * requests. - * + * */ "data": string; /** * The Document object of a child iframe. If this is passed in, the script * will be attached to that document. This can be helpful in some comet long-polling * scenarios with Firefox and Opera. - * + * */ "frameDoc": Object; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** @@ -554,30 +554,30 @@ declare module dojo { * For instance, when using Yahoo JSONP calls it is normally, * jsonp: "callback". For AOL JSONP calls it is normally * jsonp: "c". - * + * */ "jsonp": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/script.__Options.html * - * + * */ class __Options { constructor(); @@ -586,26 +586,26 @@ declare module dojo { * "typeof(" + checkString + ") != 'undefined'" * being true means that the script fetched has been loaded. * Do not use this if doing a JSONP type of call (use jsonp instead). - * + * */ "checkString": string; /**dojo * Data to transfer. This is ignored for GET and DELETE * requests. - * + * */ "data": string; /** * The Document object of a child iframe. If this is passed in, the script * will be attached to that document. This can be helpful in some comet long-polling * scenarios with Firefox and Opera. - * + * */ "frameDoc": Object; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** @@ -613,29 +613,29 @@ declare module dojo { * For instance, when using Yahoo JSONP calls it is normally, * jsonp: "callback". For AOL JSONP calls it is normally * jsonp: "c". - * + * */ "jsonp": string; /** * This option is ignored. All requests using this transport are * GET requests. - * + * */ "method": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; } @@ -645,186 +645,186 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.html * * Sends a request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ interface xhr { (url: String, options?: dojo.request.xhr.__Options): void } interface xhr { /** * Send an HTTP DELETE request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ del(url: String, options?: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP GET request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ get(url: String, options?: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP POST request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ post(url: String, options?: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; /** * Send an HTTP PUT request using XMLHttpRequest with the given URL and options. - * - * @param url URL to request - * @param options OptionalOptions for the request. + * + * @param url URL to request + * @param options OptionalOptions for the request. */ put(url: String, options?: dojo.request.xhr.__BaseOptions): dojo.request.__Promise; } - module xhr { + namespace xhr { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.__BaseOptions.html * - * + * */ class __BaseOptions { constructor(); /** * Data to transfer. This is ignored for GET and DELETE * requests. - * + * */ "data": string; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** * Headers to use for the request. - * + * */ "headers": Object; /** * Password to use during the request. - * + * */ "password": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Whether to make a synchronous request or not. Default * is false (asynchronous). - * + * */ "sync": boolean; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; /** * Username to use during the request. - * + * */ "user": string; /** * For cross-site requests, whether to send credentials * or not. - * + * */ "withCredentials": boolean; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.__MethodOptions.html * - * + * */ class __MethodOptions { constructor(); /** * The HTTP method to use to make the request. Must be * uppercase. Default is "GET". - * + * */ "method": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/xhr.__Options.html * - * + * */ class __Options { constructor(); /** * Data to transfer. This is ignored for GET and DELETE * requests. - * + * */ "data": string; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** * Headers to use for the request. - * + * */ "headers": Object; /** * The HTTP method to use to make the request. Must be * uppercase. Default is "GET". - * + * */ "method": string; /** * Password to use during the request. - * + * */ "password": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Whether to make a synchronous request or not. Default * is false (asynchronous). - * + * */ "sync": boolean; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; /** * Username to use during the request. - * + * */ "user": string; /** * For cross-site requests, whether to send credentials * or not. - * + * */ "withCredentials": boolean; } @@ -833,113 +833,113 @@ declare module dojo { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__BaseOptions.html * - * + * */ class __BaseOptions { constructor(); /** * Data to transfer. This is ignored for GET and DELETE * requests. - * + * */ "data": string; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__MethodOptions.html * - * + * */ class __MethodOptions { constructor(); /** * The HTTP method to use to make the request. Must be * uppercase. - * + * */ "method": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__Options.html * - * + * */ class __Options { constructor(); /** * Data to transfer. This is ignored for GET and DELETE * requests. - * + * */ "data": string; /** * How to handle the response from the server. Default is * 'text'. Other values are 'json', 'javascript', and 'xml'. - * + * */ "handleAs": string; /** * The HTTP method to use to make the request. Must be * uppercase. - * + * */ "method": string; /** * Whether to append a cache-busting parameter to the URL. - * + * */ "preventCache": boolean; /** * Query parameters to append to the URL. - * + * */ "query": string; /** * Milliseconds to wait for the response. If this time * passes, the then the promise is rejected. - * + * */ "timeout": number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request.__Promise.html * - * + * */ class __Promise implements dojo.promise.Promise { constructor(); /** * A promise resolving to an object representing * the response from the server. - * + * */ "response": Object; /** * Add a callback to be invoked when the promise is resolved * or rejected. - * - * @param callbackOrErrback OptionalA function that is used both as a callback and errback. + * + * @param callbackOrErrback OptionalA function that is used both as a callback and errback. */ always(callbackOrErrback: Function): any; /** @@ -948,131 +948,131 @@ declare module dojo { * The deferred's (optional) canceler is invoked and the * deferred will be left in a rejected state. Can affect other * promises that originate with the same deferred. - * - * @param reason A message that may be sent to the deferred's canceler,explaining why it's being canceled. - * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be canceled. + * + * @param reason A message that may be sent to the deferred's canceler,explaining why it's being canceled. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be canceled. */ cancel(reason: any, strict?: boolean): any; /** * Checks whether the promise has been canceled. - * + * */ isCanceled(): boolean; /** * Checks whether the promise has been resolved or rejected. - * + * */ isFulfilled(): boolean; /** * Checks whether the promise has been rejected. - * + * */ isRejected(): boolean; /** * Checks whether the promise has been resolved. - * + * */ isResolved(): boolean; /** * Add new errbacks to the promise. - * - * @param errback OptionalCallback to be invoked when the promise is rejected. + * + * @param errback OptionalCallback to be invoked when the promise is rejected. */ otherwise(errback: Function): any; /** * Add new callbacks to the promise. * Add new callbacks to the deferred. Callbacks can be added * before or after the deferred is fulfilled. - * - * @param callback OptionalCallback to be invoked when the promise is resolved.Receives the resolution value. - * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. - * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. + * + * @param callback OptionalCallback to be invoked when the promise is resolved.Receives the resolution value. + * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. + * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. */ then(callback?: Function, errback?: Function, progback?: Function): dojo.promise.Promise; /** - * + * */ toString(): String; /** - * + * */ trace(): dojo.promise.Promise; /** - * + * */ traceRejected(): dojo.promise.Promise; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/default.html * - * + * */ interface default_ { /** - * + * */ getPlatformDefaultId(): void; /** - * - * @param id - * @param parentRequire - * @param loaded - * @param config + * + * @param id + * @param parentRequire + * @param loaded + * @param config */ load(id: any, parentRequire: any, loaded: any, config: any): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/request/util.html * - * + * */ interface util { /** - * - * @param provider - * @param methods + * + * @param provider + * @param methods */ addCommonMethods(provider: any, methods: any): void; /** - * - * @param stat + * + * @param stat */ checkStatus(stat: any): boolean; /** - * - * @param target - * @param source + * + * @param target + * @param source */ deepCopy(target: any, source: any): any; /** - * - * @param source - * @param properties + * + * @param source + * @param properties */ deepCreate(source: any, properties: any): any; /** - * - * @param response The object used as the value of the request promise. - * @param cancel - * @param isValid - * @param isReady - * @param handleResponse - * @param last + * + * @param response The object used as the value of the request promise. + * @param cancel + * @param isValid + * @param isReady + * @param handleResponse + * @param last */ deferred(response: Object, cancel: any, isValid: any, isReady: any, handleResponse: any, last: any): any; /** * Register a listener to be notified when an event * in dojo/request happens. - * - * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". - * @param listener OptionalA callback to be run when an event happens. + * + * @param type OptionalThe event to listen for. Events emitted: "start", "send","load", "error", "done", "stop". + * @param listener OptionalA callback to be run when an event happens. */ notify(type?: String, listener?: Function): any; /** - * - * @param url - * @param options - * @param skipData + * + * @param url + * @param options + * @param skipData */ parseArgs(url: any, options: any, skipData: any): Object; } @@ -1086,17 +1086,17 @@ declare module dojo { * wrap, directReturn] that are used to determine what the contextual * result of a set of checked arguments is. All check/wrap functions * in this registry should be of the same arity. - * - * @param returnWrappers Optional + * + * @param returnWrappers Optional */ interface AdapterRegistry { (returnWrappers?: boolean): void } interface AdapterRegistry { /** - * + * */ pairs: any[]; /** - * + * */ returnWrappers: boolean; /** @@ -1104,29 +1104,29 @@ declare module dojo { * is found, throws an exception. match() accepts any number of * arguments, all of which are passed to all matching functions * from the registered pairs. - * + * */ match(): any; /** * register a check function to determine if the wrap function or * object gets selected - * - * @param name a way to identify this matcher. - * @param check a function that arguments are passed to from the adapter'smatch() function. The check function should return true if thegiven arguments are appropriate for the wrap function. - * @param wrap - * @param directReturn OptionalIf directReturn is true, the value passed in for wrap will bereturned instead of being called. Alternately, theAdapterRegistry can be set globally to "return not call" usingthe returnWrappers property. Either way, this behavior allowsthe registry to act as a "search" function instead of afunction interception library. - * @param override OptionalIf override is given and true, the check function will be givenhighest priority. Otherwise, it will be the lowest priorityadapter. + * + * @param name a way to identify this matcher. + * @param check a function that arguments are passed to from the adapter'smatch() function. The check function should return true if thegiven arguments are appropriate for the wrap function. + * @param wrap + * @param directReturn OptionalIf directReturn is true, the value passed in for wrap will bereturned instead of being called. Alternately, theAdapterRegistry can be set globally to "return not call" usingthe returnWrappers property. Either way, this behavior allowsthe registry to act as a "search" function instead of afunction interception library. + * @param override OptionalIf override is given and true, the check function will be givenhighest priority. Otherwise, it will be the lowest priorityadapter. */ register(name: String, check: Function, wrap: Function, directReturn?: boolean, override?: boolean): void; /** * Remove a named adapter from the registry - * - * @param name The name of the adapter. + * + * @param name The name of the adapter. */ unregister(name: String): any; } - module AdapterRegistry { + namespace AdapterRegistry { } /** @@ -1145,10 +1145,10 @@ declare module dojo { * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the * the URL contents, only modules on the same domain of the page can use this capability. * The build system can inline the cache values though, to allow for xdomain hosting. - * - * @param module dojo/cldr/supplemental - * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. - * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ interface cache { (module: String, url: String, value?: String): void } /** @@ -1167,10 +1167,10 @@ declare module dojo { * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the * the URL contents, only modules on the same domain of the page can use this capability. * The build system can inline the cache values though, to allow for xdomain hosting. - * - * @param module dojo/cldr/supplemental - * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. - * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ interface cache { (module: Object, url: String, value?: String): void } /** @@ -1189,10 +1189,10 @@ declare module dojo { * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the * the URL contents, only modules on the same domain of the page can use this capability. * The build system can inline the cache values though, to allow for xdomain hosting. - * - * @param module dojo/cldr/supplemental - * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. - * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ interface cache { (module: String, url: String, value?: Object): void } /** @@ -1211,10 +1211,10 @@ declare module dojo { * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the * the URL contents, only modules on the same domain of the page can use this capability. * The build system can inline the cache values though, to allow for xdomain hosting. - * - * @param module dojo/cldr/supplemental - * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. - * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ interface cache { (module: Object, url: String, value?: Object): void } /** @@ -1223,45 +1223,45 @@ declare module dojo { * Get or set a cookie. * If one argument is passed, returns the value of the cookie * For two or more arguments, acts as a setter. - * - * @param name Name of the cookie - * @param value OptionalValue for the cookie - * @param props OptionalProperties for the cookie + * + * @param name Name of the cookie + * @param value OptionalValue for the cookie + * @param props OptionalProperties for the cookie */ interface cookie { (name: String, value?: String, props?: Object): void } interface cookie { /** * Use to determine if the current browser supports cookies or not. - * + * * Returns true if user allows cookies. * Returns false if user doesn't allow cookies. - * + * */ isSupported(): void; } - module cookie { + namespace cookie { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/domReady.html * * Plugin to delay require()/define() callback from firing until the DOM has finished loading. - * - * @param callback + * + * @param callback */ interface domReady { (callback: any): void } interface domReady { /** - * - * @param id - * @param req - * @param load + * + * @param id + * @param req + * @param load */ load(id: any, req: any, load: any): void; } - module domReady { + namespace domReady { } /** @@ -1269,12 +1269,12 @@ declare module dojo { * * Gets or sets the hash string in the browser URL. * Handles getting and setting of location.hash. - * + * * If no arguments are passed, acts as a getter. * If a string is passed, acts as a setter. - * - * @param hash Optionalthe hash is set - #string. - * @param replace OptionalIf true, updates the hash value in the current historystate instead of creating a new history state. + * + * @param hash Optionalthe hash is set - #string. + * @param replace OptionalIf true, updates the hash value in the current historystate instead of creating a new history state. */ interface hash { (hash?: String, replace?: boolean): void } /** @@ -1283,8 +1283,8 @@ declare module dojo { * Return the current value of the named feature. * Returns the value of the feature named by name. The feature must have been * previously added to the cache by has.add. - * - * @param name The name (if a string) or identifier (if an integer) of the feature to test. + * + * @param name The name (if a string) or identifier (if an integer) of the feature to test. */ interface has { (name: String): void } /** @@ -1293,57 +1293,57 @@ declare module dojo { * Return the current value of the named feature. * Returns the value of the feature named by name. The feature must have been * previously added to the cache by has.add. - * - * @param name The name (if a string) or identifier (if an integer) of the feature to test. + * + * @param name The name (if a string) or identifier (if an integer) of the feature to test. */ interface has { (name: number): void } interface has { /** - * + * */ cache: string; /** * Register a new feature test for some named feature. - * - * @param name The name (if a string) or identifier (if an integer) of the feature to test. - * @param test A test function to register. If a function, queued for testing until actuallyneeded. The test function should return a boolean indicatingthe presence of a feature or bug. - * @param now OptionalOptional. Omit if test is not a function. Provides a way to immediatelyrun the test and cache the result. - * @param force OptionalOptional. If the test already exists and force is truthy, then the existingtest will be replaced; otherwise, add does not replace an existing test (thatis, by default, the first test advice wins). + * + * @param name The name (if a string) or identifier (if an integer) of the feature to test. + * @param test A test function to register. If a function, queued for testing until actuallyneeded. The test function should return a boolean indicatingthe presence of a feature or bug. + * @param now OptionalOptional. Omit if test is not a function. Provides a way to immediatelyrun the test and cache the result. + * @param force OptionalOptional. If the test already exists and force is truthy, then the existingtest will be replaced; otherwise, add does not replace an existing test (thatis, by default, the first test advice wins). */ add(name: String, test: Function, now?: boolean, force?: boolean): any; /** * Register a new feature test for some named feature. - * - * @param name The name (if a string) or identifier (if an integer) of the feature to test. - * @param test A test function to register. If a function, queued for testing until actuallyneeded. The test function should return a boolean indicatingthe presence of a feature or bug. - * @param now OptionalOptional. Omit if test is not a function. Provides a way to immediatelyrun the test and cache the result. - * @param force OptionalOptional. If the test already exists and force is truthy, then the existingtest will be replaced; otherwise, add does not replace an existing test (thatis, by default, the first test advice wins). + * + * @param name The name (if a string) or identifier (if an integer) of the feature to test. + * @param test A test function to register. If a function, queued for testing until actuallyneeded. The test function should return a boolean indicatingthe presence of a feature or bug. + * @param now OptionalOptional. Omit if test is not a function. Provides a way to immediatelyrun the test and cache the result. + * @param force OptionalOptional. If the test already exists and force is truthy, then the existingtest will be replaced; otherwise, add does not replace an existing test (thatis, by default, the first test advice wins). */ add(name: number, test: Function, now?: boolean, force?: boolean): any; /** * Deletes the contents of the element passed to test functions. - * - * @param element + * + * @param element */ clearElement(element: any): void; /** * Conditional loading of AMD modules based on a has feature test value. - * - * @param id Gives the resolved module id to load. - * @param parentRequire The loader require function with respect to the module that contained the plugin resource in it'sdependency list. - * @param loaded Callback to loader that consumes result of plugin demand. + * + * @param id Gives the resolved module id to load. + * @param parentRequire The loader require function with respect to the module that contained the plugin resource in it'sdependency list. + * @param loaded Callback to loader that consumes result of plugin demand. */ load(id: String, parentRequire: Function, loaded: Function): void; /** * Resolves id into a module id based on possibly-nested tenary expression that branches on has feature test value(s). - * - * @param id - * @param toAbsMid Resolves a relative module id into an absolute module id + * + * @param id + * @param toAbsMid Resolves a relative module id into an absolute module id */ normalize(id: any, toAbsMid: Function): void; } - module has { + namespace has { } /** @@ -1352,21 +1352,21 @@ declare module dojo { * Test if computer is in high contrast mode (i.e. if browser is not displaying background images). * Defines has("highcontrast") and sets dj_a11y CSS class on if machine is in high contrast mode. * Returns has() method; - * + * */ interface hccss { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-data.html * * Adds data() and removeData() methods to NodeList, and returns NodeList constructor. - * + * */ interface NodeList_data { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-html.html * * Adds a chainable html method to dojo/query() / NodeList instances for setting/replacing node content - * + * */ interface NodeList_html { (): void } /** @@ -1374,51 +1374,51 @@ declare module dojo { * * Adds dojo.fx animation support to dojo.query() by extending the NodeList class * with additional FX functions. NodeList is the array-like object used to hold query results. - * + * */ interface NodeList_fx { (): void } interface NodeList_fx { /** * fade all elements of the node list to a specified opacity - * - * @param args + * + * @param args */ fadeTo(args: any): any; /** * highlight all elements of the node list. * Returns an instance of dojo.Animation - * - * @param args + * + * @param args */ highlight(args: any): any; /** * size all elements of this NodeList. Returns an instance of dojo.Animation - * - * @param args + * + * @param args */ sizeTo(args: any): any; /** * slide all elements of this NodeList. Returns an instance of dojo.Animation - * - * @param args + * + * @param args */ slideBy(args: any): any; /** * Wipe all elements of the NodeList to a specified width: or height: - * - * @param args + * + * @param args */ wipeTo(args: any): any; } - module NodeList_fx { + namespace NodeList_fx { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-dom.html * * Adds DOM related methods to NodeList, and returns NodeList constructor. - * + * */ interface NodeList_dom { (): void } /** @@ -1426,14 +1426,14 @@ declare module dojo { * * Adds chainable methods to dojo.query() / NodeList instances for manipulating HTML * and DOM nodes and their properties. - * + * */ interface NodeList_manipulate { (): void } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList-traverse.html * * Adds chainable methods to dojo/query() / NodeList instances for traversing the DOM - * + * */ interface NodeList_traverse { (): void } /** @@ -1443,31 +1443,31 @@ declare module dojo { * you can provide a target, event type, and listener to be notified of * future matching events that are fired. * To listen for "click" events on a button node, we can do: - * + * * define(["dojo/on"], function(listen){ * on(button, "click", clickHandler); * ... * Evented JavaScript objects can also have their own events. - * + * * var obj = new Evented; * on(obj, "foo", fooHandler); * And then we could publish a "foo" event: - * + * * on.emit(obj, "foo", {key: "value"}); * We can use extension events as well. For example, you could listen for a tap gesture: - * + * * define(["dojo/on", "dojo/gesture/tap", function(listen, tap){ * on(button, tap, tapHandler); * ... * which would trigger fooHandler. Note that for a simple object this is equivalent to calling: - * + * * obj.onfoo({key:"value"}); * If you use on.emit on a DOM node, it will use native event dispatching when possible. - * - * @param target This is the target object or DOM element that to receive events from - * @param type This is the name of the event to listen for or an extension event type. - * @param listener This is the function that should be called when the event fires. - * @param dontFix + * + * @param target This is the target object or DOM element that to receive events from + * @param type This is the name of the event to listen for or an extension event type. + * @param listener This is the function that should be called when the event fires. + * @param dontFix */ interface on { (target: HTMLElement, type: String, listener: Function, dontFix: any): void } /** @@ -1477,31 +1477,31 @@ declare module dojo { * you can provide a target, event type, and listener to be notified of * future matching events that are fired. * To listen for "click" events on a button node, we can do: - * + * * define(["dojo/on"], function(listen){ * on(button, "click", clickHandler); * ... * Evented JavaScript objects can also have their own events. - * + * * var obj = new Evented; * on(obj, "foo", fooHandler); * And then we could publish a "foo" event: - * + * * on.emit(obj, "foo", {key: "value"}); * We can use extension events as well. For example, you could listen for a tap gesture: - * + * * define(["dojo/on", "dojo/gesture/tap", function(listen, tap){ * on(button, tap, tapHandler); * ... * which would trigger fooHandler. Note that for a simple object this is equivalent to calling: - * + * * obj.onfoo({key:"value"}); * If you use on.emit on a DOM node, it will use native event dispatching when possible. - * - * @param target This is the target object or DOM element that to receive events from - * @param type This is the name of the event to listen for or an extension event type. - * @param listener This is the function that should be called when the event fires. - * @param dontFix + * + * @param target This is the target object or DOM element that to receive events from + * @param type This is the name of the event to listen for or an extension event type. + * @param listener This is the function that should be called when the event fires. + * @param dontFix */ interface on { (target: Object, type: String, listener: Function, dontFix: any): void } /** @@ -1511,31 +1511,31 @@ declare module dojo { * you can provide a target, event type, and listener to be notified of * future matching events that are fired. * To listen for "click" events on a button node, we can do: - * + * * define(["dojo/on"], function(listen){ * on(button, "click", clickHandler); * ... * Evented JavaScript objects can also have their own events. - * + * * var obj = new Evented; * on(obj, "foo", fooHandler); * And then we could publish a "foo" event: - * + * * on.emit(obj, "foo", {key: "value"}); * We can use extension events as well. For example, you could listen for a tap gesture: - * + * * define(["dojo/on", "dojo/gesture/tap", function(listen, tap){ * on(button, tap, tapHandler); * ... * which would trigger fooHandler. Note that for a simple object this is equivalent to calling: - * + * * obj.onfoo({key:"value"}); * If you use on.emit on a DOM node, it will use native event dispatching when possible. - * - * @param target This is the target object or DOM element that to receive events from - * @param type This is the name of the event to listen for or an extension event type. - * @param listener This is the function that should be called when the event fires. - * @param dontFix + * + * @param target This is the target object or DOM element that to receive events from + * @param type This is the name of the event to listen for or an extension event type. + * @param listener This is the function that should be called when the event fires. + * @param dontFix */ interface on { (target: HTMLElement, type: Function, listener: Function, dontFix: any): void } /** @@ -1545,60 +1545,60 @@ declare module dojo { * you can provide a target, event type, and listener to be notified of * future matching events that are fired. * To listen for "click" events on a button node, we can do: - * + * * define(["dojo/on"], function(listen){ * on(button, "click", clickHandler); * ... * Evented JavaScript objects can also have their own events. - * + * * var obj = new Evented; * on(obj, "foo", fooHandler); * And then we could publish a "foo" event: - * + * * on.emit(obj, "foo", {key: "value"}); * We can use extension events as well. For example, you could listen for a tap gesture: - * + * * define(["dojo/on", "dojo/gesture/tap", function(listen, tap){ * on(button, tap, tapHandler); * ... * which would trigger fooHandler. Note that for a simple object this is equivalent to calling: - * + * * obj.onfoo({key:"value"}); * If you use on.emit on a DOM node, it will use native event dispatching when possible. - * - * @param target This is the target object or DOM element that to receive events from - * @param type This is the name of the event to listen for or an extension event type. - * @param listener This is the function that should be called when the event fires. - * @param dontFix + * + * @param target This is the target object or DOM element that to receive events from + * @param type This is the name of the event to listen for or an extension event type. + * @param listener This is the function that should be called when the event fires. + * @param dontFix */ interface on { (target: Object, type: String, listener: Function, dontFix?: any): { remove: { (): void } } } interface on { /** - * - * @param target - * @param type - * @param event + * + * @param target + * @param type + * @param event */ emit(target: any, type: any, event: any): any; /** - * This function acts the same as on(), but will only call the listener once. The + * This function acts the same as on(), but will only call the listener once. The * listener will be called for the first * event that takes place and then listener will automatically be removed. - * - * @param target - * @param type - * @param listener - * @param dontFix + * + * @param target + * @param type + * @param listener + * @param dontFix */ once(target: any, type: any, listener: any, dontFix?: any): any; /** - * - * @param target - * @param type - * @param listener - * @param addListener - * @param dontFix - * @param matchesTarget + * + * @param target + * @param type + * @param listener + * @param addListener + * @param dontFix + * @param matchesTarget */ parse(target: any, type: any, listener: any, addListener: any, dontFix: any, matchesTarget: any): any; /** @@ -1606,28 +1606,28 @@ declare module dojo { * returned signal object has pause() and resume() functions. Calling the * pause() method will cause the listener to not be called for future events. Calling the * resume() method will cause the listener to again be called for future events. - * - * @param target - * @param type - * @param listener - * @param dontFix + * + * @param target + * @param type + * @param listener + * @param dontFix */ pausable(target: any, type: any, listener: any, dontFix: any): any; /** * Creates a new extension event with event delegation. This is based on * the provided event type (can be extension event) that * only calls the listener when the CSS selector matches the target of the event. - * + * * The application must require() an appropriate level of dojo/query to handle the selector. - * - * @param selector The CSS selector to use for filter events and determine the |this| of the event listener. - * @param eventType The event to listen for - * @param children Indicates if children elements of the selector should be allowed. This defaults to true + * + * @param selector The CSS selector to use for filter events and determine the |this| of the event listener. + * @param eventType The event to listen for + * @param children Indicates if children elements of the selector should be allowed. This defaults to true */ selector(selector: any, eventType: any, children: any): Function; } - module on { + namespace on { } /** @@ -1640,11 +1640,11 @@ declare module dojo { * its results with a NodeList. You can use dojo/query with a specific selector engine * by using it as a plugin. For example, if you installed the sizzle package, you could * use it as the selector engine with: - * + * * require(["dojo/query!sizzle"], function(query){ * query("div")... * The id after the ! can be a module id of the selector engine or one of the following values: - * + * * acme: This is the default engine used by Dojo base, and will ensure that the full * Acme engine is always loaded. * css2: If the browser has a native selector engine, this will be used, otherwise a @@ -1657,19 +1657,19 @@ declare module dojo { * selectors (most modern browsers except IE8), this will be used, otherwise the * full Acme engine will be loaded. * Or the module id of a selector engine can be used to explicitly choose the selector engine - * + * * For example, if you are using CSS3 pseudo selectors in module, you can specify that * you will need support them with: - * + * * require(["dojo/query!css3"], function(query){ * query('#t > h3:nth-child(odd)')... * You can also choose the selector engine/load configuration by setting the query-selector: * For example: - * + * * - * - * @param selector A CSS selector to search for. - * @param context OptionalAn optional context to limit the searching scope. Only nodes under context will bescanned. + * + * @param selector A CSS selector to search for. + * @param context OptionalAn optional context to limit the searching scope. Only nodes under context will bescanned. */ interface query{(selector: String, context?: String): NodeList} /** @@ -1682,11 +1682,11 @@ declare module dojo { * its results with a NodeList. You can use dojo/query with a specific selector engine * by using it as a plugin. For example, if you installed the sizzle package, you could * use it as the selector engine with: - * + * * require(["dojo/query!sizzle"], function(query){ * query("div")... * The id after the ! can be a module id of the selector engine or one of the following values: - * + * * acme: This is the default engine used by Dojo base, and will ensure that the full * Acme engine is always loaded. * css2: If the browser has a native selector engine, this will be used, otherwise a @@ -1699,28 +1699,28 @@ declare module dojo { * selectors (most modern browsers except IE8), this will be used, otherwise the * full Acme engine will be loaded. * Or the module id of a selector engine can be used to explicitly choose the selector engine - * + * * For example, if you are using CSS3 pseudo selectors in module, you can specify that * you will need support them with: - * + * * require(["dojo/query!css3"], function(query){ * query('#t > h3:nth-child(odd)')... * You can also choose the selector engine/load configuration by setting the query-selector: * For example: - * + * * - * - * @param selector A CSS selector to search for. - * @param context OptionalAn optional context to limit the searching scope. Only nodes under context will bescanned. + * + * @param selector A CSS selector to search for. + * @param context OptionalAn optional context to limit the searching scope. Only nodes under context will bescanned. */ interface query{(selector: String, context?: HTMLElement): NodeList} interface query { /** * can be used as AMD plugin to conditionally load new query engine - * - * @param id - * @param parentRequire - * @param loaded + * + * @param id + * @param parentRequire + * @param loaded */ load(id: any, parentRequire: any, loaded: any): void; /** @@ -1734,13 +1734,13 @@ declare module dojo { * functions in the dojo package, NodeLists generally make the * full power of Dojo available for DOM manipulation tasks in a * simple, chainable way. - * - * @param array + * + * @param array */ NodeList(array: any): any[]; } - module query { + namespace query { } /** @@ -1748,13 +1748,13 @@ declare module dojo { * * Add a function to execute on DOM content loaded and all requested modules have arrived and been evaluated. * In most cases, the domReady plug-in should suffice and this method should not be needed. - * + * * When called in a non-browser environment, just checks that all requested modules have arrived and been * evaluated. - * - * @param priority OptionalThe order in which to exec this callback relative to other callbacks, defaults to 1000 - * @param context The context in which to run execute callback, or a callback if not using context - * @param callback OptionalThe function to execute. + * + * @param priority OptionalThe order in which to exec this callback relative to other callbacks, defaults to 1000 + * @param context The context in which to run execute callback, or a callback if not using context + * @param callback OptionalThe function to execute. */ interface ready{(priority?: number, context?: any, callback?: Function): void} /** @@ -1762,7 +1762,7 @@ declare module dojo { * * This module sets has() flags based on the current browser. * It returns the has() function. - * + * */ interface sniff{(): void} /** @@ -1772,16 +1772,16 @@ declare module dojo { * Accepts promises but also transparently handles non-promises. If no * callbacks are provided returns a promise, regardless of the initial * value. Foreign promises are converted. - * + * * If callbacks are provided and the initial value is not a promise, * the callback is executed immediately with no error handling. Returns * a promise if the initial value is a promise, or the result of the * callback otherwise. - * - * @param valueOrPromise Either a regular value or an object with a then() method thatfollows the Promises/A specification. - * @param callback OptionalCallback to be invoked when the promise is resolved, or a non-promiseis received. - * @param errback OptionalCallback to be invoked when the promise is rejected. - * @param progback OptionalCallback to be invoked when the promise emits a progress update. + * + * @param valueOrPromise Either a regular value or an object with a then() method thatfollows the Promises/A specification. + * @param callback OptionalCallback to be invoked when the promise is resolved, or a non-promiseis received. + * @param errback OptionalCallback to be invoked when the promise is rejected. + * @param progback OptionalCallback to be invoked when the promise emits a progress update. */ interface when { (value: T|dojo.promise.Promise, callback: dojo.promise.Callback, errback?: any, progback?: any): U|dojo.promise.Promise } /** @@ -1793,15 +1793,15 @@ declare module dojo { * this new deferred will typically have its callback fired when all of the deferreds in * the given list have fired their own deferreds. The parameters fireOnOneCallback and * fireOnOneErrback, will fire before all the deferreds as appropriate - * + * */ class DeferredList { constructor(); /** * Gathers the results of the deferreds for packaging * as the parameters to the Deferred Lists' callback - * - * @param deferredList The deferred list from which this function gathers results. + * + * @param deferredList The deferred list from which this function gathers results. */ gatherResults(deferredList: dojo.DeferredList): any; } @@ -1814,13 +1814,13 @@ declare module dojo { * asynchronous operations. The deferred is the private interface * that should not be returned to calling code. That's what the * promise is for. See dojo/promise/Promise. - * - * @param canceler OptionalWill be invoked if the deferred is canceled. The cancelerreceives the reason the deferred was canceled as its argument.The deferred is rejected with its return value, or a newdojo/errors/CancelError instance. + * + * @param canceler OptionalWill be invoked if the deferred is canceled. The cancelerreceives the reason the deferred was canceled as its argument.The deferred is rejected with its return value, or a newdojo/errors/CancelError instance. */ class Deferred { constructor(canceler?: Function); /** - * + * */ "promise": dojo.promise.Promise; /** @@ -1829,29 +1829,29 @@ declare module dojo { * The deferred's (optional) canceler is invoked and the * deferred will be left in a rejected state. Can affect other * promises that originate with the same deferred. - * - * @param reason A message that may be sent to the deferred's canceler,explaining why it's being canceled. - * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be canceled. + * + * @param reason A message that may be sent to the deferred's canceler,explaining why it's being canceled. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be canceled. */ cancel(reason: any, strict?: boolean): any; /** * Checks whether the deferred has been canceled. - * + * */ isCanceled(): boolean; /** * Checks whether the deferred has been resolved or rejected. - * + * */ isFulfilled(): boolean; /** * Checks whether the deferred has been rejected. - * + * */ isRejected(): boolean; /** * Checks whether the deferred has been resolved. - * + * */ isResolved(): boolean; /** @@ -1859,39 +1859,39 @@ declare module dojo { * Emit a progress update on the deferred. Progress updates * can be used to communicate updates about the asynchronous * operation before it has finished. - * - * @param update The progress update. Passed to progbacks. - * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently no progress can be emitted. + * + * @param update The progress update. Passed to progbacks. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently no progress can be emitted. */ progress(update: any, strict?: boolean): dojo.promise.Promise; /** * Reject the deferred. * Reject the deferred, putting it in an error state. - * - * @param error The error result of the deferred. Passed to errbacks. - * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be rejected. + * + * @param error The error result of the deferred. Passed to errbacks. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be rejected. */ reject(error: any, strict?: boolean): any; /** * Resolve the deferred. * Resolve the deferred, putting it in a success state. - * - * @param value The result of the deferred. Passed to callbacks. - * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be resolved. + * + * @param value The result of the deferred. Passed to callbacks. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be resolved. */ resolve(value: any, strict?: boolean): dojo.promise.Promise; /** * Add new callbacks to the deferred. * Add new callbacks to the deferred. Callbacks can be added * before or after the deferred is fulfilled. - * - * @param callback OptionalCallback to be invoked when the promise is resolved.Receives the resolution value. - * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. - * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. + * + * @param callback OptionalCallback to be invoked when the promise is resolved.Receives the resolution value. + * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. + * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. */ then(callback?: Function, errback?: Function, progback?: Function): dojo.promise.Promise; /** - * + * */ toString(): String; } @@ -1901,20 +1901,20 @@ declare module dojo { * A class that can be used as a mixin or base class, * to add on() and emit() methods to a class * for listening for events and emitting events: - * + * */ class Evented { constructor(); /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: String, data: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: String, listener: {(e:any):void}): {remove: {():void}}; } @@ -1931,33 +1931,33 @@ declare module dojo { * functions in the dojo package, NodeLists generally make the * full power of Dojo available for DOM manipulation tasks in a * simple, chainable way. - * - * @param array + * + * @param array */ class NodeList { constructor(array: any); /** - * + * */ "events": any[]; /** * adds the specified class to every node in the list - * - * @param className A String class name to add, or several space-separated class names,or an array of class names. + * + * @param className A String class name to add, or several space-separated class names,or an array of class names. */ addClass(className: String): void; /** * adds the specified class to every node in the list - * - * @param className A String class name to add, or several space-separated class names,or an array of class names. + * + * @param className A String class name to add, or several space-separated class names,or an array of class names. */ addClass(className: any[]): void; /** * Animate the effects of adding a class to all nodes in this list. * see dojox.fx.addClass - * - * @param cssClass - * @param args + * + * @param cssClass + * @param args */ addClassFx(cssClass: any, args: any): {type:Function;value:any}; /** @@ -1967,9 +1967,9 @@ declare module dojo { * list, with an optional position argument. If no position * argument is provided, the content is appended to the end of * each item. - * - * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property */ addContent(content: String, position?: String): Function; /** @@ -1979,9 +1979,9 @@ declare module dojo { * list, with an optional position argument. If no position * argument is provided, the content is appended to the end of * each item. - * - * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property */ addContent(content: HTMLElement, position?: String): Function; /** @@ -1991,9 +1991,9 @@ declare module dojo { * list, with an optional position argument. If no position * argument is provided, the content is appended to the end of * each item. - * - * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property */ addContent(content: Object, position?: String): Function; /** @@ -2003,9 +2003,9 @@ declare module dojo { * list, with an optional position argument. If no position * argument is provided, the content is appended to the end of * each item. - * - * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property */ addContent(content: dojo.NodeList, position?: String): Function; /** @@ -2015,9 +2015,9 @@ declare module dojo { * list, with an optional position argument. If no position * argument is provided, the content is appended to the end of * each item. - * - * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property */ addContent(content: String, position?: number): Function; /** @@ -2027,9 +2027,9 @@ declare module dojo { * list, with an optional position argument. If no position * argument is provided, the content is appended to the end of * each item. - * - * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property */ addContent(content: HTMLElement, position?: number): Function; /** @@ -2039,9 +2039,9 @@ declare module dojo { * list, with an optional position argument. If no position * argument is provided, the content is appended to the end of * each item. - * - * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property */ addContent(content: Object, position?: number): Function; /** @@ -2051,36 +2051,36 @@ declare module dojo { * list, with an optional position argument. If no position * argument is provided, the content is appended to the end of * each item. - * - * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property + * + * @param content the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param position Optionalcan be one of:"last"||"end" (default)"first||"start""before""after""replace" (replaces nodes in this NodeList with new content)"only" (removes other children of the nodes so new content is the only child)or an offset in the childNodes property */ addContent(content: dojo.NodeList, position?: number): Function; /** * places any/all elements in queryOrListOrNode at a * position relative to the first element in this list. * Returns a dojo/NodeList of the adopted elements. - * - * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. - * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + * + * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. + * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property */ adopt(queryOrListOrNode: String, position?: String): any; /** * places any/all elements in queryOrListOrNode at a * position relative to the first element in this list. * Returns a dojo/NodeList of the adopted elements. - * - * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. - * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + * + * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. + * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property */ adopt(queryOrListOrNode: any[], position?: String): any; /** * places any/all elements in queryOrListOrNode at a * position relative to the first element in this list. * Returns a dojo/NodeList of the adopted elements. - * - * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. - * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + * + * @param queryOrListOrNode a DOM node or a query string or a query result.Represents the nodes to be adopted relative to thefirst element of this NodeList. + * @param position Optionalcan be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property */ adopt(queryOrListOrNode: HTMLElement, position?: String): any; /** @@ -2088,8 +2088,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ after(content: String): any; /** @@ -2097,8 +2097,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ after(content: HTMLElement): any; /** @@ -2106,34 +2106,34 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ after(content: NodeList): any; /** * Adds the nodes from the previous dojo/NodeList to the current dojo/NodeList. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * + * */ andSelf(): any; /** * Animate one or more CSS properties for all nodes in this list. * The returned animation object will already be playing when it * is returned. See the docs for dojo.anim for full details. - * - * @param properties the properties to animate. does NOT support the auto parameter like otherNodeList-fx methods. - * @param duration OptionalOptional. The time to run the animations for - * @param easing OptionalOptional. The easing function to use. - * @param onEnd OptionalA function to be called when the animation ends - * @param delay Optionalhow long to delay playing the returned animation + * + * @param properties the properties to animate. does NOT support the auto parameter like otherNodeList-fx methods. + * @param duration OptionalOptional. The time to run the animations for + * @param easing OptionalOptional. The easing function to use. + * @param onEnd OptionalA function to be called when the animation ends + * @param delay Optionalhow long to delay playing the returned animation */ anim(properties: Object, duration?: number, easing?: Function, onEnd?: Function, delay?: number): any; /** * Animate all elements of this NodeList across the properties specified. * syntax identical to dojo.animateProperty - * - * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. */ animateProperty(args?: Object): any; /** @@ -2141,8 +2141,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ append(content: String): any; /** @@ -2150,8 +2150,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ append(content: HTMLElement): any; /** @@ -2159,8 +2159,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ append(content: NodeList): any; /** @@ -2169,23 +2169,23 @@ declare module dojo { * The nodes in this NodeList will be cloned if the query * matches more than one element. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param query + * + * @param query */ appendTo(query: String): any; /** * Returns a new NodeList comprised of items in this NodeList * at the given index or indices. - * - * @param index One or more 0-based indices of items in the currentNodeList. A negative index will start at the end of thelist and go backwards. + * + * @param index One or more 0-based indices of items in the currentNodeList. A negative index will start at the end of thelist and go backwards. */ at(index: number[]): any; /** * gets or sets the DOM attribute for every element in the * NodeList. See also dojo/dom-attr - * - * @param property the attribute to get/set - * @param value Optionaloptional. The value to set the property to + * + * @param property the attribute to get/set + * @param value Optionaloptional. The value to set the property to */ attr(property: String, value?: String): any; /** @@ -2193,8 +2193,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ before(content: String): any; /** @@ -2202,8 +2202,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ before(content: HTMLElement): any; /** @@ -2211,8 +2211,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ before(content: NodeList): any; /** @@ -2220,14 +2220,14 @@ declare module dojo { * Optionally takes a query to filter the child elements. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query Optionala CSS selector. + * + * @param query Optionala CSS selector. */ children(query?: String): any; /** * Clones all the nodes in this NodeList and returns them as a new NodeList. * Only the DOM nodes are cloned, not any attached event handlers. - * + * */ clone(): any; /** @@ -2235,9 +2235,9 @@ declare module dojo { * dojo/NodeList if it matches the query. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query a CSS selector. - * @param root OptionalIf specified, query is relative to "root" rather than document body. + * + * @param query a CSS selector. + * @param root OptionalIf specified, query is relative to "root" rather than document body. */ closest(query: String, root?: String): any; /** @@ -2245,9 +2245,9 @@ declare module dojo { * dojo/NodeList if it matches the query. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query a CSS selector. - * @param root OptionalIf specified, query is relative to "root" rather than document body. + * + * @param query a CSS selector. + * @param root OptionalIf specified, query is relative to "root" rather than document body. */ closest(query: String, root?: HTMLElement): any; /** @@ -2257,41 +2257,41 @@ declare module dojo { * with the caveat that it returns a NodeList and not a * raw Array. For more details, see the Array.concat * docs - * - * @param item OptionalAny number of optional parameters may be passed in to bespliced into the NodeList + * + * @param item OptionalAny number of optional parameters may be passed in to bespliced into the NodeList */ concat(item: Object): any; /** * Attach event handlers to every item of the NodeList. Uses dojo.connect() * so event properties are normalized. - * + * * Application must manually require() "dojo/_base/connect" before using this method. - * - * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event - * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in - * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. + * + * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event + * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in + * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. */ connect(methodName: String, objOrFunc: Object, funcName?: String): void; /** * Attach event handlers to every item of the NodeList. Uses dojo.connect() * so event properties are normalized. - * + * * Application must manually require() "dojo/_base/connect" before using this method. - * - * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event - * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in - * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. + * + * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event + * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in + * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. */ connect(methodName: String, objOrFunc: Function, funcName?: String): void; /** * Attach event handlers to every item of the NodeList. Uses dojo.connect() * so event properties are normalized. - * + * * Application must manually require() "dojo/_base/connect" before using this method. - * - * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event - * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in - * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. + * + * @param methodName the name of the method to attach to. For DOM events, this should bethe lower-case name of the event + * @param objOrFunc if 2 arguments are passed (methodName, objOrFunc), objOrFunc shouldreference a function or be the name of the function in the globalnamespace to attach. If 3 arguments are provided(methodName, objOrFunc, funcName), objOrFunc must be the scope tolocate the bound function in + * @param funcName Optionaloptional. A string naming the function in objOrFunc to bind to theevent. May also be a function reference. */ connect(methodName: String, objOrFunc: String, funcName?: String): void; /** @@ -2300,7 +2300,7 @@ declare module dojo { * Returns the box objects of all elements in a node list as * an Array (not a NodeList). Acts like domGeom.coords, though assumes * the node passed is each node in this list. - * + * */ coords(): void; /** @@ -2309,13 +2309,13 @@ declare module dojo { * exposed publicly on dojo/NodeList, eg: as the result of a dojo/query call. * DIFFERS from jQuery.data in that when used as a getter, the entire list is ALWAYS * returned. EVEN WHEN THE LIST IS length == 1. - * + * * A single-node version of this function is provided as dojo._nodeData, which follows * the same signature, though expects a String ID or DomNode reference in the first * position, before key/value arguments. - * - * @param key OptionalIf an object, act as a setter and iterate over said object setting data items as defined.If a string, and value present, set the data for defined key to valueIf a string, and value absent, act as a getter, returning the data associated with said key - * @param value OptionalThe value to set for said key, provided key is a string (and not an object) + * + * @param key OptionalIf an object, act as a setter and iterate over said object setting data items as defined.If a string, and value present, set the data for defined key to valueIf a string, and value absent, act as a getter, returning the data associated with said key + * @param value OptionalThe value to set for said key, provided key is a string (and not an object) */ data(key?: Object, value?: any): any; /** @@ -2324,13 +2324,13 @@ declare module dojo { * exposed publicly on dojo/NodeList, eg: as the result of a dojo/query call. * DIFFERS from jQuery.data in that when used as a getter, the entire list is ALWAYS * returned. EVEN WHEN THE LIST IS length == 1. - * + * * A single-node version of this function is provided as dojo._nodeData, which follows * the same signature, though expects a String ID or DomNode reference in the first * position, before key/value arguments. - * - * @param key OptionalIf an object, act as a setter and iterate over said object setting data items as defined.If a string, and value present, set the data for defined key to valueIf a string, and value absent, act as a getter, returning the data associated with said key - * @param value OptionalThe value to set for said key, provided key is a string (and not an object) + * + * @param key OptionalIf an object, act as a setter and iterate over said object setting data items as defined.If a string, and value present, set the data for defined key to valueIf a string, and value absent, act as a getter, returning the data associated with said key + * @param value OptionalThe value to set for said key, provided key is a string (and not an object) */ data(key?: String, value?: any): any; /** @@ -2339,53 +2339,53 @@ declare module dojo { * that matches the selector. * Sets up event handlers that can catch events on any subnodes matching a given selector, * including nodes created after delegate() has been called. - * + * * This allows an app to setup a single event handler on a high level node, rather than many * event handlers on subnodes. For example, one onclick handler for a Tree widget, rather than separate * handlers for each node in the tree. * Since setting up many event handlers is expensive, this can increase performance. - * + * * Note that delegate() will not work for events that don't bubble, like focus. * onmouseenter/onmouseleave also don't currently work. - * - * @param selector CSS selector valid to dojo.query, like ".foo" or "div > span". Theselector is relative to the nodes in this NodeList, not the document root.For example myNodeList.delegate("> a", "onclick", ...) will catch events onanchor nodes which are (immediate) children of the nodes in myNodeList. - * @param eventName Standard event name used as an argument to dojo.connect, like "onclick". - * @param fn Callback function passed the event object, and where this == the node that matches the selector.That means that for example, after setting up a handler viadojo.query("body").delegate("fieldset", "onclick", ...)clicking on a fieldset or any nodes inside of a fieldset will be reportedas a click on the fieldset itself. + * + * @param selector CSS selector valid to dojo.query, like ".foo" or "div > span". Theselector is relative to the nodes in this NodeList, not the document root.For example myNodeList.delegate("> a", "onclick", ...) will catch events onanchor nodes which are (immediate) children of the nodes in myNodeList. + * @param eventName Standard event name used as an argument to dojo.connect, like "onclick". + * @param fn Callback function passed the event object, and where this == the node that matches the selector.That means that for example, after setting up a handler viadojo.query("body").delegate("fieldset", "onclick", ...)clicking on a fieldset or any nodes inside of a fieldset will be reportedas a click on the fieldset itself. */ delegate(selector: String, eventName: String, fn: Function): any; /** * Renders the specified template in each of the NodeList entries. - * - * @param template The template string or location - * @param context The context object or location + * + * @param template The template string or location + * @param context The context object or location */ dtl(template: dojox.dtl.__StringArgs , context: dojox.dtl.__ObjectArgs ): Function; /** * Renders the specified template in each of the NodeList entries. - * - * @param template The template string or location - * @param context The context object or location + * + * @param template The template string or location + * @param context The context object or location */ dtl(template: String, context: dojox.dtl.__ObjectArgs ): Function; /** * Renders the specified template in each of the NodeList entries. - * - * @param template The template string or location - * @param context The context object or location + * + * @param template The template string or location + * @param context The context object or location */ dtl(template: dojox.dtl.__StringArgs , context: Object): Function; /** * Renders the specified template in each of the NodeList entries. - * - * @param template The template string or location - * @param context The context object or location + * + * @param template The template string or location + * @param context The context object or location */ dtl(template: String, context: Object): Function; /** * clears all content from each node in the list. Effectively * equivalent to removing all child nodes from every item in * the list. - * + * */ empty(): any; /** @@ -2393,14 +2393,14 @@ declare module dojo { * that generated the current NodeList. * Returns the NodeList that generated the current NodeList. If there * is no parent NodeList, an empty NodeList is returned. - * + * */ end(): any; /** * Returns the even nodes in this dojo/NodeList as a dojo/NodeList. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * + * */ even(): any; /** @@ -2409,21 +2409,21 @@ declare module dojo { * Takes the same structure of arguments and returns as * dojo/_base/array.every() with the caveat that the passed array is * implicitly this NodeList - * - * @param callback the callback - * @param thisObject Optionalthe context + * + * @param callback the callback + * @param thisObject Optionalthe context */ every(callback: Function, thisObject?: Object): any; /** * fade in all elements of this NodeList via dojo.fadeIn - * - * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. */ fadeIn(args?: Object): any; /** * fade out all elements of this NodeList via dojo.fadeOut - * - * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. */ fadeOut(args?: Object): any; /** @@ -2431,8 +2431,8 @@ declare module dojo { * in Dojo via dojo.filter) to support passing a simple * string filter in addition to supporting filtering function * objects. - * - * @param filter If a string, a CSS rule like ".thinger" or "div > span". + * + * @param filter If a string, a CSS rule like ".thinger" or "div > span". */ filter(filter: String): any; /** @@ -2440,24 +2440,24 @@ declare module dojo { * in Dojo via dojo.filter) to support passing a simple * string filter in addition to supporting filtering function * objects. - * - * @param filter If a string, a CSS rule like ".thinger" or "div > span". + * + * @param filter If a string, a CSS rule like ".thinger" or "div > span". */ filter(filter: Function): any; /** * Returns the first node in this dojo/NodeList as a dojo/NodeList. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * + * */ first(): any; /** * see dojo/_base/array.forEach(). The primary difference is that the acted-on * array is implicitly this NodeList. If you want the option to break out * of the forEach loop, use every() or some() instead. - * - * @param callback - * @param thisObj + * + * @param callback + * @param thisObj */ forEach(callback: any, thisObj: any): Function; /** @@ -2474,8 +2474,8 @@ declare module dojo { * The nodes represented by the value argument will be cloned if more than one * node is in this NodeList. The nodes in this NodeList are returned in the "set" * usage of this method, not the HTML that was inserted. - * - * @param value Optional + * + * @param value Optional */ html(value?: String): any; /** @@ -2492,8 +2492,8 @@ declare module dojo { * The nodes represented by the value argument will be cloned if more than one * node is in this NodeList. The nodes in this NodeList are returned in the "set" * usage of this method, not the HTML that was inserted. - * - * @param value Optional + * + * @param value Optional */ html(value?: HTMLElement): any; /** @@ -2510,8 +2510,8 @@ declare module dojo { * The nodes represented by the value argument will be cloned if more than one * node is in this NodeList. The nodes in this NodeList are returned in the "set" * usage of this method, not the HTML that was inserted. - * - * @param value Optional + * + * @param value Optional */ html(value?: NodeList): any; /** @@ -2520,9 +2520,9 @@ declare module dojo { * For more details on the behavior of indexOf, see Mozilla's * indexOf * docs - * - * @param value The value to search for. - * @param fromIndex OptionalThe location to start searching from. Optional. Defaults to 0. + * + * @param value The value to search for. + * @param fromIndex OptionalThe location to start searching from. Optional. Defaults to 0. */ indexOf(value: Object, fromIndex: number): any; /** @@ -2539,8 +2539,8 @@ declare module dojo { * The nodes represented by the value argument will be cloned if more than one * node is in this NodeList. The nodes in this NodeList are returned in the "set" * usage of this method, not the HTML that was inserted. - * - * @param value Optional + * + * @param value Optional */ innerHTML(value?: String): any; /** @@ -2557,8 +2557,8 @@ declare module dojo { * The nodes represented by the value argument will be cloned if more than one * node is in this NodeList. The nodes in this NodeList are returned in the "set" * usage of this method, not the HTML that was inserted. - * - * @param value Optional + * + * @param value Optional */ innerHTML(value?: HTMLElement): any; /** @@ -2575,8 +2575,8 @@ declare module dojo { * The nodes represented by the value argument will be cloned if more than one * node is in this NodeList. The nodes in this NodeList are returned in the "set" * usage of this method, not the HTML that was inserted. - * - * @param value Optional + * + * @param value Optional */ innerHTML(value?: NodeList): any; /** @@ -2585,8 +2585,8 @@ declare module dojo { * The nodes in this NodeList will be cloned if the query * matches more than one element. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param query + * + * @param query */ insertAfter(query: String): any; /** @@ -2595,33 +2595,33 @@ declare module dojo { * The nodes in this NodeList will be cloned if the query * matches more than one element. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param query + * + * @param query */ insertBefore(query: String): any; /** * Create a new instance of a specified class, using the * specified properties and each node in the NodeList as a * srcNodeRef. - * - * @param declaredClass - * @param properties Optional + * + * @param declaredClass + * @param properties Optional */ instantiate(declaredClass: String, properties?: Object): any; /** * Create a new instance of a specified class, using the * specified properties and each node in the NodeList as a * srcNodeRef. - * - * @param declaredClass - * @param properties Optional + * + * @param declaredClass + * @param properties Optional */ instantiate(declaredClass: Object, properties?: Object): any; /** * Returns the last node in this dojo/NodeList as a dojo/NodeList. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * + * */ last(): any; /** @@ -2630,23 +2630,23 @@ declare module dojo { * For more details on the behavior of lastIndexOf, see * Mozilla's lastIndexOf * docs - * - * @param value The value to search for. - * @param fromIndex OptionalThe location to start searching from. Optional. Defaults to 0. + * + * @param value The value to search for. + * @param fromIndex OptionalThe location to start searching from. Optional. Defaults to 0. */ lastIndexOf(value: Object, fromIndex?: number): any; /** * see dojo/_base/array.map(). The primary difference is that the acted-on * array is implicitly this NodeList and the return is a * NodeList (a subclass of Array) - * - * @param func - * @param obj Optional + * + * @param func + * @param obj Optional */ map(func: Function, obj?: Function): any; /** * Returns margin-box size of nodes - * + * */ marginBox(): void; /** @@ -2654,8 +2654,8 @@ declare module dojo { * Optionally takes a query to filter the next elements. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query Optionala CSS selector. + * + * @param query Optionala CSS selector. */ next(query?: String): any; /** @@ -2663,29 +2663,29 @@ declare module dojo { * Optionally takes a query to filter the sibling elements. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query Optionala CSS selector. + * + * @param query Optionala CSS selector. */ nextAll(query?: String): any; /** * Returns the odd nodes in this dojo/NodeList as a dojo/NodeList. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * + * */ odd(): any; /** * Listen for events on the nodes in the NodeList. Basic usage is: - * - * @param eventName - * @param listener + * + * @param eventName + * @param listener */ on(eventName: any, listener: any): any; /** * removes elements in this list that match the filter * from their parents and returns them as a new NodeList. - * - * @param filter OptionalCSS selector like ".foo" or "div > span" + * + * @param filter OptionalCSS selector like ".foo" or "div > span" */ orphan(filter?: String): any; /** @@ -2693,8 +2693,8 @@ declare module dojo { * Optionally takes a query to filter the parent elements. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query Optionala CSS selector. + * + * @param query Optionala CSS selector. */ parent(query?: String): any; /** @@ -2702,31 +2702,31 @@ declare module dojo { * Optionally takes a query to filter the child elements. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query Optionala CSS selector. + * + * @param query Optionala CSS selector. */ parents(query?: String): any; /** * places elements of this node list relative to the first element matched * by queryOrNode. Returns the original NodeList. See: dojo/dom-construct.place - * - * @param queryOrNode may be a string representing any valid CSS3 selector or a DOM node.In the selector case, only the first matching element will be usedfor relative positioning. - * @param position can be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + * + * @param queryOrNode may be a string representing any valid CSS3 selector or a DOM node.In the selector case, only the first matching element will be usedfor relative positioning. + * @param position can be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property */ place(queryOrNode: String, position: String): any; /** * places elements of this node list relative to the first element matched * by queryOrNode. Returns the original NodeList. See: dojo/dom-construct.place - * - * @param queryOrNode may be a string representing any valid CSS3 selector or a DOM node.In the selector case, only the first matching element will be usedfor relative positioning. - * @param position can be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property + * + * @param queryOrNode may be a string representing any valid CSS3 selector or a DOM node.In the selector case, only the first matching element will be usedfor relative positioning. + * @param position can be one of:"last" (default)"first""before""after""only""replace"or an offset in the childNodes property */ place(queryOrNode: HTMLElement, position: String): any; /** * Returns border-box objects (x/y/w/h) of all elements in a node list * as an Array (not a NodeList). Acts like dojo/dom-geometry-position, though * assumes the node passed is each node in this list. - * + * */ position(): any; /** @@ -2734,8 +2734,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ prepend(content: String): any; /** @@ -2743,8 +2743,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ prepend(content: HTMLElement): any; /** @@ -2752,8 +2752,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ prepend(content: NodeList): any; /** @@ -2762,8 +2762,8 @@ declare module dojo { * The nodes in this NodeList will be cloned if the query * matches more than one element. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param query + * + * @param query */ prependTo(query: String): any; /** @@ -2771,8 +2771,8 @@ declare module dojo { * Optionally takes a query to filter the previous elements. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query Optionala CSS selector. + * + * @param query Optionala CSS selector. */ prev(query?: String): any; /** @@ -2782,55 +2782,55 @@ declare module dojo { * be the node closest to the original node/NodeList. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query Optionala CSS selector. + * + * @param query Optionala CSS selector. */ prevAll(query?: String): any; /** * Returns a new list whose members match the passed query, * assuming elements of the current NodeList as the root for * each search. - * - * @param queryStr + * + * @param queryStr */ query(queryStr: String): any; /** * removes elements in this list that match the filter * from their parents and returns them as a new NodeList. - * - * @param filter OptionalCSS selector like ".foo" or "div > span" + * + * @param filter OptionalCSS selector like ".foo" or "div > span" */ remove(filter?: String): any; /** * Removes an attribute from each node in the list. - * - * @param name the name of the attribute to remove + * + * @param name the name of the attribute to remove */ removeAttr(name: String): void; /** * removes the specified class from every node in the list - * - * @param className OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param className OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ removeClass(className?: String): any; /** * removes the specified class from every node in the list - * - * @param className OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param className OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ removeClass(className: any[]): any; /** * Animate the effect of removing a class to all nodes in this list. * see dojox.fx.removeClass - * - * @param cssClass - * @param args + * + * @param cssClass + * @param args */ removeClassFx(cssClass: any, args: any): {type:Function;value:any}; /** * Remove the data associated with these nodes. - * - * @param key OptionalIf omitted, clean all data for this node.If passed, remove the data item found at key + * + * @param key OptionalIf omitted, clean all data for this node.If passed, remove the data item found at key */ removeData(key?: String): void; /** @@ -2839,40 +2839,40 @@ declare module dojo { * The nodes in this NodeList will be cloned if the query * matches more than one element. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param query + * + * @param query */ replaceAll(query: String): any; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling removeClass() and addClass() - * - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(addClassStr: String, removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling removeClass() and addClass() - * - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(addClassStr: any[], removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling removeClass() and addClass() - * - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(addClassStr: String, removeClassStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling removeClass() and addClass() - * - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(addClassStr: any[], removeClassStr?: any[]): void; /** @@ -2880,8 +2880,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ replaceWith(content: String): any; /** @@ -2889,8 +2889,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ replaceWith(content: HTMLElement): any; /** @@ -2898,8 +2898,8 @@ declare module dojo { * The content will be cloned if the length of NodeList * is greater than 1. Only the DOM nodes are cloned, not * any attached event handlers. - * - * @param content + * + * @param content */ replaceWith(content: NodeList): any; /** @@ -2907,8 +2907,8 @@ declare module dojo { * Optionally takes a query to filter the sibling elements. * .end() can be used on the returned dojo/NodeList to get back to the * original dojo/NodeList. - * - * @param query Optionala CSS selector. + * + * @param query Optionala CSS selector. */ siblings(query?: String): any; /** @@ -2917,15 +2917,15 @@ declare module dojo { * with the caveat that it returns a dojo/NodeList and not a * raw Array. For more details, see Mozilla's slice * documentation - * - * @param begin Can be a positive or negative integer, with positiveintegers noting the offset to begin at, and negativeintegers denoting an offset from the end (i.e., to the leftof the end) - * @param end OptionalOptional parameter to describe what position relative tothe NodeList's zero index to end the slice at. Like begin,can be positive or negative. + * + * @param begin Can be a positive or negative integer, with positiveintegers noting the offset to begin at, and negativeintegers denoting an offset from the end (i.e., to the leftof the end) + * @param end OptionalOptional parameter to describe what position relative tothe NodeList's zero index to end the slice at. Like begin,can be positive or negative. */ slice(begin: number, end?: number): any; /** * slide all elements of the node list to the specified place via dojo/fx.slideTo() - * - * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. */ slideTo(args?: Object): any; /** @@ -2934,9 +2934,9 @@ declare module dojo { * implicitly this NodeList. See dojo/_base/array.some() and Mozilla's * Array.some * documentation. - * - * @param callback the callback - * @param thisObject Optionalthe context + * + * @param callback the callback + * @param thisObject Optionalthe context */ some(callback: Function, thisObject?: Object): any; /** @@ -2949,46 +2949,46 @@ declare module dojo { * documentation * For backwards compatibility, calling .end() on the spliced NodeList * does not return the original NodeList -- splice alters the NodeList in place. - * - * @param index begin can be a positive or negative integer, with positiveintegers noting the offset to begin at, and negativeintegers denoting an offset from the end (i.e., to the leftof the end) - * @param howmany OptionalOptional parameter to describe what position relative tothe NodeList's zero index to end the slice at. Like begin,can be positive or negative. - * @param item OptionalAny number of optional parameters may be passed in to bespliced into the NodeList + * + * @param index begin can be a positive or negative integer, with positiveintegers noting the offset to begin at, and negativeintegers denoting an offset from the end (i.e., to the leftof the end) + * @param howmany OptionalOptional parameter to describe what position relative tothe NodeList's zero index to end the slice at. Like begin,can be positive or negative. + * @param item OptionalAny number of optional parameters may be passed in to bespliced into the NodeList */ splice(index: number, howmany?: number, item?: Object[]): any; /** * gets or sets the CSS property for every element in the NodeList - * - * @param property the CSS property to get/set, in JavaScript notation("lineHieght" instead of "line-height") - * @param value Optionaloptional. The value to set the property to + * + * @param property the CSS property to get/set, in JavaScript notation("lineHieght" instead of "line-height") + * @param value Optionaloptional. The value to set the property to */ style(property: String, value?: String): any; /** * allows setting the text value of each node in the NodeList, * if there is a value passed in, otherwise, returns the text value for all the * nodes in the NodeList in one string. - * - * @param value + * + * @param value */ text(value: String): any; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. - * - * @param className the CSS class to add - * @param condition OptionalIf passed, true means to add the class, false means to remove. + * + * @param className the CSS class to add + * @param condition OptionalIf passed, true means to add the class, false means to remove. */ toggleClass(className: String, condition?: boolean): void; /** * Animate the effect of adding or removing a class to all nodes in this list. * see dojox.fx.toggleClass - * - * @param cssClass - * @param force - * @param args + * + * @param cssClass + * @param force + * @param args */ toggleClassFx(cssClass: any, force: any, args: any): {type:Function;value:any}; /** - * + * */ toString(): any; /** @@ -2996,8 +2996,8 @@ declare module dojo { * NodeList, or properly selecting/checking the right value for radio/checkbox/select * elements. If no value is passed, the value of the first node in this NodeList * is returned. - * - * @param value + * + * @param value */ val(value: String): any; /** @@ -3005,20 +3005,20 @@ declare module dojo { * NodeList, or properly selecting/checking the right value for radio/checkbox/select * elements. If no value is passed, the value of the first node in this NodeList * is returned. - * - * @param value + * + * @param value */ val(value: any[]): any; /** * wipe in all elements of this NodeList via dojo/fx.wipeIn() - * - * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. */ wipeIn(args?: Object): any; /** * wipe out all elements of this NodeList via dojo/fx.wipeOut() - * - * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. + * + * @param args OptionalAdditional dojo/_base/fx.Animation arguments to mix into this set with the addition ofan auto parameter. */ wipeOut(args?: Object): any; /** @@ -3026,8 +3026,8 @@ declare module dojo { * html will be cloned if the NodeList has more than one * element. Only DOM nodes are cloned, not any attached * event handlers. - * - * @param html + * + * @param html */ wrap(html: String): any; /** @@ -3035,22 +3035,22 @@ declare module dojo { * html will be cloned if the NodeList has more than one * element. Only DOM nodes are cloned, not any attached * event handlers. - * - * @param html + * + * @param html */ wrap(html: HTMLElement): any; /** * Insert html where the first node in this NodeList lives, then place all * nodes in this NodeList as the child of the html. - * - * @param html + * + * @param html */ wrapAll(html: String): any; /** * Insert html where the first node in this NodeList lives, then place all * nodes in this NodeList as the child of the html. - * - * @param html + * + * @param html */ wrapAll(html: HTMLElement): any; /** @@ -3058,8 +3058,8 @@ declare module dojo { * html will be cloned if the NodeList has more than one * element. Only DOM nodes are cloned, not any attached * event handlers. - * - * @param html + * + * @param html */ wrapInner(html: String): any; /** @@ -3067,16 +3067,16 @@ declare module dojo { * html will be cloned if the NodeList has more than one * element. Only DOM nodes are cloned, not any attached * event handlers. - * - * @param html + * + * @param html */ wrapInner(html: HTMLElement): any; } - module NodeList { + namespace NodeList { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/NodeList._nodeDataCache.html * - * + * */ interface _nodeDataCache { } @@ -3087,14 +3087,14 @@ declare module dojo { * * Base class for objects that provide named properties with optional getter/setter * control and the ability to watch for property changes - * + * * The class also provides the functionality to auto-magically manage getters * and setters for object attributes/properties. - * - * Getters and Setters should follow the format of _xxxGetter or _xxxSetter where - * the xxx is a name of the attribute to handle. So an attribute of "foo" + * + * Getters and Setters should follow the format of _xxxGetter or _xxxSetter where + * the xxx is a name of the attribute to handle. So an attribute of "foo" * would have a custom getter of _fooGetter and a custom setter of _fooSetter. - * + * */ class Stateful { constructor(); @@ -3104,29 +3104,29 @@ declare module dojo { * Get a named property on a Stateful object. The property may * potentially be retrieved via a getter method in subclasses. In the base class * this just retrieves the object's property. - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: String): any; /** - * - * @param params Optional + * + * @param params Optional */ postscript(params?: Object): void; /** * Set a property on a Stateful instance * Sets named properties on a stateful object and notifies any watchers of * the property. A programmatic setter may be defined in subclasses. - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: String, value: Object): any; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; } @@ -3137,41 +3137,41 @@ declare module dojo { * Create a feature-rich constructor from compact notation. * Create a constructor using a compact notation for inheritance and * prototype extension. - * + * * Mixin ancestors provide a type of multiple inheritance. * Prototypes of mixin ancestors are copied to the new class: * changes to mixin prototypes will not affect classes to which * they have been mixed in. - * + * * Ancestors can be compound classes created by this version of * declare(). In complex cases all base classes are going to be * linearized according to C3 MRO algorithm * (see http://www.python.org/download/releases/2.3/mro/ for more * details). - * + * * "className" is cached in "declaredClass" property of the new class, * if it was supplied. The immediate super class will be cached in * "superclass" property of the new class. - * + * * Methods in "props" will be copied and modified: "nom" property * (the declared name of the method) will be added to all copied * functions to help identify them for the internal machinery. Be * very careful, while reusing methods: if you use the same * function under different names, it can produce errors in some * cases. - * + * * It is possible to use constructors created "manually" (without * declare()) as bases. They will be called as usual during the * creation of an instance, their methods will be chained, and even * called by "this.inherited()". - * + * * Special property "-chains-" governs how to chain methods. It is * a dictionary, which uses method names as keys, and hint strings * as values. If a hint string is "after", this method will be * called after methods of its base classes. If a hint string is * "before", this method will be called before methods of its base * classes. - * + * * If "constructor" is not mentioned in "-chains-" property, it will * be chained using the legacy mode: using "after" chaining, * calling preamble() method before each constructor, if available, @@ -3183,27 +3183,27 @@ declare module dojo { * are not going to be chained in any way, and programmer will call * them manually using this.inherited(). In the latter case * postscript() will be called after the construction. - * + * * All chaining hints are "inherited" from base classes and * potentially can be overridden. Be very careful when overriding * hints! Make sure that all chained methods can work in a proposed * manner of chaining. - * + * * Once a method was chained, it is impossible to unchain it. The * only exception is "constructor". You don't need to define a * method in order to supply a chaining hint. - * + * * If a method is chained, it cannot use this.inherited() because * all other methods in the hierarchy will be called automatically. - * + * * Usually constructors and initializers of any kind are chained * using "after" and destructors of any kind are chained as * "before". Note that chaining assumes that chained methods do not * return any value: any returned value will be discarded. - * - * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. - * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). - * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". + * + * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. + * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). + * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ interface declare { (className?: String, superclass?: any, props?: Object): any} /** @@ -3212,41 +3212,41 @@ declare module dojo { * Create a feature-rich constructor from compact notation. * Create a constructor using a compact notation for inheritance and * prototype extension. - * + * * Mixin ancestors provide a type of multiple inheritance. * Prototypes of mixin ancestors are copied to the new class: * changes to mixin prototypes will not affect classes to which * they have been mixed in. - * + * * Ancestors can be compound classes created by this version of * declare(). In complex cases all base classes are going to be * linearized according to C3 MRO algorithm * (see http://www.python.org/download/releases/2.3/mro/ for more * details). - * + * * "className" is cached in "declaredClass" property of the new class, * if it was supplied. The immediate super class will be cached in * "superclass" property of the new class. - * + * * Methods in "props" will be copied and modified: "nom" property * (the declared name of the method) will be added to all copied * functions to help identify them for the internal machinery. Be * very careful, while reusing methods: if you use the same * function under different names, it can produce errors in some * cases. - * + * * It is possible to use constructors created "manually" (without * declare()) as bases. They will be called as usual during the * creation of an instance, their methods will be chained, and even * called by "this.inherited()". - * + * * Special property "-chains-" governs how to chain methods. It is * a dictionary, which uses method names as keys, and hint strings * as values. If a hint string is "after", this method will be * called after methods of its base classes. If a hint string is * "before", this method will be called before methods of its base * classes. - * + * * If "constructor" is not mentioned in "-chains-" property, it will * be chained using the legacy mode: using "after" chaining, * calling preamble() method before each constructor, if available, @@ -3258,27 +3258,27 @@ declare module dojo { * are not going to be chained in any way, and programmer will call * them manually using this.inherited(). In the latter case * postscript() will be called after the construction. - * + * * All chaining hints are "inherited" from base classes and * potentially can be overridden. Be very careful when overriding * hints! Make sure that all chained methods can work in a proposed * manner of chaining. - * + * * Once a method was chained, it is impossible to unchain it. The * only exception is "constructor". You don't need to define a * method in order to supply a chaining hint. - * + * * If a method is chained, it cannot use this.inherited() because * all other methods in the hierarchy will be called automatically. - * + * * Usually constructors and initializers of any kind are chained * using "after" and destructors of any kind are chained as * "before". Note that chaining assumes that chained methods do not * return any value: any returned value will be discarded. - * - * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. - * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). - * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". + * + * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. + * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). + * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ interface declare{(className?: String, superclass?: any[], props?: Object): any} interface declare { @@ -3288,27 +3288,27 @@ declare module dojo { * This function is used to mix in properties like lang.mixin does, * but it skips a constructor property and decorates functions like * declare() does. - * + * * It is meant to be used with classes and objects produced with * declare. Functions mixed in with dojo.safeMixin can use * this.inherited() like normal methods. - * + * * This function is used to implement extend() method of a constructor * produced with declare(). - * - * @param target Target object to accept new properties. - * @param source Source object for new properties. + * + * @param target Target object to accept new properties. + * @param source Source object for new properties. */ safeMixin(target: Object, source: Object): Object; } - module declare { + namespace declare { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/declare.__DeclareCreatedObject.html * * dojo/_base/declare() returns a constructor C. new C() returns an Object with the following * methods, in addition to the methods and properties specified via the arguments passed to declare(). - * + * */ class __DeclareCreatedObject { constructor(); @@ -3316,14 +3316,14 @@ declare module dojo { * Create a subclass of the declared class from a list of base classes. * Create a constructor using a compact notation for inheritance and * prototype extension. - * + * * Mixin ancestors provide a type of multiple inheritance. * Prototypes of mixin ancestors are copied to the new class: * changes to mixin prototypes will not affect classes to which * they have been mixed in. - * - * @param mixins Specifies a list of bases (the left-most one is the most deepestbase). - * @param props OptionalAn optional object whose properties are copied to the created prototype. + * + * @param mixins Specifies a list of bases (the left-most one is the most deepestbase). + * @param props OptionalAn optional object whose properties are copied to the created prototype. */ createSubclass(mixins: Function[], props?: Object): dojo._base.declare.__DeclareCreatedObject; /** @@ -3333,13 +3333,13 @@ declare module dojo { * declare(). * Adds source properties to the constructor's prototype. It can * override existing properties. - * + * * This method is similar to dojo.extend function, but it is specific * to constructors produced by declare(). It is implemented * using dojo.safeMixin, and it skips a constructor property, * and properly decorates copied functions. - * - * @param source Source object which properties are going to be copied to theconstructor's prototype. + * + * @param source Source object which properties are going to be copied to theconstructor's prototype. */ extend(source: Object): void; /** @@ -3347,9 +3347,9 @@ declare module dojo { * This method is a convenience method for "this.inherited()". * It uses the same algorithm but instead of executing a super * method, it returns it, or "undefined" if not found. - * - * @param name OptionalThe optional method name. Should be the same as the caller'sname. Usually "name" is specified in complex dynamic cases, whenthe calling method was dynamically added, undecorated bydeclare(), and it cannot be determined. - * @param args The caller supply this argument, which should be the original"arguments". + * + * @param name OptionalThe optional method name. Should be the same as the caller'sname. Usually "name" is specified in complex dynamic cases, whenthe calling method was dynamically added, undecorated bydeclare(), and it cannot be determined. + * @param args The caller supply this argument, which should be the original"arguments". */ getInherited(name?: String, args?: Object): any; /** @@ -3359,28 +3359,28 @@ declare module dojo { * used for manually controlled chaining. Consider using the regular * chaining, because it is faster. Use "this.inherited()" only in * complex cases. - * + * * This method cannot me called from automatically chained * constructors including the case of a special (legacy) * constructor chaining. It cannot be called from chained methods. - * + * * If "this.inherited()" cannot find the next-in-chain method, it * does nothing and returns "undefined". The last method in chain * can be a default method implemented in Object, which will be * called last. - * + * * If "name" is specified, it is assumed that the method that * received "args" is the parent method for this call. It is looked * up in the chain list and if it is found the next-in-chain method * is called. If it is not found, the first-in-chain method is * called. - * + * * If "name" is not specified, it will be derived from the calling * method (using a methoid property "nom"). - * - * @param name OptionalThe optional method name. Should be the same as the caller'sname. Usually "name" is specified in complex dynamic cases, whenthe calling method was dynamically added, undecorated bydeclare(), and it cannot be determined. - * @param args The caller supply this argument, which should be the original"arguments". - * @param newArgs OptionalIf "true", the found function will be returned withoutexecuting it.If Array, it will be used to call a super method. Otherwise"args" will be used. + * + * @param name OptionalThe optional method name. Should be the same as the caller'sname. Usually "name" is specified in complex dynamic cases, whenthe calling method was dynamically added, undecorated bydeclare(), and it cannot be determined. + * @param args The caller supply this argument, which should be the original"arguments". + * @param newArgs OptionalIf "true", the found function will be returned withoutexecuting it.If Array, it will be used to call a super method. Otherwise"args" will be used. */ inherited(name?: String, args?: Object, newArgs?: Object): any; /** @@ -3389,8 +3389,8 @@ declare module dojo { * This method is used with instances of classes produced with * declare() to determine of they support a certain interface or * not. It models "instanceof" operator. - * - * @param cls Class constructor. + * + * @param cls Class constructor. */ isInstanceOf(cls: Function): any; } @@ -3414,12 +3414,12 @@ declare module dojo { * async functions return promises, the concerns of making the call are * separated from the concerns of asynchronous interaction (which are * handled by the promise). - * + * * The Deferred is a type of promise that provides methods for fulfilling the * promise with a successful result or an error. The most important method for * working with Dojo's promises is the then() method, which follows the * CommonJS proposed promise API. An example of using a Dojo promise: - * + * * var resultingPromise = someAsyncOperation.then(function(result){ * ... handle result ... * }, @@ -3428,16 +3428,16 @@ declare module dojo { * }); * The .then() call returns a new promise that represents the result of the * execution of the callback. The callbacks will never affect the original promises value. - * + * * The Deferred instances also provide the following functions for backwards compatibility: - * + * * addCallback(handler) * addErrback(handler) * callback(result) * errback(result) * Callbacks are allowed to return promises themselves, so * you can build complicated sequences of events with ease. - * + * * The creator of the Deferred may specify a canceller. The canceller * is a function that will be called if Deferred.cancel is called * before the Deferred fires. You can use this to implement clean @@ -3445,97 +3445,97 @@ declare module dojo { * deferred with a CancelledError (unless your canceller returns * another kind of error), so the errbacks should be prepared to * handle that error for cancellable Deferreds. - * - * @param canceller Optional + * + * @param canceller Optional */ interface Deferred{(canceller?: Function): void} interface Deferred { /** - * + * */ fired: number; /** - * + * */ promise: Object; /** * Add handler as both successful callback and error callback for this deferred instance. - * - * @param callback + * + * @param callback */ addBoth(callback: Function): any; /** * Adds successful callback for this deferred instance. - * - * @param callback + * + * @param callback */ addCallback(callback: Function): any; /** * Adds callback and error callback for this deferred instance. - * - * @param callback OptionalThe callback attached to this deferred object. - * @param errback OptionalThe error callback attached to this deferred object. + * + * @param callback OptionalThe callback attached to this deferred object. + * @param errback OptionalThe error callback attached to this deferred object. */ addCallbacks(callback?: Function, errback?: Function): any; /** * Adds error callback for this deferred instance. - * - * @param errback + * + * @param errback */ addErrback(errback: Function): any; /** * Fulfills the Deferred instance successfully with the provide value - * - * @param value + * + * @param value */ callback(value: any): void; /** * Cancels the asynchronous operation - * + * */ cancel(): void; /** * Fulfills the Deferred instance as an error with the provided error - * - * @param error + * + * @param error */ errback(error: any): void; /** * Checks whether the deferred has been canceled. - * + * */ isCanceled(): boolean; /** * Checks whether the deferred has been resolved or rejected. - * + * */ isFulfilled(): boolean; /** * Checks whether the deferred has been rejected. - * + * */ isRejected(): boolean; /** * Checks whether the deferred has been resolved. - * + * */ isResolved(): boolean; /** * Send progress events to all listeners - * - * @param update + * + * @param update */ progress(update: any): void; /** * Fulfills the Deferred instance as an error with the provided error - * - * @param error + * + * @param error */ reject(error: any): void; /** * Fulfills the Deferred instance successfully with the provide value - * - * @param value + * + * @param value */ resolve(value: any): void; /** @@ -3546,16 +3546,16 @@ declare module dojo { * and non-function values are ignored. The progressHandler is not only an * optional argument, but progress events are purely optional. Promise * providers are not required to ever create progress events. - * + * * This function will return a new promise that is fulfilled when the given * fulfilledHandler or errorHandler callback is finished. This allows promise * operations to be chained together. The value returned from the callback * handler is the fulfillment value for the returned promise. If the callback * throws an error, the returned promise will be moved to failed state. - * - * @param resolvedCallback Optional - * @param errorCallback Optional - * @param progressCallback Optional + * + * @param resolvedCallback Optional + * @param errorCallback Optional + * @param progressCallback Optional */ then(resolvedCallback?: Function, errorCallback?: Function, progressCallback?: Function): any; /** @@ -3563,123 +3563,123 @@ declare module dojo { * Accepts promises but also transparently handles non-promises. If no * callbacks are provided returns a promise, regardless of the initial * value. Foreign promises are converted. - * + * * If callbacks are provided and the initial value is not a promise, * the callback is executed immediately with no error handling. Returns * a promise if the initial value is a promise, or the result of the * callback otherwise. - * - * @param valueOrPromise Either a regular value or an object with a then() method thatfollows the Promises/A specification. - * @param callback OptionalCallback to be invoked when the promise is resolved, or a non-promiseis received. - * @param errback OptionalCallback to be invoked when the promise is rejected. - * @param progback OptionalCallback to be invoked when the promise emits a progress update. + * + * @param valueOrPromise Either a regular value or an object with a then() method thatfollows the Promises/A specification. + * @param callback OptionalCallback to be invoked when the promise is resolved, or a non-promiseis received. + * @param errback OptionalCallback to be invoked when the promise is rejected. + * @param progback OptionalCallback to be invoked when the promise emits a progress update. */ when(valueOrPromise?: any, callback?: Function, errback?: Function, progback?: Function): any; } - module Deferred { + namespace Deferred { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.html * - * + * */ interface url{(): void} interface url { /** - * + * */ authority: Object; /** - * + * */ fragment: Object; /** - * + * */ host: Object; /** - * + * */ password: Object; /** - * + * */ path: Object; /** - * + * */ port: Object; /** - * + * */ query: Object; /** - * + * */ scheme: Object; /** - * + * */ uri: Object; /** - * + * */ user: Object; /** - * + * */ toString(): void; } - module url { + namespace url { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.authority.html * - * + * */ interface authority { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.password.html * - * + * */ interface password { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.port.html * - * + * */ interface port { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.fragment.html * - * + * */ interface fragment { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.query.html * - * + * */ interface query { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.user.html * - * + * */ interface user { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/url.scheme.html * - * + * */ interface scheme { } @@ -3693,23 +3693,23 @@ declare module dojo { * See also dojo.xhrGet(), xhrPost(), xhrPut() and dojo.xhrDelete() for shortcuts * for those HTTP methods. There are also methods for "raw" PUT and POST methods * via dojo.rawXhrPut() and dojo.rawXhrPost() respectively. - * - * @param method HTTP method to be used, such as GET, POST, PUT, DELETE. Should be uppercase. - * @param args - * @param hasBody OptionalIf the request has an HTTP body, then pass true for hasBody. + * + * @param method HTTP method to be used, such as GET, POST, PUT, DELETE. Should be uppercase. + * @param args + * @param hasBody OptionalIf the request has an HTTP body, then pass true for hasBody. */ interface xhr{(method: String, args: Object, hasBody?: boolean): void} interface xhr { /** * A map of available XHR transport handle types. Name matches the * handleAs attribute passed to XHR calls. - * + * */ contentHandlers: Object; /** * Sends an HTTP DELETE request to the server. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ del(args: Object): any; /** @@ -3718,8 +3718,8 @@ declare module dojo { * as a string or an array of strings. Disabled form elements * and unchecked radio and checkboxes are skipped. Multi-select * elements are returned as an array of string values. - * - * @param inputNode + * + * @param inputNode */ fieldToObject(inputNode: HTMLElement): any; /** @@ -3728,24 +3728,24 @@ declare module dojo { * as a string or an array of strings. Disabled form elements * and unchecked radio and checkboxes are skipped. Multi-select * elements are returned as an array of string values. - * - * @param inputNode + * + * @param inputNode */ fieldToObject(inputNode: String): any; /** * Create a serialized JSON string from a form node or string * ID identifying the form to serialize - * - * @param formNode - * @param prettyPrint Optional + * + * @param formNode + * @param prettyPrint Optional */ formToJson(formNode: HTMLElement, prettyPrint?: boolean): any; /** * Create a serialized JSON string from a form node or string * ID identifying the form to serialize - * - * @param formNode - * @param prettyPrint Optional + * + * @param formNode + * @param prettyPrint Optional */ formToJson(formNode: String, prettyPrint?: boolean): any; /** @@ -3754,8 +3754,8 @@ declare module dojo { * string properties in an object which it then returns. Disabled form * elements, buttons, and other non-value form elements are skipped. * Multi-select elements are returned as an array of string values. - * - * @param formNode + * + * @param formNode */ formToObject(formNode: HTMLElement): Object; /** @@ -3764,61 +3764,61 @@ declare module dojo { * string properties in an object which it then returns. Disabled form * elements, buttons, and other non-value form elements are skipped. * Multi-select elements are returned as an array of string values. - * - * @param formNode + * + * @param formNode */ formToObject(formNode: String): Object; /** * Returns a URL-encoded string representing the form passed as either a * node or string ID identifying the form to serialize - * - * @param formNode + * + * @param formNode */ formToQuery(formNode: HTMLElement): any; /** * Returns a URL-encoded string representing the form passed as either a * node or string ID identifying the form to serialize - * - * @param formNode + * + * @param formNode */ formToQuery(formNode: String): any; /** * Sends an HTTP GET request to the server. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ get(args: Object): any; /** * takes a name/value mapping object and returns a string representing * a URL-encoded version of that object. - * - * @param map + * + * @param map */ objectToQuery(map: Object): any; /** * Sends an HTTP POST request to the server. In addition to the properties * listed for the dojo.__XhrArgs type, the following property is allowed: - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ post(args: Object): any; /** * Sends an HTTP PUT request to the server. In addition to the properties * listed for the dojo.__XhrArgs type, the following property is allowed: - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ put(args: Object): any; /** * Create an object representing a de-serialized query section of a * URL. Query keys with multiple values are returned in an array. - * - * @param str + * + * @param str */ queryToObject(str: String): Object; } - module xhr { + namespace xhr { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/xhr.contentHandlers.html * @@ -3829,24 +3829,24 @@ declare module dojo { * called, passing the xhr object for manipulation. The return value * from the contentHandler will be passed to the load or handle * functions defined in the original xhr call. - * + * */ interface contentHandlers { /** - * - * @param xhr + * + * @param xhr */ auto(xhr: any): void; /** * A contentHandler which evaluates the response data, expecting it to be valid JavaScript - * - * @param xhr + * + * @param xhr */ javascript(xhr: any): any; /** * A contentHandler which returns a JavaScript object created from the response data - * - * @param xhr + * + * @param xhr */ json(xhr: any): any; /** @@ -3855,38 +3855,38 @@ declare module dojo { * the json-comment-filtered option was implemented to prevent * "JavaScript Hijacking", but it is less secure than standard JSON. Use * standard JSON instead. JSON prefixing can be used to subvert hijacking. - * + * * Will throw a notice suggesting to use application/json mimetype, as * json-commenting can introduce security issues. To decrease the chances of hijacking, * use the standard json contentHandler, and prefix your "JSON" with: {}&& - * + * * use djConfig.useCommentedJson = true to turn off the notice - * - * @param xhr + * + * @param xhr */ json_comment_filtered(xhr: any): any; /** * A contentHandler which checks the presence of comment-filtered JSON and * alternates between the json and json-comment-filtered contentHandlers. - * - * @param xhr + * + * @param xhr */ json_comment_optional(xhr: any): any; /** - * - * @param xhr + * + * @param xhr */ olson_zoneinfo(xhr: any): void; /** * A contentHandler which simply returns the plaintext response data - * - * @param xhr + * + * @param xhr */ text(xhr: any): any; /** * A contentHandler returning an XML Document parsed from the response data - * - * @param xhr + * + * @param xhr */ xml(xhr: any): any; } @@ -3901,7 +3901,7 @@ declare module dojo { * Also, when multiple instances of dojo exist in a single application, each will necessarily be located * at an unique absolute module identifier as given by the package configuration. Implementing configuration * as a module allows for specifying unique, per-instance configurations. - * + * */ class config { constructor(); @@ -3913,50 +3913,50 @@ declare module dojo { * djConfig.addOnLoad = [myObject, "functionName"]; and for object with * function reference use * djConfig.addOnLoad = [myObject, function(){}]; - * + * */ "addOnLoad": Function; /** - * + * */ "afterOnLoad": boolean; /** - * + * */ "baseUrl": Object; /** - * Defines a callback to be used when dependencies are defined before - * the loader has been loaded. When provided, they cause the loader to - * execute require(deps, callback) once it has finished loading. + * Defines a callback to be used when dependencies are defined before + * the loader has been loaded. When provided, they cause the loader to + * execute require(deps, callback) once it has finished loading. * Should be used with deps. - * + * */ "callback": Function; /** - * + * */ "debugContainerId": string; /** - * + * */ "debugHeight": number; /** * Default duration, in milliseconds, for wipe and fade animations within dijits. * Assigned to dijit.defaultDuration. - * + * */ "defaultDuration": number; /** * Whether deferred instrumentation should be loaded or included * in builds. - * + * */ "deferredInstrumentation": boolean; /** * Defines dependencies to be used before the loader has been loaded. - * When provided, they cause the loader to execute require(deps, callback) + * When provided, they cause the loader to execute require(deps, callback) * once it has finished loading. Should be used with callback. - * + * */ "deps": Function; /** @@ -3966,21 +3966,21 @@ declare module dojo { * does not need to be set, except when using cross-domain/CDN Dojo builds. * Save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl * to the path on your domain your copy of blank.html. - * + * */ "dojoBlankHtmlUrl": string; /** * No default value. Specifies additional locales whose * resources should also be loaded alongside the default locale when * calls to dojo.requireLocalization() are processed. - * + * */ "extraLocale": any[]; /** * Set this to true to enable publishing of topics for the different phases of * IO operations. Publishing is done via dojo/topic.publish(). See dojo/main.__IoPublish for a list * of topics that are published. - * + * */ "ioPublish": Object; /** @@ -3993,7 +3993,7 @@ declare module dojo { * Firebug's console.* methods are ALWAYS defined by Dojo. If * isDebug is false and you are on a platform without Firebug, these * methods will be defined as no-ops. - * + * */ "isDebug": boolean; /** @@ -4004,7 +4004,7 @@ declare module dojo { * for details on loading localized resources. If no locale is specified, * Dojo assumes the locale of the user agent, according to navigator.userLanguage * or navigator.language properties. - * + * */ "locale": string; /** @@ -4014,51 +4014,51 @@ declare module dojo { * djConfig.modulePaths = { "foo": "../../bar" } is the equivalent * of calling dojo.registerModulePath("foo", "../../bar");. Multiple * modules may be configured via djConfig.modulePaths. - * + * */ "modulePaths": Object; /** * Run the parser after the page is loaded - * + * */ "parseOnLoad": boolean; /** * An array of module names to be loaded immediately after dojo.js has been included * in a page. - * + * */ "require": Object; /** * Array containing the r, g, b components used as transparent color in dojo.Color; * if undefined, [255,255,255] (white) will be used. - * + * */ "transparentColor": any[]; /** * Used by dojox.analytics.Urchin as the default UA-123456-7 account * number used when being created. Alternately, you can pass an acct:"" * parameter to the constructor a la: new dojox.analytics.Urchin({ acct:"UA-123456-7" }); - * + * */ "urchin": string; /** * If set to a value that evaluates to true such as a string or array and * isDebug is true and Firebug is not available or running, then it bypasses * the creation of Firebug Lite allowing you to define your own console object. - * + * */ "useCustomLogger": Object; /** * Whether the deferred instrumentation should be used. - * + * * "report-rejections": report each rejection as it occurs. * true or 1 or "report-unhandled-rejections": wait 1 second * in an attempt to detect unhandled rejections. - * + * */ "useDeferredInstrumentation": boolean; } - module config { + namespace config { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/config.modulePaths.html * @@ -4068,7 +4068,7 @@ declare module dojo { * djConfig.modulePaths = { "foo": "../../bar" } is the equivalent * of calling dojo.registerModulePath("foo", "../../bar");. Multiple * modules may be configured via djConfig.modulePaths. - * + * */ interface modulePaths { } @@ -4080,66 +4080,66 @@ declare module dojo { * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and creates a new Color instance to work from. - * - * @param color + * + * @param color */ class Color { constructor(color: any[]); /** - * + * */ "a": number; /** - * + * */ "b": number; /** - * + * */ "g": number; /** * Dictionary list of all CSS named colors, by name. Values are 3-item arrays with corresponding RG and B values. - * + * */ "named": Object; /** - * + * */ "r": number; /** * Blend colors end and start with weight from 0 to 1, 0.5 being a 50/50 blend, * can reuse a previously allocated Color object for the result - * - * @param start - * @param end - * @param weight - * @param obj Optional + * + * @param start + * @param end + * @param weight + * @param obj Optional */ blendColors(start: dojo._base.Color, end: dojo._base.Color, weight: number, obj?: dojo._base.Color): any; /** * Builds a Color from a 3 or 4 element array, mapping each * element in sequence to the rgb(a) values of the color. - * - * @param a - * @param obj Optional + * + * @param a + * @param obj Optional */ fromArray(a: any[], obj?: dojo._base.Color): any; /** * Converts a hex string with a '#' prefix to a color object. * Supports 12-bit #rgb shorthand. Optionally accepts a * Color object to update with the parsed value. - * - * @param color - * @param obj Optional + * + * @param color + * @param obj Optional */ fromHex(color: String, obj?: dojo._base.Color): any; /** * get rgb(a) array from css-style color declarations * this function can handle all 4 CSS3 Color Module formats: rgb, * rgba, hsl, hsla, including rgb(a) with percentage values. - * - * @param color - * @param obj Optional + * + * @param color + * @param obj Optional */ fromRgb(color: String, obj?: dojo._base.Color): any; /** @@ -4149,693 +4149,693 @@ declare module dojo { * accepted by dojo.colorFromArray, hex strings such as "#aaaaaa", or * rgb or rgba strings such as "rgb(133, 200, 16)" or "rgba(10, 10, * 10, 50)" - * - * @param str - * @param obj Optional + * + * @param str + * @param obj Optional */ fromString(str: String, obj?: dojo._base.Color): any; /** * creates a greyscale color with an optional alpha - * - * @param g - * @param a Optional + * + * @param g + * @param a Optional */ makeGrey(g: number, a?: number): void; /** * makes sure that the object has correct attributes - * + * */ sanitize(): void; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and sets this color instance to that value. - * - * @param color + * + * @param color */ setColor(color: any[]): Function; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and sets this color instance to that value. - * - * @param color + * + * @param color */ setColor(color: String): Function; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and sets this color instance to that value. - * - * @param color + * + * @param color */ setColor(color: Object): Function; /** * Convert this Color to a CMY definition. - * + * */ toCmy(): Object; /** * Convert this Color to a CMYK definition. - * + * */ toCmyk(): Object; /** * Returns a css color string in rgb(a) representation - * - * @param includeAlpha Optional + * + * @param includeAlpha Optional */ toCss(includeAlpha?: boolean): String; /** * Returns a CSS color string in hexadecimal representation - * + * */ toHex(): String; /** * Convert this Color to an HSL definition. - * + * */ toHsl(): Object; /** * Convert this Color to an HSV definition. - * + * */ toHsv(): Object; /** * Returns 3 component array of rgb values - * + * */ toRgb(): any[]; /** * Returns a 4 component array of rgba values from the color * represented by this object. - * + * */ toRgba(): any[]; /** * Returns a visual representation of the color - * + * */ toString(): any; } - module Color { + namespace Color { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/Color.named.html * * Dictionary list of all CSS named colors, by name. Values are 3-item arrays with corresponding RG and B values. - * + * */ interface named { /** - * + * */ aliceblue: any[]; /** - * + * */ antiquewhite: any[]; /** - * + * */ aqua: any[]; /** - * + * */ aquamarine: any[]; /** - * + * */ azure: any[]; /** - * + * */ beige: any[]; /** - * + * */ bisque: any[]; /** - * + * */ black: any[]; /** - * + * */ blanchedalmond: any[]; /** - * + * */ blue: any[]; /** - * + * */ blueviolet: any[]; /** - * + * */ brown: any[]; /** - * + * */ burlywood: any[]; /** - * + * */ cadetblue: any[]; /** - * + * */ chartreuse: any[]; /** - * + * */ chocolate: any[]; /** - * + * */ coral: any[]; /** - * + * */ cornflowerblue: any[]; /** - * + * */ cornsilk: any[]; /** - * + * */ crimson: any[]; /** - * + * */ cyan: any[]; /** - * + * */ darkblue: any[]; /** - * + * */ darkcyan: any[]; /** - * + * */ darkgoldenrod: any[]; /** - * + * */ darkgray: any[]; /** - * + * */ darkgreen: any[]; /** - * + * */ darkgrey: any[]; /** - * + * */ darkkhaki: any[]; /** - * + * */ darkmagenta: any[]; /** - * + * */ darkolivegreen: any[]; /** - * + * */ darkorange: any[]; /** - * + * */ darkorchid: any[]; /** - * + * */ darkred: any[]; /** - * + * */ darksalmon: any[]; /** - * + * */ darkseagreen: any[]; /** - * + * */ darkslateblue: any[]; /** - * + * */ darkslategray: any[]; /** - * + * */ darkslategrey: any[]; /** - * + * */ darkturquoise: any[]; /** - * + * */ darkviolet: any[]; /** - * + * */ deeppink: any[]; /** - * + * */ deepskyblue: any[]; /** - * + * */ dimgray: any[]; /** - * + * */ dimgrey: any[]; /** - * + * */ dodgerblue: any[]; /** - * + * */ firebrick: any[]; /** - * + * */ floralwhite: any[]; /** - * + * */ forestgreen: any[]; /** - * + * */ fuchsia: any[]; /** - * + * */ gainsboro: any[]; /** - * + * */ ghostwhite: any[]; /** - * + * */ gold: any[]; /** - * + * */ goldenrod: any[]; /** - * + * */ gray: any[]; /** - * + * */ green: any[]; /** - * + * */ greenyellow: any[]; /** - * + * */ grey: any[]; /** - * + * */ honeydew: any[]; /** - * + * */ hotpink: any[]; /** - * + * */ indianred: any[]; /** - * + * */ indigo: any[]; /** - * + * */ ivory: any[]; /** - * + * */ khaki: any[]; /** - * + * */ lavender: any[]; /** - * + * */ lavenderblush: any[]; /** - * + * */ lawngreen: any[]; /** - * + * */ lemonchiffon: any[]; /** - * + * */ lightblue: any[]; /** - * + * */ lightcoral: any[]; /** - * + * */ lightcyan: any[]; /** - * + * */ lightgoldenrodyellow: any[]; /** - * + * */ lightgray: any[]; /** - * + * */ lightgreen: any[]; /** - * + * */ lightgrey: any[]; /** - * + * */ lightpink: any[]; /** - * + * */ lightsalmon: any[]; /** - * + * */ lightseagreen: any[]; /** - * + * */ lightskyblue: any[]; /** - * + * */ lightslategray: any[]; /** - * + * */ lightslategrey: any[]; /** - * + * */ lightsteelblue: any[]; /** - * + * */ lightyellow: any[]; /** - * + * */ lime: any[]; /** - * + * */ limegreen: any[]; /** - * + * */ linen: any[]; /** - * + * */ magenta: any[]; /** - * + * */ maroon: any[]; /** - * + * */ mediumaquamarine: any[]; /** - * + * */ mediumblue: any[]; /** - * + * */ mediumorchid: any[]; /** - * + * */ mediumpurple: any[]; /** - * + * */ mediumseagreen: any[]; /** - * + * */ mediumslateblue: any[]; /** - * + * */ mediumspringgreen: any[]; /** - * + * */ mediumturquoise: any[]; /** - * + * */ mediumvioletred: any[]; /** - * + * */ midnightblue: any[]; /** - * + * */ mintcream: any[]; /** - * + * */ mistyrose: any[]; /** - * + * */ moccasin: any[]; /** - * + * */ navajowhite: any[]; /** - * + * */ navy: any[]; /** - * + * */ oldlace: any[]; /** - * + * */ olive: any[]; /** - * + * */ olivedrab: any[]; /** - * + * */ orange: any[]; /** - * + * */ orangered: any[]; /** - * + * */ orchid: any[]; /** - * + * */ palegoldenrod: any[]; /** - * + * */ palegreen: any[]; /** - * + * */ paleturquoise: any[]; /** - * + * */ palevioletred: any[]; /** - * + * */ papayawhip: any[]; /** - * + * */ peachpuff: any[]; /** - * + * */ peru: any[]; /** - * + * */ pink: any[]; /** - * + * */ plum: any[]; /** - * + * */ powderblue: any[]; /** - * + * */ purple: any[]; /** - * + * */ red: any[]; /** - * + * */ rosybrown: any[]; /** - * + * */ royalblue: any[]; /** - * + * */ saddlebrown: any[]; /** - * + * */ salmon: any[]; /** - * + * */ sandybrown: any[]; /** - * + * */ seagreen: any[]; /** - * + * */ seashell: any[]; /** - * + * */ sienna: any[]; /** - * + * */ silver: any[]; /** - * + * */ skyblue: any[]; /** - * + * */ slateblue: any[]; /** - * + * */ slategray: any[]; /** - * + * */ slategrey: any[]; /** - * + * */ snow: any[]; /** - * + * */ springgreen: any[]; /** - * + * */ steelblue: any[]; /** - * + * */ tan: any[]; /** - * + * */ teal: any[]; /** - * + * */ thistle: any[]; /** - * + * */ tomato: any[]; /** - * + * */ transparent: Object; /** - * + * */ turquoise: any[]; /** - * + * */ violet: any[]; /** - * + * */ wheat: any[]; /** - * + * */ white: any[]; /** - * + * */ whitesmoke: any[]; /** - * + * */ yellow: any[]; /** - * + * */ yellowgreen: any[]; } @@ -4845,7 +4845,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/browser.html * * This module causes the browser-only base modules to be loaded. - * + * */ interface browser { } @@ -4853,11 +4853,11 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/array.html * * The Javascript v1.6 array extensions. - * + * */ interface array { /** - * + * */ clearCache(): void; /** @@ -4868,10 +4868,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's every skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/every - * - * @param arr the array to iterate on. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate on. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ every(arr: any[], callback: Function, thisObject?: Object): boolean; /** @@ -4882,10 +4882,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's every skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/every - * - * @param arr the array to iterate on. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate on. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ every(arr: String, callback: Function, thisObject?: Object): boolean; /** @@ -4896,10 +4896,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's every skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/every - * - * @param arr the array to iterate on. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate on. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ every(arr: any[], callback: String, thisObject?: Object): boolean; /** @@ -4910,10 +4910,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's every skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/every - * - * @param arr the array to iterate on. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate on. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ every(arr: String, callback: String, thisObject?: Object): boolean; /** @@ -4924,10 +4924,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's filter skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter - * - * @param arr the array to iterate over. - * @param callback a function that is invoked with three arguments (item,index, array). The return of this function is expected tobe a boolean which determines whether the passed-in itemwill be included in the returned array. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. + * @param callback a function that is invoked with three arguments (item,index, array). The return of this function is expected tobe a boolean which determines whether the passed-in itemwill be included in the returned array. + * @param thisObject Optionalmay be used to scope the call to callback */ filter(arr: any[], callback: Function, thisObject?: Object): any[]; /** @@ -4938,10 +4938,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's filter skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter - * - * @param arr the array to iterate over. - * @param callback a function that is invoked with three arguments (item,index, array). The return of this function is expected tobe a boolean which determines whether the passed-in itemwill be included in the returned array. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. + * @param callback a function that is invoked with three arguments (item,index, array). The return of this function is expected tobe a boolean which determines whether the passed-in itemwill be included in the returned array. + * @param thisObject Optionalmay be used to scope the call to callback */ filter(arr: any[], callback: String, thisObject?: Object): any[]; /** @@ -4953,10 +4953,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's forEach skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach - * - * @param arr - * @param callback - * @param thisObject Optional + * + * @param arr + * @param callback + * @param thisObject Optional */ forEach(arr: any[], callback: Function, thisObject?: Object): void; /** @@ -4968,10 +4968,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's forEach skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach - * - * @param arr - * @param callback - * @param thisObject Optional + * + * @param arr + * @param callback + * @param thisObject Optional */ forEach(arr: String, callback: Function, thisObject?: Object): void; /** @@ -4983,10 +4983,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's forEach skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach - * - * @param arr - * @param callback - * @param thisObject Optional + * + * @param arr + * @param callback + * @param thisObject Optional */ forEach(arr: any[], callback: String, thisObject?: Object): void; /** @@ -4998,43 +4998,43 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's forEach skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach - * - * @param arr - * @param callback - * @param thisObject Optional + * + * @param arr + * @param callback + * @param thisObject Optional */ forEach(arr: String, callback: String, thisObject?: Object): void; /** * locates the first index of the provided value in the * passed array. If the value is not found, -1 is returned. * This method corresponds to the JavaScript 1.6 Array.indexOf method, with two differences: - * + * * when run over sparse arrays, the Dojo function invokes the callback for every index * whereas JavaScript 1.6's indexOf skips the holes in the sparse array. * uses equality (==) rather than strict equality (===) * For details on this method, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/indexOf - * - * @param arr - * @param value - * @param fromIndex Optional - * @param findLast OptionalMakes indexOf() work like lastIndexOf(). Used internally; not meant for external usage. + * + * @param arr + * @param value + * @param fromIndex Optional + * @param findLast OptionalMakes indexOf() work like lastIndexOf(). Used internally; not meant for external usage. */ indexOf(arr: any[], value: Object, fromIndex?: number, findLast?: boolean): number; /** * locates the last index of the provided value in the passed * array. If the value is not found, -1 is returned. * This method corresponds to the JavaScript 1.6 Array.lastIndexOf method, with two differences: - * + * * when run over sparse arrays, the Dojo function invokes the callback for every index * whereas JavaScript 1.6's lasIndexOf skips the holes in the sparse array. * uses equality (==) rather than strict equality (===) * For details on this method, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/lastIndexOf - * - * @param arr - * @param value - * @param fromIndex Optional + * + * @param arr + * @param value + * @param fromIndex Optional */ lastIndexOf(arr: any, value: any, fromIndex?: number): number; /** @@ -5045,11 +5045,11 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's map skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map - * - * @param arr the array to iterate on. If a string, operates onindividual characters. - * @param callback a function is invoked with three arguments, (item, index,array), and returns a value - * @param thisObject Optionalmay be used to scope the call to callback - * @param Ctr + * + * @param arr the array to iterate on. If a string, operates onindividual characters. + * @param callback a function is invoked with three arguments, (item, index,array), and returns a value + * @param thisObject Optionalmay be used to scope the call to callback + * @param Ctr */ map(arr: any[], callback: Function, thisObject?: Object, Ctr?: any): any[]; /** @@ -5060,11 +5060,11 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's map skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map - * - * @param arr the array to iterate on. If a string, operates onindividual characters. - * @param callback a function is invoked with three arguments, (item, index,array), and returns a value - * @param thisObject Optionalmay be used to scope the call to callback - * @param Ctr + * + * @param arr the array to iterate on. If a string, operates onindividual characters. + * @param callback a function is invoked with three arguments, (item, index,array), and returns a value + * @param thisObject Optionalmay be used to scope the call to callback + * @param Ctr */ map(arr: String, callback: Function, thisObject?: Object, Ctr?: any): any[]; /** @@ -5075,11 +5075,11 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's map skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map - * - * @param arr the array to iterate on. If a string, operates onindividual characters. - * @param callback a function is invoked with three arguments, (item, index,array), and returns a value - * @param thisObject Optionalmay be used to scope the call to callback - * @param Ctr + * + * @param arr the array to iterate on. If a string, operates onindividual characters. + * @param callback a function is invoked with three arguments, (item, index,array), and returns a value + * @param thisObject Optionalmay be used to scope the call to callback + * @param Ctr */ map(arr: any[], callback: String, thisObject?: Object, Ctr?: any): any[]; /** @@ -5090,11 +5090,11 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's map skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map - * - * @param arr the array to iterate on. If a string, operates onindividual characters. - * @param callback a function is invoked with three arguments, (item, index,array), and returns a value - * @param thisObject Optionalmay be used to scope the call to callback - * @param Ctr + * + * @param arr the array to iterate on. If a string, operates onindividual characters. + * @param callback a function is invoked with three arguments, (item, index,array), and returns a value + * @param thisObject Optionalmay be used to scope the call to callback + * @param Ctr */ map(arr: String, callback: String, thisObject?: Object, Ctr?: any): any[]; /** @@ -5105,10 +5105,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's some skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/some - * - * @param arr the array to iterate over. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ some(arr: any[], callback: Function, thisObject?: Object): boolean; /** @@ -5119,10 +5119,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's some skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/some - * - * @param arr the array to iterate over. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ some(arr: String, callback: Function, thisObject?: Object): boolean; /** @@ -5133,10 +5133,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's some skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/some - * - * @param arr the array to iterate over. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ some(arr: any[], callback: String, thisObject?: Object): boolean; /** @@ -5147,10 +5147,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's some skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/some - * - * @param arr the array to iterate over. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ some(arr: String, callback: String, thisObject?: Object): boolean; } @@ -5164,7 +5164,7 @@ declare module dojo { * is not recommended. WebKit and IE uses an alternate keypress handling (only * firing for printable characters, to distinguish from keydown events), and most * consider the WebKit/IE behavior more desirable. - * + * */ interface connect { /** @@ -5176,35 +5176,35 @@ declare module dojo { * Connects listeners to actions, so that after event fires, a * listener is called with the same arguments passed to the original * function. - * + * * Since dojo.connect allows the source of events to be either a * "regular" JavaScript function or a DOM event, it provides a uniform * interface for listening to all the types of events that an * application is likely to deal with though a single, unified * interface. DOM programmers may want to think of it as * "addEventListener for everything and anything". - * + * * When setting up a connection, the event parameter must be a * string that is the name of the method/event to be listened for. If * obj is null, kernel.global is assumed, meaning that connections * to global methods are supported but also that you may inadvertently * connect to a global by passing an incorrect object name or invalid * reference. - * + * * dojo.connect generally is forgiving. If you pass the name of a * function or method that does not yet exist on obj, connect will * not fail, but will instead set up a stub method. Similarly, null * arguments may simply be omitted such that fewer than 4 arguments * may be required to set up a connection See the examples for details. - * + * * The return value is a handle that is needed to * remove this connection with dojo.disconnect. - * - * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). - * @param event String name of the event function in obj.I.e. identifies a property obj[event]. - * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. - * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. - * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. + * + * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). + * @param event String name of the event function in obj.I.e. identifies a property obj[event]. + * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. + * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. + * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. */ connect(obj: Object, event: String, context: Object, method: String, dontFix?: boolean): any; /** @@ -5216,35 +5216,35 @@ declare module dojo { * Connects listeners to actions, so that after event fires, a * listener is called with the same arguments passed to the original * function. - * + * * Since dojo.connect allows the source of events to be either a * "regular" JavaScript function or a DOM event, it provides a uniform * interface for listening to all the types of events that an * application is likely to deal with though a single, unified * interface. DOM programmers may want to think of it as * "addEventListener for everything and anything". - * + * * When setting up a connection, the event parameter must be a * string that is the name of the method/event to be listened for. If * obj is null, kernel.global is assumed, meaning that connections * to global methods are supported but also that you may inadvertently * connect to a global by passing an incorrect object name or invalid * reference. - * + * * dojo.connect generally is forgiving. If you pass the name of a * function or method that does not yet exist on obj, connect will * not fail, but will instead set up a stub method. Similarly, null * arguments may simply be omitted such that fewer than 4 arguments * may be required to set up a connection See the examples for details. - * + * * The return value is a handle that is needed to * remove this connection with dojo.disconnect. - * - * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). - * @param event String name of the event function in obj.I.e. identifies a property obj[event]. - * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. - * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. - * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. + * + * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). + * @param event String name of the event function in obj.I.e. identifies a property obj[event]. + * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. + * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. + * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. */ connect(obj: Object, event: String, context: any, method: String, dontFix?: boolean): any; /** @@ -5256,35 +5256,35 @@ declare module dojo { * Connects listeners to actions, so that after event fires, a * listener is called with the same arguments passed to the original * function. - * + * * Since dojo.connect allows the source of events to be either a * "regular" JavaScript function or a DOM event, it provides a uniform * interface for listening to all the types of events that an * application is likely to deal with though a single, unified * interface. DOM programmers may want to think of it as * "addEventListener for everything and anything". - * + * * When setting up a connection, the event parameter must be a * string that is the name of the method/event to be listened for. If * obj is null, kernel.global is assumed, meaning that connections * to global methods are supported but also that you may inadvertently * connect to a global by passing an incorrect object name or invalid * reference. - * + * * dojo.connect generally is forgiving. If you pass the name of a * function or method that does not yet exist on obj, connect will * not fail, but will instead set up a stub method. Similarly, null * arguments may simply be omitted such that fewer than 4 arguments * may be required to set up a connection See the examples for details. - * + * * The return value is a handle that is needed to * remove this connection with dojo.disconnect. - * - * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). - * @param event String name of the event function in obj.I.e. identifies a property obj[event]. - * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. - * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. - * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. + * + * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). + * @param event String name of the event function in obj.I.e. identifies a property obj[event]. + * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. + * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. + * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. */ connect(obj: Object, event: String, context: Object, method: Function, dontFix?: boolean): any; /** @@ -5296,35 +5296,35 @@ declare module dojo { * Connects listeners to actions, so that after event fires, a * listener is called with the same arguments passed to the original * function. - * + * * Since dojo.connect allows the source of events to be either a * "regular" JavaScript function or a DOM event, it provides a uniform * interface for listening to all the types of events that an * application is likely to deal with though a single, unified * interface. DOM programmers may want to think of it as * "addEventListener for everything and anything". - * + * * When setting up a connection, the event parameter must be a * string that is the name of the method/event to be listened for. If * obj is null, kernel.global is assumed, meaning that connections * to global methods are supported but also that you may inadvertently * connect to a global by passing an incorrect object name or invalid * reference. - * + * * dojo.connect generally is forgiving. If you pass the name of a * function or method that does not yet exist on obj, connect will * not fail, but will instead set up a stub method. Similarly, null * arguments may simply be omitted such that fewer than 4 arguments * may be required to set up a connection See the examples for details. - * + * * The return value is a handle that is needed to * remove this connection with dojo.disconnect. - * - * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). - * @param event String name of the event function in obj.I.e. identifies a property obj[event]. - * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. - * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. - * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. + * + * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). + * @param event String name of the event function in obj.I.e. identifies a property obj[event]. + * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. + * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. + * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. */ connect(obj: Object, event: String, context: any, method: Function, dontFix?: boolean): any; /** @@ -5332,56 +5332,56 @@ declare module dojo { * on the topic. Returns a handle which can be passed to * dojo.disconnect() to disable subsequent automatic publication on * the topic. - * - * @param topic The name of the topic to publish. - * @param obj OptionalThe source object for the event function. Defaults to kernel.globalif null. - * @param event The name of the event function in obj.I.e. identifies a property obj[event]. + * + * @param topic The name of the topic to publish. + * @param obj OptionalThe source object for the event function. Defaults to kernel.globalif null. + * @param event The name of the event function in obj.I.e. identifies a property obj[event]. */ connectPublisher(topic: String, obj: Object, event: String): any; /** * Remove a link created by dojo.connect. * Removes the connection between event and the method referenced by handle. - * - * @param handle the return value of the dojo.connect call that created the connection. + * + * @param handle the return value of the dojo.connect call that created the connection. */ disconnect(handle: Object): void; /** * Checks an event for the copy key (meta on Mac, and ctrl anywhere else) - * - * @param e Event object to examine + * + * @param e Event object to examine */ isCopyKey(e: Event): any; /** * Invoke all listener method subscribed to topic. - * - * @param topic The name of the topic to publish. - * @param args OptionalAn array of arguments. The arguments will be appliedto each topic subscriber (as first class parameters, via apply). + * + * @param topic The name of the topic to publish. + * @param args OptionalAn array of arguments. The arguments will be appliedto each topic subscriber (as first class parameters, via apply). */ publish(topic: String, args?: any[]): any; /** * Attach a listener to a named topic. The listener function is invoked whenever the * named topic is published (see: dojo.publish). * Returns a handle which is needed to unsubscribe this listener. - * - * @param topic The topic to which to subscribe. - * @param context OptionalScope in which method will be invoked, or null for default scope. - * @param method The name of a function in context, or a function reference. This is the function thatis invoked when topic is published. + * + * @param topic The topic to which to subscribe. + * @param context OptionalScope in which method will be invoked, or null for default scope. + * @param method The name of a function in context, or a function reference. This is the function thatis invoked when topic is published. */ subscribe(topic: String, context?: Object, method?: String): any; /** * Attach a listener to a named topic. The listener function is invoked whenever the * named topic is published (see: dojo.publish). * Returns a handle which is needed to unsubscribe this listener. - * - * @param topic The topic to which to subscribe. - * @param context OptionalScope in which method will be invoked, or null for default scope. - * @param method The name of a function in context, or a function reference. This is the function thatis invoked when topic is published. + * + * @param topic The topic to which to subscribe. + * @param context OptionalScope in which method will be invoked, or null for default scope. + * @param method The name of a function in context, or a function reference. This is the function thatis invoked when topic is published. */ subscribe(topic: String, context?: Object, method?: Function): any; /** * Remove a topic listener. - * - * @param handle The handle returned from a call to subscribe. + * + * @param handle The handle returned from a call to subscribe. */ unsubscribe(handle: Object): void; } @@ -5390,22 +5390,22 @@ declare module dojo { * * This module defines dojo DOM event API. Usually you should use dojo/on, and evt.stopPropagation() + * evt.preventDefault(), rather than this module. - * + * */ interface event { /** * normalizes properties on the event object including event * bubbling methods, keystroke normalization, and x/y positions - * - * @param evt native event object - * @param sender node to treat as "currentTarget" + * + * @param evt native event object + * @param sender node to treat as "currentTarget" */ fix(evt: Event, sender: HTMLElement): Event; /** * prevents propagation and clobbers the default action of the * passed event - * - * @param evt The event object. If omitted, window.event is used on IE. + * + * @param evt The event object. If omitted, window.event is used on IE. */ stop(evt: Event): void; } @@ -5413,7 +5413,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/html.html * * This module is a stub for the core dojo DOM API. - * + * */ interface html { } @@ -5421,12 +5421,12 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/json.html * * This module defines the dojo JSON API. - * + * */ interface json { } - module fx { + namespace fx { /** * A generic animation class that fires callbacks into its handlers * object at various states. @@ -5436,8 +5436,8 @@ declare module dojo { * .play() method beforehand. Therefore, you will likely need to * call .play() on instances of Animation when one is * returned. - * - * @param args The 'magic argument', mixing all the properties into thisanimation instance. + * + * @param args The 'magic argument', mixing all the properties into thisanimation instance. */ interface Animation { } } @@ -5446,7 +5446,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/fx.html * * This module defines the base dojo/_base/fx implementation. - * + * */ interface fx { /** @@ -5458,16 +5458,16 @@ declare module dojo { * and allows for positional parameters to be used in place of the * packed "property bag" which is used for other Dojo animation * methods. - * + * * The Animation object returned will be already playing, so * calling play() on it again is (usually) a no-op. - * - * @param node a DOM node or the id of a node to animate CSS properties on - * @param properties - * @param duration OptionalThe number of milliseconds over which the animationshould run. Defaults to the global animation default duration(350ms). - * @param easing OptionalAn easing function over which to calculate accelerationand deceleration of the animation through its duration.A default easing algorithm is provided, but you mayplug in any you wish. A large selection of easing algorithmsare available in dojo/fx/easing. - * @param onEnd OptionalA function to be called when the animation finishesrunning. - * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. + * + * @param node a DOM node or the id of a node to animate CSS properties on + * @param properties + * @param duration OptionalThe number of milliseconds over which the animationshould run. Defaults to the global animation default duration(350ms). + * @param easing OptionalAn easing function over which to calculate accelerationand deceleration of the animation through its duration.A default easing algorithm is provided, but you mayplug in any you wish. A large selection of easing algorithmsare available in dojo/fx/easing. + * @param onEnd OptionalA function to be called when the animation finishesrunning. + * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. */ anim (node: HTMLElement, properties: Object, duration?: number, easing?: Function, onEnd?: Function, delay?: number): any ; /** @@ -5479,16 +5479,16 @@ declare module dojo { * and allows for positional parameters to be used in place of the * packed "property bag" which is used for other Dojo animation * methods. - * + * * The Animation object returned will be already playing, so * calling play() on it again is (usually) a no-op. - * - * @param node a DOM node or the id of a node to animate CSS properties on - * @param properties - * @param duration OptionalThe number of milliseconds over which the animationshould run. Defaults to the global animation default duration(350ms). - * @param easing OptionalAn easing function over which to calculate accelerationand deceleration of the animation through its duration.A default easing algorithm is provided, but you mayplug in any you wish. A large selection of easing algorithmsare available in dojo/fx/easing. - * @param onEnd OptionalA function to be called when the animation finishesrunning. - * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. + * + * @param node a DOM node or the id of a node to animate CSS properties on + * @param properties + * @param duration OptionalThe number of milliseconds over which the animationshould run. Defaults to the global animation default duration(350ms). + * @param easing OptionalAn easing function over which to calculate accelerationand deceleration of the animation through its duration.A default easing algorithm is provided, but you mayplug in any you wish. A large selection of easing algorithmsare available in dojo/fx/easing. + * @param onEnd OptionalA function to be called when the animation finishesrunning. + * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. */ anim (node: String, properties: Object, duration?: number, easing?: Function, onEnd?: Function, delay?: number): any ; /** @@ -5499,23 +5499,23 @@ declare module dojo { * animations. It takes an object of "properties" corresponding to * style properties, and animates them in parallel over a set * duration. - * - * @param args An object with the following properties:properties (Object, optional): A hash map of style properties to Objects describing the transition,such as the properties of _Line with an additional 'units' propertynode (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. + * + * @param args An object with the following properties:properties (Object, optional): A hash map of style properties to Objects describing the transition,such as the properties of _Line with an additional 'units' propertynode (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ animateProperty (args?: Object): any ; - + /** * Returns an animation that will fade node defined in 'args' from * its current opacity to fully opaque. - * - * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. + * + * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ fadeIn (args: Object): any ; /** * Returns an animation that will fade node defined in 'args' * from its current opacity to fully transparent. - * - * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. + * + * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ fadeOut (args: Object): any ; } @@ -5523,7 +5523,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/query.html * * Deprecated. Use dojo/query instead. - * + * */ interface query { } @@ -5534,7 +5534,7 @@ declare module dojo { * blur(), focus(), change(), click(), error(), keydown(), keypress(), * keyup(), load(), mousedown(), mouseenter(), mouseleave(), mousemove(), * mouseout(), mouseover(), mouseup(), and submit() methods. - * + * */ interface NodeList { } @@ -5543,7 +5543,7 @@ declare module dojo { * * Deprecated. New code should use dojo/sniff. * This module populates the dojo browser version sniffing properties like dojo.isIE. - * + * */ interface sniff { } @@ -5551,14 +5551,14 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/lang.html * * This module defines Javascript language extensions. - * + * */ interface lang { /** * Clones objects (including DOM nodes) and all children. * Warning: do not clone cyclic structures. - * - * @param src The object to clone + * + * @param src The object to clone */ clone(src: any): any; /** @@ -5571,37 +5571,37 @@ declare module dojo { * down to obj for property lookup when object-local lookup fails. * This can be thought of similarly to ES4's "wrap", save that it does * not act on types but rather on pure objects. - * - * @param obj The object to delegate to for properties not found directly on thereturn object or in props. - * @param props an object containing properties to assign to the returned object + * + * @param obj The object to delegate to for properties not found directly on thereturn object or in props. + * @param props an object containing properties to assign to the returned object */ delegate(obj: Object, props: Object[]): any; /** * determine if an object supports a given method * useful for longer api chains where you have to test each object in * the chain. Useful for object and method detection. - * - * @param name Path to an object, in the form "A.B.C". - * @param obj OptionalObject to use as root of path. Defaults to'dojo.global'. Null may be passed. + * + * @param name Path to an object, in the form "A.B.C". + * @param obj OptionalObject to use as root of path. Defaults to'dojo.global'. Null may be passed. */ exists(name: String, obj?: Object): boolean; /** * Adds all properties and methods of props to constructor's * prototype, making them available to all instances created with * constructor. - * - * @param ctor Target constructor to extend. - * @param props One or more objects to mix into ctor.prototype + * + * @param ctor Target constructor to extend. + * @param props One or more objects to mix into ctor.prototype */ extend(ctor: Object, props: Object): Object; /** * Get a property from a dot-separated string, such as "A.B.C" * Useful for longer api chains where you have to test each object in * the chain, or when you have an object reference in string format. - * - * @param name Path to an property, in the form "A.B.C". - * @param create OptionalOptional. Defaults to false. If true, Objects will becreated at any point along the 'path' that is undefined. - * @param context OptionalOptional. Object to use as root of path. Defaults to'dojo.global'. Null may be passed. + * + * @param name Path to an property, in the form "A.B.C". + * @param create OptionalOptional. Defaults to false. If true, Objects will becreated at any point along the 'path' that is undefined. + * @param context OptionalOptional. Object to use as root of path. Defaults to'dojo.global'. Null may be passed. */ getObject(name: String, create?: boolean, context?: Object): any; /** @@ -5613,9 +5613,9 @@ declare module dojo { * beyond "method". * Each of these values will be used to "placehold" (similar to curry) * for the hitched function. - * - * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. - * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. + * + * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. + * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. */ hitch(scope: Object, method: Function): any; /** @@ -5627,23 +5627,23 @@ declare module dojo { * beyond "method". * Each of these values will be used to "placehold" (similar to curry) * for the hitched function. - * - * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. - * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. + * + * @param scope The scope to use when method executes. If method is a string,scope is also the object containing method. + * @param method A function to be hitched to scope, or the name of the method inscope to be hitched. */ hitch(scope: Object, method: String[]): any; /** * Returns true if it is a built-in function or some other kind of * oddball that should report as a function but doesn't - * - * @param it + * + * @param it */ isAlien(it: any): any; /** * Return true if it is an Array. * Does not work on Arrays created in other windows. - * - * @param it Item to test. + * + * @param it Item to test. */ isArray(it: any): any; /** @@ -5653,27 +5653,27 @@ declare module dojo { * and DOM collections will return true when passed to * isArrayLike(), but will return false when passed to * isArray(). - * - * @param it Item to test. + * + * @param it Item to test. */ isArrayLike(it: any): any; /** * Return true if it is a Function - * - * @param it Item to test. + * + * @param it Item to test. */ isFunction(it: any): boolean; /** * Returns true if it is a JavaScript object (or an Array, a Function * or null) - * - * @param it Item to test. + * + * @param it Item to test. */ isObject(it: any): boolean; /** * Return true if it is a String - * - * @param it Item to test. + * + * @param it Item to test. */ isString(it: any): boolean; /** @@ -5682,47 +5682,47 @@ declare module dojo { * found in Object.prototype, are copied/added from sources to dest. sources are processed left to right. * The Javascript assignment operator is used to copy/add each property; therefore, by default, mixin * executes a so-called "shallow copy" and aggregate types are copied/added by reference. - * - * @param dest The object to which to copy/add all properties contained in source. If dest is falsy, thena new object is manufactured before copying/adding properties begins. - * @param sources One of more objects from which to draw all properties to copy into dest. sources are processedleft-to-right and if more than one of these objects contain the same property name, the right-mostvalue "wins". + * + * @param dest The object to which to copy/add all properties contained in source. If dest is falsy, thena new object is manufactured before copying/adding properties begins. + * @param sources One of more objects from which to draw all properties to copy into dest. sources are processedleft-to-right and if more than one of these objects contain the same property name, the right-mostvalue "wins". */ mixin(dest: Object, sources: Object[]): Object; /** * similar to hitch() except that the scope object is left to be * whatever the execution context eventually becomes. * Calling lang.partial is the functional equivalent of calling: - * + * * lang.hitch(null, funcName, ...); - * - * @param method The function to "wrap" + * + * @param method The function to "wrap" */ partial(method: Function): any; /** * similar to hitch() except that the scope object is left to be * whatever the execution context eventually becomes. * Calling lang.partial is the functional equivalent of calling: - * + * * lang.hitch(null, funcName, ...); - * - * @param method The function to "wrap" + * + * @param method The function to "wrap" */ partial(method: String): any; /** * Performs parameterized substitutions on a string. Throws an * exception if any parameter is unmatched. - * - * @param tmpl String to be used as a template. - * @param map If an object, it is used as a dictionary to look up substitutions.If a function, it is called for every substitution with following parameters:a whole match, a name, an offset, and the whole templatestring (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replacefor more details). - * @param pattern OptionalOptional regular expression objects that overrides the default pattern.Must be global and match one item. The default is: /{([^}]+)}/g,which matches patterns like that: "{xxx}", where "xxx" is any sequenceof characters, which doesn't include "}". + * + * @param tmpl String to be used as a template. + * @param map If an object, it is used as a dictionary to look up substitutions.If a function, it is called for every substitution with following parameters:a whole match, a name, an offset, and the whole templatestring (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replacefor more details). + * @param pattern OptionalOptional regular expression objects that overrides the default pattern.Must be global and match one item. The default is: /{([^}]+)}/g,which matches patterns like that: "{xxx}", where "xxx" is any sequenceof characters, which doesn't include "}". */ replace(tmpl: String, map: Object, pattern?: RegExp): String; /** * Performs parameterized substitutions on a string. Throws an * exception if any parameter is unmatched. - * - * @param tmpl String to be used as a template. - * @param map If an object, it is used as a dictionary to look up substitutions.If a function, it is called for every substitution with following parameters:a whole match, a name, an offset, and the whole templatestring (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replacefor more details). - * @param pattern OptionalOptional regular expression objects that overrides the default pattern.Must be global and match one item. The default is: /{([^}]+)}/g,which matches patterns like that: "{xxx}", where "xxx" is any sequenceof characters, which doesn't include "}". + * + * @param tmpl String to be used as a template. + * @param map If an object, it is used as a dictionary to look up substitutions.If a function, it is called for every substitution with following parameters:a whole match, a name, an offset, and the whole templatestring (see https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String/replacefor more details). + * @param pattern OptionalOptional regular expression objects that overrides the default pattern.Must be global and match one item. The default is: /{([^}]+)}/g,which matches patterns like that: "{xxx}", where "xxx" is any sequenceof characters, which doesn't include "}". */ replace(tmpl: String, map: Function, pattern?: RegExp): String; /** @@ -5731,10 +5731,10 @@ declare module dojo { * the chain, or when you have an object reference in string format. * Objects are created as needed along path. Returns the passed * value if setting is successful or undefined if not. - * - * @param name Path to a property, in the form "A.B.C". - * @param value value or object to place at location given by name - * @param context OptionalOptional. Object to use as root of path. Defaults todojo.global. + * + * @param name Path to a property, in the form "A.B.C". + * @param value value or object to place at location given by name + * @param context OptionalOptional. Object to use as root of path. Defaults todojo.global. */ setObject(name: String, value: any, context?: Object): any; /** @@ -5745,8 +5745,8 @@ declare module dojo { * Uses String.prototype.trim instead, if available. * The fastest but longest version of this function is located at * lang.string.trim() - * - * @param str String to be trimmed + * + * @param str String to be trimmed */ trim(str: String): String; } @@ -5754,7 +5754,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/unload.html * * This module contains the document and window unload detection API. - * + * */ interface unload { /** @@ -5762,7 +5762,7 @@ declare module dojo { * The first time that addOnUnload is called Dojo will * register a page listener to trigger your unload handler * with. - * + * * In a browser environment, the functions will be triggered * during the window.onbeforeunload event. Be careful of doing * too much work in an unload handler. onbeforeunload can be @@ -5771,13 +5771,13 @@ declare module dojo { * onbeforeunload event fires, but the document is not * actually destroyed. So be careful about doing destructive * operations in a dojo.addOnUnload callback. - * + * * Further note that calling dojo.addOnUnload will prevent * browsers from using a "fast back" cache to make page * loading via back button instantaneous. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnUnload(obj?: Object, functionName?: String): void; /** @@ -5785,7 +5785,7 @@ declare module dojo { * The first time that addOnUnload is called Dojo will * register a page listener to trigger your unload handler * with. - * + * * In a browser environment, the functions will be triggered * during the window.onbeforeunload event. Be careful of doing * too much work in an unload handler. onbeforeunload can be @@ -5794,13 +5794,13 @@ declare module dojo { * onbeforeunload event fires, but the document is not * actually destroyed. So be careful about doing destructive * operations in a dojo.addOnUnload callback. - * + * * Further note that calling dojo.addOnUnload will prevent * browsers from using a "fast back" cache to make page * loading via back button instantaneous. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnUnload(obj?: Function, functionName?: String): void; /** @@ -5808,7 +5808,7 @@ declare module dojo { * The first time that addOnUnload is called Dojo will * register a page listener to trigger your unload handler * with. - * + * * In a browser environment, the functions will be triggered * during the window.onbeforeunload event. Be careful of doing * too much work in an unload handler. onbeforeunload can be @@ -5817,13 +5817,13 @@ declare module dojo { * onbeforeunload event fires, but the document is not * actually destroyed. So be careful about doing destructive * operations in a dojo.addOnUnload callback. - * + * * Further note that calling dojo.addOnUnload will prevent * browsers from using a "fast back" cache to make page * loading via back button instantaneous. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnUnload(obj?: Object, functionName?: Function): void; /** @@ -5831,7 +5831,7 @@ declare module dojo { * The first time that addOnUnload is called Dojo will * register a page listener to trigger your unload handler * with. - * + * * In a browser environment, the functions will be triggered * during the window.onbeforeunload event. Be careful of doing * too much work in an unload handler. onbeforeunload can be @@ -5840,13 +5840,13 @@ declare module dojo { * onbeforeunload event fires, but the document is not * actually destroyed. So be careful about doing destructive * operations in a dojo.addOnUnload callback. - * + * * Further note that calling dojo.addOnUnload will prevent * browsers from using a "fast back" cache to make page * loading via back button instantaneous. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnUnload(obj?: Function, functionName?: Function): void; /** @@ -5862,9 +5862,9 @@ declare module dojo { * addOnUnload() if you need to modify the DOM or do * heavy JavaScript work since it fires at the equivalent of * the page's "onbeforeunload" event. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnWindowUnload(obj?: Object, functionName?: String): void; /** @@ -5880,9 +5880,9 @@ declare module dojo { * addOnUnload() if you need to modify the DOM or do * heavy JavaScript work since it fires at the equivalent of * the page's "onbeforeunload" event. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnWindowUnload(obj?: Function, functionName?: String): void; /** @@ -5898,9 +5898,9 @@ declare module dojo { * addOnUnload() if you need to modify the DOM or do * heavy JavaScript work since it fires at the equivalent of * the page's "onbeforeunload" event. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnWindowUnload(obj?: Object, functionName?: Function): void; /** @@ -5916,9 +5916,9 @@ declare module dojo { * addOnUnload() if you need to modify the DOM or do * heavy JavaScript work since it fires at the equivalent of * the page's "onbeforeunload" event. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnWindowUnload(obj?: Function, functionName?: Function): void; } @@ -5926,25 +5926,25 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/window.html * * API to save/set/restore the global/document scope. - * + * */ interface window { /** * Alias for the current document. 'doc' can be modified * for temporary context shifting. See also withDoc(). - * + * */ doc: Object; /** * Alias for the current window. 'global' can be modified * for temporary context shifting. See also withGlobal(). - * + * */ global: Object; /** * Return the body element of the specified document or of dojo/_base/window::doc. - * - * @param doc Optional + * + * @param doc Optional */ body(doc?: HTMLDocument): any; /** @@ -5953,9 +5953,9 @@ declare module dojo { * context (e.g., an iframe). The varibles dojo.global and dojo.doc * are modified as a result of calling this function and the result of * dojo.body() likewise differs. - * - * @param globalObject - * @param globalDocument + * + * @param globalObject + * @param globalDocument */ setContext(globalObject: Object, globalDocument: HTMLDocument): void; /** @@ -5964,11 +5964,11 @@ declare module dojo { * callback will be executed in the context of object thisObject * When callback() returns or throws an error, the dojo/_base/window::doc will * be restored to its previous state. - * - * @param documentObject - * @param callback - * @param thisObject Optional - * @param cbArguments Optional + * + * @param documentObject + * @param callback + * @param thisObject Optional + * @param cbArguments Optional */ withDoc(documentObject: HTMLDocument, callback: Function, thisObject?: Object, cbArguments?: any[]): any; /** @@ -5979,15 +5979,15 @@ declare module dojo { * will be executed in the context of object thisObject * When callback() returns or throws an error, the dojo.global * and dojo.doc will be restored to its previous state. - * - * @param globalObject - * @param callback - * @param thisObject Optional - * @param cbArguments Optional + * + * @param globalObject + * @param callback + * @param thisObject Optional + * @param cbArguments Optional */ withGlobal(globalObject: Object, callback: Function, thisObject?: Object, cbArguments?: any[]): any; } - module window { + namespace window { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/window.doc.html * @@ -5995,15 +5995,15 @@ declare module dojo { * for temporary context shifting. See also withDoc(). * Use this rather than referring to 'window.document' to ensure your code runs * correctly in managed contexts. - * + * */ interface doc { /** - * + * */ documentElement: Object; /** - * + * */ dojoClick: boolean; } @@ -6014,31 +6014,31 @@ declare module dojo { * for temporary context shifting. See also withGlobal(). * Use this rather than referring to 'window' to ensure your code runs * correctly in managed contexts. - * + * */ interface global { /** - * + * */ $(): any; /** - * - * @param start - * @param data - * @param responseCode - * @param errorMsg + * + * @param start + * @param data + * @param responseCode + * @param errorMsg */ GoogleSearchStoreCallback_undefined_NaN(start: any, data: any, responseCode: any, errorMsg: any): void; /** - * + * */ jQuery(): any; /** - * + * */ swfIsInHTML(): void; /** - * + * */ undefined_onload(): void; } @@ -6048,261 +6048,261 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.html * * This module is the foundational module of the dojo boot sequence; it defines the dojo object. - * + * */ interface kernel { /** * Browser history management resources - * + * */ back: Object; /** - * + * */ baseUrl: string; /** - * + * */ behavior: Object; /** - * + * */ cldr: Object; /** - * + * */ colors: Object; /** * This module defines the user configuration during bootstrap. - * + * */ config: Object; /** - * + * */ connectPublisher: Object; /** * A map of available XHR transport handle types. Name matches the * handleAs attribute passed to XHR calls. - * + * */ contentHandlers: Object; /** * localized formatting and parsing routines for currencies - * + * */ currency: Object; /** - * + * */ data: Object; /** - * + * */ date: Object; /** - * + * */ dijit: Object; /** - * + * */ dnd: Object; /** * Alias for the current document. 'doc' can be modified * for temporary context shifting. See also withDoc(). - * + * */ doc: Object; /** - * + * */ dojox: Object; /** * Effects library on top of Base animations - * + * */ fx: Object; /** * TODOC - * + * */ gears: Object; /** * Alias for the current window. 'global' can be modified * for temporary context shifting. See also withGlobal(). - * + * */ global: Object; /** * TODOC - * + * */ html: Object; /** * This module implements the dojo/i18n! plugin and the v1.6- i18n API - * + * */ i18n: Object; /** - * + * */ io: Object; /** * True if client is Adobe Air - * + * */ isAir: boolean; /** * Version as a Number if client is android browser. undefined otherwise. - * + * */ isAndroid: number; /** - * + * */ isAsync: boolean; /** - * + * */ isBrowser: boolean; /** * Version as a Number if client is Chrome browser. undefined otherwise. - * + * */ isChrome: number; /** - * + * */ isCopyKey: Object; /** - * + * */ isFF: Object; /** * Version as a Number if client is MSIE(PC). undefined otherwise. Corresponds to * major detected IE version (6, 7, 8, etc.) - * + * */ isIE: number; /** * Version as a Number if client is iPhone, iPod, or iPad. undefined otherwise. - * + * */ isIos: number; /** * Version as a Number if client is a KHTML browser. undefined otherwise. Corresponds to major * detected version. - * + * */ isKhtml: number; /** * True if the client runs on Mac - * + * */ isMac: boolean; /** - * + * */ isMoz: Object; /** - * + * */ isMozilla: Object; /** * Version as a Number if client is Opera. undefined otherwise. Corresponds to * major detected version. - * + * */ isOpera: number; /** - * + * */ isQuirks: boolean; /** * Version as a Number if client is Safari or iPhone. undefined otherwise. - * + * */ isSafari: number; /** - * + * */ isSpidermonkey: boolean; /** * Version as a Number if client is a WebKit-derived browser (Konqueror, * Safari, Chrome, etc.). undefined otherwise. - * + * */ isWebKit: number; /** * True if client is Wii - * + * */ isWii: boolean; /** * Definitions for common key values. Client code should test keyCode against these named constants, * as the actual codes can vary by browser. - * + * */ keys: Object; /** - * + * */ locale: Object; /** - * + * */ mouseButtons: Object; /** * localized formatting and parsing routines for Number - * + * */ number: Object; /** - * + * */ parser: string; /** - * + * */ publish: Object; /** - * + * */ query: Object; /** * Regular expressions and Builder resources - * + * */ regexp: Object; /** - * + * */ rpc: Object; /** - * + * */ scopeMap: Object; /** - * + * */ store: Object; /** * String utilities for Dojo - * + * */ string: Object; /** - * + * */ subscribe: Object; /** * D.O.H. Test files for Dojo unit testing. - * + * */ tests: Object; /** - * + * */ toJsonIndentStr: string; /** @@ -6313,17 +6313,17 @@ declare module dojo { * click events immediately for this node and its descendants (except for descendants that * have a dojoClick property set to falsy), to avoid the delay before native browser click events, * and regardless of whether evt.preventDefault() was called in a touch.press event listener. - * + * */ touch: Object; /** * Version number of the Dojo Toolkit - * + * */ version: Object; /** * TODOC - * + * */ window: Object; /** @@ -6332,52 +6332,52 @@ declare module dojo { * wrap, directReturn] that are used to determine what the contextual * result of a set of checked arguments is. All check/wrap functions * in this registry should be of the same arity. - * - * @param returnWrappers Optional + * + * @param returnWrappers Optional */ AdapterRegistry(returnWrappers?: boolean): void; /** * Adds the specified classes to the end of the class list on the * passed node. Will not re-apply duplicate classes. - * - * @param node String ID or DomNode reference to add a class string too - * @param classStr A String class name to add, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to add a class string too + * @param classStr A String class name to add, or several space-separated class names,or an array of class names. */ addClass(node: String, classStr: String): void; /** * Adds the specified classes to the end of the class list on the * passed node. Will not re-apply duplicate classes. - * - * @param node String ID or DomNode reference to add a class string too - * @param classStr A String class name to add, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to add a class string too + * @param classStr A String class name to add, or several space-separated class names,or an array of class names. */ addClass(node: HTMLElement, classStr: String): void; /** * Adds the specified classes to the end of the class list on the * passed node. Will not re-apply duplicate classes. - * - * @param node String ID or DomNode reference to add a class string too - * @param classStr A String class name to add, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to add a class string too + * @param classStr A String class name to add, or several space-separated class names,or an array of class names. */ addClass(node: String, classStr: any[]): void; /** * Adds the specified classes to the end of the class list on the * passed node. Will not re-apply duplicate classes. - * - * @param node String ID or DomNode reference to add a class string too - * @param classStr A String class name to add, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to add a class string too + * @param classStr A String class name to add, or several space-separated class names,or an array of class names. */ addClass(node: HTMLElement, classStr: any[]): void; /** * Add a function to execute on DOM content loaded and all requested modules have arrived and been evaluated. * In most cases, the domReady plug-in should suffice and this method should not be needed. - * + * * When called in a non-browser environment, just checks that all requested modules have arrived and been * evaluated. - * - * @param priority OptionalThe order in which to exec this callback relative to other callbacks, defaults to 1000 - * @param context The context in which to run execute callback, or a callback if not using context - * @param callback OptionalThe function to execute. + * + * @param priority OptionalThe order in which to exec this callback relative to other callbacks, defaults to 1000 + * @param context The context in which to run execute callback, or a callback if not using context + * @param callback OptionalThe function to execute. */ addOnLoad(priority: number, context: any, callback?: Function): void; /** @@ -6385,7 +6385,7 @@ declare module dojo { * The first time that addOnUnload is called Dojo will * register a page listener to trigger your unload handler * with. - * + * * In a browser environment, the functions will be triggered * during the window.onbeforeunload event. Be careful of doing * too much work in an unload handler. onbeforeunload can be @@ -6394,13 +6394,13 @@ declare module dojo { * onbeforeunload event fires, but the document is not * actually destroyed. So be careful about doing destructive * operations in a dojo.addOnUnload callback. - * + * * Further note that calling dojo.addOnUnload will prevent * browsers from using a "fast back" cache to make page * loading via back button instantaneous. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnUnload(obj?: Object, functionName?: String): void; /** @@ -6408,7 +6408,7 @@ declare module dojo { * The first time that addOnUnload is called Dojo will * register a page listener to trigger your unload handler * with. - * + * * In a browser environment, the functions will be triggered * during the window.onbeforeunload event. Be careful of doing * too much work in an unload handler. onbeforeunload can be @@ -6417,13 +6417,13 @@ declare module dojo { * onbeforeunload event fires, but the document is not * actually destroyed. So be careful about doing destructive * operations in a dojo.addOnUnload callback. - * + * * Further note that calling dojo.addOnUnload will prevent * browsers from using a "fast back" cache to make page * loading via back button instantaneous. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnUnload(obj?: Function, functionName?: String): void; /** @@ -6431,7 +6431,7 @@ declare module dojo { * The first time that addOnUnload is called Dojo will * register a page listener to trigger your unload handler * with. - * + * * In a browser environment, the functions will be triggered * during the window.onbeforeunload event. Be careful of doing * too much work in an unload handler. onbeforeunload can be @@ -6440,13 +6440,13 @@ declare module dojo { * onbeforeunload event fires, but the document is not * actually destroyed. So be careful about doing destructive * operations in a dojo.addOnUnload callback. - * + * * Further note that calling dojo.addOnUnload will prevent * browsers from using a "fast back" cache to make page * loading via back button instantaneous. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnUnload(obj?: Object, functionName?: Function): void; /** @@ -6454,7 +6454,7 @@ declare module dojo { * The first time that addOnUnload is called Dojo will * register a page listener to trigger your unload handler * with. - * + * * In a browser environment, the functions will be triggered * during the window.onbeforeunload event. Be careful of doing * too much work in an unload handler. onbeforeunload can be @@ -6463,13 +6463,13 @@ declare module dojo { * onbeforeunload event fires, but the document is not * actually destroyed. So be careful about doing destructive * operations in a dojo.addOnUnload callback. - * + * * Further note that calling dojo.addOnUnload will prevent * browsers from using a "fast back" cache to make page * loading via back button instantaneous. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnUnload(obj?: Function, functionName?: Function): void; /** @@ -6478,9 +6478,9 @@ declare module dojo { * during this phase of page unloading: they may not always be available. * Consider dojo.addOnUnload() if you need to modify the DOM or do heavy * JavaScript work. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnWindowUnload(obj?: Object, functionName?: String): void; /** @@ -6489,9 +6489,9 @@ declare module dojo { * during this phase of page unloading: they may not always be available. * Consider dojo.addOnUnload() if you need to modify the DOM or do heavy * JavaScript work. - * - * @param obj Optional - * @param functionName Optional + * + * @param obj Optional + * @param functionName Optional */ addOnWindowUnload(obj: Object, functionName: Function): void; /** @@ -6503,16 +6503,16 @@ declare module dojo { * and allows for positional parameters to be used in place of the * packed "property bag" which is used for other Dojo animation * methods. - * + * * The Animation object returned will be already playing, so * calling play() on it again is (usually) a no-op. - * - * @param node a DOM node or the id of a node to animate CSS properties on - * @param properties - * @param duration OptionalThe number of milliseconds over which the animationshould run. Defaults to the global animation default duration(350ms). - * @param easing OptionalAn easing function over which to calculate accelerationand deceleration of the animation through its duration.A default easing algorithm is provided, but you mayplug in any you wish. A large selection of easing algorithmsare available in dojo/fx/easing. - * @param onEnd OptionalA function to be called when the animation finishesrunning. - * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. + * + * @param node a DOM node or the id of a node to animate CSS properties on + * @param properties + * @param duration OptionalThe number of milliseconds over which the animationshould run. Defaults to the global animation default duration(350ms). + * @param easing OptionalAn easing function over which to calculate accelerationand deceleration of the animation through its duration.A default easing algorithm is provided, but you mayplug in any you wish. A large selection of easing algorithmsare available in dojo/fx/easing. + * @param onEnd OptionalA function to be called when the animation finishesrunning. + * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. */ anim(node: HTMLElement, properties: Object, duration?: number, easing?: Function, onEnd?: Function, delay?: number): any; /** @@ -6524,16 +6524,16 @@ declare module dojo { * and allows for positional parameters to be used in place of the * packed "property bag" which is used for other Dojo animation * methods. - * + * * The Animation object returned will be already playing, so * calling play() on it again is (usually) a no-op. - * - * @param node a DOM node or the id of a node to animate CSS properties on - * @param properties - * @param duration OptionalThe number of milliseconds over which the animationshould run. Defaults to the global animation default duration(350ms). - * @param easing OptionalAn easing function over which to calculate accelerationand deceleration of the animation through its duration.A default easing algorithm is provided, but you mayplug in any you wish. A large selection of easing algorithmsare available in dojo/fx/easing. - * @param onEnd OptionalA function to be called when the animation finishesrunning. - * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. + * + * @param node a DOM node or the id of a node to animate CSS properties on + * @param properties + * @param duration OptionalThe number of milliseconds over which the animationshould run. Defaults to the global animation default duration(350ms). + * @param easing OptionalAn easing function over which to calculate accelerationand deceleration of the animation through its duration.A default easing algorithm is provided, but you mayplug in any you wish. A large selection of easing algorithmsare available in dojo/fx/easing. + * @param onEnd OptionalA function to be called when the animation finishesrunning. + * @param delay OptionalThe number of milliseconds to delay beginning theanimation by. The default is 0. */ anim(node: String, properties: Object, duration?: number, easing?: Function, onEnd?: Function, delay?: number): any; /** @@ -6544,8 +6544,8 @@ declare module dojo { * animations. It takes an object of "properties" corresponding to * style properties, and animates them in parallel over a set * duration. - * - * @param args An object with the following properties:properties (Object, optional): A hash map of style properties to Objects describing the transition,such as the properties of _Line with an additional 'units' propertynode (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. + * + * @param args An object with the following properties:properties (Object, optional): A hash map of style properties to Objects describing the transition,such as the properties of _Line with an additional 'units' propertynode (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ animateProperty(args: Object): any; /** @@ -6557,8 +6557,8 @@ declare module dojo { * .play() method beforehand. Therefore, you will likely need to * call .play() on instances of Animation when one is * returned. - * - * @param args The 'magic argument', mixing all the properties into thisanimation instance. + * + * @param args The 'magic argument', mixing all the properties into thisanimation instance. */ Animation(args: Object): void; /** @@ -6566,10 +6566,10 @@ declare module dojo { * Handles normalized getting and setting of attributes on DOM * Nodes. If 2 arguments are passed, and a the second argument is a * string, acts as a getter. - * + * * If a third argument is passed, or if the second argument is a * map of attributes, acts as a setter. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -6579,10 +6579,10 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to get or set the attribute on - * @param name the name of the attribute to get or set. - * @param value OptionalThe value to set for the attribute + * + * @param node id or reference to the element to get or set the attribute on + * @param name the name of the attribute to get or set. + * @param value OptionalThe value to set for the attribute */ attr(node: HTMLElement, name: String, value?: String): any; /** @@ -6590,10 +6590,10 @@ declare module dojo { * Handles normalized getting and setting of attributes on DOM * Nodes. If 2 arguments are passed, and a the second argument is a * string, acts as a getter. - * + * * If a third argument is passed, or if the second argument is a * map of attributes, acts as a setter. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -6603,10 +6603,10 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to get or set the attribute on - * @param name the name of the attribute to get or set. - * @param value OptionalThe value to set for the attribute + * + * @param node id or reference to the element to get or set the attribute on + * @param name the name of the attribute to get or set. + * @param value OptionalThe value to set for the attribute */ attr(node: String, name: String, value?: String): any; /** @@ -6614,10 +6614,10 @@ declare module dojo { * Handles normalized getting and setting of attributes on DOM * Nodes. If 2 arguments are passed, and a the second argument is a * string, acts as a getter. - * + * * If a third argument is passed, or if the second argument is a * map of attributes, acts as a setter. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -6627,10 +6627,10 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to get or set the attribute on - * @param name the name of the attribute to get or set. - * @param value OptionalThe value to set for the attribute + * + * @param node id or reference to the element to get or set the attribute on + * @param name the name of the attribute to get or set. + * @param value OptionalThe value to set for the attribute */ attr(node: HTMLElement, name: Object, value?: String): any; /** @@ -6638,10 +6638,10 @@ declare module dojo { * Handles normalized getting and setting of attributes on DOM * Nodes. If 2 arguments are passed, and a the second argument is a * string, acts as a getter. - * + * * If a third argument is passed, or if the second argument is a * map of attributes, acts as a setter. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -6651,42 +6651,42 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to get or set the attribute on - * @param name the name of the attribute to get or set. - * @param value OptionalThe value to set for the attribute + * + * @param node id or reference to the element to get or set the attribute on + * @param name the name of the attribute to get or set. + * @param value OptionalThe value to set for the attribute */ attr(node: String, name: Object, value?: String): any; /** * Blend colors end and start with weight from 0 to 1, 0.5 being a 50/50 blend, * can reuse a previously allocated Color object for the result - * - * @param start - * @param end - * @param weight - * @param obj Optional + * + * @param start + * @param end + * @param weight + * @param obj Optional */ blendColors(start: dojo._base.Color, end: dojo._base.Color, weight: number, obj?: dojo._base.Color): any; /** * Return the body element of the specified document or of dojo/_base/window::doc. - * - * @param doc Optional + * + * @param doc Optional */ body(doc?: HTMLDocument): any; /** * Returns DOM node with matching id attribute or falsy value (ex: null or undefined) * if not found. If id is a DomNode, this function is a no-op. - * - * @param id A string to match an HTML id attribute or a reference to a DOM Node - * @param doc OptionalDocument to work in. Defaults to the current value ofdojo/_base/window.doc. Can be used to retrievenode references from other documents. + * + * @param id A string to match an HTML id attribute or a reference to a DOM Node + * @param doc OptionalDocument to work in. Defaults to the current value ofdojo/_base/window.doc. Can be used to retrievenode references from other documents. */ byId(id: String, doc?: HTMLDocument): any; /** * Returns DOM node with matching id attribute or falsy value (ex: null or undefined) * if not found. If id is a DomNode, this function is a no-op. - * - * @param id A string to match an HTML id attribute or a reference to a DOM Node - * @param doc OptionalDocument to work in. Defaults to the current value ofdojo/_base/window.doc. Can be used to retrievenode references from other documents. + * + * @param id A string to match an HTML id attribute or a reference to a DOM Node + * @param doc OptionalDocument to work in. Defaults to the current value ofdojo/_base/window.doc. Can be used to retrievenode references from other documents. */ byId(id: HTMLElement, doc?: HTMLDocument): any; /** @@ -6703,10 +6703,10 @@ declare module dojo { * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the * the URL contents, only modules on the same domain of the page can use this capability. * The build system can inline the cache values though, to allow for xdomain hosting. - * - * @param module dojo/cldr/supplemental - * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. - * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ cache(module: String, url: String, value?: String): any; /** @@ -6723,10 +6723,10 @@ declare module dojo { * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the * the URL contents, only modules on the same domain of the page can use this capability. * The build system can inline the cache values though, to allow for xdomain hosting. - * - * @param module dojo/cldr/supplemental - * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. - * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ cache(module: Object, url: String, value?: String): any; /** @@ -6743,10 +6743,10 @@ declare module dojo { * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the * the URL contents, only modules on the same domain of the page can use this capability. * The build system can inline the cache values though, to allow for xdomain hosting. - * - * @param module dojo/cldr/supplemental - * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. - * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ cache(module: String, url: String, value?: Object): any; /** @@ -6763,64 +6763,64 @@ declare module dojo { * a cache value pass null for value. Since XMLHttpRequest (XHR) is used to fetch the * the URL contents, only modules on the same domain of the page can use this capability. * The build system can inline the cache values though, to allow for xdomain hosting. - * - * @param module dojo/cldr/supplemental - * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. - * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. + * + * @param module dojo/cldr/supplemental + * @param url The rest of the path to append to the path derived from the module argument. Ifmodule is an object, then this second argument should be the "value" argument instead. + * @param value OptionalIf a String, the value to use in the cache for the module/url combination.If an Object, it can have two properties: value and sanitize. The value propertyshould be the value to use in the cache, and sanitize can be set to true or false,to indicate if XML declarations should be removed from the value and if the HTMLinside a body tag in the value should be extracted as the real value. The value argumentor the value property on the value argument are usually only used by the build systemas it inlines cache content. */ cache(module: Object, url: String, value?: Object): any; /** - * + * */ clearCache(): void; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and creates a new Color instance to work from. - * - * @param color + * + * @param color */ Color(color: any[]): void; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and creates a new Color instance to work from. - * - * @param color + * + * @param color */ Color(color: String): void; /** * Takes a named string, hex string, array of rgb or rgba values, * an object with r, g, b, and a properties, or another Color object * and creates a new Color instance to work from. - * - * @param color + * + * @param color */ Color(color: Object): void; /** * Builds a Color from a 3 or 4 element array, mapping each * element in sequence to the rgb(a) values of the color. - * - * @param a - * @param obj Optional + * + * @param a + * @param obj Optional */ colorFromArray(a: any[], obj?: dojo._base.Color): any; /** * Converts a hex string with a '#' prefix to a color object. * Supports 12-bit #rgb shorthand. Optionally accepts a * Color object to update with the parsed value. - * - * @param color - * @param obj Optional + * + * @param color + * @param obj Optional */ colorFromHex(color: String, obj?: dojo._base.Color): any; /** * get rgb(a) array from css-style color declarations * this function can handle all 4 CSS3 Color Module formats: rgb, * rgba, hsl, hsla, including rgb(a) with percentage values. - * - * @param color - * @param obj Optional + * + * @param color + * @param obj Optional */ colorFromRgb(color: String, obj?: dojo._base.Color): any; /** @@ -6830,9 +6830,9 @@ declare module dojo { * accepted by dojo.colorFromArray, hex strings such as "#aaaaaa", or * rgb or rgba strings such as "rgb(133, 200, 16)" or "rgba(10, 10, * 10, 50)" - * - * @param str - * @param obj Optional + * + * @param str + * @param obj Optional */ colorFromString(str: String, obj?: dojo._base.Color): any; /** @@ -6844,35 +6844,35 @@ declare module dojo { * Connects listeners to actions, so that after event fires, a * listener is called with the same arguments passed to the original * function. - * + * * Since dojo.connect allows the source of events to be either a * "regular" JavaScript function or a DOM event, it provides a uniform * interface for listening to all the types of events that an * application is likely to deal with though a single, unified * interface. DOM programmers may want to think of it as * "addEventListener for everything and anything". - * + * * When setting up a connection, the event parameter must be a * string that is the name of the method/event to be listened for. If * obj is null, kernel.global is assumed, meaning that connections * to global methods are supported but also that you may inadvertently * connect to a global by passing an incorrect object name or invalid * reference. - * + * * dojo.connect generally is forgiving. If you pass the name of a * function or method that does not yet exist on obj, connect will * not fail, but will instead set up a stub method. Similarly, null * arguments may simply be omitted such that fewer than 4 arguments * may be required to set up a connection See the examples for details. - * + * * The return value is a handle that is needed to * remove this connection with dojo.disconnect. - * - * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). - * @param event String name of the event function in obj.I.e. identifies a property obj[event]. - * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. - * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. - * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. + * + * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). + * @param event String name of the event function in obj.I.e. identifies a property obj[event]. + * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. + * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. + * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. */ connect(obj: Object, event: String, context: Object, method: String, dontFix?: boolean): any; /** @@ -6884,35 +6884,35 @@ declare module dojo { * Connects listeners to actions, so that after event fires, a * listener is called with the same arguments passed to the original * function. - * + * * Since dojo.connect allows the source of events to be either a * "regular" JavaScript function or a DOM event, it provides a uniform * interface for listening to all the types of events that an * application is likely to deal with though a single, unified * interface. DOM programmers may want to think of it as * "addEventListener for everything and anything". - * + * * When setting up a connection, the event parameter must be a * string that is the name of the method/event to be listened for. If * obj is null, kernel.global is assumed, meaning that connections * to global methods are supported but also that you may inadvertently * connect to a global by passing an incorrect object name or invalid * reference. - * + * * dojo.connect generally is forgiving. If you pass the name of a * function or method that does not yet exist on obj, connect will * not fail, but will instead set up a stub method. Similarly, null * arguments may simply be omitted such that fewer than 4 arguments * may be required to set up a connection See the examples for details. - * + * * The return value is a handle that is needed to * remove this connection with dojo.disconnect. - * - * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). - * @param event String name of the event function in obj.I.e. identifies a property obj[event]. - * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. - * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. - * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. + * + * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). + * @param event String name of the event function in obj.I.e. identifies a property obj[event]. + * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. + * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. + * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. */ connect(obj: Object, event: String, context: any, method: String, dontFix?: boolean): any; /** @@ -6924,35 +6924,35 @@ declare module dojo { * Connects listeners to actions, so that after event fires, a * listener is called with the same arguments passed to the original * function. - * + * * Since dojo.connect allows the source of events to be either a * "regular" JavaScript function or a DOM event, it provides a uniform * interface for listening to all the types of events that an * application is likely to deal with though a single, unified * interface. DOM programmers may want to think of it as * "addEventListener for everything and anything". - * + * * When setting up a connection, the event parameter must be a * string that is the name of the method/event to be listened for. If * obj is null, kernel.global is assumed, meaning that connections * to global methods are supported but also that you may inadvertently * connect to a global by passing an incorrect object name or invalid * reference. - * + * * dojo.connect generally is forgiving. If you pass the name of a * function or method that does not yet exist on obj, connect will * not fail, but will instead set up a stub method. Similarly, null * arguments may simply be omitted such that fewer than 4 arguments * may be required to set up a connection See the examples for details. - * + * * The return value is a handle that is needed to * remove this connection with dojo.disconnect. - * - * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). - * @param event String name of the event function in obj.I.e. identifies a property obj[event]. - * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. - * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. - * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. + * + * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). + * @param event String name of the event function in obj.I.e. identifies a property obj[event]. + * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. + * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. + * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. */ connect(obj: Object, event: String, context: Object, method: Function, dontFix?: boolean): any; /** @@ -6964,35 +6964,35 @@ declare module dojo { * Connects listeners to actions, so that after event fires, a * listener is called with the same arguments passed to the original * function. - * + * * Since dojo.connect allows the source of events to be either a * "regular" JavaScript function or a DOM event, it provides a uniform * interface for listening to all the types of events that an * application is likely to deal with though a single, unified * interface. DOM programmers may want to think of it as * "addEventListener for everything and anything". - * + * * When setting up a connection, the event parameter must be a * string that is the name of the method/event to be listened for. If * obj is null, kernel.global is assumed, meaning that connections * to global methods are supported but also that you may inadvertently * connect to a global by passing an incorrect object name or invalid * reference. - * + * * dojo.connect generally is forgiving. If you pass the name of a * function or method that does not yet exist on obj, connect will * not fail, but will instead set up a stub method. Similarly, null * arguments may simply be omitted such that fewer than 4 arguments * may be required to set up a connection See the examples for details. - * + * * The return value is a handle that is needed to * remove this connection with dojo.disconnect. - * - * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). - * @param event String name of the event function in obj.I.e. identifies a property obj[event]. - * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. - * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. - * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. + * + * @param obj OptionalThe source object for the event function.Defaults to kernel.global if null.If obj is a DOM node, the connection is delegatedto the DOM event manager (unless dontFix is true). + * @param event String name of the event function in obj.I.e. identifies a property obj[event]. + * @param context The object that method will receive as "this".If context is null and method is a function, then methodinherits the context of event.If method is a string then context must be the sourceobject object for method (context[method]). If context is null,kernel.global is used. + * @param method A function reference, or name of a function in context.The function identified by method fires after event does.method receives the same arguments as the event.See context argument comments for information on method's scope. + * @param dontFix OptionalIf obj is a DOM node, set dontFix to true to prevent delegationof this connection to the DOM event manager. */ connect(obj: Object, event: String, context: any, method: Function, dontFix?: boolean): any; /** @@ -7007,9 +7007,9 @@ declare module dojo { * CSS values set/inherited for node. * While the getter will return top and left values, the * setter only accepts setting the width and height. - * - * @param node id or reference to DOM Node to get/set box for - * @param box OptionalIf passed, denotes that dojo.contentBox() shouldupdate/set the content box for node. Box is an object in theabove format, but only w (width) and h (height) are supported.All properties are optional if passed. + * + * @param node id or reference to DOM Node to get/set box for + * @param box OptionalIf passed, denotes that dojo.contentBox() shouldupdate/set the content box for node. Box is an object in theabove format, but only w (width) and h (height) are supported.All properties are optional if passed. */ contentBox(node: HTMLElement, box?: Object): any; /** @@ -7024,57 +7024,57 @@ declare module dojo { * CSS values set/inherited for node. * While the getter will return top and left values, the * setter only accepts setting the width and height. - * - * @param node id or reference to DOM Node to get/set box for - * @param box OptionalIf passed, denotes that dojo.contentBox() shouldupdate/set the content box for node. Box is an object in theabove format, but only w (width) and h (height) are supported.All properties are optional if passed. + * + * @param node id or reference to DOM Node to get/set box for + * @param box OptionalIf passed, denotes that dojo.contentBox() shouldupdate/set the content box for node. Box is an object in theabove format, but only w (width) and h (height) are supported.All properties are optional if passed. */ contentBox(node: String, box?: Object): any; /** * Get or set a cookie. * If one argument is passed, returns the value of the cookie * For two or more arguments, acts as a setter. - * - * @param name Name of the cookie - * @param value OptionalValue for the cookie - * @param props OptionalProperties for the cookie + * + * @param name Name of the cookie + * @param value OptionalValue for the cookie + * @param props OptionalProperties for the cookie */ cookie(name: String, value?: String, props?: Object): any; /** * Deprecated: Use position() for border-box x/y/w/h * or marginBox() for margin-box w/h/l/t. - * + * * Returns an object that measures margin-box (w)idth/(h)eight * and absolute position x/y of the border-box. Also returned * is computed (l)eft and (t)op values in pixels from the * node's offsetParent as returned from marginBox(). * Return value will be in the form: - * + * * { l: 50, t: 200, w: 300: h: 150, x: 100, y: 300 } * Does not act as a setter. If includeScroll is passed, the x and - * + * * y params are affected as one would expect in dojo.position(). - * - * @param node - * @param includeScroll Optional + * + * @param node + * @param includeScroll Optional */ coords(node: HTMLElement, includeScroll?: boolean): any; /** * Deprecated: Use position() for border-box x/y/w/h * or marginBox() for margin-box w/h/l/t. - * + * * Returns an object that measures margin-box (w)idth/(h)eight * and absolute position x/y of the border-box. Also returned * is computed (l)eft and (t)op values in pixels from the * node's offsetParent as returned from marginBox(). * Return value will be in the form: - * + * * { l: 50, t: 200, w: 300: h: 150, x: 100, y: 300 } * Does not act as a setter. If includeScroll is passed, the x and - * + * * y params are affected as one would expect in dojo.position(). - * - * @param node - * @param includeScroll Optional + * + * @param node + * @param includeScroll Optional */ coords(node: String, includeScroll?: boolean): any; /** @@ -7083,17 +7083,17 @@ declare module dojo { * A DOM Element creation function. A shorthand method for creating a node or * a fragment, and allowing for a convenient optional attribute setting step, * as well as an optional DOM placement reference. - * + * * Attributes are set by passing the optional object through dojo.setAttr. * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * + * * Placement is done via dojo.place, assuming the new node to be the action * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. */ create(tag: HTMLElement, attrs: Object, refNode?: HTMLElement, pos?: String): any; /** @@ -7102,17 +7102,17 @@ declare module dojo { * A DOM Element creation function. A shorthand method for creating a node or * a fragment, and allowing for a convenient optional attribute setting step, * as well as an optional DOM placement reference. - * + * * Attributes are set by passing the optional object through dojo.setAttr. * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * + * * Placement is done via dojo.place, assuming the new node to be the action * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. */ create(tag: String, attrs: Object, refNode?: HTMLElement, pos?: String): any; /** @@ -7121,17 +7121,17 @@ declare module dojo { * A DOM Element creation function. A shorthand method for creating a node or * a fragment, and allowing for a convenient optional attribute setting step, * as well as an optional DOM placement reference. - * + * * Attributes are set by passing the optional object through dojo.setAttr. * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * + * * Placement is done via dojo.place, assuming the new node to be the action * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. */ create(tag: HTMLElement, attrs: Object, refNode?: String, pos?: String): any; /** @@ -7140,58 +7140,58 @@ declare module dojo { * A DOM Element creation function. A shorthand method for creating a node or * a fragment, and allowing for a convenient optional attribute setting step, * as well as an optional DOM placement reference. - * + * * Attributes are set by passing the optional object through dojo.setAttr. * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * + * * Placement is done via dojo.place, assuming the new node to be the action * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. */ create(tag: String, attrs: Object, refNode?: String, pos?: String): any; /** * Create a feature-rich constructor from compact notation. * Create a constructor using a compact notation for inheritance and * prototype extension. - * + * * Mixin ancestors provide a type of multiple inheritance. * Prototypes of mixin ancestors are copied to the new class: * changes to mixin prototypes will not affect classes to which * they have been mixed in. - * + * * Ancestors can be compound classes created by this version of * declare(). In complex cases all base classes are going to be * linearized according to C3 MRO algorithm * (see http://www.python.org/download/releases/2.3/mro/ for more * details). - * + * * "className" is cached in "declaredClass" property of the new class, * if it was supplied. The immediate super class will be cached in * "superclass" property of the new class. - * + * * Methods in "props" will be copied and modified: "nom" property * (the declared name of the method) will be added to all copied * functions to help identify them for the internal machinery. Be * very careful, while reusing methods: if you use the same * function under different names, it can produce errors in some * cases. - * + * * It is possible to use constructors created "manually" (without * declare()) as bases. They will be called as usual during the * creation of an instance, their methods will be chained, and even * called by "this.inherited()". - * + * * Special property "-chains-" governs how to chain methods. It is * a dictionary, which uses method names as keys, and hint strings * as values. If a hint string is "after", this method will be * called after methods of its base classes. If a hint string is * "before", this method will be called before methods of its base * classes. - * + * * If "constructor" is not mentioned in "-chains-" property, it will * be chained using the legacy mode: using "after" chaining, * calling preamble() method before each constructor, if available, @@ -7203,68 +7203,68 @@ declare module dojo { * are not going to be chained in any way, and programmer will call * them manually using this.inherited(). In the latter case * postscript() will be called after the construction. - * + * * All chaining hints are "inherited" from base classes and * potentially can be overridden. Be very careful when overriding * hints! Make sure that all chained methods can work in a proposed * manner of chaining. - * + * * Once a method was chained, it is impossible to unchain it. The * only exception is "constructor". You don't need to define a * method in order to supply a chaining hint. - * + * * If a method is chained, it cannot use this.inherited() because * all other methods in the hierarchy will be called automatically. - * + * * Usually constructors and initializers of any kind are chained * using "after" and destructors of any kind are chained as * "before". Note that chaining assumes that chained methods do not * return any value: any returned value will be discarded. - * - * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. - * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). - * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". + * + * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. + * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). + * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ declare(className: String, superclass: Function, props: Object): dojo._base.declare.__DeclareCreatedObject; /** * Create a feature-rich constructor from compact notation. * Create a constructor using a compact notation for inheritance and * prototype extension. - * + * * Mixin ancestors provide a type of multiple inheritance. * Prototypes of mixin ancestors are copied to the new class: * changes to mixin prototypes will not affect classes to which * they have been mixed in. - * + * * Ancestors can be compound classes created by this version of * declare(). In complex cases all base classes are going to be * linearized according to C3 MRO algorithm * (see http://www.python.org/download/releases/2.3/mro/ for more * details). - * + * * "className" is cached in "declaredClass" property of the new class, * if it was supplied. The immediate super class will be cached in * "superclass" property of the new class. - * + * * Methods in "props" will be copied and modified: "nom" property * (the declared name of the method) will be added to all copied * functions to help identify them for the internal machinery. Be * very careful, while reusing methods: if you use the same * function under different names, it can produce errors in some * cases. - * + * * It is possible to use constructors created "manually" (without * declare()) as bases. They will be called as usual during the * creation of an instance, their methods will be chained, and even * called by "this.inherited()". - * + * * Special property "-chains-" governs how to chain methods. It is * a dictionary, which uses method names as keys, and hint strings * as values. If a hint string is "after", this method will be * called after methods of its base classes. If a hint string is * "before", this method will be called before methods of its base * classes. - * + * * If "constructor" is not mentioned in "-chains-" property, it will * be chained using the legacy mode: using "after" chaining, * calling preamble() method before each constructor, if available, @@ -7276,27 +7276,27 @@ declare module dojo { * are not going to be chained in any way, and programmer will call * them manually using this.inherited(). In the latter case * postscript() will be called after the construction. - * + * * All chaining hints are "inherited" from base classes and * potentially can be overridden. Be very careful when overriding * hints! Make sure that all chained methods can work in a proposed * manner of chaining. - * + * * Once a method was chained, it is impossible to unchain it. The * only exception is "constructor". You don't need to define a * method in order to supply a chaining hint. - * + * * If a method is chained, it cannot use this.inherited() because * all other methods in the hierarchy will be called automatically. - * + * * Usually constructors and initializers of any kind are chained * using "after" and destructors of any kind are chained as * "before". Note that chaining assumes that chained methods do not * return any value: any returned value will be discarded. - * - * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. - * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). - * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". + * + * @param className OptionalThe optional name of the constructor (loosely, a "class")stored in the "declaredClass" property in the created prototype.It will be used as a global name for a created constructor. + * @param superclass May be null, a Function, or an Array of Functions. This argumentspecifies a list of bases (the left-most one is the most deepestbase). + * @param props An object whose properties are copied to the created prototype.Add an instance-initialization function by making it a propertynamed "constructor". */ declare(className: String, superclass: Function[], props: Object): dojo._base.declare.__DeclareCreatedObject; /** @@ -7315,12 +7315,12 @@ declare module dojo { * async functions return promises, the concerns of making the call are * separated from the concerns of asynchronous interaction (which are * handled by the promise). - * + * * The Deferred is a type of promise that provides methods for fulfilling the * promise with a successful result or an error. The most important method for * working with Dojo's promises is the then() method, which follows the * CommonJS proposed promise API. An example of using a Dojo promise: - * + * * var resultingPromise = someAsyncOperation.then(function(result){ * ... handle result ... * }, @@ -7329,16 +7329,16 @@ declare module dojo { * }); * The .then() call returns a new promise that represents the result of the * execution of the callback. The callbacks will never affect the original promises value. - * + * * The Deferred instances also provide the following functions for backwards compatibility: - * + * * addCallback(handler) * addErrback(handler) * callback(result) * errback(result) * Callbacks are allowed to return promises themselves, so * you can build complicated sequences of events with ease. - * + * * The creator of the Deferred may specify a canceller. The canceller * is a function that will be called if Deferred.cancel is called * before the Deferred fires. You can use this to implement clean @@ -7346,8 +7346,8 @@ declare module dojo { * deferred with a CancelledError (unless your canceller returns * another kind of error), so the errbacks should be prepared to * handle that error for cancellable Deferreds. - * - * @param canceller Optional + * + * @param canceller Optional */ Deferred(canceller: Function): void; /** @@ -7357,44 +7357,44 @@ declare module dojo { * this new deferred will typically have its callback fired when all of the deferreds in * the given list have fired their own deferreds. The parameters fireOnOneCallback and * fireOnOneErrback, will fire before all the deferreds as appropriate - * - * @param list The list of deferreds to be synchronizied with this DeferredList - * @param fireOnOneCallback OptionalWill cause the DeferredLists callback to be fired as soon as anyof the deferreds in its list have been fired instead of waiting untilthe entire list has finished - * @param fireOnOneErrback Optional - * @param consumeErrors Optional - * @param canceller OptionalA deferred canceller function, see dojo.Deferred + * + * @param list The list of deferreds to be synchronizied with this DeferredList + * @param fireOnOneCallback OptionalWill cause the DeferredLists callback to be fired as soon as anyof the deferreds in its list have been fired instead of waiting untilthe entire list has finished + * @param fireOnOneErrback Optional + * @param consumeErrors Optional + * @param canceller OptionalA deferred canceller function, see dojo.Deferred */ DeferredList(list: any[], fireOnOneCallback?: boolean, fireOnOneErrback?: boolean, consumeErrors?: boolean, canceller?: Function): void; /** * Log a debug message to indicate that a behavior has been * deprecated. - * - * @param behaviour The API or behavior being deprecated. Usually in the formof "myApp.someFunction()". - * @param extra OptionalText to append to the message. Often provides advice on anew function or facility to achieve the same goal duringthe deprecation period. - * @param removal OptionalText to indicate when in the future the behavior will beremoved. Usually a version number. + * + * @param behaviour The API or behavior being deprecated. Usually in the formof "myApp.someFunction()". + * @param extra OptionalText to append to the message. Often provides advice on anew function or facility to achieve the same goal duringthe deprecation period. + * @param removal OptionalText to indicate when in the future the behavior will beremoved. Usually a version number. */ deprecated(behaviour: String, extra?: String, removal?: String): void; /** - * - * @param node + * + * @param node */ destroy(node: any): void; /** * Remove a link created by dojo.connect. * Removes the connection between event and the method referenced by handle. - * - * @param handle the return value of the dojo.connect call that created the connection. + * + * @param handle the return value of the dojo.connect call that created the connection. */ disconnect(handle: Object): void; /** * Returns an object with {node, x, y} with corresponding offsets. - * - * @param doc OptionalOptional document to query. If unspecified, use win.doc. + * + * @param doc OptionalOptional document to query. If unspecified, use win.doc. */ docScroll(doc?: HTMLDocument): Object; /** - * - * @param node + * + * @param node */ empty(node: any): void; /** @@ -7402,20 +7402,20 @@ declare module dojo { * directly unless you understand its possibly-different implications on the platforms your are targeting. * Makes an attempt to evaluate scriptText in the global scope. The function works correctly for browsers * that support indirect eval. - * + * * As usual, IE does not. On IE, the only way to implement global eval is to * use execScript. Unfortunately, execScript does not return a value and breaks some current usages of dojo.eval. * This implementation uses the technique of executing eval in the scope of a function that is a single scope * frame below the global scope; thereby coming close to the global scope. Note carefully that - * + * * dojo.eval("var pi = 3.14;"); - * + * * will define global pi in non-IE environments, but define pi only in a temporary local scope for IE. If you want * to define a global variable using dojo.eval, write something like - * + * * dojo.eval("window.pi = 3.14;") - * - * @param scriptText The text to evaluation. + * + * @param scriptText The text to evaluation. */ eval(scriptText: any): any; /** @@ -7426,10 +7426,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's every skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/every - * - * @param arr the array to iterate on. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate on. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ every(arr: any[], callback: Function, thisObject?: Object): boolean; /** @@ -7440,10 +7440,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's every skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/every - * - * @param arr the array to iterate on. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate on. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ every(arr: String, callback: Function, thisObject?: Object): boolean; /** @@ -7454,10 +7454,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's every skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/every - * - * @param arr the array to iterate on. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate on. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ every(arr: any[], callback: String, thisObject?: Object): boolean; /** @@ -7468,15 +7468,15 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's every skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/every - * - * @param arr the array to iterate on. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate on. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ every(arr: String, callback: String, thisObject?: Object): boolean; /** - * - * @param exitcode + * + * @param exitcode */ exit(exitcode: any): void; /** @@ -7486,23 +7486,23 @@ declare module dojo { * APIs are subject to change without notice. Experimental code may be * completed deleted without going through the normal deprecation * process. - * - * @param moduleName The name of a module, or the name of a module file or a specificfunction - * @param extra Optionalsome additional message for the user + * + * @param moduleName The name of a module, or the name of a module file or a specificfunction + * @param extra Optionalsome additional message for the user */ experimental(moduleName: String, extra?: String): void; /** * Returns an animation that will fade node defined in 'args' from * its current opacity to fully opaque. - * - * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. + * + * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ fadeIn(args: Object): any; /** * Returns an animation that will fade node defined in 'args' * from its current opacity to fully transparent. - * - * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. + * + * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ fadeOut(args: Object): any; /** @@ -7511,8 +7511,8 @@ declare module dojo { * as a string or an array of strings. Disabled form elements * and unchecked radio and checkboxes are skipped. Multi-select * elements are returned as an array of string values. - * - * @param inputNode + * + * @param inputNode */ fieldToObject(inputNode: HTMLElement): Object; /** @@ -7521,8 +7521,8 @@ declare module dojo { * as a string or an array of strings. Disabled form elements * and unchecked radio and checkboxes are skipped. Multi-select * elements are returned as an array of string values. - * - * @param inputNode + * + * @param inputNode */ fieldToObject(inputNode: String): Object; /** @@ -7533,10 +7533,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's filter skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter - * - * @param arr the array to iterate over. - * @param callback a function that is invoked with three arguments (item,index, array). The return of this function is expected tobe a boolean which determines whether the passed-in itemwill be included in the returned array. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. + * @param callback a function that is invoked with three arguments (item,index, array). The return of this function is expected tobe a boolean which determines whether the passed-in itemwill be included in the returned array. + * @param thisObject Optionalmay be used to scope the call to callback */ filter(arr: any[], callback: Function, thisObject?: Object): any[]; /** @@ -7547,18 +7547,18 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's filter skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter - * - * @param arr the array to iterate over. - * @param callback a function that is invoked with three arguments (item,index, array). The return of this function is expected tobe a boolean which determines whether the passed-in itemwill be included in the returned array. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. + * @param callback a function that is invoked with three arguments (item,index, array). The return of this function is expected tobe a boolean which determines whether the passed-in itemwill be included in the returned array. + * @param thisObject Optionalmay be used to scope the call to callback */ filter(arr: any[], callback: String, thisObject?: Object): any[]; /** * normalizes properties on the event object including event * bubbling methods, keystroke normalization, and x/y positions - * - * @param evt native event object - * @param sender node to treat as "currentTarget" + * + * @param evt native event object + * @param sender node to treat as "currentTarget" */ fixEvent(evt: Event, sender: HTMLElement): Event; /** @@ -7566,9 +7566,9 @@ declare module dojo { * returns a positive one. All codes using documentElement.scrollLeft * must call this function to fix this error, otherwise the position * will offset to right when there is a horizontal scrollbar. - * - * @param scrollLeft - * @param doc OptionalOptional document to query. If unspecified, use win.doc. + * + * @param scrollLeft + * @param doc OptionalOptional document to query. If unspecified, use win.doc. */ fixIeBiDiScrollLeft(scrollLeft: number, doc?: HTMLDocument): number; /** @@ -7580,10 +7580,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's forEach skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach - * - * @param arr - * @param callback - * @param thisObject Optional + * + * @param arr + * @param callback + * @param thisObject Optional */ forEach(arr: any[], callback: Function, thisObject?: Object): void; /** @@ -7595,10 +7595,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's forEach skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach - * - * @param arr - * @param callback - * @param thisObject Optional + * + * @param arr + * @param callback + * @param thisObject Optional */ forEach(arr: String, callback: Function, thisObject?: Object): void; /** @@ -7610,10 +7610,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's forEach skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach - * - * @param arr - * @param callback - * @param thisObject Optional + * + * @param arr + * @param callback + * @param thisObject Optional */ forEach(arr: any[], callback: String, thisObject?: Object): void; /** @@ -7625,26 +7625,26 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's forEach skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach - * - * @param arr - * @param callback - * @param thisObject Optional + * + * @param arr + * @param callback + * @param thisObject Optional */ forEach(arr: String, callback: String, thisObject?: Object): void; /** * Create a serialized JSON string from a form node or string * ID identifying the form to serialize - * - * @param formNode - * @param prettyPrint Optional + * + * @param formNode + * @param prettyPrint Optional */ formToJson(formNode: HTMLElement, prettyPrint?: boolean): String; /** * Create a serialized JSON string from a form node or string * ID identifying the form to serialize - * - * @param formNode - * @param prettyPrint Optional + * + * @param formNode + * @param prettyPrint Optional */ formToJson(formNode: String, prettyPrint?: boolean): String; /** @@ -7653,8 +7653,8 @@ declare module dojo { * string properties in an object which it then returns. Disabled form * elements, buttons, and other non-value form elements are skipped. * Multi-select elements are returned as an array of string values. - * - * @param formNode + * + * @param formNode */ formToObject(formNode: HTMLElement): Object; /** @@ -7663,22 +7663,22 @@ declare module dojo { * string properties in an object which it then returns. Disabled form * elements, buttons, and other non-value form elements are skipped. * Multi-select elements are returned as an array of string values. - * - * @param formNode + * + * @param formNode */ formToObject(formNode: String): Object; /** * Returns a URL-encoded string representing the form passed as either a * node or string ID identifying the form to serialize - * - * @param formNode + * + * @param formNode */ formToQuery(formNode: HTMLElement): String; /** * Returns a URL-encoded string representing the form passed as either a * node or string ID identifying the form to serialize - * - * @param formNode + * + * @param formNode */ formToQuery(formNode: String): String; /** @@ -7688,24 +7688,24 @@ declare module dojo { * from a trusted source. * It is recommend that you use dojo/json's parse function for an * implementation uses the (faster) native JSON parse when available. - * - * @param js a string literal of a JavaScript expression, for instance:'{ "foo": [ "bar", 1, { "baz": "thud" } ] }' + * + * @param js a string literal of a JavaScript expression, for instance:'{ "foo": [ "bar", 1, { "baz": "thud" } ] }' */ fromJson(js: String): any; /** * Gets an attribute on an HTML element. * Handles normalized getting of attributes on DOM Nodes. - * - * @param node id or reference to the element to get the attribute on - * @param name the name of the attribute to get. + * + * @param node id or reference to the element to get the attribute on + * @param name the name of the attribute to get. */ getAttr(node: HTMLElement, name: String): any; /** * Gets an attribute on an HTML element. * Handles normalized getting of attributes on DOM Nodes. - * - * @param node id or reference to the element to get the attribute on - * @param name the name of the attribute to get. + * + * @param node id or reference to the element to get the attribute on + * @param name the name of the attribute to get. */ getAttr(node: String, name: String): any; /** @@ -7717,116 +7717,116 @@ declare module dojo { * The w/h are used for calculating boxes. * Normally application code will not need to invoke this * directly, and will use the ...box... functions instead. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getBorderExtents(node: HTMLElement, computedStyle?: Object): Object; /** * Returns a "computed style" object. * Gets a "computed style" object which can be used to gather * information about the current state of the rendered node. - * + * * Note that this may behave differently on different browsers. * Values may have different formats and value encodings across * browsers. - * + * * Note also that this method is expensive. Wherever possible, * reuse the returned object. - * + * * Use the dojo/dom-style.get() method for more consistent (pixelized) * return values. - * - * @param node A reference to a DOM node. Does NOT support taking anID string for speed reasons. + * + * @param node A reference to a DOM node. Does NOT support taking anID string for speed reasons. */ getComputedStyle(node: HTMLElement): void; /** * Returns an object that encodes the width, height, left and top * positions of the node's content box, irrespective of the * current box model. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getContentBox(node: HTMLElement, computedStyle?: Object): Object; /** * returns the offset in x and y from the document body to the * visual edge of the page for IE * The following values in IE contain an offset: - * + * * event.clientX * event.clientY * node.getBoundingClientRect().left * node.getBoundingClientRect().top * But other position related values do not contain this offset, - * + * * such as node.offsetLeft, node.offsetTop, node.style.left and * node.style.top. The offset is always (2, 2) in LTR direction. * When the body is in RTL direction, the offset counts the width * of left scroll bar's width. This function computes the actual * offset. - * - * @param doc OptionalOptional document to query. If unspecified, use win.doc. + * + * @param doc OptionalOptional document to query. If unspecified, use win.doc. */ getIeDocumentElementOffset(doc?: HTMLDocument): Object; /** - * - * @param moduleName - * @param bundleName - * @param locale + * + * @param moduleName + * @param bundleName + * @param locale */ getL10nName(moduleName: any, bundleName: any, locale: any): String; /** * returns an object that encodes the width, height, left and top * positions of the node's margin box. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getMarginBox(node: HTMLElement, computedStyle?: Object): Object; /** * returns object with properties useful for box fitting with * regards to box margins (i.e., the outer-box). - * + * * l/t = marginLeft, marginTop, respectively * w = total width, margin inclusive * h = total height, margin inclusive * The w/h are used for calculating boxes. * Normally application code will not need to invoke this * directly, and will use the ...box... functions instead. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getMarginExtents(node: HTMLElement, computedStyle?: Object): Object; /** * returns an object that encodes the width and height of * the node's margin box - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getMarginSize(node: HTMLElement, computedStyle?: Object): Object; /** * returns an object that encodes the width and height of * the node's margin box - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getMarginSize(node: String, computedStyle?: Object): Object; /** * Returns an effective value of a property or an attribute. - * - * @param node id or reference to the element to remove the attribute from - * @param name the name of the attribute + * + * @param node id or reference to the element to remove the attribute from + * @param name the name of the attribute */ getNodeProp(node: HTMLElement, name: String): any; /** * Returns an effective value of a property or an attribute. - * - * @param node id or reference to the element to remove the attribute from - * @param name the name of the attribute + * + * @param node id or reference to the element to remove the attribute from + * @param name the name of the attribute */ getNodeProp(node: String, name: String): any; /** @@ -7838,43 +7838,43 @@ declare module dojo { * The w/h are used for calculating boxes. * Normally application code will not need to invoke this * directly, and will use the ...box... functions instead. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getPadBorderExtents(node: HTMLElement, computedStyle?: Object): Object; /** * Returns object with special values specifically useful for node * fitting. * Returns an object with w, h, l, t properties: - * + * * l/t/r/b = left/top/right/bottom padding (respectively) * w = the total of the left and right padding * h = the total of the top and bottom padding * If 'node' has position, l/t forms the origin for child nodes. - * + * * The w/h are used for calculating boxes. * Normally application code will not need to invoke this * directly, and will use the ...box... functions instead. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getPadExtents(node: HTMLElement, computedStyle?: Object): Object; /** * Gets a property on an HTML element. * Handles normalized getting of properties on DOM nodes. - * - * @param node id or reference to the element to get the property on - * @param name the name of the property to get. + * + * @param node id or reference to the element to get the property on + * @param name the name of the property to get. */ getProp(node: HTMLElement, name: String): any; /** * Gets a property on an HTML element. * Handles normalized getting of properties on DOM nodes. - * - * @param node id or reference to the element to get the property on - * @param name the name of the property to get. + * + * @param node id or reference to the element to get the property on + * @param name the name of the property to get. */ getProp(node: String, name: String): any; /** @@ -7886,9 +7886,9 @@ declare module dojo { * "border" are not necessarily reflected as expected. * If you want to get node dimensions, use dojo/dom-geometry.getMarginBox(), * dojo/dom-geometry.getContentBox() or dojo/dom-geometry.getPosition(). - * - * @param node id or reference to node to get style for - * @param name Optionalthe style property to get + * + * @param node id or reference to node to get style for + * @param name Optionalthe style property to get */ getStyle(node: HTMLElement, name?: String): any; /** @@ -7900,124 +7900,124 @@ declare module dojo { * "border" are not necessarily reflected as expected. * If you want to get node dimensions, use dojo/dom-geometry.getMarginBox(), * dojo/dom-geometry.getContentBox() or dojo/dom-geometry.getPosition(). - * - * @param node id or reference to node to get style for - * @param name Optionalthe style property to get + * + * @param node id or reference to node to get style for + * @param name Optionalthe style property to get */ getStyle(node: String, name?: String): any; /** * Returns true if the requested attribute is specified on the * given element, and false otherwise. - * - * @param node id or reference to the element to check - * @param name the name of the attribute + * + * @param node id or reference to the element to check + * @param name the name of the attribute */ hasAttr(node: HTMLElement, name: String): boolean; /** * Returns true if the requested attribute is specified on the * given element, and false otherwise. - * - * @param node id or reference to the element to check - * @param name the name of the attribute + * + * @param node id or reference to the element to check + * @param name the name of the attribute */ hasAttr(node: String, name: String): boolean; /** * Returns whether or not the specified classes are a portion of the * class list currently applied to the node. - * - * @param node String ID or DomNode reference to check the class for. - * @param classStr A string class name to look for. + * + * @param node String ID or DomNode reference to check the class for. + * @param classStr A string class name to look for. */ hasClass(node: String, classStr: String): boolean; /** * Returns whether or not the specified classes are a portion of the * class list currently applied to the node. - * - * @param node String ID or DomNode reference to check the class for. - * @param classStr A string class name to look for. + * + * @param node String ID or DomNode reference to check the class for. + * @param classStr A string class name to look for. */ hasClass(node: HTMLElement, classStr: String): boolean; /** * Gets or sets the hash string in the browser URL. * Handles getting and setting of location.hash. - * + * * If no arguments are passed, acts as a getter. * If a string is passed, acts as a setter. - * - * @param hash Optionalthe hash is set - #string. - * @param replace OptionalIf true, updates the hash value in the current historystate instead of creating a new history state. + * + * @param hash Optionalthe hash is set - #string. + * @param replace OptionalIf true, updates the hash value in the current historystate instead of creating a new history state. */ hash(hash?: String, replace?: boolean): any; /** * locates the first index of the provided value in the * passed array. If the value is not found, -1 is returned. * This method corresponds to the JavaScript 1.6 Array.indexOf method, with two differences: - * + * * when run over sparse arrays, the Dojo function invokes the callback for every index * whereas JavaScript 1.6's indexOf skips the holes in the sparse array. * uses equality (==) rather than strict equality (===) * For details on this method, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/indexOf - * - * @param arr - * @param value - * @param fromIndex Optional - * @param findLast OptionalMakes indexOf() work like lastIndexOf(). Used internally; not meant for external usage. + * + * @param arr + * @param value + * @param fromIndex Optional + * @param findLast OptionalMakes indexOf() work like lastIndexOf(). Used internally; not meant for external usage. */ indexOf(arr: any[], value: Object, fromIndex?: number, findLast?: boolean): number; /** * Returns true if the current language is left-to-right, and false otherwise. - * - * @param doc OptionalOptional document to query. If unspecified, use win.doc. + * + * @param doc OptionalOptional document to query. If unspecified, use win.doc. */ isBodyLtr(doc?: HTMLDocument): boolean; /** * Returns true if node is a descendant of ancestor - * - * @param node string id or node reference to test - * @param ancestor string id or node reference of potential parent to test against + * + * @param node string id or node reference to test + * @param ancestor string id or node reference of potential parent to test against */ isDescendant(node: HTMLElement, ancestor: HTMLElement): boolean; /** * Returns true if node is a descendant of ancestor - * - * @param node string id or node reference to test - * @param ancestor string id or node reference of potential parent to test against + * + * @param node string id or node reference to test + * @param ancestor string id or node reference of potential parent to test against */ isDescendant(node: String, ancestor: HTMLElement): boolean; /** * Returns true if node is a descendant of ancestor - * - * @param node string id or node reference to test - * @param ancestor string id or node reference of potential parent to test against + * + * @param node string id or node reference to test + * @param ancestor string id or node reference of potential parent to test against */ isDescendant(node: HTMLElement, ancestor: String): boolean; /** * Returns true if node is a descendant of ancestor - * - * @param node string id or node reference to test - * @param ancestor string id or node reference of potential parent to test against + * + * @param node string id or node reference to test + * @param ancestor string id or node reference of potential parent to test against */ isDescendant(node: String, ancestor: String): boolean; /** * locates the last index of the provided value in the passed * array. If the value is not found, -1 is returned. * This method corresponds to the JavaScript 1.6 Array.lastIndexOf method, with two differences: - * + * * when run over sparse arrays, the Dojo function invokes the callback for every index * whereas JavaScript 1.6's lasIndexOf skips the holes in the sparse array. * uses equality (==) rather than strict equality (===) * For details on this method, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/lastIndexOf - * - * @param arr - * @param value - * @param fromIndex Optional + * + * @param arr + * @param value + * @param fromIndex Optional */ lastIndexOf(arr: any, value: any, fromIndex?: number): number; /** - * - * @param f + * + * @param f */ loadInit(f: any): void; /** @@ -8028,11 +8028,11 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's map skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map - * - * @param arr the array to iterate on. If a string, operates onindividual characters. - * @param callback a function is invoked with three arguments, (item, index,array), and returns a value - * @param thisObject Optionalmay be used to scope the call to callback - * @param Ctr + * + * @param arr the array to iterate on. If a string, operates onindividual characters. + * @param callback a function is invoked with three arguments, (item, index,array), and returns a value + * @param thisObject Optionalmay be used to scope the call to callback + * @param Ctr */ map(arr: any[], callback: Function, thisObject: Object, Ctr: any): any[]; /** @@ -8043,11 +8043,11 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's map skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map - * - * @param arr the array to iterate on. If a string, operates onindividual characters. - * @param callback a function is invoked with three arguments, (item, index,array), and returns a value - * @param thisObject Optionalmay be used to scope the call to callback - * @param Ctr + * + * @param arr the array to iterate on. If a string, operates onindividual characters. + * @param callback a function is invoked with three arguments, (item, index,array), and returns a value + * @param thisObject Optionalmay be used to scope the call to callback + * @param Ctr */ map(arr: String, callback: Function, thisObject: Object, Ctr: any): any[]; /** @@ -8058,11 +8058,11 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's map skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map - * - * @param arr the array to iterate on. If a string, operates onindividual characters. - * @param callback a function is invoked with three arguments, (item, index,array), and returns a value - * @param thisObject Optionalmay be used to scope the call to callback - * @param Ctr + * + * @param arr the array to iterate on. If a string, operates onindividual characters. + * @param callback a function is invoked with three arguments, (item, index,array), and returns a value + * @param thisObject Optionalmay be used to scope the call to callback + * @param Ctr */ map(arr: any[], callback: String, thisObject: Object, Ctr: any): any[]; /** @@ -8073,11 +8073,11 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's map skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map - * - * @param arr the array to iterate on. If a string, operates onindividual characters. - * @param callback a function is invoked with three arguments, (item, index,array), and returns a value - * @param thisObject Optionalmay be used to scope the call to callback - * @param Ctr + * + * @param arr the array to iterate on. If a string, operates onindividual characters. + * @param callback a function is invoked with three arguments, (item, index,array), and returns a value + * @param thisObject Optionalmay be used to scope the call to callback + * @param Ctr */ map(arr: String, callback: String, thisObject: Object, Ctr: any): any[]; /** @@ -8089,9 +8089,9 @@ declare module dojo { * for a node offset from its parent 50px to the left, 200px from * the top with a margin width of 300px and a margin-height of * 150px. - * - * @param node id or reference to DOM Node to get/set box for - * @param box OptionalIf passed, denotes that dojo.marginBox() shouldupdate/set the margin box for node. Box is an object in theabove format. All properties are optional if passed. + * + * @param node id or reference to DOM Node to get/set box for + * @param box OptionalIf passed, denotes that dojo.marginBox() shouldupdate/set the margin box for node. Box is an object in theabove format. All properties are optional if passed. */ marginBox(node: HTMLElement, box?: Object): any; /** @@ -8103,16 +8103,16 @@ declare module dojo { * for a node offset from its parent 50px to the left, 200px from * the top with a margin width of 300px and a margin-height of * 150px. - * - * @param node id or reference to DOM Node to get/set box for - * @param box OptionalIf passed, denotes that dojo.marginBox() shouldupdate/set the margin box for node. Box is an object in theabove format. All properties are optional if passed. + * + * @param node id or reference to DOM Node to get/set box for + * @param box OptionalIf passed, denotes that dojo.marginBox() shouldupdate/set the margin box for node. Box is an object in theabove format. All properties are optional if passed. */ marginBox(node: String, box?: Object): any; /** * Returns a URL relative to a module. - * - * @param module dojo/dom-class - * @param url Optional + * + * @param module dojo/dom-class + * @param url Optional */ moduleUrl(module: String, url?: String): String; /** @@ -8126,87 +8126,87 @@ declare module dojo { * functions in the dojo package, NodeLists generally make the * full power of Dojo available for DOM manipulation tasks in a * simple, chainable way. - * - * @param array + * + * @param array */ NodeList(array: any): any[]; /** * takes a name/value mapping object and returns a string representing * a URL-encoded version of that object. - * - * @param map + * + * @param map */ objectToQuery(map: Object): any; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: HTMLElement, refNode: HTMLElement, position?: String): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: String, refNode: HTMLElement, position?: String): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: HTMLElement, refNode: String, position?: String): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: String, refNode: String, position?: String): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: HTMLElement, refNode: HTMLElement, position?: number): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: String, refNode: HTMLElement, position?: number): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: HTMLElement, refNode: String, position?: number): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: String, refNode: String, position?: number): HTMLElement; /** @@ -8220,8 +8220,8 @@ declare module dojo { * dojo.name, set by your host environment. The items in the * "common" array will always be loaded, regardless of which * list is chosen. - * - * @param modMap + * + * @param modMap */ platformRequire(modMap: Object): void; /** @@ -8229,7 +8229,7 @@ declare module dojo { * subsequent code executes in the previous context to the * current context. The current context set ([global, * document]) is returned. - * + * */ popContext(): void; /** @@ -8243,9 +8243,9 @@ declare module dojo { * viewport. * Uses the border-box model (inclusive of border and padding but * not margin). Does not act as a setter. - * - * @param node - * @param includeScroll Optional + * + * @param node + * @param includeScroll Optional */ position(node: HTMLElement, includeScroll?: boolean): Object; /** @@ -8259,9 +8259,9 @@ declare module dojo { * viewport. * Uses the border-box model (inclusive of border and padding but * not margin). Does not act as a setter. - * - * @param node - * @param includeScroll Optional + * + * @param node + * @param includeScroll Optional */ position(node: String, includeScroll?: boolean): Object; /** @@ -8269,10 +8269,10 @@ declare module dojo { * Handles normalized getting and setting of properties on DOM * Nodes. If 2 arguments are passed, and a the second argument is a * string, acts as a getter. - * + * * If a third argument is passed, or if the second argument is a * map of attributes, acts as a setter. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8282,10 +8282,10 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to get or set the property on - * @param name the name of the property to get or set. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to get or set the property on + * @param name the name of the property to get or set. + * @param value OptionalThe value to set for the property */ prop(node: HTMLElement, name: String, value?: String): any; /** @@ -8293,10 +8293,10 @@ declare module dojo { * Handles normalized getting and setting of properties on DOM * Nodes. If 2 arguments are passed, and a the second argument is a * string, acts as a getter. - * + * * If a third argument is passed, or if the second argument is a * map of attributes, acts as a setter. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8306,10 +8306,10 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to get or set the property on - * @param name the name of the property to get or set. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to get or set the property on + * @param name the name of the property to get or set. + * @param value OptionalThe value to set for the property */ prop(node: String, name: String, value?: String): any; /** @@ -8317,10 +8317,10 @@ declare module dojo { * Handles normalized getting and setting of properties on DOM * Nodes. If 2 arguments are passed, and a the second argument is a * string, acts as a getter. - * + * * If a third argument is passed, or if the second argument is a * map of attributes, acts as a setter. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8330,10 +8330,10 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to get or set the property on - * @param name the name of the property to get or set. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to get or set the property on + * @param name the name of the property to get or set. + * @param value OptionalThe value to set for the property */ prop(node: HTMLElement, name: Object, value?: String): any; /** @@ -8341,10 +8341,10 @@ declare module dojo { * Handles normalized getting and setting of properties on DOM * Nodes. If 2 arguments are passed, and a the second argument is a * string, acts as a getter. - * + * * If a third argument is passed, or if the second argument is a * map of attributes, acts as a setter. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8354,15 +8354,15 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to get or set the property on - * @param name the name of the property to get or set. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to get or set the property on + * @param name the name of the property to get or set. + * @param value OptionalThe value to set for the property */ prop(node: String, name: Object, value?: String): any; /** - * - * @param mid + * + * @param mid */ provide(mid: any): void; /** @@ -8385,9 +8385,9 @@ declare module dojo { * the context to push. This means that iframes can be given * an ID and code can be executed in the scope of the iframe's * document in subsequent calls easily. - * - * @param g OptionalThe global context. If a string, the id of the frame tosearch for a context and document. - * @param d OptionalThe document element to execute subsequent code with. + * + * @param g OptionalThe global context. If a string, the id of the frame tosearch for a context and document. + * @param d OptionalThe document element to execute subsequent code with. */ pushContext(g?: Object, d?: HTMLDocument): void; /** @@ -8410,42 +8410,42 @@ declare module dojo { * the context to push. This means that iframes can be given * an ID and code can be executed in the scope of the iframe's * document in subsequent calls easily. - * - * @param g OptionalThe global context. If a string, the id of the frame tosearch for a context and document. - * @param d OptionalThe document element to execute subsequent code with. + * + * @param g OptionalThe global context. If a string, the id of the frame tosearch for a context and document. + * @param d OptionalThe document element to execute subsequent code with. */ pushContext(g?: String, d?: HTMLDocument): void; /** * Create an object representing a de-serialized query section of a * URL. Query keys with multiple values are returned in an array. - * - * @param str + * + * @param str */ queryToObject(str: String): Object; /** * Sends an HTTP POST request to the server. In addition to the properties * listed for the dojo.__XhrArgs type, the following property is allowed: - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ rawXhrPost(args: Object): any; /** * Sends an HTTP PUT request to the server. In addition to the properties * listed for the dojo.__XhrArgs type, the following property is allowed: - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ rawXhrPut(args: Object): any; /** * Add a function to execute on DOM content loaded and all requested modules have arrived and been evaluated. * In most cases, the domReady plug-in should suffice and this method should not be needed. - * + * * When called in a non-browser environment, just checks that all requested modules have arrived and been * evaluated. - * - * @param priority OptionalThe order in which to exec this callback relative to other callbacks, defaults to 1000 - * @param context The context in which to run execute callback, or a callback if not using context - * @param callback OptionalThe function to execute. + * + * @param priority OptionalThe order in which to exec this callback relative to other callbacks, defaults to 1000 + * @param context The context in which to run execute callback, or a callback if not using context + * @param callback OptionalThe function to execute. */ ready(priority: number, context: any, callback?: Function): void; /** @@ -8454,127 +8454,127 @@ declare module dojo { * relative to Dojo root. For example, module acme is mapped to * ../acme. If you want to use a different module name, use * dojo.registerModulePath. - * - * @param moduleName - * @param prefix + * + * @param moduleName + * @param prefix */ registerModulePath(moduleName: String, prefix: String): void; /** * Removes an attribute from an HTML element. - * - * @param node id or reference to the element to remove the attribute from - * @param name the name of the attribute to remove + * + * @param node id or reference to the element to remove the attribute from + * @param name the name of the attribute to remove */ removeAttr(node: HTMLElement, name: String): void; /** * Removes an attribute from an HTML element. - * - * @param node id or reference to the element to remove the attribute from - * @param name the name of the attribute to remove + * + * @param node id or reference to the element to remove the attribute from + * @param name the name of the attribute to remove */ removeAttr(node: String, name: String): void; /** * Removes the specified classes from node. No contains() * check is required. - * - * @param node String ID or DomNode reference to remove the class from. - * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param node String ID or DomNode reference to remove the class from. + * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ removeClass(node: String, classStr?: String): void; /** * Removes the specified classes from node. No contains() * check is required. - * - * @param node String ID or DomNode reference to remove the class from. - * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param node String ID or DomNode reference to remove the class from. + * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ removeClass(node: HTMLElement, classStr?: String): void; /** * Removes the specified classes from node. No contains() * check is required. - * - * @param node String ID or DomNode reference to remove the class from. - * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param node String ID or DomNode reference to remove the class from. + * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ removeClass(node: String, classStr?: any[]): void; /** * Removes the specified classes from node. No contains() * check is required. - * - * @param node String ID or DomNode reference to remove the class from. - * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param node String ID or DomNode reference to remove the class from. + * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ removeClass(node: HTMLElement, classStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(node: String, addClassStr: String, removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(node: HTMLElement, addClassStr: String, removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(node: String, addClassStr: any[], removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(node: HTMLElement, addClassStr: any[], removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(node: String, addClassStr: String, removeClassStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(node: HTMLElement, addClassStr: String, removeClassStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(node: String, addClassStr: any[], removeClassStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replaceClass(node: HTMLElement, addClassStr: any[], removeClassStr?: any[]): void; /** @@ -8584,77 +8584,77 @@ declare module dojo { * custom build that specified loader=xdomain and the module lives on a modulePath * that is a whole URL, with protocol and a domain. The versions of Dojo that are on * the Google and AOL CDNs use the xdomain loader. - * + * * If the module is loaded via the xdomain loader, it is an asynchronous load, since * the module is added via a dynamically created script tag. This * means that dojo.require() can return before the module has loaded. However, this * should only happen in the case where you do dojo.require calls in the top-level * HTML page, or if you purposely avoid the loader checking for dojo.require * dependencies in your module by using a syntax like dojo["require"] to load the module. - * + * * Sometimes it is useful to not have the loader detect the dojo.require calls in the * module so that you can dynamically load the modules as a result of an action on the * page, instead of right at module load time. - * + * * Also, for script blocks in an HTML page, the loader does not pre-process them, so * it does not know to download the modules before the dojo.require calls occur. - * + * * So, in those two cases, when you want on-the-fly module loading or for script blocks * in the HTML page, special care must be taken if the dojo.required code is loaded * asynchronously. To make sure you can execute code that depends on the dojo.required * modules, be sure to add the code that depends on the modules in a dojo.addOnLoad() * callback. dojo.addOnLoad waits for all outstanding modules to finish loading before * executing. - * + * * This type of syntax works with both xdomain and normal loaders, so it is good * practice to always use this idiom for on-the-fly code loading and in HTML script * blocks. If at some point you change loaders and where the code is loaded from, * it will all still work. - * + * * More on how dojo.require * dojo.require("A.B") first checks to see if symbol A.B is * defined. If it is, it is simply returned (nothing to do). - * + * * If it is not defined, it will look for A/B.js in the script root * directory. - * + * * dojo.require throws an exception if it cannot find a file * to load, or if the symbol A.B is not defined after loading. - * + * * It returns the object A.B, but note the caveats above about on-the-fly loading and * HTML script blocks when the xdomain loader is loading a module. - * + * * dojo.require() does nothing about importing symbols into * the current namespace. It is presumed that the caller will * take care of that. - * - * @param moduleName module name to load, using periods for separators, e.g. "dojo.date.locale". Module paths are de-referenced by dojo'sinternal mapping of locations to names and are disambiguated bylongest prefix. See dojo.registerModulePath() for details onregistering new modules. - * @param omitModuleCheck Optionalif true, omitModuleCheck skips the step of ensuring that theloaded file actually defines the symbol it is referenced by.For example if it called as dojo.require("a.b.c") and thefile located at a/b/c.js does not define an object a.b.c,and exception will be throws whereas no exception is raisedwhen called as dojo.require("a.b.c", true) + * + * @param moduleName module name to load, using periods for separators, e.g. "dojo.date.locale". Module paths are de-referenced by dojo'sinternal mapping of locations to names and are disambiguated bylongest prefix. See dojo.registerModulePath() for details onregistering new modules. + * @param omitModuleCheck Optionalif true, omitModuleCheck skips the step of ensuring that theloaded file actually defines the symbol it is referenced by.For example if it called as dojo.require("a.b.c") and thefile located at a/b/c.js does not define an object a.b.c,and exception will be throws whereas no exception is raisedwhen called as dojo.require("a.b.c", true) */ require(moduleName: String, omitModuleCheck: boolean): any; /** * If the condition is true then call dojo.require() for the specified * resource - * - * @param condition - * @param moduleName - * @param omitModuleCheck Optional + * + * @param condition + * @param moduleName + * @param omitModuleCheck Optional */ requireAfterIf(condition: boolean, moduleName: String, omitModuleCheck?: boolean): void; /** * If the condition is true then call dojo.require() for the specified * resource - * - * @param condition - * @param moduleName - * @param omitModuleCheck Optional + * + * @param condition + * @param moduleName + * @param omitModuleCheck Optional */ requireIf(condition: boolean, moduleName: String, omitModuleCheck?: boolean): void; /** - * - * @param moduleName - * @param bundleName - * @param locale Optional + * + * @param moduleName + * @param bundleName + * @param locale Optional */ requireLocalization(moduleName: String, bundleName: String, locale?: String): void; /** @@ -8663,22 +8663,22 @@ declare module dojo { * This function is used to mix in properties like lang.mixin does, * but it skips a constructor property and decorates functions like * declare() does. - * + * * It is meant to be used with classes and objects produced with * declare. Functions mixed in with dojo.safeMixin can use * this.inherited() like normal methods. - * + * * This function is used to implement extend() method of a constructor * produced with declare(). - * - * @param target Target object to accept new properties. - * @param source Source object for new properties. + * + * @param target Target object to accept new properties. + * @param source Source object for new properties. */ safeMixin(target: Object, source: Object): Object; /** * Sets an attribute on an HTML element. * Handles normalized setting of attributes on DOM Nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8688,16 +8688,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the attribute on - * @param name the name of the attribute to set, or a hash of key-value pairs to set. - * @param value Optionalthe value to set for the attribute, if the name is a string. + * + * @param node id or reference to the element to set the attribute on + * @param name the name of the attribute to set, or a hash of key-value pairs to set. + * @param value Optionalthe value to set for the attribute, if the name is a string. */ setAttr(node: HTMLElement, name: String, value?: String): any; /** * Sets an attribute on an HTML element. * Handles normalized setting of attributes on DOM Nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8707,16 +8707,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the attribute on - * @param name the name of the attribute to set, or a hash of key-value pairs to set. - * @param value Optionalthe value to set for the attribute, if the name is a string. + * + * @param node id or reference to the element to set the attribute on + * @param name the name of the attribute to set, or a hash of key-value pairs to set. + * @param value Optionalthe value to set for the attribute, if the name is a string. */ setAttr(node: String, name: String, value?: String): any; /** * Sets an attribute on an HTML element. * Handles normalized setting of attributes on DOM Nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8726,16 +8726,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the attribute on - * @param name the name of the attribute to set, or a hash of key-value pairs to set. - * @param value Optionalthe value to set for the attribute, if the name is a string. + * + * @param node id or reference to the element to set the attribute on + * @param name the name of the attribute to set, or a hash of key-value pairs to set. + * @param value Optionalthe value to set for the attribute, if the name is a string. */ setAttr(node: HTMLElement, name: Object, value?: String): any; /** * Sets an attribute on an HTML element. * Handles normalized setting of attributes on DOM Nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8745,19 +8745,19 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the attribute on - * @param name the name of the attribute to set, or a hash of key-value pairs to set. - * @param value Optionalthe value to set for the attribute, if the name is a string. + * + * @param node id or reference to the element to set the attribute on + * @param name the name of the attribute to set, or a hash of key-value pairs to set. + * @param value Optionalthe value to set for the attribute, if the name is a string. */ setAttr(node: String, name: Object, value?: String): any; /** * Sets the size of the node's contents, irrespective of margins, * padding, or borders. - * - * @param node - * @param box hash with optional "w", and "h" properties for "width", and "height"respectively. All specified properties should have numeric values in whole pixels. - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param box hash with optional "w", and "h" properties for "width", and "height"respectively. All specified properties should have numeric values in whole pixels. + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ setContentSize(node: HTMLElement, box: Object, computedStyle?: Object): void; /** @@ -8766,9 +8766,9 @@ declare module dojo { * context (e.g., an iframe). The varibles dojo.global and dojo.doc * are modified as a result of calling this function and the result of * dojo.body() likewise differs. - * - * @param globalObject - * @param globalDocument + * + * @param globalObject + * @param globalDocument */ setContext(globalObject: Object, globalDocument: HTMLDocument): void; /** @@ -8776,16 +8776,16 @@ declare module dojo { * (left/top), irrespective of box model. Think of it as a * passthrough to setBox that handles box-model vagaries for * you. - * - * @param node - * @param box hash with optional "l", "t", "w", and "h" properties for "left", "right", "width", and "height"respectively. All specified properties should have numeric values in whole pixels. - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param box hash with optional "l", "t", "w", and "h" properties for "left", "right", "width", and "height"respectively. All specified properties should have numeric values in whole pixels. + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ setMarginBox(node: HTMLElement, box: Object, computedStyle?: Object): void; /** * Sets a property on an HTML element. * Handles normalized setting of properties on DOM nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8795,16 +8795,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property */ setProp(node: HTMLElement, name: String, value?: String): any; /** * Sets a property on an HTML element. * Handles normalized setting of properties on DOM nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8814,16 +8814,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property */ setProp(node: String, name: String, value?: String): any; /** * Sets a property on an HTML element. * Handles normalized setting of properties on DOM nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8833,16 +8833,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property */ setProp(node: HTMLElement, name: Object, value?: String): any; /** * Sets a property on an HTML element. * Handles normalized setting of properties on DOM nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -8852,48 +8852,48 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property */ setProp(node: String, name: Object, value?: String): any; /** - * - * @param node - * @param selectable + * + * @param node + * @param selectable */ setSelectable(node: any, selectable: any): void; /** * Sets styles on a node. - * - * @param node id or reference to node to set style for - * @param name the style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. - * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. + * + * @param node id or reference to node to set style for + * @param name the style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. + * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. */ setStyle(node: HTMLElement, name: String, value?: String): String; /** * Sets styles on a node. - * - * @param node id or reference to node to set style for - * @param name the style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. - * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. + * + * @param node id or reference to node to set style for + * @param name the style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. + * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. */ setStyle(node: String, name: String, value?: String): String; /** * Sets styles on a node. - * - * @param node id or reference to node to set style for - * @param name the style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. - * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. + * + * @param node id or reference to node to set style for + * @param name the style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. + * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. */ setStyle(node: HTMLElement, name: Object, value?: String): String; /** * Sets styles on a node. - * - * @param node id or reference to node to set style for - * @param name the style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. - * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. + * + * @param node id or reference to node to set style for + * @param name the style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. + * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. */ setStyle(node: String, name: Object, value?: String): String; /** @@ -8904,10 +8904,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's some skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/some - * - * @param arr the array to iterate over. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ some(arr: any[], callback: Function, thisObject?: Object): boolean; /** @@ -8918,10 +8918,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's some skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/some - * - * @param arr the array to iterate over. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ some(arr: String, callback: Function, thisObject?: Object): boolean; /** @@ -8932,10 +8932,10 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's some skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/some - * - * @param arr the array to iterate over. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ some(arr: any[], callback: String, thisObject?: Object): boolean; /** @@ -8946,21 +8946,21 @@ declare module dojo { * the callback function with a value of undefined. JavaScript 1.6's some skips the holes in the sparse array. * For more details, see: * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/some - * - * @param arr the array to iterate over. If a string, operates on individual characters. - * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. - * @param thisObject Optionalmay be used to scope the call to callback + * + * @param arr the array to iterate over. If a string, operates on individual characters. + * @param callback a function is invoked with three arguments: item, index,and array and returns true if the condition is met. + * @param thisObject Optionalmay be used to scope the call to callback */ some(arr: String, callback: String, thisObject?: Object): boolean; /** - * + * */ Stateful(): void; /** * prevents propagation and clobbers the default action of the * passed event - * - * @param evt The event object. If omitted, window.event is used on IE. + * + * @param evt The event object. If omitted, window.event is used on IE. */ stopEvent(evt: Event): void; /** @@ -8974,10 +8974,10 @@ declare module dojo { * "border" are not necessarily reflected as expected. * If you want to get node dimensions, use dojo.marginBox(), * dojo.contentBox() or dojo.position(). - * - * @param node id or reference to node to get/set style for - * @param name Optionalthe style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. - * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. + * + * @param node id or reference to node to get/set style for + * @param name Optionalthe style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. + * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. */ style(node: HTMLElement, name?: String, value?: String): any; /** @@ -8991,10 +8991,10 @@ declare module dojo { * "border" are not necessarily reflected as expected. * If you want to get node dimensions, use dojo.marginBox(), * dojo.contentBox() or dojo.position(). - * - * @param node id or reference to node to get/set style for - * @param name Optionalthe style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. - * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. + * + * @param node id or reference to node to get/set style for + * @param name Optionalthe style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. + * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. */ style(node: String, name?: String, value?: String): any; /** @@ -9008,10 +9008,10 @@ declare module dojo { * "border" are not necessarily reflected as expected. * If you want to get node dimensions, use dojo.marginBox(), * dojo.contentBox() or dojo.position(). - * - * @param node id or reference to node to get/set style for - * @param name Optionalthe style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. - * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. + * + * @param node id or reference to node to get/set style for + * @param name Optionalthe style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. + * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. */ style(node: HTMLElement, name?: Object, value?: String): any; /** @@ -9025,57 +9025,57 @@ declare module dojo { * "border" are not necessarily reflected as expected. * If you want to get node dimensions, use dojo.marginBox(), * dojo.contentBox() or dojo.position(). - * - * @param node id or reference to node to get/set style for - * @param name Optionalthe style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. - * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. + * + * @param node id or reference to node to get/set style for + * @param name Optionalthe style property to set in DOM-accessor format("borderWidth", not "border-width") or an object with key/valuepairs suitable for setting each property. + * @param value OptionalIf passed, sets value on the node for style, handlingcross-browser concerns. When setting a pixel value,be sure to include "px" in the value. For instance, top: "200px".Otherwise, in some cases, some browsers will not apply the style. */ style(node: String, name?: Object, value?: String): any; /** * instantiates an HTML fragment returning the corresponding DOM. - * - * @param frag the HTML fragment - * @param doc Optionaloptional document to use when creating DOM nodes, defaults todojo/_base/window.doc if not specified. + * + * @param frag the HTML fragment + * @param doc Optionaloptional document to use when creating DOM nodes, defaults todojo/_base/window.doc if not specified. */ toDom(frag: String, doc?: HTMLDocument): any; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. * Returns the condition that was specified directly or indirectly. - * - * @param node String ID or DomNode reference to toggle a class string - * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. - * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. + * + * @param node String ID or DomNode reference to toggle a class string + * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. + * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. */ toggleClass(node: String, classStr: String, condition: boolean): boolean; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. * Returns the condition that was specified directly or indirectly. - * - * @param node String ID or DomNode reference to toggle a class string - * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. - * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. + * + * @param node String ID or DomNode reference to toggle a class string + * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. + * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. */ toggleClass(node: HTMLElement, classStr: String, condition: boolean): boolean; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. * Returns the condition that was specified directly or indirectly. - * - * @param node String ID or DomNode reference to toggle a class string - * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. - * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. + * + * @param node String ID or DomNode reference to toggle a class string + * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. + * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. */ toggleClass(node: String, classStr: any[], condition: boolean): boolean; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. * Returns the condition that was specified directly or indirectly. - * - * @param node String ID or DomNode reference to toggle a class string - * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. - * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. + * + * @param node String ID or DomNode reference to toggle a class string + * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. + * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. */ toggleClass(node: HTMLElement, classStr: any[], condition: boolean): boolean; /** @@ -9085,22 +9085,22 @@ declare module dojo { * It is recommend that you use dojo/json's stringify function for an lighter * and faster implementation that matches the native JSON API and uses the * native JSON serializer when available. - * - * @param it an object to be serialized. Objects may define their ownserialization via a special "json" or "json" functionproperty. If a specialized serializer has been defined, it willbe used as a fallback.Note that in 1.6, toJson would serialize undefined, but this no longer supportedsince it is not supported by native JSON serializer. - * @param prettyPrint Optionalif true, we indent objects and arrays to make the output prettier.The variable dojo.toJsonIndentStr is used as the indent string --to use something other than the default (tab), change that variablebefore calling dojo.toJson().Note that if native JSON support is available, it will be used for serialization,and native implementations vary on the exact spacing used in pretty printing. + * + * @param it an object to be serialized. Objects may define their ownserialization via a special "json" or "json" functionproperty. If a specialized serializer has been defined, it willbe used as a fallback.Note that in 1.6, toJson would serialize undefined, but this no longer supportedsince it is not supported by native JSON serializer. + * @param prettyPrint Optionalif true, we indent objects and arrays to make the output prettier.The variable dojo.toJsonIndentStr is used as the indent string --to use something other than the default (tab), change that variablebefore calling dojo.toJson().Note that if native JSON support is available, it will be used for serialization,and native implementations vary on the exact spacing used in pretty printing. */ toJson(it: Object, prettyPrint?: boolean): any; /** * converts style value to pixels on IE or return a numeric value. - * - * @param node - * @param value + * + * @param node + * @param value */ toPixelValue(node: HTMLElement, value: String): number; /** * Remove a topic listener. - * - * @param handle The handle returned from a call to subscribe. + * + * @param handle The handle returned from a call to subscribe. */ unsubscribe(handle: Object): void; /** @@ -9108,23 +9108,23 @@ declare module dojo { * Accepts promises but also transparently handles non-promises. If no * callbacks are provided returns a promise, regardless of the initial * value. Foreign promises are converted. - * + * * If callbacks are provided and the initial value is not a promise, * the callback is executed immediately with no error handling. Returns * a promise if the initial value is a promise, or the result of the * callback otherwise. - * - * @param valueOrPromise Either a regular value or an object with a then() method thatfollows the Promises/A specification. - * @param callback OptionalCallback to be invoked when the promise is resolved, or a non-promiseis received. - * @param errback OptionalCallback to be invoked when the promise is rejected. - * @param progback OptionalCallback to be invoked when the promise emits a progress update. + * + * @param valueOrPromise Either a regular value or an object with a then() method thatfollows the Promises/A specification. + * @param callback OptionalCallback to be invoked when the promise is resolved, or a non-promiseis received. + * @param errback OptionalCallback to be invoked when the promise is rejected. + * @param progback OptionalCallback to be invoked when the promise emits a progress update. */ when(valueOrPromise: any, callback?: Function, errback?: Function, progback?: Function): dojo.promise.Promise; /** * signal fired by impending window destruction. You may use * dojo.addOnWIndowUnload() or dojo.connect() to this method to perform * page/application cleanup methods. See dojo.addOnWindowUnload for more info. - * + * */ windowUnloaded(): void; /** @@ -9133,11 +9133,11 @@ declare module dojo { * callback will be executed in the context of object thisObject * When callback() returns or throws an error, the dojo/_base/window::doc will * be restored to its previous state. - * - * @param documentObject - * @param callback - * @param thisObject Optional - * @param cbArguments Optional + * + * @param documentObject + * @param callback + * @param thisObject Optional + * @param cbArguments Optional */ withDoc(documentObject: HTMLDocument, callback: Function, thisObject?: Object, cbArguments?: any[]): any; /** @@ -9148,57 +9148,57 @@ declare module dojo { * will be executed in the context of object thisObject * When callback() returns or throws an error, the dojo.global * and dojo.doc will be restored to its previous state. - * - * @param globalObject - * @param callback - * @param thisObject Optional - * @param cbArguments Optional + * + * @param globalObject + * @param callback + * @param thisObject Optional + * @param cbArguments Optional */ withGlobal(globalObject: Object, callback: Function, thisObject?: Object, cbArguments?: any[]): any; /** - * - * @param method - * @param args + * + * @param method + * @param args */ xhr(method: any, args: any): any; /** * Sends an HTTP DELETE request to the server. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ xhrDelete(args: Object): any; /** * Sends an HTTP GET request to the server. - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ xhrGet(args: Object): any; /** * Sends an HTTP POST request to the server. In addition to the properties * listed for the dojo.__XhrArgs type, the following property is allowed: - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ xhrPost(args: Object): any; /** * Sends an HTTP PUT request to the server. In addition to the properties * listed for the dojo.__XhrArgs type, the following property is allowed: - * - * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:handleAs (String, optional): Acceptable values are: text (default), json, json-comment-optional,json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlerssync (Boolean, optional): false is default. Indicates whether the request shouldbe a synchronous (blocking) request.headers (Object, optional): Additional HTTP headers to send in the request.failOk (Boolean, optional): false is default. Indicates whether a request should beallowed to fail (and therefore no console error message inthe event of a failure)contentType (String|Boolean): "application/x-www-form-urlencoded" is default. Set to false toprevent a Content-Type header from being sent, or to a stringto send a different Content-Type.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ xhrPut(args: Object): any; } - module kernel { + namespace kernel { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.__IoCallbackArgs.html * - * + * */ class __IoCallbackArgs { constructor(); /** * the original object argument to the IO call. - * + * */ "args": Object; /** @@ -9207,19 +9207,19 @@ declare module dojo { * request can be deleted after callbacks have * been called. Used internally to know when * cleanup can happen on JSONP-type requests. - * + * */ "canDelete": boolean; /** * The final indicator on how the response will be * handled. - * + * */ "handleAs": string; /** * For dojo/io/script calls only, the internal * script ID used for the request. - * + * */ "id": string; /** @@ -9229,28 +9229,28 @@ declare module dojo { * You should not need to access it directly -- * the same object should be passed to the success * callbacks directly. - * + * */ "json": Object; /** * For non-GET requests, the * name1=value1&name2=value2 parameters sent up in * the request. - * + * */ "query": string; /** * The final URL used for the call. Many times it * will be different than the original args.url * value. - * + * */ "url": string; /** * For XMLHttpRequest calls only, the * XMLHttpRequest object that was used for the * request. - * + * */ "xhr": Object; } @@ -9262,7 +9262,7 @@ declare module dojo { * published for any Input/Output, network operation. So, * dojo.xhr, dojo.io.script and dojo.io.iframe can all * trigger these topics to be published. - * + * */ class __IoPublish { constructor(); @@ -9270,47 +9270,47 @@ declare module dojo { * "/dojo/io/done" is sent whenever an IO request has completed, * either by loading or by erroring. It passes the error and * the dojo.Deferred for the request with the topic. - * + * */ "done": string; /** * "/dojo/io/error" is sent whenever an IO request has errored. * It passes the error and the dojo.Deferred * for the request with the topic. - * + * */ "error": string; /** * "/dojo/io/load" is sent whenever an IO request has loaded * successfully. It passes the response and the dojo.Deferred * for the request with the topic. - * + * */ "load": string; /** * "/dojo/io/send" is sent whenever a new IO request is started. * It passes the dojo.Deferred for the request with the topic. - * + * */ "send": string; /** * "/dojo/io/start" is sent when there are no outstanding IO * requests, and a new IO request is started. No arguments * are passed with this topic. - * + * */ "start": string; /** * "/dojo/io/stop" is sent when all outstanding IO requests have * finished. No arguments are passed with this topic. - * + * */ "stop": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.__IoArgs.html * - * + * */ class __IoArgs { constructor(); @@ -9318,19 +9318,19 @@ declare module dojo { * Contains properties with string values. These * properties will be serialized as name1=value2 and * passed in the request. - * + * */ "content": Object; /** * DOM node for a form. Used to extract the form values * and send to the server. - * + * */ "form": HTMLElement; /** * Acceptable values depend on the type of IO * transport (see specific IO calls for more information). - * + * */ "handleAs": string; /** @@ -9338,7 +9338,7 @@ declare module dojo { * IO operations. Otherwise, if djConfig.ioPublish is set to true, topics * will be published via dojo/topic.publish() for different phases of an IO operation. * See dojo/main.__IoPublish for a list of topics that are published. - * + * */ "ioPublish": boolean; /** @@ -9346,7 +9346,7 @@ declare module dojo { * "dojo.preventCache" parameter is sent in the request * with a value that changes with each request * (timestamp). Useful only with GET-type requests. - * + * */ "preventCache": boolean; /** @@ -9354,18 +9354,18 @@ declare module dojo { * property is ignored. This is mostly useful for HTTP methods that have * a body to their requests, like PUT or POST. This property can be used instead * of postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively. - * + * */ "rawBody": string; /** * Milliseconds to wait for the response. If this time * passes, the then error callbacks are called. - * + * */ "timeout": number; /** * URL to server endpoint. - * + * */ "url": string; /** @@ -9375,26 +9375,26 @@ declare module dojo { * exception, unless djConfig.debugAtAllCosts is true. This allows deployed applications * to continue to run even when a logic error happens in the callback, while making * it easier to troubleshoot while in debug mode. - * - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. + * + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. */ error(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; /** * This function will * be called at the end of every request, whether or not an error occurs. - * - * @param loadOrError Provides a string that tells you whether this functionwas called because of success (load) or failure (error). - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. + * + * @param loadOrError Provides a string that tells you whether this functionwas called because of success (load) or failure (error). + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. */ handle(loadOrError: String, response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; /** * This function will be * called on a successful HTTP response code. - * - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. + * + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. */ load(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; } @@ -9403,7 +9403,7 @@ declare module dojo { * * In addition to the properties listed for the dojo._IoArgs type, * the following properties are allowed for dojo.xhr* methods. - * + * */ class __XhrArgs { constructor(); @@ -9411,38 +9411,38 @@ declare module dojo { * Contains properties with string values. These * properties will be serialized as name1=value2 and * passed in the request. - * + * */ "content": Object; /** * "application/x-www-form-urlencoded" is default. Set to false to * prevent a Content-Type header from being sent, or to a string * to send a different Content-Type. - * + * */ "contentType": string; /** * false is default. Indicates whether a request should be * allowed to fail (and therefore no console error message in * the event of a failure) - * + * */ "failOk": boolean; /** * DOM node for a form. Used to extract the form values * and send to the server. - * + * */ "form": HTMLElement; /** * Acceptable values are: text (default), json, json-comment-optional, * json-comment-filtered, javascript, xml. See dojo/_base/xhr.contentHandlers - * + * */ "handleAs": string; /** * Additional HTTP headers to send in the request. - * + * */ "headers": Object; /** @@ -9450,7 +9450,7 @@ declare module dojo { * IO operations. Otherwise, if djConfig.ioPublish is set to true, topics * will be published via dojo/topic.publish() for different phases of an IO operation. * See dojo/main.__IoPublish for a list of topics that are published. - * + * */ "ioPublish": boolean; /** @@ -9458,7 +9458,7 @@ declare module dojo { * "dojo.preventCache" parameter is sent in the request * with a value that changes with each request * (timestamp). Useful only with GET-type requests. - * + * */ "preventCache": boolean; /** @@ -9466,24 +9466,24 @@ declare module dojo { * property is ignored. This is mostly useful for HTTP methods that have * a body to their requests, like PUT or POST. This property can be used instead * of postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively. - * + * */ "rawBody": string; /** * false is default. Indicates whether the request should * be a synchronous (blocking) request. - * + * */ "sync": boolean; /** * Milliseconds to wait for the response. If this time * passes, the then error callbacks are called. - * + * */ "timeout": number; /** * URL to server endpoint. - * + * */ "url": string; /** @@ -9493,26 +9493,26 @@ declare module dojo { * exception, unless djConfig.debugAtAllCosts is true. This allows deployed applications * to continue to run even when a logic error happens in the callback, while making * it easier to troubleshoot while in debug mode. - * - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. + * + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. */ error(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; /** * This function will * be called at the end of every request, whether or not an error occurs. - * - * @param loadOrError Provides a string that tells you whether this functionwas called because of success (load) or failure (error). - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. + * + * @param loadOrError Provides a string that tells you whether this functionwas called because of success (load) or failure (error). + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. */ handle(loadOrError: String, response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; /** * This function will be * called on a successful HTTP response code. - * - * @param response The response in the format as defined with handleAs. - * @param ioArgs Provides additional information about the request. + * + * @param response The response in the format as defined with handleAs. + * @param ioArgs Provides additional information about the request. */ load(response: Object, ioArgs: dojo.main.__IoCallbackArgs): void; } @@ -9521,14 +9521,14 @@ declare module dojo { * * Base class for objects that provide named properties with optional getter/setter * control and the ability to watch for property changes - * + * * The class also provides the functionality to auto-magically manage getters * and setters for object attributes/properties. - * - * Getters and Setters should follow the format of _xxxGetter or _xxxSetter where - * the xxx is a name of the attribute to handle. So an attribute of "foo" + * + * Getters and Setters should follow the format of _xxxGetter or _xxxSetter where + * the xxx is a name of the attribute to handle. So an attribute of "foo" * would have a custom getter of _fooGetter and a custom setter of _fooSetter. - * + * */ class Stateful { constructor(); @@ -9537,29 +9537,29 @@ declare module dojo { * Get a named property on a Stateful object. The property may * potentially be retrieved via a getter method in subclasses. In the base class * this just retrieves the object's property. - * - * @param name The property to get. + * + * @param name The property to get. */ get(name: String): any; /** - * - * @param params Optional + * + * @param params Optional */ postscript(params?: Object): void; /** * Set a property on a Stateful instance * Sets named properties on a stateful object and notifies any watchers of * the property. A programmatic setter may be defined in subclasses. - * - * @param name The property to set. - * @param value The value to set in the property. + * + * @param name The property to set. + * @param value The value to set in the property. */ set(name: String, value: Object): any; /** * Watches a property for changes - * - * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched - * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. + * + * @param name OptionalIndicates the property to watch. This is optional (the callback may be theonly parameter), and if omitted, all the properties will be watched + * @param callback The function to execute when the property changes. This will be called afterthe property has been changed. The callback will be called with the |this|set to the instance, the first argument as the name of the property, thesecond argument as the old value and the third argument as the new value. */ watch(property: string, callback:{(property?:string, oldValue?:any, newValue?: any):void}) :{unwatch():void}; } @@ -9573,24 +9573,24 @@ declare module dojo { * called, passing the xhr object for manipulation. The return value * from the contentHandler will be passed to the load or handle * functions defined in the original xhr call. - * + * */ interface _contentHandlers { /** - * - * @param xhr + * + * @param xhr */ auto(xhr: any): void; /** * A contentHandler which evaluates the response data, expecting it to be valid JavaScript - * - * @param xhr + * + * @param xhr */ javascript(xhr: any): any; /** * A contentHandler which returns a JavaScript object created from the response data - * - * @param xhr + * + * @param xhr */ json(xhr: any): any; /** @@ -9599,52 +9599,52 @@ declare module dojo { * the json-comment-filtered option was implemented to prevent * "JavaScript Hijacking", but it is less secure than standard JSON. Use * standard JSON instead. JSON prefixing can be used to subvert hijacking. - * + * * Will throw a notice suggesting to use application/json mimetype, as * json-commenting can introduce security issues. To decrease the chances of hijacking, * use the standard json contentHandler, and prefix your "JSON" with: {}&& - * + * * use djConfig.useCommentedJson = true to turn off the notice - * - * @param xhr + * + * @param xhr */ json_comment_filtered(xhr: any): any; /** * A contentHandler which checks the presence of comment-filtered JSON and * alternates between the json and json-comment-filtered contentHandlers. - * - * @param xhr + * + * @param xhr */ json_comment_optional(xhr: any): any; /** - * - * @param xhr + * + * @param xhr */ olson_zoneinfo(xhr: any): void; /** * A contentHandler which simply returns the plaintext response data - * - * @param xhr + * + * @param xhr */ text(xhr: any): any; /** * A contentHandler returning an XML Document parsed from the response data - * - * @param xhr + * + * @param xhr */ xml(xhr: any): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel._hasResource.html * - * + * */ interface _hasResource { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel._nodeDataCache.html * - * + * */ interface _nodeDataCache { } @@ -9652,7 +9652,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.back.html * * Browser history management resources - * + * */ interface back { /** @@ -9661,44 +9661,44 @@ declare module dojo { * argument should implement a function called either "back", * "backButton", or "handle". The string "back" will be passed as * the first and only argument to this callback. - * + * * To support getting forward button notifications, the object * argument should implement a function called either "forward", * "forwardButton", or "handle". The string "forward" will be * passed as the first and only argument to this callback. - * + * * If you want the browser location string to change, define "changeUrl" on the object. If the * value of "changeUrl" is true, then a unique number will be appended to the URL as a fragment * identifier (http://some.domain.com/path#uniquenumber). If it is any other value that does * not evaluate to false, that value will be used as the fragment identifier. For example, * if changeUrl: 'page1', then the URL will look like: http://some.domain.com/path#page1 - * + * * There are problems with using dojo/back with semantically-named fragment identifiers * ("hash values" on an URL). In most browsers it will be hard for dojo/back to know * distinguish a back from a forward event in those cases. For back/forward support to * work best, the fragment ID should always be a unique value (something using new Date().getTime() * for example). If you want to detect hash changes using semantic fragment IDs, then * consider using dojo/hash instead (in Dojo 1.4+). - * - * @param args The state object that will be added to the history list. + * + * @param args The state object that will be added to the history list. */ addToHistory(args: Object): void; /** - * + * */ getHash(): any; /** * private method. Do not call this directly. - * + * */ goBack(): void; /** * private method. Do not call this directly. - * + * */ goForward(): void; /** - * Initializes the undo stack. This must be called from a + * Initializes the undo stack. This must be called from a * block that lives inside the <body> tag to prevent bugs on IE. *

*

Only call this method before the page's DOM is finished loading. Otherwise @@ -9707,7 +9707,7 @@ declare module dojo { * * *

- *
setHash(h) + *
setHash(h) *
*
Defined by dojo/back *
@@ -9727,7 +9727,7 @@ declare module dojo { *
* *
- *
setInitialState(args) + *
setInitialState(args) *
*
Defined by dojo/back *
@@ -9747,7 +9747,7 @@ declare module dojo { * args * Object *

See the addToHistory() function for the list of valid args properties.

- * + * * * * @@ -9761,31 +9761,31 @@ declare module dojo { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.cldr.html * - * + * */ interface cldr { /** * TODOC - * + * */ monetary: Object; /** * TODOC - * + * */ supplemental: Object; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.colors.html * - * + * */ interface colors { /** * creates a greyscale color with an optional alpha - * - * @param g - * @param a Optional + * + * @param g + * @param a Optional */ makeGrey(g: number, a?: number): void; } @@ -9798,7 +9798,7 @@ declare module dojo { * Also, when multiple instances of dojo exist in a single application, each will necessarily be located * at an unique absolute module identifier as given by the package configuration. Implementing configuration * as a module allows for specifying unique, per-instance configurations. - * + * */ interface config { /** @@ -9809,50 +9809,50 @@ declare module dojo { * djConfig.addOnLoad = [myObject, "functionName"]; and for object with * function reference use * djConfig.addOnLoad = [myObject, function(){}]; - * + * */ addOnLoad: Function; /** - * + * */ afterOnLoad: boolean; /** - * + * */ baseUrl: Object; /** - * Defines a callback to be used when dependencies are defined before - * the loader has been loaded. When provided, they cause the loader to - * execute require(deps, callback) once it has finished loading. + * Defines a callback to be used when dependencies are defined before + * the loader has been loaded. When provided, they cause the loader to + * execute require(deps, callback) once it has finished loading. * Should be used with deps. - * + * */ callback: Function; /** - * + * */ debugContainerId: string; /** - * + * */ debugHeight: number; /** * Default duration, in milliseconds, for wipe and fade animations within dijits. * Assigned to dijit.defaultDuration. - * + * */ defaultDuration: number; /** * Whether deferred instrumentation should be loaded or included * in builds. - * + * */ deferredInstrumentation: boolean; /** * Defines dependencies to be used before the loader has been loaded. - * When provided, they cause the loader to execute require(deps, callback) + * When provided, they cause the loader to execute require(deps, callback) * once it has finished loading. Should be used with callback. - * + * */ deps: Function; /** @@ -9862,21 +9862,21 @@ declare module dojo { * does not need to be set, except when using cross-domain/CDN Dojo builds. * Save dojo/resources/blank.html to your domain and set djConfig.dojoBlankHtmlUrl * to the path on your domain your copy of blank.html. - * + * */ dojoBlankHtmlUrl: string; /** * No default value. Specifies additional locales whose * resources should also be loaded alongside the default locale when * calls to dojo.requireLocalization() are processed. - * + * */ extraLocale: any[]; /** * Set this to true to enable publishing of topics for the different phases of * IO operations. Publishing is done via dojo/topic.publish(). See dojo/main.__IoPublish for a list * of topics that are published. - * + * */ ioPublish: Object; /** @@ -9889,7 +9889,7 @@ declare module dojo { * Firebug's console.* methods are ALWAYS defined by Dojo. If * isDebug is false and you are on a platform without Firebug, these * methods will be defined as no-ops. - * + * */ isDebug: boolean; /** @@ -9900,7 +9900,7 @@ declare module dojo { * for details on loading localized resources. If no locale is specified, * Dojo assumes the locale of the user agent, according to navigator.userLanguage * or navigator.language properties. - * + * */ locale: string; /** @@ -9910,47 +9910,47 @@ declare module dojo { * djConfig.modulePaths = { "foo": "../../bar" } is the equivalent * of calling dojo.registerModulePath("foo", "../../bar");. Multiple * modules may be configured via djConfig.modulePaths. - * + * */ modulePaths: Object; /** * Run the parser after the page is loaded - * + * */ parseOnLoad: boolean; /** * An array of module names to be loaded immediately after dojo.js has been included * in a page. - * + * */ require: Object; /** * Array containing the r, g, b components used as transparent color in dojo.Color; * if undefined, [255,255,255] (white) will be used. - * + * */ transparentColor: any[]; /** * Used by dojox.analytics.Urchin as the default UA-123456-7 account * number used when being created. Alternately, you can pass an acct:"" * parameter to the constructor a la: new dojox.analytics.Urchin({ acct:"UA-123456-7" }); - * + * */ urchin: string; /** * If set to a value that evaluates to true such as a string or array and * isDebug is true and Firebug is not available or running, then it bypasses * the creation of Firebug Lite allowing you to define your own console object. - * + * */ useCustomLogger: Object; /** * Whether the deferred instrumentation should be used. - * + * * "report-rejections": report each rejection as it occurs. * true or 1 or "report-unhandled-rejections": wait 1 second * in an attempt to detect unhandled rejections. - * + * */ useDeferredInstrumentation: boolean; } @@ -9964,24 +9964,24 @@ declare module dojo { * called, passing the xhr object for manipulation. The return value * from the contentHandler will be passed to the load or handle * functions defined in the original xhr call. - * + * */ interface contentHandlers { /** - * - * @param xhr + * + * @param xhr */ auto(xhr: any): void; /** * A contentHandler which evaluates the response data, expecting it to be valid JavaScript - * - * @param xhr + * + * @param xhr */ javascript(xhr: any): any; /** * A contentHandler which returns a JavaScript object created from the response data - * - * @param xhr + * + * @param xhr */ json(xhr: any): any; /** @@ -9990,140 +9990,140 @@ declare module dojo { * the json-comment-filtered option was implemented to prevent * "JavaScript Hijacking", but it is less secure than standard JSON. Use * standard JSON instead. JSON prefixing can be used to subvert hijacking. - * + * * Will throw a notice suggesting to use application/json mimetype, as * json-commenting can introduce security issues. To decrease the chances of hijacking, * use the standard json contentHandler, and prefix your "JSON" with: {}&& - * + * * use djConfig.useCommentedJson = true to turn off the notice - * - * @param xhr + * + * @param xhr */ json_comment_filtered(xhr: any): any; /** * A contentHandler which checks the presence of comment-filtered JSON and * alternates between the json and json-comment-filtered contentHandlers. - * - * @param xhr + * + * @param xhr */ json_comment_optional(xhr: any): any; /** - * - * @param xhr + * + * @param xhr */ olson_zoneinfo(xhr: any): void; /** * A contentHandler which simply returns the plaintext response data - * - * @param xhr + * + * @param xhr */ text(xhr: any): any; /** * A contentHandler returning an XML Document parsed from the response data - * - * @param xhr + * + * @param xhr */ xml(xhr: any): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.dnd.html * - * + * */ interface dnd { /** * Used by dojo/dnd/Manager to scroll document or internal node when the user * drags near the edge of the viewport or a scrollable node - * + * */ autoscroll: Object; /** - * + * */ move: Object; /** - * + * */ AutoSource(): void; /** - * + * */ Avatar(): void; /** - * + * */ Container(): void; /** - * + * */ Manager(): void; /** - * + * */ Moveable(): void; /** - * + * */ Mover(): void; /** - * + * */ Selector(): void; /** - * + * */ Source(): void; /** - * + * */ Target(): void; /** - * + * */ TimedMoveable(): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.date.html * - * + * */ interface date { /** * TODOC - * + * */ stamp: Object; /** * Add to a Date in intervals of different size, from milliseconds to years - * - * @param date Date object to start with - * @param interval A string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday" - * @param amount How much to add to the date. + * + * @param date Date object to start with + * @param interval A string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday" + * @param amount How much to add to the date. */ add(date: Date, interval: String, amount: number): any; /** * Compare two date objects by date, time, or both. * Returns 0 if equal, positive if a > b, else negative. - * - * @param date1 Date object - * @param date2 OptionalDate object. If not specified, the current Date is used. - * @param portion OptionalA string indicating the "date" or "time" portion of a Date object.Compares both "date" and "time" by default. One of the following:"date", "time", "datetime" + * + * @param date1 Date object + * @param date2 OptionalDate object. If not specified, the current Date is used. + * @param portion OptionalA string indicating the "date" or "time" portion of a Date object.Compares both "date" and "time" by default. One of the following:"date", "time", "datetime" */ compare(date1: Date, date2?: Date, portion?: String): number; /** * Get the difference in a specific unit of time (e.g., number of * months, weeks, days, etc.) between two dates, rounded to the * nearest integer. - * - * @param date1 Date object - * @param date2 OptionalDate object. If not specified, the current Date is used. - * @param interval OptionalA string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday"Defaults to "day". + * + * @param date1 Date object + * @param date2 OptionalDate object. If not specified, the current Date is used. + * @param interval OptionalA string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday"Defaults to "day". */ difference(date1: Date, date2?: Date, interval?: String): any; /** * Returns the number of days in the month used by dateObject - * - * @param dateObject + * + * @param dateObject */ getDaysInMonth(dateObject: Date): number; /** @@ -10132,8 +10132,8 @@ declare module dojo { * the Date object -- UTC offset is not a time zone. See * http://www.twinsun.com/tz/tz-link.htm Note: results may be * inconsistent across browsers. - * - * @param dateObject Needed because the timezone may vary with time (daylight savings) + * + * @param dateObject Needed because the timezone may vary with time (daylight savings) */ getTimezoneName(dateObject: Date): any; /** @@ -10143,8 +10143,8 @@ declare module dojo { * a year is a multiple of 100, then it is only a leap year if it is * also a multiple of 400. For example, 1900 was not a leap year, but * 2000 is one. - * - * @param dateObject + * + * @param dateObject */ isLeapYear(dateObject: Date): boolean; } @@ -10155,42 +10155,42 @@ declare module dojo { * for temporary context shifting. See also withDoc(). * Use this rather than referring to 'window.document' to ensure your code runs * correctly in managed contexts. - * + * */ interface doc { /** - * + * */ documentElement: Object; /** - * + * */ dojoClick: boolean; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.data.html * - * + * */ interface data { /** - * + * */ api: Object; /** - * + * */ util: Object; /** - * + * */ ItemFileReadStore(): void; /** - * + * */ ItemFileWriteStore(): void; /** - * + * */ ObjectStore(): void; } @@ -10205,7 +10205,7 @@ declare module dojo { * currency support is included. A fixed number of decimal places is determined based * on the currency type and is not determined by the 'pattern' argument. The fractional * portion is optional, by default, and variable length decimals are not supported. - * + * */ interface currency { /** @@ -10214,169 +10214,169 @@ declare module dojo { * Formatting patterns * appropriate to the locale are chosen from the CLDR * as well as the appropriate symbols and delimiters and number of decimal places. - * - * @param value the number to be formatted. - * @param options Optional + * + * @param value the number to be formatted. + * @param options Optional */ format(value: number, options: dojo.currency.__FormatOptions): any; /** - * - * @param expression - * @param options OptionalAn object with the following properties:type (String, optional): Should not be set. Value is assumed to be currency.currency (String, optional): an ISO4217 currency code, a three letter sequence like "USD".For use with dojo.currency only.symbol (String, optional): localized currency symbol. The default will be looked up in table of supported currencies in dojo.cldrA ISO4217 currency code will be used if not found.places (Number, optional): fixed number of decimal places to accept. The default is determined based on which currency is used.fractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by the currencyor explicit 'places' parameter. The value [true,false] makes the fractional portion optional.By default for currencies, it the fractional portion is optional.pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators + * + * @param expression + * @param options OptionalAn object with the following properties:type (String, optional): Should not be set. Value is assumed to be currency.currency (String, optional): an ISO4217 currency code, a three letter sequence like "USD".For use with dojo.currency only.symbol (String, optional): localized currency symbol. The default will be looked up in table of supported currencies in dojo.cldrA ISO4217 currency code will be used if not found.places (Number, optional): fixed number of decimal places to accept. The default is determined based on which currency is used.fractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by the currencyor explicit 'places' parameter. The value [true,false] makes the fractional portion optional.By default for currencies, it the fractional portion is optional.pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators */ parse(expression: String, options?: Object): any; /** - * - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. + * + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. */ regexp(options: Object): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.dijit.html * - * + * */ interface dijit { /** - * + * */ form: Object; /** - * + * */ layout: Object; /** * W3C range API - * + * */ range: Object; /** - * + * */ registry: Object; /** - * + * */ tree: Object; /** - * - * @param id + * + * @param id */ byId(id: any): any; /** - * + * */ Calendar(): void; /** - * + * */ CalendarLite(): void; /** - * + * */ CheckedMenuItem(): void; /** - * + * */ ColorPalette(): void; /** - * + * */ Declaration(): void; /** - * + * */ Destroyable(): void; /** - * + * */ Dialog(): void; /** - * + * */ DialogUnderlay(): void; /** - * + * */ DropDownMenu(): void; /** - * + * */ Dye(): void; /** - * + * */ Editor(): void; /** - * + * */ Fieldset(): void; /** - * + * */ InlineEditBox(): void; /** - * + * */ Menu(): void; /** - * + * */ MenuBar(): void; /** - * + * */ MenuBarItem(): void; /** - * + * */ MenuItem(): void; /** - * + * */ MenuSeparator(): void; /** - * + * */ PopupMenuBarItem(): void; /** - * + * */ PopupMenuItem(): void; /** - * + * */ ProgressBar(): void; /** - * + * */ RadioButtonMenuItem(): void; /** - * + * */ TitlePane(): void; /** - * + * */ Toolbar(): void; /** - * + * */ ToolbarSeparator(): void; /** - * + * */ Tooltip(): void; /** - * + * */ TooltipDialog(): void; /** - * + * */ Tree(): void; /** - * + * */ WidgetSet(): void; } @@ -10387,31 +10387,31 @@ declare module dojo { * for temporary context shifting. See also withGlobal(). * Use this rather than referring to 'window' to ensure your code runs * correctly in managed contexts. - * + * */ interface global { /** - * + * */ $(): any; /** - * - * @param start - * @param data - * @param responseCode - * @param errorMsg + * + * @param start + * @param data + * @param responseCode + * @param errorMsg */ GoogleSearchStoreCallback_undefined_NaN(start: any, data: any, responseCode: any, errorMsg: any): void; /** - * + * */ jQuery(): any; /** - * + * */ swfIsInHTML(): void; /** - * + * */ undefined_onload(): void; } @@ -10419,12 +10419,12 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.gears.html * * TODOC - * + * */ interface gears { /** * True if client is using Google Gears - * + * */ available: Object; } @@ -10432,13 +10432,13 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.fx.html * * Effects library on top of Base animations - * + * */ interface fx { /** * Collection of easing functions to use beyond the default * dojo._defaultEasing function. - * + * */ easing: Object; /** @@ -10448,8 +10448,8 @@ declare module dojo { * synthesized events simulating a single animation. (eg: * onEnd of this animation means the end of the chain, * not the individual animations within) - * - * @param animations + * + * @param animations */ chain(animations: dojo._base.fx.Animation[]): any; /** @@ -10457,8 +10457,8 @@ declare module dojo { * Combine an array of dojo/_base/fx.Animations to run in parallel, * providing a new dojo/_base/fx.Animation instance encompasing each * animation, firing standard animation events. - * - * @param animations + * + * @param animations */ combine(animations: dojo._base.fx.Animation[]): any; /** @@ -10466,12 +10466,12 @@ declare module dojo { * Returns an animation that will slide "node" * defined in args Object from its current position to * the position defined by (args.left, args.top). - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on). Special args membersare top and left, which indicate the new position to slide to. + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on). Special args membersare top and left, which indicate the new position to slide to. */ slideTo(args: Object): any; /** - * + * */ Toggler(): void; /** @@ -10480,16 +10480,16 @@ declare module dojo { * node defined in 'args' object from it's current height to * it's natural height (with no scrollbar). * Node must have no margin/border/padding. - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) */ wipeIn(args: Object): any; /** * Shrink a node to nothing and hide it. * Returns an animation that will shrink node defined in "args" * from it's current height to 1px, and then hide it. - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) */ wipeOut(args: Object): any; } @@ -10497,7 +10497,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.html.html * * TODOC - * + * */ interface html { /** @@ -10511,10 +10511,10 @@ declare module dojo { * an HTML string into the DOM, but it only handles inserting an HTML string as DOM * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ set(node: HTMLElement, cont: String, params?: Object): any; /** @@ -10528,10 +10528,10 @@ declare module dojo { * an HTML string into the DOM, but it only handles inserting an HTML string as DOM * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ set(node: HTMLElement, cont: HTMLElement, params?: Object): any; /** @@ -10545,274 +10545,274 @@ declare module dojo { * an HTML string into the DOM, but it only handles inserting an HTML string as DOM * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ set(node: HTMLElement, cont: NodeList, params?: Object): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.io.html * - * + * */ interface io { /** - * + * */ iframe: Object; /** * TODOC - * + * */ script: Object; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.dojox.html * - * + * */ interface dojox { /** - * + * */ analytics: Object; /** - * + * */ app: Object; /** - * + * */ atom: Object; /** - * + * */ av: Object; /** - * + * */ BidiComplex: Object; /** - * + * */ calc: Object; /** - * + * */ calendar: Object; /** - * + * */ charting: Object; /** - * + * */ collections: Object; /** - * + * */ color: Object; /** - * + * */ css3: Object; /** - * + * */ data: Object; /** - * + * */ date: Object; /** - * + * */ dgauges: Object; /** - * + * */ dnd: Object; /** - * + * */ drawing: Object; /** - * + * */ dtl: Object; /** - * + * */ editor: Object; /** - * + * */ embed: Object; /** - * + * */ encoding: Object; /** - * + * */ enhanced: Object; /** * Utilities to embed and communicate with the Flash player from Javascript - * + * */ flash: Object; /** - * + * */ form: Object; /** - * + * */ fx: Object; /** - * + * */ gantt: Object; /** - * + * */ gauges: Object; /** - * + * */ geo: Object; /** - * + * */ gesture: Object; /** - * + * */ gfx: Object; /** - * + * */ gfx3d: Object; /** - * + * */ grid: Object; /** - * + * */ help: Object; /** - * + * */ highlight: Object; /** - * + * */ html: Object; /** - * + * */ image: Object; /** - * + * */ io: Object; /** - * + * */ jq: Object; /** - * + * */ json: Object; /** - * + * */ jsonPath: Object; /** - * + * */ lang: Object; /** - * + * */ layout: Object; /** - * + * */ math: Object; /** - * + * */ mdnd: Object; /** - * + * */ mobile: Object; /** - * + * */ mvc: Object; /** - * + * */ openlayers: Object; /** - * + * */ rails: Object; /** - * + * */ robot: Object; /** - * + * */ rpc: Object; /** - * + * */ secure: Object; /** - * + * */ sketch: Object; /** - * + * */ sql: Object; /** - * + * */ string: Object; /** - * + * */ testing: Object; /** - * + * */ timing: Object; /** - * + * */ treemap: Object; /** - * + * */ uuid: Object; /** - * + * */ validate: Object; /** - * + * */ widget: Object; /** - * + * */ xml: Object; /** @@ -10821,14 +10821,14 @@ declare module dojo { * on the WebSocket API and returns an object that implements the WebSocket interface: * http://dev.w3.org/html5/websockets/#websocket * Provides socket connections. This can be used with virtually any Comet protocol. - * - * @param argsOrUrl This uses the same arguments as the other I/O functions in Dojo, or aURL to connect to. The URL should be a relative URL in order to properlywork with WebSockets (it can still be host relative, like //other-site.org/endpoint) + * + * @param argsOrUrl This uses the same arguments as the other I/O functions in Dojo, or aURL to connect to. The URL should be a relative URL in order to properlywork with WebSockets (it can still be host relative, like //other-site.org/endpoint) */ socket(argsOrUrl: Object): any; /** - * - * @param format - * @param filler + * + * @param format + * @param filler */ sprintf(format: String, filler: any): void; } @@ -10839,69 +10839,69 @@ declare module dojo { * We choose to include our own plugin to leverage functionality already contained in dojo * and thereby reduce the size of the plugin compared to various loader implementations. Also, this * allows foreign AMD loaders to be used without their plugins. - * + * */ interface i18n { /** - * + * */ cache: Object; /** - * + * */ dynamic: boolean; /** - * + * */ unitTests: any[]; /** - * - * @param moduleName - * @param bundleName - * @param locale + * + * @param moduleName + * @param bundleName + * @param locale */ getL10nName(moduleName: any, bundleName: any, locale: any): String; /** - * - * @param moduleName - * @param bundleName - * @param locale + * + * @param moduleName + * @param bundleName + * @param locale */ getLocalization(moduleName: any, bundleName: any, locale: any): any; /** * id is in one of the following formats - * + * * /nls/ * => load the bundle, localized to config.locale; load all bundles localized to * config.extraLocale (if any); return the loaded bundle localized to config.locale. * /nls// - * => load then return the bundle localized to + * => load then return the bundle localized to * preload/nls// * => for config.locale and all config.extraLocale, load all bundles found * in the best-matching bundle rollup. A value of 1 is returned, which * is meaningless other than to say the plugin is executing the requested * preloads - * + * * In cases 1 and 2, is always normalized to an absolute module id upon entry; see * normalize. In case 3, it is assumed to be absolute; this is arranged by the builder. - * + * * To load a bundle means to insert the bundle into the plugin's cache and publish the bundle * value to the loader. Given , , and a particular , the cache key - * + * * /nls// * will hold the value. Similarly, then plugin will publish this value to the loader by - * + * * define("/nls//", ); * Given this algorithm, other machinery can provide fast load paths be preplacing * values in the plugin's cache, which is public. When a load is demanded the * cache is inspected before starting any loading. Explicitly placing values in the plugin * cache is an advanced/experimental feature that should not be needed; use at your own risk. - * + * * For the normal AMD algorithm, the root bundle is loaded first, which instructs the * plugin what additional localized bundles are required for a particular locale. These * additional locales are loaded and a mix of the root and each progressively-specific * locale is returned. For example: - * + * * The client demands "dojo/i18n!some/path/nls/someBundle * The loader demands load(some/path/nls/someBundle) * This plugin require's "some/path/nls/someBundle", which is the root bundle. @@ -10913,33 +10913,33 @@ declare module dojo { * mixin(mixin(mixin({}, require("some/path/nls/someBundle"), * require("some/path/nls/ab/someBundle")), * require("some/path/nls/ab-cd-ef/someBundle")); - * + * * This value is inserted into the cache and published to the loader at the * key/module-id some/path/nls/someBundle/ab-cd-ef. - * + * * The special preload signature (case 3) instructs the plugin to stop servicing all normal requests * (further preload requests will be serviced) until all ongoing preloading has completed. - * + * * The preload signature instructs the plugin that a special rollup module is available that contains * one or more flattened, localized bundles. The JSON array of available locales indicates which locales * are available. Here is an example: - * + * * *preload*some/path/nls/someModule*["root", "ab", "ab-cd-ef"] * This indicates the following rollup modules are available: - * + * * some/path/nls/someModule_ROOT * some/path/nls/someModule_ab * some/path/nls/someModule_ab-cd-ef * Each of these modules is a normal AMD module that contains one or more flattened bundles in a hash. * For example, assume someModule contained the bundles some/bundle/path/someBundle and * some/bundle/path/someOtherBundle, then some/path/nls/someModule_ab would be expressed as follows: - * + * * define({ * some/bundle/path/someBundle:, * some/bundle/path/someOtherBundle:, * }); * E.g., given this design, preloading for locale=="ab" can execute the following algorithm: - * + * * require(["some/path/nls/someModule_ab"], function(rollup){ * for(var p in rollup){ * var id = p + "/ab", @@ -10949,25 +10949,25 @@ declare module dojo { * }); * Similarly, if "ab-cd" is requested, the algorithm can determine that "ab" is the best available and * load accordingly. - * + * * The builder will write such rollups for every layer if a non-empty localeList profile property is * provided. Further, the builder will include the following cache entry in the cache associated with * any layer. - * + * * "*now":function(r){r(['dojo/i18n!*preload*/nls/*']);} * The *now special cache module instructs the loader to apply the provided function to context-require * with respect to the particular layer being defined. This causes the plugin to hold all normal service * requests until all preloading is complete. - * + * * Notice that this algorithm is rarely better than the standard AMD load algorithm. Consider the normal case * where the target locale has a single segment and a layer depends on a single bundle: - * + * * Without Preloads: - * + * * Layer loads root bundle. * bundle is demanded; plugin loads single localized bundle. * With Preloads: - * + * * Layer causes preloading of target bundle. * bundle is demanded; service is delayed until preloading complete; bundle is returned. * In each case a single transaction is required to load the target bundle. In cases where multiple bundles @@ -10975,90 +10975,90 @@ declare module dojo { * the normal path requires an additional transaction for each additional bundle/locale-segment. However all * of these additional transactions can be done concurrently. Owing to this analysis, the entire preloading * algorithm can be discard during a build by setting the has feature dojo-preload-i18n-Api to false. - * - * @param id - * @param require - * @param load + * + * @param id + * @param require + * @param load */ load(id: any, require: any, load: any): void; /** * id may be relative. * preload has form *preload*/nls/* and * therefore never looks like a relative - * - * @param id - * @param toAbsMid + * + * @param id + * @param toAbsMid */ normalize(id: any, toAbsMid: any): any; /** - * - * @param locale + * + * @param locale */ normalizeLocale(locale: any): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.mouseButtons.html * - * + * */ interface mouseButtons { /** * Numeric value of the left mouse button for the platform. - * + * */ LEFT: number; /** * Numeric value of the middle mouse button for the platform. - * + * */ MIDDLE: number; /** * Numeric value of the right mouse button for the platform. - * + * */ RIGHT: number; /** * Checks an event object for a pressed button - * - * @param e Event object to examine - * @param button The button value (example: dojo.mouseButton.LEFT) + * + * @param e Event object to examine + * @param button The button value (example: dojo.mouseButton.LEFT) */ isButton(e: Event, button: number): boolean; /** * Checks an event object for the pressed left button - * - * @param e Event object to examine + * + * @param e Event object to examine */ isLeft(e: Event): boolean; /** * Checks an event object for the pressed middle button - * - * @param e Event object to examine + * + * @param e Event object to examine */ isMiddle(e: Event): boolean; /** * Checks an event object for the pressed right button - * - * @param e Event object to examine + * + * @param e Event object to examine */ isRight(e: Event): boolean; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.rpc.html * - * + * */ interface rpc { /** - * + * */ JsonpService(): void; /** - * + * */ JsonService(): void; /** - * + * */ RpcService(): void; } @@ -11066,7 +11066,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.regexp.html * * Regular expressions and Builder resources - * + * */ interface regexp { /** @@ -11076,10 +11076,10 @@ declare module dojo { * parameter. re builds one subexpression for each elem in the array * a, in the first parameter. Returns a string for a regular * expression that groups all the subexpressions. - * - * @param arr A single value or an array of values. - * @param re A function. Takes one parameter and converts it to a regularexpression. - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false + * + * @param arr A single value or an array of values. + * @param re A function. Takes one parameter and converts it to a regularexpression. + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false */ buildGroupRE(arr: Object, re: Function, nonCapture?: boolean): any; /** @@ -11089,24 +11089,24 @@ declare module dojo { * parameter. re builds one subexpression for each elem in the array * a, in the first parameter. Returns a string for a regular * expression that groups all the subexpressions. - * - * @param arr A single value or an array of values. - * @param re A function. Takes one parameter and converts it to a regularexpression. - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false + * + * @param arr A single value or an array of values. + * @param re A function. Takes one parameter and converts it to a regularexpression. + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. Defaults to false */ buildGroupRE(arr: any[], re: Function, nonCapture?: boolean): any; /** * Adds escape sequences for special characters in regular expressions - * - * @param str - * @param except Optionala String with special characters to be left unescaped + * + * @param str + * @param except Optionala String with special characters to be left unescaped */ escapeString(str: String, except?: String): any; /** * adds group match to expression - * - * @param expression - * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. + * + * @param expression + * @param nonCapture OptionalIf true, uses non-capturing match, otherwise matches are retainedby regular expression. */ group(expression: String, nonCapture?: boolean): String; } @@ -11114,7 +11114,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.number.html * * localized formatting and parsing routines for Number - * + * */ interface number_ { /** @@ -11124,9 +11124,9 @@ declare module dojo { * Common Locale Data Repository as well as the appropriate symbols and * delimiters. * If value is Infinity, -Infinity, or is not a valid JavaScript number, return null. - * - * @param value the number to be formatted - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.places (Number, optional): fixed number of decimal places to show. This overrides anyinformation in the provided pattern.round (Number, optional): 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1means do not round.locale (String, optional): override the locale used to determine formatting rulesfractional (Boolean, optional): If false, show no decimal places, overriding places and pattern settings. + * + * @param value the number to be formatted + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.places (Number, optional): fixed number of decimal places to show. This overrides anyinformation in the provided pattern.round (Number, optional): 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1means do not round.locale (String, optional): override the locale used to determine formatting rulesfractional (Boolean, optional): If false, show no decimal places, overriding places and pattern settings. */ format(value: number, options?: Object): any; /** @@ -11137,17 +11137,17 @@ declare module dojo { * and follow the syntax described by * unicode.org TR35 * Note that literal characters in patterns are not supported. - * - * @param expression A string representation of a Number - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsfractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by patternor explicit 'places' parameter. The value [true,false] makes the fractional portion optional. + * + * @param expression A string representation of a Number + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsfractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by patternor explicit 'places' parameter. The value [true,false] makes the fractional portion optional. */ parse(expression: String, options?: Object): number; /** * Builds the regular needed to parse a number * Returns regular expression with positive and negative match, group * and decimal separators - * - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. + * + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. */ regexp(options: Object): any; /** @@ -11156,29 +11156,29 @@ declare module dojo { * Similar to Number.toFixed(), but compensates for browser quirks. Rounding can be done by * fractional increments also, such as the nearest quarter. * NOTE: Subject to floating point errors. See dojox/math/round for experimental workaround. - * - * @param value The number to round - * @param places OptionalThe number of decimal places where rounding takes place. Defaults to 0 for whole rounding.Must be non-negative. - * @param increment OptionalRounds next place to nearest value of increment/10. 10 by default. + * + * @param value The number to round + * @param places OptionalThe number of decimal places where rounding takes place. Defaults to 0 for whole rounding.Must be non-negative. + * @param increment OptionalRounds next place to nearest value of increment/10. 10 by default. */ round(value: number, places?: number, increment?: number): number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.scopeMap.html * - * + * */ interface scopeMap { /** - * + * */ dijit: any[]; /** - * + * */ dojo: any[]; /** - * + * */ dojox: any[]; } @@ -11186,7 +11186,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.tests.html * * D.O.H. Test files for Dojo unit testing. - * + * */ interface tests { } @@ -11195,293 +11195,293 @@ declare module dojo { * * Definitions for common key values. Client code should test keyCode against these named constants, * as the actual codes can vary by browser. - * + * */ interface keys { /** - * + * */ ALT: number; /** - * + * */ BACKSPACE: number; /** - * + * */ CAPS_LOCK: number; /** - * + * */ CLEAR: number; /** - * + * */ copyKey: number; /** - * + * */ CTRL: number; /** - * + * */ DELETE: number; /** - * + * */ DOWN_ARROW: number; /** - * + * */ DOWN_DPAD: number; /** - * + * */ END: number; /** - * + * */ ENTER: number; /** - * + * */ ESCAPE: number; /** - * + * */ F1: number; /** - * + * */ F10: number; /** - * + * */ F11: number; /** - * + * */ F12: number; /** - * + * */ F13: number; /** - * + * */ F14: number; /** - * + * */ F15: number; /** - * + * */ F2: number; /** - * + * */ F3: number; /** - * + * */ F4: number; /** - * + * */ F5: number; /** - * + * */ F6: number; /** - * + * */ F7: number; /** - * + * */ F8: number; /** - * + * */ F9: number; /** - * + * */ HELP: number; /** - * + * */ HOME: number; /** - * + * */ INSERT: number; /** - * + * */ LEFT_ARROW: number; /** - * + * */ LEFT_DPAD: number; /** - * + * */ LEFT_WINDOW: number; /** - * + * */ META: number; /** - * + * */ NUM_LOCK: number; /** - * + * */ NUMPAD_0: number; /** - * + * */ NUMPAD_1: number; /** - * + * */ NUMPAD_2: number; /** - * + * */ NUMPAD_3: number; /** - * + * */ NUMPAD_4: number; /** - * + * */ NUMPAD_5: number; /** - * + * */ NUMPAD_6: number; /** - * + * */ NUMPAD_7: number; /** - * + * */ NUMPAD_8: number; /** - * + * */ NUMPAD_9: number; /** - * + * */ NUMPAD_DIVIDE: number; /** - * + * */ NUMPAD_ENTER: number; /** - * + * */ NUMPAD_MINUS: number; /** - * + * */ NUMPAD_MULTIPLY: number; /** - * + * */ NUMPAD_PERIOD: number; /** - * + * */ NUMPAD_PLUS: number; /** - * + * */ PAGE_DOWN: number; /** - * + * */ PAGE_UP: number; /** - * + * */ PAUSE: number; /** - * + * */ RIGHT_ARROW: number; /** - * + * */ RIGHT_DPAD: number; /** - * + * */ RIGHT_WINDOW: number; /** - * + * */ SCROLL_LOCK: number; /** - * + * */ SELECT: number; /** - * + * */ SHIFT: number; /** - * + * */ SPACE: number; /** - * + * */ TAB: number; /** - * + * */ UP_ARROW: number; /** - * + * */ UP_DPAD: number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.store.html * - * + * */ interface store { /** - * + * */ util: Object; /** - * - * @param masterStore - * @param cachingStore - * @param options + * + * @param masterStore + * @param cachingStore + * @param options */ Cache(masterStore: any, cachingStore: any, options: any): any; /** - * + * */ DataStore(): void; /** - * + * */ JsonRest(): void; /** - * + * */ Memory(): void; /** @@ -11489,8 +11489,8 @@ declare module dojo { * results that can be used to monitor results for changes. * Observable wraps an existing store so that notifications can be made when a query * is performed. - * - * @param store + * + * @param store */ Observable(store: dojo.store.api.Store): any; } @@ -11498,45 +11498,45 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.string.html * * String utilities for Dojo - * + * */ interface string_ { /** * Pad a string to guarantee that it is at least size length by * filling with the character ch at either the start or end of the * string. Pads at the start, by default. - * - * @param text the string to pad - * @param size length to provide padding - * @param ch Optionalcharacter to pad, defaults to '0' - * @param end Optionaladds padding at the end if true, otherwise pads at start + * + * @param text the string to pad + * @param size length to provide padding + * @param ch Optionalcharacter to pad, defaults to '0' + * @param end Optionaladds padding at the end if true, otherwise pads at start */ pad(text: String, size: number, ch?: String, end?: boolean): number; /** * Efficiently replicate a string n times. - * - * @param str the string to replicate - * @param num number of times to replicate the string + * + * @param str the string to replicate + * @param num number of times to replicate the string */ rep(str: String, num: number): String; /** * Performs parameterized substitutions on a string. Throws an * exception if any parameter is unmatched. - * - * @param template a string with expressions in the form ${key} to be replaced or${key:format} which specifies a format function. keys are case-sensitive. - * @param map hash to search for substitutions - * @param transform Optionala function to process all parameters before substitution takesplace, e.g. mylib.encodeXML - * @param thisObject Optionalwhere to look for optional format function; default to the globalnamespace + * + * @param template a string with expressions in the form ${key} to be replaced or${key:format} which specifies a format function. keys are case-sensitive. + * @param map hash to search for substitutions + * @param transform Optionala function to process all parameters before substitution takesplace, e.g. mylib.encodeXML + * @param thisObject Optionalwhere to look for optional format function; default to the globalnamespace */ substitute(template: String, map: Object, transform?: Function, thisObject?: Object): any; /** * Performs parameterized substitutions on a string. Throws an * exception if any parameter is unmatched. - * - * @param template a string with expressions in the form ${key} to be replaced or${key:format} which specifies a format function. keys are case-sensitive. - * @param map hash to search for substitutions - * @param transform Optionala function to process all parameters before substitution takesplace, e.g. mylib.encodeXML - * @param thisObject Optionalwhere to look for optional format function; default to the globalnamespace + * + * @param template a string with expressions in the form ${key} to be replaced or${key:format} which specifies a format function. keys are case-sensitive. + * @param map hash to search for substitutions + * @param transform Optionala function to process all parameters before substitution takesplace, e.g. mylib.encodeXML + * @param thisObject Optionalwhere to look for optional format function; default to the globalnamespace */ substitute(template: String, map: any[], transform?: Function, thisObject?: Object): any; /** @@ -11544,8 +11544,8 @@ declare module dojo { * This version of trim() was taken from Steven Levithan's blog. * The short yet performant version of this function is dojo/_base/lang.trim(), * which is part of Dojo base. Uses String.prototype.trim instead, if available. - * - * @param str String to be trimmed + * + * @param str String to be trimmed */ trim(str: String): String; } @@ -11554,37 +11554,37 @@ declare module dojo { * * Version number of the Dojo Toolkit * Hash about the version, including - * + * * major: Integer: Major version. If total version is "1.2.0beta1", will be 1 * minor: Integer: Minor version. If total version is "1.2.0beta1", will be 2 * patch: Integer: Patch version. If total version is "1.2.0beta1", will be 0 * flag: String: Descriptor flag. If total version is "1.2.0beta1", will be "beta1" * revision: Number: The Git rev from which dojo was pulled - * + * */ interface version { /** - * + * */ flag: string; /** - * + * */ major: number; /** - * + * */ minor: number; /** - * + * */ patch: number; /** - * + * */ revision: number; /** - * + * */ toString(): String; } @@ -11598,64 +11598,64 @@ declare module dojo { * click events immediately for this node and its descendants (except for descendants that * have a dojoClick property set to falsy), to avoid the delay before native browser click events, * and regardless of whether evt.preventDefault() was called in a touch.press event listener. - * + * */ interface touch { /** * Register a listener to 'touchcancel'|'mouseleave' for the given node - * - * @param node Target node to listen to - * @param listener Callback function + * + * @param node Target node to listen to + * @param listener Callback function */ cancel(node: HTMLElement, listener: Function): any; /** * Register a listener to mouse.enter or touch equivalent for the given node - * - * @param node Target node to listen to - * @param listener Callback function + * + * @param node Target node to listen to + * @param listener Callback function */ enter(node: HTMLElement, listener: Function): any; /** * Register a listener to mouse.leave or touch equivalent for the given node - * - * @param node Target node to listen to - * @param listener Callback function + * + * @param node Target node to listen to + * @param listener Callback function */ leave(node: HTMLElement, listener: Function): any; /** * Register a listener that fires when the mouse cursor or a finger is dragged over the given node. - * - * @param node Target node to listen to - * @param listener Callback function + * + * @param node Target node to listen to + * @param listener Callback function */ move(node: HTMLElement, listener: Function): any; /** * Register a listener to 'mouseout' or touch equivalent for the given node - * - * @param node Target node to listen to - * @param listener Callback function + * + * @param node Target node to listen to + * @param listener Callback function */ out(node: HTMLElement, listener: Function): any; /** * Register a listener to 'mouseover' or touch equivalent for the given node - * - * @param node Target node to listen to - * @param listener Callback function + * + * @param node Target node to listen to + * @param listener Callback function */ over(node: HTMLElement, listener: Function): any; /** * Register a listener to 'touchstart'|'mousedown' for the given node - * - * @param node Target node to listen to - * @param listener Callback function + * + * @param node Target node to listen to + * @param listener Callback function */ press(node: HTMLElement, listener: Function): any; /** * Register a listener to releasing the mouse button while the cursor is over the given node * (i.e. "mouseup") or for removing the finger from the screen while touching the given node. - * - * @param node Target node to listen to - * @param listener Callback function + * + * @param node Target node to listen to + * @param listener Callback function */ release(node: HTMLElement, listener: Function): any; } @@ -11663,26 +11663,26 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/_base/kernel.window.html * * TODOC - * + * */ interface window { /** * Get window object associated with document doc. - * - * @param doc The document to get the associated window for. + * + * @param doc The document to get the associated window for. */ get(doc: HTMLDocument): any; /** * Returns the dimensions and scroll position of the viewable area of a browser window - * - * @param doc Optional + * + * @param doc Optional */ getBox(doc?: HTMLDocument): Object; /** * Scroll the passed node into view using minimal movement, if it is not already. - * - * @param node - * @param pos Optional + * + * @param node + * @param pos Optional */ scrollIntoView(node: HTMLElement, pos?: Object): void; } @@ -11691,23 +11691,23 @@ declare module dojo { } module _firebug { - module firebug { + namespace firebug { } } - module cldr { + namespace cldr { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/cldr/monetary.html * * TODOC - * + * */ interface monetary { /** * A mapping of currency code to currency-specific formatting information. Returns a unique object with properties: places, round. - * - * @param code an ISO 4217 currency code + * + * @param code an ISO 4217 currency code */ getData(code: String): Object; } @@ -11715,15 +11715,15 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/cldr/supplemental.html * * TODOC - * + * */ interface supplemental { /** * Returns a zero-based index for first day of the week * Returns a zero-based index for first day of the week, as used by the local (Gregorian) calendar. * e.g. Sunday (returns 0), or Monday (returns 1) - * - * @param locale Optional + * + * @param locale Optional */ getFirstDayOfWeek(locale?: String): number; /** @@ -11731,30 +11731,30 @@ declare module dojo { * Returns a hash containing the start and end days of the weekend according to local custom using locale, * or by default in the user's locale. * e.g. {start:6, end:0} - * - * @param locale Optional + * + * @param locale Optional */ getWeekend(locale?: String): Object; } } - module data { + namespace data { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/ItemFileReadStore.html * * The ItemFileReadStore implements the dojo/data/api/Read API and reads * data from JSON files that have contents in this format -- - * + * * { items: [ * { name:'Kermit', color:'green', age:12, friends:['Gonzo', {_reference:{name:'Fozzie Bear'}}]}, * { name:'Fozzie Bear', wears:['hat', 'tie']}, * { name:'Miss Piggy', pets:'Foo-Foo'} * ]} * Note that it can also contain an 'identifier' property that specified which attribute on the items - * + * * in the array of items that acts as the unique identifier for that item. - * - * @param keywordParameters {url: String} {data: jsonObject} {typeMap: object}The structure of the typeMap object is as follows:{ type0: function || object, type1: function || object, ... typeN: function || object}Where if it is a function, it is assumed to be an object constructor that takes thevalue of _value as the initialization parameters. If it is an object, then it is assumedto be an object of general form:{ type: function, //constructor. deserialize: function(value) //The function that parses the value and constructs the object defined by type appropriately.} + * + * @param keywordParameters {url: String} {data: jsonObject} {typeMap: object}The structure of the typeMap object is as follows:{ type0: function || object, type1: function || object, ... typeN: function || object}Where if it is a function, it is assumed to be an object constructor that takes thevalue of _value as the initialization parameters. If it is an object, then it is assumedto be an object of general form:{ type: function, //constructor. deserialize: function(value) //The function that parses the value and constructs the object defined by type appropriately.} */ class ItemFileReadStore extends dojo.Evented { constructor(keywordParameters: Object); @@ -11763,16 +11763,16 @@ declare module dojo { * By default, it retains the old behavior of not clearing if close is called. But * if set true, the store will be reset to default state. Note that by doing this, * all item handles will become invalid and a new fetch must be issued. - * + * */ "clearOnClose": boolean; /** - * + * */ "data": Object; /** * Parameter for specifying that it is OK for the xhrGet call to fail silently. - * + * */ "failOk": boolean; /** @@ -11781,56 +11781,56 @@ declare module dojo { * for backwards compatibility. False means only root items are processed * as items, all child objects outside of type-mapped objects and those in * specific reference format, are left straight JS data objects. - * + * */ "hierarchical": boolean; /** - * + * */ "typeMap": Object; /** - * + * */ "url": string; /** * Parameter to allow specifying if preventCache should be passed to the xhrGet call or not when loading data from a url. * Note this does not mean the store calls the server on each fetch, only that the data load has preventCache set as an option. * Added for tracker: #6072 - * + * */ "urlPreventCache": boolean; /** * See dojo/data/api/Read.close() - * - * @param request Optional + * + * @param request Optional */ close(request?: dojo.data.api.Request ): void; /** * See dojo/data/api/Read.close() - * - * @param request Optional + * + * @param request Optional */ close(request?: Object): void; /** * See dojo/data/api/Read.containsValue() - * - * @param item - * @param attribute - * @param value + * + * @param item + * @param attribute + * @param value */ containsValue(item: dojo.data.api.Item, attribute: String, value: any): any; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * The error handler when there is an error fetching items. This function should not be called * directly and is used by simpleFetch.fetch(). - * - * @param errorData - * @param requestObject + * + * @param errorData + * @param requestObject */ errorHandler(errorData: Object, requestObject: Object): void; /** @@ -11857,113 +11857,113 @@ declare module dojo { * or, the _fetchItems() method may, if it wants to, create an new request object * with other specifics about the request that are specific to the datastore and pass * that as the request object to the handler. - * + * * For more information on this specific function, see dojo/data/api/Read.fetch() - * - * @param request OptionalThe keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. + * + * @param request OptionalThe keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. */ fetch(request: Object): void; /** * The handler when items are sucessfully fetched. This function should not be called directly * and is used by simpleFetch.fetch(). - * - * @param items - * @param requestObject + * + * @param items + * @param requestObject */ fetchHandler(items: any[], requestObject: Object): void; /** * See dojo/data/api/Identity.fetchItemByIdentity() - * - * @param keywordArgs + * + * @param keywordArgs */ fetchItemByIdentity(keywordArgs: Object): void; /** * This method handles the basic filtering needs for ItemFile* based stores. - * - * @param requestArgs - * @param arrayOfItems - * @param findCallback + * + * @param requestArgs + * @param arrayOfItems + * @param findCallback */ filter(requestArgs: Object, arrayOfItems: any[], findCallback: Function): void; /** * See dojo/data/api/Read.getAttributes() - * - * @param item + * + * @param item */ getAttributes(item: dojo.data.api.Item): any[]; /** * See dojo/data/api/Read.getFeatures() - * + * */ getFeatures(): any; /** * See dojo/data/api/Identity.getIdentity() - * - * @param item + * + * @param item */ getIdentity(item: dojo.data.api.Item): any; /** * See dojo/data/api/Identity.getIdentityAttributes() - * - * @param item + * + * @param item */ getIdentityAttributes(item: dojo.data.api.Item): any; /** * See dojo/data/api/Read.getLabel() - * - * @param item + * + * @param item */ getLabel(item: dojo.data.api.Item): any; /** * See dojo/data/api/Read.getLabelAttributes() - * - * @param item + * + * @param item */ getLabelAttributes(item: dojo.data.api.Item): any; /** * See dojo/data/api/Read.getValue() - * - * @param item - * @param attribute - * @param defaultValue Optional + * + * @param item + * @param attribute + * @param defaultValue Optional */ getValue(item: dojo.data.api.Item, attribute: String, defaultValue?: any): any; /** * See dojo/data/api/Read.getValues() - * - * @param item - * @param attribute + * + * @param item + * @param attribute */ getValues(item: dojo.data.api.Item, attribute: String): any; /** * See dojo/data/api/Read.hasAttribute() - * - * @param item - * @param attribute + * + * @param item + * @param attribute */ hasAttribute(item: dojo.data.api.Item, attribute: String): boolean; /** * See dojo/data/api/Read.isItem() - * - * @param something + * + * @param something */ isItem(something: any): boolean; /** * See dojo/data/api/Read.isItemLoaded() - * - * @param something + * + * @param something */ isItemLoaded(something: any): any; /** * See dojo/data/api/Read.loadItem() - * - * @param keywordArgs + * + * @param keywordArgs */ loadItem(keywordArgs: Object): void; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; } @@ -11972,17 +11972,17 @@ declare module dojo { * * A Dojo Data implementation that wraps Dojo object stores for backwards * compatibility. - * - * @param options The configuration information to pass into the data store.options.objectStore:The object store to use as the source provider for this data store + * + * @param options The configuration information to pass into the data store.options.objectStore:The object store to use as the source provider for this data store */ class ObjectStore extends dojo.Evented { constructor(options: any); /** - * + * */ "labelProperty": string; /** - * + * */ "objectStore": Object; /** @@ -11990,128 +11990,128 @@ declare module dojo { * contains a reference to the object itself as well as a * cloned and trimmed version of old object for use with * revert. - * - * @param object Indicates that the given object is changing and should be marked as dirty for the next save - * @param _deleting + * + * @param object Indicates that the given object is changing and should be marked as dirty for the next save + * @param _deleting */ changing(object: Object, _deleting: boolean): void; /** * See dojo/data/api/Read.close() - * - * @param request + * + * @param request */ close(request: any): any; /** * Checks to see if 'item' has 'value' at 'attribute' - * - * @param item The item to check - * @param attribute The attribute to check - * @param value The value to look for + * + * @param item The item to check + * @param attribute The attribute to check + * @param value The value to look for */ containsValue(item: Object, attribute: String, value: any): boolean; /** * deletes item and any references to that item from the store. - * - * @param item item to delete + * + * @param item item to delete */ deleteItem(item: any): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * See dojo/data/api/Read.fetch() - * - * @param args + * + * @param args */ fetch(args: any): any; /** * fetch an item by its identity, by looking in our index of what we have loaded - * - * @param args + * + * @param args */ fetchItemByIdentity(args: any): any; /** * Gets the available attributes of an item's 'property' and returns * it as an array. - * - * @param item + * + * @param item */ getAttributes(item: Object): any[]; /** * return the store feature set - * + * */ getFeatures(): Object; /** * returns the identity of the given item * See dojo/data/api/Read.getIdentity() - * - * @param item + * + * @param item */ getIdentity(item: any): any; /** * returns the attributes which are used to make up the * identity of an item. Basically returns this.objectStore.idProperty * See dojo/data/api/Read.getIdentityAttributes() - * - * @param item + * + * @param item */ getIdentityAttributes(item: any): any[]; /** * See dojo/data/api/Read.getLabel() - * - * @param item + * + * @param item */ getLabel(item: dojo.data.api.Item): any; /** * See dojo/data/api/Read.getLabelAttributes() - * - * @param item + * + * @param item */ getLabelAttributes(item: dojo.data.api.Item): any[]; /** * Gets the value of an item's 'property' - * - * @param item The item to get the value from - * @param property property to look up value for - * @param defaultValue Optionalthe default value + * + * @param item The item to get the value from + * @param property property to look up value for + * @param defaultValue Optionalthe default value */ getValue(item: Object, property: String, defaultValue?: any): any; /** * Gets the value of an item's 'property' and returns * it. If this value is an array it is just returned, * if not, the value is added to an array and that is returned. - * - * @param item - * @param property property to look up value for + * + * @param item + * @param property property to look up value for */ getValues(item: Object, property: String): any[]; /** * Checks to see if item has attribute - * - * @param item The item to check - * @param attribute The attribute to check + * + * @param item The item to check + * @param attribute The attribute to check */ hasAttribute(item: Object, attribute: String): boolean; /** * returns true if the item is marked as dirty or true if there are any dirty items - * - * @param item The item to check + * + * @param item The item to check */ isDirty(item: Object): any; /** * Checks to see if the argument is an item - * - * @param item The item to check + * + * @param item The item to check */ isItem(item: Object): boolean; /** * Checks to see if the item is loaded. - * - * @param item The item to check + * + * @param item The item to check */ isItemLoaded(item: Object): any; /** @@ -12120,81 +12120,81 @@ declare module dojo { * that an item is loaded is situations when the item may or may not be loaded yet. * If you access a value directly through property access, you can use this to load * a lazy value as well (doesn't need to be an item). - * - * @param args See dojo/data/api/Read.fetch() + * + * @param args See dojo/data/api/Read.fetch() */ loadItem(args: Object): any; /** * adds a new item to the store at the specified point. * Takes two parameters, data, and options. - * - * @param data See dojo/data/api/Write.newItem() - * @param parentInfo + * + * @param data See dojo/data/api/Write.newItem() + * @param parentInfo */ newItem(data: Object, parentInfo: any): Object; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * returns any modified data to its original state prior to a save(); - * + * */ revert(): void; /** * Saves the dirty data using object store provider. See dojo/data/api/Write for API. - * - * @param kwArgs kwArgs.global:This will cause the save to commit the dirty data for allObjectStores as a single transaction.kwArgs.revertOnError:This will cause the changes to be reverted if there is anerror on the save. By default a revert is executed unlessa value of false is provide for this parameter.kwArgs.onError:Called when an error occurs in the commitkwArgs.onComplete:Called when an the save/commit is completed + * + * @param kwArgs kwArgs.global:This will cause the save to commit the dirty data for allObjectStores as a single transaction.kwArgs.revertOnError:This will cause the changes to be reverted if there is anerror on the save. By default a revert is executed unlessa value of false is provide for this parameter.kwArgs.onError:Called when an error occurs in the commitkwArgs.onComplete:Called when an the save/commit is completed */ save(kwArgs: any): void; /** * sets 'attribute' on 'item' to 'value' * See dojo/data/api/Write.setValue() - * - * @param item - * @param attribute - * @param value + * + * @param item + * @param attribute + * @param value */ setValue(item: any, attribute: any, value: any): void; /** * sets 'attribute' on 'item' to 'value' value * must be an array. * See dojo/data/api/Write.setValues() - * - * @param item - * @param attribute - * @param values + * + * @param item + * @param attribute + * @param values */ setValues(item: any, attribute: any, values: any): void; /** * unsets 'attribute' on 'item' * See dojo/data/api/Write.unsetAttribute() - * - * @param item - * @param attribute + * + * @param item + * @param attribute */ unsetAttribute(item: any, attribute: any): void; /** * See dojo/data/api/Notification.onDelete() - * + * */ onDelete(): void; /** - * Called when a fetch occurs - * - * @param results + * Called when a fetch occurs + * + * @param results */ onFetch(results: any): void; /** * See dojo/data/api/Notification.onNew() - * + * */ onNew(): void; /** * See dojo/data/api/Notification.onSet() - * + * */ onSet(): void; } @@ -12202,8 +12202,8 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/ItemFileWriteStore.html * * TODOC - * - * @param keywordParameters The structure of the typeMap object is as follows:{ type0: function || object, type1: function || object, ... typeN: function || object}Where if it is a function, it is assumed to be an object constructor that takes thevalue of _value as the initialization parameters. It is serialized assuming object.toString()serialization. If it is an object, then it is assumedto be an object of general form:{ type: function, //constructor. deserialize: function(value) //The function that parses the value and constructs the object defined by type appropriately. serialize: function(object) //The function that converts the object back into the proper file format form.} + * + * @param keywordParameters The structure of the typeMap object is as follows:{ type0: function || object, type1: function || object, ... typeN: function || object}Where if it is a function, it is assumed to be an object constructor that takes thevalue of _value as the initialization parameters. It is serialized assuming object.toString()serialization. If it is an object, then it is assumedto be an object of general form:{ type: function, //constructor. deserialize: function(value) //The function that parses the value and constructs the object defined by type appropriately. serialize: function(object) //The function that converts the object back into the proper file format form.} */ class ItemFileWriteStore extends dojo.data.ItemFileReadStore { constructor(keywordParameters: Object); @@ -12212,16 +12212,16 @@ declare module dojo { * By default, it retains the old behavior of not clearing if close is called. But * if set true, the store will be reset to default state. Note that by doing this, * all item handles will become invalid and a new fetch must be issued. - * + * */ "clearOnClose": boolean; /** - * + * */ "data": Object; /** * Parameter for specifying that it is OK for the xhrGet call to fail silently. - * + * */ "failOk": boolean; /** @@ -12230,26 +12230,26 @@ declare module dojo { * for backwards compatibility. False means only root items are processed * as items, all child objects outside of type-mapped objects and those in * specific reference format, are left straight JS data objects. - * + * */ "hierarchical": boolean; /** - * + * */ "referenceIntegrity": boolean; /** - * + * */ "typeMap": Object; /** - * + * */ "url": string; /** * Parameter to allow specifying if preventCache should be passed to the xhrGet call or not when loading data from a url. * Note this does not mean the store calls the server on each fetch, only that the data load has preventCache set as an option. * Added for tracker: #6072 - * + * */ "urlPreventCache": boolean; /** @@ -12257,36 +12257,36 @@ declare module dojo { * Over-ride of base close function of ItemFileReadStore to add in check for store state. * If the store is still dirty (unsaved changes), then an error will be thrown instead of * clearing the internal state for reload from the url. - * - * @param request Optional + * + * @param request Optional */ close(request?: Object): void; /** * See dojo/data/api/Read.containsValue() - * - * @param item - * @param attribute - * @param value + * + * @param item + * @param attribute + * @param value */ containsValue(item: dojo.data.api.Item, attribute: String, value: any): any; /** * See dojo/data/api/Write.deleteItem() - * - * @param item + * + * @param item */ deleteItem(item: dojo.data.api.Item): boolean; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * The error handler when there is an error fetching items. This function should not be called * directly and is used by simpleFetch.fetch(). - * - * @param errorData - * @param requestObject + * + * @param errorData + * @param requestObject */ errorHandler(errorData: Object, requestObject: Object): void; /** @@ -12313,220 +12313,220 @@ declare module dojo { * or, the _fetchItems() method may, if it wants to, create an new request object * with other specifics about the request that are specific to the datastore and pass * that as the request object to the handler. - * + * * For more information on this specific function, see dojo/data/api/Read.fetch() - * - * @param request OptionalThe keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. + * + * @param request OptionalThe keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. */ fetch(request: Object): void; /** * The handler when items are sucessfully fetched. This function should not be called directly * and is used by simpleFetch.fetch(). - * - * @param items - * @param requestObject + * + * @param items + * @param requestObject */ fetchHandler(items: any[], requestObject: Object): void; /** * See dojo/data/api/Identity.fetchItemByIdentity() - * - * @param keywordArgs + * + * @param keywordArgs */ fetchItemByIdentity(keywordArgs: Object): void; /** * This method handles the basic filtering needs for ItemFile* based stores. - * - * @param requestArgs - * @param arrayOfItems - * @param findCallback + * + * @param requestArgs + * @param arrayOfItems + * @param findCallback */ filter(requestArgs: Object, arrayOfItems: any[], findCallback: Function): void; /** * See dojo/data/api/Read.getAttributes() - * - * @param item + * + * @param item */ getAttributes(item: dojo.data.api.Item): any[]; /** * See dojo/data/api/Read.getFeatures() - * + * */ getFeatures(): any; /** * See dojo/data/api/Identity.getIdentity() - * - * @param item + * + * @param item */ getIdentity(item: dojo.data.api.Item): any; /** * See dojo/data/api/Identity.getIdentityAttributes() - * - * @param item + * + * @param item */ getIdentityAttributes(item: dojo.data.api.Item): any; /** * See dojo/data/api/Read.getLabel() - * - * @param item + * + * @param item */ getLabel(item: dojo.data.api.Item): any; /** * See dojo/data/api/Read.getLabelAttributes() - * - * @param item + * + * @param item */ getLabelAttributes(item: dojo.data.api.Item): any; /** * See dojo/data/api/Read.getValue() - * - * @param item - * @param attribute - * @param defaultValue Optional + * + * @param item + * @param attribute + * @param defaultValue Optional */ getValue(item: dojo.data.api.Item, attribute: String, defaultValue?: any): any; /** * See dojo/data/api/Read.getValues() - * - * @param item - * @param attribute + * + * @param item + * @param attribute */ getValues(item: dojo.data.api.Item, attribute: String): any; /** * See dojo/data/api/Read.hasAttribute() - * - * @param item - * @param attribute + * + * @param item + * @param attribute */ hasAttribute(item: dojo.data.api.Item, attribute: String): boolean; /** * See dojo/data/api/Write.isDirty() - * - * @param item Optional + * + * @param item Optional */ isDirty(item?: any): any; /** * See dojo/data/api/Read.isItem() - * - * @param something + * + * @param something */ isItem(something: any): boolean; /** * See dojo/data/api/Read.isItemLoaded() - * - * @param something + * + * @param something */ isItemLoaded(something: any): any; /** * See dojo/data/api/Read.loadItem() - * - * @param keywordArgs + * + * @param keywordArgs */ loadItem(keywordArgs: Object): void; /** * See dojo/data/api/Write.newItem() - * - * @param keywordArgs Optional - * @param parentInfo Optional + * + * @param keywordArgs Optional + * @param parentInfo Optional */ newItem(keywordArgs?: Object, parentInfo?: Object): Object; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * See dojo/data/api/Write.revert() - * + * */ revert(): boolean; /** * See dojo/data/api/Write.save() - * - * @param keywordArgs + * + * @param keywordArgs */ save(keywordArgs: Object): void; /** * See dojo/data/api/Write.set() - * - * @param item - * @param attribute - * @param value + * + * @param item + * @param attribute + * @param value */ setValue(item: dojo.data.api.Item, attribute: String, value: any): any; /** * See dojo/data/api/Write.setValues() - * - * @param item - * @param attribute - * @param values + * + * @param item + * @param attribute + * @param values */ setValues(item: dojo.data.api.Item, attribute: String, values: any[]): any; /** * See dojo/data/api/Write.unsetAttribute() - * - * @param item - * @param attribute + * + * @param item + * @param attribute */ unsetAttribute(item: dojo.data.api.Item, attribute: String): any; /** * See dojo/data/api/Notification.onDelete() - * - * @param deletedItem + * + * @param deletedItem */ onDelete(deletedItem: dojo.data.api.Item): void; /** * See dojo/data/api/Notification.onNew() - * - * @param newItem - * @param parentInfo Optional + * + * @param newItem + * @param parentInfo Optional */ onNew(newItem: dojo.data.api.Item, parentInfo?: Object): void; /** * See dojo/data/api/Notification.onSet() - * - * @param item - * @param attribute - * @param oldValue - * @param newValue + * + * @param item + * @param attribute + * @param oldValue + * @param newValue */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: Object, newValue: Object): void; /** * See dojo/data/api/Notification.onSet() - * - * @param item - * @param attribute - * @param oldValue - * @param newValue + * + * @param item + * @param attribute + * @param oldValue + * @param newValue */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: any[], newValue: Object): void; /** * See dojo/data/api/Notification.onSet() - * - * @param item - * @param attribute - * @param oldValue - * @param newValue + * + * @param item + * @param attribute + * @param oldValue + * @param newValue */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: Object, newValue: any[]): void; /** * See dojo/data/api/Notification.onSet() - * - * @param item - * @param attribute - * @param oldValue - * @param newValue + * + * @param item + * @param attribute + * @param oldValue + * @param newValue */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: any[], newValue: any[]): void; } - module api { + namespace api { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/api/Item.html * * An item in a dojo/data store - * Class for documentation purposes only. An item can take any form, so no + * Class for documentation purposes only. An item can take any form, so no * properties or methods are defined here. - * + * */ class Item { constructor(); @@ -12537,7 +12537,7 @@ declare module dojo { * This is an abstract API that data provider implementations conform to. * This file defines methods signatures and intentionally leaves all the * methods unimplemented. - * + * */ class Identity extends dojo.data.api.Read { constructor(); @@ -12550,8 +12550,8 @@ declare module dojo { * It will then close out anything associated with that request, such as * clearing any internal datastore caches and closing any 'open' connections. * For some store implementations, this call may be a no-op. - * - * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. + * + * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. */ close(request?: dojo.data.api.Request ): void; /** @@ -12563,17 +12563,17 @@ declare module dojo { * It will then close out anything associated with that request, such as * clearing any internal datastore caches and closing any 'open' connections. * For some store implementations, this call may be a no-op. - * - * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. + * + * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. */ close(request?: Object): void; /** * Returns true if the given value is one of the values that getValues() * would return. - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. - * @param value The value to match as a value for the attribute. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. + * @param value The value to match as a value for the attribute. */ containsValue(item: dojo.data.api.Item, attribute: String, value: any): void; /** @@ -12586,12 +12586,12 @@ declare module dojo { * an additional function attached, abort(). The returned request object may then be used * to cancel a fetch. All data items returns are passed through the callbacks defined in the * fetch parameters and are not present on the 'request' object. - * + * * This does not mean that custom stores can not add methods and properties to the request object * returned, only that the API does not require it. For more info about the Request API, * see dojo/data/api/Request - * - * @param keywordArgs The keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. + * + * @param keywordArgs The keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. */ fetch(keywordArgs: Object): any; /** @@ -12600,29 +12600,29 @@ declare module dojo { * should return null if there is no item with the given identity. * Implementations of fetchItemByIdentity() may sometimes return an item * from a local cache and may sometimes fetch an item from a remote server, - * - * @param keywordArgs An anonymous object that defines the item to locate and callbacks to invoke when theitem has been located and load has completed. The format of the object is as follows:{ identity: string|object, onItem: Function, onError: Function, scope: object}The identity parameterThe identity parameter is the identity of the item you wish to locate and loadThis attribute is required. It should be a string or an object that toString()can be called on.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the item located, or null if none found.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global.For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global, item, request) + * + * @param keywordArgs An anonymous object that defines the item to locate and callbacks to invoke when theitem has been located and load has completed. The format of the object is as follows:{ identity: string|object, onItem: Function, onError: Function, scope: object}The identity parameterThe identity parameter is the identity of the item you wish to locate and loadThis attribute is required. It should be a string or an object that toString()can be called on.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the item located, or null if none found.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global.For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global, item, request) */ fetchItemByIdentity(keywordArgs: Object): void; /** * Returns an array with all the attributes that this item has. This * method will always return an array; if the item has no attributes * at all, getAttributes() will return an empty array: []. - * - * @param item The item to access attributes on. + * + * @param item The item to access attributes on. */ getAttributes(item: dojo.data.api.Item): void; /** * See dojo/data/api/Read.getFeatures() - * + * */ getFeatures(): Object; /** * Returns a unique identifier for an item. The return value will be * either a string or something that has a toString() method (such as, * for example, a dojox/uuid object). - * - * @param item The item from the store from which to obtain its identifier. + * + * @param item The item from the store from which to obtain its identifier. */ getIdentity(item: dojo.data.api.Item): void; /** @@ -12634,8 +12634,8 @@ declare module dojo { * the attributes that comprise the identity so that so that during a render * of all attributes, the UI can hide the the identity information if it * chooses. - * - * @param item The item from the store from which to obtain the array of public attributes thatcompose the identifier, if any. + * + * @param item The item from the store from which to obtain the array of public attributes thatcompose the identifier, if any. */ getIdentityAttributes(item: dojo.data.api.Item): void; /** @@ -12651,8 +12651,8 @@ declare module dojo { * to customize how a store instance labels items should replace the getLabel() function on * their instance of the store, or extend the store and replace the function in * the extension class. - * - * @param item The item to return the label for. + * + * @param item The item to return the label for. */ getLabel(item: dojo.data.api.Item): any; /** @@ -12663,8 +12663,8 @@ declare module dojo { * attributes can be ignored out of the attributes an item has when displaying it, in cases * where the UI is using the label as an overall identifer should they wish to hide * redundant information. - * - * @param item The item to return the list of label attributes for. + * + * @param item The item to return the list of label attributes for. */ getLabelAttributes(item: dojo.data.api.Item): any; /** @@ -12679,10 +12679,10 @@ declare module dojo { * or "the item has that attribute but does not have any attribute values". * If store.hasAttribute(item, attribute) returns false, then * store.getValue(item, attribute) will return undefined. - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. - * @param defaultValue OptionalOptional. A default value to use for the getValue return in the attribute does not exist or has no value. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. + * @param defaultValue OptionalOptional. A default value to use for the getValue return in the attribute does not exist or has no value. */ getValue(item: dojo.data.api.Item, attribute: String, defaultValue?: any): any; /** @@ -12693,24 +12693,24 @@ declare module dojo { * If the item does not have a value for the given attribute, then getValues() * will return an empty array: []. (So, if store.hasAttribute(item, attribute) * has a return of false, then store.getValues(item, attribute) will return [].) - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. */ getValues(item: dojo.data.api.Item, attribute: String): any; /** * Returns true if the given item has a value for the given attribute. - * - * @param item The item to access attributes on. - * @param attribute The attribute to access represented as a string. + * + * @param item The item to access attributes on. + * @param attribute The attribute to access represented as a string. */ hasAttribute(item: dojo.data.api.Item, attribute: String): void; /** * Returns true if something is an item and came from the store instance. * Returns false if something is a literal, an item from another store instance, * or is any object other than an item. - * - * @param something Can be anything. + * + * @param something Can be anything. */ isItem(something: any): void; /** @@ -12718,8 +12718,8 @@ declare module dojo { * if isItem(something) is true but the the item is not yet loaded * in local memory (for example, if the item has not yet been read * from the server). - * - * @param something Can be anything. + * + * @param something Can be anything. */ isItemLoaded(something: any): void; /** @@ -12729,8 +12729,8 @@ declare module dojo { * then loadItem() need not do any work at all and will not even invoke * the callback handlers. So, before invoking this method, check that * the item has not already been loaded. - * - * @param keywordArgs An anonymous object that defines the item to load and callbacks to invoke when theload has completed. The format of the object is as follows:{ item: object, onItem: Function, onError: Function, scope: object}The item parameterThe item parameter is an object that represents the item in question that should becontained by the store. This attribute is required.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the fully loaded item.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request) + * + * @param keywordArgs An anonymous object that defines the item to load and callbacks to invoke when theload has completed. The format of the object is as follows:{ item: object, onItem: Function, onError: Function, scope: object}The item parameterThe item parameter is an object that represents the item in question that should becontained by the store. This attribute is required.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the fully loaded item.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request) */ loadItem(keywordArgs: Object): void; } @@ -12743,13 +12743,13 @@ declare module dojo { * attached to it to allow users to abort a particular request if they so choose. * No other functions are required on a general Request object return. That does not * inhibit other store implementations from adding extensions to it, of course. - * + * * This is an abstract API that data provider implementations conform to. * This file defines methods signatures and intentionally leaves all the * methods unimplemented. - * + * * For more details on fetch, see dojo/data/api/Read.fetch(). - * + * */ class Request { constructor(); @@ -12759,7 +12759,7 @@ declare module dojo { * This function is a hook point for stores to provide as a way for * a fetch to be halted mid-processing. For more details on the fetch() api, * please see dojo/data/api/Read.fetch(). - * + * */ abort(): void; } @@ -12778,7 +12778,7 @@ declare module dojo { * this feature. In the case of a read-only store, this feature makes sense if * the store itself does internal polling to a back-end server and periodically updates * its cache of items (deletes, adds, and updates). - * + * */ class Notification extends dojo.data.api.Read { constructor(); @@ -12791,8 +12791,8 @@ declare module dojo { * It will then close out anything associated with that request, such as * clearing any internal datastore caches and closing any 'open' connections. * For some store implementations, this call may be a no-op. - * - * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. + * + * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. */ close(request?: dojo.data.api.Request ): void; /** @@ -12804,17 +12804,17 @@ declare module dojo { * It will then close out anything associated with that request, such as * clearing any internal datastore caches and closing any 'open' connections. * For some store implementations, this call may be a no-op. - * - * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. + * + * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. */ close(request?: Object): void; /** * Returns true if the given value is one of the values that getValues() * would return. - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. - * @param value The value to match as a value for the attribute. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. + * @param value The value to match as a value for the attribute. */ containsValue(item: dojo.data.api.Item, attribute: String, value: any): void; /** @@ -12827,25 +12827,25 @@ declare module dojo { * an additional function attached, abort(). The returned request object may then be used * to cancel a fetch. All data items returns are passed through the callbacks defined in the * fetch parameters and are not present on the 'request' object. - * + * * This does not mean that custom stores can not add methods and properties to the request object * returned, only that the API does not require it. For more info about the Request API, * see dojo/data/api/Request - * - * @param keywordArgs The keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. + * + * @param keywordArgs The keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. */ fetch(keywordArgs: Object): any; /** * Returns an array with all the attributes that this item has. This * method will always return an array; if the item has no attributes * at all, getAttributes() will return an empty array: []. - * - * @param item The item to access attributes on. + * + * @param item The item to access attributes on. */ getAttributes(item: dojo.data.api.Item): void; /** * See dojo/data/api/Read.getFeatures() - * + * */ getFeatures(): Object; /** @@ -12861,8 +12861,8 @@ declare module dojo { * to customize how a store instance labels items should replace the getLabel() function on * their instance of the store, or extend the store and replace the function in * the extension class. - * - * @param item The item to return the label for. + * + * @param item The item to return the label for. */ getLabel(item: dojo.data.api.Item): any; /** @@ -12873,8 +12873,8 @@ declare module dojo { * attributes can be ignored out of the attributes an item has when displaying it, in cases * where the UI is using the label as an overall identifer should they wish to hide * redundant information. - * - * @param item The item to return the list of label attributes for. + * + * @param item The item to return the list of label attributes for. */ getLabelAttributes(item: dojo.data.api.Item): any; /** @@ -12889,10 +12889,10 @@ declare module dojo { * or "the item has that attribute but does not have any attribute values". * If store.hasAttribute(item, attribute) returns false, then * store.getValue(item, attribute) will return undefined. - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. - * @param defaultValue OptionalOptional. A default value to use for the getValue return in the attribute does not exist or has no value. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. + * @param defaultValue OptionalOptional. A default value to use for the getValue return in the attribute does not exist or has no value. */ getValue(item: dojo.data.api.Item, attribute: String, defaultValue?: any): any; /** @@ -12903,24 +12903,24 @@ declare module dojo { * If the item does not have a value for the given attribute, then getValues() * will return an empty array: []. (So, if store.hasAttribute(item, attribute) * has a return of false, then store.getValues(item, attribute) will return [].) - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. */ getValues(item: dojo.data.api.Item, attribute: String): any; /** * Returns true if the given item has a value for the given attribute. - * - * @param item The item to access attributes on. - * @param attribute The attribute to access represented as a string. + * + * @param item The item to access attributes on. + * @param attribute The attribute to access represented as a string. */ hasAttribute(item: dojo.data.api.Item, attribute: String): void; /** * Returns true if something is an item and came from the store instance. * Returns false if something is a literal, an item from another store instance, * or is any object other than an item. - * - * @param something Can be anything. + * + * @param something Can be anything. */ isItem(something: any): void; /** @@ -12928,8 +12928,8 @@ declare module dojo { * if isItem(something) is true but the the item is not yet loaded * in local memory (for example, if the item has not yet been read * from the server). - * - * @param something Can be anything. + * + * @param something Can be anything. */ isItemLoaded(something: any): void; /** @@ -12939,8 +12939,8 @@ declare module dojo { * then loadItem() need not do any work at all and will not even invoke * the callback handlers. So, before invoking this method, check that * the item has not already been loaded. - * - * @param keywordArgs An anonymous object that defines the item to load and callbacks to invoke when theload has completed. The format of the object is as follows:{ item: object, onItem: Function, onError: Function, scope: object}The item parameterThe item parameter is an object that represents the item in question that should becontained by the store. This attribute is required.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the fully loaded item.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request) + * + * @param keywordArgs An anonymous object that defines the item to load and callbacks to invoke when theload has completed. The format of the object is as follows:{ item: object, onItem: Function, onError: Function, scope: object}The item parameterThe item parameter is an object that represents the item in question that should becontained by the store. This attribute is required.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the fully loaded item.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request) */ loadItem(keywordArgs: Object): void; /** @@ -12948,8 +12948,8 @@ declare module dojo { * It is called immediately after the store deleteItem processing has completed. * This function is called any time an item is deleted from the store. * It is called immediately after the store deleteItem processing has completed. - * - * @param deletedItem The item deleted. + * + * @param deletedItem The item deleted. */ onDelete(deletedItem: dojo.data.api.Item): any; /** @@ -12957,9 +12957,9 @@ declare module dojo { * It is called immediately after the store newItem processing has completed. * This function is called any time a new item is created in the store. * It is called immediately after the store newItem processing has completed. - * - * @param newItem The item created. - * @param parentInfo OptionalAn optional javascript object that is passed when the item created was placed in the storehierarchy as a value f another item's attribute, instead of a root level item. Note that if thisfunction is invoked with a value for parentInfo, then onSet is not invoked stating the attribute ofthe parent item was modified. This is to avoid getting two notification events occurring when a new itemwith a parent is created. The structure passed in is as follows:{ item: someItem, //The parent item attribute: "attribute-name-string", //The attribute the new item was assigned to. oldValue: something //Whatever was the previous value for the attribute. //If it is a single-value attribute only, then this value will be a single value. //If it was a multi-valued attribute, then this will be an array of all the values minus the new one. newValue: something //The new value of the attribute. In the case of single value calls, such as setValue, this value will be //generally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes, //it will be an array.} + * + * @param newItem The item created. + * @param parentInfo OptionalAn optional javascript object that is passed when the item created was placed in the storehierarchy as a value f another item's attribute, instead of a root level item. Note that if thisfunction is invoked with a value for parentInfo, then onSet is not invoked stating the attribute ofthe parent item was modified. This is to avoid getting two notification events occurring when a new itemwith a parent is created. The structure passed in is as follows:{ item: someItem, //The parent item attribute: "attribute-name-string", //The attribute the new item was assigned to. oldValue: something //Whatever was the previous value for the attribute. //If it is a single-value attribute only, then this value will be a single value. //If it was a multi-valued attribute, then this will be an array of all the values minus the new one. newValue: something //The new value of the attribute. In the case of single value calls, such as setValue, this value will be //generally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes, //it will be an array.} */ onNew(newItem: dojo.data.api.Item, parentInfo?: Object): any; /** @@ -12968,11 +12968,11 @@ declare module dojo { * Its purpose is to provide a hook point for those who wish to monitor actions on items in the store * in a simple manner. The general expected usage is to dojo.connect() to the store's * implementation and be called after the store function is called. - * - * @param item The item being modified. - * @param attribute The attribute being changed represented as a string name. - * @param oldValue The old value of the attribute. In the case of single value calls, such as setValue, unsetAttribute, etc,this value will be generally be an atomic value of some sort (string, int, etc, object). In the case ofmulti-valued attributes, it will be an array. - * @param newValue The new value of the attribute. In the case of single value calls, such as setValue, this value will begenerally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes,it will be an array. In the case of unsetAttribute, the new value will be 'undefined'. + * + * @param item The item being modified. + * @param attribute The attribute being changed represented as a string name. + * @param oldValue The old value of the attribute. In the case of single value calls, such as setValue, unsetAttribute, etc,this value will be generally be an atomic value of some sort (string, int, etc, object). In the case ofmulti-valued attributes, it will be an array. + * @param newValue The new value of the attribute. In the case of single value calls, such as setValue, this value will begenerally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes,it will be an array. In the case of unsetAttribute, the new value will be 'undefined'. */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: Object, newValue: Object): any; /** @@ -12981,11 +12981,11 @@ declare module dojo { * Its purpose is to provide a hook point for those who wish to monitor actions on items in the store * in a simple manner. The general expected usage is to dojo.connect() to the store's * implementation and be called after the store function is called. - * - * @param item The item being modified. - * @param attribute The attribute being changed represented as a string name. - * @param oldValue The old value of the attribute. In the case of single value calls, such as setValue, unsetAttribute, etc,this value will be generally be an atomic value of some sort (string, int, etc, object). In the case ofmulti-valued attributes, it will be an array. - * @param newValue The new value of the attribute. In the case of single value calls, such as setValue, this value will begenerally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes,it will be an array. In the case of unsetAttribute, the new value will be 'undefined'. + * + * @param item The item being modified. + * @param attribute The attribute being changed represented as a string name. + * @param oldValue The old value of the attribute. In the case of single value calls, such as setValue, unsetAttribute, etc,this value will be generally be an atomic value of some sort (string, int, etc, object). In the case ofmulti-valued attributes, it will be an array. + * @param newValue The new value of the attribute. In the case of single value calls, such as setValue, this value will begenerally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes,it will be an array. In the case of unsetAttribute, the new value will be 'undefined'. */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: any[], newValue: Object): any; /** @@ -12994,11 +12994,11 @@ declare module dojo { * Its purpose is to provide a hook point for those who wish to monitor actions on items in the store * in a simple manner. The general expected usage is to dojo.connect() to the store's * implementation and be called after the store function is called. - * - * @param item The item being modified. - * @param attribute The attribute being changed represented as a string name. - * @param oldValue The old value of the attribute. In the case of single value calls, such as setValue, unsetAttribute, etc,this value will be generally be an atomic value of some sort (string, int, etc, object). In the case ofmulti-valued attributes, it will be an array. - * @param newValue The new value of the attribute. In the case of single value calls, such as setValue, this value will begenerally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes,it will be an array. In the case of unsetAttribute, the new value will be 'undefined'. + * + * @param item The item being modified. + * @param attribute The attribute being changed represented as a string name. + * @param oldValue The old value of the attribute. In the case of single value calls, such as setValue, unsetAttribute, etc,this value will be generally be an atomic value of some sort (string, int, etc, object). In the case ofmulti-valued attributes, it will be an array. + * @param newValue The new value of the attribute. In the case of single value calls, such as setValue, this value will begenerally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes,it will be an array. In the case of unsetAttribute, the new value will be 'undefined'. */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: Object, newValue: any[]): any; /** @@ -13007,11 +13007,11 @@ declare module dojo { * Its purpose is to provide a hook point for those who wish to monitor actions on items in the store * in a simple manner. The general expected usage is to dojo.connect() to the store's * implementation and be called after the store function is called. - * - * @param item The item being modified. - * @param attribute The attribute being changed represented as a string name. - * @param oldValue The old value of the attribute. In the case of single value calls, such as setValue, unsetAttribute, etc,this value will be generally be an atomic value of some sort (string, int, etc, object). In the case ofmulti-valued attributes, it will be an array. - * @param newValue The new value of the attribute. In the case of single value calls, such as setValue, this value will begenerally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes,it will be an array. In the case of unsetAttribute, the new value will be 'undefined'. + * + * @param item The item being modified. + * @param attribute The attribute being changed represented as a string name. + * @param oldValue The old value of the attribute. In the case of single value calls, such as setValue, unsetAttribute, etc,this value will be generally be an atomic value of some sort (string, int, etc, object). In the case ofmulti-valued attributes, it will be an array. + * @param newValue The new value of the attribute. In the case of single value calls, such as setValue, this value will begenerally be an atomic value of some sort (string, int, etc, object). In the case of multi-valued attributes,it will be an array. In the case of unsetAttribute, the new value will be 'undefined'. */ onSet(item: dojo.data.api.Item, attribute: String, oldValue: any[], newValue: any[]): any; } @@ -13022,7 +13022,7 @@ declare module dojo { * This file defines methods signatures and intentionally leaves all the * methods unimplemented. For more information on the dojo.data APIs, * please visit: http://www.dojotoolkit.org/node/98 - * + * */ class Read { constructor(); @@ -13035,8 +13035,8 @@ declare module dojo { * It will then close out anything associated with that request, such as * clearing any internal datastore caches and closing any 'open' connections. * For some store implementations, this call may be a no-op. - * - * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. + * + * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. */ close(request?: dojo.data.api.Request ): void; /** @@ -13048,17 +13048,17 @@ declare module dojo { * It will then close out anything associated with that request, such as * clearing any internal datastore caches and closing any 'open' connections. * For some store implementations, this call may be a no-op. - * - * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. + * + * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. */ close(request?: Object): void; /** * Returns true if the given value is one of the values that getValues() * would return. - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. - * @param value The value to match as a value for the attribute. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. + * @param value The value to match as a value for the attribute. */ containsValue(item: dojo.data.api.Item, attribute: String, value: any): void; /** @@ -13071,20 +13071,20 @@ declare module dojo { * an additional function attached, abort(). The returned request object may then be used * to cancel a fetch. All data items returns are passed through the callbacks defined in the * fetch parameters and are not present on the 'request' object. - * + * * This does not mean that custom stores can not add methods and properties to the request object * returned, only that the API does not require it. For more info about the Request API, * see dojo/data/api/Request - * - * @param keywordArgs The keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. + * + * @param keywordArgs The keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. */ fetch(keywordArgs: Object): any; /** * Returns an array with all the attributes that this item has. This * method will always return an array; if the item has no attributes * at all, getAttributes() will return an empty array: []. - * - * @param item The item to access attributes on. + * + * @param item The item to access attributes on. */ getAttributes(item: dojo.data.api.Item): void; /** @@ -13097,7 +13097,7 @@ declare module dojo { * A more sophisticated datastore might implement a variety of * interface features, like 'dojo.data.api.Read', 'dojo/data/api/Write', * 'dojo.data.api.Identity', and 'dojo/data/api/Attribution'. - * + * */ getFeatures(): Object; /** @@ -13113,8 +13113,8 @@ declare module dojo { * to customize how a store instance labels items should replace the getLabel() function on * their instance of the store, or extend the store and replace the function in * the extension class. - * - * @param item The item to return the label for. + * + * @param item The item to return the label for. */ getLabel(item: dojo.data.api.Item): any; /** @@ -13125,8 +13125,8 @@ declare module dojo { * attributes can be ignored out of the attributes an item has when displaying it, in cases * where the UI is using the label as an overall identifer should they wish to hide * redundant information. - * - * @param item The item to return the list of label attributes for. + * + * @param item The item to return the list of label attributes for. */ getLabelAttributes(item: dojo.data.api.Item): any; /** @@ -13141,10 +13141,10 @@ declare module dojo { * or "the item has that attribute but does not have any attribute values". * If store.hasAttribute(item, attribute) returns false, then * store.getValue(item, attribute) will return undefined. - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. - * @param defaultValue OptionalOptional. A default value to use for the getValue return in the attribute does not exist or has no value. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. + * @param defaultValue OptionalOptional. A default value to use for the getValue return in the attribute does not exist or has no value. */ getValue(item: dojo.data.api.Item, attribute: String, defaultValue?: any): any; /** @@ -13155,24 +13155,24 @@ declare module dojo { * If the item does not have a value for the given attribute, then getValues() * will return an empty array: []. (So, if store.hasAttribute(item, attribute) * has a return of false, then store.getValues(item, attribute) will return [].) - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. */ getValues(item: dojo.data.api.Item, attribute: String): any; /** * Returns true if the given item has a value for the given attribute. - * - * @param item The item to access attributes on. - * @param attribute The attribute to access represented as a string. + * + * @param item The item to access attributes on. + * @param attribute The attribute to access represented as a string. */ hasAttribute(item: dojo.data.api.Item, attribute: String): void; /** * Returns true if something is an item and came from the store instance. * Returns false if something is a literal, an item from another store instance, * or is any object other than an item. - * - * @param something Can be anything. + * + * @param something Can be anything. */ isItem(something: any): void; /** @@ -13180,8 +13180,8 @@ declare module dojo { * if isItem(something) is true but the the item is not yet loaded * in local memory (for example, if the item has not yet been read * from the server). - * - * @param something Can be anything. + * + * @param something Can be anything. */ isItemLoaded(something: any): void; /** @@ -13191,8 +13191,8 @@ declare module dojo { * then loadItem() need not do any work at all and will not even invoke * the callback handlers. So, before invoking this method, check that * the item has not already been loaded. - * - * @param keywordArgs An anonymous object that defines the item to load and callbacks to invoke when theload has completed. The format of the object is as follows:{ item: object, onItem: Function, onError: Function, scope: object}The item parameterThe item parameter is an object that represents the item in question that should becontained by the store. This attribute is required.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the fully loaded item.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request) + * + * @param keywordArgs An anonymous object that defines the item to load and callbacks to invoke when theload has completed. The format of the object is as follows:{ item: object, onItem: Function, onError: Function, scope: object}The item parameterThe item parameter is an object that represents the item in question that should becontained by the store. This attribute is required.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the fully loaded item.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request) */ loadItem(keywordArgs: Object): void; } @@ -13202,7 +13202,7 @@ declare module dojo { * This is an abstract API that data provider implementations conform to. * This file defines function signatures and intentionally leaves all the * functions unimplemented. - * + * */ class Write extends dojo.data.api.Read { constructor(); @@ -13215,8 +13215,8 @@ declare module dojo { * It will then close out anything associated with that request, such as * clearing any internal datastore caches and closing any 'open' connections. * For some store implementations, this call may be a no-op. - * - * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. + * + * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. */ close(request?: dojo.data.api.Request ): void; /** @@ -13228,23 +13228,23 @@ declare module dojo { * It will then close out anything associated with that request, such as * clearing any internal datastore caches and closing any 'open' connections. * For some store implementations, this call may be a no-op. - * - * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. + * + * @param request OptionalAn instance of a request for the store to use to identify what to close out.If no request is passed, then the store should clear all internal caches (if any)and close out all 'open' connections. It does not render the store unusable fromthere on, it merely cleans out any current data and resets the store to initialstate. */ close(request?: Object): void; /** * Returns true if the given value is one of the values that getValues() * would return. - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. - * @param value The value to match as a value for the attribute. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. + * @param value The value to match as a value for the attribute. */ containsValue(item: dojo.data.api.Item, attribute: String, value: any): void; /** * Deletes an item from the store. - * - * @param item The item to delete. + * + * @param item The item to delete. */ deleteItem(item: dojo.data.api.Item): void; /** @@ -13257,25 +13257,25 @@ declare module dojo { * an additional function attached, abort(). The returned request object may then be used * to cancel a fetch. All data items returns are passed through the callbacks defined in the * fetch parameters and are not present on the 'request' object. - * + * * This does not mean that custom stores can not add methods and properties to the request object * returned, only that the API does not require it. For more info about the Request API, * see dojo/data/api/Request - * - * @param keywordArgs The keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. + * + * @param keywordArgs The keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. */ fetch(keywordArgs: Object): any; /** * Returns an array with all the attributes that this item has. This * method will always return an array; if the item has no attributes * at all, getAttributes() will return an empty array: []. - * - * @param item The item to access attributes on. + * + * @param item The item to access attributes on. */ getAttributes(item: dojo.data.api.Item): void; /** * See dojo/data/api/Read.getFeatures() - * + * */ getFeatures(): Object; /** @@ -13291,8 +13291,8 @@ declare module dojo { * to customize how a store instance labels items should replace the getLabel() function on * their instance of the store, or extend the store and replace the function in * the extension class. - * - * @param item The item to return the label for. + * + * @param item The item to return the label for. */ getLabel(item: dojo.data.api.Item): any; /** @@ -13303,8 +13303,8 @@ declare module dojo { * attributes can be ignored out of the attributes an item has when displaying it, in cases * where the UI is using the label as an overall identifer should they wish to hide * redundant information. - * - * @param item The item to return the list of label attributes for. + * + * @param item The item to return the list of label attributes for. */ getLabelAttributes(item: dojo.data.api.Item): any; /** @@ -13319,10 +13319,10 @@ declare module dojo { * or "the item has that attribute but does not have any attribute values". * If store.hasAttribute(item, attribute) returns false, then * store.getValue(item, attribute) will return undefined. - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. - * @param defaultValue OptionalOptional. A default value to use for the getValue return in the attribute does not exist or has no value. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. + * @param defaultValue OptionalOptional. A default value to use for the getValue return in the attribute does not exist or has no value. */ getValue(item: dojo.data.api.Item, attribute: String, defaultValue?: any): any; /** @@ -13333,16 +13333,16 @@ declare module dojo { * If the item does not have a value for the given attribute, then getValues() * will return an empty array: []. (So, if store.hasAttribute(item, attribute) * has a return of false, then store.getValues(item, attribute) will return [].) - * - * @param item The item to access values on. - * @param attribute The attribute to access represented as a string. + * + * @param item The item to access values on. + * @param attribute The attribute to access represented as a string. */ getValues(item: dojo.data.api.Item, attribute: String): any; /** * Returns true if the given item has a value for the given attribute. - * - * @param item The item to access attributes on. - * @param attribute The attribute to access represented as a string. + * + * @param item The item to access attributes on. + * @param attribute The attribute to access represented as a string. */ hasAttribute(item: dojo.data.api.Item, attribute: String): void; /** @@ -13350,16 +13350,16 @@ declare module dojo { * since the last save(). If isDirty() is called with no item argument, * then this function returns true if any item has been modified since * the last save(). - * - * @param item OptionalThe item to check. + * + * @param item OptionalThe item to check. */ isDirty(item?: any): void; /** * Returns true if something is an item and came from the store instance. * Returns false if something is a literal, an item from another store instance, * or is any object other than an item. - * - * @param something Can be anything. + * + * @param something Can be anything. */ isItem(something: any): void; /** @@ -13367,8 +13367,8 @@ declare module dojo { * if isItem(something) is true but the the item is not yet loaded * in local memory (for example, if the item has not yet been read * from the server). - * - * @param something Can be anything. + * + * @param something Can be anything. */ isItemLoaded(something: any): void; /** @@ -13378,8 +13378,8 @@ declare module dojo { * then loadItem() need not do any work at all and will not even invoke * the callback handlers. So, before invoking this method, check that * the item has not already been loaded. - * - * @param keywordArgs An anonymous object that defines the item to load and callbacks to invoke when theload has completed. The format of the object is as follows:{ item: object, onItem: Function, onError: Function, scope: object}The item parameterThe item parameter is an object that represents the item in question that should becontained by the store. This attribute is required.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the fully loaded item.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request) + * + * @param keywordArgs An anonymous object that defines the item to load and callbacks to invoke when theload has completed. The format of the object is as follows:{ item: object, onItem: Function, onError: Function, scope: object}The item parameterThe item parameter is an object that represents the item in question that should becontained by the store. This attribute is required.The onItem parameterFunction(item)The onItem parameter is the callback to invoke when the item has been loaded. It takes only oneparameter, the fully loaded item.The onError parameterFunction(error)The onError parameter is the callback to invoke when the item load encountered an error. It takes only oneparameter, the error objectThe scope parameterIf a scope object is provided, all of the callback functions (onItem,onError, etc) will be invoked in the context of the scope object.In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request) */ loadItem(keywordArgs: Object): void; /** @@ -13392,15 +13392,15 @@ declare module dojo { * of the new item and what attribute of that item should the new item be assigned to. * In general, this will assume that the attribute targeted is multi-valued and a new item * is appended onto the list of values for that attribute. - * - * @param keywordArgs OptionalA javascript object defining the initial content of the item as a set of JavaScript 'property name: value' pairs. - * @param parentInfo OptionalAn optional javascript object defining what item is the parent of this item (in a hierarchical store. Not all stores do hierarchical items),and what attribute of that parent to assign the new item to. If this is present, and the attribute specifiedis a multi-valued attribute, it will append this item into the array of values for that attribute. The structureof the object is as follows:{ parent: someItem, attribute: "attribute-name-string"} + * + * @param keywordArgs OptionalA javascript object defining the initial content of the item as a set of JavaScript 'property name: value' pairs. + * @param parentInfo OptionalAn optional javascript object defining what item is the parent of this item (in a hierarchical store. Not all stores do hierarchical items),and what attribute of that parent to assign the new item to. If this is present, and the attribute specifiedis a multi-valued attribute, it will append this item into the array of values for that attribute. The structureof the object is as follows:{ parent: someItem, attribute: "attribute-name-string"} */ newItem(keywordArgs?: Object, parentInfo?: Object): void; /** * Discards any unsaved changes. * Discards any unsaved changes. - * + * */ revert(): void; /** @@ -13408,17 +13408,17 @@ declare module dojo { * The save operation may take some time and is generally performed * in an asynchronous fashion. The outcome of the save action is * is passed into the set of supported callbacks for the save. - * - * @param keywordArgs { onComplete: function onError: function scope: object} ####The *onComplete* parameter. function(); If an onComplete callback function is provided, the callback function will be called just once, after the save has completed. No parameters are generally passed to the onComplete. ####The *onError* parameter. function(errorData); If an onError callback function is provided, the callback function will be called if there is any sort of error while attempting to execute the save. The onError function will be based one parameter, the error. ####The *scope* parameter. If a scope object is provided, all of the callback function ( onComplete, onError, etc) will be invoked in the context of the scope object. In the body of the callback function, the value of the "this" keyword will be the scope object. If no scope object is provided, the callback functions will be called in the context of dojo.global. For example, onComplete.call(scope) vs. onComplete.call(dojo.global) + * + * @param keywordArgs { onComplete: function onError: function scope: object} ####The *onComplete* parameter. function(); If an onComplete callback function is provided, the callback function will be called just once, after the save has completed. No parameters are generally passed to the onComplete. ####The *onError* parameter. function(errorData); If an onError callback function is provided, the callback function will be called if there is any sort of error while attempting to execute the save. The onError function will be based one parameter, the error. ####The *scope* parameter. If a scope object is provided, all of the callback function ( onComplete, onError, etc) will be invoked in the context of the scope object. In the body of the callback function, the value of the "this" keyword will be the scope object. If no scope object is provided, the callback functions will be called in the context of dojo.global. For example, onComplete.call(scope) vs. onComplete.call(dojo.global) */ save(keywordArgs: Object): any; /** * Sets the value of an attribute on an item. * Replaces any previous value or values. - * - * @param item The item to modify. - * @param attribute The attribute of the item to change represented as a string name. - * @param value The value to assign to the item. + * + * @param item The item to modify. + * @param attribute The attribute of the item to change represented as a string name. + * @param value The value to assign to the item. */ setValue(item: dojo.data.api.Item, attribute: String, value: any): void; /** @@ -13427,57 +13427,57 @@ declare module dojo { * Replaces any previous value or values. * Calling store.setValues(x, y, []) (with values as an empty array) has * the same effect as calling store.unsetAttribute(x, y). - * - * @param item The item to modify. - * @param attribute The attribute of the item to change represented as a string name. - * @param values An array of values to assign to the attribute.. + * + * @param item The item to modify. + * @param attribute The attribute of the item to change represented as a string name. + * @param values An array of values to assign to the attribute.. */ setValues(item: dojo.data.api.Item, attribute: String, values: any[]): void; /** * Deletes all the values of an attribute on an item. - * - * @param item The item to modify. - * @param attribute The attribute of the item to unset represented as a string. + * + * @param item The item to modify. + * @param attribute The attribute of the item to unset represented as a string. */ unsetAttribute(item: dojo.data.api.Item, attribute: String): void; } } - module util { + namespace util { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/util/filter.html * - * + * */ interface filter { /** * Helper function to convert a simple pattern to a regular expression for matching. * Returns a regular expression object that conforms to the defined conversion rules. * For example: - * + * * ca -> /^ca.$/ * ca -> /^.ca.$/ * c\a -> /^.c*a.*$/ * c\a? -> /^.c*a..*$/ * and so on. - * - * @param pattern A simple matching pattern to convert that follows basic rules:Means match anything, so ca* means match anything starting with ca? Means match single character. So, b?b will match to bob and bab, and so on.\ is an escape character. So for example, * means do not treat as a match, but literal character .To use a \ as a character in the string, it must be escaped. So in the pattern it should berepresented by \ to be treated as an ordinary \ character instead of an escape. - * @param ignoreCase OptionalAn optional flag to indicate if the pattern matching should be treated as case-sensitive or not when comparingBy default, it is assumed case sensitive. + * + * @param pattern A simple matching pattern to convert that follows basic rules:Means match anything, so ca* means match anything starting with ca? Means match single character. So, b?b will match to bob and bab, and so on.\ is an escape character. So for example, * means do not treat as a match, but literal character .To use a \ as a character in the string, it must be escaped. So in the pattern it should berepresented by \ to be treated as an ordinary \ character instead of an escape. + * @param ignoreCase OptionalAn optional flag to indicate if the pattern matching should be treated as case-sensitive or not when comparingBy default, it is assumed case sensitive. */ patternToRegExp(pattern: String, ignoreCase?: boolean): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/util/simpleFetch.html * - * + * */ interface simpleFetch { /** * The error handler when there is an error fetching items. This function should not be called * directly and is used by simpleFetch.fetch(). - * - * @param errorData - * @param requestObject + * + * @param errorData + * @param requestObject */ errorHandler(errorData: Object, requestObject: Object): void; /** @@ -13504,25 +13504,25 @@ declare module dojo { * or, the _fetchItems() method may, if it wants to, create an new request object * with other specifics about the request that are specific to the datastore and pass * that as the request object to the handler. - * + * * For more information on this specific function, see dojo/data/api/Read.fetch() - * - * @param request OptionalThe keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. + * + * @param request OptionalThe keywordArgs parameter may either be an instance ofconforming to dojo/data/api/Request or may be a simple anonymous objectthat may contain any of the following:{ query: query-object or query-string, queryOptions: object, onBegin: Function, onItem: Function, onComplete: Function, onError: Function, scope: object, start: int count: int sort: array}All implementations should accept keywordArgs objects with any ofthe 9 standard properties: query, onBegin, onItem, onComplete, onErrorscope, sort, start, and count. Some implementations may accept additionalproperties in the keywordArgs object as valid parameters, such as{includeOutliers:true}.The query parameterThe query may be optional in some data store implementations.The dojo/data/api/Read API does not specify the syntax or semanticsof the query itself -- each different data store implementationmay have its own notion of what a query should look like.However, as of dojo 0.9, 1.0, and 1.1, all the provided datastores in dojo.dataand dojox.data support an object structure query, where the object is a set ofname/value parameters such as { attrFoo: valueBar, attrFoo1: valueBar1}. Most of thedijit widgets, such as ComboBox assume this to be the case when working with a datastorewhen they dynamically update the query. Therefore, for maximum compatibility with dijitwidgets the recommended query parameter is a key/value object. That does not mean that thethe datastore may not take alternative query forms, such as a simple string, a Date, a number,or a mix of such. Ultimately, The dojo/data/api/Read API is agnostic about what the queryformat.Further note: In general for query objects that accept strings as attributevalue matches, the store should also support basic filtering capability, such as (match any character) and ? (match single character). An example query that is a query objectwould be like: { attrFoo: "value"}. Which generally means match all items where they havean attribute named attrFoo, with a value that starts with 'value'.The queryOptions parameterThe queryOptions parameter is an optional parameter used to specify options that may modifythe query in some fashion, such as doing a case insensitive search, or doing a deep searchwhere all items in a hierarchical representation of data are scanned instead of just the rootitems. It currently defines two options that all datastores should attempt to honor if possible:{ ignoreCase: boolean, // Whether or not the query should match case sensitively or not. Default behaviour is false. deep: boolean // Whether or not a fetch should do a deep search of items and all child // items instead of just root-level items in a datastore. Default is false.}The onBegin parameter.function(size, request);If an onBegin callback function is provided, the callback functionwill be called just once, before the first onItem callback is called.The onBegin callback function will be passed two arguments, thethe total number of items identified and the Request object. If the total number isunknown, then size will be -1. Note that size is not necessarily the size of thecollection of items returned from the query, as the request may have specified to return only asubset of the total set of items through the use of the start and count parameters.The onItem parameter.function(item, request);If an onItem callback function is provided, the callback functionwill be called as each item in the result is received. The callbackfunction will be passed two arguments: the item itself, and theRequest object.The onComplete parameter.function(items, request);If an onComplete callback function is provided, the callback functionwill be called just once, after the last onItem callback is called.Note that if the onItem callback is not present, then onComplete will be passedan array containing all items which matched the query and the request object.If the onItem callback is present, then onComplete is called as:onComplete(null, request).The onError parameter.function(errorData, request);If an onError callback function is provided, the callback functionwill be called if there is any sort of error while attempting toexecute the query.The onError callback function will be passed two arguments:an Error object and the Request object.The scope parameter.If a scope object is provided, all of the callback functions (onItem,onComplete, onError, etc) will be invoked in the context of the scopeobject. In the body of the callback function, the value of the "this"keyword will be the scope object. If no scope object is provided,the callback functions will be called in the context of dojo.global().For example, onItem.call(scope, item, request) vs.onItem.call(dojo.global(), item, request)The start parameter.If a start parameter is specified, this is a indication to the datastore toonly start returning items once the start number of items have been located andskipped. When this parameter is paired with 'count', the store should be ableto page across queries with millions of hits by only returning subsets of thehits for each queryThe count parameter.If a count parameter is specified, this is a indication to the datastore toonly return up to that many items. This allows a fetch call that may havemillions of item matches to be paired down to something reasonable.The sort parameter.If a sort parameter is specified, this is a indication to the datastore tosort the items in some manner before returning the items. The array is an array ofjavascript objects that must conform to the following format to be applied to thefetching of items:{ attribute: attribute || attribute-name-string, descending: true|false; // Optional. Default is false.}Note that when comparing attributes, if an item contains no value for the attribute(undefined), then it the default ascending sort logic should push it to the bottomof the list. In the descending order case, it such items should appear at the top of the list. */ fetch(request: Object): void; /** * The handler when items are sucessfully fetched. This function should not be called directly * and is used by simpleFetch.fetch(). - * - * @param items - * @param requestObject + * + * @param items + * @param requestObject */ fetchHandler(items: any[], requestObject: Object): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/data/util/sorter.html * - * + * */ interface sorter { /** @@ -13530,9 +13530,9 @@ declare module dojo { * returns 1 if a > b, -1 if a < b, 0 if equal. * 'null' values (null, undefined) are treated as larger values so that they're pushed to the end of the list. * And compared to each other, null is equivalent to undefined. - * - * @param a - * @param b + * + * @param a + * @param b */ basicComparator(a: any, b: any): number; /** @@ -13541,9 +13541,9 @@ declare module dojo { * it will look in the mapping for comparisons function for the attributes. If one is found, it will * use it instead of the basic comparator, which is typically used for strings, ints, booleans, and dates. * Returns the sorting function for this particular list of attributes and sorting directions. - * - * @param sortSpec A JS object that array that defines out what attribute names to sort on and whether it should be descenting or asending.The objects should be formatted as follows:{ attribute: "attributeName-string" || attribute, descending: true|false; // Default is false.} - * @param store The datastore object to look up item values from. + * + * @param sortSpec A JS object that array that defines out what attribute names to sort on and whether it should be descenting or asending.The objects should be formatted as follows:{ attribute: "attributeName-string" || attribute, descending: true|false; // Default is false.} + * @param store The datastore object to look up item values from. */ createSortFunction(sortSpec: Object, store: dojo.data.api.Read): String[]; } @@ -13551,35 +13551,35 @@ declare module dojo { } - module dnd { + namespace dnd { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Avatar.html * * Object that represents transferred DnD items visually - * - * @param manager + * + * @param manager */ class Avatar { constructor(manager: any); /** * a DnD manager object - * + * */ "manager": Object; /** * constructor function; * it is separate so it can be (dynamically) overwritten in case of need - * + * */ construct(): void; /** * destructor for the avatar; called to remove all references so it can be garbage-collected - * + * */ destroy(): void; /** * updates the avatar to reflect the current DnD state - * + * */ update(): void; } @@ -13587,99 +13587,99 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Manager.html * * the manager of DnD operations (usually a singleton) - * + * */ class Manager extends dojo.Evented { constructor(); /** - * + * */ "OFFSET_X": number; /** - * + * */ "OFFSET_Y": number; /** * called to notify if the current target can accept items - * - * @param flag + * + * @param flag */ canDrop(flag: any): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * makes the avatar; it is separate to be overwritten dynamically, if needed - * + * */ makeAvatar(): any; /** * Returns the current DnD manager. Creates one if it is not created yet. - * + * */ manager(): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * called when a source detected a mouse-out condition - * - * @param source the reporter + * + * @param source the reporter */ outSource(source: Object): void; /** * called when a source detected a mouse-over condition - * - * @param source the reporter + * + * @param source the reporter */ overSource(source: Object): void; /** * called to initiate the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ startDrag(source: Object, nodes: any[], copy: boolean): void; /** * stop the DnD in progress - * + * */ stopDrag(): void; /** * updates the avatar; it is separate to be overwritten dynamically, if needed - * + * */ updateAvatar(): void; /** * event processor for onkeydown: * watching for CTRL for copy/move status, watching for ESCAPE to cancel the drag - * - * @param e keyboard event + * + * @param e keyboard event */ onKeyDown(e: Event): void; /** * event processor for onkeyup, watching for CTRL for copy/move status - * - * @param e keyboard event + * + * @param e keyboard event */ onKeyUp(e: Event): void; /** * event processor for onmousemove - * - * @param e mouse event + * + * @param e mouse event */ onMouseMove(e: Event): void; /** * event processor for onmouseup - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; } @@ -13688,9 +13688,9 @@ declare module dojo { * * a Container object, which knows when mouse hovers over it, * and over which element it hovers - * - * @param node node or node's id to build the container on - * @param params a dictionary of parameters + * + * @param node node or node's id to build the container on + * @param params a dictionary of parameters */ class Container extends dojo.Evented { constructor(node: HTMLElement, params: Object); @@ -13698,168 +13698,168 @@ declare module dojo { * Indicates whether to allow dnd item nodes to be nested within other elements. * By default this is false, indicating that only direct children of the container can * be draggable dnd item nodes - * + * */ "allowNested": boolean; /** * The DOM node the mouse is currently hovered over - * + * */ "current": HTMLElement; /** * Map from an item's id (which is also the DOMNode's id) to * the dojo/dnd/Container.Item itself. - * + * */ "map": Object; node: HTMLElement; /** - * + * */ "skipForm": boolean; /** * removes all data items from the map - * + * */ clearItems(): void; /** * creator function, dummy at the moment - * + * */ creator(): void; /** * removes a data item from the map by its key (id) - * - * @param key + * + * @param key */ delItem(key: String): void; /** * prepares this object to be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * iterates over a data map skipping members that * are present in the empty object (IE and/or 3rd-party libraries). - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInItems(f: Function, o: Object): String; /** * returns a list (an array) of all valid child nodes - * + * */ getAllNodes(): any; /** * returns a data item by its key (id) - * - * @param key + * + * @param key */ getItem(key: String): any; /** * inserts an array of new nodes before/after an anchor node - * - * @param data Logical representation of the object being dragged.If the drag object's type is "text" then data is a String,if it's another type then data could be a different Object,perhaps a name/value hash. - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion + * + * @param data Logical representation of the object being dragged.If the drag object's type is "text" then data is a String,if it's another type then data could be a different Object,perhaps a name/value hash. + * @param before insert before the anchor, if true, and after the anchor otherwise + * @param anchor the anchor node to be used as a point of insertion */ insertNodes(addSelected?: boolean, data?: any[], before?: boolean, anchor?: HTMLElement): Function; /** * Represents (one of) the source node(s) being dragged. * Contains (at least) the "type" and "data" attributes. - * + * */ Item(): void; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * associates a data item with its key (id) - * - * @param key - * @param data + * + * @param key + * @param data */ setItem(key: String, data: any): void; /** * collects valid child items and populate the map - * + * */ startup(): void; /** * sync up the node list with the data map - * + * */ sync(): Function; /** * event processor for onmouseout - * - * @param e mouse event + * + * @param e mouse event */ onMouseOut(e: Event): void; /** * event processor for onmouseover or touch, to mark that element as the current element - * - * @param e mouse event + * + * @param e mouse event */ onMouseOver(e: Event): void; /** * this function is called once, when mouse is out of our container - * + * */ onOutEvent(): void; /** * this function is called once, when mouse is over our container - * + * */ onOverEvent(): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } - module Container { + namespace Container { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Container.__ContainerArgs.html * - * + * */ class __ContainerArgs { constructor(); /** * node or node's id to use as the parent node for dropped items * (must be underneath the 'node' parameter in the DOM) - * + * */ "dropParent": HTMLElement; /** * don't start the drag operation, if clicked on form elements - * + * */ "skipForm": boolean; /** * a creator function, which takes a data item, and returns an object like that: * {node: newNode, data: usedData, type: arrayOfStrings} - * + * */ creator(): void; @@ -13871,323 +13871,323 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/AutoSource.html * * a source that syncs its DnD nodes by default - * - * @param node - * @param params + * + * @param node + * @param params */ class AutoSource extends dojo.dnd.Source { constructor(node: any, params: any); /** - * + * */ "accept": any[]; /** * Indicates whether to allow dnd item nodes to be nested within other elements. * By default this is false, indicating that only direct children of the container can * be draggable dnd item nodes - * + * */ "allowNested": boolean; /** - * + * */ "autoSync": boolean; /** - * + * */ "copyOnly": boolean; /** * The DOM node the mouse is currently hovered over - * + * */ "current": HTMLElement; /** - * + * */ "delay": number; /** - * + * */ "generateText": boolean; /** - * + * */ "horizontal": boolean; /** - * + * */ "isSource": boolean; /** * Map from an item's id (which is also the DOMNode's id) to * the dojo/dnd/Container.Item itself. - * + * */ "map": Object; /** * The set of id's that are currently selected, such that this.selection[id] == 1 * if the node w/that id is selected. Can iterate over selected node's id's like: - * + * * for(var id in this.selection) - * + * */ "selection": Object; /** - * + * */ "selfAccept": boolean; /** - * + * */ "selfCopy": boolean; /** - * + * */ "singular": boolean; /** - * + * */ "skipForm": boolean; /** - * + * */ "withHandles": boolean; /** * checks if the target can accept nodes from this source - * - * @param source the source which provides items - * @param nodes the list of transferred items + * + * @param source the source which provides items + * @param nodes the list of transferred items */ checkAcceptance(source: Object, nodes: any[]): boolean; /** * removes all data items from the map - * + * */ clearItems(): void; /** * Returns true if we need to copy items, false to move. * It is separated to be overwritten dynamically, if needed. - * - * @param keyPressed the "copy" key was pressed - * @param self Optionaloptional flag that means that we are about to drop on itself + * + * @param keyPressed the "copy" key was pressed + * @param self Optionaloptional flag that means that we are about to drop on itself */ copyState(keyPressed: boolean, self?: boolean): any; /** * creator function, dummy at the moment - * + * */ creator(): void; /** * deletes all selected items - * + * */ deleteSelectedNodes(): Function; /** * removes a data item from the map by its key (id) - * - * @param key + * + * @param key */ delItem(key: String): void; /** * prepares the object to be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * iterates over a data map skipping members that * are present in the empty object (IE and/or 3rd-party libraries). - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInItems(f: Function, o?: Object): String; /** * iterates over selected items; * see dojo/dnd/Container.forInItems() for details - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInSelectedItems(f: Function, o?: Object): void; /** * returns a list (an array) of all valid child nodes - * + * */ getAllNodes(): any; /** * returns a data item by its key (id) - * - * @param key + * + * @param key */ getItem(key: String): any; /** * returns a list (an array) of selected nodes - * + * */ getSelectedNodes(): any; /** * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) - * - * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise - * @param data a list of data items, which should be processed by the creator function - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion + * + * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise + * @param data a list of data items, which should be processed by the creator function + * @param before insert before the anchor, if true, and after the anchor otherwise + * @param anchor the anchor node to be used as a point of insertion */ insertNodes(addSelected: boolean, data: any[], before: boolean, anchor: HTMLElement): Function; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * selects all items - * + * */ selectAll(): any; /** * unselects all items - * + * */ selectNone(): any; /** * associates a data item with its key (id) - * - * @param key - * @param data + * + * @param key + * @param data */ setItem(key: String, data: any): void; /** * collects valid child items and populate the map - * + * */ startup(): void; /** * sync up the node list with the data map - * + * */ sync(): Function; /** * topic event processor for /dnd/cancel, called to cancel the DnD operation - * + * */ onDndCancel(): void; /** * topic event processor for /dnd/drop, called to finish the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - * @param target the target which accepts items + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + * @param target the target which accepts items */ onDndDrop(source: Object, nodes: any[], copy: boolean, target: Object): void; /** * topic event processor for /dnd/source/over, called when detected a current source - * - * @param source the source which has the mouse over it + * + * @param source the source which has the mouse over it */ onDndSourceOver(source: Object): void; /** * topic event processor for /dnd/start, called to initiate the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDndStart(source: Object, nodes: any[], copy: boolean): void; /** * called during the active DnD operation, when items * are dragged away from this target, and it is not disabled - * + * */ onDraggingOut(): void; /** * called during the active DnD operation, when items * are dragged over this target, and it is not disabled - * + * */ onDraggingOver(): void; /** * called only on the current target, when drop is performed - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDrop(source: Object, nodes: any[], copy: boolean): void; /** * called only on the current target, when drop is performed * from an external source - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDropExternal(source: Object, nodes: any[], copy: boolean): void; /** * called only on the current target, when drop is performed * from the same target/source - * - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDropInternal(nodes: any[], copy: boolean): void; /** * event processor for onmousedown - * - * @param e mouse event + * + * @param e mouse event */ onMouseDown(e: Event): void; /** * event processor for onmousemove - * - * @param e mouse event + * + * @param e mouse event */ onMouseMove(e: Event): void; /** * event processor for onmouseout - * - * @param e mouse event + * + * @param e mouse event */ onMouseOut(e: Event): void; /** * event processor for onmouseover or touch, to mark that element as the current element - * - * @param e mouse event + * + * @param e mouse event */ onMouseOver(e: Event): void; /** * event processor for onmouseup - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** * this function is called once, when mouse is out of our container - * + * */ onOutEvent(): void; /** * this function is called once, when mouse is over our container - * + * */ onOverEvent(): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } @@ -14196,46 +14196,46 @@ declare module dojo { * * an object which makes a node follow the mouse, or touch-drag on touch devices. * Used as a default mover, and as a base class for custom movers. - * - * @param node a node (or node's id) to be moved - * @param e a mouse event, which started the move;only pageX and pageY properties are used - * @param host Optionalobject which implements the functionality of the move,and defines proper events (onMoveStart and onMoveStop) + * + * @param node a node (or node's id) to be moved + * @param e a mouse event, which started the move;only pageX and pageY properties are used + * @param host Optionalobject which implements the functionality of the move,and defines proper events (onMoveStart and onMoveStop) */ class Mover extends dojo.Evented { constructor(node: HTMLElement, e: Event, host?: Object); /** * stops the move, deletes all references, so the object can be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * makes the node absolute; it is meant to be called only once. * relative and absolutely positioned nodes are assumed to use pixel units - * - * @param e + * + * @param e */ onFirstMove(e: any): void; /** * event processor for onmousemove/ontouchmove - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseMove(e: Event): void; /** - * - * @param e + * + * @param e */ onMouseUp(e: any): void; } @@ -14243,150 +14243,150 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Moveable.html * * an object, which makes a node movable - * - * @param node a node (or node's id) to be moved - * @param params Optionaloptional parameters + * + * @param node a node (or node's id) to be moved + * @param params Optionaloptional parameters */ class Moveable extends dojo.Evented { constructor(node: HTMLElement, params?: Object); /** - * + * */ "delay": number; /** - * + * */ "handle": string; /** - * + * */ "skip": boolean; /** * stops watching for possible move, deletes all references, so the object can be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * called when the drag is detected; * responsible for creation of the mover - * - * @param e + * + * @param e */ onDragDetected(e: Event): void; /** * called during the very first move notification; * can be used to initialize coordinates, can be overwritten. - * - * @param mover - * @param e + * + * @param mover + * @param e */ onFirstMove(mover: dojo.dnd.Mover, e: Event): void; /** * event processor for onmousedown/ontouchstart, creates a Mover for the node - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseDown(e: Event): void; /** * event processor for onmousemove/ontouchmove, used only for delayed drags - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseMove(e: Event): void; /** * event processor for onmouseup, used only for delayed drags - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** * called during every move notification; * should actually move the node; can be overwritten. - * - * @param mover - * @param leftTop - * @param e + * + * @param mover + * @param leftTop + * @param e */ onMove(mover: dojo.dnd.Mover, leftTop: Object, e: Event): void; /** * called after every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoved(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called before every move operation - * - * @param mover + * + * @param mover */ onMoveStart(mover: dojo.dnd.Mover): void; /** * called after every move operation - * - * @param mover + * + * @param mover */ onMoveStop(mover: dojo.dnd.Mover): void; /** * called before every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoving(mover: dojo.dnd.Mover, leftTop: Object): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } - module Moveable { + namespace Moveable { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Moveable.__MoveableArgs.html * - * + * */ class __MoveableArgs { constructor(); /** * delay move by this number of pixels - * + * */ "delay": number; /** * A node (or node's id), which is used as a mouse handle. * If omitted, the node itself is used as a handle. - * + * */ "handle": HTMLElement; /** * a constructor of custom Mover - * + * */ "mover": Object; /** * skip move of form elements - * + * */ "skip": boolean; } @@ -14396,9 +14396,9 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Selector.html * * a Selector object, which knows how to select its children - * - * @param node node or node's id to build the selector on - * @param params Optionala dictionary of parameters + * + * @param node node or node's id to build the selector on + * @param params Optionala dictionary of parameters */ class Selector extends dojo.dnd.Container { constructor(node: HTMLElement, params?: Object); @@ -14406,193 +14406,193 @@ declare module dojo { * Indicates whether to allow dnd item nodes to be nested within other elements. * By default this is false, indicating that only direct children of the container can * be draggable dnd item nodes - * + * */ "allowNested": boolean; /** * The DOM node the mouse is currently hovered over - * + * */ "current": HTMLElement; /** * Map from an item's id (which is also the DOMNode's id) to * the dojo/dnd/Container.Item itself. - * + * */ "map": Object; /** * The set of id's that are currently selected, such that this.selection[id] == 1 * if the node w/that id is selected. Can iterate over selected node's id's like: - * + * * for(var id in this.selection) - * + * */ "selection": Object; /** - * + * */ "singular": boolean; /** - * + * */ "skipForm": boolean; /** * removes all data items from the map - * + * */ clearItems(): void; /** * creator function, dummy at the moment - * + * */ creator(): void; /** * deletes all selected items - * + * */ deleteSelectedNodes(): Function; /** * removes a data item from the map by its key (id) - * - * @param key + * + * @param key */ delItem(key: String): void; /** * prepares the object to be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * iterates over a data map skipping members that * are present in the empty object (IE and/or 3rd-party libraries). - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInItems(f: Function, o?: Object): String; /** * iterates over selected items; * see dojo/dnd/Container.forInItems() for details - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInSelectedItems(f: Function, o?: Object): void; /** * returns a list (an array) of all valid child nodes - * + * */ getAllNodes(): any; /** * returns a data item by its key (id) - * - * @param key + * + * @param key */ getItem(key: String): any; /** * returns a list (an array) of selected nodes - * + * */ getSelectedNodes(): any; /** * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) - * - * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise - * @param data a list of data items, which should be processed by the creator function - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion + * + * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise + * @param data a list of data items, which should be processed by the creator function + * @param before insert before the anchor, if true, and after the anchor otherwise + * @param anchor the anchor node to be used as a point of insertion */ insertNodes(addSelected?: boolean, data?: any[], before?: boolean, anchor?: HTMLElement): Function; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * selects all items - * + * */ selectAll(): any; /** * unselects all items - * + * */ selectNone(): any; /** * associates a data item with its key (id) - * - * @param key - * @param data + * + * @param key + * @param data */ setItem(key: String, data: any): void; /** * collects valid child items and populate the map - * + * */ startup(): void; /** * sync up the node list with the data map - * + * */ sync(): Function; /** * event processor for onmousedown - * - * @param e mouse event + * + * @param e mouse event */ onMouseDown(e: Event): void; /** * event processor for onmousemove - * - * @param e mouse event + * + * @param e mouse event */ onMouseMove(e: Event): void; /** * event processor for onmouseout - * - * @param e mouse event + * + * @param e mouse event */ onMouseOut(e: Event): void; /** * event processor for onmouseover or touch, to mark that element as the current element - * - * @param e mouse event + * + * @param e mouse event */ onMouseOver(e: Event): void; /** * event processor for onmouseup - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** * this function is called once, when mouse is out of our container - * + * */ onOutEvent(): void; /** * this function is called once, when mouse is over our container - * + * */ onOverEvent(): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } @@ -14603,120 +14603,120 @@ declare module dojo { * This class puts an upper restriction on FPS, which may reduce * the CPU load. The additional parameter "timeout" regulates * the delay before actually moving the moveable object. - * - * @param node a node (or node's id) to be moved - * @param params object with additional parameters. + * + * @param node a node (or node's id) to be moved + * @param params object with additional parameters. */ class TimedMoveable extends dojo.dnd.Moveable { constructor(node: HTMLElement, params: Object); /** - * + * */ "delay": number; /** - * + * */ "handle": string; /** - * + * */ "skip": boolean; /** - * + * */ "timeout": number; /** * stops watching for possible move, deletes all references, so the object can be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * called when the drag is detected; * responsible for creation of the mover - * - * @param e + * + * @param e */ onDragDetected(e: Event): void; /** * called during the very first move notification; * can be used to initialize coordinates, can be overwritten. - * - * @param mover - * @param e + * + * @param mover + * @param e */ onFirstMove(mover: dojo.dnd.Mover, e: Event): void; /** * event processor for onmousedown/ontouchstart, creates a Mover for the node - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseDown(e: Event): void; /** * event processor for onmousemove/ontouchmove, used only for delayed drags - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseMove(e: Event): void; /** * event processor for onmouseup, used only for delayed drags - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMove(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called after every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoved(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called before every move operation - * - * @param mover + * + * @param mover */ onMoveStart(mover: dojo.dnd.Mover): void; /** - * - * @param mover + * + * @param mover */ onMoveStop(mover: dojo.dnd.Mover): void; /** * called before every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoving(mover: dojo.dnd.Mover, leftTop: Object): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } @@ -14724,323 +14724,323 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Target.html * * a Target object, which can be used as a DnD target - * - * @param node - * @param params + * + * @param node + * @param params */ class Target extends dojo.dnd.Source { constructor(node: any, params: any); /** - * + * */ "accept": any[]; /** * Indicates whether to allow dnd item nodes to be nested within other elements. * By default this is false, indicating that only direct children of the container can * be draggable dnd item nodes - * + * */ "allowNested": boolean; /** - * + * */ "autoSync": boolean; /** - * + * */ "copyOnly": boolean; /** * The DOM node the mouse is currently hovered over - * + * */ "current": HTMLElement; /** - * + * */ "delay": number; /** - * + * */ "generateText": boolean; /** - * + * */ "horizontal": boolean; /** - * + * */ "isSource": boolean; /** * Map from an item's id (which is also the DOMNode's id) to * the dojo/dnd/Container.Item itself. - * + * */ "map": Object; /** * The set of id's that are currently selected, such that this.selection[id] == 1 * if the node w/that id is selected. Can iterate over selected node's id's like: - * + * * for(var id in this.selection) - * + * */ "selection": Object; /** - * + * */ "selfAccept": boolean; /** - * + * */ "selfCopy": boolean; /** - * + * */ "singular": boolean; /** - * + * */ "skipForm": boolean; /** - * + * */ "withHandles": boolean; /** * checks if the target can accept nodes from this source - * - * @param source the source which provides items - * @param nodes the list of transferred items + * + * @param source the source which provides items + * @param nodes the list of transferred items */ checkAcceptance(source: Object, nodes: any[]): boolean; /** * removes all data items from the map - * + * */ clearItems(): void; /** * Returns true if we need to copy items, false to move. * It is separated to be overwritten dynamically, if needed. - * - * @param keyPressed the "copy" key was pressed - * @param self Optionaloptional flag that means that we are about to drop on itself + * + * @param keyPressed the "copy" key was pressed + * @param self Optionaloptional flag that means that we are about to drop on itself */ copyState(keyPressed: boolean, self?: boolean): any; /** * creator function, dummy at the moment - * + * */ creator(): void; /** * deletes all selected items - * + * */ deleteSelectedNodes(): Function; /** * removes a data item from the map by its key (id) - * - * @param key + * + * @param key */ delItem(key: String): void; /** * prepares the object to be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * iterates over a data map skipping members that * are present in the empty object (IE and/or 3rd-party libraries). - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInItems(f: Function, o?: Object): String; /** * iterates over selected items; * see dojo/dnd/Container.forInItems() for details - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInSelectedItems(f: Function, o?: Object): void; /** * returns a list (an array) of all valid child nodes - * + * */ getAllNodes(): any; /** * returns a data item by its key (id) - * - * @param key + * + * @param key */ getItem(key: String): any; /** * returns a list (an array) of selected nodes - * + * */ getSelectedNodes(): any; /** * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) - * - * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise - * @param data a list of data items, which should be processed by the creator function - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion + * + * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise + * @param data a list of data items, which should be processed by the creator function + * @param before insert before the anchor, if true, and after the anchor otherwise + * @param anchor the anchor node to be used as a point of insertion */ insertNodes(addSelected: boolean, data: any[], before?: boolean, anchor?: HTMLElement): Function; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * selects all items - * + * */ selectAll(): any; /** * unselects all items - * + * */ selectNone(): any; /** * associates a data item with its key (id) - * - * @param key - * @param data + * + * @param key + * @param data */ setItem(key: String, data: any): void; /** * collects valid child items and populate the map - * + * */ startup(): void; /** * sync up the node list with the data map - * + * */ sync(): Function; /** * topic event processor for /dnd/cancel, called to cancel the DnD operation - * + * */ onDndCancel(): void; /** * topic event processor for /dnd/drop, called to finish the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - * @param target the target which accepts items + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + * @param target the target which accepts items */ onDndDrop(source: Object, nodes: any[], copy: boolean, target: Object): void; /** * topic event processor for /dnd/source/over, called when detected a current source - * - * @param source the source which has the mouse over it + * + * @param source the source which has the mouse over it */ onDndSourceOver(source: Object): void; /** * topic event processor for /dnd/start, called to initiate the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDndStart(source: Object, nodes: any[], copy: boolean): void; /** * called during the active DnD operation, when items * are dragged away from this target, and it is not disabled - * + * */ onDraggingOut(): void; /** * called during the active DnD operation, when items * are dragged over this target, and it is not disabled - * + * */ onDraggingOver(): void; /** * called only on the current target, when drop is performed - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDrop(source: Object, nodes: any[], copy: boolean): void; /** * called only on the current target, when drop is performed * from an external source - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDropExternal(source: Object, nodes: any[], copy: boolean): void; /** * called only on the current target, when drop is performed * from the same target/source - * - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDropInternal(nodes: any[], copy: boolean): void; /** * event processor for onmousedown - * - * @param e mouse event + * + * @param e mouse event */ onMouseDown(e: Event): void; /** * event processor for onmousemove - * - * @param e mouse event + * + * @param e mouse event */ onMouseMove(e: Event): void; /** * event processor for onmouseout - * - * @param e mouse event + * + * @param e mouse event */ onMouseOut(e: Event): void; /** * event processor for onmouseover or touch, to mark that element as the current element - * - * @param e mouse event + * + * @param e mouse event */ onMouseOver(e: Event): void; /** * event processor for onmouseup - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** * this function is called once, when mouse is out of our container - * + * */ onOutEvent(): void; /** * this function is called once, when mouse is over our container - * + * */ onOverEvent(): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } @@ -15048,323 +15048,323 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/Source.html * * a Source object, which can be used as a DnD source, or a DnD target - * - * @param node node or node's id to build the source on - * @param params Optionalany property of this class may be configured via the paramsobject which is mixed-in to the dojo/dnd/Source instance + * + * @param node node or node's id to build the source on + * @param params Optionalany property of this class may be configured via the paramsobject which is mixed-in to the dojo/dnd/Source instance */ class Source extends dojo.dnd.Selector { constructor(node: HTMLElement, params?: Object); /** - * + * */ "accept": any[]; /** * Indicates whether to allow dnd item nodes to be nested within other elements. * By default this is false, indicating that only direct children of the container can * be draggable dnd item nodes - * + * */ "allowNested": boolean; /** - * + * */ "autoSync": boolean; /** - * + * */ "copyOnly": boolean; /** * The DOM node the mouse is currently hovered over - * + * */ "current": HTMLElement; /** - * + * */ "delay": number; /** - * + * */ "generateText": boolean; /** - * + * */ "horizontal": boolean; /** - * + * */ "isSource": boolean; /** * Map from an item's id (which is also the DOMNode's id) to * the dojo/dnd/Container.Item itself. - * + * */ "map": Object; /** * The set of id's that are currently selected, such that this.selection[id] == 1 * if the node w/that id is selected. Can iterate over selected node's id's like: - * + * * for(var id in this.selection) - * + * */ "selection": Object; /** - * + * */ "selfAccept": boolean; /** - * + * */ "selfCopy": boolean; /** - * + * */ "singular": boolean; /** - * + * */ "skipForm": boolean; /** - * + * */ "withHandles": boolean; /** * checks if the target can accept nodes from this source - * - * @param source the source which provides items - * @param nodes the list of transferred items + * + * @param source the source which provides items + * @param nodes the list of transferred items */ checkAcceptance(source: Object, nodes: any[]): boolean; /** * removes all data items from the map - * + * */ clearItems(): void; /** * Returns true if we need to copy items, false to move. * It is separated to be overwritten dynamically, if needed. - * - * @param keyPressed the "copy" key was pressed - * @param self Optionaloptional flag that means that we are about to drop on itself + * + * @param keyPressed the "copy" key was pressed + * @param self Optionaloptional flag that means that we are about to drop on itself */ copyState(keyPressed: boolean, self?: boolean): any; /** * creator function, dummy at the moment - * + * */ creator(): void; /** * deletes all selected items - * + * */ deleteSelectedNodes(): Function; /** * removes a data item from the map by its key (id) - * - * @param key + * + * @param key */ delItem(key: String): void; /** * prepares the object to be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** * iterates over a data map skipping members that * are present in the empty object (IE and/or 3rd-party libraries). - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInItems(f: Function, o?: Object): String; /** * iterates over selected items; * see dojo/dnd/Container.forInItems() for details - * - * @param f - * @param o Optional + * + * @param f + * @param o Optional */ forInSelectedItems(f: Function, o?: Object): void; /** * returns a list (an array) of all valid child nodes - * + * */ getAllNodes(): any; /** * returns a data item by its key (id) - * - * @param key + * + * @param key */ getItem(key: String): any; /** * returns a list (an array) of selected nodes - * + * */ getSelectedNodes(): any; /** * inserts new data items (see dojo/dnd/Container.insertNodes() method for details) - * - * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise - * @param data a list of data items, which should be processed by the creator function - * @param before insert before the anchor, if true, and after the anchor otherwise - * @param anchor the anchor node to be used as a point of insertion + * + * @param addSelected all new nodes will be added to selected items, if true, no selection change otherwise + * @param data a list of data items, which should be processed by the creator function + * @param before insert before the anchor, if true, and after the anchor otherwise + * @param anchor the anchor node to be used as a point of insertion */ insertNodes(addSelected: boolean, data: any[], before?: boolean, anchor?: HTMLElement): Function; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * selects all items - * + * */ selectAll(): any; /** * unselects all items - * + * */ selectNone(): any; /** * associates a data item with its key (id) - * - * @param key - * @param data + * + * @param key + * @param data */ setItem(key: String, data: any): void; /** * collects valid child items and populate the map - * + * */ startup(): void; /** * sync up the node list with the data map - * + * */ sync(): Function; /** * topic event processor for /dnd/cancel, called to cancel the DnD operation - * + * */ onDndCancel(): void; /** * topic event processor for /dnd/drop, called to finish the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise - * @param target the target which accepts items + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise + * @param target the target which accepts items */ onDndDrop(source: Object, nodes: any[], copy: boolean, target: Object): void; /** * topic event processor for /dnd/source/over, called when detected a current source - * - * @param source the source which has the mouse over it + * + * @param source the source which has the mouse over it */ onDndSourceOver(source: Object): void; /** * topic event processor for /dnd/start, called to initiate the DnD operation - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDndStart(source: Object, nodes: any[], copy: boolean): void; /** * called during the active DnD operation, when items * are dragged away from this target, and it is not disabled - * + * */ onDraggingOut(): void; /** * called during the active DnD operation, when items * are dragged over this target, and it is not disabled - * + * */ onDraggingOver(): void; /** * called only on the current target, when drop is performed - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDrop(source: Object, nodes: any[], copy: boolean): void; /** * called only on the current target, when drop is performed * from an external source - * - * @param source the source which provides items - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param source the source which provides items + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDropExternal(source: Object, nodes: any[], copy: boolean): void; /** * called only on the current target, when drop is performed * from the same target/source - * - * @param nodes the list of transferred items - * @param copy copy items, if true, move items otherwise + * + * @param nodes the list of transferred items + * @param copy copy items, if true, move items otherwise */ onDropInternal(nodes: any[], copy: boolean): void; /** * event processor for onmousedown - * - * @param e mouse event + * + * @param e mouse event */ onMouseDown(e: Event): void; /** * event processor for onmousemove - * - * @param e mouse event + * + * @param e mouse event */ onMouseMove(e: Event): void; /** * event processor for onmouseout - * - * @param e mouse event + * + * @param e mouse event */ onMouseOut(e: Event): void; /** * event processor for onmouseover or touch, to mark that element as the current element - * - * @param e mouse event + * + * @param e mouse event */ onMouseOver(e: Event): void; /** * event processor for onmouseup - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** * this function is called once, when mouse is out of our container - * + * */ onOutEvent(): void; /** * this function is called once, when mouse is over our container - * + * */ onOverEvent(): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } @@ -15373,84 +15373,84 @@ declare module dojo { * * Used by dojo/dnd/Manager to scroll document or internal node when the user * drags near the edge of the viewport or a scrollable node - * + * */ interface autoscroll { /** - * + * */ H_AUTOSCROLL_VALUE: number; /** - * + * */ H_TRIGGER_AUTOSCROLL: number; /** - * + * */ V_AUTOSCROLL_VALUE: number; /** - * + * */ V_TRIGGER_AUTOSCROLL: number; /** * a handler for mousemove and touchmove events, which scrolls the window, if * necessary - * - * @param e mousemove/touchmove event + * + * @param e mousemove/touchmove event */ autoScroll(e: Event): void; /** * a handler for mousemove and touchmove events, which scrolls the first available * Dom element, it falls back to exports.autoScroll() - * - * @param e mousemove/touchmove event + * + * @param e mousemove/touchmove event */ autoScrollNodes(e: Event): void; /** * Called at the start of a drag. - * - * @param d The document of the node being dragged. + * + * @param d The document of the node being dragged. */ autoScrollStart(d: HTMLDocument): void; /** * Returns the dimensions and scroll position of the viewable area of a browser window - * - * @param doc Optional + * + * @param doc Optional */ getViewport(doc?: HTMLDocument): Object; } - module autoscroll { + namespace autoscroll { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/autoscroll._validOverflow.html * - * + * */ interface _validOverflow { /** - * + * */ auto: number; /** - * + * */ scroll: number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/autoscroll._validNodes.html * - * + * */ interface _validNodes { /** - * + * */ div: number; /** - * + * */ p: number; /** - * + * */ td: number; } @@ -15460,59 +15460,59 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/common.html * * TODOC - * + * */ interface common { /** - * - * @param evt + * + * @param evt */ getCopyKeyState(evt: any): any; /** * returns a unique string for use with any DOM element - * + * */ getUniqueId(): String; /** * returns true if user clicked on a form element - * - * @param e + * + * @param e */ isFormElement(e: Event): void; /** * Returns the current DnD manager. Creates one if it is not created yet. - * + * */ manager(): any; } - module common { + namespace common { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/common._empty.html * - * + * */ interface _empty { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/common._defaultCreatorNodes.html * - * + * */ interface _defaultCreatorNodes { /** - * + * */ div: string; /** - * + * */ ol: string; /** - * + * */ p: string; /** - * + * */ ul: string; } @@ -15522,408 +15522,408 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.html * * TODOC - * + * */ interface move { /** - * + * */ boxConstrainedMoveable(): void; /** - * + * */ constrainedMoveable(): void; /** - * + * */ parentConstrainedMoveable(): void; } - module move { + namespace move { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.parentConstrainedMoveable.html * - * - * @param node a node (or node's id) to be moved - * @param params Optionalan optional object with parameters + * + * @param node a node (or node's id) to be moved + * @param params Optionalan optional object with parameters */ class parentConstrainedMoveable extends dojo.dnd.Moveable { constructor(node: HTMLElement, params?: Object); /** * object attributes (for markup) - * + * */ "area": string; /** - * + * */ "delay": number; /** - * + * */ "handle": string; /** - * + * */ "skip": boolean; /** - * + * */ "within": boolean; /** - * + * */ constraints(): void; /** * stops watching for possible move, deletes all references, so the object can be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * called when the drag is detected; * responsible for creation of the mover - * - * @param e + * + * @param e */ onDragDetected(e: Event): void; /** * called during the very first move notification; * can be used to initialize coordinates, can be overwritten. - * - * @param mover + * + * @param mover */ onFirstMove(mover: dojo.dnd.Mover): void; /** * event processor for onmousedown/ontouchstart, creates a Mover for the node - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseDown(e: Event): void; /** * event processor for onmousemove/ontouchmove, used only for delayed drags - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseMove(e: Event): void; /** * event processor for onmouseup, used only for delayed drags - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** * called during every move notification; * should actually move the node; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMove(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called after every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoved(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called before every move operation - * - * @param mover + * + * @param mover */ onMoveStart(mover: dojo.dnd.Mover): void; /** * called after every move operation - * - * @param mover + * + * @param mover */ onMoveStop(mover: dojo.dnd.Mover): void; /** * called before every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoving(mover: dojo.dnd.Mover, leftTop: Object): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.boxConstrainedMoveable.html * - * - * @param node a node (or node's id) to be moved - * @param params Optionalan optional object with parameters + * + * @param node a node (or node's id) to be moved + * @param params Optionalan optional object with parameters */ class boxConstrainedMoveable extends dojo.dnd.Moveable { constructor(node: HTMLElement, params?: Object); /** * object attributes (for markup) - * + * */ "box": Object; /** - * + * */ "delay": number; /** - * + * */ "handle": string; /** - * + * */ "skip": boolean; /** - * + * */ "within": boolean; /** - * + * */ constraints(): void; /** * stops watching for possible move, deletes all references, so the object can be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * called when the drag is detected; * responsible for creation of the mover - * - * @param e + * + * @param e */ onDragDetected(e: Event): void; /** * called during the very first move notification; * can be used to initialize coordinates, can be overwritten. - * - * @param mover + * + * @param mover */ onFirstMove(mover: dojo.dnd.Mover): void; /** * event processor for onmousedown/ontouchstart, creates a Mover for the node - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseDown(e: Event): void; /** * event processor for onmousemove/ontouchmove, used only for delayed drags - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseMove(e: Event): void; /** * event processor for onmouseup, used only for delayed drags - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** * called during every move notification; * should actually move the node; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMove(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called after every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoved(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called before every move operation - * - * @param mover + * + * @param mover */ onMoveStart(mover: dojo.dnd.Mover): void; /** * called after every move operation - * - * @param mover + * + * @param mover */ onMoveStop(mover: dojo.dnd.Mover): void; /** * called before every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoving(mover: dojo.dnd.Mover, leftTop: Object): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dnd/move.constrainedMoveable.html * - * - * @param node a node (or node's id) to be moved - * @param params Optionalan optional object with additional parameters;the rest is passed to the base class + * + * @param node a node (or node's id) to be moved + * @param params Optionalan optional object with additional parameters;the rest is passed to the base class */ class constrainedMoveable extends dojo.dnd.Moveable { constructor(node: HTMLElement, params?: Object); /** - * + * */ "delay": number; /** - * + * */ "handle": string; /** - * + * */ "skip": boolean; /** - * + * */ "within": boolean; /** - * + * */ constraints(): void; /** * stops watching for possible move, deletes all references, so the object can be garbage-collected - * + * */ destroy(): void; /** - * - * @param type - * @param event + * + * @param type + * @param event */ emit(type: any, event: any): any; /** - * - * @param params - * @param node - * @param Ctor + * + * @param params + * @param node + * @param Ctor */ markupFactory(params: any, node: any, Ctor: any): any; /** - * - * @param type - * @param listener + * + * @param type + * @param listener */ on(type: any, listener: any): any; /** * called when the drag is detected; * responsible for creation of the mover - * - * @param e + * + * @param e */ onDragDetected(e: Event): void; /** * called during the very first move notification; * can be used to initialize coordinates, can be overwritten. - * - * @param mover + * + * @param mover */ onFirstMove(mover: dojo.dnd.Mover): void; /** * event processor for onmousedown/ontouchstart, creates a Mover for the node - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseDown(e: Event): void; /** * event processor for onmousemove/ontouchmove, used only for delayed drags - * - * @param e mouse/touch event + * + * @param e mouse/touch event */ onMouseMove(e: Event): void; /** * event processor for onmouseup, used only for delayed drags - * - * @param e mouse event + * + * @param e mouse event */ onMouseUp(e: Event): void; /** * called during every move notification; * should actually move the node; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMove(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called after every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoved(mover: dojo.dnd.Mover, leftTop: Object): void; /** * called before every move operation - * - * @param mover + * + * @param mover */ onMoveStart(mover: dojo.dnd.Mover): void; /** * called after every move operation - * - * @param mover + * + * @param mover */ onMoveStop(mover: dojo.dnd.Mover): void; /** * called before every incremental move; can be overwritten. - * - * @param mover - * @param leftTop + * + * @param mover + * @param leftTop */ onMoving(mover: dojo.dnd.Mover, leftTop: Object): void; /** * event processor for onselectevent and ondragevent - * - * @param e mouse event + * + * @param e mouse event */ onSelectStart(e: Event): void; } @@ -15931,73 +15931,73 @@ declare module dojo { } - module errors { + namespace errors { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/errors/create.html * - * - * @param name - * @param ctor - * @param base - * @param props + * + * @param name + * @param ctor + * @param base + * @param props */ interface create{(name: any, ctor: any, base: any, props: any): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/errors/CancelError.html * * Default error if a promise is canceled without a reason. - * + * */ interface CancelError{(): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/errors/RequestError.html * * TODOC - * + * */ interface RequestError{(): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/errors/RequestTimeoutError.html * * TODOC - * + * */ interface RequestTimeoutError{(): void} } - module io { + namespace io { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/io/iframe.html * * Deprecated, use dojo/request/iframe instead. * Sends an Ajax I/O call using and Iframe (for instance, to upload files) - * + * */ interface iframe { /** * Creates a hidden iframe in the page. Used mostly for IO * transports. You do not need to call this to start a * dojo/io/iframe request. Just call send(). - * - * @param fname The name of the iframe. Used for the name attribute on theiframe. - * @param onloadstr A string of JavaScript that will be executed when the contentin the iframe loads. - * @param uri The value of the src attribute on the iframe element. If avalue is not given, then dojo/resources/blank.html will beused. + * + * @param fname The name of the iframe. Used for the name attribute on theiframe. + * @param onloadstr A string of JavaScript that will be executed when the contentin the iframe loads. + * @param uri The value of the src attribute on the iframe element. If avalue is not given, then dojo/resources/blank.html will beused. */ create(fname: String, onloadstr: String, uri: String): void; /** * Returns the document object associated with the iframe DOM Node argument. - * - * @param iframeNode + * + * @param iframeNode */ doc(iframeNode: any): void; /** * Sets the URL that is loaded in an IFrame. The replace parameter * indicates whether location.replace() should be used when * changing the location of the iframe. - * - * @param iframe - * @param src - * @param replace + * + * @param iframe + * @param src + * @param replace */ setSrc(iframe: any, src: any, replace: any): void; } @@ -16005,7 +16005,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/io/script.html * * TODOC - * + * */ interface script { /** @@ -16014,30 +16014,30 @@ declare module dojo { * Attaches the script element to the DOM. Use this method if you * just want to attach a script to the DOM and do not care when or * if it loads. - * - * @param id - * @param url - * @param frameDocument + * + * @param id + * @param url + * @param frameDocument */ attach(id: any, url: any, frameDocument: any): void; /** * sends a get request using a dynamically created script tag. - * - * @param args An object with the following properties:callbackParamName (String): Deprecated as of Dojo 1.4 in favor of "jsonp", but still supported forlegacy code. See notes for jsonp property.jsonp (String): The URL parameter name that indicates the JSONP callback string.For instance, when using Yahoo JSONP calls it is normally,jsonp: "callback". For AOL JSONP calls it is normallyjsonp: "c".checkString (String): A string of JavaScript that when evaluated like so:"typeof(" + checkString + ") != 'undefined'"being true means that the script fetched has been loaded.Do not use this if doing a JSONP type of call (use callbackParamName instead).frameDoc (Document): The Document object for a child iframe. If this is passed in, the scriptwill be attached to that document. This can be helpful in some comet long-pollingscenarios with Firefox and Opera.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.handleAs (String, optional): Acceptable values depend on the type of IOtransport (see specific IO calls for more information).rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. + * + * @param args An object with the following properties:callbackParamName (String): Deprecated as of Dojo 1.4 in favor of "jsonp", but still supported forlegacy code. See notes for jsonp property.jsonp (String): The URL parameter name that indicates the JSONP callback string.For instance, when using Yahoo JSONP calls it is normally,jsonp: "callback". For AOL JSONP calls it is normallyjsonp: "c".checkString (String): A string of JavaScript that when evaluated like so:"typeof(" + checkString + ") != 'undefined'"being true means that the script fetched has been loaded.Do not use this if doing a JSONP type of call (use callbackParamName instead).frameDoc (Document): The Document object for a child iframe. If this is passed in, the scriptwill be attached to that document. This can be helpful in some comet long-pollingscenarios with Firefox and Opera.load: This function will becalled on a successful HTTP response code.error: This function willbe called when the request fails due to a network or server error, the urlis invalid, etc. It will also be called if the load or handle callback throws anexception, unless djConfig.debugAtAllCosts is true. This allows deployed applicationsto continue to run even when a logic error happens in the callback, while makingit easier to troubleshoot while in debug mode.handle: This function willbe called at the end of every request, whether or not an error occurs.url (String): URL to server endpoint.content (Object, optional): Contains properties with string values. Theseproperties will be serialized as name1=value2 andpassed in the request.timeout (Integer, optional): Milliseconds to wait for the response. If this timepasses, the then error callbacks are called.form (DOMNode, optional): DOM node for a form. Used to extract the form valuesand send to the server.preventCache (Boolean, optional): Default is false. If true, then a"dojo.preventCache" parameter is sent in the requestwith a value that changes with each request(timestamp). Useful only with GET-type requests.handleAs (String, optional): Acceptable values depend on the type of IOtransport (see specific IO calls for more information).rawBody (String, optional): Sets the raw body for an HTTP request. If this is used, then the contentproperty is ignored. This is mostly useful for HTTP methods that havea body to their requests, like PUT or POST. This property can be used insteadof postData and putData for dojo/_base/xhr.rawXhrPost and dojo/_base/xhr.rawXhrPut respectively.ioPublish (Boolean, optional): Set this explicitly to false to prevent publishing of topics related toIO operations. Otherwise, if djConfig.ioPublish is set to true, topicswill be published via dojo/topic.publish() for different phases of an IO operation.See dojo/main.__IoPublish for a list of topics that are published. */ get(args: Object): any; /** * removes the script element with the given id, from the given frameDocument. * If no frameDocument is passed, the current document is used. - * - * @param id - * @param frameDocument + * + * @param id + * @param frameDocument */ remove(id: any, frameDocument: any): void; } } - module promise { + namespace promise { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/promise/all.html * @@ -16047,8 +16047,8 @@ declare module dojo { * when all promises have been fulfilled. If one of the promises is rejected, * the returned promise is also rejected. Canceling the returned promise will * not cancel any passed promises. - * - * @param objectOrArray OptionalThe promise will be fulfilled with a list of results if invoked with anarray, or an object of results when passed an object (using the samekeys). If passed neither an object or array it is resolved with anundefined value. + * + * @param objectOrArray OptionalThe promise will be fulfilled with a list of results if invoked with anarray, or an object of results when passed an object (using the samekeys). If passed neither an object or array it is resolved with anundefined value. */ interface all{(value: Promise[]): Promise} /** @@ -16060,8 +16060,8 @@ declare module dojo { * when all promises have been fulfilled. If one of the promises is rejected, * the returned promise is also rejected. Canceling the returned promise will * not cancel any passed promises. - * - * @param objectOrArray OptionalThe promise will be fulfilled with a list of results if invoked with anarray, or an object of results when passed an object (using the samekeys). If passed neither an object or array it is resolved with anundefined value. + * + * @param objectOrArray OptionalThe promise will be fulfilled with a list of results if invoked with anarray, or an object of results when passed an object (using the samekeys). If passed neither an object or array it is resolved with anundefined value. */ interface all{(value: Object): Promise} /** @@ -16073,8 +16073,8 @@ declare module dojo { * when the first of these promises is fulfilled. Canceling the returned * promise will not cancel any passed promises. The promise will be * fulfilled with the value of the first fulfilled promise. - * - * @param objectOrArray OptionalThe promises are taken from the array or object values. If no valueis passed, the returned promise is resolved with an undefined value. + * + * @param objectOrArray OptionalThe promises are taken from the array or object values. If no valueis passed, the returned promise is resolved with an undefined value. */ interface first{(objectOrArray?: Object): void} /** @@ -16086,8 +16086,8 @@ declare module dojo { * when the first of these promises is fulfilled. Canceling the returned * promise will not cancel any passed promises. The promise will be * fulfilled with the value of the first fulfilled promise. - * - * @param objectOrArray OptionalThe promises are taken from the array or object values. If no valueis passed, the returned promise is resolved with an undefined value. + * + * @param objectOrArray OptionalThe promises are taken from the array or object values. If no valueis passed, the returned promise is resolved with an undefined value. */ interface first{(objectOrArray?: any[]): void} /** @@ -16098,13 +16098,13 @@ declare module dojo { * Done automatically by dojo/Deferred if the * deferredInstrumentation and useDeferredInstrumentation * config options are set. - * + * * Sets up dojo/promise/tracer to log to the console. - * + * * Sets up instrumentation of rejected deferreds so unhandled * errors are logged to the console. - * - * @param Deferred + * + * @param Deferred */ interface instrumentation{(Deferred: any): void} @@ -16118,14 +16118,14 @@ declare module dojo { * The public interface to a deferred. * The public interface to a deferred. All promises in Dojo are * instances of this class. - * + * */ interface Promise { /** * Add a callback to be invoked when the promise is resolved * or rejected. - * - * @param callbackOrErrback OptionalA function that is used both as a callback and errback. + * + * @param callbackOrErrback OptionalA function that is used both as a callback and errback. */ always(callbackOrErrback: Callback): Promise; /** @@ -16134,49 +16134,49 @@ declare module dojo { * The deferred's (optional) canceler is invoked and the * deferred will be left in a rejected state. Can affect other * promises that originate with the same deferred. - * - * @param reason A message that may be sent to the deferred's canceler,explaining why it's being canceled. - * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be canceled. + * + * @param reason A message that may be sent to the deferred's canceler,explaining why it's being canceled. + * @param strict OptionalIf strict, will throw an error if the deferred has alreadybeen fulfilled and consequently cannot be canceled. */ cancel(reason: any, strict?: boolean): any; /** * Checks whether the promise has been canceled. - * + * */ isCanceled(): boolean; /** * Checks whether the promise has been resolved or rejected. - * + * */ isFulfilled(): boolean; /** * Checks whether the promise has been rejected. - * + * */ isRejected(): boolean; /** * Checks whether the promise has been resolved. - * + * */ isResolved(): boolean; /** * Add new errbacks to the promise. - * - * @param errback OptionalCallback to be invoked when the promise is rejected. + * + * @param errback OptionalCallback to be invoked when the promise is rejected. */ otherwise(errback?: Callback): Promise; /** * Add new callbacks to the promise. * Add new callbacks to the deferred. Callbacks can be added * before or after the deferred is fulfilled. - * - * @param callback OptionalCallback to be invoked when the promise is resolved.Receives the resolution value. - * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. - * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. + * + * @param callback OptionalCallback to be invoked when the promise is resolved.Receives the resolution value. + * @param errback OptionalCallback to be invoked when the promise is rejected.Receives the rejection error. + * @param progback OptionalCallback to be invoked when the promise emits a progressupdate. Receives the progress update. */ then(callback?: Callback, errback?: Callback, progback?: Callback): Promise; /** - * + * */ toString(): String; /** @@ -16186,7 +16186,7 @@ declare module dojo { * promise itself. Any arguments passed to trace() are * emitted in trace events. See dojo/promise/tracer on how * to handle traces. - * + * */ trace(): Promise; /** @@ -16196,7 +16196,7 @@ declare module dojo { * promise itself. Any arguments passed to trace() are * emitted in trace events. See dojo/promise/tracer on how * to handle traces. - * + * */ traceRejected(): Promise; } @@ -16207,91 +16207,91 @@ declare module dojo { * Trace promise fulfillment. Calling .trace() or .traceError() on a * promise enables tracing. Will emit resolved, rejected or progress * events. - * + * */ interface tracer { /** * Subscribe to traces. * See dojo/Evented#on(). - * - * @param type resolved, rejected, or progress - * @param listener The listener is passed the traced value and any argumentsthat were used with the .trace() call. + * + * @param type resolved, rejected, or progress + * @param listener The listener is passed the traced value and any argumentsthat were used with the .trace() call. */ on(type: String, listener: Function): void; } } - module rpc { + namespace rpc { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/rpc/JsonpService.html * * Generic JSONP service. Minimally extends RpcService to allow * easy definition of nearly any JSONP style service. Example * SMD files exist in dojox.data - * - * @param args - * @param requiredArgs + * + * @param args + * @param requiredArgs */ class JsonpService extends dojo.rpc.RpcService { constructor(args: any, requiredArgs: any); /** - * + * */ "serviceUrl": string; /** - * + * */ "strictArgChecks": boolean; /** * JSONP bind method. Takes remote method, parameters, * deferred, and a url, calls createRequest to make a JSON-RPC * envelope and passes that off with bind. - * - * @param method The name of the method we are calling - * @param parameters The parameters we are passing off to the method - * @param deferredRequestHandler The Deferred object for this particular request - * @param url + * + * @param method The name of the method we are calling + * @param parameters The parameters we are passing off to the method + * @param deferredRequestHandler The Deferred object for this particular request + * @param url */ bind(method: String, parameters: dojo._base.array, deferredRequestHandler: dojo.Deferred, url: any): void; /** * create a JSONP req - * - * @param parameters + * + * @param parameters */ createRequest(parameters: any): Object; /** * create callback that calls the Deferred errback method - * - * @param deferredRequestHandler The deferred object handling a request. + * + * @param deferredRequestHandler The deferred object handling a request. */ errorCallback(deferredRequestHandler: dojo._base.Deferred): Function; /** * generate the local bind methods for the remote object - * - * @param method The name of the method we are generating - * @param parameters the array of parameters for this call. - * @param url the service url for this call + * + * @param method The name of the method we are generating + * @param parameters the array of parameters for this call. + * @param url the service url for this call */ generateMethod(method: String, parameters: dojo._base.array, url: String): any; /** * parse the results coming back from an rpc request. this * base implementation, just returns the full object * subclasses should parse and only return the actual results - * - * @param obj Object that is the return results from an rpc request + * + * @param obj Object that is the return results from an rpc request */ parseResults(obj: Object): Object; /** * callback method for receipt of a smd object. Parse the smd * and generate functions based on the description - * - * @param object smd object defining this service. + * + * @param object smd object defining this service. */ processSmd(object: any): void; /** * create callback that calls the Deferred's callback method - * - * @param deferredRequestHandler The deferred object handling a request. + * + * @param deferredRequestHandler The deferred object handling a request. */ resultCallback(deferredRequestHandler: dojo._base.Deferred): any; } @@ -16299,89 +16299,89 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/rpc/JsonService.html * * TODOC - * - * @param args Takes a number of properties as kwArgs for defining the service. It alsoaccepts a string. When passed a string, it is treated as a url fromwhich it should synchronously retrieve an smd file. Otherwise it is a kwArgsobject. It accepts serviceUrl, to manually define a url for the rpc serviceallowing the rpc system to be used without an smd definition. strictArgChecksforces the system to verify that the # of arguments provided in a callmatches those defined in the smd. smdString allows a developer to passa jsonString directly, which will be converted into an object or alternativelysmdObject is accepts an smdObject directly. + * + * @param args Takes a number of properties as kwArgs for defining the service. It alsoaccepts a string. When passed a string, it is treated as a url fromwhich it should synchronously retrieve an smd file. Otherwise it is a kwArgsobject. It accepts serviceUrl, to manually define a url for the rpc serviceallowing the rpc system to be used without an smd definition. strictArgChecksforces the system to verify that the # of arguments provided in a callmatches those defined in the smd. smdString allows a developer to passa jsonString directly, which will be converted into an object or alternativelysmdObject is accepts an smdObject directly. */ class JsonService extends dojo.rpc.RpcService { constructor(args: Object); /** - * + * */ "bustCache": boolean; /** - * + * */ "contentType": string; /** - * + * */ "lastSubmissionId": number; /** - * + * */ "serviceUrl": string; /** - * + * */ "strictArgChecks": boolean; /** * JSON-RPC bind method. Takes remote method, parameters, * deferred, and a url, calls createRequest to make a JSON-RPC * envelope and passes that off with bind. - * - * @param method The name of the method we are calling - * @param parameters The parameters we are passing off to the method - * @param deferredRequestHandler The Deferred object for this particular request - * @param url + * + * @param method The name of the method we are calling + * @param parameters The parameters we are passing off to the method + * @param deferredRequestHandler The Deferred object for this particular request + * @param url */ bind(method: String, parameters: any[], deferredRequestHandler: dojo.Deferred, url: any): void; /** * call an arbitrary remote method without requiring it to be * predefined with SMD - * - * @param method the name of the remote method you want to call. - * @param params array of parameters to pass to method + * + * @param method the name of the remote method you want to call. + * @param params array of parameters to pass to method */ callRemote(method: String, params: any[]): any; /** * create a JSON-RPC envelope for the request - * - * @param method The name of the method we are creating the request for - * @param params The array of parameters for this request; + * + * @param method The name of the method we are creating the request for + * @param params The array of parameters for this request; */ createRequest(method: String, params: dojo._base.array): any; /** * create callback that calls the Deferred errback method - * - * @param deferredRequestHandler The deferred object handling a request. + * + * @param deferredRequestHandler The deferred object handling a request. */ errorCallback(deferredRequestHandler: dojo._base.Deferred): Function; /** * generate the local bind methods for the remote object - * - * @param method The name of the method we are generating - * @param parameters the array of parameters for this call. - * @param url the service url for this call + * + * @param method The name of the method we are generating + * @param parameters the array of parameters for this call. + * @param url the service url for this call */ generateMethod(method: String, parameters: dojo._base.array, url: String): any; /** * parse the result envelope and pass the results back to * the callback function - * - * @param obj Object containing envelope of data we receive from the server + * + * @param obj Object containing envelope of data we receive from the server */ parseResults(obj: Object): any; /** * callback method for receipt of a smd object. Parse the smd * and generate functions based on the description - * - * @param object smd object defining this service. + * + * @param object smd object defining this service. */ processSmd(object: any): void; /** * create callback that calls the Deferred's callback method - * - * @param deferredRequestHandler The deferred object handling a request. + * + * @param deferredRequestHandler The deferred object handling a request. */ resultCallback(deferredRequestHandler: dojo._base.Deferred): any; } @@ -16389,76 +16389,76 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/rpc/RpcService.html * * TODOC - * - * @param args Takes a number of properties as kwArgs for defining the service. It alsoaccepts a string. When passed a string, it is treated as a url fromwhich it should synchronously retrieve an smd file. Otherwise it is a kwArgsobject. It accepts serviceUrl, to manually define a url for the rpc serviceallowing the rpc system to be used without an smd definition. strictArgChecksforces the system to verify that the # of arguments provided in a callmatches those defined in the smd. smdString allows a developer to passa jsonString directly, which will be converted into an object or alternativelysmdObject is accepts an smdObject directly. + * + * @param args Takes a number of properties as kwArgs for defining the service. It alsoaccepts a string. When passed a string, it is treated as a url fromwhich it should synchronously retrieve an smd file. Otherwise it is a kwArgsobject. It accepts serviceUrl, to manually define a url for the rpc serviceallowing the rpc system to be used without an smd definition. strictArgChecksforces the system to verify that the # of arguments provided in a callmatches those defined in the smd. smdString allows a developer to passa jsonString directly, which will be converted into an object or alternativelysmdObject is accepts an smdObject directly. */ class RpcService { constructor(args: Object); /** - * + * */ "serviceUrl": string; /** - * + * */ "strictArgChecks": boolean; /** * create callback that calls the Deferred errback method - * - * @param deferredRequestHandler The deferred object handling a request. + * + * @param deferredRequestHandler The deferred object handling a request. */ errorCallback(deferredRequestHandler: dojo._base.Deferred): Function; /** * generate the local bind methods for the remote object - * - * @param method The name of the method we are generating - * @param parameters the array of parameters for this call. - * @param url the service url for this call + * + * @param method The name of the method we are generating + * @param parameters the array of parameters for this call. + * @param url the service url for this call */ generateMethod(method: String, parameters: dojo._base.array, url: String): any; /** * parse the results coming back from an rpc request. this * base implementation, just returns the full object * subclasses should parse and only return the actual results - * - * @param obj Object that is the return results from an rpc request + * + * @param obj Object that is the return results from an rpc request */ parseResults(obj: Object): Object; /** * callback method for receipt of a smd object. Parse the smd * and generate functions based on the description - * - * @param object smd object defining this service. + * + * @param object smd object defining this service. */ processSmd(object: any): void; /** * create callback that calls the Deferred's callback method - * - * @param deferredRequestHandler The deferred object handling a request. + * + * @param deferredRequestHandler The deferred object handling a request. */ resultCallback(deferredRequestHandler: dojo._base.Deferred): any; } } - module selector { + namespace selector { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/selector/lite.html * * A small lightweight query selector engine that implements CSS2.1 selectors * minus pseudo-classes and the sibling combinator, plus CSS3 attribute selectors - * - * @param selector - * @param root + * + * @param selector + * @param root */ interface lite{(selector: any, root: any): void} interface lite { /** - * + * */ match: Object; } - module lite { + namespace lite { } /** @@ -16472,10 +16472,10 @@ declare module dojo { * "$" function, dojo.query provides robust, high-performance * CSS-based node selector support with the option of scoping searches * to a particular sub-tree of a document. - * + * * Supported Selectors: * acme supports a rich set of CSS3 selectors, including: - * + * * class selectors (e.g., .foo) * node type selectors like span * descendant selectors @@ -16491,7 +16491,7 @@ declare module dojo { * [foo^='bar'] attribute start match * [foo$='bar'] attribute end match * [foo*='bar'] attribute substring match - * + * * :first-child, :last-child, and :only-child positional selectors * :empty content emtpy selector * :checked pseudo selector @@ -16504,21 +16504,21 @@ declare module dojo { * palette of selectors and when combined with functions for * manipulation presented by dojo/NodeList, many types of DOM * manipulation operations become very straightforward. - * + * * Unsupported Selectors: * While dojo.query handles many CSS3 selectors, some fall outside of * what's reasonable for a programmatic node querying engine to * handle. Currently unsupported selectors include: - * + * * namespace-differentiated selectors of any form * all :: pseduo-element selectors * certain pseudo-selectors which don't get a lot of day-to-day use: * :root, :lang(), :target, :focus - * + * * all visual and state selectors: * :root, :active, :hover, :visited, :link,`:enabled`, `:disabled` * :*-of-type pseudo selectors - * + * * dojo.query and XML Documents: * dojo.query (as of dojo 1.2) supports searching XML documents * in a case-sensitive manner. If an HTML document is served with @@ -16529,7 +16529,7 @@ declare module dojo { * use case-sensitive queries on strict sub-documents (iframes, * etc.) or XML documents while still assuming case-insensitivity * for a host/root document. - * + * * Non-selector Queries: * If something other than a String is passed for the query, * dojo.query will return a new dojo/NodeList instance @@ -16538,9 +16538,9 @@ declare module dojo { * to a node or NodeList, you can quickly construct a new NodeList * from the original by calling dojo.query(node) or * dojo.query(list). - * - * @param query The CSS3 expression to match against. For details on the syntax ofCSS3 selectors, see http://www.w3.org/TR/css3-selectors/#selectors - * @param root OptionalA DOMNode (or node id) to scope the search from. Optional. + * + * @param query The CSS3 expression to match against. For details on the syntax ofCSS3 selectors, see http://www.w3.org/TR/css3-selectors/#selectors + * @param root OptionalA DOMNode (or node id) to scope the search from. Optional. */ interface acme{(query: String, root?: String): void} /** @@ -16554,10 +16554,10 @@ declare module dojo { * "$" function, dojo.query provides robust, high-performance * CSS-based node selector support with the option of scoping searches * to a particular sub-tree of a document. - * + * * Supported Selectors: * acme supports a rich set of CSS3 selectors, including: - * + * * class selectors (e.g., .foo) * node type selectors like span * descendant selectors @@ -16573,7 +16573,7 @@ declare module dojo { * [foo^='bar'] attribute start match * [foo$='bar'] attribute end match * [foo*='bar'] attribute substring match - * + * * :first-child, :last-child, and :only-child positional selectors * :empty content emtpy selector * :checked pseudo selector @@ -16586,21 +16586,21 @@ declare module dojo { * palette of selectors and when combined with functions for * manipulation presented by dojo/NodeList, many types of DOM * manipulation operations become very straightforward. - * + * * Unsupported Selectors: * While dojo.query handles many CSS3 selectors, some fall outside of * what's reasonable for a programmatic node querying engine to * handle. Currently unsupported selectors include: - * + * * namespace-differentiated selectors of any form * all :: pseduo-element selectors * certain pseudo-selectors which don't get a lot of day-to-day use: * :root, :lang(), :target, :focus - * + * * all visual and state selectors: * :root, :active, :hover, :visited, :link,`:enabled`, `:disabled` * :*-of-type pseudo selectors - * + * * dojo.query and XML Documents: * dojo.query (as of dojo 1.2) supports searching XML documents * in a case-sensitive manner. If an HTML document is served with @@ -16611,7 +16611,7 @@ declare module dojo { * use case-sensitive queries on strict sub-documents (iframes, * etc.) or XML documents while still assuming case-insensitivity * for a host/root document. - * + * * Non-selector Queries: * If something other than a String is passed for the query, * dojo.query will return a new dojo/NodeList instance @@ -16620,52 +16620,52 @@ declare module dojo { * to a node or NodeList, you can quickly construct a new NodeList * from the original by calling dojo.query(node) or * dojo.query(list). - * - * @param query The CSS3 expression to match against. For details on the syntax ofCSS3 selectors, see http://www.w3.org/TR/css3-selectors/#selectors - * @param root OptionalA DOMNode (or node id) to scope the search from. Optional. + * + * @param query The CSS3 expression to match against. For details on the syntax ofCSS3 selectors, see http://www.w3.org/TR/css3-selectors/#selectors + * @param root OptionalA DOMNode (or node id) to scope the search from. Optional. */ interface acme{(query: String, root?: HTMLElement): void} interface acme { /** * function for filtering a NodeList based on a selector, optimized for simple selectors - * - * @param nodeList - * @param filter - * @param root Optional + * + * @param nodeList + * @param filter + * @param root Optional */ filter(nodeList: HTMLElement[], filter: String, root?: String): void; /** * function for filtering a NodeList based on a selector, optimized for simple selectors - * - * @param nodeList - * @param filter - * @param root Optional + * + * @param nodeList + * @param filter + * @param root Optional */ filter(nodeList: HTMLElement[], filter: String, root?: HTMLElement): void; } - module acme { + namespace acme { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/selector/_loader.html * * This module handles loading the appropriate selector engine for the given browser - * + * */ interface _loader { /** - * - * @param id - * @param parentRequire - * @param loaded - * @param config + * + * @param id + * @param parentRequire + * @param loaded + * @param config */ load(id: any, parentRequire: any, loaded: any, config: any): any; } } - module store { + namespace store { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/Observable.html * @@ -16673,8 +16673,8 @@ declare module dojo { * results that can be used to monitor results for changes. * Observable wraps an existing store so that notifications can be made when a query * is performed. - * - * @param store + * + * @param store */ interface Observable{(store: dojo.store.api.Store): void} /** @@ -16684,17 +16684,17 @@ declare module dojo { * caches data from the master into the caching store for faster * lookup. Normally one would use a memory store for the caching * store and a server store like JsonRest for the master store. - * - * @param masterStore This is the authoritative store, all uncached requests or non-safe requests willbe made against this store. - * @param cachingStore This is the caching store that will be used to store responses for quick access.Typically this should be a local store. - * @param options OptionalThese are additional options for how caching is handled. + * + * @param masterStore This is the authoritative store, all uncached requests or non-safe requests willbe made against this store. + * @param cachingStore This is the caching store that will be used to store responses for quick access.Typically this should be a local store. + * @param options OptionalThese are additional options for how caching is handled. */ class Cache extends dojo.store.api.Store { constructor(masterStore: any, cachingStore: any, options?: Object); /** * If the store has a single primary key, this indicates the property to use as the * identity property. The values of this property should be unique. - * + * */ "idProperty": string; /** @@ -16703,83 +16703,83 @@ declare module dojo { * This takes a query and query options and returns a function that can execute * the provided query on a JavaScript array. The queryEngine may be replace to * provide more sophisticated querying capabilities. For example: - * + * * var query = store.queryEngine({foo:"bar"}, {count:10}); * query(someArray) -> filtered array * The returned query function may have a "matches" property that can be - * + * * used to determine if an object matches the query. For example: - * + * * query.matches({id:"some-object", foo:"bar"}) -> true * query.matches({id:"some-object", foo:"something else"}) -> false - * + * */ queryEngine(query: Object, options: dojo.store.api.Store.QueryOptions): any; /** * Add the given object to the store. - * - * @param object The object to add to the store. - * @param directives OptionalAny additional parameters needed to describe how the add should be performed. + * + * @param object The object to add to the store. + * @param directives OptionalAny additional parameters needed to describe how the add should be performed. */ add(object: Object, directives?: any): number; /** * Remove the object with the given id from the underlying caching store. - * - * @param id The identifier for the object in question. + * + * @param id The identifier for the object in question. */ evict(id: number): void; /** * Get the object with the specific id. - * - * @param id The identifier for the object in question. - * @param directives OptionalAny additional parameters needed to describe how the get should be performed. + * + * @param id The identifier for the object in question. + * @param directives OptionalAny additional parameters needed to describe how the get should be performed. */ get(id: number, directives?: Object): dojo.store.api.Store.QueryResults; /** * Retrieves the children of an object. - * - * @param parent The object to find the children of. - * @param options OptionalAdditional options to apply to the retrieval of the children. + * + * @param parent The object to find the children of. + * @param options OptionalAdditional options to apply to the retrieval of the children. */ getChildren(parent: Object, options?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Returns an object's identity - * - * @param object The object to get the identity from + * + * @param object The object to get the identity from */ getIdentity(object: Object): any; /** * Returns any metadata about the object. This may include attribution, * cache directives, history, or version information. - * - * @param object The object to return metadata for. + * + * @param object The object to return metadata for. */ getMetadata(object: Object): Object; /** * Put the object into the store (similar to an HTTP PUT). - * - * @param object The object to put to the store. - * @param directives OptionalAny additional parameters needed to describe how the put should be performed. + * + * @param object The object to put to the store. + * @param directives OptionalAny additional parameters needed to describe how the put should be performed. */ put(object: Object, directives?: dojo.store.api.Store.PutDirectives): number; /** * Query the underlying master store and cache any results. - * - * @param query The object or string containing query information. Dependent on the query engine used. - * @param directives OptionalAn optional keyword arguments object with additional parameters describing the query. + * + * @param query The object or string containing query information. Dependent on the query engine used. + * @param directives OptionalAn optional keyword arguments object with additional parameters describing the query. */ query(query: Object, directives?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Query the underlying master store and cache any results. - * - * @param query The object or string containing query information. Dependent on the query engine used. - * @param directives OptionalAn optional keyword arguments object with additional parameters describing the query. + * + * @param query The object or string containing query information. Dependent on the query engine used. + * @param directives OptionalAn optional keyword arguments object with additional parameters describing the query. */ query(query: String, directives?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Remove the object with the specific id. - * - * @param id The identifier for the object in question. + * + * @param id The identifier for the object in question. */ remove(id: number): void; /** @@ -16787,7 +16787,7 @@ declare module dojo { * Note that a store user might not call transaction() prior to using put, * delete, etc. in which case these operations effectively could be thought of * as "auto-commit" style actions. - * + * */ transaction(): dojo.store.api.Store.Transaction; } @@ -16797,84 +16797,84 @@ declare module dojo { * This is an adapter for using Dojo Data stores with an object store consumer. * You can provide a Dojo data store and use this adapter to interact with it through * the Dojo object store API - * - * @param options OptionalThis provides any configuration information that will be mixed into the store,including a reference to the Dojo data store under the property "store". + * + * @param options OptionalThis provides any configuration information that will be mixed into the store,including a reference to the Dojo data store under the property "store". */ class DataStore extends dojo.store.api.Store { constructor(options?: Object); /** * The object property to use to store the identity of the store items. - * + * */ "idProperty": string; /** * The object store to convert to a data store - * + * */ "store": Object; /** - * + * */ "target": string; /** * Creates an object, throws an error if the object already exists - * - * @param object The object to store. - * @param directives OptionalAdditional directives for creating objects. + * + * @param object The object to store. + * @param directives OptionalAdditional directives for creating objects. */ add(object: Object, directives: dojo.store.api.Store.PutDirectives): any; /** * Retrieves an object by it's identity. This will trigger a fetchItemByIdentity - * - * @param id OptionalThe identity to use to lookup the object - * @param options + * + * @param id OptionalThe identity to use to lookup the object + * @param options */ get(id: Object, options?: any): any; /** * Retrieves the children of an object. - * - * @param parent The object to find the children of. - * @param options OptionalAdditional options to apply to the retrieval of the children. + * + * @param parent The object to find the children of. + * @param options OptionalAdditional options to apply to the retrieval of the children. */ getChildren(parent: Object, options?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Fetch the identity for the given object. - * - * @param object The data object to get the identity from. + * + * @param object The data object to get the identity from. */ getIdentity(object: Object): any; /** * Returns any metadata about the object. This may include attribution, * cache directives, history, or version information. - * - * @param object The object to return metadata for. + * + * @param object The object to return metadata for. */ getMetadata(object: Object): Object; /** * Stores an object by its identity. - * - * @param object The object to store. - * @param options OptionalAdditional metadata for storing the data. Includes a reference to an idthat the object may be stored with (i.e. { id: "foo" }). + * + * @param object The object to store. + * @param options OptionalAdditional metadata for storing the data. Includes a reference to an idthat the object may be stored with (i.e. { id: "foo" }). */ put(object: Object, options?: Object): void; /** * Queries the store for objects. - * - * @param query The query to use for retrieving objects from the store - * @param options OptionalOptional options object as used by the underlying dojo.data Store. + * + * @param query The query to use for retrieving objects from the store + * @param options OptionalOptional options object as used by the underlying dojo.data Store. */ query(query: Object, options?: Object): any; /** * Defines the query engine to use for querying the data store - * - * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). - * @param options OptionalAn object that contains optional information such as sort, start, and count. + * + * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). + * @param options OptionalAn object that contains optional information such as sort, start, and count. */ queryEngine(query: Object, options?: dojo.store.api.Store.QueryOptions): any; /** * Deletes an object by its identity. - * - * @param id The identity to use to delete the object + * + * @param id The identity to use to delete the object */ remove(id: Object): void; /** @@ -16882,7 +16882,7 @@ declare module dojo { * Note that a store user might not call transaction() prior to using put, * delete, etc. in which case these operations effectively could be thought of * as "auto-commit" style actions. - * + * */ transaction(): dojo.store.api.Store.Transaction; } @@ -16890,91 +16890,91 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/Memory.html * * This is a basic in-memory object store. It implements dojo/store/api/Store. - * - * @param options This provides any configuration information that will be mixed into the store.This should generally include the data property to provide the starting set of data. + * + * @param options This provides any configuration information that will be mixed into the store.This should generally include the data property to provide the starting set of data. */ class Memory extends dojo.store.api.Store { constructor(options: dojo.store.Memory); /** * The array of all the objects in the memory store - * + * */ "data": any[]; /** * Indicates the property to use as the identity property. The values of this * property should be unique. - * + * */ "idProperty": string; /** * An index of data indices into the data array by id - * + * */ "index": Object; /** * Creates an object, throws an error if the object already exists - * - * @param object The object to store. - * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. + * + * @param object The object to store. + * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. */ add(object: Object, options?: dojo.store.api.Store.PutDirectives): any; /** * Retrieves an object by its identity - * - * @param id The identity to use to lookup the object + * + * @param id The identity to use to lookup the object */ get(id: number): any; /** * Retrieves the children of an object. - * - * @param parent The object to find the children of. - * @param options OptionalAdditional options to apply to the retrieval of the children. + * + * @param parent The object to find the children of. + * @param options OptionalAdditional options to apply to the retrieval of the children. */ getChildren(parent: Object, options?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Returns an object's identity - * - * @param object The object to get the identity from + * + * @param object The object to get the identity from */ getIdentity(object: Object): any; /** * Returns any metadata about the object. This may include attribution, * cache directives, history, or version information. - * - * @param object The object to return metadata for. + * + * @param object The object to return metadata for. */ getMetadata(object: Object): Object; /** * Stores an object - * - * @param object The object to store. - * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. + * + * @param object The object to store. + * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. */ put(object: Object, options?: dojo.store.api.Store.PutDirectives): any; /** * Queries the store for objects. - * - * @param query The query to use for retrieving objects from the store. - * @param options OptionalThe optional arguments to apply to the resultset. + * + * @param query The query to use for retrieving objects from the store. + * @param options OptionalThe optional arguments to apply to the resultset. */ query(query: Object, options?: dojo.store.api.Store.QueryOptions): any; /** * Defines the query engine to use for querying the data store - * - * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). - * @param options OptionalAn object that contains optional information such as sort, start, and count. + * + * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). + * @param options OptionalAn object that contains optional information such as sort, start, and count. */ queryEngine(query: Object, options?: dojo.store.api.Store.QueryOptions): any; /** * Deletes an object by its identity - * - * @param id The identity to use to delete the object + * + * @param id The identity to use to delete the object */ remove(id: number): any; /** * Sets the given data as the source for this store, and indexes it - * - * @param data An array of objects to use as the source of data. + * + * @param data An array of objects to use as the source of data. */ setData(data: Object[]): void; /** @@ -16982,7 +16982,7 @@ declare module dojo { * Note that a store user might not call transaction() prior to using put, * delete, etc. in which case these operations effectively could be thought of * as "auto-commit" style actions. - * + * */ transaction(): dojo.store.api.Store.Transaction; } @@ -16991,36 +16991,36 @@ declare module dojo { * * This is a basic store for RESTful communicating with a server through JSON * formatted data. It implements dojo/store/api/Store. - * - * @param options This provides any configuration information that will be mixed into the store + * + * @param options This provides any configuration information that will be mixed into the store */ class JsonRest extends dojo.store.api.Store { constructor(options: dojo.store.JsonRest); /** * Defines the Accept header to use on HTTP requests - * + * */ "accepts": string; /** * The prefix to apply to sort attribute names that are ascending - * + * */ "ascendingPrefix": string; /** * The prefix to apply to sort attribute names that are ascending - * + * */ "descendingPrefix": string; /** * Additional headers to pass in all requests to the server. These can be overridden * by passing additional headers to calls to the store. - * + * */ "headers": Object; /** * Indicates the property to use as the identity property. The values of this * property should be unique. - * + * */ "idProperty": string; /** @@ -17029,82 +17029,82 @@ declare module dojo { * This takes a query and query options and returns a function that can execute * the provided query on a JavaScript array. The queryEngine may be replace to * provide more sophisticated querying capabilities. For example: - * + * * var query = store.queryEngine({foo:"bar"}, {count:10}); * query(someArray) -> filtered array * The returned query function may have a "matches" property that can be - * + * * used to determine if an object matches the query. For example: - * + * * query.matches({id:"some-object", foo:"bar"}) -> true * query.matches({id:"some-object", foo:"something else"}) -> false - * + * */ queryEngine(query: Object, options: dojo.store.api.Store.QueryOptions): any; /** * The target base URL to use for all requests to the server. This string will be * prepended to the id to generate the URL (relative or absolute) for requests * sent to the server - * + * */ "target": string; /** * Adds an object. This will trigger a PUT request to the server * if the object has an id, otherwise it will trigger a POST request. - * - * @param object The object to store. - * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. + * + * @param object The object to store. + * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. */ add(object: Object, options?: Object): any; /** * Retrieves an object by its identity. This will trigger a GET request to the server using * the url this.target + id. - * - * @param id The identity to use to lookup the object - * @param options OptionalHTTP headers. For consistency with other methods, if a headers key exists on this object, it will beused to provide HTTP headers instead. + * + * @param id The identity to use to lookup the object + * @param options OptionalHTTP headers. For consistency with other methods, if a headers key exists on this object, it will beused to provide HTTP headers instead. */ get(id: number, options?: Object): any; /** * Retrieves the children of an object. - * - * @param parent The object to find the children of. - * @param options OptionalAdditional options to apply to the retrieval of the children. + * + * @param parent The object to find the children of. + * @param options OptionalAdditional options to apply to the retrieval of the children. */ getChildren(parent: Object, options?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Returns an object's identity - * - * @param object The object to get the identity from + * + * @param object The object to get the identity from */ getIdentity(object: Object): any; /** * Returns any metadata about the object. This may include attribution, * cache directives, history, or version information. - * - * @param object The object to return metadata for. + * + * @param object The object to return metadata for. */ getMetadata(object: Object): Object; /** * Stores an object. This will trigger a PUT request to the server * if the object has an id, otherwise it will trigger a POST request. - * - * @param object The object to store. - * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. + * + * @param object The object to store. + * @param options OptionalAdditional metadata for storing the data. Includes an "id"property if a specific id is to be used. */ put(object: Object, options?: Object): any; /** * Queries the store for objects. This will trigger a GET request to the server, with the * query added as a query string. - * - * @param query The query to use for retrieving objects from the store. - * @param options OptionalThe optional arguments to apply to the resultset. + * + * @param query The query to use for retrieving objects from the store. + * @param options OptionalThe optional arguments to apply to the resultset. */ query(query: Object, options?: Object): any; /** * Deletes an object by its identity. This will trigger a DELETE request to the server. - * - * @param id The identity to use to delete the object - * @param options OptionalHTTP headers. + * + * @param id The identity to use to delete the object + * @param options OptionalHTTP headers. */ remove(id: number, options?: Object): any; /** @@ -17112,11 +17112,11 @@ declare module dojo { * Note that a store user might not call transaction() prior to using put, * delete, etc. in which case these operations effectively could be thought of * as "auto-commit" style actions. - * + * */ transaction(): dojo.store.api.Store.Transaction; } - module api { + namespace api { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.html * @@ -17129,14 +17129,14 @@ declare module dojo { * Every method may return a promise for the specified return value if the * execution of the operation is asynchronous (except * for query() which already defines an async return value). - * + * */ class Store { constructor(); /** * If the store has a single primary key, this indicates the property to use as the * identity property. The values of this property should be unique. - * + * */ "idProperty": string; /** @@ -17145,102 +17145,102 @@ declare module dojo { * This takes a query and query options and returns a function that can execute * the provided query on a JavaScript array. The queryEngine may be replace to * provide more sophisticated querying capabilities. For example: - * + * * var query = store.queryEngine({foo:"bar"}, {count:10}); * query(someArray) -> filtered array * The returned query function may have a "matches" property that can be - * + * * used to determine if an object matches the query. For example: - * + * * query.matches({id:"some-object", foo:"bar"}) -> true * query.matches({id:"some-object", foo:"something else"}) -> false - * + * */ queryEngine(query: Object, options: dojo.store.api.Store.QueryOptions): any; /** * Creates an object, throws an error if the object already exists - * - * @param object The object to store. - * @param directives OptionalAdditional directives for creating objects. + * + * @param object The object to store. + * @param directives OptionalAdditional directives for creating objects. */ add(object: Object, directives?: dojo.store.api.Store.PutDirectives): any; /** * Retrieves an object by its identity - * - * @param id The identity to use to lookup the object + * + * @param id The identity to use to lookup the object */ get(id: number): Object; /** * Retrieves the children of an object. - * - * @param parent The object to find the children of. - * @param options OptionalAdditional options to apply to the retrieval of the children. + * + * @param parent The object to find the children of. + * @param options OptionalAdditional options to apply to the retrieval of the children. */ getChildren(parent: Object, options?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Returns an object's identity - * - * @param object The object to get the identity from + * + * @param object The object to get the identity from */ getIdentity(object: Object): any; /** * Returns any metadata about the object. This may include attribution, * cache directives, history, or version information. - * - * @param object The object to return metadata for. + * + * @param object The object to return metadata for. */ getMetadata(object: Object): Object; /** * Stores an object - * - * @param object The object to store. - * @param directives OptionalAdditional directives for storing objects. + * + * @param object The object to store. + * @param directives OptionalAdditional directives for storing objects. */ put(object: Object, directives?: dojo.store.api.Store.PutDirectives): any; /** - * + * */ PutDirectives(): void; /** * Queries the store for objects. This does not alter the store, but returns a * set of data from the store. - * - * @param query The query to use for retrieving objects from the store. - * @param options The optional arguments to apply to the resultset. + * + * @param query The query to use for retrieving objects from the store. + * @param options The optional arguments to apply to the resultset. */ query(query: String, options?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Queries the store for objects. This does not alter the store, but returns a * set of data from the store. - * - * @param query The query to use for retrieving objects from the store. - * @param options The optional arguments to apply to the resultset. + * + * @param query The query to use for retrieving objects from the store. + * @param options The optional arguments to apply to the resultset. */ query(query: Object, options?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** * Queries the store for objects. This does not alter the store, but returns a * set of data from the store. - * - * @param query The query to use for retrieving objects from the store. - * @param options The optional arguments to apply to the resultset. + * + * @param query The query to use for retrieving objects from the store. + * @param options The optional arguments to apply to the resultset. */ query(query: Function, options?: dojo.store.api.Store.QueryOptions): dojo.store.api.Store.QueryResults; /** - * + * */ QueryOptions(): void; /** - * + * */ QueryResults(): void; /** * Deletes an object by its identity - * - * @param id The identity to use to delete the object + * + * @param id The identity to use to delete the object */ remove(id: number): void; /** - * + * */ SortInformation(): void; /** @@ -17248,21 +17248,21 @@ declare module dojo { * Note that a store user might not call transaction() prior to using put, * delete, etc. in which case these operations effectively could be thought of * as "auto-commit" style actions. - * + * */ transaction(): dojo.store.api.Store.Transaction; /** - * + * */ Transaction(): void; } - module Store { + namespace Store { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.PutDirectives.html * * Directives passed to put() and add() handlers for guiding the update and * creation of stored objects. - * + * */ class PutDirectives { constructor(); @@ -17271,12 +17271,12 @@ declare module dojo { * this indicates that the created or updated object should be placed before the * object specified by the value of this property. A value of null indicates that the * object should be last. - * + * */ "before": Object; /** * Indicates the identity of the object if a new object is created - * + * */ "id": string; /** @@ -17286,13 +17286,13 @@ declare module dojo { * value of false indicates that an existing object should not be updated, a new * object should be created (which is the same as an add() operation). When * this property is not provided, either an update or creation is acceptable. - * + * */ "overwrite": boolean; /** * If the store is hierarchical (with single parenting) this property indicates the * new parent of the created or updated object. - * + * */ "parent": Object; } @@ -17300,29 +17300,29 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.QueryOptions.html * * Optional object with additional parameters for query results. - * + * */ class QueryOptions { constructor(); /** * The number of how many results should be returned. - * + * */ "count": number; /** * A list of attributes to sort on, as well as direction * For example: - * + * * [{attribute:"price, descending: true}]. * If the sort parameter is omitted, then the natural order of the store may be - * + * * applied if there is a natural order. - * + * */ "sort": Object; /** * The first result to begin iteration on - * + * */ "start": number; } @@ -17331,7 +17331,7 @@ declare module dojo { * * This is an object returned from query() calls that provides access to the results * of a query. Queries may be executed asynchronously. - * + * */ class QueryResults { constructor(); @@ -17340,7 +17340,7 @@ declare module dojo { * property limiting the result set. This property indicates the total number of objects * matching the query (as if "start" and "count" weren't present). This may be * a promise if the query is asynchronous. - * + * */ "total": number; /** @@ -17348,9 +17348,9 @@ declare module dojo { * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/filter. * Note that this may executed asynchronously. The callback may be called * after this function returns. - * - * @param callback Function that is called for each object in the query results - * @param thisObject The object to use as |this| in the callback. + * + * @param callback Function that is called for each object in the query results + * @param thisObject The object to use as |this| in the callback. */ filter(callback: any, thisObject: any): dojo.store.api.Store.QueryResults; /** @@ -17358,9 +17358,9 @@ declare module dojo { * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/forEach. * Note that this may executed asynchronously. The callback may be called * after this function returns. - * - * @param callback Function that is called for each object in the query results - * @param thisObject The object to use as |this| in the callback. + * + * @param callback Function that is called for each object in the query results + * @param thisObject The object to use as |this| in the callback. */ forEach(callback: any, thisObject: any): void; /** @@ -17368,25 +17368,25 @@ declare module dojo { * https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Objects/Array/map. * Note that this may executed asynchronously. The callback may be called * after this function returns. - * - * @param callback Function that is called for each object in the query results - * @param thisObject The object to use as |this| in the callback. + * + * @param callback Function that is called for each object in the query results + * @param thisObject The object to use as |this| in the callback. */ map(callback: any, thisObject: any): dojo.store.api.Store.QueryResults; /** * This registers a callback for notification of when data is modified in the query results. * This is an optional method, and is usually provided by dojo/store/Observable. - * - * @param listener The listener function is called when objects in the query results are modifiedto affect the query result. The listener function is called with the following arguments:listener(object, removedFrom, insertedInto);The object parameter indicates the object that was create, modified, or deleted.The removedFrom parameter indicates the index in the result array wherethe object used to be. If the value is -1, then the object is an addition tothis result set (due to a new object being created, or changed such that itis a part of the result set).The insertedInto parameter indicates the index in the result array wherethe object should be now. If the value is -1, then the object is a removalfrom this result set (due to an object being deleted, or changed such that itis not a part of the result set). - * @param includeAllUpdates This indicates whether or not to include object updates that do not affectthe inclusion or order of the object in the query results. By default this is false,which means that if any object is updated in such a way that it remainsin the result set and it's position in result sets is not affected, then the listenerwill not be fired. + * + * @param listener The listener function is called when objects in the query results are modifiedto affect the query result. The listener function is called with the following arguments:listener(object, removedFrom, insertedInto);The object parameter indicates the object that was create, modified, or deleted.The removedFrom parameter indicates the index in the result array wherethe object used to be. If the value is -1, then the object is an addition tothis result set (due to a new object being created, or changed such that itis a part of the result set).The insertedInto parameter indicates the index in the result array wherethe object should be now. If the value is -1, then the object is a removalfrom this result set (due to an object being deleted, or changed such that itis not a part of the result set). + * @param includeAllUpdates This indicates whether or not to include object updates that do not affectthe inclusion or order of the object in the query results. By default this is false,which means that if any object is updated in such a way that it remainsin the result set and it's position in result sets is not affected, then the listenerwill not be fired. */ observe(listener: Function, includeAllUpdates: any): void; /** * This registers a callback for when the query is complete, if the query is asynchronous. * This is an optional method, and may not be present for synchronous queries. - * - * @param callback This is called when the query is completed successfully, and is passed a single argumentthat is an array representing the query results. - * @param errorHandler This is called if the query failed, and is passed a single argument that is the errorfor the failure. + * + * @param callback This is called when the query is completed successfully, and is passed a single argumentthat is an array representing the query results. + * @param errorHandler This is called if the query failed, and is passed a single argument that is the errorfor the failure. */ then(callback: any, errorHandler: any): void; } @@ -17394,18 +17394,18 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/api/Store.SortInformation.html * * An object describing what attribute to sort on, and the direction of the sort. - * + * */ class SortInformation { constructor(); /** * The name of the attribute to sort on. - * + * */ "attribute": string; /** * The direction of the sort. Default is false. - * + * */ "descending": boolean; } @@ -17414,7 +17414,7 @@ declare module dojo { * * This is an object returned from transaction() calls that represents the current * transaction. - * + * */ class Transaction { constructor(); @@ -17422,16 +17422,16 @@ declare module dojo { * Aborts the transaction. This may throw an error if it fails. Of if the operation * is asynchronous, it may return a promise that represents the eventual success * or failure of the abort. - * - * @param callback - * @param thisObject + * + * @param callback + * @param thisObject */ abort(callback: any, thisObject: any): void; /** * Commits the transaction. This may throw an error if it fails. Of if the operation * is asynchronous, it may return a promise that represents the eventual success * or failure of the commit. - * + * */ commit(): void; } @@ -17439,7 +17439,7 @@ declare module dojo { } - module util { + namespace util { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/store/util/QueryResults.html * @@ -17450,10 +17450,10 @@ declare module dojo { * will return a plain array of data, other stores may return deferreds or * promises; this wrapper makes sure that all results can be treated * the same. - * + * * Additional methods include forEach, filter and map. - * - * @param results The result set as an array, or a promise for an array. + * + * @param results The result set as an array, or a promise for an array. */ interface QueryResults{(results: any[]): void} /** @@ -17466,10 +17466,10 @@ declare module dojo { * will return a plain array of data, other stores may return deferreds or * promises; this wrapper makes sure that all results can be treated * the same. - * + * * Additional methods include forEach, filter and map. - * - * @param results The result set as an array, or a promise for an array. + * + * @param results The result set as an array, or a promise for an array. */ interface QueryResults{(results: dojo.promise.Promise): void} /** @@ -17481,16 +17481,16 @@ declare module dojo { * the use of a simple object hash as a filter. The hash will be used to * match properties on data objects with the corresponding value given. In * other words, only exact matches will be returned. - * + * * This function can be used as a template for more complex query engines; * for example, an engine can be created that accepts an object hash that * contains filtering functions, or a string that gets evaluated, etc. - * + * * When creating a new dojo.store, simply set the store's queryEngine * field as a reference to this function. - * - * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). - * @param options OptionalAn object that contains optional information such as sort, start, and count. + * + * @param query An object hash with fields that may match fields of items in the store.Values in the hash will be compared by normal == operator, but regular expressionsor any object that provides a test() method are also supported and can beused to match strings by more complex expressions(and then the regex's or object's test() method will be used to match values). + * @param options OptionalAn object that contains optional information such as sort, start, and count. */ interface SimpleQueryEngine{(query: Object, options?: dojo.store.api.Store.QueryOptions): void} } @@ -17501,40 +17501,40 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/date.html * * Date manipulation utilities - * + * */ interface date { /** * Add to a Date in intervals of different size, from milliseconds to years - * - * @param date Date object to start with - * @param interval A string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday" - * @param amount How much to add to the date. + * + * @param date Date object to start with + * @param interval A string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday" + * @param amount How much to add to the date. */ add(date: Date, interval: String, amount: number): any; /** * Compare two date objects by date, time, or both. * Returns 0 if equal, positive if a > b, else negative. - * - * @param date1 Date object - * @param date2 OptionalDate object. If not specified, the current Date is used. - * @param portion OptionalA string indicating the "date" or "time" portion of a Date object.Compares both "date" and "time" by default. One of the following:"date", "time", "datetime" + * + * @param date1 Date object + * @param date2 OptionalDate object. If not specified, the current Date is used. + * @param portion OptionalA string indicating the "date" or "time" portion of a Date object.Compares both "date" and "time" by default. One of the following:"date", "time", "datetime" */ compare(date1: Date, date2?: Date, portion?: String): number; /** * Get the difference in a specific unit of time (e.g., number of * months, weeks, days, etc.) between two dates, rounded to the * nearest integer. - * - * @param date1 Date object - * @param date2 OptionalDate object. If not specified, the current Date is used. - * @param interval OptionalA string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday"Defaults to "day". + * + * @param date1 Date object + * @param date2 OptionalDate object. If not specified, the current Date is used. + * @param interval OptionalA string representing the interval. One of the following:"year", "month", "day", "hour", "minute", "second","millisecond", "quarter", "week", "weekday"Defaults to "day". */ difference(date1: Date, date2?: Date, interval?: String): any; /** * Returns the number of days in the month used by dateObject - * - * @param dateObject + * + * @param dateObject */ getDaysInMonth(dateObject: Date): number; /** @@ -17543,8 +17543,8 @@ declare module dojo { * the Date object -- UTC offset is not a time zone. See * http://www.twinsun.com/tz/tz-link.htm Note: results may be * inconsistent across browsers. - * - * @param dateObject Needed because the timezone may vary with time (daylight savings) + * + * @param dateObject Needed because the timezone may vary with time (daylight savings) */ getTimezoneName(dateObject: Date): any; /** @@ -17554,17 +17554,17 @@ declare module dojo { * a year is a multiple of 100, then it is only a leap year if it is * also a multiple of 400. For example, 1900 was not a leap year, but * 2000 is one. - * - * @param dateObject + * + * @param dateObject */ isLeapYear(dateObject: Date): boolean; } - module date { + namespace date { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/date/stamp.html * * TODOC - * + * */ interface stamp { /** @@ -17573,26 +17573,26 @@ declare module dojo { * RFC3339, except that partial input is allowed. * Can also process dates as specified by the W3C * The following combinations are valid: - * + * * dates only * yyyy * yyyy-MM * yyyy-MM-dd - * + * * times only, with an optional time zone appended * THH:mm * THH:mm:ss * THH:mm:ss.SSS - * + * * and "datetimes" which could be any combination of the above * timezones may be specified as Z (for UTC) or +/- followed by a time expression HH:mm * Assumes the local time zone if not specified. Does not validate. Improperly formatted * input may return null. Arguments which are out of bounds will be handled * by the Date constructor (e.g. January 32nd typically gets resolved to February 1st) * Only years between 100 and 9999 are supported. - * - * @param formattedString A string such as 2005-06-30T08:05:00-07:00 or 2005-06-30 or T08:05:00 - * @param defaultTime OptionalUsed for defaults for fields omitted in the formattedString.Uses 1970-01-01T00:00:00.0Z by default. + * + * @param formattedString A string such as 2005-06-30T08:05:00-07:00 or 2005-06-30 or T08:05:00 + * @param defaultTime OptionalUsed for defaults for fields omitted in the formattedString.Uses 1970-01-01T00:00:00.0Z by default. */ fromISOString(formattedString: String, defaultTime?: number): any; /** @@ -17600,9 +17600,9 @@ declare module dojo { * When options.selector is omitted, output follows RFC3339 * The local time zone is included as an offset from GMT, except when selector=='time' (time without a date) * Does not check bounds. Only years between 100 and 9999 are supported. - * - * @param dateObject A Date object - * @param options OptionalAn object with the following properties:selector (String): "date" or "time" for partial formatting of the Date object.Both date and time will be formatted by default.zulu (Boolean): if true, UTC/GMT is used for a timezonemilliseconds (Boolean): if true, output milliseconds + * + * @param dateObject A Date object + * @param options OptionalAn object with the following properties:selector (String): "date" or "time" for partial formatting of the Date object.Both date and time will be formatted by default.zulu (Boolean): if true, UTC/GMT is used for a timezonemilliseconds (Boolean): if true, output milliseconds */ toISOString(dateObject: Date, options?: Object): any; } @@ -17610,7 +17610,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/date/locale.html * * This modules defines dojo/date/locale, localization methods for Date. - * + * */ interface locale { /** @@ -17621,9 +17621,9 @@ declare module dojo { * The pattern string should match the format used by the CLDR. * See dojo/date/locale.format() for details. * The resources must be loaded by dojo.requireLocalization() prior to use - * - * @param packageName - * @param bundleName + * + * @param packageName + * @param bundleName */ addCustomFormats(packageName: String, bundleName: String): void; /** @@ -17636,25 +17636,25 @@ declare module dojo { * the dojo/date/locale.addCustomFormats() method. * Formatting patterns are implemented using the syntax described at * unicode.org - * - * @param dateObject the date and/or time to be formatted. If a time only is formatted,the values in the year, month, and day fields are irrelevant. Theopposite is true when formatting only dates. - * @param options OptionalAn object with the following properties:selector (String): choice of 'time','date' (default: date and time)formatLength (String): choice of long, short, medium or full (plus any custom additions). Defaults to 'short'datePattern (String): override pattern with this stringtimePattern (String): override pattern with this stringam (String): override strings for am in timespm (String): override strings for pm in timeslocale (String): override the locale used to determine formatting rulesfullYear (Boolean): (format only) use 4 digit years whenever 2 digit years are called forstrict (Boolean): (parse only) strict parsing, off by default + * + * @param dateObject the date and/or time to be formatted. If a time only is formatted,the values in the year, month, and day fields are irrelevant. Theopposite is true when formatting only dates. + * @param options OptionalAn object with the following properties:selector (String): choice of 'time','date' (default: date and time)formatLength (String): choice of long, short, medium or full (plus any custom additions). Defaults to 'short'datePattern (String): override pattern with this stringtimePattern (String): override pattern with this stringam (String): override strings for am in timespm (String): override strings for pm in timeslocale (String): override the locale used to determine formatting rulesfullYear (Boolean): (format only) use 4 digit years whenever 2 digit years are called forstrict (Boolean): (parse only) strict parsing, off by default */ format(dateObject: Date, options?: Object): any; /** * Used to get localized strings from dojo.cldr for day or month names. - * - * @param item 'months' || 'days' - * @param type 'wide' || 'abbr' || 'narrow' (e.g. "Monday", "Mon", or "M" respectively, in English) - * @param context Optional'standAlone' || 'format' (default) - * @param locale Optionaloverride locale used to find the names + * + * @param item 'months' || 'days' + * @param type 'wide' || 'abbr' || 'narrow' (e.g. "Monday", "Mon", or "M" respectively, in English) + * @param context Optional'standAlone' || 'format' (default) + * @param locale Optionaloverride locale used to find the names */ getNames(item: String, type: String, context?: String, locale?: String): any; /** * Determines if the date falls on a weekend, according to local custom. - * - * @param dateObject Optional - * @param locale Optional + * + * @param dateObject Optional + * @param locale Optional */ isWeekend(dateObject?: Date, locale?: String): boolean; /** @@ -17666,75 +17666,75 @@ declare module dojo { * formatting lengths may be chosen, with "full" used by default. * Custom patterns may be used or registered with translations using * the dojo/date/locale.addCustomFormats() method. - * + * * Formatting patterns are implemented using the syntax described at * unicode.org * When two digit years are used, a century is chosen according to a sliding * window of 80 years before and 20 years after present year, for both yy and yyyy patterns. * year < 100CE requires strict mode. - * - * @param value A string representation of a date - * @param options OptionalAn object with the following properties:selector (String): choice of 'time','date' (default: date and time)formatLength (String): choice of long, short, medium or full (plus any custom additions). Defaults to 'short'datePattern (String): override pattern with this stringtimePattern (String): override pattern with this stringam (String): override strings for am in timespm (String): override strings for pm in timeslocale (String): override the locale used to determine formatting rulesfullYear (Boolean): (format only) use 4 digit years whenever 2 digit years are called forstrict (Boolean): (parse only) strict parsing, off by default + * + * @param value A string representation of a date + * @param options OptionalAn object with the following properties:selector (String): choice of 'time','date' (default: date and time)formatLength (String): choice of long, short, medium or full (plus any custom additions). Defaults to 'short'datePattern (String): override pattern with this stringtimePattern (String): override pattern with this stringam (String): override strings for am in timespm (String): override strings for pm in timeslocale (String): override the locale used to determine formatting rulesfullYear (Boolean): (format only) use 4 digit years whenever 2 digit years are called forstrict (Boolean): (parse only) strict parsing, off by default */ parse(value: String, options?: Object): any; /** * Builds the regular needed to parse a localized date - * - * @param options OptionalAn object with the following properties:selector (String): choice of 'time','date' (default: date and time)formatLength (String): choice of long, short, medium or full (plus any custom additions). Defaults to 'short'datePattern (String): override pattern with this stringtimePattern (String): override pattern with this stringam (String): override strings for am in timespm (String): override strings for pm in timeslocale (String): override the locale used to determine formatting rulesfullYear (Boolean): (format only) use 4 digit years whenever 2 digit years are called forstrict (Boolean): (parse only) strict parsing, off by default + * + * @param options OptionalAn object with the following properties:selector (String): choice of 'time','date' (default: date and time)formatLength (String): choice of long, short, medium or full (plus any custom additions). Defaults to 'short'datePattern (String): override pattern with this stringtimePattern (String): override pattern with this stringam (String): override strings for am in timespm (String): override strings for pm in timeslocale (String): override the locale used to determine formatting rulesfullYear (Boolean): (format only) use 4 digit years whenever 2 digit years are called forstrict (Boolean): (parse only) strict parsing, off by default */ regexp(options?: Object): any; } - module locale { + namespace locale { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/date/locale.__FormatOptions.html * - * + * */ class __FormatOptions { constructor(); /** * override strings for am in times - * + * */ "am": string; /** * override pattern with this string - * + * */ "datePattern": string; /** * choice of long, short, medium or full (plus any custom additions). Defaults to 'short' - * + * */ "formatLength": string; /** * (format only) use 4 digit years whenever 2 digit years are called for - * + * */ "fullYear": boolean; /** * override the locale used to determine formatting rules - * + * */ "locale": string; /** * override strings for pm in times - * + * */ "pm": string; /** * choice of 'time','date' (default: date and time) - * + * */ "selector": string; /** * (parse only) strict parsing, off by default - * + * */ "strict": boolean; /** * override pattern with this string - * + * */ "timePattern": string; } @@ -17746,13 +17746,13 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/fx.html * * Effects library on top of Base animations - * + * */ interface fx { /** * Collection of easing functions to use beyond the default * dojo._defaultEasing function. - * + * */ easing: Object; /** @@ -17762,8 +17762,8 @@ declare module dojo { * synthesized events simulating a single animation. (eg: * onEnd of this animation means the end of the chain, * not the individual animations within) - * - * @param animations + * + * @param animations */ chain(animations: dojo._base.fx.Animation[]): any; /** @@ -17771,8 +17771,8 @@ declare module dojo { * Combine an array of dojo/_base/fx.Animations to run in parallel, * providing a new dojo/_base/fx.Animation instance encompasing each * animation, firing standard animation events. - * - * @param animations + * + * @param animations */ combine(animations: dojo._base.fx.Animation[]): any; /** @@ -17780,12 +17780,12 @@ declare module dojo { * Returns an animation that will slide "node" * defined in args Object from its current position to * the position defined by (args.left, args.top). - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on). Special args membersare top and left, which indicate the new position to slide to. + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on). Special args membersare top and left, which indicate the new position to slide to. */ slideTo(args: Object): any; /** - * + * */ Toggler(): void; /** @@ -17794,20 +17794,20 @@ declare module dojo { * node defined in 'args' object from it's current height to * it's natural height (with no scrollbar). * Node must have no margin/border/padding. - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) */ wipeIn(args: Object): any; /** * Shrink a node to nothing and hide it. * Returns an animation that will shrink node defined in "args" * from it's current height to 1px, and then hide it. - * - * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) + * + * @param args A hash-map of standard dojo/_base/fx.Animation constructor properties(such as easing: node: duration: and so on) */ wipeOut(args: Object): any; } - module fx { + namespace fx { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/fx/Toggler.html * @@ -17817,48 +17817,48 @@ declare module dojo { * direction, duration, etc. All available members are mixed into * these animations from the constructor (for example, node, * showDuration, hideDuration). - * - * @param args + * + * @param args */ class Toggler { constructor(args: any); /** * Time in milliseconds to run the hide Animation - * + * */ "hideDuration": number; /** * the node to target for the showing and hiding animations - * + * */ "node": HTMLElement; /** * Time in milliseconds to run the show Animation - * + * */ "showDuration": number; /** * Toggle the node to hidden - * - * @param delay OptionalAmount of time to stall playing the hide animation + * + * @param delay OptionalAmount of time to stall playing the hide animation */ hide(delay?: number): any; /** * The function that returns the dojo.Animation to hide the node - * - * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. + * + * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ hideFunc(args: Object): any; /** * Toggle the node to showing - * - * @param delay OptionalAmount of time to stall playing the show animation + * + * @param delay OptionalAmount of time to stall playing the show animation */ show(delay?: number): any; /** * The function that returns the dojo.Animation to show the node - * - * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. + * + * @param args An object with the following properties:node (DOMNode|String): The node referenced in the animationduration (Integer, optional): Duration of the animation in milliseconds.easing (Function, optional): An easing function. */ showFunc(args: Object): any; } @@ -17872,26 +17872,26 @@ declare module dojo { * and the easing function progresses through that Line determining * how quickly (or slowly) it should go. Or more accurately: modify * the value of the _Line based on the percentage of animation completed. - * + * * All functions follow a simple naming convention of "ease type" + "when". * If the name of the function ends in Out, the easing described appears * towards the end of the animation. "In" means during the beginning, * and InOut means both ranges of the Animation will applied, both * beginning and end. - * + * * One does not call the easing function directly, it must be passed to * the easing property of an animation. - * + * */ interface easing { /** * An easing function that starts away from the target, * and quickly accelerates towards the end value. - * + * * Use caution when the easing will cause values to become * negative as some properties cannot be set to negative values. - * - * @param n Optional + * + * @param n Optional */ backIn(n?: number): number; /** @@ -17899,76 +17899,76 @@ declare module dojo { * An easing function combining the effects of backIn and backOut. * Use caution when the easing will cause values to become negative * as some properties cannot be set to negative values. - * - * @param n Optional + * + * @param n Optional */ backInOut(n?: number): number; /** * An easing function that pops past the range briefly, and slowly comes back. * An easing function that pops past the range briefly, and slowly comes back. - * + * * Use caution when the easing will cause values to become negative as some * properties cannot be set to negative values. - * - * @param n Optional + * + * @param n Optional */ backOut(n?: number): number; /** * An easing function that 'bounces' near the beginning of an Animation - * - * @param n Optional + * + * @param n Optional */ bounceIn(n?: number): number; /** * An easing function that 'bounces' at the beginning and end of the Animation - * - * @param n Optional + * + * @param n Optional */ bounceInOut(n?: number): number; /** * An easing function that 'bounces' near the end of an Animation - * - * @param n Optional + * + * @param n Optional */ bounceOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ circIn(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ circInOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ circOut(n?: number): any; /** - * - * @param n Optional + * + * @param n Optional */ cubicIn(n?: number): any; /** - * - * @param n Optional + * + * @param n Optional */ cubicInOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ cubicOut(n?: number): number; /** * An easing function the elastically snaps from the start value * An easing function the elastically snaps from the start value - * + * * Use caution when the elasticity will cause values to become negative * as some properties cannot be set to negative values. - * - * @param n Optional + * + * @param n Optional */ elasticIn(n?: number): number; /** @@ -17976,11 +17976,11 @@ declare module dojo { * the beginning and end of the Animation. * An easing function that elasticly snaps around the value, near * the beginning and end of the Animation. - * + * * Use caution when the elasticity will cause values to become * negative as some properties cannot be set to negative values. - * - * @param n Optional + * + * @param n Optional */ elasticInOut(n?: number): number; /** @@ -17988,92 +17988,92 @@ declare module dojo { * near the end of the Animation * An easing function that elasticly snaps around the target value, * near the end of the Animation - * + * * Use caution when the elasticity will cause values to become * negative as some properties cannot be set to negative values. - * - * @param n Optional + * + * @param n Optional */ elasticOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ expoIn(n?: number): any; /** - * - * @param n Optional + * + * @param n Optional */ expoInOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ expoOut(n?: number): number; /** * A linear easing function - * - * @param n Optional + * + * @param n Optional */ linear(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ quadIn(n?: number): any; /** - * - * @param n Optional + * + * @param n Optional */ quadInOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ quadOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ quartIn(n?: number): any; /** - * - * @param n Optional + * + * @param n Optional */ quartInOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ quartOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ quintIn(n?: number): any; /** - * - * @param n Optional + * + * @param n Optional */ quintInOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ quintOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ sineIn(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ sineInOut(n?: number): number; /** - * - * @param n Optional + * + * @param n Optional */ sineOut(n?: number): any; } @@ -18084,49 +18084,49 @@ declare module dojo { * * A singleton-style instance of dojo/router/RouterBase. See that * module for specifics. - * + * */ interface router extends dojo.router.RouterBase { } - module router { + namespace router { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/router/RouterBase.html * * A module that allows one to easily map hash-based structures into * callbacks. The router module is a singleton, offering one central * point for all registrations of this type. - * - * @param kwArgs + * + * @param kwArgs */ class RouterBase { constructor(kwArgs: any); /** - * + * */ "globMatch": RegExp; /** - * + * */ "globReplacement": string; /** - * + * */ "idMatch": RegExp; /** - * + * */ "idReplacement": string; /** - * + * */ destroy(): void; /** * A simple pass-through to make changing the hash easy, * without having to require dojo/hash directly. It also * synchronously fires off any routes that match. - * - * @param path - * @param replace + * + * @param path + * @param replace */ go(path: string, replace?: boolean): any; /** @@ -18134,13 +18134,13 @@ declare module dojo { * Given either a string or a regular expression, the router * will monitor the page's hash and respond to changes that * match the string or regex as provided. - * + * * When provided a regex for the route: - * + * * Matching is performed, and the resulting capture groups * are passed through to the callback as an array. * When provided a string for the route: - * + * * The string is parsed as a URL-like structure, like * "/foo/bar" * If any portions of that URL are prefixed with a colon @@ -18152,9 +18152,9 @@ declare module dojo { * anything remaining on the hash will be provided as a * property on the object passed into the callback. Think of * it like a basic means of globbing the end of a route. - * - * @param route A string or regular expression which will be used whenmonitoring hash changes. - * @param callback When the hash matches a pattern as described in the route,this callback will be executed. It will receive an eventobject that will have several properties:params: Either an array or object of properties pulledfrom the new hasholdPath: The hash in its state before the changenewPath: The new hash being shifted topreventDefault: A method that will stop hash changesfrom being actually applied to the active hash. This onlyworks if the hash change was initiated using router.go,as changes initiated more directly to the location.hashproperty will already be in placestopImmediatePropagation: When called, will stop anyfurther bound callbacks on this particular route frombeing executed. If two distinct routes are bound that aredifferent, but both happen to match the current hash insome way, this will not keep other routes from receivingnotice of the change. + * + * @param route A string or regular expression which will be used whenmonitoring hash changes. + * @param callback When the hash matches a pattern as described in the route,this callback will be executed. It will receive an eventobject that will have several properties:params: Either an array or object of properties pulledfrom the new hasholdPath: The hash in its state before the changenewPath: The new hash being shifted topreventDefault: A method that will stop hash changesfrom being actually applied to the active hash. This onlyworks if the hash change was initiated using router.go,as changes initiated more directly to the location.hashproperty will already be in placestopImmediatePropagation: When called, will stop anyfurther bound callbacks on this particular route frombeing executed. If two distinct routes are bound that aredifferent, but both happen to match the current hash insome way, this will not keep other routes from receivingnotice of the change. */ register(route: String, callback: Function): any; /** @@ -18162,13 +18162,13 @@ declare module dojo { * Given either a string or a regular expression, the router * will monitor the page's hash and respond to changes that * match the string or regex as provided. - * + * * When provided a regex for the route: - * + * * Matching is performed, and the resulting capture groups * are passed through to the callback as an array. * When provided a string for the route: - * + * * The string is parsed as a URL-like structure, like * "/foo/bar" * If any portions of that URL are prefixed with a colon @@ -18180,9 +18180,9 @@ declare module dojo { * anything remaining on the hash will be provided as a * property on the object passed into the callback. Think of * it like a basic means of globbing the end of a route. - * - * @param route A string or regular expression which will be used whenmonitoring hash changes. - * @param callback When the hash matches a pattern as described in the route,this callback will be executed. It will receive an eventobject that will have several properties:params: Either an array or object of properties pulledfrom the new hasholdPath: The hash in its state before the changenewPath: The new hash being shifted topreventDefault: A method that will stop hash changesfrom being actually applied to the active hash. This onlyworks if the hash change was initiated using router.go,as changes initiated more directly to the location.hashproperty will already be in placestopImmediatePropagation: When called, will stop anyfurther bound callbacks on this particular route frombeing executed. If two distinct routes are bound that aredifferent, but both happen to match the current hash insome way, this will not keep other routes from receivingnotice of the change. + * + * @param route A string or regular expression which will be used whenmonitoring hash changes. + * @param callback When the hash matches a pattern as described in the route,this callback will be executed. It will receive an eventobject that will have several properties:params: Either an array or object of properties pulledfrom the new hasholdPath: The hash in its state before the changenewPath: The new hash being shifted topreventDefault: A method that will stop hash changesfrom being actually applied to the active hash. This onlyworks if the hash change was initiated using router.go,as changes initiated more directly to the location.hashproperty will already be in placestopImmediatePropagation: When called, will stop anyfurther bound callbacks on this particular route frombeing executed. If two distinct routes are bound that aredifferent, but both happen to match the current hash insome way, this will not keep other routes from receivingnotice of the change. */ register(route: RegExp, callback: Function): any; /** @@ -18192,9 +18192,9 @@ declare module dojo { * us to register route callbacks to happen before any * previously registered callbacks. See the documentation for * register for more details and examples. - * - * @param route - * @param callback + * + * @param route + * @param callback */ registerBefore(route: String, callback: Function): any; /** @@ -18204,17 +18204,17 @@ declare module dojo { * us to register route callbacks to happen before any * previously registered callbacks. See the documentation for * register for more details and examples. - * - * @param route - * @param callback + * + * @param route + * @param callback */ registerBefore(route: RegExp, callback: Function): any; /** * This method must be called to activate the router. Until * startup is called, no hash changes will trigger route * callbacks. - * - * @param defaultPath + * + * @param defaultPath */ startup(defaultPath: any): void; } @@ -18225,7 +18225,7 @@ declare module dojo { * * provides aspect oriented programming functionality, allowing for * one to add before, around, or after advice on existing methods. - * + * */ interface aspect { /** @@ -18236,11 +18236,11 @@ declare module dojo { * The fourth (optional) argument can be set to true to so the function receives the original * arguments (from when the original method was called) rather than the return value. * If there are multiple "after" advisors, they are executed in the order they were registered. - * - * @param target This is the target object - * @param methodName This is the name of the method to attach to. - * @param advice This is function to be called after the original method - * @param receiveArguments OptionalIf this is set to true, the advice function receives the original arguments (from when the original mehtodwas called) rather than the return value of the original/previous method. + * + * @param target This is the target object + * @param methodName This is the name of the method to attach to. + * @param advice This is function to be called after the original method + * @param receiveArguments OptionalIf this is set to true, the advice function receives the original arguments (from when the original mehtodwas called) rather than the return value of the original/previous method. */ after(target: Object, methodName: String, advice: Function, receiveArguments?: boolean): any; /** @@ -18251,10 +18251,10 @@ declare module dojo { * The advisor function should return a function, and this function will be called whenever * the method is called. It will be called with the arguments used to call the method. * Whatever this function returns will be returned as the result of the method call (unless after advise changes it). - * - * @param target This is the target object - * @param methodName This is the name of the method to attach to. - * @param advice This is function to be called around the original method + * + * @param target This is the target object + * @param methodName This is the name of the method to attach to. + * @param advice This is function to be called around the original method */ around(target: Object, methodName: String, advice: Function): void; /** @@ -18266,10 +18266,10 @@ declare module dojo { * If the before method doesn't return anything (returns undefined) the original arguments * will be preserved. * If there are multiple "before" advisors, they are executed in the reverse order they were registered. - * - * @param target This is the target object - * @param methodName This is the name of the method to attach to. - * @param advice This is function to be called before the original method + * + * @param target This is the target object + * @param methodName This is the name of the method to attach to. + * @param advice This is function to be called before the original method */ before(target: Object, methodName: String, advice: Function): void; } @@ -18277,7 +18277,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/back.html * * Browser history management resources - * + * */ interface back { /** @@ -18286,44 +18286,44 @@ declare module dojo { * argument should implement a function called either "back", * "backButton", or "handle". The string "back" will be passed as * the first and only argument to this callback. - * + * * To support getting forward button notifications, the object * argument should implement a function called either "forward", * "forwardButton", or "handle". The string "forward" will be * passed as the first and only argument to this callback. - * + * * If you want the browser location string to change, define "changeUrl" on the object. If the * value of "changeUrl" is true, then a unique number will be appended to the URL as a fragment * identifier (http://some.domain.com/path#uniquenumber). If it is any other value that does * not evaluate to false, that value will be used as the fragment identifier. For example, * if changeUrl: 'page1', then the URL will look like: http://some.domain.com/path#page1 - * + * * There are problems with using dojo/back with semantically-named fragment identifiers * ("hash values" on an URL). In most browsers it will be hard for dojo/back to know * distinguish a back from a forward event in those cases. For back/forward support to * work best, the fragment ID should always be a unique value (something using new Date().getTime() * for example). If you want to detect hash changes using semantic fragment IDs, then * consider using dojo/hash instead (in Dojo 1.4+). - * - * @param args The state object that will be added to the history list. + * + * @param args The state object that will be added to the history list. */ addToHistory(args: Object): void; /** - * + * */ getHash(): any; /** * private method. Do not call this directly. - * + * */ goBack(): void; /** * private method. Do not call this directly. - * + * */ goForward(): void; /** - * Initializes the undo stack. This must be called from a + * Initializes the undo stack. This must be called from a * block that lives inside the <body> tag to prevent bugs on IE. *

*

Only call this method before the page's DOM is finished loading. Otherwise @@ -18332,7 +18332,7 @@ declare module dojo { *

*
*
- *
setHash(h) + *
setHash(h) *
*
Defined by dojo/back *
@@ -18352,7 +18352,7 @@ declare module dojo { * *
*
- *
setInitialState(args) + *
setInitialState(args) *
*
Defined by dojo/back *
@@ -18372,7 +18372,7 @@ declare module dojo { * args * Object *

See the addToHistory() function for the list of valid args properties.

- * + * * * * @@ -18387,11 +18387,11 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/colors.html * * Color utilities, extending Base dojo.Color - * + * */ interface colors { /** - * + * */ ThreeD: Object; } @@ -18406,7 +18406,7 @@ declare module dojo { * currency support is included. A fixed number of decimal places is determined based * on the currency type and is not determined by the 'pattern' argument. The fractional * portion is optional, by default, and variable length decimals are not supported. - * + * */ interface currency { /** @@ -18415,129 +18415,129 @@ declare module dojo { * Formatting patterns * appropriate to the locale are chosen from the CLDR * as well as the appropriate symbols and delimiters and number of decimal places. - * - * @param value the number to be formatted. - * @param options Optional + * + * @param value the number to be formatted. + * @param options Optional */ format(value: number, options?: dojo.currency.__FormatOptions): any; /** - * - * @param expression - * @param options OptionalAn object with the following properties:type (String, optional): Should not be set. Value is assumed to be currency.currency (String, optional): an ISO4217 currency code, a three letter sequence like "USD".For use with dojo.currency only.symbol (String, optional): localized currency symbol. The default will be looked up in table of supported currencies in dojo.cldrA ISO4217 currency code will be used if not found.places (Number, optional): fixed number of decimal places to accept. The default is determined based on which currency is used.fractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by the currencyor explicit 'places' parameter. The value [true,false] makes the fractional portion optional.By default for currencies, it the fractional portion is optional.pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators + * + * @param expression + * @param options OptionalAn object with the following properties:type (String, optional): Should not be set. Value is assumed to be currency.currency (String, optional): an ISO4217 currency code, a three letter sequence like "USD".For use with dojo.currency only.symbol (String, optional): localized currency symbol. The default will be looked up in table of supported currencies in dojo.cldrA ISO4217 currency code will be used if not found.places (Number, optional): fixed number of decimal places to accept. The default is determined based on which currency is used.fractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by the currencyor explicit 'places' parameter. The value [true,false] makes the fractional portion optional.By default for currencies, it the fractional portion is optional.pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators */ parse(expression: String, options?: Object): any; /** - * - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. + * + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. */ regexp(options?: Object): any; } - module currency { + namespace currency { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/currency.__FormatOptions.html * - * + * */ class __FormatOptions { constructor(); /** * an ISO4217 currency code, a three letter sequence like "USD". * For use with dojo.currency only. - * + * */ "currency": string; /** * If false, show no decimal places, overriding places and pattern settings. - * + * */ "fractional": boolean; /** * override the locale used to determine formatting rules - * + * */ "locale": string; /** * override formatting pattern * with this string. Default value is based on locale. Overriding this property will defeat * localization. Literal characters in patterns are not supported. - * + * */ "pattern": string; /** * number of decimal places to show. Default is defined based on which currency is used. - * + * */ "places": number; /** * 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1 * means do not round. - * + * */ "round": number; /** * localized currency symbol. The default will be looked up in table of supported currencies in dojo.cldr * A ISO4217 currency code will be used if not found. - * + * */ "symbol": string; /** * Should not be set. Value is assumed to be "currency". - * + * */ "type": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/currency.__ParseOptions.html * - * + * */ class __ParseOptions { constructor(); /** * an ISO4217 currency code, a three letter sequence like "USD". * For use with dojo.currency only. - * + * */ "currency": string; /** * Whether to include the fractional portion, where the number of decimal places are implied by the currency * or explicit 'places' parameter. The value [true,false] makes the fractional portion optional. * By default for currencies, it the fractional portion is optional. - * + * */ "fractional": boolean; /** * override the locale used to determine formatting rules - * + * */ "locale": string; /** * override formatting pattern * with this string. Default value is based on locale. Overriding this property will defeat * localization. Literal characters in patterns are not supported. - * + * */ "pattern": string; /** * fixed number of decimal places to accept. The default is determined based on which currency is used. - * + * */ "places": number; /** * strict parsing, false by default. Strict parsing requires input as produced by the format() method. * Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators - * + * */ "strict": boolean; /** * localized currency symbol. The default will be looked up in table of supported currencies in dojo.cldr * A ISO4217 currency code will be used if not found. - * + * */ "symbol": string; /** * Should not be set. Value is assumed to be currency. - * + * */ "type": string; } @@ -18547,130 +18547,130 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom.html * * This module defines the core dojo DOM API. - * + * */ interface dom { /** * Returns DOM node with matching id attribute or falsy value (ex: null or undefined) * if not found. If id is a DomNode, this function is a no-op. - * - * @param id A string to match an HTML id attribute or a reference to a DOM Node - * @param doc OptionalDocument to work in. Defaults to the current value ofdojo/_base/window.doc. Can be used to retrievenode references from other documents. + * + * @param id A string to match an HTML id attribute or a reference to a DOM Node + * @param doc OptionalDocument to work in. Defaults to the current value ofdojo/_base/window.doc. Can be used to retrievenode references from other documents. */ byId(id: String, doc?: HTMLDocument): any; /** * Returns DOM node with matching id attribute or falsy value (ex: null or undefined) * if not found. If id is a DomNode, this function is a no-op. - * - * @param id A string to match an HTML id attribute or a reference to a DOM Node - * @param doc OptionalDocument to work in. Defaults to the current value ofdojo/_base/window.doc. Can be used to retrievenode references from other documents. + * + * @param id A string to match an HTML id attribute or a reference to a DOM Node + * @param doc OptionalDocument to work in. Defaults to the current value ofdojo/_base/window.doc. Can be used to retrievenode references from other documents. */ byId(id: HTMLElement, doc?: HTMLDocument): any; /** * Returns true if node is a descendant of ancestor - * - * @param node string id or node reference to test - * @param ancestor string id or node reference of potential parent to test against + * + * @param node string id or node reference to test + * @param ancestor string id or node reference of potential parent to test against */ isDescendant(node: HTMLElement, ancestor: HTMLElement): boolean; /** * Returns true if node is a descendant of ancestor - * - * @param node string id or node reference to test - * @param ancestor string id or node reference of potential parent to test against + * + * @param node string id or node reference to test + * @param ancestor string id or node reference of potential parent to test against */ isDescendant(node: String, ancestor: HTMLElement): boolean; /** * Returns true if node is a descendant of ancestor - * - * @param node string id or node reference to test - * @param ancestor string id or node reference of potential parent to test against + * + * @param node string id or node reference to test + * @param ancestor string id or node reference of potential parent to test against */ isDescendant(node: HTMLElement, ancestor: String): boolean; /** * Returns true if node is a descendant of ancestor - * - * @param node string id or node reference to test - * @param ancestor string id or node reference of potential parent to test against + * + * @param node string id or node reference to test + * @param ancestor string id or node reference of potential parent to test against */ isDescendant(node: String, ancestor: String): boolean; /** - * - * @param node - * @param selectable + * + * @param node + * @param selectable */ setSelectable(node: any, selectable: any): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-attr.html * - * + * */ interface dom_attr { /** * Gets an attribute on an HTML element. * Handles normalized getting of attributes on DOM Nodes. - * - * @param node id or reference to the element to get the attribute on - * @param name the name of the attribute to get. + * + * @param node id or reference to the element to get the attribute on + * @param name the name of the attribute to get. */ get(node: HTMLElement, name: String): any; /** * Gets an attribute on an HTML element. * Handles normalized getting of attributes on DOM Nodes. - * - * @param node id or reference to the element to get the attribute on - * @param name the name of the attribute to get. + * + * @param node id or reference to the element to get the attribute on + * @param name the name of the attribute to get. */ get(node: String, name: String): any; /** * Returns an effective value of a property or an attribute. - * - * @param node id or reference to the element to remove the attribute from - * @param name the name of the attribute + * + * @param node id or reference to the element to remove the attribute from + * @param name the name of the attribute */ getNodeProp(node: HTMLElement, name: String): any; /** * Returns an effective value of a property or an attribute. - * - * @param node id or reference to the element to remove the attribute from - * @param name the name of the attribute + * + * @param node id or reference to the element to remove the attribute from + * @param name the name of the attribute */ getNodeProp(node: String, name: String): any; /** * Returns true if the requested attribute is specified on the * given element, and false otherwise. - * - * @param node id or reference to the element to check - * @param name the name of the attribute + * + * @param node id or reference to the element to check + * @param name the name of the attribute */ has(node: HTMLElement, name: String): boolean; /** * Returns true if the requested attribute is specified on the * given element, and false otherwise. - * - * @param node id or reference to the element to check - * @param name the name of the attribute + * + * @param node id or reference to the element to check + * @param name the name of the attribute */ has(node: String, name: String): boolean; /** * Removes an attribute from an HTML element. - * - * @param node id or reference to the element to remove the attribute from - * @param name the name of the attribute to remove + * + * @param node id or reference to the element to remove the attribute from + * @param name the name of the attribute to remove */ remove(node: HTMLElement, name: String): void; /** * Removes an attribute from an HTML element. - * - * @param node id or reference to the element to remove the attribute from - * @param name the name of the attribute to remove + * + * @param node id or reference to the element to remove the attribute from + * @param name the name of the attribute to remove */ remove(node: String, name: String): void; /** * Sets an attribute on an HTML element. * Handles normalized setting of attributes on DOM Nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -18680,16 +18680,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the attribute on - * @param name the name of the attribute to set, or a hash of key-value pairs to set. - * @param value Optionalthe value to set for the attribute, if the name is a string. + * + * @param node id or reference to the element to set the attribute on + * @param name the name of the attribute to set, or a hash of key-value pairs to set. + * @param value Optionalthe value to set for the attribute, if the name is a string. */ set(node: HTMLElement, name: String, value?: String): any; /** * Sets an attribute on an HTML element. * Handles normalized setting of attributes on DOM Nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -18699,16 +18699,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the attribute on - * @param name the name of the attribute to set, or a hash of key-value pairs to set. - * @param value Optionalthe value to set for the attribute, if the name is a string. + * + * @param node id or reference to the element to set the attribute on + * @param name the name of the attribute to set, or a hash of key-value pairs to set. + * @param value Optionalthe value to set for the attribute, if the name is a string. */ set(node: String, name: String, value?: String): any; /** * Sets an attribute on an HTML element. * Handles normalized setting of attributes on DOM Nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -18718,16 +18718,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the attribute on - * @param name the name of the attribute to set, or a hash of key-value pairs to set. - * @param value Optionalthe value to set for the attribute, if the name is a string. + * + * @param node id or reference to the element to set the attribute on + * @param name the name of the attribute to set, or a hash of key-value pairs to set. + * @param value Optionalthe value to set for the attribute, if the name is a string. */ set(node: HTMLElement, name: Object, value?: String): any; /** * Sets an attribute on an HTML element. * Handles normalized setting of attributes on DOM Nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -18737,10 +18737,10 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the attribute on - * @param name the name of the attribute to set, or a hash of key-value pairs to set. - * @param value Optionalthe value to set for the attribute, if the name is a string. + * + * @param node id or reference to the element to set the attribute on + * @param name the name of the attribute to set, or a hash of key-value pairs to set. + * @param value Optionalthe value to set for the attribute, if the name is a string. */ set(node: String, name: Object, value?: String): any; } @@ -18748,199 +18748,199 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-class.html * * This module defines the core dojo DOM class API. - * + * */ interface dom_class { /** * Adds the specified classes to the end of the class list on the * passed node. Will not re-apply duplicate classes. - * - * @param node String ID or DomNode reference to add a class string too - * @param classStr A String class name to add, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to add a class string too + * @param classStr A String class name to add, or several space-separated class names,or an array of class names. */ add(node: String, classStr: String): void; /** * Adds the specified classes to the end of the class list on the * passed node. Will not re-apply duplicate classes. - * - * @param node String ID or DomNode reference to add a class string too - * @param classStr A String class name to add, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to add a class string too + * @param classStr A String class name to add, or several space-separated class names,or an array of class names. */ add(node: HTMLElement, classStr: String): void; /** * Adds the specified classes to the end of the class list on the * passed node. Will not re-apply duplicate classes. - * - * @param node String ID or DomNode reference to add a class string too - * @param classStr A String class name to add, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to add a class string too + * @param classStr A String class name to add, or several space-separated class names,or an array of class names. */ add(node: String, classStr: any[]): void; /** * Adds the specified classes to the end of the class list on the * passed node. Will not re-apply duplicate classes. - * - * @param node String ID or DomNode reference to add a class string too - * @param classStr A String class name to add, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to add a class string too + * @param classStr A String class name to add, or several space-separated class names,or an array of class names. */ add(node: HTMLElement, classStr: any[]): void; /** * Returns whether or not the specified classes are a portion of the * class list currently applied to the node. - * - * @param node String ID or DomNode reference to check the class for. - * @param classStr A string class name to look for. + * + * @param node String ID or DomNode reference to check the class for. + * @param classStr A string class name to look for. */ contains(node: String, classStr: String): boolean; /** * Returns whether or not the specified classes are a portion of the * class list currently applied to the node. - * - * @param node String ID or DomNode reference to check the class for. - * @param classStr A string class name to look for. + * + * @param node String ID or DomNode reference to check the class for. + * @param classStr A string class name to look for. */ contains(node: HTMLElement, classStr: String): boolean; /** * Removes the specified classes from node. No contains() * check is required. - * - * @param node String ID or DomNode reference to remove the class from. - * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param node String ID or DomNode reference to remove the class from. + * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ remove(node: String, classStr?: String): void; /** * Removes the specified classes from node. No contains() * check is required. - * - * @param node String ID or DomNode reference to remove the class from. - * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param node String ID or DomNode reference to remove the class from. + * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ remove(node: HTMLElement, classStr?: String): void; /** * Removes the specified classes from node. No contains() * check is required. - * - * @param node String ID or DomNode reference to remove the class from. - * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param node String ID or DomNode reference to remove the class from. + * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ remove(node: String, classStr?: any[]): void; /** * Removes the specified classes from node. No contains() * check is required. - * - * @param node String ID or DomNode reference to remove the class from. - * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. + * + * @param node String ID or DomNode reference to remove the class from. + * @param classStr OptionalAn optional String class name to remove, or several space-separatedclass names, or an array of class names. If omitted, all class nameswill be deleted. */ remove(node: HTMLElement, classStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replace(node: String, addClassStr: String, removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replace(node: HTMLElement, addClassStr: String, removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replace(node: String, addClassStr: any[], removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replace(node: HTMLElement, addClassStr: any[], removeClassStr?: String): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replace(node: String, addClassStr: String, removeClassStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replace(node: HTMLElement, addClassStr: String, removeClassStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replace(node: String, addClassStr: any[], removeClassStr?: any[]): void; /** * Replaces one or more classes on a node if not present. * Operates more quickly than calling dojo.removeClass and dojo.addClass - * - * @param node String ID or DomNode reference to remove the class from. - * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. - * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. + * + * @param node String ID or DomNode reference to remove the class from. + * @param addClassStr A String class name to add, or several space-separated class names,or an array of class names. + * @param removeClassStr OptionalA String class name to remove, or several space-separated class names,or an array of class names. */ replace(node: HTMLElement, addClassStr: any[], removeClassStr?: any[]): void; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. * Returns the condition that was specified directly or indirectly. - * - * @param node String ID or DomNode reference to toggle a class string - * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. - * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. + * + * @param node String ID or DomNode reference to toggle a class string + * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. + * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. */ toggle(node: String, classStr: String, condition?: boolean): boolean; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. * Returns the condition that was specified directly or indirectly. - * - * @param node String ID or DomNode reference to toggle a class string - * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. - * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. + * + * @param node String ID or DomNode reference to toggle a class string + * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. + * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. */ toggle(node: HTMLElement, classStr: String, condition?: boolean): boolean; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. * Returns the condition that was specified directly or indirectly. - * - * @param node String ID or DomNode reference to toggle a class string - * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. - * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. + * + * @param node String ID or DomNode reference to toggle a class string + * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. + * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. */ toggle(node: String, classStr: any[], condition?: boolean): boolean; /** * Adds a class to node if not present, or removes if present. * Pass a boolean condition if you want to explicitly add or remove. * Returns the condition that was specified directly or indirectly. - * - * @param node String ID or DomNode reference to toggle a class string - * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. - * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. + * + * @param node String ID or DomNode reference to toggle a class string + * @param classStr A String class name to toggle, or several space-separated class names,or an array of class names. + * @param condition OptionalIf passed, true means to add the class, false means to remove.Otherwise dojo.hasClass(node, classStr) is used to detect the class presence. */ toggle(node: HTMLElement, classStr: any[], condition?: boolean): boolean; } @@ -18948,7 +18948,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-form.html * * This module defines form-processing functions. - * + * */ interface dom_form { /** @@ -18957,8 +18957,8 @@ declare module dojo { * as a string or an array of strings. Disabled form elements * and unchecked radio and checkboxes are skipped. Multi-select * elements are returned as an array of string values. - * - * @param inputNode + * + * @param inputNode */ fieldToObject(inputNode: HTMLElement): Object; /** @@ -18967,24 +18967,24 @@ declare module dojo { * as a string or an array of strings. Disabled form elements * and unchecked radio and checkboxes are skipped. Multi-select * elements are returned as an array of string values. - * - * @param inputNode + * + * @param inputNode */ fieldToObject(inputNode: String): Object; /** * Create a serialized JSON string from a form node or string * ID identifying the form to serialize - * - * @param formNode - * @param prettyPrint Optional + * + * @param formNode + * @param prettyPrint Optional */ toJson(formNode: HTMLElement, prettyPrint?: boolean): String; /** * Create a serialized JSON string from a form node or string * ID identifying the form to serialize - * - * @param formNode - * @param prettyPrint Optional + * + * @param formNode + * @param prettyPrint Optional */ toJson(formNode: String, prettyPrint?: boolean): String; /** @@ -18993,8 +18993,8 @@ declare module dojo { * string properties in an object which it then returns. Disabled form * elements, buttons, and other non-value form elements are skipped. * Multi-select elements are returned as an array of string values. - * - * @param formNode + * + * @param formNode */ toObject(formNode: HTMLElement): Object; /** @@ -19003,29 +19003,29 @@ declare module dojo { * string properties in an object which it then returns. Disabled form * elements, buttons, and other non-value form elements are skipped. * Multi-select elements are returned as an array of string values. - * - * @param formNode + * + * @param formNode */ toObject(formNode: String): Object; /** * Returns a URL-encoded string representing the form passed as either a * node or string ID identifying the form to serialize - * - * @param formNode + * + * @param formNode */ toQuery(formNode: HTMLElement): String; /** * Returns a URL-encoded string representing the form passed as either a * node or string ID identifying the form to serialize - * - * @param formNode + * + * @param formNode */ toQuery(formNode: String): String; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-construct.html * - * + * */ interface dom_construct { /** @@ -19034,17 +19034,17 @@ declare module dojo { * A DOM Element creation function. A shorthand method for creating a node or * a fragment, and allowing for a convenient optional attribute setting step, * as well as an optional DOM placement reference. - * + * * Attributes are set by passing the optional object through dojo.setAttr. * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * + * * Placement is done via dojo.place, assuming the new node to be the action * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. */ create(tag: HTMLElement, attrs: Object, refNode?: HTMLElement, pos?: String): any; /** @@ -19053,17 +19053,17 @@ declare module dojo { * A DOM Element creation function. A shorthand method for creating a node or * a fragment, and allowing for a convenient optional attribute setting step, * as well as an optional DOM placement reference. - * + * * Attributes are set by passing the optional object through dojo.setAttr. * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * + * * Placement is done via dojo.place, assuming the new node to be the action * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. */ create(tag: String, attrs: Object, refNode?: HTMLElement, pos?: String): any; /** @@ -19072,17 +19072,17 @@ declare module dojo { * A DOM Element creation function. A shorthand method for creating a node or * a fragment, and allowing for a convenient optional attribute setting step, * as well as an optional DOM placement reference. - * + * * Attributes are set by passing the optional object through dojo.setAttr. * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * + * * Placement is done via dojo.place, assuming the new node to be the action * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. */ create(tag: HTMLElement, attrs: Object, refNode?: String, pos?: String): any; /** @@ -19091,17 +19091,17 @@ declare module dojo { * A DOM Element creation function. A shorthand method for creating a node or * a fragment, and allowing for a convenient optional attribute setting step, * as well as an optional DOM placement reference. - * + * * Attributes are set by passing the optional object through dojo.setAttr. * See dojo.setAttr for noted caveats and nuances, and API if applicable. - * + * * Placement is done via dojo.place, assuming the new node to be the action * node, passing along the optional reference node and position. - * - * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. - * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. - * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. - * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. + * + * @param tag A string of the element to create (eg: "div", "a", "p", "li", "script", "br"),or an existing DOM node to process. + * @param attrs An object-hash of attributes to set on the newly created node.Can be null, if you don't want to set any attributes/styles.See: dojo.setAttr for a description of available attributes. + * @param refNode OptionalOptional reference node. Used by dojo.place to place the newly creatednode somewhere in the dom relative to refNode. Can be a DomNode referenceor String ID of a node. + * @param pos OptionalOptional positional reference. Defaults to "last" by way of dojo.place,though can be set to "first","after","before","last", "replace" or "only"to further control the placement of the new node relative to the refNode.'refNode' is required if a 'pos' is specified. */ create(tag: String, attrs: Object, refNode?: String, pos?: String): any; /** @@ -19109,8 +19109,8 @@ declare module dojo { * children. * Removes a node from its parent, clobbering it and all of its * children. Function only works with DomNodes, and returns nothing. - * - * @param node A String ID or DomNode reference of the element to be destroyed + * + * @param node A String ID or DomNode reference of the element to be destroyed */ destroy(node: HTMLElement): void; /** @@ -19118,132 +19118,132 @@ declare module dojo { * children. * Removes a node from its parent, clobbering it and all of its * children. Function only works with DomNodes, and returns nothing. - * - * @param node A String ID or DomNode reference of the element to be destroyed + * + * @param node A String ID or DomNode reference of the element to be destroyed */ destroy(node: String): void; /** * safely removes all children of the node. - * - * @param node a reference to a DOM node or an id. + * + * @param node a reference to a DOM node or an id. */ empty(node: HTMLElement): void; /** * safely removes all children of the node. - * - * @param node a reference to a DOM node or an id. + * + * @param node a reference to a DOM node or an id. */ empty(node: String): void; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: HTMLElement, refNode: HTMLElement, position?: String): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: String, refNode: HTMLElement, position?: String): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: HTMLElement, refNode: String, position?: String): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: String, refNode: String, position?: String): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: HTMLElement, refNode: HTMLElement, position?: number): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: String, refNode: HTMLElement, position?: number): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: HTMLElement, refNode: String, position?: number): HTMLElement; /** * Attempt to insert node into the DOM, choosing from various positioning options. * Returns the first argument resolved to a DOM node. - * - * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode - * @param refNode id or node reference to use as basis for placement - * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified + * + * @param node id or node reference, or HTML fragment starting with "<" to place relative to refNode + * @param refNode id or node reference to use as basis for placement + * @param position Optionalstring noting the position of node relative to refNode or anumber indicating the location in the childNodes collection of refNode.Accepted string values are:beforeafterreplaceonlyfirstlast"first" and "last" indicate positions as children of refNode, "replace" replaces refNode,"only" replaces all children. position defaults to "last" if not specified */ place(node: String, refNode: String, position?: number): HTMLElement; /** * instantiates an HTML fragment returning the corresponding DOM. - * - * @param frag the HTML fragment - * @param doc Optionaloptional document to use when creating DOM nodes, defaults todojo/_base/window.doc if not specified. + * + * @param frag the HTML fragment + * @param doc Optionaloptional document to use when creating DOM nodes, defaults todojo/_base/window.doc if not specified. */ toDom(frag: String, doc?: HTMLDocument): any; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-prop.html * - * + * */ interface dom_prop { /** - * + * */ names: Object; /** * Gets a property on an HTML element. * Handles normalized getting of properties on DOM nodes. - * - * @param node id or reference to the element to get the property on - * @param name the name of the property to get. + * + * @param node id or reference to the element to get the property on + * @param name the name of the property to get. */ get(node: HTMLElement, name: String): any; /** * Gets a property on an HTML element. * Handles normalized getting of properties on DOM nodes. - * - * @param node id or reference to the element to get the property on - * @param name the name of the property to get. + * + * @param node id or reference to the element to get the property on + * @param name the name of the property to get. */ get(node: String, name: String): any; /** * Sets a property on an HTML element. * Handles normalized setting of properties on DOM nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -19253,16 +19253,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property */ set(node: HTMLElement, name: String, value?: String): any; /** * Sets a property on an HTML element. * Handles normalized setting of properties on DOM nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -19272,16 +19272,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property */ set(node: String, name: String, value?: String): any; /** * Sets a property on an HTML element. * Handles normalized setting of properties on DOM nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -19291,16 +19291,16 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property */ set(node: HTMLElement, name: Object, value?: String): any; /** * Sets a property on an HTML element. * Handles normalized setting of properties on DOM nodes. - * + * * When passing functions as values, note that they will not be * directly assigned to slots on the node, but rather the default * behavior will be removed and the new behavior will be added @@ -19310,50 +19310,50 @@ declare module dojo { * should cancel form submission using dojo.stopEvent() on the * passed event object instead of returning a boolean value from * the handler itself. - * - * @param node id or reference to the element to set the property on - * @param name the name of the property to set, or a hash object to setmultiple properties at once. - * @param value OptionalThe value to set for the property + * + * @param node id or reference to the element to set the property on + * @param name the name of the property to set, or a hash object to setmultiple properties at once. + * @param value OptionalThe value to set for the property */ set(node: String, name: Object, value?: String): any; } - module dom_prop { + namespace dom_prop { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-prop.names.html * - * + * */ interface names { /** - * + * */ class: string; /** - * + * */ colspan: string; /** - * + * */ for: string; /** - * + * */ frameborder: string; /** - * + * */ readonly: string; /** - * + * */ rowspan: string; /** - * + * */ tabindex: string; /** - * + * */ valuetype: string; } @@ -19363,84 +19363,84 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-style.html * * This module defines the core dojo DOM style API. - * + * */ interface dom_style { /** - * - * @param node - * @param name + * + * @param node + * @param name */ get(node: HTMLElement, name: String): any; /** - * - * @param node - * @param name + * + * @param node + * @param name */ get(node: String, name: String): any; /** - * - * @param node - * @param name + * + * @param node + * @param name */ get(node: HTMLElement, name: Object): any; /** - * - * @param node - * @param name + * + * @param node + * @param name */ get(node: String, name: Object): any; /** * Returns a "computed style" object. * Gets a "computed style" object which can be used to gather * information about the current state of the rendered node. - * + * * Note that this may behave differently on different browsers. * Values may have different formats and value encodings across * browsers. - * + * * Note also that this method is expensive. Wherever possible, * reuse the returned object. - * + * * Use the dojo/dom-style.get() method for more consistent (pixelized) * return values. - * - * @param node A reference to a DOM node. Does NOT support taking anID string for speed reasons. + * + * @param node A reference to a DOM node. Does NOT support taking anID string for speed reasons. */ getComputedStyle(node: HTMLElement): void; /** - * - * @param node - * @param name - * @param value Optional + * + * @param node + * @param name + * @param value Optional */ set(node: HTMLElement, name: String, value?: String): any; /** - * - * @param node - * @param name - * @param value Optional + * + * @param node + * @param name + * @param value Optional */ set(node: String, name: String, value?: String): any; /** - * - * @param node - * @param name - * @param value Optional + * + * @param node + * @param name + * @param value Optional */ set(node: HTMLElement, name: Object, value?: String): any; /** - * - * @param node - * @param name - * @param value Optional + * + * @param node + * @param name + * @param value Optional */ set(node: String, name: Object, value?: String): any; /** * converts style value to pixels on IE or return a numeric value. - * - * @param node - * @param value + * + * @param node + * @param value */ toPixelValue(node: HTMLElement, value: String): number; } @@ -19448,17 +19448,17 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/dom-geometry.html * * This module defines the core dojo DOM geometry API. - * + * */ interface dom_geometry { /** - * + * */ boxModel: string; /** * Returns an object with {node, x, y} with corresponding offsets. - * - * @param doc OptionalOptional document to query. If unspecified, use win.doc. + * + * @param doc OptionalOptional document to query. If unspecified, use win.doc. */ docScroll(doc?: HTMLDocument): Object; /** @@ -19466,9 +19466,9 @@ declare module dojo { * returns a positive one. All codes using documentElement.scrollLeft * must call this function to fix this error, otherwise the position * will offset to right when there is a horizontal scrollbar. - * - * @param scrollLeft - * @param doc OptionalOptional document to query. If unspecified, use win.doc. + * + * @param scrollLeft + * @param doc OptionalOptional document to query. If unspecified, use win.doc. */ fixIeBiDiScrollLeft(scrollLeft: number, doc?: HTMLDocument): number; /** @@ -19480,77 +19480,77 @@ declare module dojo { * The w/h are used for calculating boxes. * Normally application code will not need to invoke this * directly, and will use the ...box... functions instead. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getBorderExtents(node: HTMLElement, computedStyle?: Object): Object; /** * Returns an object that encodes the width, height, left and top * positions of the node's content box, irrespective of the * current box model. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getContentBox(node: HTMLElement, computedStyle?: Object): Object; /** * returns the offset in x and y from the document body to the * visual edge of the page for IE * The following values in IE contain an offset: - * + * * event.clientX * event.clientY * node.getBoundingClientRect().left * node.getBoundingClientRect().top * But other position related values do not contain this offset, - * + * * such as node.offsetLeft, node.offsetTop, node.style.left and * node.style.top. The offset is always (2, 2) in LTR direction. * When the body is in RTL direction, the offset counts the width * of left scroll bar's width. This function computes the actual * offset. - * - * @param doc OptionalOptional document to query. If unspecified, use win.doc. + * + * @param doc OptionalOptional document to query. If unspecified, use win.doc. */ getIeDocumentElementOffset(doc?: HTMLDocument): Object; /** * returns an object that encodes the width, height, left and top * positions of the node's margin box. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getMarginBox(node: HTMLElement, computedStyle?: Object): Object; /** * returns object with properties useful for box fitting with * regards to box margins (i.e., the outer-box). - * + * * l/t = marginLeft, marginTop, respectively * w = total width, margin inclusive * h = total height, margin inclusive * The w/h are used for calculating boxes. * Normally application code will not need to invoke this * directly, and will use the ...box... functions instead. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getMarginExtents(node: HTMLElement, computedStyle?: Object): Object; /** * returns an object that encodes the width and height of * the node's margin box - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getMarginSize(node: HTMLElement, computedStyle?: Object): Object; /** * returns an object that encodes the width and height of * the node's margin box - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getMarginSize(node: String, computedStyle?: Object): Object; /** @@ -19562,40 +19562,40 @@ declare module dojo { * The w/h are used for calculating boxes. * Normally application code will not need to invoke this * directly, and will use the ...box... functions instead. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getPadBorderExtents(node: HTMLElement, computedStyle?: Object): Object; /** * Returns object with special values specifically useful for node * fitting. * Returns an object with w, h, l, t properties: - * + * * l/t/r/b = left/top/right/bottom padding (respectively) * w = the total of the left and right padding * h = the total of the top and bottom padding * If 'node' has position, l/t forms the origin for child nodes. - * + * * The w/h are used for calculating boxes. * Normally application code will not need to invoke this * directly, and will use the ...box... functions instead. - * - * @param node - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ getPadExtents(node: HTMLElement, computedStyle?: Object): Object; /** * Returns true if the current language is left-to-right, and false otherwise. - * - * @param doc OptionalOptional document to query. If unspecified, use win.doc. + * + * @param doc OptionalOptional document to query. If unspecified, use win.doc. */ isBodyLtr(doc?: HTMLDocument): boolean; /** * Normalizes the geometry of a DOM event, normalizing the pageX, pageY, * offsetX, offsetY, layerX, and layerX properties - * - * @param event + * + * @param event */ normalizeEvent(event: Object): void; /** @@ -19609,9 +19609,9 @@ declare module dojo { * viewport. * Uses the border-box model (inclusive of border and padding but * not margin). Does not act as a setter. - * - * @param node - * @param includeScroll Optional + * + * @param node + * @param includeScroll Optional */ position(node: HTMLElement, includeScroll?: boolean): { w: number; h: number; x: number; y: number }; /** @@ -19625,18 +19625,18 @@ declare module dojo { * viewport. * Uses the border-box model (inclusive of border and padding but * not margin). Does not act as a setter. - * - * @param node - * @param includeScroll Optional + * + * @param node + * @param includeScroll Optional */ position(node: String, includeScroll?: boolean): { w: number; h: number; x: number; y: number }; /** * Sets the size of the node's contents, irrespective of margins, * padding, or borders. - * - * @param node - * @param box hash with optional "w", and "h" properties for "width", and "height"respectively. All specified properties should have numeric values in whole pixels. - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param box hash with optional "w", and "h" properties for "width", and "height"respectively. All specified properties should have numeric values in whole pixels. + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ setContentSize(node: HTMLElement, box: Object, computedStyle?: Object): void; /** @@ -19644,10 +19644,10 @@ declare module dojo { * (left/top), irrespective of box model. Think of it as a * passthrough to setBox that handles box-model vagaries for * you. - * - * @param node - * @param box hash with optional "l", "t", "w", and "h" properties for "left", "right", "width", and "height"respectively. All specified properties should have numeric values in whole pixels. - * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). + * + * @param node + * @param box hash with optional "l", "t", "w", and "h" properties for "left", "right", "width", and "height"respectively. All specified properties should have numeric values in whole pixels. + * @param computedStyle OptionalThis parameter accepts computed styles object.If this parameter is omitted, the functions will calldojo/dom-style.getComputedStyle to get one. It is a better way, callingdojo/dom-style.getComputedStyle once, and then pass the reference to thiscomputedStyle parameter. Wherever possible, reuse the returnedobject of dojo/dom-style.getComputedStyle(). */ setMarginBox(node: HTMLElement, box: Object, computedStyle?: Object): void; } @@ -19655,21 +19655,21 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/gears.html * * TODOC - * + * */ interface gears { /** * True if client is using Google Gears - * + * */ available: Object; } - module gears { + namespace gears { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/gears.available.html * * True if client is using Google Gears - * + * */ interface available { } @@ -19679,7 +19679,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/html.html * * TODOC - * + * */ interface html { /** @@ -19693,10 +19693,10 @@ declare module dojo { * an HTML string into the DOM, but it only handles inserting an HTML string as DOM * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ set(node: HTMLElement, cont: String, params?: Object): any; /** @@ -19710,10 +19710,10 @@ declare module dojo { * an HTML string into the DOM, but it only handles inserting an HTML string as DOM * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ set(node: HTMLElement, cont: HTMLElement, params?: Object): any; /** @@ -19727,53 +19727,53 @@ declare module dojo { * an HTML string into the DOM, but it only handles inserting an HTML string as DOM * elements, or inserting a DOM node. dojo/dom-construct.place does not handle NodeList insertions * or the other capabilities as defined by the params object for this method. - * - * @param node the parent element that will receive the content - * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes - * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter + * + * @param node the parent element that will receive the content + * @param cont the content to be set on the parent element.This can be an html string, a node reference or a NodeList, dojo/NodeList, Array or other enumerable list of nodes + * @param params OptionalOptional flags/properties to configure the content-setting. See dojo/html/_ContentSetter */ set(node: HTMLElement, cont: NodeList, params?: Object): any; } - module html { + namespace html { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/html._ContentSetter.html * - * - * @param params - * @param node + * + * @param params + * @param node */ class _ContentSetter { constructor(params: Object, node: String); /** * Should the content be treated as a full html document, * and the real content stripped of , wrapper before injection - * + * */ "cleanContent": boolean; /** * The content to be placed in the node. Can be an HTML string, a node reference, or a enumerable list of nodes - * + * */ "content": string; /** * Should the content be treated as a full html document, * and the real content stripped of wrapper before injection - * + * */ "extractContent": boolean; /** * Usually only used internally, and auto-generated with each instance - * + * */ "id": Object; /** * An node which will be the parent element that we set content into - * + * */ "node": HTMLElement; /** * Should the node by passed to the parser after the new content is set - * + * */ "parseContent": boolean; /** @@ -19781,43 +19781,43 @@ declare module dojo { * will search for data-dojo-type (or dojoType). For backwards compatibility * reasons defaults to dojo._scopeName (which is "dojo" except when * multi-version support is used, when it will be something like dojo16, dojo20, etc.) - * + * */ "parserScope": string; /** * Start the child widgets after parsing them. Only obeyed if parseContent is true. - * + * */ "startup": boolean; /** * cleanly empty out existing content - * + * */ empty(): void; /** * front-end to the set-content sequence - * - * @param cont OptionalAn html string, node or enumerable list of nodes for insertion into the domIf not provided, the object's content property will be used - * @param params Optional + * + * @param cont OptionalAn html string, node or enumerable list of nodes for insertion into the domIf not provided, the object's content property will be used + * @param params Optional */ set(cont: String, params?: Object): any; /** * front-end to the set-content sequence - * - * @param cont OptionalAn html string, node or enumerable list of nodes for insertion into the domIf not provided, the object's content property will be used - * @param params Optional + * + * @param cont OptionalAn html string, node or enumerable list of nodes for insertion into the domIf not provided, the object's content property will be used + * @param params Optional */ set(cont: HTMLElement, params?: Object): any; /** * front-end to the set-content sequence - * - * @param cont OptionalAn html string, node or enumerable list of nodes for insertion into the domIf not provided, the object's content property will be used - * @param params Optional + * + * @param cont OptionalAn html string, node or enumerable list of nodes for insertion into the domIf not provided, the object's content property will be used + * @param params Optional */ set(cont: NodeList, params?: Object): any; /** * sets the content on the node - * + * */ setContent(): void; /** @@ -19825,7 +19825,7 @@ declare module dojo { * tearDown() is not called automatically. * In normal use, the Setter instance properties are simply allowed to fall out of scope * but the tearDown method can be called to explicitly reset this instance. - * + * */ tearDown(): void; /** @@ -19834,24 +19834,24 @@ declare module dojo { * including the node and content provided - before the set operation actually takes place * This default implementation checks for cleanContent and extractContent flags to * optionally pre-process html string content - * + * */ onBegin(): any; /** - * - * @param err + * + * @param err */ onContentError(err: any): String; /** * Called after set(), when the new content has been pushed into the node * It provides an opportunity for post-processing before handing back the node to the caller * This default implementation checks a parseContent flag to optionally run the dojo parser over the new content - * + * */ onEnd(): any; /** - * - * @param err + * + * @param err */ onExecError(err: any): String; } @@ -19861,21 +19861,21 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/io-query.html * * This module defines query string processing functions. - * + * */ interface io_query { /** * takes a name/value mapping object and returns a string representing * a URL-encoded version of that object. - * - * @param map + * + * @param map */ objectToQuery(map: Object): any; /** * Create an object representing a de-serialized query section of a * URL. Query keys with multiple values are returned in an array. - * - * @param str + * + * @param str */ queryToObject(str: String): Object; } @@ -19886,69 +19886,69 @@ declare module dojo { * We choose to include our own plugin to leverage functionality already contained in dojo * and thereby reduce the size of the plugin compared to various loader implementations. Also, this * allows foreign AMD loaders to be used without their plugins. - * + * */ interface i18n { /** - * + * */ cache: Object; /** - * + * */ dynamic: boolean; /** - * + * */ unitTests: any[]; /** - * - * @param moduleName - * @param bundleName - * @param locale + * + * @param moduleName + * @param bundleName + * @param locale */ getL10nName(moduleName: any, bundleName: any, locale: any): String; /** - * - * @param moduleName - * @param bundleName - * @param locale + * + * @param moduleName + * @param bundleName + * @param locale */ getLocalization(moduleName: any, bundleName: any, locale: any): any; /** * id is in one of the following formats - * + * * /nls/ * => load the bundle, localized to config.locale; load all bundles localized to * config.extraLocale (if any); return the loaded bundle localized to config.locale. * /nls// - * => load then return the bundle localized to + * => load then return the bundle localized to * preload/nls// * => for config.locale and all config.extraLocale, load all bundles found * in the best-matching bundle rollup. A value of 1 is returned, which * is meaningless other than to say the plugin is executing the requested * preloads - * + * * In cases 1 and 2, is always normalized to an absolute module id upon entry; see * normalize. In case 3, it is assumed to be absolute; this is arranged by the builder. - * + * * To load a bundle means to insert the bundle into the plugin's cache and publish the bundle * value to the loader. Given , , and a particular , the cache key - * + * * /nls// * will hold the value. Similarly, then plugin will publish this value to the loader by - * + * * define("/nls//", ); * Given this algorithm, other machinery can provide fast load paths be preplacing * values in the plugin's cache, which is public. When a load is demanded the * cache is inspected before starting any loading. Explicitly placing values in the plugin * cache is an advanced/experimental feature that should not be needed; use at your own risk. - * + * * For the normal AMD algorithm, the root bundle is loaded first, which instructs the * plugin what additional localized bundles are required for a particular locale. These * additional locales are loaded and a mix of the root and each progressively-specific * locale is returned. For example: - * + * * The client demands "dojo/i18n!some/path/nls/someBundle * The loader demands load(some/path/nls/someBundle) * This plugin require's "some/path/nls/someBundle", which is the root bundle. @@ -19960,33 +19960,33 @@ declare module dojo { * mixin(mixin(mixin({}, require("some/path/nls/someBundle"), * require("some/path/nls/ab/someBundle")), * require("some/path/nls/ab-cd-ef/someBundle")); - * + * * This value is inserted into the cache and published to the loader at the * key/module-id some/path/nls/someBundle/ab-cd-ef. - * + * * The special preload signature (case 3) instructs the plugin to stop servicing all normal requests * (further preload requests will be serviced) until all ongoing preloading has completed. - * + * * The preload signature instructs the plugin that a special rollup module is available that contains * one or more flattened, localized bundles. The JSON array of available locales indicates which locales * are available. Here is an example: - * + * * *preload*some/path/nls/someModule*["root", "ab", "ab-cd-ef"] * This indicates the following rollup modules are available: - * + * * some/path/nls/someModule_ROOT * some/path/nls/someModule_ab * some/path/nls/someModule_ab-cd-ef * Each of these modules is a normal AMD module that contains one or more flattened bundles in a hash. * For example, assume someModule contained the bundles some/bundle/path/someBundle and * some/bundle/path/someOtherBundle, then some/path/nls/someModule_ab would be expressed as follows: - * + * * define({ * some/bundle/path/someBundle:, * some/bundle/path/someOtherBundle:, * }); * E.g., given this design, preloading for locale=="ab" can execute the following algorithm: - * + * * require(["some/path/nls/someModule_ab"], function(rollup){ * for(var p in rollup){ * var id = p + "/ab", @@ -19996,25 +19996,25 @@ declare module dojo { * }); * Similarly, if "ab-cd" is requested, the algorithm can determine that "ab" is the best available and * load accordingly. - * + * * The builder will write such rollups for every layer if a non-empty localeList profile property is * provided. Further, the builder will include the following cache entry in the cache associated with * any layer. - * + * * "*now":function(r){r(['dojo/i18n!*preload*/nls/*']);} * The *now special cache module instructs the loader to apply the provided function to context-require * with respect to the particular layer being defined. This causes the plugin to hold all normal service * requests until all preloading is complete. - * + * * Notice that this algorithm is rarely better than the standard AMD load algorithm. Consider the normal case * where the target locale has a single segment and a layer depends on a single bundle: - * + * * Without Preloads: - * + * * Layer loads root bundle. * bundle is demanded; plugin loads single localized bundle. * With Preloads: - * + * * Layer causes preloading of target bundle. * bundle is demanded; service is delayed until preloading complete; bundle is returned. * In each case a single transaction is required to load the target bundle. In cases where multiple bundles @@ -20022,32 +20022,32 @@ declare module dojo { * the normal path requires an additional transaction for each additional bundle/locale-segment. However all * of these additional transactions can be done concurrently. Owing to this analysis, the entire preloading * algorithm can be discard during a build by setting the has feature dojo-preload-i18n-Api to false. - * - * @param id - * @param require - * @param load + * + * @param id + * @param require + * @param load */ load(id: any, require: any, load: any): void; /** * id may be relative. * preload has form *preload*/nls/* and * therefore never looks like a relative - * - * @param id - * @param toAbsMid + * + * @param id + * @param toAbsMid */ normalize(id: any, toAbsMid: any): any; /** - * - * @param locale + * + * @param locale */ normalizeLocale(locale: any): any; } - module i18n { + namespace i18n { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/i18n.cache.html * - * + * */ interface cache { } @@ -20057,7 +20057,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/json.html * * Functions to parse and serialize JSON - * + * */ interface json { /** @@ -20069,9 +20069,9 @@ declare module dojo { * valid JSON strings are parsed (otherwise throwing an error). Without the strict * parameter, the content passed to this method must come * from a trusted source. - * - * @param str a string literal of a JSON item, for instance:'{ "foo": [ "bar", 1, { "baz": "thud" } ] }' - * @param strict When set to true, this will ensure that only valid, secure JSON is ever parsed.Make sure this is set to true for untrusted content. Note that on browsers/engineswithout native JSON support, setting this to true will run slower. + * + * @param str a string literal of a JSON item, for instance:'{ "foo": [ "bar", 1, { "baz": "thud" } ] }' + * @param strict When set to true, this will ensure that only valid, secure JSON is ever parsed.Make sure this is set to true for untrusted content. Note that on browsers/engineswithout native JSON support, setting this to true will run slower. */ parse(str: any, strict: any): void; /** @@ -20079,30 +20079,30 @@ declare module dojo { * Returns a JSON serialization of an object. * This function follows native JSON API * Note that this doesn't check for infinite recursion, so don't do that! - * - * @param value A value to be serialized. - * @param replacer A replacer function that is called for each value and can return a replacement - * @param spacer A spacer string to be used for pretty printing of JSON + * + * @param value A value to be serialized. + * @param replacer A replacer function that is called for each value and can return a replacement + * @param spacer A spacer string to be used for pretty printing of JSON */ stringify(value: any, replacer: any, spacer: any): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/loadInit.html * - * + * */ interface loadInit { /** - * + * */ dynamic: number; /** - * + * */ load: Object; /** - * - * @param id + * + * @param id */ normalize(id: any): any; } @@ -20111,263 +20111,263 @@ declare module dojo { * * Definitions for common key values. Client code should test keyCode against these named constants, * as the actual codes can vary by browser. - * + * */ interface keys { /** - * + * */ ALT: number; /** - * + * */ BACKSPACE: number; /** - * + * */ CAPS_LOCK: number; /** - * + * */ CLEAR: number; /** - * + * */ copyKey: number; /** - * + * */ CTRL: number; /** - * + * */ DELETE: number; /** - * + * */ DOWN_ARROW: number; /** - * + * */ DOWN_DPAD: number; /** - * + * */ END: number; /** - * + * */ ENTER: number; /** - * + * */ ESCAPE: number; /** - * + * */ F1: number; /** - * + * */ F10: number; /** - * + * */ F11: number; /** - * + * */ F12: number; /** - * + * */ F13: number; /** - * + * */ F14: number; /** - * + * */ F15: number; /** - * + * */ F2: number; /** - * + * */ F3: number; /** - * + * */ F4: number; /** - * + * */ F5: number; /** - * + * */ F6: number; /** - * + * */ F7: number; /** - * + * */ F8: number; /** - * + * */ F9: number; /** - * + * */ HELP: number; /** - * + * */ HOME: number; /** - * + * */ INSERT: number; /** - * + * */ LEFT_ARROW: number; /** - * + * */ LEFT_DPAD: number; /** - * + * */ LEFT_WINDOW: number; /** - * + * */ META: number; /** - * + * */ NUM_LOCK: number; /** - * + * */ NUMPAD_0: number; /** - * + * */ NUMPAD_1: number; /** - * + * */ NUMPAD_2: number; /** - * + * */ NUMPAD_3: number; /** - * + * */ NUMPAD_4: number; /** - * + * */ NUMPAD_5: number; /** - * + * */ NUMPAD_6: number; /** - * + * */ NUMPAD_7: number; /** - * + * */ NUMPAD_8: number; /** - * + * */ NUMPAD_9: number; /** - * + * */ NUMPAD_DIVIDE: number; /** - * + * */ NUMPAD_ENTER: number; /** - * + * */ NUMPAD_MINUS: number; /** - * + * */ NUMPAD_MULTIPLY: number; /** - * + * */ NUMPAD_PERIOD: number; /** - * + * */ NUMPAD_PLUS: number; /** - * + * */ PAGE_DOWN: number; /** - * + * */ PAGE_UP: number; /** - * + * */ PAUSE: number; /** - * + * */ RIGHT_ARROW: number; /** - * + * */ RIGHT_DPAD: number; /** - * + * */ RIGHT_WINDOW: number; /** - * + * */ SCROLL_LOCK: number; /** - * + * */ SELECT: number; /** - * + * */ SHIFT: number; /** - * + * */ SPACE: number; /** - * + * */ TAB: number; /** - * + * */ UP_ARROW: number; /** - * + * */ UP_DPAD: number; } @@ -20376,42 +20376,42 @@ declare module dojo { * * This module provide mouse event handling utility functions and exports * mouseenter and mouseleave event emulation. - * + * */ interface mouse { /** * This is an extension event for the mouseenter that IE provides, emulating the * behavior on other browsers. - * + * */ enter: Object; /** * This is an extension event for the mouseleave that IE provides, emulating the * behavior on other browsers. - * + * */ leave: Object; /** * Test an event object (from a mousedown event) to see if the left button was pressed. - * + * */ isLeft(): void; /** * Test an event object (from a mousedown event) to see if the middle button was pressed. - * + * */ isMiddle(): void; /** * Test an event object (from a mousedown event) to see if the right button was pressed. - * + * */ isRight(): void; /** * This is an extension event for the mousewheel that non-Mozilla browsers provide, * emulating the behavior on Mozilla based browsers. - * - * @param node - * @param listener + * + * @param node + * @param listener */ wheel(node: any, listener: any): any; } @@ -20420,25 +20420,25 @@ declare module dojo { * * This AMD plugin module allows native Node.js modules to be loaded by AMD modules using the Dojo * loader. Note that this plugin will not work with AMD loaders other than the Dojo loader. - * + * */ interface node { /** * Standard AMD plugin interface. See https://github.com/amdjs/amdjs-api/wiki/Loader-Plugins * for information. - * - * @param id - * @param require - * @param load + * + * @param id + * @param require + * @param load */ load(id: String, require: Function, load: Function): void; /** * Produces a normalized id to be used by node. Relative ids are resolved relative to the requesting * module's location in the file system and will return an id with path separators appropriate for the * local file system. - * - * @param id - * @param normalize + * + * @param id + * @param normalize */ normalize(id: String, normalize: Function): any; } @@ -20446,7 +20446,7 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.html * * localized formatting and parsing routines for Number - * + * */ interface number_ { /** @@ -20456,9 +20456,9 @@ declare module dojo { * Common Locale Data Repository as well as the appropriate symbols and * delimiters. * If value is Infinity, -Infinity, or is not a valid JavaScript number, return null. - * - * @param value the number to be formatted - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.places (Number, optional): fixed number of decimal places to show. This overrides anyinformation in the provided pattern.round (Number, optional): 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1means do not round.locale (String, optional): override the locale used to determine formatting rulesfractional (Boolean, optional): If false, show no decimal places, overriding places and pattern settings. + * + * @param value the number to be formatted + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.places (Number, optional): fixed number of decimal places to show. This overrides anyinformation in the provided pattern.round (Number, optional): 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1means do not round.locale (String, optional): override the locale used to determine formatting rulesfractional (Boolean, optional): If false, show no decimal places, overriding places and pattern settings. */ format(value: number, options?: Object): any; /** @@ -20469,17 +20469,17 @@ declare module dojo { * and follow the syntax described by * unicode.org TR35 * Note that literal characters in patterns are not supported. - * - * @param expression A string representation of a Number - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsfractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by patternor explicit 'places' parameter. The value [true,false] makes the fractional portion optional. + * + * @param expression A string representation of a Number + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization. Literal characters in patterns are not supported.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsfractional (Boolean|Array, optional): Whether to include the fractional portion, where the number of decimal places are implied by patternor explicit 'places' parameter. The value [true,false] makes the fractional portion optional. */ parse(expression: String, options?: Object): number; /** * Builds the regular needed to parse a number * Returns regular expression with positive and negative match, group * and decimal separators - * - * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. + * + * @param options OptionalAn object with the following properties:pattern (String, optional): override formatting patternwith this string. Default value is based on locale. Overriding this property will defeatlocalization.type (String, optional): choose a format type based on the locale from the following:decimal, scientific (not yet supported), percent, currency. decimal by default.locale (String, optional): override the locale used to determine formatting rulesstrict (Boolean, optional): strict parsing, false by default. Strict parsing requires input as produced by the format() method.Non-strict is more permissive, e.g. flexible on white space, omitting thousands separatorsplaces (Number|String, optional): number of decimal places to accept: Infinity, a positive number, ora range "n,m". Defined by pattern or Infinity if pattern not provided. */ regexp(options: Object): any; /** @@ -20488,129 +20488,129 @@ declare module dojo { * Similar to Number.toFixed(), but compensates for browser quirks. Rounding can be done by * fractional increments also, such as the nearest quarter. * NOTE: Subject to floating point errors. See dojox/math/round for experimental workaround. - * - * @param value The number to round - * @param places OptionalThe number of decimal places where rounding takes place. Defaults to 0 for whole rounding.Must be non-negative. - * @param increment OptionalRounds next place to nearest value of increment/10. 10 by default. + * + * @param value The number to round + * @param places OptionalThe number of decimal places where rounding takes place. Defaults to 0 for whole rounding.Must be non-negative. + * @param increment OptionalRounds next place to nearest value of increment/10. 10 by default. */ round(value: number, places?: number, increment?: number): number; } - module number_ { + namespace number_ { /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__FormatAbsoluteOptions.html * - * + * */ class __FormatAbsoluteOptions { constructor(); /** * the decimal separator - * + * */ "decimal": string; /** * the group separator - * + * */ "group": string; /** * number of decimal places. the range "n,m" will format to m places. - * + * */ "places": number; /** * 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1 * means don't round. - * + * */ "round": number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__IntegerRegexpFlags.html * - * + * */ class __IntegerRegexpFlags { constructor(); /** * group size between separators - * + * */ "groupSize": number; /** * second grouping, where separators 2..n have a different interval than the first separator (for India) - * + * */ "groupSize2": number; /** * The character used as the thousands separator. Default is no * separator. For more than one symbol use an array, e.g. [",", ""], * makes ',' optional. - * + * */ "separator": string; /** * The leading plus-or-minus sign. Can be true, false, or [true,false]. * Default is [true, false], (i.e. will match if it is signed * or unsigned). - * + * */ "signed": boolean; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__FormatOptions.html * - * + * */ class __FormatOptions { constructor(); /** * If false, show no decimal places, overriding places and pattern settings. - * + * */ "fractional": boolean; /** * override the locale used to determine formatting rules - * + * */ "locale": string; /** * override formatting pattern * with this string. Default value is based on locale. Overriding this property will defeat * localization. Literal characters in patterns are not supported. - * + * */ "pattern": string; /** * fixed number of decimal places to show. This overrides any * information in the provided pattern. - * + * */ "places": number; /** * 5 rounds to nearest .5; 0 rounds to nearest whole (default). -1 * means do not round. - * + * */ "round": number; /** * choose a format type based on the locale from the following: * decimal, scientific (not yet supported), percent, currency. decimal by default. - * + * */ "type": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__RealNumberRegexpFlags.html * - * + * */ class __RealNumberRegexpFlags { constructor(); /** * A string for the character used as the decimal point. Default * is ".". - * + * */ "decimal": string; /** @@ -20618,103 +20618,103 @@ declare module dojo { * false, or [true, false]. Default is [true, false], (i.e. will * match if it is signed or unsigned). flags in regexp.integer can be * applied. - * + * */ "eSigned": boolean; /** * Express in exponential notation. Can be true, false, or [true, * false]. Default is [true, false], (i.e. will match if the * exponential part is present are not). - * + * */ "exponent": boolean; /** * Whether decimal places are used. Can be true, false, or [true, * false]. Default is [true, false] which means optional. - * + * */ "fractional": boolean; /** * The integer number of decimal places or a range given as "n,m". If * not given, the decimal part is optional and the number of places is * unlimited. - * + * */ "places": number; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__ParseOptions.html * - * + * */ class __ParseOptions { constructor(); /** * Whether to include the fractional portion, where the number of decimal places are implied by pattern * or explicit 'places' parameter. The value [true,false] makes the fractional portion optional. - * + * */ "fractional": boolean; /** * override the locale used to determine formatting rules - * + * */ "locale": string; /** * override formatting pattern * with this string. Default value is based on locale. Overriding this property will defeat * localization. Literal characters in patterns are not supported. - * + * */ "pattern": string; /** * strict parsing, false by default. Strict parsing requires input as produced by the format() method. * Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators - * + * */ "strict": boolean; /** * choose a format type based on the locale from the following: * decimal, scientific (not yet supported), percent, currency. decimal by default. - * + * */ "type": string; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojo/number.__RegexpOptions.html * - * + * */ class __RegexpOptions { constructor(); /** * override the locale used to determine formatting rules - * + * */ "locale": string; /** * override formatting pattern * with this string. Default value is based on locale. Overriding this property will defeat * localization. - * + * */ "pattern": string; /** * number of decimal places to accept: Infinity, a positive number, or * a range "n,m". Defined by pattern or Infinity if pattern not provided. - * + * */ "places": number; /** * strict parsing, false by default. Strict parsing requires input as produced by the format() method. * Non-strict is more permissive, e.g. flexible on white space, omitting thousands separators - * + * */ "strict": boolean; /** * choose a format type based on the locale from the following: * decimal, scientific (not yet supported), percent, currency. decimal by default. - * + * */ "type": string; } @@ -20724,29 +20724,29 @@ declare module dojo { * Permalink: http://dojotoolkit.org/api/1.9/dojo/parser.html * * The Dom/Widget parsing package - * + * */ interface parser { /** * Calls new ctor(params, node), where params is the hash of parameters specified on the node, * excluding data-dojo-type and data-dojo-mixins. Does not call startup(). - * - * @param ctor Widget constructor. - * @param node This node will be replaced/attached to by the widget. It also specifies the arguments to pass to ctor. - * @param mixin OptionalAttributes in this object will be passed as parameters to ctor,overriding attributes specified on the node. - * @param options OptionalAn options object used to hold kwArgs for instantiation. See parse.options argument for details. - * @param scripts OptionalArray of * One can provide XML or JSON data by simply quoting the data as a string, and parsing the data - * + * * on the client. * If you use the authorization window.name protocol, the requester should include an * authElement element in the args, and a request will be created like: - * + * * http://othersite.com/greeting?windowname=auth * And the server can respond like this: - * + * * * When using windowName from a XD Dojo build, make sure to set the - * + * * dojo.dojoBlankHtmlUrl property to a local URL. - * - * @param method The method to use to send the request, GET or POST - * @param args See dojo.xhrargs.authElement: DOMNode?By providing an authElement, this indicates that windowName should use theauthorized window.name protocol, relying onthe loaded XD resource to return to the provided return URL on completionof authorization/authentication. The provided authElement will be used to placethe iframe in, so the user can interact with the server resource for authenticationand/or authorization to access the resource.args.onAuthLoad: Function?When using authorized access to resources, this function will be called when theauthorization page has been loaded. (When authorization is actually completed,the deferred callback function is called with the result). The primary use for thisis to make the authElement visible to the user once the resource has loaded(this can be preferable to showing the iframe while the resource is loadingsince it may not require authorization, it may simply return the resource). + * + * @param method The method to use to send the request, GET or POST + * @param args See dojo.xhrargs.authElement: DOMNode?By providing an authElement, this indicates that windowName should use theauthorized window.name protocol, relying onthe loaded XD resource to return to the provided return URL on completionof authorization/authentication. The provided authElement will be used to placethe iframe in, so the user can interact with the server resource for authenticationand/or authorization to access the resource.args.onAuthLoad: Function?When using authorized access to resources, this function will be called when theauthorization page has been loaded. (When authorization is actually completed,the deferred callback function is called with the result). The primary use for thisis to make the authElement visible to the user once the resource has loaded(this can be preferable to showing the iframe while the resource is loadingsince it may not require authorization, it may simply return the resource). */ send(method: String, args: Object): any; } diff --git a/dojo/dojox.jq.d.ts b/dojo/dojox.jq.d.ts index d2e7405f9c..a63f4075de 100644 --- a/dojo/dojox.jq.d.ts +++ b/dojo/dojox.jq.d.ts @@ -1,14 +1,14 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +declare namespace dojox { -declare module dojox { - /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/jq.html * - * + * */ interface jq { } diff --git a/dojo/dojox.json.d.ts b/dojo/dojox.json.d.ts index a7a6da1efe..1aa4a492cd 100644 --- a/dojo/dojox.json.d.ts +++ b/dojo/dojox.json.d.ts @@ -1,11 +1,11 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module dojox { - - module json { +declare namespace dojox { + + namespace json { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/json/query.html * @@ -17,12 +17,12 @@ declare module dojox { * wildcard string comparisons and various operators. JSONQuery generally supersets * JSONPath and provides syntax that matches and behaves like JavaScript where * possible. - * + * * JSONQuery evaluations begin with the provided object, which can referenced with * $. From * the starting object, various operators can be successively applied, each operating * on the result of the last operation. - * + * * Supported Operators * .property - This will return the provided property of the object, behaving exactly * like JavaScript. @@ -67,17 +67,17 @@ declare module dojox { * in JavaScript. * dojox.json.query(queryString,object) * and - * + * * dojox.json.query(queryString)(object) * always return identical results. The first one immediately evaluates, the second one returns a - * + * * function that then evaluates the object. - * - * @param query Query string - * @param obj OptionalTarget of the JSONQuery + * + * @param query Query string + * @param obj OptionalTarget of the JSONQuery */ interface query{(query: String, obj?: Object): void} - module schema { + namespace schema { } /** @@ -89,41 +89,41 @@ declare module dojox { * On parsing, references are resolved. When references are made to * ids/objects that have been loaded yet, the loader function will be set to * _loadObject to denote a lazy loading (not loaded yet) object. - * + * */ interface ref { /** - * + * */ refAttribute: string; /** - * + * */ serializeFunctions: boolean; /** * evaluates the passed string-form of a JSON object. - * - * @param str a string literal of a JSON item, for instance:'{ "foo": [ "bar", 1, { "baz": "thud" } ] }' - * @param args OptionalSee resolveJson + * + * @param str a string literal of a JSON item, for instance:'{ "foo": [ "bar", 1, { "baz": "thud" } ] }' + * @param args OptionalSee resolveJson */ fromJson(str: String, args: Object): any; /** * Indexes and resolves references in the JSON object. * A JSON Schema object that can be used to advise the handling of the JSON (defining ids, date properties, urls, etc) - * - * @param root The root object of the object graph to be processed - * @param args OptionalObject with additional arguments:The index parameter: This is the index object (map) to use to store an index of all the objects. If you are using inter-message referencing, you must provide the same object for each call.The defaultId parameter: This is the default id to use for the root object (if it doesn't define it's own id)The idPrefix parameter: This the prefix to use for the ids as they enter the index. This allows multiple tables to use ids (that might otherwise collide) that enter the same global index. idPrefix should be in the form "/Service/". For example, if the idPrefix is "/Table/", and object is encountered {id:"4",...}, this would go in the index as "/Table/4".The idAttribute parameter: This indicates what property is the identity property. This defaults to "id"The assignAbsoluteIds parameter: This indicates that the resolveJson should assign absolute ids (__id) as the objects are being parsed.The schemas parameter: This provides a map of schemas, from which prototypes can be retrievedThe loader parameter: This is a function that is called added to the reference objects that can't be resolved (lazy objects) + * + * @param root The root object of the object graph to be processed + * @param args OptionalObject with additional arguments:The index parameter: This is the index object (map) to use to store an index of all the objects. If you are using inter-message referencing, you must provide the same object for each call.The defaultId parameter: This is the default id to use for the root object (if it doesn't define it's own id)The idPrefix parameter: This the prefix to use for the ids as they enter the index. This allows multiple tables to use ids (that might otherwise collide) that enter the same global index. idPrefix should be in the form "/Service/". For example, if the idPrefix is "/Table/", and object is encountered {id:"4",...}, this would go in the index as "/Table/4".The idAttribute parameter: This indicates what property is the identity property. This defaults to "id"The assignAbsoluteIds parameter: This indicates that the resolveJson should assign absolute ids (__id) as the objects are being parsed.The schemas parameter: This provides a map of schemas, from which prototypes can be retrievedThe loader parameter: This is a function that is called added to the reference objects that can't be resolved (lazy objects) */ resolveJson(root: Object, args: Object): any; /** * Create a JSON serialization of an object. * This has support for referencing, including circular references, duplicate references, and out-of-message references * id and path-based referencing is supported as well and is based on http://www.json.com/2007/10/19/json-referencing-proposal-and-library/. - * - * @param it an object to be serialized. - * @param prettyPrint Optionalif true, we indent objects and arrays to make the output prettier.The variable dojo.toJsonIndentStr is used as the indent string-- to use something other than the default (tab),change that variable before calling dojo.toJson(). - * @param idPrefix OptionalThe prefix that has been used for the absolute ids - * @param indexSubObjects Optional + * + * @param it an object to be serialized. + * @param prettyPrint Optionalif true, we indent objects and arrays to make the output prettier.The variable dojo.toJsonIndentStr is used as the indent string-- to use something other than the default (tab),change that variable before calling dojo.toJson(). + * @param idPrefix OptionalThe prefix that has been used for the absolute ids + * @param indexSubObjects Optional */ toJson(it: Object, prettyPrint: boolean, idPrefix: Object, indexSubObjects: Object): any; } diff --git a/dojo/dojox.jsonPath.d.ts b/dojo/dojox.jsonPath.d.ts index 7278a436f0..f76fcc98b6 100644 --- a/dojo/dojox.jsonPath.d.ts +++ b/dojo/dojox.jsonPath.d.ts @@ -1,32 +1,32 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module dojox { +declare namespace dojox { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/jsonPath.html * * Deprecated. Should require dojox/jsonPath modules directly rather than trying to access them through * this module. - * + * */ interface jsonPath { } - module jsonPath { + namespace jsonPath { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/jsonPath/query.html * * Perform jsonPath query expr on javascript object or json string obj - * - * @param obj object || json string to perform query on - * @param expr jsonPath expression (string) to be evaluated - * @param arg {} special arguments.resultType: "VALUE"||"BOTH"||"PATH"} (defaults to value)evalType: "RESULT"||"ITEM"} (defaults to ?) + * + * @param obj object || json string to perform query on + * @param expr jsonPath expression (string) to be evaluated + * @param arg {} special arguments.resultType: "VALUE"||"BOTH"||"PATH"} (defaults to value)evalType: "RESULT"||"ITEM"} (defaults to ?) */ interface query { (obj: Object, expr: String, arg: Object): void } } - + } diff --git a/dojo/dojox.lang.d.ts b/dojo/dojox.lang.d.ts index 7092b6da55..e31e6d2922 100644 --- a/dojo/dojox.lang.d.ts +++ b/dojo/dojox.lang.d.ts @@ -1,11 +1,11 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -declare module dojox { - - module lang { +declare namespace dojox { + + namespace lang { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/observable.html * @@ -13,14 +13,14 @@ declare module dojox { * is a proxy to the wrapped object. If you will be making multiple wrapper * objects with the same set of listeners, it is recommended that you * use makeObservable, as it is more memory efficient. - * - * @param wrapped The object to be wrapped and monitored for property access and modification - * @param onRead See dojox.lang.makeObservable.onRead - * @param onWrite See dojox.lang.makeObservable.onWrite - * @param onInvoke See dojox.lang.makeObservable.onInvoke + * + * @param wrapped The object to be wrapped and monitored for property access and modification + * @param onRead See dojox.lang.makeObservable.onRead + * @param onWrite See dojox.lang.makeObservable.onWrite + * @param onInvoke See dojox.lang.makeObservable.onInvoke */ interface observable{(wrapped: Object, onRead: Function, onWrite: Function, onInvoke: Function): void} - module oo { + namespace oo { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/oo/Decorator.html * @@ -28,9 +28,9 @@ declare module dojox { * This object holds an original function or another decorator * object, and implements a special mixin algorithm to be used * by dojox.lang.oo.mixin. - * - * @param value a payload to be processed by the decorator. - * @param decorator a function to handle the custom assignment, or an object with exec()method. The signature is:decorator(/String/ name, /Function/ newValue, /Function/ oldValue). + * + * @param value a payload to be processed by the decorator. + * @param decorator a function to handle the custom assignment, or an object with exec()method. The signature is:decorator(/String/ name, /Function/ newValue, /Function/ oldValue). */ interface Decorator{(value: Object, decorator?: Function): void} /** @@ -40,22 +40,22 @@ declare module dojox { * This object holds an original function or another decorator * object, and implements a special mixin algorithm to be used * by dojox.lang.oo.mixin. - * - * @param value a payload to be processed by the decorator. - * @param decorator a function to handle the custom assignment, or an object with exec()method. The signature is:decorator(/String/ name, /Function/ newValue, /Function/ oldValue). + * + * @param value a payload to be processed by the decorator. + * @param decorator a function to handle the custom assignment, or an object with exec()method. The signature is:decorator(/String/ name, /Function/ newValue, /Function/ oldValue). */ interface Decorator{(value: Object, decorator?: Object): void} - module Decorator { + namespace Decorator { /** * a function to handle the custom assignment, or an object with exec() * method. The signature is: * decorator(/String/ name, /Function/ newValue, /Function/ oldValue). - * + * */ var decorator: Function /** * a payload to be processed by the decorator. - * + * */ var value: Object } @@ -68,9 +68,9 @@ declare module dojox { * This object is used as a holder of an original object * (whose properties are to be copied), and a filter * function used while copying by dojox.lang.oo.mixin. - * - * @param bag object to be filtered - * @param filter a function to handle the name filtering,or an object with exec() method + * + * @param bag object to be filtered + * @param filter a function to handle the name filtering,or an object with exec() method */ interface Filter{(bag: Object, filter: Function): void} /** @@ -81,21 +81,21 @@ declare module dojox { * This object is used as a holder of an original object * (whose properties are to be copied), and a filter * function used while copying by dojox.lang.oo.mixin. - * - * @param bag object to be filtered - * @param filter a function to handle the name filtering,or an object with exec() method + * + * @param bag object to be filtered + * @param filter a function to handle the name filtering,or an object with exec() method */ interface Filter{(bag: Object, filter: Object): void} - module Filter { + namespace Filter { /** * object to be filtered - * + * */ var bag: Object /** * a function to handle the name filtering, * or an object with exec() method - * + * */ var filter: Function } @@ -105,9 +105,9 @@ declare module dojox { * * mixes in two or more objects processing decorators and filters * using defaults as a fallback - * - * @param target target to receive new/updated properties - * @param source source of properties, more than one source is allowed + * + * @param target target to receive new/updated properties + * @param source source of properties, more than one source is allowed */ interface mixin{(target: Object, source: Object[]): void} /** @@ -116,70 +116,70 @@ declare module dojox { * Process properties in place by removing and renaming them. * Properties of an object are to be renamed or removed specified * by "map" argument. Only own properties of "map" are processed. - * - * @param bag the object to be processed - * @param map the dictionary for renaming (false value indicates removal of the named property) + * + * @param bag the object to be processed + * @param map the dictionary for renaming (false value indicates removal of the named property) */ interface rearrange{(bag: Object, map: Object): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/oo/aop.html * - * + * */ interface aop { /** - * + * */ after: Object; /** - * + * */ afterReturning: Object; /** - * + * */ afterThrowing: Object; /** - * + * */ around: Object; /** - * + * */ before: Object; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/oo/general.html * - * + * */ interface general { /** - * + * */ after: Object; /** - * + * */ augment: Object; /** - * + * */ before: Object; /** - * + * */ override: Object; /** - * + * */ shuffle: Object; /** - * + * */ tap: Object; /** - * + * */ wrap: Object; } @@ -188,7 +188,7 @@ declare module dojox { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/aspect.html * - * + * */ interface aspect { /** @@ -201,13 +201,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: String, advice: Object): void; /** @@ -220,13 +220,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: RegExp, advice: Object): void; /** @@ -239,13 +239,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: any[], advice: Object): void; /** @@ -258,13 +258,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: String, advice: Function): void; /** @@ -277,13 +277,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: RegExp, advice: Function): void; /** @@ -296,13 +296,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: any[], advice: Function): void; /** @@ -315,13 +315,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: String, advice: any[]): void; /** @@ -334,13 +334,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: RegExp, advice: any[]): void; /** @@ -353,13 +353,13 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * + * * This function is a convenience wrapper for * dojox.lang.aspect.adviseRaw(). - * - * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. - * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. - * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function. Cannot be a DOM node.If this object is a constructor, its prototype is advised. + * @param method A string name of the function in obj. In case of RegExp allmethods of obj matching the regular expression are advised. + * @param advice An object, which defines advises, or a function, whichreturns such object, or an array of previous items.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ advise(obj: Object, method: any[], advice: any[]): void; /** @@ -371,22 +371,22 @@ declare module dojox { * satisfy the RegExp condition are processed. This function * returns a handle, which can be used to unadvise, or null, * if advising has failed. - * - * @param obj A source object for the advised function.Cannot be a DOM node. - * @param methods An array of method names (strings) to be advised. - * @param advices An array of advices represented by objects or functions thatreturn such objects on demand during the event processing.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. + * + * @param obj A source object for the advised function.Cannot be a DOM node. + * @param methods An array of method names (strings) to be advised. + * @param advices An array of advices represented by objects or functions thatreturn such objects on demand during the event processing.The advice object can define following member functions:before, around, afterReturning, afterThrowing, after.If the function is supplied, it is called with a contextobject once per call to create a temporary advice object, whichis destroyed after the processing. The temporary advice objectcan implement a destroy() method, if it wants to be called whennot needed. */ adviseRaw(obj: Object, methods: any[], advices: any[]): void; /** * Returns the context information for the advice in effect. - * + * */ getContext(): void; /** * Returns the context stack, which reflects executing advices * up to this point. The array is ordered from oldest to newest. * In order to get the active context use dojox.lang.aspect.getContext(). - * + * */ getContextStack(): void; /** @@ -394,22 +394,22 @@ declare module dojox { * Calls the original function (or the next level around advice). * Accepts and passes on any number of arguments, and returns a value. * This function is valid only in the content of around calls. - * + * */ proceed(): void; /** * Detach previously attached AOP-style advices. - * - * @param handle The object returned by dojox.lang.aspect.advise(). + * + * @param handle The object returned by dojox.lang.aspect.advise(). */ unadvise(handle: Object): void; } - module aspect { + namespace aspect { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/aspect/counter.html * * Returns an object, which can be used to count calls to methods. - * + * */ interface counter{(): void} /** @@ -417,9 +417,9 @@ declare module dojox { * * Returns true if the context stack contains a context for a given * instance that satisfies a given method name criteria. - * - * @param instance An instance to be matched. If null, any context will be examined.Otherwise the context should belong to this instance. - * @param method OptionalAn optional pattern to be matched against a method name. Can be a string,a RegExp object or an array of strings and RegExp objects.If it is omitted, any name will satisfy the criteria. + * + * @param instance An instance to be matched. If null, any context will be examined.Otherwise the context should belong to this instance. + * @param method OptionalAn optional pattern to be matched against a method name. Can be a string,a RegExp object or an array of strings and RegExp objects.If it is omitted, any name will satisfy the criteria. */ interface cflow{(instance: Object, method?: String): void} /** @@ -427,9 +427,9 @@ declare module dojox { * * Returns true if the context stack contains a context for a given * instance that satisfies a given method name criteria. - * - * @param instance An instance to be matched. If null, any context will be examined.Otherwise the context should belong to this instance. - * @param method OptionalAn optional pattern to be matched against a method name. Can be a string,a RegExp object or an array of strings and RegExp objects.If it is omitted, any name will satisfy the criteria. + * + * @param instance An instance to be matched. If null, any context will be examined.Otherwise the context should belong to this instance. + * @param method OptionalAn optional pattern to be matched against a method name. Can be a string,a RegExp object or an array of strings and RegExp objects.If it is omitted, any name will satisfy the criteria. */ interface cflow{(instance: Object, method?: RegExp): void} /** @@ -437,17 +437,17 @@ declare module dojox { * * Returns true if the context stack contains a context for a given * instance that satisfies a given method name criteria. - * - * @param instance An instance to be matched. If null, any context will be examined.Otherwise the context should belong to this instance. - * @param method OptionalAn optional pattern to be matched against a method name. Can be a string,a RegExp object or an array of strings and RegExp objects.If it is omitted, any name will satisfy the criteria. + * + * @param instance An instance to be matched. If null, any context will be examined.Otherwise the context should belong to this instance. + * @param method OptionalAn optional pattern to be matched against a method name. Can be a string,a RegExp object or an array of strings and RegExp objects.If it is omitted, any name will satisfy the criteria. */ interface cflow{(instance: Object, method?: any[]): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/aspect/memoizer.html * * Returns an object, which can be used to count calls to methods. - * - * @param keyMaker Optionalthe function, which takes method's arguments and returns a key,which can be used to index the result. + * + * @param keyMaker Optionalthe function, which takes method's arguments and returns a key,which can be used to index the result. */ interface memoizer{(keyMaker?: Function): void} /** @@ -455,8 +455,8 @@ declare module dojox { * * Invalidates the memoizer's cache (see dojox.lang.aspect.memoizer) * after calling certain methods. - * - * @param method OptionalOptional method's name to be guarded: only cache forthis method will be invalidated on call. Can be a stringor an array of method names. If omitted the whole cachewill be invalidated. + * + * @param method OptionalOptional method's name to be guarded: only cache forthis method will be invalidated on call. Can be a stringor an array of method names. If omitted the whole cachewill be invalidated. */ interface memoizerGuard{(method?: String): void} /** @@ -464,24 +464,24 @@ declare module dojox { * * Invalidates the memoizer's cache (see dojox.lang.aspect.memoizer) * after calling certain methods. - * - * @param method OptionalOptional method's name to be guarded: only cache forthis method will be invalidated on call. Can be a stringor an array of method names. If omitted the whole cachewill be invalidated. + * + * @param method OptionalOptional method's name to be guarded: only cache forthis method will be invalidated on call. Can be a stringor an array of method names. If omitted the whole cachewill be invalidated. */ interface memoizerGuard{(method?: any[]): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/aspect/profiler.html * * Returns an object, which can be used to time calls to methods. - * - * @param title OptionalThe optional name of the profile section. + * + * @param title OptionalThe optional name of the profile section. */ interface profiler{(title?: String): void} /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/aspect/timer.html * * Returns an object, which can be used to time calls to methods. - * - * @param name OptionalThe optional unique name of the timer. + * + * @param name OptionalThe optional unique name of the timer. */ interface timer{(name?: String): void} /** @@ -489,8 +489,8 @@ declare module dojox { * * Returns an object, which can be used to trace calls with Firebug's console. * Prints argument, a return value, or an exception. - * - * @param grouping The flag to group output. If true, indents embedded console messages. + * + * @param grouping The flag to group output. If true, indents embedded console messages. */ interface tracer{(grouping: boolean): void} } @@ -498,23 +498,23 @@ declare module dojox { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/async.html * - * + * */ interface async { /** * Executes functions in parallel. As soon as one of them finishes * cancels the rest. - * - * @param x + * + * @param x */ any(x: any): void; /** * Executes a condition, waits for it if necessary, and executes * one of two functions. - * - * @param cond - * @param ifTrue - * @param ifFalse + * + * @param cond + * @param ifTrue + * @param ifFalse */ ifThen(cond: any, ifTrue: any, ifFalse: any): void; /** @@ -522,83 +522,83 @@ declare module dojox { * the body, if truthy value was returned. * Then it repeats the cycle until the condition function returns * a falsy value. - * - * @param cond - * @param body + * + * @param cond + * @param body */ loop(cond: any, body: any): void; /** * Executes functions in parallel. Waits for all of them to finish. - * - * @param x + * + * @param x */ par(x: any): void; /** * Executes a condition, waits for it if necessary, and executes * Nth function from list. - * - * @param cond - * @param x + * + * @param cond + * @param x */ select(cond: any, x: any): void; /** * Executes functions sequentially. Waits if any of them returns Deferred. - * - * @param x + * + * @param x */ seq(x: any): void; } - module async { + namespace async { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/async/timeout.html * - * + * */ interface timeout { /** - * - * @param ms + * + * @param ms */ failOn(ms: any): void; /** - * - * @param ms + * + * @param ms */ from(ms: any): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/async/event.html * - * + * */ interface event { /** - * - * @param src - * @param name + * + * @param src + * @param name */ failOn(src: any, name: any): void; /** - * - * @param src - * @param name + * + * @param src + * @param name */ from(src: any, name: any): void; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/async/topic.html * - * + * */ interface topic { /** - * - * @param topic + * + * @param topic */ failOn(topic: any): void; /** - * - * @param topic + * + * @param topic */ from(topic: any): void; } @@ -607,7 +607,7 @@ declare module dojox { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/functional.html * - * + * */ interface functional { /** @@ -617,694 +617,694 @@ declare module dojox { * built from the snippet. It is meant to be evaled in the * proper context, so local variables can be pulled from the * environment. - * - * @param s + * + * @param s */ buildLambda(s: String): String; /** * clears internal cache of lambdas - * + * */ clearLambdaCache(): void; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: any[], o: Object): boolean; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: any[], o: Object): any[]; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: String, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: Object, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: any[], o: Object): any; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: any[], o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: any[], o: Object): void; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: Function, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: String, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: any[], o: Object): String; /** * returns an array of all keys in the object - * - * @param obj + * + * @param obj */ keys(obj: Object): any[]; /** @@ -1314,8 +1314,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: Function): Function; /** @@ -1325,8 +1325,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: String): Function; /** @@ -1336,170 +1336,170 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: any[]): Function; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: any[], o: Object): any[]; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: String, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: any[], o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: any[], o: Object): any; /** @@ -1510,997 +1510,997 @@ declare module dojox { * text snippet) to an object that contains an array of * arguments, and a body , which is used to calculate the * returning value. - * - * @param s + * + * @param s */ rawLambda(s: String): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: any[], z: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: Function, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: String, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: any[], o: Object): any; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: any[], o: Object): boolean; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: any[], z: Object, o: Object): any[]; /** * returns an array of all values in the object - * - * @param obj + * + * @param obj */ values(obj: Object): any[]; } - module functional { + namespace functional { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/functional/array.html * - * + * */ interface array { /** @@ -2510,694 +2510,694 @@ declare module dojox { * built from the snippet. It is meant to be evaled in the * proper context, so local variables can be pulled from the * environment. - * - * @param s + * + * @param s */ buildLambda(s: String): String; /** * clears internal cache of lambdas - * + * */ clearLambdaCache(): void; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: any[], o: Object): boolean; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: any[], o: Object): any[]; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: String, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: Object, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: any[], o: Object): any; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: any[], o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: any[], o: Object): void; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: Function, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: String, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: any[], o: Object): String; /** * returns an array of all keys in the object - * - * @param obj + * + * @param obj */ keys(obj: Object): any[]; /** @@ -3207,8 +3207,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: Function): Function; /** @@ -3218,8 +3218,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: String): Function; /** @@ -3229,170 +3229,170 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: any[]): Function; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: any[], o: Object): any[]; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: String, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: any[], o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: any[], o: Object): any; /** @@ -3403,996 +3403,996 @@ declare module dojox { * text snippet) to an object that contains an array of * arguments, and a body , which is used to calculate the * returning value. - * - * @param s + * + * @param s */ rawLambda(s: String): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: any[], z: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: Function, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: String, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: any[], o: Object): any; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: any[], o: Object): boolean; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: any[], z: Object, o: Object): any[]; /** * returns an array of all values in the object - * - * @param obj + * + * @param obj */ values(obj: Object): any[]; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/functional/lambda.html * - * + * */ interface lambda { /** @@ -4402,694 +4402,694 @@ declare module dojox { * built from the snippet. It is meant to be evaled in the * proper context, so local variables can be pulled from the * environment. - * - * @param s + * + * @param s */ buildLambda(s: String): String; /** * clears internal cache of lambdas - * + * */ clearLambdaCache(): void; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: any[], o: Object): boolean; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: any[], o: Object): any[]; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: String, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: Object, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: any[], o: Object): any; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: any[], o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: any[], o: Object): void; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: Function, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: String, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: any[], o: Object): String; /** * returns an array of all keys in the object - * - * @param obj + * + * @param obj */ keys(obj: Object): any[]; /** @@ -5099,8 +5099,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: Function): Function; /** @@ -5110,8 +5110,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: String): Function; /** @@ -5121,170 +5121,170 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: any[]): Function; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: any[], o: Object): any[]; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: String, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: any[], o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: any[], o: Object): any; /** @@ -5295,1003 +5295,1003 @@ declare module dojox { * text snippet) to an object that contains an array of * arguments, and a body , which is used to calculate the * returning value. - * - * @param s + * + * @param s */ rawLambda(s: String): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: any[], z: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: Function, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: String, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: any[], o: Object): any; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: any[], o: Object): boolean; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: any[], z: Object, o: Object): any[]; /** * returns an array of all values in the object - * - * @param obj + * + * @param obj */ values(obj: Object): any[]; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/functional/listcomp.html * - * + * */ interface listcomp { } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/functional/object.html * - * + * */ interface object { /** @@ -6301,694 +6301,694 @@ declare module dojox { * built from the snippet. It is meant to be evaled in the * proper context, so local variables can be pulled from the * environment. - * - * @param s + * + * @param s */ buildLambda(s: String): String; /** * clears internal cache of lambdas - * + * */ clearLambdaCache(): void; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: any[], o: Object): boolean; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: any[], o: Object): any[]; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: String, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: Object, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: any[], o: Object): any; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: any[], o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: any[], o: Object): void; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: Function, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: String, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: any[], o: Object): String; /** * returns an array of all keys in the object - * - * @param obj + * + * @param obj */ keys(obj: Object): any[]; /** @@ -6998,8 +6998,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: Function): Function; /** @@ -7009,8 +7009,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: String): Function; /** @@ -7020,170 +7020,170 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: any[]): Function; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: any[], o: Object): any[]; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: String, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: any[], o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: any[], o: Object): any; /** @@ -7194,996 +7194,996 @@ declare module dojox { * text snippet) to an object that contains an array of * arguments, and a body , which is used to calculate the * returning value. - * - * @param s + * + * @param s */ rawLambda(s: String): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: any[], z: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: Function, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: String, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: any[], o: Object): any; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: any[], o: Object): boolean; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: any[], z: Object, o: Object): any[]; /** * returns an array of all values in the object - * - * @param obj + * + * @param obj */ values(obj: Object): any[]; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/functional/reversed.html * - * + * */ interface reversed { /** @@ -8193,694 +8193,694 @@ declare module dojox { * built from the snippet. It is meant to be evaled in the * proper context, so local variables can be pulled from the * environment. - * - * @param s + * + * @param s */ buildLambda(s: String): String; /** * clears internal cache of lambdas - * + * */ clearLambdaCache(): void; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: any[], o: Object): boolean; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: any[], o: Object): any[]; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: String, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: Object, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: any[], o: Object): any; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: any[], o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: any[], o: Object): void; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: Function, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: String, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: any[], o: Object): String; /** * returns an array of all keys in the object - * - * @param obj + * + * @param obj */ keys(obj: Object): any[]; /** @@ -8890,8 +8890,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: Function): Function; /** @@ -8901,8 +8901,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: String): Function; /** @@ -8912,170 +8912,170 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: any[]): Function; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: any[], o: Object): any[]; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: String, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: any[], o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: any[], o: Object): any; /** @@ -9086,996 +9086,996 @@ declare module dojox { * text snippet) to an object that contains an array of * arguments, and a body , which is used to calculate the * returning value. - * - * @param s + * + * @param s */ rawLambda(s: String): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: any[], z: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: Function, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: String, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: any[], o: Object): any; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: any[], o: Object): boolean; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: any[], z: Object, o: Object): any[]; /** * returns an array of all values in the object - * - * @param obj + * + * @param obj */ values(obj: Object): any[]; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/functional/sequence.html * - * + * */ interface sequence { /** @@ -10085,694 +10085,694 @@ declare module dojox { * built from the snippet. It is meant to be evaled in the * proper context, so local variables can be pulled from the * environment. - * - * @param s + * + * @param s */ buildLambda(s: String): String; /** * clears internal cache of lambdas - * + * */ clearLambdaCache(): void; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: String, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ every(a: Object, f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: Function, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: String, o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: any[], f: any[], o: Object): boolean; /** * tests whether all elements in the array pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ everyRev(a: String, f: any[], o: Object): boolean; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: String, f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filter(a: Object, f: any[], o: Object): any[]; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: String, o: Object): Object; /** * creates new object with all attributes that pass the test * implemented by the provided function. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ filterIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: Function, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: String, o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: any[], f: any[], o: Object): any[]; /** * creates a new array with all elements that pass the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ filterRev(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldl(a: Object, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: String, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from left * to right; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldl1(a: Object, f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: Function, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: String, z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: any[], f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns the final * value. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ foldr(a: String, f: any[], z: Object, o: Object): Object; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns the final value. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ foldr1(a: String, f: any[], o: Object): any; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: Function, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: String, o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: any[], f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: String, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEach(a: Object, f: any[], o: Object): String; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: Function, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: String, o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: any[], f: any[], o: Object): void; /** * executes a provided function once per array element. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ forEachRev(a: String, f: any[], o: Object): void; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: Function, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: String, o: Object): String; /** * iterates over all object attributes. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ forIn(obj: Object, f: any[], o: Object): String; /** * returns an array of all keys in the object - * - * @param obj + * + * @param obj */ keys(obj: Object): any[]; /** @@ -10782,8 +10782,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: Function): Function; /** @@ -10793,8 +10793,8 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: String): Function; /** @@ -10804,170 +10804,170 @@ declare module dojox { * This method is used to normalize a functional * representation (a text snippet, an array, or a function) to * a function object. - * - * @param s + * + * @param s */ lambda(s: any[]): Function; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: Function, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: String, o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: any[], f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: String, f: any[], o: Object): any[]; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ map(a: Object, f: any[], o: Object): any[]; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: Function, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: String, o: Object): Object; /** * creates new object with the results of calling * a provided function on every attribute in this object. - * - * @param obj - * @param f - * @param o Optional + * + * @param obj + * @param f + * @param o Optional */ mapIn(obj: Object, f: any[], o: Object): Object; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: Function, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: String, o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: any[], f: any[], o: Object): any; /** * creates a new array with the results of calling * a provided function on every element in this array. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ mapRev(a: String, f: any[], o: Object): any; /** @@ -10978,1003 +10978,1003 @@ declare module dojox { * text snippet) to an object that contains an array of * arguments, and a body , which is used to calculate the * returning value. - * - * @param s + * + * @param s */ rawLambda(s: String): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: String, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from left-to-right) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduce(a: Object, f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: Function, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: String, z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: any[], f: any[], z: Object): any; /** * apply a function simultaneously against two values of the array * (from right-to-left) as to reduce it to a single value. - * - * @param a - * @param f - * @param z Optional + * + * @param a + * @param f + * @param z Optional */ reduceRight(a: String, f: any[], z: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: Function, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: String, z: Object, o: Object): any; /** * builds an array by repeatedly applying a unary function N times * with a seed value Z. N should be greater than 0. - * - * @param n - * @param f - * @param z - * @param o Optional + * + * @param n + * @param f + * @param z + * @param o Optional */ repeat(n: number, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: Function, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: String, z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: any[], f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: String, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right using a seed value as a starting point; returns an array * of values produced by foldl() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanl(a: Object, f: any[], z: Object, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: Function, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: String, o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: any[], f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: String, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from left * to right; returns an array of values produced by foldl1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanl1(a: Object, f: any[], o: Object): any[]; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: Function, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: String, z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: any[], f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left using a seed value as a starting point; returns an array * of values produced by foldr() at that point. - * - * @param a - * @param f - * @param z - * @param o Optional + * + * @param a + * @param f + * @param z + * @param o Optional */ scanr(a: String, f: any[], z: Object, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: Function, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: String, o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: any[], f: any[], o: Object): any; /** * repeatedly applies a binary function to an array from right * to left; returns an array of values produced by foldr1() at that * point. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ scanr1(a: String, f: any[], o: Object): any; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: String, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ some(a: Object, f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: Function, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: String, o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: any[], f: any[], o: Object): boolean; /** * tests whether some element in the array passes the test * implemented by the provided function. - * - * @param a - * @param f - * @param o Optional + * + * @param a + * @param f + * @param o Optional */ someRev(a: String, f: any[], o: Object): boolean; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: Function, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: String, z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: Function, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: String, g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: Function, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: String, f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by unfolding a value - * - * @param pr - * @param f - * @param g - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param g + * @param z + * @param o Optional */ unfold(pr: any[], f: any[], g: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: Function, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: String, z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: Function, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: String, f: any[], z: Object, o: Object): any[]; /** * builds an array by repeatedly applying a unary function with * a seed value Z until the predicate is satisfied. - * - * @param pr - * @param f - * @param z - * @param o Optional + * + * @param pr + * @param f + * @param z + * @param o Optional */ until(pr: any[], f: any[], z: Object, o: Object): any[]; /** * returns an array of all values in the object - * - * @param obj + * + * @param obj */ values(obj: Object): any[]; } /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/functional/zip.html * - * + * */ interface zip { } - module fold { + namespace fold { } - module scan { + namespace scan { } } @@ -11982,38 +11982,38 @@ declare module dojox { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/lang/utils.html * - * + * */ interface utils { /** * Coerces one object to the type of another. - * - * @param target object, which typeof result is used to coerce "source" object. - * @param source object, which will be forced to change type. + * + * @param target object, which typeof result is used to coerce "source" object. + * @param source object, which will be forced to change type. */ coerceType(target: Object, source: Object): any; /** * Merge two objects structurally, mixin properties will override object's properties. - * - * @param object original object. - * @param mixin additional object, which properties will override object's properties. + * + * @param object original object. + * @param mixin additional object, which properties will override object's properties. */ merge(object: Object, mixin: Object): any; /** * Updates an existing object in place with properties from an "source" object. - * - * @param target the "target" object to be updated - * @param source the "source" object, whose properties will be used to source the existed object. - * @param conv Optionalforce conversion to the original type + * + * @param target the "target" object to be updated + * @param source the "source" object, whose properties will be used to source the existed object. + * @param conv Optionalforce conversion to the original type */ updateWithObject(target: Object, source: Object, conv: boolean): Object; /** * Updates an existing object in place with properties from an "source" object. - * - * @param target the "target" object to be updated - * @param source the "source" object, whose properties will be used to source the existed object. - * @param pattern object, whose properties will be used to pull values from the "source" - * @param conv Optionalforce conversion to the original type + * + * @param target the "target" object to be updated + * @param source the "source" object, whose properties will be used to source the existed object. + * @param pattern object, whose properties will be used to pull values from the "source" + * @param conv Optionalforce conversion to the original type */ updateWithPattern(target: Object, source: Object, pattern: Object, conv: boolean): Object; } diff --git a/dojo/dojox.layout.d.ts b/dojo/dojox.layout.d.ts index fa03236d74..1fb2553484 100644 --- a/dojo/dojox.layout.d.ts +++ b/dojo/dojox.layout.d.ts @@ -1,13 +1,13 @@ // Type definitions for Dojo v1.9 // Project: http://dojotoolkit.org // Definitions by: Michael Van Sickle -// Definitions: https://github.com/borisyankov/DefinitelyTyped +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// /// -declare module dojox { +declare namespace dojox { - module layout { + namespace layout { /** * Permalink: http://dojotoolkit.org/api/1.9/dojox/layout/ContentPane.html * @@ -16,19 +16,19 @@ declare module dojox { * relative path adjustments (content fetched from a different folder) *