mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
+1
-1
@@ -1,6 +1,6 @@
|
||||
language: node_js
|
||||
node_js:
|
||||
- "0.10"
|
||||
- "iojs-v2"
|
||||
|
||||
sudo: false
|
||||
|
||||
|
||||
+142
-39
@@ -9,14 +9,16 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](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:](amcharts/AmCharts.d.ts) [amCharts](http://www.amcharts.com) by [aleksey-bykov](https://github.com/aleksey-bykov)
|
||||
* [:link:](amplifyjs/amplifyjs.d.ts) [AmplifyJs](http://amplifyjs.com) by [Jonas Eriksson](https://github.com/joeriks)
|
||||
* [:link:](amqp-rpc/amqp-rpc.d.ts) [amqp-rpc](https://github.com/demchenkoe/node-amqp-rpc) by [Wonshik Kim](https://github.com/wokim)
|
||||
* [:link:](angular2/router.d.ts) [Angular](http://angular.io) by [angular team](https://github.com/angular)
|
||||
* [:link:](angular2/angular2.d.ts) [Angular](http://angular.io) by [angular team](https://github.com/angular)
|
||||
* [: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)
|
||||
* [:link:](angular-growl-v2/angular-growl-v2.d.ts) [Angular Growl 2 v.0.7.3](http://janstevens.github.io/angular-growl-2) by [Tadeusz Hucal](https://github.com/mkp05)
|
||||
* [:link:](angularjs/angular.d.ts) [Angular JS](http://angularjs.org) by [Diego Vilar](http://github.com/diegovilar)
|
||||
* [:link:](angularjs/angular-animate.d.ts) [Angular JS (ngAnimate module)](http://angularjs.org) by [Michel Salib](https://github.com/michelsalib), [Adi Dahiya](https://github.com/adidahiya), [Raphael Schweizer](https://github.com/rasch)
|
||||
* [:link:](angularjs/angular-animate.d.ts) [Angular JS (ngAnimate module)](http://angularjs.org) by [Michel Salib](https://github.com/michelsalib), [Adi Dahiya](https://github.com/adidahiya), [Raphael Schweizer](https://github.com/rasch), [Cody Schaaf](https://github.com/codyschaaf)
|
||||
* [:link:](angularjs/angular-cookies.d.ts) [Angular JS (ngCookies module)](http://angularjs.org) by [Diego Vilar](http://github.com/diegovilar), [Anthony Ciccarello](http://github.com/aciccarello)
|
||||
* [:link:](angularjs/angular-mocks.d.ts) [Angular JS (ngMock, ngMockE2E module)](http://angularjs.org) by [Diego Vilar](http://github.com/diegovilar)
|
||||
* [:link:](angularjs/angular-resource.d.ts) [Angular JS (ngResource module)](http://angularjs.org) by [Diego Vilar](http://github.com/diegovilar), [Michael Jess](http://github.com/miffels)
|
||||
@@ -32,20 +34,25 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](angular-wizard/angular-wizard.d.ts) [Angular Wizard](https://github.com/mgonto/angular-wizard) by [Marko Jurisic](https://github.com/mjurisic)
|
||||
* [: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-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-formly/angular-formly.d.ts) [angular-formly](https://github.com/formly-js/angular-formly) by [Scott Hatcher](https://github.com/scatcher)
|
||||
* [: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-jwt/angular-jwt.d.ts) [angular-jwt](https://github.com/auth0/angular-jwt) by [Reto Rezzonico](https://github.com/rerezz)
|
||||
* [: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)
|
||||
* [:link:](angular-notifications/angular-notifications.d.ts) [angular-notifications](https://github.com/DerekRies/angular-notifications) by [Tomasz Ducin](https://github.com/ducin/DefinitelyTyped)
|
||||
* [:link:](angular-notify/angular-notify.d.ts) [angular-notify](https://github.com/cgross/angular-notify) by [Suwato](https://github.com/Suwato/DefinitelyTyped)
|
||||
* [:link:](angular-scroll/angular-scroll.d.ts) [angular-scroll](https://github.com/oblador/angular-scroll) by [Sam Herrmann](https://github.com/samherrmann)
|
||||
* [:link:](angular-spinner/angular-spinner.d.ts) [angular-spinner.js](https://github.com/urish/angular-spinner) by [Marcin Biegała](https://github.com/Biegal)
|
||||
* [:link:](angular-storage/angular-storage.d.ts) [angular-storage](https://github.com/auth0/angular-storage) by [Matthew DeKrey](https://github.com/mdekrey)
|
||||
* [:link:](angular.throttle/angular.throttle.d.ts) [angular.throttle](https://github.com/BaggersIO/angular.throttle) by [Stefan Steinhart](https://github.com/reppners)
|
||||
* [:link:](angular-ui-sortable/angular-ui-sortable.d.ts) [angular.ui.sortable module](https://github.com/angular-ui/ui-sortable) by [Thodoris Greasidis](https://github.com/thgreasi)
|
||||
* [: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:](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)
|
||||
@@ -53,7 +60,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](cordova/cordova.d.ts) [Apache Cordova](http://cordova.apache.org) by [Microsoft Open Technologies Inc.](http://msopentech.com)
|
||||
* [:link:](cordova-plugin-email-composer/cordova-plugin-email-composer.d.ts) [Apache Cordova Email Composer plugin](https://github.com/katzer/cordova-plugin-email-composer) by [Dave Taylor](http://davetayls.me)
|
||||
* [:link:](polymer/polymer.app-router.d.ts) [app-router](https://github.com/erikringsmuth/app-router) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](api-error-handler/api-error-handler.d.ts) [api-error-handler](https://github.com/expressjs/api-error-handler) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](appframework/appframework.d.ts) [AppFramework](http://app-framework-software.intel.com) by [kyo_ago](https://github.com/kyo-ago)
|
||||
* [:link:](applicationinsights/applicationinsights.d.ts) [Application Insights](https://github.com/Microsoft/ApplicationInsights-node.js) by [Scott Southwood](https://github.com/scsouthw)
|
||||
* [:link:](arbiter/Arbiter.d.ts) [Arbiter.js](http://arbiterjs.com) by [Arash Shakery](https://github.com/arash16)
|
||||
@@ -68,21 +75,26 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](atmosphere/atmosphere.d.ts) [Atmosphere](https://github.com/Atmosphere/atmosphere-javascript) by [Kai Toedter](https://github.com/toedter)
|
||||
* [:link:](atom/atom.d.ts) [Atom](https://atom.io) by [vvakame](https://github.com/vvakame)
|
||||
* [: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/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:](autobahn/autobahn.d.ts) [AutobahnJS](http://autobahn.ws/js) by [Elad Zelingher](https://github.com/darkl)
|
||||
* [: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:](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:](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)
|
||||
* [:link:](backbone-relational/backbone-relational.d.ts) [Backbone-relational](http://backbonerelational.org) by [Eirik Hoem](https://github.com/eirikhm)
|
||||
* [:link:](backbone.layoutmanager/backbone.layoutmanager.d.ts) [Backbone.LayoutManager](http://layoutmanager.org) by [He Jiang](https://github.com/hejiang2000)
|
||||
* [:link:](backbone.paginator/backbone.paginator.d.ts) [backbone.paginator](https://github.com/backbone-paginator/backbone.paginator) by [Nyamazing](https://github.com/Nyamazing)
|
||||
* [:link:](backbone.radio/backbone.radio.d.ts) [Backbone.Radio](https://github.com/marionettejs/backbone.radio) by [Peter Palotas](https://github.com/alphaleonis)
|
||||
* [:link:](backgrid/backgrid.d.ts) [Backgrid](http://backgridjs.com) by [Jeremy Lujan](https://github.com/jlujan)
|
||||
* [:link:](baconjs/baconjs.d.ts) [Bacon.js](https://baconjs.github.io) by [Alexander Matsievsky](https://github.com/alexander-matsievsky)
|
||||
* [:link:](bardjs/bardjs.d.ts) [bardjs](https://github.com/wardbell/bardjs) by [Andrew Archibald](https://github.com/TepigMC)
|
||||
* [: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)
|
||||
* [:link:](bgiframe/typescript.bgiframe.d.ts) [bgiframe](https://github.com/sumegizoltan/BgiFrame) by [Zoltan Sumegi](https://github.com/sumegizoltan)
|
||||
* [:link:](big.js/big.js.d.ts) [big.js](https://github.com/MikeMcl/big.js) by [Steve Ognibene](https://github.com/nycdotnet)
|
||||
@@ -90,11 +102,12 @@ 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:](bigscreen/bigscreen.d.ts) [BigScreen](http://brad.is/coding/BigScreen) by [Douglas Eichelberger](https://github.com/dduugg)
|
||||
* [:link:](bitwise-xor/bitwise-xor.d.ts) [bitwise-xor](https://github.com/czzarr/node-bitwise-xor) by [Rogier Schouten](https://github.com/rogierschouten)
|
||||
* [:link:](blob-stream/blob-stream.d.ts) [blob-stream](https://github.com/devongovett/blob-stream) by [Eric Hillah](https://github.com/erichillah)
|
||||
* [:link:](bluebird/bluebird.d.ts) [bluebird](https://github.com/petkaantonov/bluebird) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](blueimp-md5/blueimp-md5.d.ts) [blueimp-md5](https://github.com/blueimp/JavaScript-MD5) by [Ray Martone](https://github.com/rmartone)
|
||||
* [:link:](body-parser/body-parser.d.ts) [body-parser](http://expressjs.com) by [Santi Albo](https://github.com/santialbo), [VILIC VANE](https://vilic.info), [Jonathan Häberle](https://github.com/dreampulse)
|
||||
* [: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)
|
||||
* [: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:](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-touchspin/bootstrap-touchspin.d.ts) [Bootstrap TouchSpin](http://www.virtuosoft.eu/code/bootstrap-touchspin) by [Albin Sunnanbo](https://github.com/albinsunnanbo)
|
||||
@@ -102,8 +115,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](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:](box2d/box2dweb.d.ts) [bootstrap.timepicker](http://code.google.com/p/box2dweb) by [jbaldwin](https://github.com/jbaldwin)
|
||||
* [: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:](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)
|
||||
@@ -115,8 +128,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](bufferstream/bufferstream.d.ts) [bufferstream](https://github.com/dodo/node-bufferstream) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [: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)
|
||||
* [:link:](dw-bxslider-4/dw-bxslider-4.d.ts) [bxSlider](https://github.com/stevenwanderski/bxslider-4) by [Piotr Sałkowski](https://github.com/namerci)
|
||||
* [:link:](byline/byline.d.ts) [byline](https://github.com/jahewson/node-byline) by [Stefan Steinhart](https://github.com/reppners)
|
||||
* [: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:](camljs/camljs.d.ts) [camljs](http://camljs.codeplex.com) by [Andrey Markeev](http://markeev.com)
|
||||
* [: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)
|
||||
@@ -140,8 +155,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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)
|
||||
* [: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:](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)
|
||||
* [:link:](cli-color/cli-color.d.ts) [cli-color](https://github.com/medikoo/cli-color) by [Joel Spadin](https://github.com/ChaosinaCan)
|
||||
* [:link:](clone/clone.d.ts) [clone](https://github.com/pvorb/node-clone) by [Kieran Simpson](https://github.com/kierans/DefinitelyTyped)
|
||||
* [:link:](codemirror/codemirror.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [mihailik](https://github.com/mihailik)
|
||||
@@ -149,18 +166,23 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](colors/colors.d.ts) [Colors.js 0.6.0-1](https://github.com/Marak/colors.js) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](cometd/cometd.d.ts) [CometD](http://cometd.org) by [Derek Cicerone](https://github.com/derekcicerone)
|
||||
* [:link:](commander/commander.d.ts) [commanderjs](https://github.com/visionmedia/commander.js) by [Marcelo Dezem](http://github.com/mdezem), [vvakame](http://github.com/vvakame)
|
||||
* [:link:](compare-version/compare-version.d.ts) [compare-version](https://www.npmjs.com/package/compare-version) by [Jonathan Pevarnek](https://github.com/jpevarnek)
|
||||
* [:link:](compression/compression.d.ts) [compression](https://github.com/expressjs/compression) by [Santi Albo](https://github.com/santialbo)
|
||||
* [:link:](configstore/configstore.d.ts) [configstore](https://github.com/yeoman/configstore) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](connect-flash/connect-flash.d.ts) [connect-flash](https://github.com/jaredhanson/connect-flash) by [Andreas Gassmann](https://github.com/AndreasGassmann)
|
||||
* [:link:](connect-modrewrite/connect-modrewrite.d.ts) [connect-modrewrite](https://github.com/tinganho/connect-modrewrite) by [Tingan Ho](https://github.com/tinganho)
|
||||
* [:link:](connect-slashes/connect-slashes.d.ts) [connect-slashes](https://github.com/avinoamr/connect-slashes) by [Sam Herrmann](https://github.com/samherrmann)
|
||||
* [:link:](consolidate/consolidate.d.ts) [consolidate](https://github.com/visionmedia/consolidate.js) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
|
||||
* [:link:](constant-case/constant-case.d.ts) [constant-case](https://github.com/blakeembrey/constant-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](content-type/content-type.d.ts) [content-type](https://github.com/deoxxa/content-type) by [Pine Mizune](https://github.com/pine613)
|
||||
* [: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:](cookiejs/cookiejs.d.ts) [cookie.js](https://github.com/js-coder/cookie.js) by [Boltmade](https://github.com/Boltmade)
|
||||
* [: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:](cordovarduino/cordovarduino.d.ts) [Cordovarduino plugin](https://github.com/stereolux/cordovarduino) by [Hendrik Maus](https://github.com/hendrikmaus)
|
||||
* [:link:](core-js/core-js.d.ts) [core-js](https://github.com/zloirock/core-js) by [Ron Buckton](http://github.com/rbuckton)
|
||||
* [:link:](couchbase/couchbase.d.ts) [Couchbase Couchnode](https://github.com/couchbase/couchnode) by [Basarat Ali Syed](https://github.com/basarat)
|
||||
* [: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:](cron/cron.d.ts) [cron](https://www.npmjs.com/package/cron) by [Hiroki Horiuchi](https://github.com/horiuchi)
|
||||
@@ -168,9 +190,11 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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)
|
||||
* [:link:](cryptojs/cryptojs.d.ts) [CryptoJS](https://code.google.com/p/crypto-js) by [Gia Bảo @ Sân Đình](https://github.com/giabao)
|
||||
* [:link:](cson/cson.d.ts) [CSON](https://github.com/bevry/cson) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](googlemaps.infobubble/google.maps.infobubble.d.ts) [CSS3 InfoBubble with tabs for Google Maps API V3](http://google-maps-utility-library-v3.googlecode.com/svn/trunk/infobubble/src) by [Johan Nilsson](https://github.com/Dashue)
|
||||
* [:link:](csurf/csurf.d.ts) [csurf](https://www.npmjs.org/package/csurf) by [Hiroki Horiuchi](https://github.com/horiuchi)
|
||||
* [:link:](csv-stringify/csv-stringify.d.ts) [csv-stringify](https://github.com/wdavidw/node-csv-stringify) by [Rogier Schouten](https://github.com/rogierschouten)
|
||||
* [: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/d3.d.ts) [d3JS](http://d3js.org) by [Alex Ford](https://github.com/gustavderdrache), [Boris Yankov](https://github.com/borisyankov)
|
||||
@@ -204,6 +228,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](domready/domready.d.ts) [domready](https://github.com/ded/domready) by [Christian Holm Nielsen](https://github.com/dotnetnerd)
|
||||
* [: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:](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:](drop/drop.d.ts) [Drop](http://github.hubspot.com/drop) by [Adi Dahiya](https://github.com/adidahiya)
|
||||
@@ -214,13 +239,19 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](durandal/durandal.d.ts) [Durandal](http://durandaljs.com) by [Blue Spire](https://github.com/BlueSpire)
|
||||
* [:link:](dymo-label-framework/dymo-label-framework.d.ts) [DYMO Label Framework](http://www.labelwriter.com/software/dls/sdk/docs/DYMOLabelFrameworkJavaScriptHelp/index.html) by [Thijs Kuipers](https://github.com/thijskuipers)
|
||||
* [:link:](easeljs/easeljs.d.ts) [EaselJS](http://www.createjs.com/#!/EaselJS) by [Pedro Ferreira](https://bitbucket.org/drk4), [Chris Smith](https://github.com/evilangelist)
|
||||
* [:link:](easy-api-request/easy-api-request.d.ts) [easy-api-request](https://github.com/DeadAlready/easy-api-request) by [Karl Düüna](https://github.com/DeadAlready)
|
||||
* [: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 [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [: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-xapi/easy-xapi.d.ts) [easy-xapi](https://github.com/DeadAlready/easy-xapi) 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)
|
||||
* [:link:](egg.js/egg.js.d.ts) [Egg.js](https://github.com/mikeflynn/egg.js) by [Markus Peloso](https://github.com/ToastHawaii)
|
||||
* [:link:](ejs-locals/ejs-locals.d.ts) [ejs-locals](https://github.com/randometc/ejs-locals) by [jt000](https://github.com/jt000)
|
||||
* [:link:](jquery.elang/jquery.elang.d.ts) [eLang](https://github.com/sumegizoltan/ELang) by [Zoltan Sumegi](https://github.com/sumegizoltan)
|
||||
* [:link:](github-electron/github-electron.d.ts) [Electron (shared between main and rederer processes)](http://electron.atom.io) by [jedmao](https://github.com/jedmao)
|
||||
* [:link:](github-electron/electron-prebuilt.d.ts) [electron-prebuilt](https://github.com/mafintosh/electron-prebuilt) 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:](ember/ember.d.ts) [Ember.js](http://emberjs.com) by [Jed Mao](https://github.com/jedmao)
|
||||
@@ -228,14 +259,20 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](empower/empower.d.ts) [empower](https://github.com/twada/empower) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](emscripten/emscripten.d.ts) [Emscripten](http://kripken.github.io/emscripten-site/index.html) by [Kensuke Matsuzaki](https://github.com/zakki)
|
||||
* [:link:](epiceditor/epiceditor.d.ts) [EpicEditor](http://epiceditor.com) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](eq.js/eq.js.d.ts) [eq.js](https://github.com/Snugug/eq.js) by [Stephen Lautier](https://github.com/stephenlautier)
|
||||
* [:link:](errorhandler/errorhandler.d.ts) [errorhandler](https://github.com/expressjs/errorhandler) by [Santi Albo](https://github.com/santialbo)
|
||||
* [:link:](es6-collections/es6-collections.d.ts) [es6-collections](https://github.com/WebReflection/es6-collections) by [Ron Buckton](http://github.com/rbuckton)
|
||||
* [: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:](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:](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)
|
||||
* [: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.js/expect.js.d.ts) [expect.js](https://github.com/LearnBoost/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)
|
||||
@@ -252,11 +289,13 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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)
|
||||
* [:link:](fbsdk/fbsdk.d.ts) [Facebook Javascript SDK](https://developers.facebook.com/docs/javascript) by [Joshua Strobl](https://github.com/JoshStrobl)
|
||||
* [:link:](famous/famous.d.ts) [Famous Engine](http://famous.org) by [Boris Vasilenko](https://github.com/borisvasilenko)
|
||||
* [:link:](fancybox/fancybox.d.ts) [fancyBox](https://github.com/fancyapps/fancyBox) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](farbtastic/farbtastic.d.ts) [Farbtastic: jQuery Color Wheel](http://mattfarina.github.io/farbtastic) by [Matt Brooks](https://github.com/EnableSoftware)
|
||||
* [:link:](fast-stats/fast-stats.d.ts) [fast-stats](https://github.com/bluesmoon/node-faststats) by [Rogier Schouten](https://github.com/rogierschouten)
|
||||
* [:link:](fastclick/fastclick.d.ts) [FastClick](https://github.com/ftlabs/fastclick) by [Shinnosuke Watanabe](https://github.com/shinnn)
|
||||
* [:link:](whatwg-fetch/whatwg-fetch.d.ts) [fetch API](https://github.com/github/fetch) by [Ryan Graham](https://github.com/ryan-codingintrigue)
|
||||
* [:link:](fhir/fhir.d.ts) [FHIR DSTU2](http://www.hl7.org/fhir/2015May/index.html) by [Artifact Health](www.artifacthealth.com)
|
||||
* [:link:](fibers/fibers.d.ts) [fibers](https://github.com/laverdet/node-fibers) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
|
||||
* [:link:](filewriter/filewriter.d.ts) [File API: Writer](http://www.w3.org/TR/file-writer-api) by [Kon](http://phyzkit.net)
|
||||
* [:link:](filesystem/filesystem.d.ts) [File System API](http://www.w3.org/TR/file-system-api) by [Kon](http://phyzkit.net)
|
||||
@@ -267,6 +306,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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)
|
||||
* [: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:](first-mate/first-mate.d.ts) [first-mate](https://github.com/atom/first-mate) by [Vadim Macagon](https://github.com/enlight)
|
||||
* [:link:](flexSlider/flexSlider.d.ts) [FlexSlider 2 jquery plugin](https://github.com/woothemes/FlexSlider) by [Diullei Gomes](https://github.com/diullei)
|
||||
* [:link:](flight/flight.d.ts) [Flight](http://flightjs.github.com/flight) by [Jonathan Hedrén](https://github.com/jonathanhedren)
|
||||
* [: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)
|
||||
@@ -277,7 +317,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](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), [George Marshall](https://github.com/georgemarshall), [Boltmade](https://github.com/Boltmade)
|
||||
* [:link:](foundation/foundation.d.ts) [Foundation](http://foundation.zurb.com) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](fpsmeter/FPSMeter.d.ts) [FPSmeter](http://darsa.in/fpsmeter) by [Aaron Lampros](http://github.com/alampros)
|
||||
* [:link:](from/from.d.ts) [from](https://github.com/dominictarr/from) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](fs-extra/fs-extra.d.ts) [fs-extra](https://github.com/jprichardson/node-fs-extra) by [midknight41](https://github.com/midknight41)
|
||||
@@ -286,22 +326,24 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](ftdomdelegate/ftdomdelegate.d.ts) [ftdomdelegate](https://github.com/ftlabs/ftdomdelegate) by [Christian Holm Nielsen](https://github.com/dotnetnerd)
|
||||
* [:link:](ftp/ftp.d.ts) [ftp](https://github.com/mscdex/node-ftp) by [Rogier Schouten](https://github.com/rogierschouten)
|
||||
* [:link:](ftpd/ftpd.d.ts) [ftpd](https://github.com/sstur/nodeftpd) by [Rogier Schouten](https://github.com/rogierschouten)
|
||||
* [:link:](fullCalendar/fullCalendar.d.ts) [FullCalendar](http://arshaw.com/fullcalendar) by [Neil Stalker](https://github.com/nestalk)
|
||||
* [:link:](fullCalendar/fullCalendar.d.ts) [FullCalendar](http://arshaw.com/fullcalendar) by [Neil Stalker](https://github.com/nestalk), [Marcelo Camargo](https://github.com/hasellcamargo)
|
||||
* [:link:](fuse/fuse.d.ts) [Fuse.js](https://github.com/krisk/Fuse) by [Greg Smith](https://github.com/smrq)
|
||||
* [: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:](gently/gently.d.ts) [gently](https://www.npmjs.org/package/gently) by [bonnici](https://github.com/bonnici)
|
||||
* [:link:](geojson/geojson.d.ts) [GeoJSON Format Specification](http://geojson.org) by [Jacob Bruun](https://github.com/cobster)
|
||||
* [:link:](geometry-dom/geometry-dom.d.ts) [Geometry Format Specification](http://www.w3.org/TR/geometry-1) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [:link:](giraffe/giraffe.d.ts) [Giraffe](https://github.com/barc/backbone.giraffe) by [Matt McCray](https://github.com/darthapo)
|
||||
* [:link:](git-config/git-config.d.ts) [git-config](https://github.com/eugeneware/git-config) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](gl-matrix/gl-matrix.d.ts) [gl-matrix](https://github.com/toji/gl-matrix) by [Tat](https://github.com/tatchx)
|
||||
* [:link:](gldatepicker/gldatepicker.d.ts) [glDatePicker](http://glad.github.com/glDatePicker) by [Dániel Tar](https://github.com/qcz)
|
||||
* [:link:](glidejs/glidejs.d.ts) [Glide.js](http://glide.jedrzejchalubek.com) by [Milan Jaros](https://github.com/milanjaros)
|
||||
* [:link:](glob/glob.d.ts) [Glob](https://github.com/isaacs/node-glob) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](glob-stream/glob-stream.d.ts) [glob-stream](http://github.com/wearefractal/glob-stream) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](globalize/globalize.d.ts) [Globalize](https://github.com/jquery/globalize) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](globalize/globalize.d.ts) [Globalize](https://github.com/jquery/globalize) by [Aram Taieb](https://github.com/afromogli)
|
||||
* [:link:](gm/gm.d.ts) [gm](https://github.com/aheckmann/gm) by [Joel Spadin](https://github.com/ChaosinaCan)
|
||||
* [:link:](goJS/goJS.d.ts) [GoJS](http://gojs.net) by [Barbara Duckworth](https://github.com/barbara42)
|
||||
* [: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.feeds/google.feed.api.d.ts) [Google Feed Apis](https://developers.google.com/feed) by [RodneyJT](https://github.com/RodneyJT)
|
||||
@@ -321,35 +363,47 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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)
|
||||
* [:link:](gruntjs/gruntjs.d.ts) [Grunt 0.4.x](http://gruntjs.com) by [Jeff May](https://github.com/jeffmay), [Basarat Ali Syed](https://github.com/basarat)
|
||||
* [:link:](gsap/Core.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io)
|
||||
* [:link:](gsap/Ease.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io)
|
||||
* [:link:](gsap/TweenLite.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io)
|
||||
* [:link:](gsap/Core.d.ts) [GSAP](http://greensock.com) by [VILIC VANE](https://vilic.github.io)
|
||||
* [:link:](gulp/gulp.d.ts) [Gulp v3.8.x](http://gulpjs.com) by [Drew Noakes](https://drewnoakes.com)
|
||||
* [:link:](gulp-autoprefixer/gulp-autoprefixer.d.ts) [gulp-autoprefixer](https://github.com/sindresorhus/gulp-autoprefixer) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-concat/gulp-concat.d.ts) [gulp-concat](http://github.com/wearefractal/gulp-concat) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
* [:link:](gulp-csso/gulp-csso.d.ts) [gulp-csso](https://github.com/ben-eb/gulp-csso) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-rev/gulp-rev.d.ts) [gulp-csso](https://github.com/sindresorhus/gulp-rev) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-debug/gulp-debug.d.ts) [gulp-debug](https://github.com/sindresorhus/gulp-debug) 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-if/gulp-if.d.ts) [gulp-if](https://github.com/robrich/gulp-if) by [Asana](https://asana.com)
|
||||
* [: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-istanbul/gulp-istanbul.d.ts) [gulp-istanbul](https://github.com/SBoudrias/gulp-istanbul) by [Asana](https://asana.com)
|
||||
* [: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-less/gulp-less.d.ts) [gulp-less](https://github.com/plus3network/gulp-less) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
* [: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)
|
||||
* [:link:](gulp-minify-html/gulp-minify-html.d.ts) [gulp-minify-html](https://github.com/murphydanger/gulp-minify-html) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-mocha/gulp-mocha.d.ts) [gulp-mocha](https://github.com/sindresorhus/gulp-mocha) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-protractor/gulp-protractor.d.ts) [gulp-protractor](https://github.com/mllrsohn/gulp-protractor) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-rename/gulp-rename.d.ts) [gulp-rename](https://github.com/hparra/gulp-rename) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-replace/gulp-replace.d.ts) [gulp-replace](https://github.com/lazd/gulp-replace) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-rev-replace/gulp-rev-replace.d.ts) [gulp-rev-replace](https://github.com/jamesknelson/gulp-rev-replace) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-ruby-sass/gulp-ruby-sass.d.ts) [gulp-ruby-sass](https://github.com/sindresorhus/gulp-ruby-sass) by [Agnislav Onufrijchuk](https://github.com/agnislav)
|
||||
* [:link:](gulp-sass/gulp-sass.d.ts) [gulp-sass](https://github.com/dlmanning/gulp-sass) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-size/gulp-size.d.ts) [gulp-size](https://github.com/sindresorhus/gulp-size) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-sourcemaps/gulp-sourcemaps.d.ts) [gulp-sourcemaps](https://github.com/floridoo/gulp-sourcemaps) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-tsd/gulp-tsd.d.ts) [gulp-tsd](https://github.com/moznion/gulp-tsd) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
* [:link:](gulp-tslint/gulp-tslint.d.ts) [gulp-tslint](https://github.com/panuhorsmalahti/gulp-tslint) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-typedoc/gulp-typedoc.d.ts) [gulp-typedoc](https://github.com/rogierschouten/gulp-typedoc) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-typescript/gulp-typescript.d.ts) [gulp-typescript](https://github.com/ivogabe/gulp-typescript) by [Asana](https://asana.com)
|
||||
* [:link:](gulp-uglify/gulp-uglify.d.ts) [gulp-uglify](https://github.com/terinjokes/gulp-uglify) by [Christopher Haws](https://github.com/ChristopherHaws)
|
||||
* [:link:](gulp-useref/gulp-useref.d.ts) [gulp-useref](https://github.com/jonkemp/gulp-useref) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](gulp-util/gulp-util.d.ts) [gulp-util v3.0.x](https://github.com/gulpjs/gulp-util) by [jedmao](https://github.com/jedmao)
|
||||
* [:link:](gulp-watch/gulp-watch.d.ts) [gulp-watch](https://github.com/floatdrop/gulp-watch) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [: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:](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)
|
||||
* [:link:](hashmap/hashmap.d.ts) [HashMap](https://github.com/flesler/hashmap) by [Rafał Wrzeszcz](http://wrzasq.pl), [Vasya Aksyonov](https://github.com/outring)
|
||||
* [:link:](he/he.d.ts) [he](https://github.com/mathiasbynens/he) by [Simon Edwards](https://github.com/sedwards2009)
|
||||
* [:link:](Headroom/headroom.d.ts) [headroom.js](http://wicky.nillia.ms/headroom.js) by [Jakub Olek](https://github.com/hakubo)
|
||||
* [:link:](heap/heap.d.ts) [heap](https://github.com/qiao/heap.js) by [Ryan McNamara](https://github.com/ryan10132)
|
||||
@@ -364,13 +418,16 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](html2canvas/html2canvas.d.ts) [html2canvas.js](https://github.com/niklasvh/html2canvas) by [Richard Hepburn](https://github.com/rwhepburn)
|
||||
* [: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)
|
||||
* [:link:](statuses/statuses.d.ts) [http-errors](https://github.com/jshttp/statuses) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](http-status/http-status.d.ts) [http-status](https://github.com/wdavidw/node-http-status) by [Michael Zabka](https://github.com/misak113)
|
||||
* [:link:](http-string-parser/http-string-parser.d.ts) [http-string-parser](https://github.com/apiaryio/http-string-parser) by [MIZUNE Pine](https://github.com/pine613)
|
||||
* [: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:](iban/iban.d.ts) [iban.js](https://github.com/arhs/iban.js) by [Cyril Schumacher](https://github.com/cyrilschumacher)
|
||||
* [:link:](icheck/icheck.d.ts) [iCheck](http://damirfoy.com/iCheck) by [Dániel Tar](https://github.com/qcz)
|
||||
* [:link:](imagemagick/imagemagick.d.ts) [imagemagick](http://github.com/rsms/node-imagemagick) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
|
||||
@@ -378,6 +435,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](imap/imap.d.ts) [imap](https://www.npmjs.com/package/imap) by [Peter Snider](https://github.com/psnider)
|
||||
* [: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:](inflection/inflection.d.ts) [inflection](https://github.com/dreamerslab/node.inflection) by [Shogo Iwano](https://github.com/shiwano)
|
||||
* [:link:](ini/ini.d.ts) [ini](https://github.com/isaacs/ini) by [Marcin Porębski](https://github.com/marcinporebski)
|
||||
* [:link:](insight/insight.d.ts) [insight](https://github.com/yeoman/insight) by [vvakame](http://github.com/vvakame)
|
||||
@@ -386,11 +444,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](inversify/inversify.d.ts) [inversify](https://github.com/inversify/InversifyJS) by [inversify](https://github.com/inversify)
|
||||
* [: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-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_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:](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)
|
||||
* [:link:](jake/jake.d.ts) [jake](https://github.com/mde/jake) by [Kon](http://phyzkit.net)
|
||||
@@ -400,6 +461,7 @@ 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-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-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)
|
||||
@@ -424,6 +486,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](jquerymobile/jquerymobile.d.ts) [jQuery Mobile](http://jquerymobile.com) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [: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)
|
||||
@@ -447,7 +510,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](jquery.pjax/jquery.pjax.d.ts) [jquery-pjax](https://github.com/defunkt/jquery-pjax) by [Junle Li](https://github.com/lijunle)
|
||||
* [:link:](jquery.address/jquery.address.d.ts) [jQuery.Address](https://github.com/asual/jquery-address) by [Martin Duparc](https://github.com/martinduparc), [Tim Klingeleers](https://github.com/mardaneus86)
|
||||
* [:link:](jquery.are-you-sure/jquery.are-you-sure.d.ts) [jquery.are-you-sure.js](https://github.com/codedance/jquery.AreYouSure) by [Jon Egerton](https://github.com/jonegerton)
|
||||
* [:link:](jquery.autosize/jquery.autosize.d.ts) [jquery.autosize (un-versioned)](http://www.jacklmoore.com/autosize) by [Aaron T. King](https://github.com/kingdango)
|
||||
* [:link:](jquery.autosize/jquery.autosize.d.ts) [jquery.autosize](http://www.jacklmoore.com/autosize) by [Aaron T. King](https://github.com/kingdango)
|
||||
* [:link:](jquery.bbq/jquery.bbq.d.ts) [jquery.bbq](http://benalman.com/projects/jquery-bbq-plugin) by [Adam R. Smith](https://github.com/sunetos)
|
||||
* [:link:](jquery.clientSideLogging/jquery.clientSideLogging.d.ts) [jquery.clientSideLogging](https://github.com/remybach/jQuery.clientSideLogging) by [Diullei Gomes](https://github.com/diullei)
|
||||
* [:link:](jquery.color/jquery.color.d.ts) [jquery.color.js](https://github.com/jquery/jquery-color) by [Derek Cicerone](https://github.com/derekcicerone)
|
||||
@@ -518,6 +581,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](jwplayer/jwplayer.d.ts) [JW Player](http://developer.longtailvideo.com/trac) by [Martin Duparc](https://github.com/martinduparc)
|
||||
* [:link:](jwt-simple/jwt-simple.d.ts) [jwt-simple](https://github.com/hokaccha/node-jwt-simple) by [Ken Fukuyama](https://github.com/kenfdev)
|
||||
* [:link:](kafka-node/kafka-node.d.ts) [kafka-node](https://github.com/SOHU-Co/kafka-node) by [Daniel Imrie-Situnayake](https://github.com/dansitu)
|
||||
* [:link:](karma/karma.d.ts) [karma](https://github.com/karma-runner/karma) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [:link:](karma-jasmine/karma-jasmine.d.ts) [karma-jasmine plugin](https://github.com/karma-runner/karma-jasmine) by [Michel Salib](https://github.com/michelsalib)
|
||||
* [: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)
|
||||
@@ -547,6 +611,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](kolite/kolite.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [: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:](later/later.d.ts) [LaterJS](http://bunkat.github.io/later) by [Jason D Dryhurst-Smith](http://jasonds.co.uk)
|
||||
@@ -563,7 +628,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](linq/linq.jquery.d.ts) [linq.jquery (from linq.js)](http://linqjs.codeplex.com) by [neuecc](http://www.codeplex.com/site/users/view/neuecc)
|
||||
* [:link:](linq/linq.d.ts) [linq.js](http://linqjs.codeplex.com) by [Marcin Najder](https://github.com/marcinnajder), [Sebastiaan Dammann](https://github.com/Sebazzz)
|
||||
* [:link:](jquery.livestampjs/jquery.livestampjs.d.ts) [Livestamp.js](http://mattbradley.github.com/livestampjs) by [Vincent Bortone](https://github.com/vbortone)
|
||||
* [:link:](lodash/lodash.d.ts) [Lo-Dash](http://lodash.com) by [Brian Zengel](https://github.com/bczengel)
|
||||
* [:link:](lodash/lodash.d.ts) [Lo-Dash](http://lodash.com) by [Brian Zengel](https://github.com/bczengel), [Ilya Mochalov](https://github.com/chrootsu)
|
||||
* [:link:](lockfile/lockfile.d.ts) [lockfile](https://github.com/isaacs/lockfile) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](log4javascript/log4javascript.d.ts) [log4javascript](http://log4javascript.org) by [Markus Wagner](https://github.com/Ritzlgrmft)
|
||||
* [:link:](log4js/log4js.d.ts) [log4js](https://github.com/nomiddlename/log4js-node) by [Kentaro Okuno](http://github.com/armorik83)
|
||||
@@ -573,19 +638,25 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](logrotate-stream/logrotate-stream.d.ts) [logrotate-stream](https://github.com/dstokes/logrotate-stream) by [Rogier Schouten](https://github.com/rogierschouten)
|
||||
* [:link:](lokijs/lokijs.d.ts) [lokijs](https://github.com/techfort/LokiJS) by [TeamworkGuy2](https://github.com/TeamworkGuy2)
|
||||
* [:link:](lolex/lolex.d.ts) [lolex](https://github.com/sinonjs/lolex) by [Wim Looman](https://github.com/Nemo157)
|
||||
* [:link:](long/long.d.ts) [Long.js](https://github.com/dcodeIO/Long.js) by [Toshihide Hara](https://github.com/kerug)
|
||||
* [:link:](long/long.d.ts) [Long.js](https://github.com/dcodeIO/Long.js) by [Peter Kooijmans](https://github.com/peterkooijmans)
|
||||
* [:link:](lory.js/lory.js.d.ts) [lory](https://github.com/meandmax/lory) by [kubosho](https://github.com/kubosho)
|
||||
* [:link:](lovefield/lovefield.d.ts) [Lovefield](http://google.github.io/lovefield) by [freshp86](https://github.com/freshp86)
|
||||
* [:link:](lower-case/lower-case.d.ts) [lower-case](https://github.com/blakeembrey/lower-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](lower-case-first/lower-case-first.d.ts) [lower-case-first](https://github.com/blakeembrey/lower-case-first) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](lru-cache/lru-cache.d.ts) [lru-cache](https://github.com/isaacs/node-lru-cache) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](lscache/lscache.d.ts) [lscache](https://github.com/pamelafox/lscache) by [Chris Martinez](https://github.com/Chris-Martinezz)
|
||||
* [:link:](luaparse/luaparse.d.ts) [luaparse](https://github.com/oxyc/luaparse) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](lunr/lunr.d.ts) [lunr.js](https://github.com/olivernn/lunr.js) by [Sebastian Lenz](https://github.com/sebastian-lenz)
|
||||
* [:link:](lz-string/lz-string.d.ts) [lz-string](https://github.com/pieroxy/lz-string) by [Roman Nikitin](https://github.com/M0ns1gn0r)
|
||||
* [:link:](magic-number/magic-number.d.ts) [magic-number](https://github.com/stpettersens/node-magic-number) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](magicsuggest/magicsuggest.d.ts) [MagicSuggest](http://nicolasbize.com/magicsuggest) by [Leonardo Chaia](http://github.com/leonardochaia)
|
||||
* [:link:](mailcheck/mailcheck.d.ts) [Mailcheck](https://github.com/mailcheck/mailcheck) by [Paulo Cesar](http://github.com/pocesar)
|
||||
* [:link:](main-bower-files/main-bower-files.d.ts) [main-bower-files](https://github.com/ck86/main-bower-files) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
* [:link:](maker.js/makerjs.d.ts) [Maker.js](https://github.com/Microsoft/maker.js) by [Dan Marshall](https://github.com/danmarshall)
|
||||
* [:link:](mandrill-api/mandrill-api.d.ts) [Mandrill API 1.x](http://mandrill.com) by [Paulo Cesar](https://github.com/pocesar)
|
||||
* [:link:](mapbox/mapbox.d.ts) [Mapbox](https://www.mapbox.com/mapbox.js) by [Maxime Fabre](https://github.com/anahkiasen)
|
||||
* [:link:](mapsjs/mapsjs.d.ts) [Mapsjs](https://github.com/mapsjs) by [Matthew James Davis](https://github.com/davismj)
|
||||
* [: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)
|
||||
@@ -596,6 +667,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](merge-stream/merge-stream.d.ts) [merge-stream](https://github.com/grncdr/merge-stream) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
* [:link:](merge2/merge2.d.ts) [merge2](https://github.com/teambition/merge2) by [Tanguy Krotoff](https://github.com/tkrotoff)
|
||||
* [: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)
|
||||
@@ -604,6 +676,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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-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:](xrm/clientglobalcontext.d.ts) [Microsoft Dynamics xRM ClientGlobalContext.js.aspx](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)
|
||||
* [:link:](xrm/parature.d.ts) [Microsoft Parature extentions to Xrm.Page - available for CRM Online Only](http://msdn.microsoft.com/en-us/library/gg328255.aspx) by [David Berry](https://github.com/6ix4our)
|
||||
* [:link:](azure-mobile-services-client/AzureMobileServicesClient.d.ts) [Microsoft Windows AzureMobile Service](http://www.windowsazure.com/en-us/develop/mobile) by [Morosinotto Daniele](https://github.com/dmorosinotto)
|
||||
@@ -626,6 +699,7 @@ 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:](mobile-detect/mobile-detect.d.ts) [mobile-detect](http://hgoebl.github.io/mobile-detect.js) by [Martin McWhorter](https://github.com/martinmcwhorter)
|
||||
* [: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/mocha-node.d.ts) [mocha](http://mochajs.org) by [Vadim Macagon](https://github.com/enlight), [vvakame](https://github.com/vvakame)
|
||||
* [: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:](mockery/mockery.d.ts) [mockery](https://github.com/mfncooper/mockery) by [jt000](https://github.com/jt000)
|
||||
@@ -633,6 +707,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](moment-timezone/moment-timezone.d.ts) [moment-timezone.js](http://momentjs.com/timezone) by [Michel Salib](https://github.com/michelsalib)
|
||||
* [: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)
|
||||
* [: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)
|
||||
* [: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:](mongodb/mongodb.d.ts) [MongoDB](https://github.com/mongodb/node-mongodb-native) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](mongoose/mongoose.d.ts) [Mongoose](http://mongoosejs.com) by [horiuchi](https://github.com/horiuchi)
|
||||
* [:link:](mongoose-mock/mongoose-mock.d.ts) [mongoose-mock](https://github.com/JohanObrink/mongoose-mock) by [jt000](https://github.com/jt000)
|
||||
@@ -647,15 +722,17 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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)
|
||||
* [:link:](mssql/mssql.d.ts) [mssql](https://www.npmjs.com/package/mssql) by [COLSA Corporation](http://www.colsa.com)
|
||||
* [:link:](mu2/mu2.d.ts) [mu2](http://github.com/raycmorgan/mu) by [Jeff Goddard](https://github.com/jedigo)
|
||||
* [:link:](multer/multer.d.ts) [multer](https://github.com/expressjs/multer) by [jt000](https://github.com/jt000)
|
||||
* [:link:](multer/multer.d.ts) [multer](https://github.com/expressjs/multer) by [jt000](https://github.com/jt000), [vilicvane](https://vilic.github.io)
|
||||
* [: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:](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)
|
||||
* [:link:](ncp/ncp.d.ts) [ncp](https://github.com/AvianFlu/ncp) by [Bart van der Schoor](https://github.com/bartvds)
|
||||
* [:link:](nedb/nedb.d.ts) [NeDB](https://github.com/louischatriot/nedb) by [Stefan Steinhart](https://github.com/reppners)
|
||||
* [:link:](needle/needle.d.ts) [needle](https://github.com/tomas/needle) by [San Chen](https://github.com/bigsan)
|
||||
* [:link:](nexpect/nexpect.d.ts) [nexpect](https://github.com/nodejitsu/nexpect) by [vvakame](http://github.com/vvakame)
|
||||
* [:link:](ng-command/ng-command.d.ts) [ng-command](https://github.com/stephenlautier/ng-command) by [Stephen Lautier](https://github.com/stephenlautier)
|
||||
* [: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:](ngprogress/ngprogress.d.ts) [ngProgress](http://victorbjelkholm.github.io/ngProgress) by [Martin McWhorter](https://github.com/martinmcwhorter)
|
||||
@@ -673,6 +750,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](node-fibers/node-fibers.d.ts) [node-fibers](https://github.com/laverdet/node-fibers) by [Cary Haynie](https://github.com/caryhaynie)
|
||||
* [:link:](node-form/node-form.d.ts) [node-form](https://github.com/rsamec/form) by [Roman Samec](https://github.com/rsamec)
|
||||
* [: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:](ip/ip.d.ts) [node-ip](https://github.com/indutny/node-ip) by [Peter Harris](https://github.com/codeanimal)
|
||||
* [:link:](multiparty/multiparty.d.ts) [node-multiparty](https://github.com/andrewrk/node-multiparty) by [Ken Fukuyama](https://github.com/kenfdev)
|
||||
@@ -686,25 +764,25 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](node/node.d.ts) [Node.js](http://nodejs.org) by [Microsoft TypeScript](http://typescriptlang.org), [DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped)
|
||||
* [:link:](_debugger/_debugger.d.ts) [Node.js debugger API](http://nodejs.org) by [Basarat Ali Syed](https://github.com/basarat)
|
||||
* [:link:](restify/restify.d.ts) [node.js REST framework](https://github.com/mcavage/node-restify) by [Bret Little](https://github.com/blittle)
|
||||
* [:link:](acl/acl-redisBackend.d.ts) [node_acl](https://github.com/optimalbits/node_acl) by [Qubo](https://github.com/tkQubo)
|
||||
* [:link:](acl/acl-mongodbBackend.d.ts) [node_acl](https://github.com/optimalbits/node_acl) by [Qubo](https://github.com/tkQubo)
|
||||
* [: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:](each/each.d.ts) [NodeEach](http://www.adaltas.com/projects/node-each) by [Michael Zabka](https://github.com/misak113)
|
||||
* [: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/nodemailer-types.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:](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:](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:](notify/notify.d.ts) [Notify.js](https://github.com/jpillora/notifyjs) by [Xiaohan Zhang](https://github.com/hellochar)
|
||||
* [:link:](nouislider/nouislider.d.ts) [nouislider](https://github.com/leongersen/noUiSlider) by [Corey Jepperson](https://github.com/acoreyj)
|
||||
* [: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)
|
||||
@@ -714,27 +792,34 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](object-path/object-path.d.ts) [objectPath v0.9.x](https://github.com/mariocasciaro/object-path) by [Paulo Cesar](https://github.com/pocesar)
|
||||
* [:link:](oboe/oboe.d.ts) [oboe](https://github.com/jimhigson/oboe.js) by [Jared Klopper](https://github.com/optical)
|
||||
* [:link:](oclazyload/oclazyload.d.ts) [oc.LazyLoad](https://github.com/ocombe/ocLazyLoad) by [Roland Zwaga](https://github.com/rolandzwaga)
|
||||
* [: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:](on-finished/on-finished.d.ts) [on-finished](https://github.com/jshttp/on-finished) by [Honza Dvorsky](http://github.com/czechboy0)
|
||||
* [:link:](onsenui/onsenui.d.ts) [Onsen UI](http://onsen.io) by [Fran Dios](https://github.com/frankdiox)
|
||||
* [:link:](open/open.d.ts) [open](https://github.com/jjrdn/node-open) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](openlayers/openlayers.d.ts) [OpenLayers.js](https://github.com/openlayers/openlayers) by [Ilya Bolkhovsky](https://github.com/bolhovsky)
|
||||
* [:link:](openlayers/openlayers.d.ts) [OpenLayers](http://openlayers.org) by [Wouter Goedhart](https://github.com/woutergd)
|
||||
* [:link:](opn/opn.d.ts) [opn](https://github.com/sindresorhus/opn) by [Shinnosuke Watanabe](https://github.com/shinnn)
|
||||
* [:link:](optimist/optimist.d.ts) [optimist](https://github.com/substack/node-optimist) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
|
||||
* [:link:](owlcarousel/owlcarousel.d.ts) [OwlCarousel v.1.3.3](https://github.com/OwlFonk/OwlCarousel) by [Damian Piątkowski](https://github.com/dpiatkowski)
|
||||
* [: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:](papaparse/papaparse.d.ts) [PapaParse](https://github.com/mholt/PapaParse) by [Pedro Flemming](https://github.com/torpedro)
|
||||
* [: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:](parsimmon/parsimmon.d.ts) [Parsimmon](https://github.com/jneen/parsimmon) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [: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-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/passport-facebook.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-local/passport-local.d.ts) [passport-local](https://github.com/jaredhanson/passport-local) by [Maxime LUCE](https://github.com/SomaticIT)
|
||||
* [:link:](path-exists/path-exists.d.ts) [path-exists](https://github.com/sindresorhus/path-exists) by [Shogo Iwano](https://github.com/shiwano)
|
||||
* [: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:](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:](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:](persona/persona.d.ts) [Persona](http://www.mozilla.org/en-US/persona) by [James Frasca](https://github.com/Nycto)
|
||||
@@ -743,6 +828,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](phantom/phantom.d.ts) [PhantomJS bridge for NodeJS](https://github.com/sgentle/phantomjs-node) by [horiuchi](https://github.com/horiuchi)
|
||||
* [: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:](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:](pickadate/pickadate.d.ts) [pickadate.js](https://github.com/amsul/pickadate.js) by [Theodore Brown](https://github.com/theodorejb)
|
||||
@@ -752,17 +838,15 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](platform/platform.d.ts) [Platform](https://github.com/bestiejs/platform.js) by [Jake Hickman](https://github.com/JakeH)
|
||||
* [:link:](playerframework/playerFramework.d.ts) [Player Framework (MMPPF)](https://playerframework.codeplex.com) by [Ricardo Sabino](https://github.com/ricardosabino)
|
||||
* [:link:](pleasejs/please.d.ts) [PleaseJS](http://www.checkman.io/please) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [:link:](plottable/plottable.d.ts) [Plottable](http://plottablejs.org) by [Plottable Team](https://github.com/palantir/plottable)
|
||||
* [:link:](pluralize/pluralize.d.ts) [pluralize](https://www.npmjs.com/package/pluralize) by [Syu Kato](https://github.com/ukyo)
|
||||
* [:link:](png-async/png-async.d.ts) [png-async](https://github.com/kanreisa/node-png-async) by [Yuki KAN](https://github.com/kanreisa)
|
||||
* [:link:](podcast/podcast.d.ts) [podcast](http://github.com/maxnowack/node-podcast) by [Niklas Mollenhauer](https://github.com/nikeee)
|
||||
* [:link:](poly2tri/poly2tri.d.ts) [poly2tri](http://github.com/r3mi/poly2tri.js) by [Elemar Junior](https://github.com/elemarjr)
|
||||
* [:link:](polymer/polymer.d.ts) [polymer](https://github.com/polymer) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](polymer/polymer.paper-dialog.d.ts) [polymer's paper-dialog](https://github.com/Polymer/paper-dialog) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](polymer/polymer.core-selector.d.ts) [polymer's paper-toast](https://github.com/Polymer/core-selector) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](polymer/polymer.core-drawer-panel.d.ts) [polymer's paper-toast](https://github.com/Polymer/core-drawer-panel) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](polymer/polymer.core-overlay.d.ts) [polymer's paper-toast](https://github.com/Polymer/core-selector) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](polymer/polymer.paper-toast.d.ts) [polymer's paper-toast](https://github.com/Polymer/paper-toast) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](polyline/polyline.d.ts) [Polyline](https://github.com/mapbox/polyline) by [Arseniy Maximov](https://github.com/Kern0)
|
||||
* [:link:](polymer/polymer.d.ts) [polymer](https://github.com/Polymer/polymer) by [Louis Grignon](https://github.com/lgrignon), [Suguru Inatomi](https://github.com/laco0416)
|
||||
* [:link:](popcorn/popcorn.d.ts) [Popcorn](https://github.com/mozilla/popcorn-js) by [grapswiz](https://github.com/grapswiz)
|
||||
* [:link:](postal/postal.d.ts) [Postal](https://github.com/postaljs/postal.js) by [Lokesh Peta](https://github.com/lokeshpeta)
|
||||
* [:link:](pouchDB/pouch.d.ts) [Pouch](http://pouchdb.com) by [Bill Sears](https://github.com/MrBigDog2U)
|
||||
* [:link:](power-assert/power-assert.d.ts) [power-assert](https://github.com/twada/power-assert) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](power-assert-formatter/power-assert-formatter.d.ts) [power-assert-formatter](https://github.com/twada/power-assert-formatter) by [vvakame](https://github.com/vvakame)
|
||||
@@ -784,15 +868,17 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](qtip2/qtip2.d.ts) [qtip2](http://qtip2.com) by [Nathan Pitman](https://github.com/Seltzer)
|
||||
* [: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-string/random-string.d.ts) [random-string](https://github.com/valiton/node-random-string) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [: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:](ravenjs/ravenjs.d.ts) [Raven.js](https://github.com/getsentry/raven-js) by [Santi Albo](https://github.com/santialbo)
|
||||
* [:link:](raygun4js/raygun4js.d.ts) [raygun4js](https://github.com/MindscapeHQ/raygun4js) by [Brian Surowiec](https://github.com/xt0rted)
|
||||
* [:link:](react/react.d.ts) [React (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com)
|
||||
* [:link:](react/react-global.d.ts) [React (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com)
|
||||
* [:link:](react-router/react-router.d.ts) [React Router](https://github.com/rackt/react-router) by [Yuichi Murata](https://github.com/mrk21)
|
||||
* [:link:](react/react.d.ts) [React (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com)
|
||||
* [:link:](react/react-global.d.ts) [React (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com)
|
||||
* [:link:](react-router/react-router.d.ts) [React Router](https://github.com/rackt/react-router) by [Yuichi Murata](https://github.com/mrk21), [Václav Ostrožlík](https://github.com/vasek17)
|
||||
* [:link:](react/react-addons.d.ts) [ReactWithAddons (external module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com)
|
||||
* [:link:](react/react-addons-global.d.ts) [ReactWithAddons (internal module)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com)
|
||||
* [:link:](readdir-stream/readdir-stream.d.ts) [readdir-stream](https://github.com/logicalparadox/readdir-stream) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
@@ -803,6 +889,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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:](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)
|
||||
* [:link:](request-promise/request-promise.d.ts) [request-promise](https://www.npmjs.com/package/request-promise) by [Christopher Glantschnig](https://github.com/cglantschnig)
|
||||
* [:link:](requirejs/require.d.ts) [RequireJS](http://requirejs.org) by [Josh Baldwin](https://github.com/jbaldwin)
|
||||
* [:link:](response-time/response-time.d.ts) [response-time](https://github.com/expressjs/response-time) by [Uros Smolnik](https://github.com/urossmolnik)
|
||||
* [:link:](rest/rest.d.ts) [rest.js](https://github.com/cujojs/rest) by [Wim Looman](https://github.com/Nemo157)
|
||||
@@ -813,6 +900,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](rimraf/rimraf.d.ts) [rimraf](https://github.com/isaacs/rimraf) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
|
||||
* [:link:](riotjs/riotjs.d.ts) [riot.js](https://github.com/moot/riotjs) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](rivets/rivets.d.ts) [rivets](http://rivetsjs.com) by [Trevor Baron](https://github.com/TrevorDev)
|
||||
* [:link:](route-recognizer/route-recognizer.d.ts) [route-recognizer](https://github.com/tildeio/route-recognizer) by [Dave Keen](http://www.keendevelopment.ch)
|
||||
* [:link:](routie/routie.d.ts) [routie](https://github.com/jgallen23/routie) by [Adilson](https://github.com/Adilson)
|
||||
* [:link:](rtree/rtree.d.ts) [rtree](https://github.com/leaflet-extras/RTree) by [Omede Firouz](https://github.com/oefirouz)
|
||||
* [:link:](run-sequence/run-sequence.d.ts) [run-sequence](https://github.com/OverZealous/run-sequence) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
@@ -838,17 +926,20 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](sax/sax.d.ts) [sax js](https://github.com/isaacs/sax-js) by [Asana](https://asana.com)
|
||||
* [: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:](seedrandom/seedrandom.d.ts) [seedrandom](https://github.com/davidbau/seedrandom) by [Kern Handa](https://github.com/kernhanda)
|
||||
* [:link:](select2/select2.d.ts) [Select2](http://ivaynberg.github.com/select2) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [: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)
|
||||
* [:link:](semver/semver.d.ts) [semver](https://github.com/isaacs/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:](sequelize/sequelize.d.ts) [Sequelize 2.0.0 dev13](http://sequelizejs.com) by [samuelneff](https://github.com/samuelneff), [Peter Harris](https://github.com/codeanimal)
|
||||
* [:link:](serve-favicon/serve-favicon.d.ts) [serve-favicon](https://github.com/expressjs/serve-favicon) by [Uros Smolnik](https://github.com/urossmolnik)
|
||||
* [:link:](on-headers/on-headers.d.ts) [serve-favicon](https://github.com/jshttp/on-headers) by [John Jeffery](https://github.com/jjeffery)
|
||||
* [:link:](serve-favicon/serve-favicon.d.ts) [serve-favicon](https://github.com/expressjs/serve-favicon) by [Uros Smolnik](https://github.com/urossmolnik)
|
||||
* [:link:](serve-static/serve-static.d.ts) [serve-static](https://github.com/expressjs/serve-static) by [Uros Smolnik](https://github.com/urossmolnik)
|
||||
* [: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](http://sptypescript.codeplex.com) 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:](showdown/showdown.d.ts) [Showdown](https://github.com/coreyti/showdown) by [cbowdon](https://github.com/cbowdon)
|
||||
@@ -860,16 +951,18 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](jquery.simplemodal/jquery.simplemodal.d.ts) [SimpleModal](http://www.ericmmartin.com/projects/simplemodal) by [Friedrich von Never](https://github.com/ForNeVeR)
|
||||
* [: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:](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:](skyway/skyway.d.ts) [SkyWay](http://nttcom.github.io/skyway) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [: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:](snapsvg/snapsvg.d.ts) [Snap-SVG](https://github.com/adobe-webplatform/Snap.svg) by [Lars Klein](https://github.com/lhk)
|
||||
* [:link:](socket.io/socket.io.d.ts) [socket.io](http://socket.io) by [PROGRE](https://github.com/progre)
|
||||
* [:link:](socket.io-client/socket.io-client.d.ts) [socket.io-client](http://socket.io) by [PROGRE](https://github.com/progre)
|
||||
* [: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:](sockjs/sockjs.d.ts) [SockJS 0.3.x](https://github.com/sockjs/sockjs-client) by [Emil Ivanov](https://github.com/vladev)
|
||||
* [:link:](sockjs-node/sockjs-node.d.ts) [sockjs-node 0.3.x](https://github.com/sockjs/sockjs-node) by [Phil McCloghry-Laing](https://github.com/pmccloghrylaing)
|
||||
* [:link:](soundjs/soundjs.d.ts) [SoundJS](http://www.createjs.com/#!/SoundJS) by [Pedro Ferreira](https://bitbucket.org/drk4)
|
||||
@@ -881,15 +974,15 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](split/split.d.ts) [split](https://github.com/dominictarr/split) by [Marcin Porębski](https://github.com/marcinporebski)
|
||||
* [: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:](sharepoint/SharePoint.d.ts) [sptypescript](http://sptypescript.codeplex.com) by [Stanislav Vyshchepan](http://gandjustas.blogspot.ru), [Andrey Markeev](http://markeev.com)
|
||||
* [:link:](sqlite3/sqlite3.d.ts) [sqlite3](https://github.com/mapbox/node-sqlite3) by [Nick Malaguti](https://github.com/nmalaguti)
|
||||
* [:link:](squirejs/squirejs.d.ts) [Squire](https://github.com/iammerrick/Squire.js) by [Bradley Ayers](https://github.com/bradleyayers)
|
||||
* [:link:](stack-mapper/stack-mapper.d.ts) [stack-mapper](https://github.com/thlorenz/stack-mapper) by [Rogier Schouten](https://github.com/rogierschouten)
|
||||
* [:link:](stacktrace-js/stacktrace-js.d.ts) [stacktrace.js](https://github.com/stacktracejs/stacktrace.js) by [Exceptionless](https://github.com/exceptionless)
|
||||
* [:link:](stampit/stampit.d.ts) [stampit](https://github.com/ericelliott/stampit) by [Vasyl Boroviak](https://github.com/koresar)
|
||||
* [:link:](stampit/stampit.d.ts) [stampit](https://github.com/stampit-org/stampit) by [Vasyl Boroviak](https://github.com/koresar)
|
||||
* [:link:](stats/stats.d.ts) [Stats.js r12](http://github.com/mrdoob/stats.js) by [Gregory Dalton](https://github.com/gregolai)
|
||||
* [:link:](statsd-client/statsd-client.d.ts) [statsd-client](https://github.com/msiebuhr/node-statsd-client) by [Peter Kooijmans](https://github.com/peterkooijmans)
|
||||
* [:link:](status-bar/status-bar.d.ts) [status-bar](https://github.com/atom/status-bar) by [vvakame](https://github.com/vvakame)
|
||||
* [:link:](steam/steam.d.ts) [steam](https://github.com/seishun/node-steam) by [Andrey Kurdyumov](https://github.com/kant2002)
|
||||
* [:link:](storejs/storejs.d.ts) [store.js](https://github.com/marcuswestin/store.js) by [Vincent Bortone](https://github.com/vbortone)
|
||||
* [:link:](stream-series/stream-series.d.ts) [stream-series](https://github.com/rschmukler/stream-series) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
|
||||
* [:link:](stream-to-array/stream-to-array.d.ts) [stream-to-array](https://github.com/stream-utils/stream-to-array) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
@@ -915,6 +1008,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](swipeview/swipeview.d.ts) [SwipeView](http://cubiq.org/swipeview) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](switchery/switchery.d.ts) [switchery](https://github.com/abpetkov/switchery) by [Bruno Grieder](https://github.com/bgrieder)
|
||||
* [:link:](swiz/swiz.d.ts) [swiz](https://github.com/racker/node-swiz) by [Jeff Goddard](https://github.com/jedigo)
|
||||
* [:link:](systemjs/systemjs.d.ts) [System.js](https://github.com/systemjs/systemjs) by [Ludovic HENIN](https://github.com/ludohenin), [Nathan Walker](https://github.com/NathanWalker)
|
||||
* [:link:](tabtab/tabtab.d.ts) [tabtab](https://github.com/mklabs/node-tabtab) by [Vojtěch Habarta](https://github.com/vojtechhabarta)
|
||||
* [:link:](tape/tape.d.ts) [tape](https://github.com/substack/tape) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](tar/tar.d.ts) [tar](https://github.com/npm/node-tar) by [Maxime LUCE](https://github.com/SomaticIT)
|
||||
* [:link:](tcomb/tcomb.d.ts) [tcomb](http://gcanti.github.io/tcomb/guide/index.html) by [Hans Windhoff](https://github.com/hansrwindhoff)
|
||||
@@ -937,7 +1032,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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)
|
||||
* [:link:](threejs/three-trackballcontrols.d.ts) [three.js (TrackballControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/TrackballControls.js) by [Satoru Kimura](https://github.com/gyohk)
|
||||
* [:link:](threejs/three-vrcontrols.d.ts) [three.js (VRControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/VRControls.js) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [:link:](threejs/three-vreffect.d.ts) [three.js (VREffect.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/effects/VREffect.js) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [:link:](threejs/three.d.ts) [three.js r71](http://mrdoob.github.com/three.js) by [Kon](http://phyzkit.net), [Satoru Kimura](https://github.com/gyohk)
|
||||
* [:link:](thrift/thrift.d.ts) [thrift](https://www.npmjs.com/package/thrift) by [Zachary Collins](https://github.com/corps)
|
||||
* [:link:](through/through.d.ts) [through](https://github.com/dominictarr/through) by [Andrew Gaspar](https://github.com/AndrewGaspar)
|
||||
* [:link:](through2/through2.d.ts) [through2 v](https://github.com/rvagg/through2) by [Bart van der Schoor](https://github.com/Bartvds), [jedmao](https://github.com/jedmao)
|
||||
* [:link:](timelinejs/timelinejs.d.ts) [timelinejs](https://github.com/NUKnightLab/TimelineJS) by [Roland Zwaga](https://github.com/rolandzwaga)
|
||||
@@ -946,10 +1044,13 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](tv4/tv4.d.ts) [Tiny Validator tv4](https://github.com/geraintluff/tv4) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [:link:](tinycolor/tinycolor.d.ts) [tinycolor](https://github.com/bgrins/TinyColor) by [Mordechai Zuber](https://github.com/M-Zuber)
|
||||
* [:link:](titanium/titanium.d.ts) [Titanium Mobile](http://www.appcelerator.com) by [Craig Younkins](https://github.com/cyounkins)
|
||||
* [:link:](title-case/title-case.d.ts) [title-case](https://github.com/blakeembrey/title-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](tmp/tmp.d.ts) [tmp](https://www.npmjs.com/package/tmp) by [Jared Klopper](https://github.com/optical)
|
||||
* [:link:](to-title-case-gouch/to-title-case-gouch.d.ts) [to-title-case](https://github.com/gouch/to-title-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
|
||||
* [:link:](toastr/toastr.d.ts) [Toastr](https://github.com/CodeSeven/toastr) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [: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:](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)
|
||||
* [:link:](tspromise/tspromise.d.ts) [tspromise](https://github.com/soywiz/tspromise) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
|
||||
@@ -963,10 +1064,12 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](type-detect/type-detect.d.ts) [type-detect](https://github.com/chaijs/type-detect) by [Bart van der Schoor](https://github.com/Bartvds)
|
||||
* [: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/typescript.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:](typescript-services/typescriptServices.d.ts) [TypeScript-Services](https://www.npmjs.org/package/typescript-services) by [Basarat Ali Syed](http://github.com/basarat)
|
||||
* [:link:](unity-webapi/unity-webapi.d.ts) [Ubuntu Unity Web API](https://launchpad.net/libunity-webapps) by [John Vrbanac](jhttps://github.com/jmvrbanac)
|
||||
* [:link:](ui-grid/ui-grid.d.ts) [ui-grid](http://www.ui-grid.info) by [Ben Tesser](https://github.com/btesser)
|
||||
* [:link:](underscore/underscore.d.ts) [Underscore](http://underscorejs.org) by [Boris Yankov](https://github.com/borisyankov), [Josh Baldwin](https://github.com/jbaldwin)
|
||||
* [: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)
|
||||
@@ -998,7 +1101,6 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [: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)
|
||||
* [:link:](webaudioapi/waa.d.ts) [Web Audio API](http://www.w3.org/TR/webaudio) by [Baruch Berger](https://github.com/bbss), [Kon](http://phyzkit.net), [kubosho](https://github.com/kubosho)
|
||||
* [:link:](webaudioapi/waa-nightly.d.ts) [Web Audio API (nightly)](http://www.w3.org/TR/2012/WD-webaudio-20120802) by [Baruch Berger](https://github.com/bbss)
|
||||
* [:link:](webmidi/webmidi.d.ts) [Web MIDI API](http://www.w3.org/TR/webmidi) by [Toshiya Nakakura](https://github.com/nakakura)
|
||||
* [:link:](webspeechapi/webspeechapi.d.ts) [Web Speech API](https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html) by [SaschaNaz](https://github.com/saschanaz)
|
||||
* [:link:](webcola/webcola.d.ts) [webcola](https://github.com/tgdwyer/WebCola) by [Qinfeng Chen](https://github.com/qinfchen)
|
||||
@@ -1008,6 +1110,7 @@ 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:](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)
|
||||
@@ -1041,7 +1144,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
|
||||
* [:link:](node_zeromq/zmq.d.ts) [ZeroMQ Node](https://github.com/JustinTulloss/zeromq.node) by [Dave McKeown](http://github.com/davemckeown)
|
||||
* [:link:](zip.js/zip.js.d.ts) [zip.js 2.x](https://github.com/gildas-lormeau/zip.js) by [Louis Grignon](https://github.com/lgrignon)
|
||||
* [:link:](scroller/easyscroller.d.ts) [Zynga EasyScroller](https://github.com/zynga/scroller) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [: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:](scroller/scroller.d.ts) [Zynga Scroller](https://github.com/zynga/scroller) by [Boris Yankov](https://github.com/borisyankov)
|
||||
* [:link:](viewporter/viewporter.d.ts) [Zynga Viewporter](https://github.com/zynga/viewporter) by [Boris Yankov](https://github.com/borisyankov)
|
||||
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/// <reference path="_debugger.d.ts"/>
|
||||
import _debugger = require("_debugger");
|
||||
var {Client} = _debugger;
|
||||
|
||||
var client = new Client();
|
||||
|
||||
client.connect(8888, 'localhost');
|
||||
client.listbreakpoints((err, res) => {
|
||||
|
||||
});
|
||||
Vendored
+135
@@ -0,0 +1,135 @@
|
||||
// Type definitions for Node.js debugger API
|
||||
// Project: http://nodejs.org/
|
||||
// Definitions by: Basarat Ali Syed <https://github.com/basarat>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../node/node.d.ts"/>
|
||||
|
||||
declare module NodeJS {
|
||||
export module _debugger {
|
||||
export interface Packet {
|
||||
raw: string;
|
||||
headers: string[];
|
||||
body: Message;
|
||||
}
|
||||
|
||||
export interface Message {
|
||||
seq: number;
|
||||
type: string;
|
||||
}
|
||||
|
||||
export interface RequestInfo {
|
||||
command: string;
|
||||
arguments: any;
|
||||
}
|
||||
|
||||
export interface Request extends Message, RequestInfo {
|
||||
}
|
||||
|
||||
export interface Event extends Message {
|
||||
event: string;
|
||||
body?: any;
|
||||
}
|
||||
|
||||
export interface Response extends Message {
|
||||
request_seq: number;
|
||||
success: boolean;
|
||||
/** Contains error message if success === false. */
|
||||
message?: string;
|
||||
/** Contains message body if success === true. */
|
||||
body?: any;
|
||||
}
|
||||
|
||||
export interface BreakpointMessageBody {
|
||||
type: string;
|
||||
target: number;
|
||||
line: number;
|
||||
}
|
||||
|
||||
export class Protocol {
|
||||
res: Packet;
|
||||
state: string;
|
||||
execute(data: string): void;
|
||||
serialize(rq: Request): string;
|
||||
onResponse: (pkt: Packet) => void;
|
||||
}
|
||||
|
||||
export var NO_FRAME: number;
|
||||
export var port: number;
|
||||
|
||||
export interface ScriptDesc {
|
||||
name: string;
|
||||
id: number;
|
||||
isNative?: boolean;
|
||||
handle?: number;
|
||||
type: string;
|
||||
lineOffset?: number;
|
||||
columnOffset?: number;
|
||||
lineCount?: number;
|
||||
}
|
||||
|
||||
export interface Breakpoint {
|
||||
id: number;
|
||||
scriptId: number;
|
||||
script: ScriptDesc;
|
||||
line: number;
|
||||
condition?: string;
|
||||
scriptReq?: string;
|
||||
}
|
||||
|
||||
export interface RequestHandler {
|
||||
(err: boolean, body: Message, res: Packet): void;
|
||||
request_seq?: number;
|
||||
}
|
||||
|
||||
export interface ResponseBodyHandler {
|
||||
(err: boolean, body?: any): void;
|
||||
request_seq?: number;
|
||||
}
|
||||
|
||||
export interface ExceptionInfo {
|
||||
text: string;
|
||||
}
|
||||
|
||||
export interface BreakResponse {
|
||||
script?: ScriptDesc;
|
||||
exception?: ExceptionInfo;
|
||||
sourceLine: number;
|
||||
sourceLineText: string;
|
||||
sourceColumn: number;
|
||||
}
|
||||
|
||||
export function SourceInfo(body: BreakResponse): string;
|
||||
|
||||
export interface ClientInstance extends EventEmitter {
|
||||
protocol: Protocol;
|
||||
scripts: ScriptDesc[];
|
||||
handles: ScriptDesc[];
|
||||
breakpoints: Breakpoint[];
|
||||
currentSourceLine: number;
|
||||
currentSourceColumn: number;
|
||||
currentSourceLineText: string;
|
||||
currentFrame: number;
|
||||
currentScript: string;
|
||||
|
||||
connect(port: number, host: string): void;
|
||||
req(req: any, cb: RequestHandler): void;
|
||||
reqFrameEval(code: string, frame: number, cb: RequestHandler): void;
|
||||
mirrorObject(obj: any, depth: number, cb: ResponseBodyHandler): void;
|
||||
setBreakpoint(rq: BreakpointMessageBody, cb: RequestHandler): void;
|
||||
clearBreakpoint(rq: Request, cb: RequestHandler): void;
|
||||
listbreakpoints(cb: RequestHandler): void;
|
||||
reqSource(from: number, to: number, cb: RequestHandler): void;
|
||||
reqScripts(cb: any): void;
|
||||
reqContinue(cb: RequestHandler): void;
|
||||
}
|
||||
|
||||
export var Client : {
|
||||
new (): ClientInstance
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
declare module "_debugger"{
|
||||
export = NodeJS._debugger;
|
||||
}
|
||||
Vendored
+13
-1
@@ -47,7 +47,19 @@ interface AccWizardOptions {
|
||||
nextText: string;
|
||||
|
||||
/**
|
||||
* @summary Text for back button
|
||||
* @summary Text for back button.
|
||||
* @type {string}
|
||||
*/
|
||||
backText: string;
|
||||
|
||||
/**
|
||||
* @summary HTML input type for next button. (default: "submit")
|
||||
* @type {string}
|
||||
*/
|
||||
nextType: string;
|
||||
|
||||
/**
|
||||
* @summary HTML input type for back button. (default: "reset")
|
||||
* @type {string}
|
||||
*/
|
||||
backType: string;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
/// <reference path='acl-mongodbBackend.d.ts'/>
|
||||
/// <reference path='acl.d.ts'/>
|
||||
|
||||
// https://github.com/OptimalBits/node_acl/blob/master/Readme.md
|
||||
import Acl = require('acl');
|
||||
@@ -14,4 +14,3 @@ acl.allow('guest', 'blogs', 'view');
|
||||
|
||||
// allow function accepts arrays as any parameter
|
||||
acl.allow('member', 'blogs', ['edit','view', 'delete']);
|
||||
|
||||
|
||||
Vendored
-22
@@ -1,22 +0,0 @@
|
||||
// Type definitions for node_acl 0.4.7
|
||||
// Project: https://github.com/optimalbits/node_acl
|
||||
// Definitions by: Qubo <https://github.com/tkQubo>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="acl.d.ts" />
|
||||
/// <reference path="../mongodb/mongodb.d.ts" />
|
||||
|
||||
declare module "acl" {
|
||||
import mongo = require('mongodb');
|
||||
|
||||
interface AclStatic {
|
||||
mongodbBackend: MongodbBackendStatic;
|
||||
}
|
||||
|
||||
interface MongodbBackend extends Backend<Callback> { }
|
||||
interface MongodbBackendStatic {
|
||||
new(db: mongo.Db, prefix: string, useSingle: boolean): MongodbBackend;
|
||||
new(db: mongo.Db, prefix: string): MongodbBackend;
|
||||
new(db: mongo.Db): MongodbBackend;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
/// <reference path='acl-redisBackend.d.ts'/>
|
||||
/// <reference path='acl.d.ts'/>
|
||||
|
||||
// https://github.com/OptimalBits/node_acl/blob/master/Readme.md
|
||||
import Acl = require('acl');
|
||||
|
||||
Vendored
-21
@@ -1,21 +0,0 @@
|
||||
// Type definitions for node_acl 0.4.7
|
||||
// Project: https://github.com/optimalbits/node_acl
|
||||
// Definitions by: Qubo <https://github.com/tkQubo>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="acl.d.ts" />
|
||||
/// <reference path='../redis/redis.d.ts'/>
|
||||
|
||||
declare module "acl" {
|
||||
import redis = require('redis');
|
||||
|
||||
interface AclStatic {
|
||||
redisBackend: RedisBackendStatic;
|
||||
}
|
||||
|
||||
interface RedisBackend extends Backend<redis.RedisClient> { }
|
||||
interface RedisBackendStatic {
|
||||
new(redis: redis.RedisClient, prefix: string): RedisBackend;
|
||||
new(redis: redis.RedisClient): RedisBackend;
|
||||
}
|
||||
}
|
||||
Vendored
+30
@@ -6,6 +6,9 @@
|
||||
/// <reference path="../bluebird/bluebird.d.ts" />
|
||||
/// <reference path='../node/node.d.ts'/>
|
||||
|
||||
/// <reference path='../redis/redis.d.ts'/>
|
||||
/// <reference path="../mongodb/mongodb.d.ts" />
|
||||
|
||||
declare module "acl" {
|
||||
import http = require('http');
|
||||
import Promise = require("bluebird");
|
||||
@@ -115,6 +118,33 @@ declare module "acl" {
|
||||
end: () => void;
|
||||
}
|
||||
|
||||
// for redis backend
|
||||
import redis = require('redis');
|
||||
|
||||
interface AclStatic {
|
||||
redisBackend: RedisBackendStatic;
|
||||
}
|
||||
|
||||
interface RedisBackend extends Backend<redis.RedisClient> { }
|
||||
interface RedisBackendStatic {
|
||||
new(redis: redis.RedisClient, prefix: string): RedisBackend;
|
||||
new(redis: redis.RedisClient): RedisBackend;
|
||||
}
|
||||
|
||||
// for mongodb backend
|
||||
import mongo = require('mongodb');
|
||||
|
||||
interface AclStatic {
|
||||
mongodbBackend: MongodbBackendStatic;
|
||||
}
|
||||
|
||||
interface MongodbBackend extends Backend<Callback> { }
|
||||
interface MongodbBackendStatic {
|
||||
new(db: mongo.Db, prefix: string, useSingle: boolean): MongodbBackend;
|
||||
new(db: mongo.Db, prefix: string): MongodbBackend;
|
||||
new(db: mongo.Db): MongodbBackend;
|
||||
}
|
||||
|
||||
var _: AclStatic;
|
||||
export = _;
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ var string: string;
|
||||
// acorn
|
||||
string = acorn.version;
|
||||
program = acorn.parse('code');
|
||||
program = acorn.parse('code', {range: true, onToken: tokens, onComment: comments});
|
||||
program = acorn.parse('code', {ranges: true, onToken: tokens, onComment: comments});
|
||||
program = acorn.parse('code', {
|
||||
ranges: true,
|
||||
onToken: (token) => tokens.push(token),
|
||||
|
||||
@@ -0,0 +1,108 @@
|
||||
/// <reference path="angular-formly.d.ts" />
|
||||
|
||||
var app = angular.module('app', ['formly']);
|
||||
|
||||
interface IScope extends ng.IScope {
|
||||
to: { label: string; }
|
||||
}
|
||||
|
||||
class FormConfig {
|
||||
constructor(formlyConfig: AngularFormly.IFormlyConfig, formlyValidationMessages: AngularFormly.IValidationMessages) {
|
||||
formlyConfig.setWrapper({
|
||||
name: 'validation',
|
||||
types: ['input', 'customInput'],
|
||||
templateUrl: 'my-messages.html'
|
||||
});
|
||||
|
||||
formlyValidationMessages.addStringMessage('required', 'This field is required');
|
||||
|
||||
formlyConfig.setType({
|
||||
name: 'customInput',
|
||||
extends: 'input'
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
class AppController {
|
||||
fields: AngularFormly.IFieldConfigurationObject[];
|
||||
constructor() {
|
||||
var vm = this;
|
||||
vm.fields = [
|
||||
{
|
||||
key: 'firstName',
|
||||
type: 'customInput',
|
||||
templateOptions: {
|
||||
required: true,
|
||||
label: 'First Name',
|
||||
foo: 'hi'
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'email',
|
||||
type: 'input',
|
||||
templateOptions: {
|
||||
label: 'Email',
|
||||
required: true,
|
||||
type: 'email',
|
||||
maxlength: 10,
|
||||
minlength: 6,
|
||||
placeholder: 'example@example.com'
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'ip',
|
||||
type: 'input',
|
||||
validators: {
|
||||
ipAddress: {
|
||||
expression: function(viewValue, modelValue) {
|
||||
var value = modelValue || viewValue;
|
||||
return /(\d{1,3}\.){3}\d{1,3}/.test(value);
|
||||
},
|
||||
message: '$viewValue + " is not a valid IP Address"'
|
||||
}
|
||||
},
|
||||
templateOptions: {
|
||||
label: 'IP Address',
|
||||
required: true,
|
||||
type: 'text',
|
||||
placeholder: '127.0.0.1',
|
||||
},
|
||||
validation: {
|
||||
messages: {
|
||||
required: function($viewValue: any, $modelValue: any, scope: AngularFormly.ITemplateScope) {
|
||||
return scope.to.label + ' is required'
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'mac',
|
||||
type: 'input',
|
||||
templateOptions: {
|
||||
label: 'MAC Address',
|
||||
required: true,
|
||||
placeholder: '49-8A-BD-4E-00-1D',
|
||||
pattern: '([0-9A-F]{2}[:-]){5}([0-9A-F]{2})'
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'checkbox',
|
||||
key: 'checked',
|
||||
templateOptions: {
|
||||
label: 'Check this'
|
||||
}
|
||||
},
|
||||
{
|
||||
key: 'checked2',
|
||||
type: 'checkbox',
|
||||
wrapper: null,
|
||||
templateOptions: {
|
||||
label: 'no wrapper here...'
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
app.controller("AppController", AppController);
|
||||
|
||||
Vendored
+574
@@ -0,0 +1,574 @@
|
||||
// Type definitions for angular-formly 6.18.0
|
||||
// Project: https://github.com/formly-js/angular-formly
|
||||
// Definitions by: Scott Hatcher <https://github.com/scatcher>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
declare module 'AngularFormly' {
|
||||
export = AngularFormly;
|
||||
}
|
||||
|
||||
declare module AngularFormly {
|
||||
|
||||
|
||||
interface IFieldGroup {
|
||||
data?: Object;
|
||||
className?: string;
|
||||
elementAttributes?: { [key: string]: string };
|
||||
fieldGroup: IFieldConfigurationObject[];
|
||||
form?: Object;
|
||||
hide?: boolean;
|
||||
hideExpression?: string | IExpresssionFunction;
|
||||
key?: string | number;
|
||||
model?: string | Object;
|
||||
options?: IFormOptionsAPI
|
||||
}
|
||||
|
||||
|
||||
interface IFormOptionsAPI {
|
||||
data?: Object;
|
||||
fieldTransform?: Function;
|
||||
formState?: Object;
|
||||
removeChromeAutoComplete?: boolean;
|
||||
resetModel?: Function;
|
||||
templateManipulators?: ITemplateManipulators;
|
||||
updateInitialValue?: Function;
|
||||
wrapper?: string | string[];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* see http://docs.angular-formly.com/docs/formly-expressions#expressionproperties-validators--messages
|
||||
*/
|
||||
interface IExpresssionFunction {
|
||||
($viewValue: any, $modelValue: any, scope: ITemplateScope): any;
|
||||
}
|
||||
|
||||
|
||||
interface IModelOptions {
|
||||
updateOn?: string;
|
||||
debounce?: number;
|
||||
allowInvalid?: boolean;
|
||||
getterSetter?: string;
|
||||
timezone?: string;
|
||||
}
|
||||
|
||||
|
||||
interface ITemplateManipulator {
|
||||
(template: string | HTMLElement, options: Object, scope: ITemplateScope): string | HTMLElement;
|
||||
}
|
||||
|
||||
|
||||
interface ITemplateManipulators {
|
||||
preWrapper?: ITemplateManipulator[];
|
||||
postWrapper?: ITemplateManipulator[];
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* see http://docs.angular-formly.com/docs/ngmodelattrstemplatemanipulator
|
||||
*/
|
||||
interface ITemplateOptions {
|
||||
|
||||
// both attribute or regular attribute
|
||||
disabled?: boolean;
|
||||
maxlength?: number;
|
||||
minlength?: number;
|
||||
pattern?: string;
|
||||
required?: boolean;
|
||||
|
||||
//attribute only
|
||||
max?: number;
|
||||
min?: number;
|
||||
placeholder?: number | string;
|
||||
tabindex?: number;
|
||||
type?: string;
|
||||
|
||||
//expression types
|
||||
onBlur?: string;
|
||||
onChange?: string;
|
||||
onClick?: string;
|
||||
onFocus?: string;
|
||||
onKeydown?: string;
|
||||
onKeypress?: string;
|
||||
onKeyup?: string;
|
||||
|
||||
//Bootstrap types
|
||||
label?: string;
|
||||
description?: string;
|
||||
[key: string]: any;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#validators-object
|
||||
*/
|
||||
interface IValidator {
|
||||
expression: string | IExpresssionFunction;
|
||||
message?: string | IExpresssionFunction;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* An object which has at least two properties called expression and listener. The watch.expression
|
||||
* is added to the formly-form directive's scope (to allow it to run even when hide is true). You
|
||||
* can specify a type ($watchCollection or $watchGroup) via the watcher.type property (defaults to
|
||||
* $watch) and whether you want it to be a deep watch via the watcher.deep property (defaults to false).
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#watcher-objectarray-of-watches
|
||||
*/
|
||||
interface IWatcher {
|
||||
deep?: boolean; //Defaults to false
|
||||
expression?: string | { (field: string, scope: ITemplateScope): boolean };
|
||||
listener: (field: string, newValue: any, oldValue: any, scope: ITemplateScope, stopWatching: Function) => void;
|
||||
type?: string; //Defaults to $watch but can be set to $watchCollection or $watchGroup
|
||||
}
|
||||
|
||||
|
||||
// see http://docs.angular-formly.com/docs/field-configuration-object
|
||||
interface IFieldConfigurationObject {
|
||||
|
||||
|
||||
/**
|
||||
* Added in 6.18.0
|
||||
*
|
||||
* Demo
|
||||
* see http://angular-formly.com/#/example/other/unique-value-async-validation
|
||||
*/
|
||||
asyncValidators?: {
|
||||
[key: string]: string | IExpresssionFunction | IValidator;
|
||||
}
|
||||
|
||||
/**
|
||||
* This is a great way to add custom behavior to a specific field. It is injectable with the $scope of the
|
||||
* field, and anything else you have in your injector.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#controller-controller-name-as-string--controller-f
|
||||
*/
|
||||
controller?: string | Function;
|
||||
|
||||
|
||||
/**
|
||||
* This is reserved for the developer. You have our guarantee to be able to use this and not worry about
|
||||
* future versions of formly overriding your usage and preventing you from upgrading :-)
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#data-object
|
||||
*/
|
||||
data?: Object;
|
||||
|
||||
|
||||
/**
|
||||
* Use defaultValue to initialize it the model. If this is provided and the value of the
|
||||
* model at compile-time is undefined, then the value of the model will be assigned to defaultValue.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#defaultvalue-any
|
||||
*/
|
||||
defaultValue?: any;
|
||||
|
||||
|
||||
/**
|
||||
* You can specify your own class that will be applied to the formly-field directive (or ng-form of
|
||||
* a fieldGroup).
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#classname-string
|
||||
*/
|
||||
className?: string;
|
||||
|
||||
|
||||
elementAttributes?: string;
|
||||
|
||||
|
||||
/**
|
||||
* An object where the key is a property to be set on the main field config and the value is an
|
||||
* expression used to assign that property. The value is a formly expressions. The returned value is
|
||||
* wrapped in $q.when so you can return a promise from your function :-)
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#expressionproperties-object
|
||||
*/
|
||||
expressionProperties?: {
|
||||
[key: string]: string | IExpresssionFunction | IValidator;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Uses ng-if. Whether to hide the field. Defaults to false. If you wish this to be conditional, use
|
||||
* hideExpression. See below.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#hide-boolean
|
||||
*/
|
||||
hide?: boolean
|
||||
|
||||
|
||||
/**
|
||||
* This is similar to expressionProperties with a slight difference. You should (hopefully) never
|
||||
* notice the difference with the most common use case. This is available due to limitations with
|
||||
* expressionProperties and ng-if not working together very nicely.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#hideexpression-string--function
|
||||
*/
|
||||
hideExpression?: string | IExpresssionFunction;
|
||||
|
||||
|
||||
/**
|
||||
* This allows you to specify the id of your field (which will be used for its name as well unless
|
||||
* a name is provided). Note, you can also override the id generation code using the formlyConfig
|
||||
* extra called getFieldId.
|
||||
*
|
||||
* AVOID THIS
|
||||
* If you don't have to do this, don't. Specifying IDs makes it harder to re-use things and it's
|
||||
* just extra work. Part of the beauty that angular-formly provides is the fact that you don't need
|
||||
* to concern yourself with making sure that this is unique.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#id-string
|
||||
*/
|
||||
id?: string;
|
||||
|
||||
|
||||
initialValue?: any;
|
||||
|
||||
|
||||
/**
|
||||
* Can be set instead of type or template to use a custom html template form field. Works
|
||||
* just like a directive templateUrl and uses the $templateCache
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#key-string
|
||||
*/
|
||||
key?: string | number;
|
||||
|
||||
|
||||
/**
|
||||
* This allows you to specify a link function. It is invoked after your template has finished compiling.
|
||||
* You are passed the normal arguments for a normal link function.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#link-link-function
|
||||
*/
|
||||
link?: ng.IDirectiveLinkFn;
|
||||
|
||||
|
||||
/**
|
||||
* By default, the model passed to the formly-field directive is the same as the model passed to the
|
||||
* formly-form. However, if the field has a model specified, then it is used for that field (and that
|
||||
* field only). In addition, a deep watch is added to the formly-field directive's scope to run the
|
||||
* expressionProperties when the specified model changes.
|
||||
*
|
||||
* Note, the formly-form directive will allow you to specify a string which is an (almost) formly
|
||||
* expression which allows you to define the model as relative to the scope of the form.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#model-object--string
|
||||
*/
|
||||
model?: Object | string;
|
||||
|
||||
|
||||
/**
|
||||
* Allows you to take advantage of ng-model-options directive. Formly's built-in templateManipulator (see
|
||||
* below) will add this attribute to your ng-model element automatically if this property exists. Note,
|
||||
* if you use the getter/setter option, formly's templateManipulator will change the value of ng-model
|
||||
* to options.value which is a getterSetter that formly adds to field options.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#modeloptions
|
||||
*/
|
||||
modelOptions?: IModelOptions;
|
||||
|
||||
|
||||
/**
|
||||
* If you wish to, you can specify a specific name for your ng-model. This is useful if you're posting
|
||||
* the form to a server using techniques of yester-year.
|
||||
*
|
||||
* AVOID THIS
|
||||
* If you don't have to do this, don't. It's just extra work. Part of the beauty that angular-formly
|
||||
* provides is the fact that you don't need to concern yourself with stuff like this.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#name-string
|
||||
*/
|
||||
name?: string;
|
||||
|
||||
|
||||
/**
|
||||
* This is used by ngModelAttrsTemplateManipulator to automatically add attributes to the ng-model element
|
||||
* of field templates. You will likely not use this often. This object is a little complex, but extremely
|
||||
* powerful. It's best to explain this api via an example. For more information, see the guide on ngModelAttrs.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#ngmodelattrs-object
|
||||
*/
|
||||
ngModelAttrs?: {
|
||||
attribute?: any;
|
||||
bound?: any;
|
||||
expression?: any;
|
||||
value?: any;
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Used to tell angular-formly to not attempt to add the formControl property to your object. This is useful
|
||||
* for things like validation, but not necessary if your "field" doesn't use ng-model (if it's just a horizontal
|
||||
* line for example). Defaults to undefined.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#noformcontrol-boolean
|
||||
*/
|
||||
noFormControl?: boolean;
|
||||
|
||||
|
||||
/**
|
||||
* Allows you to specify extra types to get options from. Duplicate options are overridden in later priority
|
||||
* (index 1 will override index 0 properties). Also, these are applied after the type's defaultOptions and
|
||||
* hence will override any duplicates of those properties as well.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#optionstypes-string--array-of-strings
|
||||
*/
|
||||
optionsTypes?: string | string[];
|
||||
|
||||
|
||||
/**
|
||||
* Can be set instead of type or templateUrl to use a custom html
|
||||
* template form field. Recommended to be used with one-liners mostly
|
||||
* (like a directive), or if you're using webpack with the ability to require templates :-)
|
||||
*
|
||||
* If a function is passed, it is invoked with the field configuration object and can return
|
||||
* either a string for the template or a promise that resolves to a string.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#template-string--function
|
||||
*/
|
||||
template?: string | { (fieldConfiguration: IFieldConfigurationObject): string | ng.IPromise<string> };
|
||||
|
||||
|
||||
/**
|
||||
* Allows you to specify custom template manipulators for this specific field. (use defaultOptions in a
|
||||
* type configuration if you want it to apply to all fields of a certain type).
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#templatemanipulator-object-of-arrays-of-functions
|
||||
*/
|
||||
templateManipulators?: ITemplateManipulators;
|
||||
|
||||
|
||||
/**
|
||||
* This is reserved for the templates. Any template-specific options go in here. Look at your specific
|
||||
* template implementation to know the options required for this.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#templateoptions-object
|
||||
*/
|
||||
templateOptions?: ITemplateOptions;
|
||||
|
||||
|
||||
/**
|
||||
* Can be set instead of type or template to use a custom html template form field. Works
|
||||
* just like a directive templateUrl and uses the $templateCache
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#templateurl-string--function
|
||||
*/
|
||||
templateUrl?: string | { (fieldConfiguration: IFieldConfigurationObject): string | ng.IPromise<string> };
|
||||
|
||||
|
||||
/**
|
||||
* The type of field to be rendered. This is the recommended method
|
||||
* for defining fields. Types must be pre-defined using formlyConfig.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#type-string
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
|
||||
/**
|
||||
* An object with a few useful properties mostly handy when used in combination with ng-messages
|
||||
*/
|
||||
validation?: {
|
||||
|
||||
/**
|
||||
* This is set by angular-formly. This is a boolean indicating whether an error message should be shown. Because
|
||||
* you generally only want to show error messages when the user has interacted with a specific field, this value
|
||||
* is set to true based on this rule: field invalid && (field touched || validation.show) (with slight difference
|
||||
* for pre-angular 1.3 because it doesn't have touched support).
|
||||
*/
|
||||
errorExistsAndShouldBeVisible?: boolean;
|
||||
|
||||
|
||||
/**
|
||||
* A map of Formly Expressions mapped to message names. This is really useful when you're using ng-messages
|
||||
* like in this example.
|
||||
*/
|
||||
messages?: {
|
||||
[key: string]: IExpresssionFunction | string;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A boolean you as the developer can set to specify to force options.validation.errorExistsAndShouldBeVisible
|
||||
* to be set to true when there are $errors. This is useful when you're trying to call the user's attention to
|
||||
* some fields for some reason.
|
||||
*/
|
||||
show?: boolean;
|
||||
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* An object where the keys are the name of the validator and the values are Formly Expressions;
|
||||
*
|
||||
* Async Validation
|
||||
* All function validators can return true/false/Promise. A validator passes if it returns true or a promise
|
||||
* that is resolved. A validator fails if it returns false or a promise that is rejected.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#validators-object
|
||||
*/
|
||||
validators?: {
|
||||
[key: string]: string | IExpresssionFunction | IValidator;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This is a getter/setter function for the value that your field is representing. Useful when using getterSetter: true
|
||||
* in the modelOptions (in fact, if you don't disable the ngModelAttrsTemplateManipulator that comes built-in with formly,
|
||||
* it will automagically change your field's ng-model attribute to use options.value.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#value-gettersetter-function
|
||||
*/
|
||||
value?(): any; //Getter
|
||||
value?(val: any): void; //Setter
|
||||
|
||||
|
||||
/**
|
||||
* An object which has at least two properties called expression and listener. The watch.expression is added
|
||||
* to the formly-form directive's scope (to allow it to run even when hide is true). You can specify a type
|
||||
* ($watchCollection or $watchGroup) via the watcher.type property (defaults to $watch) and whether you want
|
||||
* it to be a deep watch via the watcher.deep property (defaults to false).
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#watcher-objectarray-of-watches
|
||||
*/
|
||||
watcher?: IWatcher | IWatcher[];
|
||||
|
||||
|
||||
/**
|
||||
* This makes reference to setWrapper in formlyConfig. It is expected to be the name of the wrapper. If
|
||||
* given an array, the formly field template will be wrapped by the first wrapper, then the second, then
|
||||
* the third, etc. You can also specify these as part of a type (which is the recommended approach).
|
||||
* Specifying this property will override the wrappers for the type for this field.
|
||||
*
|
||||
* http://docs.angular-formly.com/docs/field-configuration-object#wrapper-string--array-of-strings
|
||||
*/
|
||||
wrapper?: string | string[];
|
||||
|
||||
|
||||
//ALL PROPERTIES BELOW ARE ADDED (So you should not be setting them yourself.)
|
||||
|
||||
|
||||
/**
|
||||
* This is the NgModelController for the field. It provides you with awesome stuff like $errors :-)
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#formcontrol-ngmodelcontroller
|
||||
*/
|
||||
formControl?: ng.IFormController | ng.IFormController[];
|
||||
|
||||
|
||||
/**
|
||||
* Will reset the field's model and the field control to the last initialValue. This is used by the
|
||||
* formly-form's options.resetModel function.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#resetmodel-function
|
||||
*/
|
||||
resetModel?: () => void;
|
||||
|
||||
|
||||
/**
|
||||
* It is not likely that you'll ever want to invoke this function. It simply runs the expressionProperties expressions.
|
||||
* It is used internally and you shouldn't have to use it, but you can if you want to, and any breaking changes to the
|
||||
* way it works will result in a major version change, so you can rely on its api.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#runexpressions-function
|
||||
*/
|
||||
runExpressions?: () => void;
|
||||
|
||||
|
||||
/**
|
||||
* Will reset the field's initialValue to the current state of the model. Useful if you load the model asynchronously.
|
||||
* Invoke this when the model gets set. This is used by the formly-form's options.updateInitialValue function.
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/field-configuration-object#updateinitialvalue-function
|
||||
*/
|
||||
updateInitialValue?: () => void;
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
*
|
||||
* see http://docs.angular-formly.com/docs/custom-templates#section-formlyconfig-settype-options
|
||||
*/
|
||||
interface ITypeOptions {
|
||||
apiCheck?: { [key: string]: Function };
|
||||
apiCheckFunction?: string; //'throw' or 'warn
|
||||
apiCheckInstance?: any;
|
||||
apiCheckOptions?: Object;
|
||||
defaultOptions?: IFieldConfigurationObject | Function;
|
||||
controller?: Function | string | any[];
|
||||
data?: Object;
|
||||
extends?: string;
|
||||
link?: ng.IDirectiveLinkFn;
|
||||
overwriteOk?: boolean;
|
||||
name: string;
|
||||
template?: Function | string;
|
||||
templateUrl?: Function | string;
|
||||
validateOptions?: Function;
|
||||
wrapper?: string | string[];
|
||||
}
|
||||
|
||||
interface IWrapperOptions {
|
||||
apiCheck?: { [key: string]: Function };
|
||||
apiCheckFunction?: string; //'throw' or 'warn
|
||||
apiCheckInstance?: any;
|
||||
apiCheckOptions?: Object;
|
||||
overwriteOk?: boolean;
|
||||
name?: string;
|
||||
template?: string;
|
||||
templateUrl?: string;
|
||||
types?: string[];
|
||||
validateOptions?: Function;
|
||||
}
|
||||
|
||||
interface IFormlyConfig {
|
||||
setType(typeOptions: ITypeOptions): void;
|
||||
setWrapper(wrapperOptions: IWrapperOptions): void;
|
||||
|
||||
}
|
||||
|
||||
interface ITemplateScopeOptions {
|
||||
formControl: ng.IFormController | ng.IFormController[];
|
||||
templateOptions: ITemplateOptions;
|
||||
validation: Object;
|
||||
}
|
||||
|
||||
/**
|
||||
* see http://docs.angular-formly.com/docs/custom-templates#templates-scope
|
||||
*/
|
||||
interface ITemplateScope {
|
||||
options: ITemplateScopeOptions;
|
||||
//Shortcut to options.formControl
|
||||
fc: ng.IFormController | ng.IFormController[];
|
||||
//all the fields for the form
|
||||
fields: IFieldConfigurationObject[];
|
||||
//the form controller the field is in
|
||||
form: any;
|
||||
//The object passed as options.formState to the formly-form directive. Use this to share state between fields.
|
||||
formState: Object;
|
||||
//The id of the field. You shouldn't have to use this.
|
||||
id: string;
|
||||
//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;
|
||||
//Shortcut to options.validation.errorExistsAndShouldBeVisible
|
||||
showError: boolean;
|
||||
//Shortcut to options.templateOptions
|
||||
to: ITemplateOptions;
|
||||
}
|
||||
|
||||
/**
|
||||
* see http://docs.angular-formly.com/docs/formlyvalidationmessages#addtemplateoptionvaluemessage
|
||||
*/
|
||||
interface IValidationMessages {
|
||||
addTemplateOptionValueMessage(name: string, prop: string, prefix: string, suffix: string, alternate: string): void;
|
||||
addStringMessage(name: string, string: string): void;
|
||||
messages: { [key: string]: ($viewValue: any, $modelValue: any, scope: ITemplateScope) => string };
|
||||
}
|
||||
|
||||
}
|
||||
+2
-2
@@ -150,8 +150,8 @@ declare module angular.material {
|
||||
A400?: string;
|
||||
A700?: string;
|
||||
contrastDefaultColor?: string;
|
||||
contrastDarkColors?: string;
|
||||
contrastStrongLightColors?: string;
|
||||
contrastDarkColors?: string|string[];
|
||||
contrastLightColors?: string|string[];
|
||||
}
|
||||
|
||||
interface MDThemeHues {
|
||||
|
||||
+1
-1
@@ -144,7 +144,7 @@ declare module angular.material {
|
||||
|
||||
interface IToastService {
|
||||
show(optionsOrPreset: IToastOptions|IToastPreset<any>): angular.IPromise<any>;
|
||||
showSimple(): angular.IPromise<any>;
|
||||
showSimple(content: string): angular.IPromise<any>;
|
||||
simple(): ISimpleToastPreset;
|
||||
build(): IToastPreset<any>;
|
||||
updateContent(): void;
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
/// <reference path="angular-notifications.d.ts" />
|
||||
|
||||
var myapp = angular.module("myapp", ["notifications"]);
|
||||
|
||||
myapp.controller("MyController", ["$scope", "notifications",
|
||||
function ($scope:ng.IScope, notifications:angular.notifications.INotificationFactory) { // <-- Inject notifications
|
||||
|
||||
var userData = {'some': 'data', 'optional': true};
|
||||
notifications.info("Something happened", "here is the content of what happened", userData);
|
||||
|
||||
}
|
||||
]);
|
||||
@@ -0,0 +1,82 @@
|
||||
// Type definitions for angular-notifications
|
||||
// Project: https://github.com/DerekRies/angular-notifications
|
||||
// Definitions by: Tomasz Ducin <https://github.com/ducin/DefinitelyTyped>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
declare module angular.notifications {
|
||||
|
||||
interface IAnimation {
|
||||
duration: number;
|
||||
enabled: boolean;
|
||||
}
|
||||
|
||||
interface ISettings {
|
||||
info: IAnimation;
|
||||
warning: IAnimation;
|
||||
error: IAnimation;
|
||||
success: IAnimation;
|
||||
progress: IAnimation;
|
||||
custom: IAnimation;
|
||||
details: boolean;
|
||||
localStorage: boolean;
|
||||
html5Mode: boolean;
|
||||
html5DefaultIcon: string;
|
||||
}
|
||||
|
||||
interface INotification {
|
||||
type: string;
|
||||
image: string;
|
||||
icon: string;
|
||||
title: string;
|
||||
content: string;
|
||||
timestamp: string;
|
||||
userData: string;
|
||||
}
|
||||
|
||||
interface INotificationFactory extends angular.IModule {
|
||||
|
||||
/* ========== SETTINGS RELATED METHODS =============*/
|
||||
|
||||
disableHtml5Mode(): void;
|
||||
disableType(notificationType: string): void;
|
||||
enableHtml5Mode(): void;
|
||||
enableType(notificationType: string): void;
|
||||
getSettings(): ISettings;
|
||||
toggleType(notificationType: string): void;
|
||||
toggleHtml5Mode(): void;
|
||||
requestHtml5ModePermissions(): boolean;
|
||||
|
||||
/* ============ QUERYING RELATED METHODS ============*/
|
||||
|
||||
getAll(): Array<INotification>;
|
||||
getQueue(): Array<INotification>;
|
||||
|
||||
/* ============== NOTIFICATION METHODS ==============*/
|
||||
|
||||
info(title: string): INotification;
|
||||
info(title: string, content: string): INotification;
|
||||
info(title: string, content: string, userData: any): INotification;
|
||||
error(title: string): INotification;
|
||||
error(title: string, content: string): INotification;
|
||||
error(title: string, content: string, userData: any): INotification;
|
||||
success(title: string): INotification;
|
||||
success(title: string, content: string): INotification;
|
||||
success(title: string, content: string, userData: any): INotification;
|
||||
warning(title: string): INotification;
|
||||
warning(title: string, content: string): INotification;
|
||||
warning(title: string, content: string, userData: any): INotification;
|
||||
awesomeNotify(type: string, icon: string, title: string, content: string, userData: any): INotification;
|
||||
notify(image: string, title: string, content: string, userData: any): INotification;
|
||||
makeNotification(type: string, image: string, icon: string, title: string, content: string, userData: any): INotification;
|
||||
|
||||
/* ============ PERSISTENCE METHODS ============ */
|
||||
|
||||
save(): void;
|
||||
restore(): void;
|
||||
clear(): void;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -165,6 +165,7 @@ var users = odataResourceClass.odata().query();
|
||||
|
||||
users[0].name;
|
||||
users[0].$save;
|
||||
users[0].$update;
|
||||
|
||||
var user = odataResourceClass.odata()
|
||||
.filter(new Value("1", OData.ValueTypes.Int32), new Property("abc"))
|
||||
@@ -185,4 +186,14 @@ var combination2 = Predicate.and([combination1, predicate2]);
|
||||
|
||||
var predicate = new Predicate("FirstName", "John")
|
||||
.or(new Predicate("LastName", '!=', "Doe"))
|
||||
.and(new Predicate("Age", '>', 10));
|
||||
.and(new Predicate("Age", '>', 10));
|
||||
|
||||
|
||||
users = odataResourceClass.odata()
|
||||
.withInlineCount()
|
||||
.query();
|
||||
|
||||
|
||||
var countResult = odataResourceClass.odata().count();
|
||||
var total = countResult.result;
|
||||
|
||||
|
||||
@@ -90,6 +90,12 @@ declare module OData {
|
||||
save(data: Object, success: Function, error?: Function): IResource<T>;
|
||||
save(params: Object, data: Object, success?: Function, error?: Function): IResource<T>;
|
||||
|
||||
update(): IResource<T>;
|
||||
update(data: Object): IResource<T>;
|
||||
update(success: Function, error?: Function): IResource<T>;
|
||||
update(data: Object, success: Function, error?: Function): IResource<T>;
|
||||
update(params: Object, data: Object, success?: Function, error?: Function): IResource<T>;
|
||||
|
||||
remove(): IResource<T>;
|
||||
remove(params: Object): IResource<T>;
|
||||
remove(success: Function, error?: Function): IResource<T>;
|
||||
@@ -120,6 +126,10 @@ declare module OData {
|
||||
$save(params?: Object, success?: Function, error?: Function): angular.IPromise<T>;
|
||||
$save(success: Function, error?: Function): angular.IPromise<T>;
|
||||
|
||||
$update(): angular.IPromise<T>;
|
||||
$update(params?: Object, success?: Function, error?: Function): angular.IPromise<T>;
|
||||
$update(success: Function, error?: Function): angular.IPromise<T>;
|
||||
|
||||
$remove(): angular.IPromise<T>;
|
||||
$remove(params?: Object, success?: Function, error?: Function): angular.IPromise<T>;
|
||||
$remove(success: Function, error?: Function): angular.IPromise<T>;
|
||||
@@ -254,6 +264,11 @@ declare module OData {
|
||||
(queryString: string, success: () => any, error: () => any): T[];
|
||||
(queryString: string, success: () => any, error: () => any, isSingleElement?: boolean, forceSingleElement?: boolean): T;
|
||||
}
|
||||
|
||||
interface ICountResult{
|
||||
result: number;
|
||||
}
|
||||
|
||||
class Provider<T> {
|
||||
private callback;
|
||||
private filters;
|
||||
@@ -271,6 +286,8 @@ declare module OData {
|
||||
single(success?: any, error?: any): T;
|
||||
get(data: any, success?: any, error?: any): T;
|
||||
expand(params: any, otherParam1?: any, otherParam2?: any, otherParam3?: any, otherParam4?: any, otherParam5?: any, otherParam6?: any, otherParam7?: any): Provider<T>;
|
||||
count(success?: (result: ICountResult) => any, error?: () => any):ICountResult;
|
||||
withInlineCount(): Provider<T>;
|
||||
}
|
||||
|
||||
interface ValueFactory {
|
||||
|
||||
@@ -374,7 +374,7 @@ function TestElementArrayFinder() {
|
||||
var b: boolean = elementArrayFinder.isPending();
|
||||
var locator: webdriver.Locator = elementArrayFinder.locator();
|
||||
|
||||
var findersArray: protractor.ElementFinder[] = elementArrayFinder.asElementFinders_();
|
||||
var findersArrayPromise: protractor.promise.Promise<protractor.ElementFinder[]> = elementArrayFinder.asElementFinders_();
|
||||
|
||||
var driverElementArray: webdriver.WebElement[] = elementArrayFinder.getWebElements();
|
||||
var elementFinder: protractor.ElementFinder = elementArrayFinder.get(42);
|
||||
|
||||
+1
-1
@@ -927,7 +927,7 @@ declare module protractor {
|
||||
* @return {Array.<ElementFinder>} Return a promise, which resolves to a list
|
||||
* of ElementFinders specified by the locator.
|
||||
*/
|
||||
asElementFinders_(): ElementFinder[];
|
||||
asElementFinders_(): webdriver.promise.Promise<ElementFinder[]>;
|
||||
|
||||
/**
|
||||
* Create a shallow copy of ElementArrayFinder.
|
||||
|
||||
@@ -2,6 +2,14 @@
|
||||
|
||||
var app = angular.module('at', ['pascalprecht.translate']);
|
||||
|
||||
app.factory('customLoader', ($q:angular.IQService) => {
|
||||
return (options:any) => {
|
||||
var dfd:angular.IDeferred<string> = $q.defer();
|
||||
dfd.resolve('whatever you wanted to translate, I simply know nothing about the language with the key ' + options.key);
|
||||
return dfd.promise;
|
||||
}
|
||||
});
|
||||
|
||||
app.config(($translateProvider: angular.translate.ITranslateProvider) => {
|
||||
$translateProvider.translations('en', {
|
||||
TITLE: 'Hello',
|
||||
@@ -16,6 +24,8 @@ app.config(($translateProvider: angular.translate.ITranslateProvider) => {
|
||||
BUTTON_LANG_DE: 'deutsch'
|
||||
});
|
||||
$translateProvider.preferredLanguage('en');
|
||||
|
||||
$translateProvider.useLoader('customLoader');
|
||||
});
|
||||
|
||||
interface Scope extends ng.IScope {
|
||||
|
||||
+1
-1
@@ -93,7 +93,7 @@ declare module angular.translate {
|
||||
storageKey(key: string): void; // JeroMiya - the library should probably return ITranslateProvider but it doesn't here
|
||||
useUrlLoader(url: string): ITranslateProvider;
|
||||
useStaticFilesLoader(options: IStaticFilesLoaderOptions): ITranslateProvider;
|
||||
useLoader(loaderFactory: string, options: any): ITranslateProvider;
|
||||
useLoader(loaderFactory: string, options?: any): ITranslateProvider;
|
||||
useLocalStorage(): ITranslateProvider;
|
||||
useCookieStorage(): ITranslateProvider;
|
||||
useStorage(storageFactory: any): ITranslateProvider;
|
||||
|
||||
@@ -7,6 +7,7 @@ testApp.config((
|
||||
$buttonConfig: ng.ui.bootstrap.IButtonConfig,
|
||||
$datepickerConfig: ng.ui.bootstrap.IDatepickerConfig,
|
||||
$datepickerPopupConfig: ng.ui.bootstrap.IDatepickerPopupConfig,
|
||||
$modalProvider: ng.ui.bootstrap.IModalProvider,
|
||||
$paginationConfig: ng.ui.bootstrap.IPaginationConfig,
|
||||
$pagerConfig: ng.ui.bootstrap.IPagerConfig,
|
||||
$progressConfig: ng.ui.bootstrap.IProgressConfig,
|
||||
@@ -41,6 +42,7 @@ testApp.config((
|
||||
$datepickerConfig.startingDay = 1;
|
||||
$datepickerConfig.yearFormat = 'y';
|
||||
$datepickerConfig.yearRange = 10;
|
||||
$datepickerConfig.shortcutPropagation = true;
|
||||
|
||||
|
||||
/**
|
||||
@@ -56,6 +58,12 @@ testApp.config((
|
||||
$datepickerPopupConfig.toggleWeeksText = 'Show Weeks';
|
||||
|
||||
|
||||
/**
|
||||
* $modalProvider tests
|
||||
*/
|
||||
$modalProvider.options.animation = false;
|
||||
|
||||
|
||||
/**
|
||||
* $paginationConfig tests
|
||||
*/
|
||||
@@ -91,6 +99,7 @@ testApp.config((
|
||||
$ratingConfig.max = 10;
|
||||
$ratingConfig.stateOff = 'rating-state-off';
|
||||
$ratingConfig.stateOn = 'rating-state-on';
|
||||
$ratingConfig.titles = ['1', '2', '3', '4', '5'];
|
||||
|
||||
|
||||
/**
|
||||
@@ -102,6 +111,8 @@ testApp.config((
|
||||
$timepickerConfig.mousewheel = false;
|
||||
$timepickerConfig.readonlyInput = true;
|
||||
$timepickerConfig.showMeridian = false;
|
||||
$timepickerConfig.arrowkeys = false;
|
||||
$timepickerConfig.showSpinners = false;
|
||||
|
||||
/**
|
||||
* $tooltipProvider tests
|
||||
@@ -110,7 +121,8 @@ testApp.config((
|
||||
placement: 'bottom',
|
||||
animation: false,
|
||||
popupDelay: 1000,
|
||||
appendtoBody: true
|
||||
appendToBody: true,
|
||||
useContentExp: true
|
||||
});
|
||||
$tooltipProvider.setTriggers({
|
||||
'customOpenTrigger': 'customCloseTrigger'
|
||||
@@ -129,7 +141,10 @@ testApp.controller('TestCtrl', (
|
||||
* test the $modal service
|
||||
*/
|
||||
var modalInstance = $modal.open({
|
||||
animation: false,
|
||||
backdrop: 'static',
|
||||
backdropClass: 'modal-backdrop-test',
|
||||
bindToController: true,
|
||||
controller: 'ModalTestCtrl',
|
||||
controllerAs: 'vm',
|
||||
keyboard: true,
|
||||
@@ -141,7 +156,6 @@ testApp.controller('TestCtrl', (
|
||||
scope: $scope,
|
||||
template: "<div>i'm a template!</div>",
|
||||
templateUrl: '/templates/modal.html',
|
||||
backdropClass: 'modal-backdrop-test',
|
||||
windowClass: 'modal-test'
|
||||
});
|
||||
|
||||
@@ -149,12 +163,23 @@ testApp.controller('TestCtrl', (
|
||||
$log.log('modal opened');
|
||||
});
|
||||
|
||||
modalInstance.rendered.then(() => {
|
||||
$log.log('modal rendered');
|
||||
});
|
||||
|
||||
modalInstance.result.then((closeResult:any)=> {
|
||||
$log.log('modal closed', closeResult);
|
||||
}, (dismissResult:any)=> {
|
||||
$log.log('modal dismissed', dismissResult);
|
||||
});
|
||||
|
||||
$modal.open({
|
||||
backdrop: 'static'
|
||||
});
|
||||
|
||||
$modal.open({
|
||||
templateUrl: () => '/templates/modal.html'
|
||||
});
|
||||
|
||||
/**
|
||||
* test the $modalStack service
|
||||
|
||||
+84
-18
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Angular UI Bootstrap 0.11.0
|
||||
// Type definitions for Angular UI Bootstrap 0.13.2
|
||||
// Project: https://github.com/angular-ui/bootstrap
|
||||
// Definitions by: Brian Surowiec <https://github.com/xt0rted>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -107,6 +107,13 @@ declare module angular.ui.bootstrap {
|
||||
* @default null
|
||||
*/
|
||||
maxDate?: any;
|
||||
|
||||
/**
|
||||
* An option to disable or enable shortcut's event propagation
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
shortcutPropagation?: boolean;
|
||||
}
|
||||
|
||||
interface IDatepickerPopupConfig {
|
||||
@@ -168,6 +175,13 @@ declare module angular.ui.bootstrap {
|
||||
}
|
||||
|
||||
|
||||
interface IModalProvider {
|
||||
/**
|
||||
* Default options all modals will use.
|
||||
*/
|
||||
options: IModalSettings;
|
||||
}
|
||||
|
||||
interface IModalService {
|
||||
/**
|
||||
* @param {IModalSettings} options
|
||||
@@ -178,47 +192,52 @@ declare module angular.ui.bootstrap {
|
||||
|
||||
interface IModalServiceInstance {
|
||||
/**
|
||||
* a method that can be used to close a modal, passing a result
|
||||
* A method that can be used to close a modal, passing a result. If `preventDefault` is called on the `modal.closing` event then the modal will remain open.
|
||||
*/
|
||||
close(result?: any): void;
|
||||
|
||||
/**
|
||||
* a method that can be used to dismiss a modal, passing a reason
|
||||
* A method that can be used to dismiss a modal, passing a reason. If `preventDefault` is called on the `modal.closing` event then the modal will remain open.
|
||||
*/
|
||||
dismiss(reason?: any): void;
|
||||
|
||||
/**
|
||||
* a promise that is resolved when a modal is closed and rejected when a modal is dismissed
|
||||
* A promise that is resolved when a modal is closed and rejected when a modal is dismissed.
|
||||
*/
|
||||
result: angular.IPromise<any>;
|
||||
|
||||
/**
|
||||
* a promise that is resolved when a modal gets opened after downloading content's template and resolving all variables
|
||||
* A promise that is resolved when a modal gets opened after downloading content's template and resolving all variables.
|
||||
*/
|
||||
opened: angular.IPromise<any>;
|
||||
|
||||
/**
|
||||
* A promise that is resolved when a modal is rendered.
|
||||
*/
|
||||
rendered: angular.IPromise<any>;
|
||||
}
|
||||
|
||||
interface IModalScope extends angular.IScope {
|
||||
/**
|
||||
* Those methods make it easy to close a modal window without a need to create a dedicated controller
|
||||
* Dismiss the dialog without assigning a value to the promise output. If `preventDefault` is called on the `modal.closing` event then the modal will remain open.
|
||||
*
|
||||
* @returns true if the modal was closed; otherwise false
|
||||
*/
|
||||
$dismiss(reason?: any): boolean;
|
||||
|
||||
/**
|
||||
* Dismiss the dialog without assigning a value to the promise output
|
||||
* Close the dialog resolving the promise to the given value. If `preventDefault` is called on the `modal.closing` event then the modal will remain open.
|
||||
*
|
||||
* @returns true if the modal was closed; otherwise false
|
||||
*/
|
||||
$dismiss(reason?: any): void;
|
||||
|
||||
/**
|
||||
* Close the dialog resolving the promise to the given value
|
||||
*/
|
||||
$close(result?: any): void;
|
||||
$close(result?: any): boolean;
|
||||
}
|
||||
|
||||
interface IModalSettings {
|
||||
/**
|
||||
* a path to a template representing modal's content
|
||||
*/
|
||||
templateUrl?: string;
|
||||
templateUrl?: string | (() => string);
|
||||
|
||||
/**
|
||||
* inline template representing the modal's content
|
||||
@@ -243,11 +262,25 @@ declare module angular.ui.bootstrap {
|
||||
*/
|
||||
controllerAs?: string;
|
||||
|
||||
/**
|
||||
* When used with controllerAs and set to true, it will bind the controller properties onto the $scope directly.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
bindToController?: boolean;
|
||||
|
||||
/**
|
||||
* members that will be resolved and passed to the controller as locals; it is equivalent of the `resolve` property for AngularJS routes
|
||||
*/
|
||||
resolve?: any;
|
||||
|
||||
/**
|
||||
* Set to false to disable animations on new modal/backdrop. Does not toggle animations for modals/backdrops that are already displayed.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
animation?: boolean;
|
||||
|
||||
/**
|
||||
* controls the presence of a backdrop
|
||||
* Allowed values:
|
||||
@@ -257,10 +290,12 @@ declare module angular.ui.bootstrap {
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
backdrop?: any;
|
||||
backdrop?: boolean | string;
|
||||
|
||||
/**
|
||||
* indicates whether the dialog should be closable by hitting the ESC key, defaults to true
|
||||
* indicates whether the dialog should be closable by hitting the ESC key
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
keyboard?: boolean;
|
||||
|
||||
@@ -275,7 +310,7 @@ declare module angular.ui.bootstrap {
|
||||
windowClass?: string;
|
||||
|
||||
/**
|
||||
* optional size of modal window. Allowed values: 'sm' (small) or 'lg' (large). Requires Bootstrap 3.1.0 or later
|
||||
* Optional suffix of modal window class. The value used is appended to the `modal-` class, i.e. a value of `sm` gives `modal-sm`.
|
||||
*/
|
||||
size?: string;
|
||||
|
||||
@@ -520,6 +555,13 @@ declare module angular.ui.bootstrap {
|
||||
* @default: null
|
||||
*/
|
||||
stateOff?: string;
|
||||
|
||||
/**
|
||||
* An array of strings defining titles for all icons.
|
||||
*
|
||||
* @default: ["one", "two", "three", "four", "five"]
|
||||
*/
|
||||
titles?: Array<string>;
|
||||
}
|
||||
|
||||
|
||||
@@ -565,6 +607,20 @@ declare module angular.ui.bootstrap {
|
||||
* @default true
|
||||
*/
|
||||
mousewheel?: boolean;
|
||||
|
||||
/**
|
||||
* Whether the user can use up/down arrowkeys inside the hours & minutes input to increase or decrease it's values.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
arrowkeys?: boolean;
|
||||
|
||||
/**
|
||||
* Shows spinner arrows above and below the inputs.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
showSpinners?: boolean;
|
||||
}
|
||||
|
||||
|
||||
@@ -577,7 +633,7 @@ declare module angular.ui.bootstrap {
|
||||
placement?: string;
|
||||
|
||||
/**
|
||||
* Should it fade in and out?
|
||||
* Should the modal fade in and out?
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
@@ -603,6 +659,13 @@ declare module angular.ui.bootstrap {
|
||||
* @default 'mouseenter' for tooltip, 'click' for popover
|
||||
*/
|
||||
trigger?: string;
|
||||
|
||||
/**
|
||||
* Should an expression on the scope be used to load the content?
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
useContentExp?: boolean;
|
||||
}
|
||||
|
||||
interface ITooltipProvider {
|
||||
@@ -618,6 +681,9 @@ declare module angular.ui.bootstrap {
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* WARNING: $transition is now deprecated. Use $animate from ngAnimate instead.
|
||||
*/
|
||||
interface ITransitionService {
|
||||
/**
|
||||
* The browser specific animation event name.
|
||||
|
||||
@@ -50,7 +50,7 @@ myApp.config((
|
||||
.state('state1.list', {
|
||||
url: "/list",
|
||||
templateUrl: "partials/state1.list.html",
|
||||
controller: function ($scope: MyAppScope) {
|
||||
controller: function ($scope: MyAppScope) {
|
||||
$scope.items = ["A", "List", "Of", "Items"];
|
||||
}
|
||||
})
|
||||
@@ -61,7 +61,7 @@ myApp.config((
|
||||
.state('state2.list', {
|
||||
url: "/list",
|
||||
templateUrl: "partials/state2.list.html",
|
||||
controller: function ($scope: MyAppScope) {
|
||||
controller: function ($scope: MyAppScope) {
|
||||
$scope.things = ["A", "Set", "Of", "Things"];
|
||||
}
|
||||
})
|
||||
@@ -70,7 +70,14 @@ myApp.config((
|
||||
url: "/list",
|
||||
templateUrl: "partials/state3.list.html",
|
||||
controller: function ($scope: MyAppScope) {
|
||||
$scope.things = ["A", "Set", "Of", "Things"];
|
||||
$scope.things = ["A", "Set", "Of", "Things"];
|
||||
}
|
||||
})
|
||||
.state('state4', {
|
||||
url: "/state4",
|
||||
templateUrl: function($stateParams: ng.ui.IStateParamsService){
|
||||
//Logic could go here based on $stateParams
|
||||
return "partials/state4.html";
|
||||
}
|
||||
})
|
||||
.state('index', {
|
||||
@@ -148,6 +155,10 @@ class UrlLocatorTestService implements IUrlLocatorTestService {
|
||||
this.$state.get("myState");
|
||||
this.$state.get();
|
||||
this.$state.reload();
|
||||
|
||||
// Accesses the currently resolved values for the current state
|
||||
// http://stackoverflow.com/questions/28026620/is-there-a-way-to-access-resolved-state-dependencies-besides-injecting-them-into/28027023#28027023
|
||||
var resolvedValues = this.$state.$current.locals.globals;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+24
-4
@@ -5,6 +5,12 @@
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
// Support for AMD require
|
||||
declare module 'angular-ui-router' {
|
||||
var _: string;
|
||||
export = _;
|
||||
}
|
||||
|
||||
declare module angular.ui {
|
||||
|
||||
interface IState {
|
||||
@@ -16,7 +22,7 @@ declare module angular.ui {
|
||||
/**
|
||||
* String URL path to template file OR Function, returns URL path string
|
||||
*/
|
||||
templateUrl?: string | {(): string};
|
||||
templateUrl?: string | {(params: IStateParamsService): string};
|
||||
/**
|
||||
* Function, returns HTML content string
|
||||
*/
|
||||
@@ -53,12 +59,12 @@ declare module angular.ui {
|
||||
abstract?: boolean;
|
||||
/**
|
||||
* Callback function for when a state is entered. Good way to trigger an action or dispatch an event, such as opening a dialog.
|
||||
* If minifying your scripts, make sure to explictly annotate this function, because it won't be automatically annotated by your build tools.
|
||||
* If minifying your scripts, make sure to explicitly annotate this function, because it won't be automatically annotated by your build tools.
|
||||
*/
|
||||
onEnter?: Function|(string|Function)[];
|
||||
/**
|
||||
* Callback functions for when a state is entered and exited. Good way to trigger an action or dispatch an event, such as opening a dialog.
|
||||
* If minifying your scripts, make sure to explictly annotate this function, because it won't be automatically annotated by your build tools.
|
||||
* If minifying your scripts, make sure to explicitly annotate this function, because it won't be automatically annotated by your build tools.
|
||||
*/
|
||||
onExit?: Function|(string|Function)[];
|
||||
/**
|
||||
@@ -66,7 +72,7 @@ declare module angular.ui {
|
||||
*/
|
||||
data?: any;
|
||||
/**
|
||||
* Boolean (default true). If false will not retrigger 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.
|
||||
* 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;
|
||||
}
|
||||
@@ -88,6 +94,9 @@ declare module angular.ui {
|
||||
compile(pattern: string): IUrlMatcher;
|
||||
isMatcher(o: any): boolean;
|
||||
type(name: string, definition: any, definitionFn?: any): any;
|
||||
caseInsensitive(value: boolean): void;
|
||||
defaultSquashPolicy(value: string): void;
|
||||
strictMode(value: boolean): void;
|
||||
}
|
||||
|
||||
interface IUrlRouterProvider extends angular.IServiceProvider {
|
||||
@@ -165,6 +174,17 @@ declare module angular.ui {
|
||||
current: IState;
|
||||
params: IStateParamsService;
|
||||
reload(): void;
|
||||
|
||||
$current: IResolvedState;
|
||||
}
|
||||
|
||||
interface IResolvedState {
|
||||
locals: {
|
||||
/**
|
||||
* Currently resolved "resolve" values from the current state
|
||||
*/
|
||||
globals: { [key: string]: any; };
|
||||
};
|
||||
}
|
||||
|
||||
interface IStateParamsService {
|
||||
|
||||
+6137
File diff suppressed because it is too large
Load Diff
+6043
File diff suppressed because it is too large
Load Diff
+6310
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,7 @@
|
||||
/// <reference path="angular2.d.ts"/>
|
||||
/// <reference path="router.d.ts"/>
|
||||
|
||||
// Use Typescript 1.4 style imports
|
||||
import ng = require("angular2/angular2");
|
||||
import {Component, View, Directive, bootstrap, bind, NgFor, NgIf} from "angular2/angular2";
|
||||
|
||||
class Service {
|
||||
|
||||
@@ -15,15 +14,15 @@ class Cmp {
|
||||
static annotations: any[];
|
||||
}
|
||||
Cmp.annotations = [
|
||||
ng.Component({
|
||||
Component({
|
||||
selector: 'cmp',
|
||||
injectables: [Service, ng.bind(Service2).toValue(null)]
|
||||
injectables: [Service, bind(Service2).toValue(null)]
|
||||
}),
|
||||
ng.View({
|
||||
View({
|
||||
template: '{{greeting}} world!',
|
||||
directives: [ng.NgFor, ng.NgIf]
|
||||
directives: [NgFor, NgIf]
|
||||
}),
|
||||
ng.Directive({
|
||||
Directive({
|
||||
selector: '[tooltip]',
|
||||
properties: [
|
||||
'text: tooltip'
|
||||
@@ -35,4 +34,10 @@ Cmp.annotations = [
|
||||
})
|
||||
];
|
||||
|
||||
ng.bootstrap(Cmp);
|
||||
@Component({selector: 'cmp2'})
|
||||
@View({templateUrl: '/index.html'})
|
||||
class Cmp2 {
|
||||
|
||||
}
|
||||
|
||||
bootstrap(Cmp);
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
--experimentalDecorators --target ES5
|
||||
Vendored
+2997
-3562
File diff suppressed because it is too large
Load Diff
Vendored
+459
@@ -0,0 +1,459 @@
|
||||
// Type definitions for Angular v2.0.0-alpha.31
|
||||
// Project: http://angular.io/
|
||||
// Definitions by: angular team <https://github.com/angular/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
// ***********************************************************
|
||||
// This file is generated by the Angular build process.
|
||||
// Please do not create manual edits or send pull requests
|
||||
// modifying this file.
|
||||
// ***********************************************************
|
||||
///<reference path="./angular2.d.ts"/>
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @description
|
||||
* Maps application URLs into application states, to support deep-linking and navigation.
|
||||
*/
|
||||
declare module ng {
|
||||
interface List<T> extends Array<T> {}
|
||||
interface Map<K,V> {}
|
||||
interface StringMap<K,V> extends Map<K,V> {}
|
||||
|
||||
export class Instruction {
|
||||
// "capturedUrl" is the part of the URL captured by this instruction
|
||||
// "accumulatedUrl" is the part of the URL captured by this instruction and all children
|
||||
accumulatedUrl: string;
|
||||
reuse: boolean;
|
||||
specificity: number;
|
||||
|
||||
private _params: StringMap<string, string>;
|
||||
|
||||
constructor (component: any, capturedUrl: string,
|
||||
_recognizer: PathRecognizer, child: Instruction);
|
||||
|
||||
params(): StringMap<string, string>;
|
||||
}
|
||||
|
||||
class TouchMap {
|
||||
map: StringMap<string, string>;
|
||||
keys: StringMap<string, boolean>;
|
||||
|
||||
constructor(map: StringMap<string, any>);
|
||||
|
||||
get(key: string): string;
|
||||
|
||||
getUnused(): StringMap<string, any>;
|
||||
}
|
||||
|
||||
export class Segment {
|
||||
name: string;
|
||||
regex: string;
|
||||
generate(params: TouchMap): string;
|
||||
}
|
||||
|
||||
export class PathRecognizer {
|
||||
segments: List<Segment>;
|
||||
regex: RegExp;
|
||||
specificity: number;
|
||||
terminal: boolean;
|
||||
path: string;
|
||||
handler: RouteHandler;
|
||||
|
||||
constructor(path: string, handler: RouteHandler);
|
||||
|
||||
parseParams(url: string): StringMap<string, string>;
|
||||
|
||||
generate(params: StringMap<string, any>): string;
|
||||
|
||||
resolveComponentType(): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
export interface RouteHandler {
|
||||
componentType: Function;
|
||||
resolveComponentType(): Promise<any>;
|
||||
}
|
||||
|
||||
/**
|
||||
* # Router
|
||||
* The router is responsible for mapping URLs to components.
|
||||
*
|
||||
* You can see the state of the router by inspecting the read-only field `router.navigating`.
|
||||
* This may be useful for showing a spinner, for instance.
|
||||
*
|
||||
* ## Concepts
|
||||
* Routers and component instances have a 1:1 correspondence.
|
||||
*
|
||||
* The router holds reference to a number of "outlets." An outlet is a placeholder that the
|
||||
* router dynamically fills in depending on the current URL.
|
||||
*
|
||||
* When the router navigates from a URL, it must first recognizes it and serialize it into an
|
||||
* `Instruction`.
|
||||
* The router uses the `RouteRegistry` to get an `Instruction`.
|
||||
*/
|
||||
class Router {
|
||||
|
||||
navigating: boolean;
|
||||
|
||||
lastNavigationAttempt: string;
|
||||
|
||||
registry: RouteRegistry;
|
||||
|
||||
parent: Router;
|
||||
|
||||
hostComponent: any;
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a child router. You probably don't need to use this unless you're writing a reusable
|
||||
* component.
|
||||
*/
|
||||
childRouter(hostComponent: any): Router;
|
||||
|
||||
|
||||
/**
|
||||
* Register an object to notify of route changes. You probably don't need to use this unless
|
||||
* you're writing a reusable component.
|
||||
*/
|
||||
registerOutlet(outlet: RouterOutlet): Promise<boolean>;
|
||||
|
||||
|
||||
/**
|
||||
* Dynamically update the routing configuration and trigger a navigation.
|
||||
*
|
||||
* # Usage
|
||||
*
|
||||
* ```
|
||||
* router.config({ 'path': '/', 'component': IndexCmp});
|
||||
* ```
|
||||
*
|
||||
* Or:
|
||||
*
|
||||
* ```
|
||||
* router.config([
|
||||
* { 'path': '/', 'component': IndexComp },
|
||||
* { 'path': '/user/:id', 'component': UserComp },
|
||||
* ]);
|
||||
* ```
|
||||
*/
|
||||
config(config: StringMap<string, any>| List<StringMap<string, any>>): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Navigate to a URL. Returns a promise that resolves when navigation is complete.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
navigate(url: string): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Updates this router and all descendant routers according to the given instruction
|
||||
*/
|
||||
commit(instruction: Instruction): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Subscribe to URL updates from the router
|
||||
*/
|
||||
subscribe(onNext: any): void;
|
||||
|
||||
|
||||
/**
|
||||
* Removes the contents of this router's outlet and all descendant outlets
|
||||
*/
|
||||
deactivate(instruction: Instruction): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Given a URL, returns an instruction representing the component graph
|
||||
*/
|
||||
recognize(url: string): Promise<Instruction>;
|
||||
|
||||
|
||||
/**
|
||||
* Navigates to either the last URL successfully navigated to, or the last URL requested if the
|
||||
* router has yet to successfully navigate.
|
||||
*/
|
||||
renavigate(): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Generate a URL from a component name and optional map of parameters. The URL is relative to the
|
||||
* app's base href.
|
||||
*/
|
||||
generate(linkParams: List<any>): string;
|
||||
}
|
||||
|
||||
class RootRouter extends Router {
|
||||
|
||||
commit(instruction: any): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* A router outlet is a placeholder that Angular dynamically fills based on the application's route.
|
||||
*
|
||||
* ## Use
|
||||
*
|
||||
* ```
|
||||
* <router-outlet></router-outlet>
|
||||
* ```
|
||||
*/
|
||||
class RouterOutlet {
|
||||
|
||||
childRouter: Router;
|
||||
|
||||
|
||||
/**
|
||||
* Given an instruction, update the contents of this outlet.
|
||||
*/
|
||||
commit(instruction: Instruction): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Called by Router during recognition phase
|
||||
*/
|
||||
canDeactivate(nextInstruction: Instruction): Promise<boolean>;
|
||||
|
||||
|
||||
/**
|
||||
* Called by Router during recognition phase
|
||||
*/
|
||||
canReuse(nextInstruction: Instruction): Promise<boolean>;
|
||||
|
||||
deactivate(nextInstruction: Instruction): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The RouterLink directive lets you link to specific parts of your app.
|
||||
*
|
||||
* Consider the following route configuration:
|
||||
*
|
||||
* ```
|
||||
* @RouteConfig({
|
||||
* path: '/user', component: UserCmp, as: 'user'
|
||||
* });
|
||||
* class MyComp {}
|
||||
* ```
|
||||
*
|
||||
* When linking to this `user` route, you can write:
|
||||
*
|
||||
* ```
|
||||
* <a [router-link]="['./user']">link to user component</a>
|
||||
* ```
|
||||
*
|
||||
* RouterLink expects the value to be an array of route names, followed by the params
|
||||
* for that level of routing. For instance `['/team', {teamId: 1}, 'user', {userId: 2}]`
|
||||
* means that we want to generate a link for the `team` route with params `{teamId: 1}`,
|
||||
* and with a child route `user` with params `{userId: 2}`.
|
||||
*
|
||||
* The first route name should be prepended with `/`, `./`, or `../`.
|
||||
* If the route begins with `/`, the router will look up the route from the root of the app.
|
||||
* If the route begins with `./`, the router will instead look in the current component's
|
||||
* children for the route. And if the route begins with `../`, the router will look at the
|
||||
* current component's parent.
|
||||
*/
|
||||
class RouterLink {
|
||||
|
||||
visibleHref: string;
|
||||
|
||||
routeParams: void;
|
||||
|
||||
onClick(): boolean;
|
||||
}
|
||||
|
||||
class RouteParams {
|
||||
|
||||
params: StringMap<string, string>;
|
||||
|
||||
get(param: string): string;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* The RouteRegistry holds route configurations for each component in an Angular app.
|
||||
* It is responsible for creating Instructions from URLs, and generating URLs based on route and
|
||||
* parameters.
|
||||
*/
|
||||
class RouteRegistry {
|
||||
|
||||
|
||||
/**
|
||||
* Given a component and a configuration object, add the route to this registry
|
||||
*/
|
||||
config(parentComponent: any, config: StringMap<string, any>): void;
|
||||
|
||||
|
||||
/**
|
||||
* Reads the annotations of a component and configures the registry based on them
|
||||
*/
|
||||
configFromComponent(component: any): void;
|
||||
|
||||
|
||||
/**
|
||||
* 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, parentComponent: any): Promise<Instruction>;
|
||||
|
||||
|
||||
/**
|
||||
* Given a normalized list with component names and params like: `['user', {id: 3 }]`
|
||||
* generates a url with a leading slash relative to the provided `parentComponent`.
|
||||
*/
|
||||
generate(linkParams: List<any>, parentComponent: any): string;
|
||||
}
|
||||
|
||||
class LocationStrategy {
|
||||
|
||||
path(): string;
|
||||
|
||||
pushState(ctx: any, title: string, url: string): void;
|
||||
|
||||
forward(): void;
|
||||
|
||||
back(): void;
|
||||
|
||||
onPopState(fn: any): void;
|
||||
|
||||
getBaseHref(): string;
|
||||
}
|
||||
|
||||
class HashLocationStrategy extends LocationStrategy {
|
||||
|
||||
onPopState(fn: EventListener): void;
|
||||
|
||||
getBaseHref(): string;
|
||||
|
||||
path(): string;
|
||||
|
||||
pushState(state: any, title: string, url: string): void;
|
||||
|
||||
forward(): void;
|
||||
|
||||
back(): void;
|
||||
}
|
||||
|
||||
class HTML5LocationStrategy extends LocationStrategy {
|
||||
|
||||
onPopState(fn: EventListener): void;
|
||||
|
||||
getBaseHref(): string;
|
||||
|
||||
path(): string;
|
||||
|
||||
pushState(state: any, title: string, url: string): void;
|
||||
|
||||
forward(): void;
|
||||
|
||||
back(): void;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* This is the service that an application developer will directly interact with.
|
||||
*
|
||||
* Responsible for normalizing the URL against the application's base href.
|
||||
* A normalized URL is absolute from the URL host, includes the application's base href, and has no
|
||||
* trailing slash:
|
||||
* - `/my/app/user/123` is normalized
|
||||
* - `my/app/user/123` **is not** normalized
|
||||
* - `/my/app/user/123/` **is not** normalized
|
||||
*/
|
||||
class Location {
|
||||
|
||||
path(): string;
|
||||
|
||||
normalize(url: string): string;
|
||||
|
||||
normalizeAbsolutely(url: string): string;
|
||||
|
||||
go(url: string): void;
|
||||
|
||||
forward(): void;
|
||||
|
||||
back(): void;
|
||||
|
||||
subscribe(onNext: any, onThrow?: any, onReturn?: any): void;
|
||||
}
|
||||
|
||||
var appBaseHrefToken : OpaqueToken ;
|
||||
|
||||
|
||||
/**
|
||||
* Responsible for performing each step of navigation.
|
||||
* "Steps" are conceptually similar to "middleware"
|
||||
*/
|
||||
class Pipeline {
|
||||
|
||||
steps: List<Function>;
|
||||
|
||||
process(instruction: Instruction): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [onActivate]
|
||||
*/
|
||||
interface OnActivate {
|
||||
|
||||
onActivate(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [onDeactivate]
|
||||
*/
|
||||
interface OnDeactivate {
|
||||
|
||||
onDeactivate(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [onReuse]
|
||||
*/
|
||||
interface OnReuse {
|
||||
|
||||
onReuse(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [canDeactivate]
|
||||
*/
|
||||
interface CanDeactivate {
|
||||
|
||||
canDeactivate(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [canReuse]
|
||||
*/
|
||||
interface CanReuse {
|
||||
|
||||
canReuse(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
var CanActivate:any;
|
||||
|
||||
var routerDirectives : List<any> ;
|
||||
|
||||
var routerInjectables : List<any> ;
|
||||
|
||||
var RouteConfig:any;
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
declare module "angular2/router" {
|
||||
export = ng;
|
||||
}
|
||||
Vendored
+216
-109
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Angular v2.0.0-alpha.30
|
||||
// Type definitions for Angular v2.0.0-alpha.31
|
||||
// Project: http://angular.io/
|
||||
// Definitions by: angular team <https://github.com/angular/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -14,71 +14,124 @@
|
||||
|
||||
/**
|
||||
* @module
|
||||
* @public
|
||||
* @description
|
||||
* Maps application URLs into application states, to support deep-linking and navigation.
|
||||
*/
|
||||
declare module ng {
|
||||
interface List<T> extends Array<T> {}
|
||||
interface Map<K,V> {}
|
||||
interface StringMap<K,V> extends Map<K,V> {}
|
||||
|
||||
export class Instruction {
|
||||
// "capturedUrl" is the part of the URL captured by this instruction
|
||||
// "accumulatedUrl" is the part of the URL captured by this instruction and all children
|
||||
accumulatedUrl: string;
|
||||
reuse: boolean;
|
||||
specificity: number;
|
||||
|
||||
private _params: StringMap<string, string>;
|
||||
|
||||
constructor (component: any, capturedUrl: string,
|
||||
_recognizer: PathRecognizer, child: Instruction);
|
||||
|
||||
params(): StringMap<string, string>;
|
||||
}
|
||||
|
||||
class TouchMap {
|
||||
map: StringMap<string, string>;
|
||||
keys: StringMap<string, boolean>;
|
||||
|
||||
constructor(map: StringMap<string, any>);
|
||||
|
||||
get(key: string): string;
|
||||
|
||||
getUnused(): StringMap<string, any>;
|
||||
}
|
||||
|
||||
export class Segment {
|
||||
name: string;
|
||||
regex: string;
|
||||
generate(params: TouchMap): string;
|
||||
}
|
||||
|
||||
export class PathRecognizer {
|
||||
segments: List<Segment>;
|
||||
regex: RegExp;
|
||||
specificity: number;
|
||||
terminal: boolean;
|
||||
path: string;
|
||||
handler: RouteHandler;
|
||||
|
||||
constructor(path: string, handler: RouteHandler);
|
||||
|
||||
parseParams(url: string): StringMap<string, string>;
|
||||
|
||||
generate(params: StringMap<string, any>): string;
|
||||
|
||||
resolveComponentType(): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
export interface RouteHandler {
|
||||
componentType: Function;
|
||||
resolveComponentType(): Promise<any>;
|
||||
}
|
||||
|
||||
/**
|
||||
* # Router
|
||||
* The router is responsible for mapping URLs to components.
|
||||
*
|
||||
*
|
||||
* You can see the state of the router by inspecting the read-only field `router.navigating`.
|
||||
* This may be useful for showing a spinner, for instance.
|
||||
*
|
||||
*
|
||||
* ## Concepts
|
||||
* Routers and component instances have a 1:1 correspondence.
|
||||
*
|
||||
*
|
||||
* The router holds reference to a number of "outlets." An outlet is a placeholder that the
|
||||
* router dynamically fills in depending on the current URL.
|
||||
*
|
||||
*
|
||||
* When the router navigates from a URL, it must first recognizes it and serialize it into an
|
||||
* `Instruction`.
|
||||
* The router uses the `RouteRegistry` to get an `Instruction`.
|
||||
*
|
||||
* @exportedAs angular2/router
|
||||
*/
|
||||
class Router {
|
||||
|
||||
|
||||
navigating: boolean;
|
||||
|
||||
|
||||
lastNavigationAttempt: string;
|
||||
|
||||
previousUrl: string;
|
||||
|
||||
|
||||
registry: RouteRegistry;
|
||||
|
||||
|
||||
parent: Router;
|
||||
|
||||
|
||||
hostComponent: any;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Constructs a child router. You probably don't need to use this unless you're writing a reusable
|
||||
* component.
|
||||
*/
|
||||
childRouter(hostComponent: any): Router;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Register an object to notify of route changes. You probably don't need to use this unless
|
||||
* you're writing a reusable component.
|
||||
*/
|
||||
registerOutlet(outlet: RouterOutlet): Promise<boolean>;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Dynamically update the routing configuration and trigger a navigation.
|
||||
*
|
||||
*
|
||||
* # Usage
|
||||
*
|
||||
*
|
||||
* ```
|
||||
* router.config({ 'path': '/', 'component': IndexCmp});
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* Or:
|
||||
*
|
||||
*
|
||||
* ```
|
||||
* router.config([
|
||||
* { 'path': '/', 'component': IndexComp },
|
||||
@@ -87,47 +140,47 @@ declare module ng {
|
||||
* ```
|
||||
*/
|
||||
config(config: StringMap<string, any>| List<StringMap<string, any>>): Promise<any>;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Navigate to a URL. Returns a promise that resolves when navigation is complete.
|
||||
*
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
navigate(url: string): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Subscribe to URL updates from the router
|
||||
*/
|
||||
subscribe(onNext: any): void;
|
||||
|
||||
|
||||
/**
|
||||
* Updates this router and all descendant routers according to the given instruction
|
||||
*/
|
||||
commit(instruction: Instruction): Promise<any>;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Subscribe to URL updates from the router
|
||||
*/
|
||||
subscribe(onNext: any): void;
|
||||
|
||||
|
||||
/**
|
||||
* Removes the contents of this router's outlet and all descendant outlets
|
||||
*/
|
||||
deactivate(): Promise<any>;
|
||||
|
||||
deactivate(instruction: Instruction): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Given a URL, returns an instruction representing the component graph
|
||||
*/
|
||||
recognize(url: string): Promise<Instruction>;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Navigates to either the last URL successfully navigated to, or the last URL requested if the
|
||||
* router has yet to successfully navigate.
|
||||
*/
|
||||
renavigate(): Promise<any>;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Generate a URL from a component name and optional map of parameters. The URL is relative to the
|
||||
@@ -135,83 +188,93 @@ declare module ng {
|
||||
*/
|
||||
generate(linkParams: List<any>): string;
|
||||
}
|
||||
|
||||
|
||||
class RootRouter extends Router {
|
||||
|
||||
|
||||
commit(instruction: any): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* A router outlet is a placeholder that Angular dynamically fills based on the application's route.
|
||||
*
|
||||
*
|
||||
* ## Use
|
||||
*
|
||||
*
|
||||
* ```
|
||||
* <router-outlet></router-outlet>
|
||||
* ```
|
||||
*/
|
||||
class RouterOutlet {
|
||||
|
||||
|
||||
childRouter: Router;
|
||||
|
||||
|
||||
/**
|
||||
* Given an instruction, update the contents of this outlet.
|
||||
*/
|
||||
activate(instruction: Instruction): Promise<any>;
|
||||
|
||||
deactivate(): Promise<any>;
|
||||
|
||||
canDeactivate(instruction: Instruction): Promise<boolean>;
|
||||
commit(instruction: Instruction): Promise<any>;
|
||||
|
||||
|
||||
/**
|
||||
* Called by Router during recognition phase
|
||||
*/
|
||||
canDeactivate(nextInstruction: Instruction): Promise<boolean>;
|
||||
|
||||
|
||||
/**
|
||||
* Called by Router during recognition phase
|
||||
*/
|
||||
canReuse(nextInstruction: Instruction): Promise<boolean>;
|
||||
|
||||
deactivate(nextInstruction: Instruction): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The RouterLink directive lets you link to specific parts of your app.
|
||||
*
|
||||
*
|
||||
* Consider the following route configuration:
|
||||
*
|
||||
*
|
||||
* ```
|
||||
* @RouteConfig({
|
||||
* path: '/user', component: UserCmp, as: 'user'
|
||||
* });
|
||||
* class MyComp {}
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* When linking to this `user` route, you can write:
|
||||
*
|
||||
*
|
||||
* ```
|
||||
* <a [router-link]="['./user']">link to user component</a>
|
||||
* ```
|
||||
*
|
||||
*
|
||||
* RouterLink expects the value to be an array of route names, followed by the params
|
||||
* for that level of routing. For instance `['/team', {teamId: 1}, 'user', {userId: 2}]`
|
||||
* means that we want to generate a link for the `team` route with params `{teamId: 1}`,
|
||||
* and with a child route `user` with params `{userId: 2}`.
|
||||
*
|
||||
*
|
||||
* The first route name should be prepended with `/`, `./`, or `../`.
|
||||
* If the route begins with `/`, the router will look up the route from the root of the app.
|
||||
* If the route begins with `./`, the router will instead look in the current component's
|
||||
* children for the route. And if the route begins with `../`, the router will look at the
|
||||
* current component's parent.
|
||||
*
|
||||
* @exportedAs angular2/router
|
||||
*/
|
||||
class RouterLink {
|
||||
|
||||
|
||||
visibleHref: string;
|
||||
|
||||
|
||||
routeParams: void;
|
||||
|
||||
|
||||
onClick(): boolean;
|
||||
}
|
||||
|
||||
|
||||
class RouteParams {
|
||||
|
||||
|
||||
params: StringMap<string, string>;
|
||||
|
||||
|
||||
get(param: string): string;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* The RouteRegistry holds route configurations for each component in an Angular app.
|
||||
@@ -219,26 +282,26 @@ declare module ng {
|
||||
* parameters.
|
||||
*/
|
||||
class RouteRegistry {
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Given a component and a configuration object, add the route to this registry
|
||||
*/
|
||||
config(parentComponent: any, config: StringMap<string, any>): void;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Reads the annotations of a component and configures the registry based on them
|
||||
*/
|
||||
configFromComponent(component: any): void;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* 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, parentComponent: any): Promise<Instruction>;
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Given a normalized list with component names and params like: `['user', {id: 3 }]`
|
||||
@@ -246,56 +309,56 @@ declare module ng {
|
||||
*/
|
||||
generate(linkParams: List<any>, parentComponent: any): string;
|
||||
}
|
||||
|
||||
|
||||
class LocationStrategy {
|
||||
|
||||
|
||||
path(): string;
|
||||
|
||||
|
||||
pushState(ctx: any, title: string, url: string): void;
|
||||
|
||||
|
||||
forward(): void;
|
||||
|
||||
|
||||
back(): void;
|
||||
|
||||
|
||||
onPopState(fn: any): void;
|
||||
|
||||
|
||||
getBaseHref(): string;
|
||||
}
|
||||
|
||||
|
||||
class HashLocationStrategy extends LocationStrategy {
|
||||
|
||||
|
||||
onPopState(fn: EventListener): void;
|
||||
|
||||
|
||||
getBaseHref(): string;
|
||||
|
||||
|
||||
path(): string;
|
||||
|
||||
|
||||
pushState(state: any, title: string, url: string): void;
|
||||
|
||||
|
||||
forward(): void;
|
||||
|
||||
|
||||
back(): void;
|
||||
}
|
||||
|
||||
|
||||
class HTML5LocationStrategy extends LocationStrategy {
|
||||
|
||||
|
||||
onPopState(fn: EventListener): void;
|
||||
|
||||
|
||||
getBaseHref(): string;
|
||||
|
||||
|
||||
path(): string;
|
||||
|
||||
|
||||
pushState(state: any, title: string, url: string): void;
|
||||
|
||||
|
||||
forward(): void;
|
||||
|
||||
|
||||
back(): void;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* This is the service that an application developer will directly interact with.
|
||||
*
|
||||
*
|
||||
* Responsible for normalizing the URL against the application's base href.
|
||||
* A normalized URL is absolute from the URL host, includes the application's base href, and has no
|
||||
* trailing slash:
|
||||
@@ -304,49 +367,93 @@ declare module ng {
|
||||
* - `/my/app/user/123/` **is not** normalized
|
||||
*/
|
||||
class Location {
|
||||
|
||||
|
||||
path(): string;
|
||||
|
||||
|
||||
normalize(url: string): string;
|
||||
|
||||
|
||||
normalizeAbsolutely(url: string): string;
|
||||
|
||||
|
||||
go(url: string): void;
|
||||
|
||||
|
||||
forward(): void;
|
||||
|
||||
|
||||
back(): void;
|
||||
|
||||
|
||||
subscribe(onNext: any, onThrow?: any, onReturn?: any): void;
|
||||
}
|
||||
|
||||
|
||||
var appBaseHrefToken : OpaqueToken ;
|
||||
|
||||
class Instruction {
|
||||
reuseComponentsFrom(oldInstruction: Instruction): void;
|
||||
params(): StringMap<string, string>;
|
||||
hasChild(): boolean;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Responsible for performing each step of navigation.
|
||||
* "Steps" are conceptually similar to "middleware"
|
||||
*/
|
||||
class Pipeline {
|
||||
|
||||
|
||||
steps: List<Function>;
|
||||
|
||||
|
||||
process(instruction: Instruction): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [onActivate]
|
||||
*/
|
||||
interface OnActivate {
|
||||
|
||||
onActivate(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [onDeactivate]
|
||||
*/
|
||||
interface OnDeactivate {
|
||||
|
||||
onDeactivate(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [onReuse]
|
||||
*/
|
||||
interface OnReuse {
|
||||
|
||||
onReuse(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [canDeactivate]
|
||||
*/
|
||||
interface CanDeactivate {
|
||||
|
||||
canDeactivate(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Defines route lifecycle method [canReuse]
|
||||
*/
|
||||
interface CanReuse {
|
||||
|
||||
canReuse(nextInstruction: Instruction, prevInstruction: Instruction): any;
|
||||
}
|
||||
|
||||
var CanActivate:any;
|
||||
|
||||
var routerDirectives : List<any> ;
|
||||
|
||||
|
||||
var routerInjectables : List<any> ;
|
||||
|
||||
|
||||
var RouteConfig:any;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
declare module "angular2/router" {
|
||||
export = ng;
|
||||
}
|
||||
|
||||
Vendored
+10
-8
@@ -238,7 +238,7 @@ declare module angular {
|
||||
|
||||
fromJson(json: string): any;
|
||||
identity(arg?: any): any;
|
||||
injector(modules?: any[]): auto.IInjectorService;
|
||||
injector(modules?: any[], strictDi?: boolean): auto.IInjectorService;
|
||||
isArray(value: any): boolean;
|
||||
isDate(value: any): boolean;
|
||||
isDefined(value: any): boolean;
|
||||
@@ -421,9 +421,9 @@ declare module angular {
|
||||
|
||||
/**
|
||||
* 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): void;
|
||||
@@ -617,12 +617,12 @@ declare module angular {
|
||||
$on(name: string, listener: (event: IAngularEvent, ...args: any[]) => any): Function;
|
||||
|
||||
$watch(watchExpression: string, listener?: string, objectEquality?: boolean): Function;
|
||||
$watch(watchExpression: string, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: boolean): Function;
|
||||
$watch<T>(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) => any, listener?: (newValue: any, oldValue: any, scope: IScope) => any, objectEquality?: boolean): Function;
|
||||
$watch<T>(watchExpression: (scope: IScope) => T, listener?: (newValue: T, oldValue: T, scope: IScope) => any, objectEquality?: boolean): Function;
|
||||
|
||||
$watchCollection(watchExpression: string, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
|
||||
$watchCollection(watchExpression: (scope: IScope) => any, listener: (newValue: any, oldValue: any, scope: IScope) => any): Function;
|
||||
$watchCollection<T>(watchExpression: string, listener: (newValue: T, oldValue: T, scope: IScope) => any): Function;
|
||||
$watchCollection<T>(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;
|
||||
@@ -862,7 +862,7 @@ declare module angular {
|
||||
warn: ILogCall;
|
||||
}
|
||||
|
||||
interface ILogProvider {
|
||||
interface ILogProvider extends IServiceProvider {
|
||||
debugEnabled(): boolean;
|
||||
debugEnabled(enabled: boolean): ILogProvider;
|
||||
}
|
||||
@@ -1540,6 +1540,8 @@ declare module angular {
|
||||
interface ISCEDelegateProvider extends IServiceProvider {
|
||||
resourceUrlBlacklist(blacklist: any[]): void;
|
||||
resourceUrlWhitelist(whitelist: any[]): void;
|
||||
resourceUrlBlacklist(): any[];
|
||||
resourceUrlWhitelist(): any[];
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -0,0 +1,25 @@
|
||||
/// <reference path="angulartics.d.ts" />
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
module Analytics {
|
||||
angular.module("angulartics.app", ["angulartics"])
|
||||
.config(["$analyticsProvider", ($analyticsProvider: Angulartics.IAnalyticsServiceProvider) => {
|
||||
angulartics.waitForVendorApi("location", 1000, (message: string) => {
|
||||
console.log(message);
|
||||
});
|
||||
|
||||
$analyticsProvider.virtualPageviews(false);
|
||||
$analyticsProvider.firstPageview(false);
|
||||
$analyticsProvider.withAutoBase(true);
|
||||
$analyticsProvider.developerMode(true);
|
||||
|
||||
$analyticsProvider.registerEventTrack((action: string, properties?: any) => {
|
||||
console.log(action);
|
||||
});
|
||||
|
||||
$analyticsProvider.registerPageTrack((path: string, locationObj: ng.ILocationService) => {
|
||||
console.log("viewed " + path);
|
||||
});
|
||||
}]);
|
||||
}
|
||||
|
||||
Vendored
+39
@@ -0,0 +1,39 @@
|
||||
// Type definitions for Angulartics v0.19.2
|
||||
// Project: http://luisfarzati.github.io/angulartics/
|
||||
// Definitions by: Steven Fan <https://github.com/stevenfan>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
|
||||
interface Angulartics {
|
||||
waitForVendorApi(objectName: string, delay: number, containsField?: any, registerFn?: any, onTimeout?: boolean): void;
|
||||
}
|
||||
|
||||
declare module Angulartics {
|
||||
|
||||
interface IAnalyticsService {
|
||||
eventTrack(eventName: string, properties?: any): any;
|
||||
pageTrack(path: string, location?: ng.ILocationService): any;
|
||||
setAlias(alias: string): any;
|
||||
setUsername(username: string): any;
|
||||
setUserProperties(properties: any): any;
|
||||
setSuperProperties(properties: any): any;
|
||||
}
|
||||
|
||||
interface IAnalyticsServiceProvider extends angular.IServiceProvider {
|
||||
virtualPageviews(value: boolean): void;
|
||||
firstPageview(value: boolean): void;
|
||||
withBase(value: boolean): void;
|
||||
withAutoBase(value: boolean): void;
|
||||
developerMode(value: boolean): void;
|
||||
|
||||
registerPageTrack(callback: (path: string, location?: ng.ILocationService) => any): void;
|
||||
registerEventTrack(callback: (eventName: string, properties?: any) => any): void;
|
||||
registerSetAlias(callback: (alias: string) => any): void
|
||||
registerSetUsername(callback: (username: string) => any): void
|
||||
registerSetUserProperties(callback: (userProperties: any) => any): void
|
||||
registerSetSuperProperties(callback: (superProperties: any) => any): void
|
||||
}
|
||||
}
|
||||
|
||||
declare var angulartics:Angulartics;
|
||||
Vendored
+2151
-1245
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,3 @@
|
||||
[*.ts]
|
||||
indent_style = tab
|
||||
indent_size = 4
|
||||
@@ -0,0 +1,20 @@
|
||||
/// <reference path="./atom-keymap.d.ts" />
|
||||
|
||||
import { KeymapManager, ICompleteMatchEvent } from "atom-keymap";
|
||||
|
||||
var manager = new KeymapManager();
|
||||
manager.add('some/unique/path', {
|
||||
'.workspace': {
|
||||
'ctrl-x': 'package:do-something',
|
||||
'ctrl-y': 'package:do-something-else'
|
||||
},
|
||||
'.mini.editor': {
|
||||
'enter': 'core:confirm'
|
||||
}
|
||||
});
|
||||
|
||||
manager.onDidMatchBinding((event: ICompleteMatchEvent): void => {
|
||||
console.log(event.binding.command);
|
||||
})
|
||||
|
||||
manager.destroy();
|
||||
Vendored
+135
@@ -0,0 +1,135 @@
|
||||
// Type definitions for atom-keymap v5.1.5
|
||||
// Project: https://github.com/atom/atom-keymap/
|
||||
// Definitions by: Vadim Macagon <https://github.com/enlight/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../event-kit/event-kit.d.ts" />
|
||||
|
||||
declare module AtomKeymap {
|
||||
type Disposable = AtomEventKit.Disposable;
|
||||
|
||||
/** Instance side of KeyBinding class. */
|
||||
interface KeyBinding {
|
||||
enabled: boolean;
|
||||
source: string;
|
||||
command: string;
|
||||
keystrokes: string;
|
||||
keystrokeCount: number;
|
||||
selector: string;
|
||||
specificity: number;
|
||||
|
||||
matches(keystroke: string): boolean;
|
||||
compare(keyBinding: KeyBinding): number;
|
||||
}
|
||||
|
||||
interface ICompleteMatchEvent {
|
||||
/** Keystrokes that matched the binding. */
|
||||
keystrokes: string;
|
||||
/** Binding that was matched to the keystrokes. */
|
||||
binding: KeyBinding;
|
||||
/** DOM element that was the target of the most recent `KeyboardEvent`. */
|
||||
keyboardEventTarget: Element;
|
||||
}
|
||||
|
||||
interface IPartialMatchEvent {
|
||||
/** Keystrokes that matched the binding. */
|
||||
keystrokes: string;
|
||||
/** Bindings that were partially matched to the keystrokes. */
|
||||
partiallyMatchedBindings: KeyBinding[];
|
||||
/** DOM element that was the target of the most recent `KeyboardEvent`. */
|
||||
keyboardEventTarget: Element;
|
||||
}
|
||||
|
||||
interface IFailedMatchEvent {
|
||||
/** Keystrokes that failed to match a binding. */
|
||||
keystrokes: string;
|
||||
/** DOM element that was the target of the most recent `KeyboardEvent`. */
|
||||
keyboardEventTarget: Element;
|
||||
}
|
||||
|
||||
interface IKeymapLoadEvent {
|
||||
/** Path to a keymap file. */
|
||||
path: string;
|
||||
}
|
||||
|
||||
/** Static side of KeymapManager class. */
|
||||
interface KeymapManagerStatic {
|
||||
prototype: KeymapManager;
|
||||
new (options?: { defaultTarget?: Element }): KeymapManager;
|
||||
}
|
||||
|
||||
/** Instance side of KeymapManager class. */
|
||||
interface KeymapManager {
|
||||
constructor: KeymapManagerStatic;
|
||||
/** Unwatches all watched paths. */
|
||||
destroy(): void;
|
||||
|
||||
// Event Subscription
|
||||
|
||||
/** Sets callback to invoke when one or more keystrokes completely match a key binding. */
|
||||
onDidMatchBinding(callback: (event: ICompleteMatchEvent) => void): Disposable;
|
||||
/** Sets callback to invoke when one or more keystrokes partially match a binding. */
|
||||
onDidPartiallyMatchBindings(callback: (event: IPartialMatchEvent) => void): Disposable;
|
||||
/** Sets callback to invoke when one or more keystrokes fail to match any bindings. */
|
||||
onDidFailToMatchBinding(callback: (event: IFailedMatchEvent) => void): Disposable;
|
||||
/** Sets callback to invoke when a keymap file is reloaded. */
|
||||
onDidReloadKeymap(callback: (event: IKeymapLoadEvent) => void): Disposable;
|
||||
/** Sets callback to invoke when a keymap file is unloaded. */
|
||||
onDidUnloadKeymap(callback: (event: IKeymapLoadEvent) => void): Disposable;
|
||||
/** Sets callback to invoke when a keymap file could not to be loaded. */
|
||||
onDidFailToReadFile(callback: (error: Error) => void): Disposable;
|
||||
|
||||
// Adding and Removing Bindings
|
||||
|
||||
/** Adds sets of key bindings grouped by CSS selector. */
|
||||
add(source: string, keyBindingsBySelector: any): Disposable;
|
||||
|
||||
// Accessing Bindings
|
||||
|
||||
getKeyBindings(): KeyBinding[];
|
||||
findKeyBindings(params?: {
|
||||
keystrokes: string; // e.g. 'ctrl-x ctrl-s'
|
||||
command: string; // e.g. 'editor:backspace'
|
||||
target?: Element;
|
||||
}): KeyBinding[];
|
||||
|
||||
// Managing Keymap Files
|
||||
|
||||
/**
|
||||
* Loads the key bindings from the given path.
|
||||
*
|
||||
* @param bindingsPath A path to a file or a directory. If the path is a directory all files
|
||||
* inside it will be loaded.
|
||||
*/
|
||||
loadKeymap(bindingsPath: string, options?: { watch: boolean }): void;
|
||||
/**
|
||||
* Starts watching the given file/directory for changes, reloading any keymaps at that location
|
||||
* when changes are detected.
|
||||
*
|
||||
* @param filePath A path to a file or a directory.
|
||||
*/
|
||||
watchKeymap(filePath: string): void;
|
||||
|
||||
// Managing Keyboard Events
|
||||
|
||||
/**
|
||||
* Dispatches a custom event associated with the matching key binding for the given
|
||||
* `KeyboardEvent` if one can be found.
|
||||
*/
|
||||
handleKeyboardEvent(event: KeyboardEvent): void;
|
||||
/** Translates a keydown event to a keystroke string. */
|
||||
keystrokeForKeyboardEvent(event: KeyboardEvent): string;
|
||||
/**
|
||||
* @return The number of milliseconds allowed before pending states caused by partial matches of
|
||||
* multi-keystroke bindings are terminated.
|
||||
*/
|
||||
getPartialMatchTimeout(): number;
|
||||
}
|
||||
|
||||
/** Allows commands to be associated with keystrokes in a context-sensitive way.*/
|
||||
var KeymapManager: KeymapManagerStatic;
|
||||
}
|
||||
|
||||
declare module 'atom-keymap' {
|
||||
export = AtomKeymap;
|
||||
}
|
||||
Vendored
+1
@@ -27,6 +27,7 @@ interface Auth0LockOptions {
|
||||
forceJSONP?: boolean;
|
||||
gravatar?: boolean;
|
||||
integratedWindowsLogin?: boolean;
|
||||
icon?: string;
|
||||
loginAfterSignup?: boolean;
|
||||
popup?: boolean;
|
||||
popupOptions?: Auth0LockPopupOptions;
|
||||
|
||||
Vendored
+1
-5
@@ -9,10 +9,6 @@ interface Window {
|
||||
token: string;
|
||||
}
|
||||
|
||||
interface Location {
|
||||
origin: string;
|
||||
}
|
||||
|
||||
/** This is the interface for the main Auth0 client. */
|
||||
interface Auth0Static {
|
||||
|
||||
@@ -37,7 +33,7 @@ interface Auth0Static {
|
||||
interface Auth0ClientOptions {
|
||||
clientID: string;
|
||||
callbackURL: string;
|
||||
callbackOnLoactionHash?: boolean;
|
||||
callbackOnLocationHash?: boolean;
|
||||
domain: string;
|
||||
forceJSONP?: boolean;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
/// <reference path="autobahn.d.ts"/>
|
||||
|
||||
import autobahn = require("autobahn");
|
||||
|
||||
class MyClass {
|
||||
add2Count: number = 0;
|
||||
session: autobahn.Session;
|
||||
@@ -44,4 +46,4 @@ function test_client() {
|
||||
};
|
||||
|
||||
connection.open();
|
||||
}
|
||||
}
|
||||
|
||||
Vendored
+153
-148
@@ -1,195 +1,200 @@
|
||||
// Type definitions for AutobahnJS v0.9.6
|
||||
// Type definitions for AutobahnJS v0.9.6
|
||||
// Project: http://autobahn.ws/js/
|
||||
// Definitions by: Elad Zelingher <https://github.com/darkl/>
|
||||
// Definitions by: Elad Zelingher <https://github.com/darkl/>, Andy Hawkins <https://github.com/a904guy/,http://a904guy.com/,http://www.bmbsqd.com>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../when/when.d.ts" />
|
||||
|
||||
declare module autobahn {
|
||||
|
||||
export class Session {
|
||||
id: number;
|
||||
realm: string;
|
||||
isOpen: boolean;
|
||||
features: any;
|
||||
caller_disclose_me: boolean;
|
||||
publisher_disclose_me: boolean;
|
||||
subscriptions: ISubscription[][];
|
||||
registrations: IRegistration[];
|
||||
export class Session {
|
||||
id: number;
|
||||
realm: string;
|
||||
isOpen: boolean;
|
||||
features: any;
|
||||
caller_disclose_me: boolean;
|
||||
publisher_disclose_me: boolean;
|
||||
subscriptions: ISubscription[][];
|
||||
registrations: IRegistration[];
|
||||
|
||||
constructor(transport: ITransport, defer: DeferFactory, challenge: OnChallengeHandler);
|
||||
constructor(transport: ITransport, defer: DeferFactory, challenge: OnChallengeHandler);
|
||||
|
||||
join(realm: string, authmethods: string[], authid: string): void;
|
||||
join(realm: string, authmethods: string[], authid: string): void;
|
||||
|
||||
leave(reason: string, message: string): void;
|
||||
leave(reason: string, message: string): void;
|
||||
|
||||
call<TResult>(procedure: string, args?: any[], kwargs?: any, options?: ICallOptions): When.Promise<TResult>;
|
||||
call<TResult>(procedure: string, args?: any[], kwargs?: any, options?: ICallOptions): When.Promise<TResult>;
|
||||
|
||||
publish(topic: string, args?: any[], kwargs?: any, options?: IPublishOptions): When.Promise<IPublication>;
|
||||
publish(topic: string, args?: any[], kwargs?: any, options?: IPublishOptions): When.Promise<IPublication>;
|
||||
|
||||
subscribe(topic: string, handler: SubscribeHandler, options?: ISubscribeOptions): When.Promise<ISubscription>;
|
||||
subscribe(topic: string, handler: SubscribeHandler, options?: ISubscribeOptions): When.Promise<ISubscription>;
|
||||
|
||||
register(procedure: string, endpoint: RegisterEndpoint, options?: IRegisterOptions): When.Promise<IRegistration>;
|
||||
register(procedure: string, endpoint: RegisterEndpoint, options?: IRegisterOptions): When.Promise<IRegistration>;
|
||||
|
||||
unsubscribe(subscription: ISubscription): When.Promise<any>;
|
||||
unsubscribe(subscription: ISubscription): When.Promise<any>;
|
||||
|
||||
unregister(registration: IRegistration): When.Promise<any>;
|
||||
unregister(registration: IRegistration): When.Promise<any>;
|
||||
|
||||
prefix(prefix: string, uri: string): void;
|
||||
prefix(prefix: string, uri: string): void;
|
||||
|
||||
resolve(curie: string): string;
|
||||
resolve(curie: string): string;
|
||||
|
||||
onjoin: (roleFeatures: any) => void;
|
||||
onleave: (reason: string, details: any) => void;
|
||||
}
|
||||
onjoin: (roleFeatures: any) => void;
|
||||
onleave: (reason: string, details: any) => void;
|
||||
}
|
||||
|
||||
interface IInvocation {
|
||||
caller?: number;
|
||||
progress?: boolean;
|
||||
procedure: string;
|
||||
}
|
||||
interface IInvocation {
|
||||
caller?: number;
|
||||
progress?: boolean;
|
||||
procedure: string;
|
||||
}
|
||||
|
||||
interface IEvent {
|
||||
publication: number;
|
||||
publisher?: number;
|
||||
topic: string;
|
||||
}
|
||||
interface IEvent {
|
||||
publication: number;
|
||||
publisher?: number;
|
||||
topic: string;
|
||||
}
|
||||
|
||||
interface IResult {
|
||||
args: any[];
|
||||
kwargs: any;
|
||||
}
|
||||
interface IResult {
|
||||
args: any[];
|
||||
kwargs: any;
|
||||
}
|
||||
|
||||
interface IError {
|
||||
error: string;
|
||||
args: any[];
|
||||
kwargs: any;
|
||||
}
|
||||
interface IError {
|
||||
error: string;
|
||||
args: any[];
|
||||
kwargs: any;
|
||||
}
|
||||
|
||||
type SubscribeHandler = (args?: any[], kwargs?: any, details?: IEvent) => void;
|
||||
type SubscribeHandler = (args?: any[], kwargs?: any, details?: IEvent) => void;
|
||||
|
||||
interface ISubscription {
|
||||
topic: string;
|
||||
handler: SubscribeHandler;
|
||||
options: ISubscribeOptions;
|
||||
session: Session;
|
||||
id: number;
|
||||
active: boolean;
|
||||
unsubscribe(): When.Promise<any>;
|
||||
}
|
||||
interface ISubscription {
|
||||
topic: string;
|
||||
handler: SubscribeHandler;
|
||||
options: ISubscribeOptions;
|
||||
session: Session;
|
||||
id: number;
|
||||
active: boolean;
|
||||
unsubscribe(): When.Promise<any>;
|
||||
}
|
||||
|
||||
type RegisterEndpoint = (args?: any[], kwargs?: any, details?: IInvocation) => void;
|
||||
type RegisterEndpoint = (args?: any[], kwargs?: any, details?: IInvocation) => void;
|
||||
|
||||
interface IRegistration {
|
||||
procedure: string;
|
||||
endpoint: RegisterEndpoint;
|
||||
options: IRegisterOptions;
|
||||
session: Session;
|
||||
id: number;
|
||||
active: boolean;
|
||||
unregister(): When.Promise<any>;
|
||||
}
|
||||
interface IRegistration {
|
||||
procedure: string;
|
||||
endpoint: RegisterEndpoint;
|
||||
options: IRegisterOptions;
|
||||
session: Session;
|
||||
id: number;
|
||||
active: boolean;
|
||||
unregister(): When.Promise<any>;
|
||||
}
|
||||
|
||||
interface IPublication {
|
||||
id: number;
|
||||
}
|
||||
interface IPublication {
|
||||
id: number;
|
||||
}
|
||||
|
||||
interface ICallOptions {
|
||||
timeout?: number;
|
||||
receive_progress?: boolean;
|
||||
disclose_me?: boolean;
|
||||
}
|
||||
interface ICallOptions {
|
||||
timeout?: number;
|
||||
receive_progress?: boolean;
|
||||
disclose_me?: boolean;
|
||||
}
|
||||
|
||||
interface IPublishOptions {
|
||||
exclude?: number[];
|
||||
eligible?: number[];
|
||||
disclose_me? : Boolean;
|
||||
}
|
||||
interface IPublishOptions {
|
||||
exclude?: number[];
|
||||
eligible?: number[];
|
||||
disclose_me? : Boolean;
|
||||
}
|
||||
|
||||
interface ISubscribeOptions {
|
||||
match? : string;
|
||||
}
|
||||
interface ISubscribeOptions {
|
||||
match? : string;
|
||||
}
|
||||
|
||||
interface IRegisterOptions {
|
||||
disclose_caller?: boolean;
|
||||
}
|
||||
interface IRegisterOptions {
|
||||
disclose_caller?: boolean;
|
||||
}
|
||||
|
||||
export class Connection {
|
||||
constructor(options?: IConnectionOptions);
|
||||
export class Connection {
|
||||
constructor(options?: IConnectionOptions);
|
||||
|
||||
open(): void;
|
||||
open(): void;
|
||||
|
||||
close(reason: string, message: string): void;
|
||||
close(reason: string, message: string): void;
|
||||
|
||||
onopen: (session: Session, details: any) => void;
|
||||
onclose: (reason: string, details: any) => boolean;
|
||||
}
|
||||
onopen: (session: Session, details: any) => void;
|
||||
onclose: (reason: string, details: any) => boolean;
|
||||
}
|
||||
|
||||
interface ITransportDefinition {
|
||||
url?: string;
|
||||
protocols?: string[];
|
||||
type: string;
|
||||
}
|
||||
interface ITransportDefinition {
|
||||
url?: string;
|
||||
protocols?: string[];
|
||||
type: string;
|
||||
}
|
||||
|
||||
type DeferFactory = () => any;
|
||||
type DeferFactory = () => any;
|
||||
|
||||
type OnChallengeHandler = (session: Session, method: string, extra: any) => When.Promise<string>;
|
||||
type OnChallengeHandler = (session: Session, method: string, extra: any) => When.Promise<string>;
|
||||
|
||||
interface IConnectionOptions {
|
||||
use_es6_promises?: boolean;
|
||||
// use explicit deferred factory, e.g. jQuery.Deferred or Q.defer
|
||||
use_deferred?: DeferFactory;
|
||||
transports?: ITransportDefinition[];
|
||||
retry_if_unreachable?: boolean;
|
||||
max_retries?: number;
|
||||
initial_retry_delay?: number;
|
||||
max_retry_delay?: number;
|
||||
retry_delay_growth?: number;
|
||||
retry_delay_jitter?: number;
|
||||
url?: string;
|
||||
protocols?: string[];
|
||||
onchallenge?: (session: Session, method: string, extra: any) => OnChallengeHandler;
|
||||
realm?: string;
|
||||
authmethods?: string[];
|
||||
authid?: string;
|
||||
}
|
||||
interface IConnectionOptions {
|
||||
use_es6_promises?: boolean;
|
||||
// use explicit deferred factory, e.g. jQuery.Deferred or Q.defer
|
||||
use_deferred?: DeferFactory;
|
||||
transports?: ITransportDefinition[];
|
||||
retry_if_unreachable?: boolean;
|
||||
max_retries?: number;
|
||||
initial_retry_delay?: number;
|
||||
max_retry_delay?: number;
|
||||
retry_delay_growth?: number;
|
||||
retry_delay_jitter?: number;
|
||||
url?: string;
|
||||
protocols?: string[];
|
||||
onchallenge?: (session: Session, method: string, extra: any) => OnChallengeHandler;
|
||||
realm?: string;
|
||||
authmethods?: string[];
|
||||
authid?: string;
|
||||
}
|
||||
|
||||
interface ICloseEventDetails {
|
||||
wasClean: boolean;
|
||||
reason: string;
|
||||
code: number;
|
||||
}
|
||||
interface ICloseEventDetails {
|
||||
wasClean: boolean;
|
||||
reason: string;
|
||||
code: number;
|
||||
}
|
||||
|
||||
interface ITransport {
|
||||
onopen: () => void;
|
||||
onmessage: (message: any[]) => void;
|
||||
onclose: (details: ICloseEventDetails) => void;
|
||||
interface ITransport {
|
||||
onopen: () => void;
|
||||
onmessage: (message: any[]) => void;
|
||||
onclose: (details: ICloseEventDetails) => void;
|
||||
|
||||
send(message: any[]): void;
|
||||
close(errorCode: number, reason?: string): void;
|
||||
}
|
||||
send(message: any[]): void;
|
||||
close(errorCode: number, reason?: string): void;
|
||||
}
|
||||
|
||||
interface ITransportFactory {
|
||||
//constructor(options: any);
|
||||
type: string;
|
||||
create(): ITransport;
|
||||
}
|
||||
interface ITransportFactory {
|
||||
//constructor(options: any);
|
||||
type: string;
|
||||
create(): ITransport;
|
||||
}
|
||||
|
||||
interface ITransports {
|
||||
register(name: string, factory: any): void;
|
||||
isRegistered(name: string): boolean;
|
||||
get(name: string): any;
|
||||
list(): any[];
|
||||
}
|
||||
interface ITransports {
|
||||
register(name: string, factory: any): void;
|
||||
isRegistered(name: string): boolean;
|
||||
get(name: string): any;
|
||||
list(): any[];
|
||||
}
|
||||
|
||||
interface ILog {
|
||||
debug(...args: any[]): void;
|
||||
}
|
||||
interface ILog {
|
||||
debug(...args: any[]): void;
|
||||
}
|
||||
|
||||
interface IUtil {
|
||||
assert(condition: boolean, message: string): void;
|
||||
}
|
||||
interface IUtil {
|
||||
assert(condition: boolean, message: string): void;
|
||||
}
|
||||
|
||||
var util: IUtil;
|
||||
var log: ILog;
|
||||
var transports: ITransports;
|
||||
}
|
||||
var util: IUtil;
|
||||
var log: ILog;
|
||||
var transports: ITransports;
|
||||
}
|
||||
|
||||
declare module "autobahn" {
|
||||
export = autobahn;
|
||||
}
|
||||
|
||||
Vendored
+11
-14
@@ -148,7 +148,7 @@ declare module Backbone {
|
||||
unset(attribute: string, options?: Silenceable): Model;
|
||||
validate(attributes: any, options?: any): any;
|
||||
|
||||
private _validate(attrs: any, options: any): boolean;
|
||||
private _validate(attributes: any, options: any): boolean;
|
||||
|
||||
// mixins from underscore
|
||||
|
||||
@@ -173,23 +173,21 @@ declare module Backbone {
|
||||
models: TModel[];
|
||||
length: number;
|
||||
|
||||
constructor(models?: TModel[], options?: any);
|
||||
initialize(models?: TModel[], options?: any): void;
|
||||
constructor(models?: TModel[] | Object[], options?: any);
|
||||
initialize(models?: TModel[] | Object[], options?: any): void;
|
||||
|
||||
fetch(options?: CollectionFetchOptions): JQueryXHR;
|
||||
|
||||
comparator(element: TModel): number;
|
||||
comparator(compare: TModel, to?: TModel): number;
|
||||
|
||||
add(model: TModel, options?: AddOptions): Collection<TModel>;
|
||||
add(models: TModel[], options?: AddOptions): Collection<TModel>;
|
||||
add(model: {}|TModel, options?: AddOptions): TModel;
|
||||
add(models: ({}|TModel)[], options?: AddOptions): TModel[];
|
||||
at(index: number): TModel;
|
||||
/**
|
||||
* Get a model from a collection, specified by an id, a cid, or by passing in a model.
|
||||
**/
|
||||
get(id: number): TModel;
|
||||
get(id: string): TModel;
|
||||
get(id: Model): TModel;
|
||||
get(id: number|string|Model): TModel;
|
||||
create(attributes: any, options?: ModelSaveOptions): TModel;
|
||||
pluck(attribute: string): any[];
|
||||
push(model: TModel, options?: AddOptions): TModel;
|
||||
@@ -201,10 +199,10 @@ declare module Backbone {
|
||||
shift(options?: Silenceable): TModel;
|
||||
sort(options?: Silenceable): Collection<TModel>;
|
||||
unshift(model: TModel, options?: AddOptions): TModel;
|
||||
where(properies: any): TModel[];
|
||||
where(properties: any): TModel[];
|
||||
findWhere(properties: any): TModel;
|
||||
|
||||
private _prepareModel(attrs?: any, options?: any): any;
|
||||
private _prepareModel(attributes?: any, options?: any): any;
|
||||
private _removeReference(model: TModel): void;
|
||||
private _onModelEvent(event: string, model: TModel, collection: Collection<TModel>, options: any): void;
|
||||
|
||||
@@ -247,6 +245,7 @@ declare module Backbone {
|
||||
select(iterator: any, context?: any): any[];
|
||||
size(): number;
|
||||
shuffle(): any[];
|
||||
slice(min: number, max?: number): TModel[];
|
||||
some(iterator: (element: TModel, index: number) => boolean, context?: any): boolean;
|
||||
sortBy(iterator: (element: TModel, index: number) => number, context?: any): TModel[];
|
||||
sortBy(attribute: string, context?: any): TModel[];
|
||||
@@ -277,8 +276,7 @@ declare module Backbone {
|
||||
|
||||
constructor(options?: RouterOptions);
|
||||
initialize(options?: RouterOptions): void;
|
||||
route(route: string, name: string, callback?: Function): Router;
|
||||
route(route: RegExp, name: string, callback?: Function): Router;
|
||||
route(route: string|RegExp, name: string, callback?: Function): Router;
|
||||
navigate(fragment: string, options?: NavigateOptions): Router;
|
||||
navigate(fragment: string, trigger?: boolean): Router;
|
||||
|
||||
@@ -340,8 +338,7 @@ declare module Backbone {
|
||||
model: TModel;
|
||||
collection: Collection<TModel>;
|
||||
//template: (json, options?) => string;
|
||||
setElement(element: HTMLElement, delegate?: boolean): View<TModel>;
|
||||
setElement(element: JQuery, delegate?: boolean): View<TModel>;
|
||||
setElement(element: HTMLElement|JQuery, delegate?: boolean): View<TModel>;
|
||||
id: string;
|
||||
cid: string;
|
||||
className: string;
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
root = true
|
||||
|
||||
[*.ts]
|
||||
indent_style = space
|
||||
indent_size = 4
|
||||
end_of_line = lf
|
||||
charset = utf-8
|
||||
trim_trailing_whitespace = true
|
||||
insert_final_newline = true
|
||||
@@ -0,0 +1,464 @@
|
||||
/// <reference path="./baconjs.d.ts" />
|
||||
|
||||
function CreatingStreams() {
|
||||
$("#my-div").asEventStream("click");
|
||||
$("#my-div").asEventStream("click", ".more-specific-selector");
|
||||
$("#my-div").asEventStream("click", (event, args) => args[0]);
|
||||
$("#my-div").asEventStream("click", ".more-specific-selector", (event, args) => args[0]);
|
||||
|
||||
Bacon.fromPromise($.ajax("https://baconjs.github.io/"));
|
||||
Bacon.fromPromise(Promise.resolve(1));
|
||||
|
||||
Bacon.fromPromise($.ajax("https://baconjs.github.io/"), true);
|
||||
Bacon.fromPromise(Promise.resolve(1), false);
|
||||
|
||||
Bacon.fromPromise($.ajax("https://baconjs.github.io/"), true, (n:string) => {
|
||||
return [new Bacon.Next(n), new Bacon.Next(() => n), new Bacon.End()];
|
||||
});
|
||||
Bacon.fromPromise(Promise.resolve(1), false, n => {
|
||||
return [new Bacon.Next(n), new Bacon.Next(() => n), new Bacon.End()];
|
||||
});
|
||||
|
||||
Bacon.fromEvent(document.body, "click").onValue(() => {
|
||||
alert("Bacon!");
|
||||
});
|
||||
Bacon.fromEvent(document.body, "click", (event:MouseEvent) => event.clientX).onValue(clientX => {
|
||||
alert("Bacon!");
|
||||
});
|
||||
Bacon.fromEvent(process.stdin, "readable", () => {
|
||||
alert("Bacon!");
|
||||
});
|
||||
Bacon.fromEvent($("body"), "click").onValue(() => {
|
||||
alert("Bacon!");
|
||||
});
|
||||
|
||||
// This would create a stream that outputs a single value "Bacon!" and ends after that. The use of setTimeout causes the value to be delayed by 1 second.
|
||||
Bacon.fromCallback(callback => {
|
||||
setTimeout(() => {
|
||||
callback("Bacon!");
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
// You can also give any number of arguments to `fromCallback`, which will be passed to the function. These arguments can be simple variables, Bacon EventStreams or Properties. For example the following will output "Bacon rules":
|
||||
Bacon.fromCallback((a, b, callback) => {
|
||||
callback(a + " " + b);
|
||||
}, Bacon.constant("bacon"), "rules").log();
|
||||
|
||||
{
|
||||
var fs = require("fs"),
|
||||
read = Bacon.fromNodeCallback(fs.readFile, "input.txt");
|
||||
read.onError(error => {
|
||||
console.log("Reading failed: " + error);
|
||||
});
|
||||
read.onValue(value => {
|
||||
console.log("Read contents: " + value);
|
||||
});
|
||||
}
|
||||
|
||||
Bacon.once(new Bacon.Error("fail"));
|
||||
|
||||
// The following would lead to `1,2,3,1,2,3...` to be repeated indefinitely:
|
||||
Bacon.fromArray([1, new Bacon.Error("")]);
|
||||
|
||||
Bacon.repeatedly(10, [1, 2, 3]);
|
||||
|
||||
// The following will produce values `0,1,2`.
|
||||
Bacon.repeat(i => {
|
||||
if (i < 3) {
|
||||
return Bacon.once(i);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
}).log();
|
||||
|
||||
{
|
||||
var stream = Bacon.fromBinder(sink => {
|
||||
sink("first value");
|
||||
sink([new Bacon.Next("2nd"), new Bacon.Next("3rd")]);
|
||||
sink(new Bacon.Next(() => {
|
||||
return "This one will be evaluated lazily"
|
||||
}));
|
||||
sink(new Bacon.Error("oops, an error"));
|
||||
sink(new Bacon.End());
|
||||
return () => {
|
||||
// unsub functionality here, this one's a no-op
|
||||
};
|
||||
});
|
||||
stream.log();
|
||||
}
|
||||
|
||||
new Bacon.Next("value");
|
||||
new Bacon.Next(() => "value");
|
||||
}
|
||||
|
||||
function CommonMethodsInEventStreamsAndProperties() {
|
||||
// Converting strings to integers, skipping empty values:
|
||||
Bacon.once("").flatMap(text => {
|
||||
return text != "" ? parseInt(text) : Bacon.never();
|
||||
});
|
||||
|
||||
Bacon.sequentially(1, [1, 2, 3]).scan(0, (a, b) => a + b);
|
||||
|
||||
Bacon.sequentially(1, [1, 2, 3]).diff(0, (a, b) => Math.abs(b - a));
|
||||
|
||||
// If you have a EventStream `s` with a value sequence `1,2,3,4,5`, the respective values in `s.slidingWindow(2)` would be `[],[1],[1,2],[2,3],[3,4],[4,5]`:
|
||||
Bacon.fromArray([1, 2, 3, 4, 5]).slidingWindow(2);
|
||||
// The values of `s.slidingWindow(2,2)`would be `[1,2],[2,3],[3,4],[4,5]`:
|
||||
Bacon.fromArray([1, 2, 3, 4, 5]).slidingWindow(2, 2);
|
||||
|
||||
{
|
||||
var x = Bacon.fromArray([1, 2]), y = Bacon.fromArray([3, 4]);
|
||||
x.zip(y, (x, y) => x + y);
|
||||
}
|
||||
|
||||
{
|
||||
var stream = Bacon.fromArray([1, 2]);
|
||||
stream.log("New event in myStream");
|
||||
stream.log();
|
||||
}
|
||||
|
||||
Bacon.fromArray([1, 2, 3]).withStateMachine(0, (sum, event) => {
|
||||
if (event.hasValue()) {
|
||||
// had to cast to `number` because event:Bacon.Next<number>|Bacon.Error<{}>
|
||||
return [sum + <number>event.value(), []];
|
||||
}
|
||||
else if (event.isEnd()) {
|
||||
return [undefined, [new Bacon.Next(sum), event]];
|
||||
}
|
||||
else {
|
||||
return [sum, [event]];
|
||||
}
|
||||
});
|
||||
|
||||
{
|
||||
var property = Bacon.fromArray([1, 2, 3]).toProperty(),
|
||||
who = Bacon.fromArray(["A", "B", "C"]).toProperty();
|
||||
property.decode({1: "mike", 2: who});
|
||||
|
||||
property.decode({1: {type: "mike"}, 2: {type: "other", whoThen: who}});
|
||||
}
|
||||
|
||||
{
|
||||
// This is handy for keeping track whether we are currently awaiting an AJAX response:
|
||||
var ajaxRequest = <Bacon.Observable<Error, JQueryXHR>>{},
|
||||
ajaxResponse = <Bacon.Observable<Error, JQueryXHR>>{},
|
||||
showAjaxIndicator = ajaxRequest.awaiting(ajaxResponse);
|
||||
}
|
||||
|
||||
Bacon.fromArray([1, 2, -3, 3]).withHandler(function (event) {
|
||||
if (event.hasValue() && event.value() < 0) {
|
||||
this.push(new Bacon.Error("Value below zero"));
|
||||
return this.push(new Bacon.End());
|
||||
} else {
|
||||
return this.push(event);
|
||||
}
|
||||
});
|
||||
|
||||
{
|
||||
var src = Bacon.once(1),
|
||||
obs = src.map(x => -x);
|
||||
console.log(obs.toString()); // > "Bacon.once(1).map(function)"
|
||||
|
||||
obs.withDescription(src, "times", -1);
|
||||
console.log(obs.toString()); // > "Bacon.once(1).times(-1)"
|
||||
}
|
||||
|
||||
{
|
||||
// Calculator for grouped consecutive values until group is cancelled:
|
||||
var events = [
|
||||
{id: 1, type: "add", val: 3},
|
||||
{id: 2, type: "add", val: -1},
|
||||
{id: 1, type: "add", val: 2},
|
||||
{id: 2, type: "cancel"},
|
||||
{id: 3, type: "add", val: 2},
|
||||
{id: 3, type: "cancel"},
|
||||
{id: 1, type: "add", val: 1},
|
||||
{id: 1, type: "add", val: 2},
|
||||
{id: 1, type: "cancel"}
|
||||
],
|
||||
keyF = (event:{id:number}) => event.id,
|
||||
limitF = (groupedStream:Bacon.EventStream<string, {id:number; type:string; val?:number}>) => {
|
||||
var cancel = groupedStream.filter(x => x.type === "cancel").take(1),
|
||||
adds = groupedStream.filter(x => x.type === "add");
|
||||
return adds.takeUntil(cancel).map(x => x.val);
|
||||
};
|
||||
|
||||
Bacon.sequentially(2, events)
|
||||
.groupBy(keyF, limitF)
|
||||
.flatMap(groupedStream => groupedStream.fold(0, (acc, x) => acc + x))
|
||||
.onValue(sum => {
|
||||
console.log(sum); // returns [-1, 2, 8] in an order
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
function EventStream() {
|
||||
// This creates the stream which doesn't produce any events and never ends:
|
||||
Bacon.interval(1e1, 0).last();
|
||||
|
||||
Bacon.fromArray([1, 2, 2, 1])
|
||||
.skipDuplicates().log(); // > returns [1, 2, 1] in an order
|
||||
|
||||
// You might get two events containing [1,2,3,4] and [5,6,7] respectively, given that the flush occurs between numbers 4 and 5:
|
||||
Bacon.fromArray([1, 2, 3, 4, 5, 6, 7]).bufferWithTime(0);
|
||||
|
||||
// Here's an equivalent to `stream.bufferWithTime(10)`:
|
||||
{
|
||||
var stream = Bacon.fromArray([1, 2, 3, 4, 5, 6, 7]);
|
||||
stream.bufferWithTime(f => {
|
||||
setTimeout(f, 10);
|
||||
});
|
||||
}
|
||||
|
||||
// You will get output events with values `[1, 2]`, `[3, 4]` and `[5]`.
|
||||
Bacon.fromArray([1, 2, 3, 4, 5]).bufferWithCount(2);
|
||||
}
|
||||
|
||||
function Property() {
|
||||
// This creates the property which doesn't produce any events and never ends:
|
||||
Bacon.interval(1e1, 0).toProperty().last();
|
||||
|
||||
{
|
||||
var property = Bacon.fromArray([1, 2, 3, 4, 5]).toProperty();
|
||||
// If you want to assign your Property to the "disabled" attribute of a JQuery object, you can do this:
|
||||
property.assign($("#my-button"), "attr", "disabled");
|
||||
|
||||
// A simpler example would be to toggle the visibility of an element based on a Property:
|
||||
property.assign($("#my-button"), "toggle");
|
||||
}
|
||||
|
||||
Bacon.fromArray([1, 2, 2, 1]).toProperty()
|
||||
.skipDuplicates().log(); // > returns [1, 2, 1] in an order
|
||||
}
|
||||
|
||||
function CombiningMultipleStreamsAndProperties() {
|
||||
{
|
||||
var property = Bacon.constant(1),
|
||||
stream = Bacon.once(2),
|
||||
constant = 3;
|
||||
Bacon.combineAsArray(property, stream, constant)
|
||||
.log(); // > returns [1, 2, 3]
|
||||
}
|
||||
|
||||
{
|
||||
// To calculate the current sum of three numeric Properties, you can do:
|
||||
var property = Bacon.constant(1),
|
||||
stream = Bacon.once(2),
|
||||
constant = 3;
|
||||
// NOTE: had to explicitly specify the typing for `x:number, y:number, z:number`
|
||||
Bacon.combineWith((x:number, y:number, z:number) => x + y + z, property, stream, constant);
|
||||
}
|
||||
|
||||
{
|
||||
// Assuming you've got streams or properties named `password`, `username`, `firstname` and `lastname`, you can do:
|
||||
var password = Bacon.constant("easy"),
|
||||
username = Bacon.constant("juha"),
|
||||
firstname = Bacon.constant("juha"),
|
||||
lastname = Bacon.constant("paananen"),
|
||||
// NOTE: you should provide `combineTemplate` typing explicitly!
|
||||
loginInfo = Bacon.combineTemplate<string, {
|
||||
magicNumber:number; userid:string; passwd:string;
|
||||
name:{first:string; last:string}
|
||||
}>({
|
||||
magicNumber: 3,
|
||||
userid: username,
|
||||
passwd: password,
|
||||
name: {first: firstname, last: lastname}
|
||||
}).onValue(loginInfo => {
|
||||
// and your new `loginInfo` property will combine values from all these streams using that template, whenever any of the streams/properties get a new value. It would yield a value:
|
||||
console.log("`loginInfo` expected", {
|
||||
magicNumber: 3,
|
||||
userid: "juha",
|
||||
passwd: "easy",
|
||||
name: {first: "juha", last: "paananen"}
|
||||
});
|
||||
console.log("`loginInfo` actual", loginInfo);
|
||||
});
|
||||
|
||||
// Note that all Bacon.combine* methods produce a `Property` instead of an `EventStream`. If you need the result as an `EventStream` you might want to use `property.changes()`:
|
||||
Bacon.combineWith((firstname, lastname) => `${firstname} ${lastname}`, firstname, lastname).changes();
|
||||
}
|
||||
|
||||
{
|
||||
var x = Bacon.fromArray([1, 2, 3]),
|
||||
y = Bacon.fromArray([10, 20, 30]),
|
||||
z = Bacon.fromArray([100, 200, 300]);
|
||||
Bacon.zipAsArray(x, y, z)
|
||||
.log(); // > returns values `[1, 10, 100]`, `[2, 20, 200]` and `[3, 30, 300]`
|
||||
}
|
||||
|
||||
// The following example would log the number 3.
|
||||
// NOTE: had to explicitly specify the typing for `a:number, b:number`
|
||||
Bacon.onValues(Bacon.constant(1), Bacon.constant(2), (a:number, b:number) => {
|
||||
console.log(a + b);
|
||||
});
|
||||
}
|
||||
|
||||
function $Event() {
|
||||
new Bacon.Next("value");
|
||||
new Bacon.Next(() => "value");
|
||||
}
|
||||
|
||||
function Errors() {
|
||||
// In case you want to convert (some) value events into Error events, you may use `flatMap` like this:
|
||||
// NOTE: had to explicitly specify the typing for `flatMap`
|
||||
Bacon.fromArray([1, 2, 3, 4]).flatMap<number>(x => {
|
||||
return x > 2 ? new Bacon.Error("too big") : x;
|
||||
});
|
||||
|
||||
// Conversely, if you want to convert some Error events into value events, you may use `flatMapError`:
|
||||
Bacon.fromArray<string, number>([1, 2, 3, 4]).flatMapError<number>(error => {
|
||||
var isNonCriticalError = (error:string) => Math.random() < .5,
|
||||
handleNonCriticalError = (error:string) => 42;
|
||||
return isNonCriticalError(error) ? handleNonCriticalError(error) : new Bacon.Error(error);
|
||||
});
|
||||
|
||||
// Note also that Bacon.js combinators do not catch errors that are thrown. Especially `map` doesn't do so. If you want to map things and wrap caught errors into Error events, you can do the following:
|
||||
Bacon.fromArray([1, 2, 3, 4]).flatMap(x => {
|
||||
var dangerousFunction = (x:number) => {
|
||||
throw new Error("dangerous function!");
|
||||
};
|
||||
try {
|
||||
return dangerousFunction(x);
|
||||
} catch (e) {
|
||||
return new Bacon.Error(e);
|
||||
}
|
||||
});
|
||||
|
||||
Bacon.once("https://baconjs.github.io/").flatMap(url => {
|
||||
// `ajaxCall` gives `Error`s on network or server `Error`s.
|
||||
var ajaxCall = (url:string) => {
|
||||
return Bacon.fromPromise<JQueryXHR, JQueryXHR>($.ajax(url));
|
||||
};
|
||||
return Bacon.retry({
|
||||
source: () => ajaxCall(url),
|
||||
retries: 5,
|
||||
isRetryable: (error:JQueryXHR) => error.status !== 404,
|
||||
delay: context => 100 // Just use the same delay always
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function JoinPatterns() {
|
||||
{
|
||||
// Consider implementing a game with discrete time ticks. We want to handle key-events synchronized on tick-events, with at most one key event handled per tick. If there are no key events, we want to just process a tick:
|
||||
var tick = Bacon.interval(1e2, 0),
|
||||
keyEvent = Bacon.fromEvent(document.body, "click", _ => Date.now()),
|
||||
handleTick = (_:number) => `timestamp: NONE`,
|
||||
handleKeyEvent = (timestamp:number) => `timestamp: ${timestamp}`;
|
||||
Bacon.when(
|
||||
[tick, keyEvent], (_:number, timestamp:number) => handleKeyEvent(timestamp),
|
||||
[tick], handleTick
|
||||
);
|
||||
// Order is important here. If the [tick] patterns had been written first, this would have been tried first, and preferred at each tick.
|
||||
}
|
||||
|
||||
{
|
||||
// Join patterns are indeed a generalization of `zip`, and `zip` is equivalent to a single-rule join pattern. The following `Observable`s have the same output:
|
||||
var a = Bacon.once("a"),
|
||||
b = Bacon.once("b"),
|
||||
c = Bacon.once("c"),
|
||||
f = (a:string, b:string, c:string) => `a = ${a}; b = ${b}; c = ${c}.`;
|
||||
Bacon.zipWith(f, a, b, c);
|
||||
Bacon.when([a, b, c], f);
|
||||
}
|
||||
{
|
||||
// The inputs to `Bacon.update` are defined like this:
|
||||
var initial = 0,
|
||||
x = Bacon.interval(1e3, 1),
|
||||
y = Bacon.interval(2e3, 1),
|
||||
z = Bacon.interval(1.5e3, 1);
|
||||
// NOTE: had to explicitly specify the typing for `previous:number`
|
||||
Bacon.update(initial,
|
||||
[x, y, z], (previous:number, x:number, y:number, z:number) => previous + x + y + z,
|
||||
[x, y], (previous:number, x:number, y:number) => previous + x + y
|
||||
);
|
||||
// As input, each function above will get the previous value of the `result` Property, along with values from the listed Observables. The value returned by the function will be used as the next value of `result`. Just like in `Bacon.when`, only EventStreams will trigger an update, while Properties will be just sampled. So, if you list a single EventStream and several Properties, the value will be updated only when an event occurs in the EventStream.
|
||||
}
|
||||
{
|
||||
// Here's a simple gaming example:
|
||||
var scoreMultiplier = Bacon.constant(1),
|
||||
hitUfo = new Bacon.Bus(),
|
||||
hitMotherShip = new Bacon.Bus(),
|
||||
score = Bacon.update(0,
|
||||
[hitUfo, scoreMultiplier], (score:number, _:number, multiplier:number) => score + 100 * multiplier,
|
||||
[hitMotherShip], (score:number, _:number) => score + 2000
|
||||
);
|
||||
// In the example, the `score` property is updated when either `hitUfo` or `hitMotherShip` occur. The `scoreMultiplier` Property is sampled to take multiplier into account when `hitUfo` occurs.
|
||||
}
|
||||
{
|
||||
// Join patterns as a "chemical machine". A quick way to get some intuition for join patterns is to understand them through an analogy in terms of atoms and molecules. A join pattern can here be regarded as a recipe for a chemical reaction. Lets say we have observables `oxygen`, `carbon` and `hydrogen`, where an event in these spawns an 'atom' of that type into a mixture. We can state reactions:
|
||||
let oxygen = Bacon.interval(1e3, "O"),
|
||||
hydrogen = Bacon.interval(2e3, "H"),
|
||||
carbon = Bacon.interval(1.5e3, "C"),
|
||||
makeWater = (oxygen:string, hydrogen1:string, hydrogen2:string) => `${hydrogen1}${[hydrogen1, hydrogen2].length}${oxygen}`,
|
||||
makeCarbonMonoxide = (oxygen:string, carbon:string) => `${carbon}${oxygen}`;
|
||||
|
||||
Bacon.when(
|
||||
[oxygen, hydrogen, hydrogen], makeWater,
|
||||
[oxygen, carbon], makeCarbonMonoxide
|
||||
);
|
||||
// Now, every time a new 'atom' is spawned from one of the observables, this atom is added to the mixture. If at any time there are two hydrogen atoms, and an oxygen atom, the corresponding atoms are *consumed*, and output is produced via `makeWater`. The same semantics apply for the second rule to create carbon monoxide. The rules are tried at each point from top to bottom.
|
||||
}
|
||||
}
|
||||
|
||||
function JoinPatternsAndProperties() {
|
||||
{
|
||||
// Join patterns and properties
|
||||
//Properties are not part of the synchronization pattern, but are instead just sampled. The following example take three input streams `$price`, `$quantity` and `$total`, e.g. coming from input fields, and defines mutally recursive behaviours in properties `price`, `quantity` and `total` such that
|
||||
// -- updating price sets total to price * quantity;
|
||||
// -- updating quantity sets total to price * quantity;
|
||||
// -- updating total sets price to total / quantity.
|
||||
let random = (x:number) => Math.round(x * Math.random()),
|
||||
id = <A>(x:A):A => x;
|
||||
let $quantity = Bacon.interval<Error, number>(1e3, 10).map(random),
|
||||
$price = Bacon.interval<Error, number>(2e3, 100).map(random),
|
||||
$total = Bacon.interval<Error, number>(1.5e3, 1000).map(random);
|
||||
let quantity = $quantity.toProperty(1),
|
||||
price = Bacon.when<Error, number, number, number>(
|
||||
[$price], id,
|
||||
[$total, quantity], (x, y) => x / y
|
||||
).toProperty(0),
|
||||
total = Bacon.when<Error, number, number, number, number>(
|
||||
[$total], id,
|
||||
[$price, quantity], (x, y) => x * y,
|
||||
[price, $quantity], (x, y) => x * y
|
||||
).toProperty(0);
|
||||
}
|
||||
}
|
||||
|
||||
function JoinPatternsAndBaconBus() {
|
||||
{
|
||||
// Join patterns and `Bacon.Bus`
|
||||
// The result functions of join patterns are allowed to push values onto a `Bus` that may in turn be in one of its patterns. For instance, an implementation of the dining philosophers problem can be written as follows:
|
||||
// Availability of chopsticks are implemented using bus.
|
||||
let chopsticks = [new Bacon.Bus(), new Bacon.Bus(), new Bacon.Bus()],
|
||||
// Hungry could be any type of observable, but we'll use bus here.
|
||||
hungry = [new Bacon.Bus(), new Bacon.Bus(), new Bacon.Bus()],
|
||||
// A philosopher eats for one second, then makes the chopsticks available again by pushing values onto their bus.
|
||||
eat = (i:number) => () => {
|
||||
setTimeout(() => {
|
||||
console.log("done!");
|
||||
chopsticks[i].push({});
|
||||
chopsticks[(i + 1) % 3].push({});
|
||||
}, 1e3);
|
||||
return `philosopher ${i} eating`;
|
||||
},
|
||||
// We use Bacon.when to make sure a hungry philosopher can eat only when both his chopsticks are available.
|
||||
dining = Bacon.when(
|
||||
[hungry[0], chopsticks[0], chopsticks[1]], eat(0),
|
||||
[hungry[1], chopsticks[1], chopsticks[2]], eat(1),
|
||||
[hungry[2], chopsticks[2], chopsticks[0]], eat(2)
|
||||
).log("dining");
|
||||
// Make all chopsticks initially available.
|
||||
chopsticks[0].push({});
|
||||
chopsticks[1].push({});
|
||||
chopsticks[2].push({});
|
||||
// Make philosophers hungry in some way, in this case we just push to their bus.
|
||||
for (var i = 0; i < 3; i++) {
|
||||
hungry[0].push({});
|
||||
hungry[1].push({});
|
||||
hungry[2].push({});
|
||||
}
|
||||
}
|
||||
}
|
||||
Vendored
+3133
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,282 @@
|
||||
/// <reference path="bardjs.d.ts" />
|
||||
/// <reference path="../mocha/mocha.d.ts" />
|
||||
/// <reference path="../chai/chai.d.ts" />
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
/// <reference path="../angularjs/angular-mocks.d.ts" />
|
||||
|
||||
module bardTests {
|
||||
var expect = chai.expect,
|
||||
assert = chai.assert;
|
||||
|
||||
class MyService {
|
||||
constructor(private $q: angular.IQService) {}
|
||||
|
||||
remoteCall(): angular.IPromise<string[]> {
|
||||
return new this.$q((resolve, reject) => {
|
||||
resolve(['Hello', 'World']);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
myService.$inject = ['$q'];
|
||||
function myService($q: angular.IQService) {
|
||||
return new MyService($q);
|
||||
}
|
||||
|
||||
class MyController {
|
||||
myProperty: string;
|
||||
}
|
||||
|
||||
angular
|
||||
.module('myModule')
|
||||
.service('myService', myService)
|
||||
.controller('MyController', MyController);
|
||||
|
||||
/*
|
||||
* bard.$httpBackend
|
||||
*/
|
||||
function test_$httpBackend() {
|
||||
var myService: MyService;
|
||||
var $rootScope: angular.IRootScopeService;
|
||||
|
||||
beforeEach(module(bard.$httpBackend, 'myModule'));
|
||||
|
||||
beforeEach(inject(function(_myService_: MyService, _$rootScope_: angular.IRootScopeService) {
|
||||
myService = _myService_;
|
||||
$rootScope = _$rootScope_;
|
||||
}));
|
||||
|
||||
it('should return valid data', function(done) {
|
||||
myService.remoteCall()
|
||||
.then(function(data) {
|
||||
expect(data).to.exist;
|
||||
})
|
||||
.then(done, done);
|
||||
|
||||
$rootScope.$apply; // Because not using bard.$q, must flush the $http and $q queues
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.$q
|
||||
*/
|
||||
function test_$q() {
|
||||
var myService: MyService;
|
||||
|
||||
beforeEach(module(bard.$q, bard.$httpBackend, 'myModule'));
|
||||
|
||||
beforeEach(inject(function(_myService_: MyService) {
|
||||
myService = _myService_;
|
||||
}));
|
||||
|
||||
it('should return valid data', (done) => {
|
||||
myService.remoteCall()
|
||||
.then((data) => {
|
||||
expect(data).to.exist;
|
||||
})
|
||||
.then(done, done);
|
||||
|
||||
// No need to flush
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.addGlobals
|
||||
*/
|
||||
function test_addGlobals() {
|
||||
describe('someting', function() {
|
||||
var ctx = this;
|
||||
|
||||
it('should work', function() {
|
||||
var bar = 'bar';
|
||||
bard.addGlobals(this, 'foo'); // where `this` is the spec context
|
||||
bard.addGlobals(this, 'foo', bar);
|
||||
bard.addGlobals.bind(this)('foo', 'bar');
|
||||
bard.addGlobals(ctx, ['foo', 'bar']) // where ctx is the spec context
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.appModule
|
||||
*/
|
||||
function test_appModule() {
|
||||
beforeEach(bard.appModule('myModule'));
|
||||
////
|
||||
beforeEach(bard.appModule('myModule', function() {}, {}));
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.assertFail
|
||||
*/
|
||||
function test_assertFail() {
|
||||
bard.assertFail('FAIL!');
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.asyncModule
|
||||
*/
|
||||
function test_asyncModule() {
|
||||
beforeEach(bard.asyncModule('myModule'));
|
||||
////
|
||||
beforeEach(bard.asyncModule('myModule', function() {}, {}));
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.debugging
|
||||
*/
|
||||
function test_debugging() {
|
||||
console.log(
|
||||
bard.debugging(true), // should return true
|
||||
bard.debugging(false), // should return false
|
||||
bard.debugging(42), // should return true
|
||||
bard.debugging(''), // should return false
|
||||
bard.debugging() // should return false
|
||||
);
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.fakeLogger
|
||||
*/
|
||||
function test_fakeLogger() {
|
||||
beforeEach(module('myModule', bard.fakeLogger));
|
||||
////
|
||||
beforeEach(bard.appModule('myModule', bard.fakeLogger));
|
||||
////
|
||||
beforeEach(bard.asyncModule('myModule', bard.fakeLogger));
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.fakeRouteHelperProvider
|
||||
*/
|
||||
function test_fakeRouteHelperProvider() {
|
||||
beforeEach(module('myModule', bard.fakeRouteHelperProvider));
|
||||
////
|
||||
beforeEach(bard.appModule('myModule', bard.fakeRouteHelperProvider));
|
||||
////
|
||||
beforeEach(bard.asyncModule('myModule', bard.fakeRouteHelperProvider));
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.fakeRouteProvider
|
||||
*/
|
||||
function test_fakeRouteProvider() {
|
||||
beforeEach(module('myModule', bard.fakeRouteProvider));
|
||||
////
|
||||
beforeEach(bard.appModule('myModule', bard.fakeRouteProvider));
|
||||
////
|
||||
beforeEach(bard.asyncModule('myModule', bard.fakeRouteProvider));
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.fakeStateProvider
|
||||
*/
|
||||
function test_fakeStateProvider() {
|
||||
beforeEach(module('myModule', bard.fakeStateProvider));
|
||||
////
|
||||
beforeEach(bard.appModule('myModule', bard.fakeStateProvider));
|
||||
////
|
||||
beforeEach(bard.asyncModule('myModule', bard.fakeStateProvider));
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.fakeToastr
|
||||
*/
|
||||
function test_fakeToastr() {
|
||||
beforeEach(module('myModule', bard.fakeToastr));
|
||||
////
|
||||
beforeEach(bard.appModule('myModule', bard.fakeToastr));
|
||||
////
|
||||
beforeEach(bard.asyncModule('myModule', bard.fakeToastr));
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.inject
|
||||
*/
|
||||
function test_inject() {
|
||||
beforeEach(() => bard.inject(this, '$controller', '$log', '$q', '$rootScope', 'myService'));
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.log
|
||||
*/
|
||||
function test_log() {
|
||||
bard.log('We got the goods');
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.mochaRunnerListener
|
||||
*/
|
||||
function test_mochaRunnerListener() {
|
||||
var runner = mocha.run();
|
||||
bard.mochaRunnerListener(runner);
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.mockService
|
||||
*/
|
||||
function test_mockService() {
|
||||
var controller: MyController,
|
||||
myArray = ['This', 'is', 'some', 'mocked', 'data'];
|
||||
var $controller: angular.IControllerService,
|
||||
$q: angular.IQService,
|
||||
$rootScope: angular.IRootScopeService,
|
||||
myService: MyService;
|
||||
|
||||
beforeEach(function() {
|
||||
bard.appModule('myModule');
|
||||
bard.inject(this, '$controller', '$q', '$rootScope', 'myService');
|
||||
|
||||
bard.mockService(myService, {
|
||||
remoteCall: $q.when(myArray),
|
||||
_default: $q.when([])
|
||||
});
|
||||
|
||||
controller = $controller('MyController');
|
||||
$rootScope.$apply();
|
||||
});
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.replaceAccentChars
|
||||
*/
|
||||
function test_replaceAccentChars() {
|
||||
console.log(bard.replaceAccentChars('àáâãäåèéêëìíîïòóôõöùúûüýÿ') === 'aaaaaaeeeeeeeeooooouuuuyy');
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.verifyNoOutstandingHttpRequests
|
||||
*/
|
||||
function test_verifyNoOutstandingHttpRequests() {
|
||||
var controller: MyController,
|
||||
myArray = ['This', 'is', 'some', 'mocked', 'data'];
|
||||
var $controller: angular.IControllerService,
|
||||
$q: angular.IQService,
|
||||
$rootScope: angular.IRootScopeService,
|
||||
myService: MyService;
|
||||
|
||||
beforeEach(function() {
|
||||
bard.appModule('myModule');
|
||||
bard.inject(this, '$controller', '$q', '$rootScope', 'myService');
|
||||
|
||||
bard.mockService(myService, {
|
||||
remoteCall: $q.when(myArray),
|
||||
_default: $q.when([])
|
||||
});
|
||||
|
||||
controller = $controller('MyController');
|
||||
$rootScope.$apply();
|
||||
});
|
||||
|
||||
bard.verifyNoOutstandingHttpRequests();
|
||||
}
|
||||
|
||||
/*
|
||||
* bard.wrapWithDone
|
||||
*/
|
||||
function test_wrapWithDone() {
|
||||
function callback() { console.log('Doing something...'); }
|
||||
function done() { console.log('...Done'); }
|
||||
bard.wrapWithDone(callback, done);
|
||||
}
|
||||
}
|
||||
Vendored
+174
@@ -0,0 +1,174 @@
|
||||
// Type definitions for bardjs 0.1.4
|
||||
// Project: https://github.com/wardbell/bardjs
|
||||
// Definitions by: Andrew Archibald <https://github.com/TepigMC>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../angularjs/angular.d.ts" />
|
||||
/// <reference path="../chai/chai.d.ts" />
|
||||
/// <reference path="../mocha/mocha.d.ts" />
|
||||
|
||||
/**
|
||||
* Module for bardjs functions
|
||||
*/
|
||||
declare module 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.
|
||||
*
|
||||
* Note that $q remains ngMocked so you must flush $http calls ($rootScope.$digest).
|
||||
* Use $rootScope.$apply() for this purpose.
|
||||
*
|
||||
* Could restore $q with $qReal in which case don't need to flush.
|
||||
*/
|
||||
function $httpBackend($provide: angular.auto.IProvideService): any;
|
||||
|
||||
/**
|
||||
* Replaces the ngMock'ed $q with the real one from ng thus
|
||||
* obviating the need to flush $http and $q queues
|
||||
* at the expense of ability to control $q timing.
|
||||
*/
|
||||
function $q($provide: angular.auto.IProvideService): any;
|
||||
|
||||
/**
|
||||
* Add names of globals to list of OK globals for this mocha spec
|
||||
* NB: Call this method ONLY if you're using mocha!
|
||||
* NB: Turn off browser-sync else mocha detects the browser-sync globals
|
||||
* like ` ___browserSync___`
|
||||
*/
|
||||
function addGlobals(...globals: any[]): void;
|
||||
|
||||
/**
|
||||
* Prepare ngMocked application feature module
|
||||
* along with faked toastr, routehelper,
|
||||
* and faked router services.
|
||||
* Especially useful for controller testing
|
||||
* Use it as you would the ngMocks#module method
|
||||
*
|
||||
* DO NOT USE IF YOU NEED THE REAL ROUTER SERVICES!
|
||||
* Fall back to `angular.mock.module(...)` or just `module(...)`
|
||||
*/
|
||||
function appModule(...fns: (string | Function | Object)[]): () => void;
|
||||
|
||||
/**
|
||||
* Assert a failure in mocha, without condition
|
||||
*/
|
||||
function assertFail(message: string): Chai.AssertionError;
|
||||
|
||||
/**
|
||||
* Prepare ngMocked module definition that makes real $http and $q calls
|
||||
* Also adds fakeLogger to the end of the definition
|
||||
* Use it as you would the ngMocks#module method
|
||||
*/
|
||||
function asyncModule(...fns: (string | Function | Object)[]): () => void;
|
||||
|
||||
/**
|
||||
* Get or set bard debugging flag
|
||||
*/
|
||||
function debugging(newFlag?: any): boolean;
|
||||
|
||||
/**
|
||||
* Registers a fake logger service that you can spy on
|
||||
*/
|
||||
function fakeLogger($provide: angular.auto.IProvideService): void;
|
||||
|
||||
/**
|
||||
* Registers a fake route helper provider service that you can spy on
|
||||
*/
|
||||
function fakeRouteHelperProvider($provide: angular.auto.IProvideService): void;
|
||||
|
||||
/**
|
||||
* Stub out the $routeProvider so we avoid
|
||||
* all routing calls, including the default route
|
||||
* which runs on every test otherwise.
|
||||
* Make sure this goes before the inject in the spec.
|
||||
*/
|
||||
function fakeRouteProvider($provide: angular.auto.IProvideService): void;
|
||||
|
||||
/**
|
||||
* Stub out the $stateProvider so we avoid
|
||||
* all routing calls, including the default state
|
||||
* which runs on every test otherwise.
|
||||
* Make sure this goes before the inject in the spec.
|
||||
*/
|
||||
function fakeStateProvider($provide: angular.auto.IProvideService): void;
|
||||
|
||||
/**
|
||||
* Registers a fake toastr service that you can spy on
|
||||
*/
|
||||
function fakeToastr($provide: angular.auto.IProvideService): void;
|
||||
|
||||
/**
|
||||
* Inject selected services into the windows object during test
|
||||
* then remove them when test ends with an `afterEach`.
|
||||
*
|
||||
* spares us the repetition of creating common service vars and injecting them
|
||||
*
|
||||
* Option: the first argument may be the mocha spec context object (`this`)
|
||||
* It MUST be `this` if you what to check for mocha global leaks.
|
||||
* Do NOT supply `this` as the first arg if you're not running mocha specs.
|
||||
*
|
||||
* remaining inject arguments may take one of 3 forms :
|
||||
*
|
||||
* function - This fn will be passed to ngMocks.inject.
|
||||
* Annotations extracted after inject does its thing.
|
||||
* [strings] - same string array you'd use to set fn.$inject
|
||||
* (...string) - string arguments turned into a string array
|
||||
*/
|
||||
function inject(context?: Function, ...args: string[]): void;
|
||||
|
||||
/**
|
||||
* Write to console if bard debugging flag is on
|
||||
*/
|
||||
function log(message: any): void;
|
||||
|
||||
/**
|
||||
* Listen to mocha test runner events
|
||||
* Usage in browser:
|
||||
* var runner = mocha.run();
|
||||
* bard.mochaRunnerListener(runner);
|
||||
*/
|
||||
function mochaRunnerListener(runner: Mocha.IRunner): void;
|
||||
|
||||
/**
|
||||
* Mocks out a service with sinon stubbed functions
|
||||
* that return the values specified in the config
|
||||
*
|
||||
* If the config value is `undefined`,
|
||||
* stub the service method with a dummy that doesn't return a value
|
||||
*
|
||||
* If the config value is a function, set service property with it
|
||||
*
|
||||
* If a service member is a property, not a function,
|
||||
* set it with the config value
|
||||
* If a service member name is not a key in config,
|
||||
* follow the same logic as above to set its members
|
||||
* using the config._default value (which is `undefined` if omitted)
|
||||
*
|
||||
* If there is a config entry that is NOT a member of the service
|
||||
* add mocked function to the service using the config value
|
||||
*/
|
||||
function mockService(service: any, config: any): any;
|
||||
|
||||
/**
|
||||
* Replaces the accented characters of many European languages w/ unaccented chars
|
||||
* Use it in JavaScript string sorts where such characters may be encountered
|
||||
* Matches the default string comparers of most databases.
|
||||
* Ex: replaceAccentChars(a.Name) < replaceAccentChars(b.Name)
|
||||
* instead of: a.Name < b.Name
|
||||
*/
|
||||
function replaceAccentChars(text: string): string;
|
||||
|
||||
/**
|
||||
* Assert that there are no outstanding HTTP requests after test is complete
|
||||
* For use with ngMocks; doesn't work for async server integration tests
|
||||
*/
|
||||
function verifyNoOutstandingHttpRequests(): void;
|
||||
|
||||
/**
|
||||
* Returns a function that execute a callback function
|
||||
* (typically a fn making asserts) within a try/catch
|
||||
* The try/catch then calls the ambient "done" function
|
||||
* in the appropriate way for both success and failure
|
||||
*/
|
||||
function wrapWithDone(callback: Function, done: Function): Function;
|
||||
}
|
||||
@@ -0,0 +1,12 @@
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
/// <reference path="batch-stream.d.ts" />
|
||||
|
||||
import fs = require('fs');
|
||||
import BatchStream = require('batch-stream');
|
||||
|
||||
var batch = new BatchStream({ size : 5 });
|
||||
var stream = fs.createReadStream('/etc/passwd');
|
||||
|
||||
stream
|
||||
.pipe(batch)
|
||||
.pipe(fs.createWriteStream('./test.out')); // deals with array input from pipe.
|
||||
Vendored
+24
@@ -0,0 +1,24 @@
|
||||
// Type definitions for batch-stream 0.1.2
|
||||
// Project: https://github.com/segmentio/batch-stream
|
||||
// Definitions by: Nicholas Penree <http://github.com/drudge>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
declare module "batch-stream" {
|
||||
import stream = require('stream');
|
||||
|
||||
interface Options {
|
||||
size?: number;
|
||||
highWaterMark?: number;
|
||||
}
|
||||
|
||||
class BatchStream extends stream.Transform {
|
||||
size: number;
|
||||
batch: any[];
|
||||
|
||||
constructor(options: Options);
|
||||
}
|
||||
|
||||
export = BatchStream;
|
||||
}
|
||||
Vendored
+7
-3
@@ -1,6 +1,6 @@
|
||||
// Type definitions for Bootbox 4.4.0
|
||||
// Project: https://github.com/makeusabrew/bootbox
|
||||
// Definitions by: Vincent Bortone <https://github.com/vbortone/>, Kon Pik <https://github.com/konpikwastaken/>, Anup Kattel <https://github.com/kanup/>
|
||||
// Definitions 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/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
@@ -28,6 +28,10 @@ interface BootboxButton {
|
||||
callback?: () => any;
|
||||
}
|
||||
|
||||
interface BootboxButtonMap {
|
||||
[key: string]: BootboxButton | Function;
|
||||
}
|
||||
|
||||
interface BootboxDialogOptions {
|
||||
message: string | Element;
|
||||
title?: string | Element;
|
||||
@@ -40,7 +44,7 @@ interface BootboxDialogOptions {
|
||||
animate?: boolean;
|
||||
className?: string;
|
||||
size?: string;
|
||||
buttons?: Object; // complex object where each key is of type BootboxButton
|
||||
buttons?: BootboxButtonMap; // complex object where each key is of type BootboxButton
|
||||
}
|
||||
|
||||
interface BootboxDefaultOptions {
|
||||
@@ -69,7 +73,7 @@ interface BootboxStatic {
|
||||
dialog(options: BootboxDialogOptions): JQuery;
|
||||
setDefaults(options: BootboxDefaultOptions): void;
|
||||
hideAll(): void;
|
||||
|
||||
|
||||
addLocale(name: string, values: BootboxLocaleValues): void;
|
||||
removeLocale(name: string): void;
|
||||
setLocale(name: string): void;
|
||||
|
||||
Vendored
+1
-1
@@ -7,7 +7,7 @@
|
||||
/// <reference path="../jquery/jquery.d.ts"/>
|
||||
|
||||
interface ModalOptions {
|
||||
backdrop?: boolean;
|
||||
backdrop?: boolean|string;
|
||||
keyboard?: boolean;
|
||||
show?: boolean;
|
||||
remote?: string;
|
||||
|
||||
Vendored
+5
-5
@@ -6,7 +6,7 @@
|
||||
/// <reference path="../node/node.d.ts" />
|
||||
|
||||
interface BrowserifyObject extends NodeJS.EventEmitter {
|
||||
add(file:string): BrowserifyObject;
|
||||
add(file:string, opts?:any): BrowserifyObject;
|
||||
require(file:string, opts?:{
|
||||
expose: string;
|
||||
}): BrowserifyObject;
|
||||
@@ -18,10 +18,10 @@ interface BrowserifyObject extends NodeJS.EventEmitter {
|
||||
insertGlobalVars?: any;
|
||||
}, cb?:(err:any, src:any) => void): NodeJS.ReadableStream;
|
||||
|
||||
external(file:string): BrowserifyObject;
|
||||
ignore(file:string): BrowserifyObject;
|
||||
transform(tr:string): BrowserifyObject;
|
||||
transform(tr:Function): BrowserifyObject;
|
||||
external(file:string, opts?:any): BrowserifyObject;
|
||||
ignore(file:string, opts?:any): BrowserifyObject;
|
||||
transform(tr:string, opts?:any): BrowserifyObject;
|
||||
transform(tr:Function, opts?:any): BrowserifyObject;
|
||||
plugin(plugin:string, opts?:any): BrowserifyObject;
|
||||
plugin(plugin:Function, opts?:any): BrowserifyObject;
|
||||
}
|
||||
|
||||
@@ -57,7 +57,7 @@ var log = bunyan.createLogger(options);
|
||||
log.addSerializers(bunyan.stdSerializers);
|
||||
var child = log.child({name: 'child'});
|
||||
child.reopenFileStreams();
|
||||
log.addStream({path: '/dev/null', name: 'stream1'});
|
||||
log.addStream({path: '/dev/null'});
|
||||
child.level(bunyan.DEBUG);
|
||||
child.level('debug');
|
||||
child.levels(0, bunyan.ERROR);
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
/// <reference path="camel-case.d.ts" />
|
||||
|
||||
import camelCase = require('camel-case');
|
||||
|
||||
console.log(camelCase('string')); // => "string"
|
||||
console.log(camelCase('dot.case')); // => "dotCase"
|
||||
console.log(camelCase('PascalCase')); // => "pascalCase"
|
||||
console.log(camelCase('version 1.2.10')); // => "version1_2_10"
|
||||
|
||||
console.log(camelCase('STRING 1.2', 'tr')); // => "strıng1_2"
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for camel-case
|
||||
// Project: https://github.com/blakeembrey/camel-case
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "camel-case" {
|
||||
function camelCase(string: string, locale?: string): string;
|
||||
export = camelCase;
|
||||
}
|
||||
Vendored
+177
-160
@@ -108,7 +108,7 @@ declare module CanvasJS {
|
||||
*/
|
||||
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.
|
||||
* 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;
|
||||
@@ -126,25 +126,25 @@ declare module CanvasJS {
|
||||
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″..
|
||||
* Sets the background color of entire Chart Area. Values can be "HTML Color Name", "hex code" or "rgba values"
|
||||
* 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”
|
||||
* 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;
|
||||
/**
|
||||
@@ -190,19 +190,19 @@ declare module CanvasJS {
|
||||
/**
|
||||
* Sets the Title’s text.
|
||||
* Default: null
|
||||
* Example: “Chart title”
|
||||
* 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;
|
||||
/**
|
||||
@@ -213,26 +213,26 @@ declare module CanvasJS {
|
||||
fontSize?: number;
|
||||
/**
|
||||
* Sets the Font Family of Chart Title.
|
||||
* Default: “Calibri, Optima, Candara, Verdana, Geneva, sans-serif”
|
||||
* Example: “arial” , “tahoma”, “verdana” ..
|
||||
* Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif"
|
||||
* 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″ ..
|
||||
* 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" ..
|
||||
*/
|
||||
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;
|
||||
/**
|
||||
@@ -248,15 +248,15 @@ declare module CanvasJS {
|
||||
*/
|
||||
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″ ..
|
||||
* 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.
|
||||
* 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;
|
||||
/**
|
||||
@@ -274,6 +274,13 @@ declare module CanvasJS {
|
||||
}
|
||||
|
||||
interface ChartLegendOptions {
|
||||
/**
|
||||
* Sets the cursor type for legend items.
|
||||
* Default: "default"
|
||||
* Examples: "pointer", "crosshair" ..
|
||||
*/
|
||||
cursor?: string;
|
||||
|
||||
/**
|
||||
* Sets the font Size of Legend Text in pixels.
|
||||
* Default: 12
|
||||
@@ -282,38 +289,38 @@ declare module CanvasJS {
|
||||
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″ ..
|
||||
* 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" ..
|
||||
*/
|
||||
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;
|
||||
/**
|
||||
@@ -373,13 +380,13 @@ declare module CanvasJS {
|
||||
/**
|
||||
* Sets the Axis Title.
|
||||
* Default: null
|
||||
* Example: “Axis X Title”
|
||||
* 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″
|
||||
* Example: “red”, “#006400″ .
|
||||
* Sets the Font Color of Axis Title. The value of titleFontColor can be a "HTML Color Name" or "hex" code .
|
||||
* Default: "#666666"
|
||||
* Example: "red", "#006400" .
|
||||
*/
|
||||
titleFontColor?: string;
|
||||
/**
|
||||
@@ -390,20 +397,20 @@ declare module CanvasJS {
|
||||
titleFontSize?: number;
|
||||
/**
|
||||
* Sets the Font Family of Axis Title.
|
||||
* Default: “Calibri, Optima, Candara, Verdana, Geneva, sans-serif”
|
||||
* Example: “calibri”, “tahoma, “verdana” ..
|
||||
* Default: "Calibri, Optima, Candara, Verdana, Geneva, sans-serif"
|
||||
* 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;
|
||||
/**
|
||||
@@ -419,9 +426,9 @@ declare module CanvasJS {
|
||||
*/
|
||||
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″ ..
|
||||
* Sets the Axis Label color. The value of labelFontColor can be a "HTML Color Name" or "hex" code .
|
||||
* Default: "grey"
|
||||
* Example: "red", "#FAC003" ..
|
||||
*/
|
||||
labelFontColor?: string;
|
||||
/**
|
||||
@@ -432,32 +439,32 @@ declare module CanvasJS {
|
||||
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”
|
||||
* Default: "normal"
|
||||
* 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”..
|
||||
* Example: "$","cat"..
|
||||
*/
|
||||
prefix?: string;
|
||||
/**
|
||||
* A string that appends all the labels on axisX.
|
||||
* Default: null
|
||||
* Example: “$”,”cat”..
|
||||
* Example: "$","cat"..
|
||||
*/
|
||||
suffix?: string;
|
||||
/**
|
||||
@@ -483,10 +490,10 @@ declare module CanvasJS {
|
||||
*/
|
||||
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”,
|
||||
* 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",
|
||||
*/
|
||||
intervalType?: string;
|
||||
/**
|
||||
@@ -496,9 +503,9 @@ declare module CanvasJS {
|
||||
*/
|
||||
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″.
|
||||
* 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".
|
||||
*/
|
||||
tickColor?: string;
|
||||
/**
|
||||
@@ -508,9 +515,9 @@ declare module CanvasJS {
|
||||
*/
|
||||
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″..
|
||||
* Sets the color of Axis line. Axis line color can be a "HTML Color Name" or "hex" code .
|
||||
* Default: "#BBBBBB"
|
||||
* Example: "blue","#21AB13"..
|
||||
*/
|
||||
lineColor?: string;
|
||||
/**
|
||||
@@ -520,9 +527,9 @@ declare module CanvasJS {
|
||||
*/
|
||||
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 .
|
||||
* 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” ….
|
||||
* Example: "#F8F1E4", "#FEFDDF" ….
|
||||
*/
|
||||
interlaceColor?: string;
|
||||
/**
|
||||
@@ -532,11 +539,21 @@ declare module CanvasJS {
|
||||
*/
|
||||
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” ..
|
||||
* Sets the Color of Grid Lines. Value of gridColor can be a "HTML Color Name" or "hex" code .
|
||||
* 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.
|
||||
* The value of interlacedColor can be an "HTML Color Name" or "hex" code.
|
||||
* Default: null
|
||||
* 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.
|
||||
@@ -573,32 +590,32 @@ declare module CanvasJS {
|
||||
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;
|
||||
/**
|
||||
@@ -609,14 +626,14 @@ declare module CanvasJS {
|
||||
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;
|
||||
}
|
||||
@@ -657,7 +674,7 @@ declare module CanvasJS {
|
||||
/**
|
||||
* 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;
|
||||
}
|
||||
@@ -665,53 +682,53 @@ declare module CanvasJS {
|
||||
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″ .. )
|
||||
* Example: “apple”, “mango” ..
|
||||
* 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”.
|
||||
* 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” ..
|
||||
* 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.
|
||||
* eg: indexLabel: “{x}: {y[#index]}”
|
||||
* 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} ”
|
||||
* 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”
|
||||
* Using this property you can define whether to render indexLabel "inside" or "outside" the dataPoint.
|
||||
* Default: "outside"
|
||||
* Example: "outside", "inside"
|
||||
*/
|
||||
indexLabelPlacement?: string;
|
||||
/**
|
||||
* Sets the Orientation of indexLabel to “horizontal” or “vertical”.
|
||||
* Default: “horizontal”
|
||||
* Options: “horizontal”, “vertical”
|
||||
* Sets the Orientation of indexLabel to "horizontal" or "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”.
|
||||
* 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″ ..
|
||||
* 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″ ..
|
||||
* 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" ..
|
||||
*/
|
||||
indexLabelFontColor?: string;
|
||||
/**
|
||||
@@ -722,24 +739,24 @@ declare module CanvasJS {
|
||||
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”
|
||||
* Example: “lighter”, “normal” ,”bold” , “bolder”
|
||||
* 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″ ..
|
||||
* 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" ..
|
||||
*/
|
||||
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”.
|
||||
* 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
|
||||
*/
|
||||
@@ -752,14 +769,14 @@ declare module CanvasJS {
|
||||
/**
|
||||
* 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″ ..
|
||||
* Example: "red", "#008000" ..
|
||||
*/
|
||||
markerColor?: string;
|
||||
/**
|
||||
@@ -769,9 +786,9 @@ declare module CanvasJS {
|
||||
*/
|
||||
markerSize?: number;
|
||||
/**
|
||||
* Sets the border color around marker. Value of markerBorderColor can be “HTML Color Name” or “hex code”.
|
||||
* Sets the border color around marker. Value of markerBorderColor can be "HTML Color Name" or "hex code".
|
||||
* Default: dataSeries color.
|
||||
* Example: “red”, “#008000″ ..
|
||||
* Example: "red", "#008000" ..
|
||||
*/
|
||||
markerBorderColor?: string;
|
||||
/**
|
||||
@@ -782,14 +799,14 @@ declare module CanvasJS {
|
||||
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”
|
||||
* Options: "circle", "square", "cross" and "triangle"
|
||||
*/
|
||||
legendMarkerType?: string;
|
||||
/**
|
||||
@@ -798,9 +815,9 @@ declare module CanvasJS {
|
||||
*/
|
||||
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”.
|
||||
* 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″ ..
|
||||
* Example: "red", "#008000" ..
|
||||
*/
|
||||
legendMarkerColor?: string;
|
||||
/**
|
||||
@@ -829,39 +846,39 @@ declare module CanvasJS {
|
||||
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”
|
||||
* “bar”
|
||||
* “area”
|
||||
* “spline”
|
||||
* “splineArea”
|
||||
* “stepLine”
|
||||
* “scatter”
|
||||
* “bubble”
|
||||
* “stackedColumn”
|
||||
* “stackedBar”
|
||||
* “stackedArea”
|
||||
* “stackedColumn100″
|
||||
* “stackedBar100″
|
||||
* “stackedArea100″
|
||||
* “pie”
|
||||
* “doughnut”
|
||||
* "line"
|
||||
* "column"
|
||||
* "bar"
|
||||
* "area"
|
||||
* "spline"
|
||||
* "splineArea"
|
||||
* "stepLine"
|
||||
* "scatter"
|
||||
* "bubble"
|
||||
* "stackedColumn"
|
||||
* "stackedBar"
|
||||
* "stackedArea"
|
||||
* "stackedColumn100"
|
||||
* "stackedBar100"
|
||||
* "stackedArea100"
|
||||
* "pie"
|
||||
* "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.
|
||||
* 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”
|
||||
* Default: "primary"
|
||||
* 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”.
|
||||
* 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”
|
||||
* Options: "number", "dateTime"
|
||||
*/
|
||||
xValueType?: string;
|
||||
/**
|
||||
@@ -878,8 +895,8 @@ declare module CanvasJS {
|
||||
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”
|
||||
* Default: "true"
|
||||
* Example: "true", "false"
|
||||
*/
|
||||
bevelEnabled?: boolean;
|
||||
/**
|
||||
@@ -907,8 +924,8 @@ declare module CanvasJS {
|
||||
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;
|
||||
/**
|
||||
@@ -940,7 +957,7 @@ declare module CanvasJS {
|
||||
/**
|
||||
* 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″..
|
||||
* Example: "label1", "label2"..
|
||||
*/
|
||||
label?: string;
|
||||
/**
|
||||
@@ -950,9 +967,9 @@ declare module CanvasJS {
|
||||
*/
|
||||
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.
|
||||
* 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″..
|
||||
* Example: "red", "#008000"..
|
||||
*/
|
||||
legendMarkerColor?: string;
|
||||
}
|
||||
|
||||
+1
-1
@@ -115,7 +115,7 @@ function exist() {
|
||||
should.not.exist(void (0));
|
||||
}
|
||||
|
||||
function arguments() {
|
||||
function argumentsTest() {
|
||||
var args = arguments;
|
||||
expect(args).to.be.arguments;
|
||||
args.should.be.arguments;
|
||||
|
||||
Vendored
+1
@@ -44,6 +44,7 @@ interface Cheerio {
|
||||
// Traversing
|
||||
|
||||
find(selector: string): Cheerio;
|
||||
find(element: Cheerio): Cheerio;
|
||||
|
||||
parent(selector?: string): Cheerio;
|
||||
parents(selector?: string): Cheerio;
|
||||
|
||||
Vendored
+6
@@ -671,6 +671,12 @@ interface ChocolateChipAjaxSettings {
|
||||
*/
|
||||
type?: string;
|
||||
|
||||
/**
|
||||
* A property that does not seem to be officially documented, but is used in the documentation.
|
||||
* Its functionality seems to be identical to that of 'type' which *is* documented.
|
||||
*/
|
||||
method?: string;
|
||||
|
||||
/**
|
||||
* A pre-request callback function that can be used to modify the XMLHTTPRequest object before it is sent.
|
||||
* Use this to set custom headers, etc. This is an Ajax Event. Returning false in the beforeSend function will cancel the request.
|
||||
|
||||
@@ -197,3 +197,55 @@ function proxySettings() {
|
||||
// clear with a scope set
|
||||
chrome.proxy.settings.clear({ scope: 'regular' });
|
||||
}
|
||||
|
||||
// https://developer.chrome.com/extensions/examples/api/contentSettings/popup.js
|
||||
function contentSettings() {
|
||||
var incognito;
|
||||
var url;
|
||||
|
||||
function settingChanged() {
|
||||
var type = this.id;
|
||||
var setting = this.value;
|
||||
var pattern = /^file:/.test(url) ? url : url.replace(/\/[^\/]*?$/, '/*');
|
||||
console.log(type+' setting for '+pattern+': '+setting);
|
||||
// HACK: [type] is not recognised by the docserver's sample crawler, so
|
||||
// mention an explicit
|
||||
// type: chrome.contentSettings.cookies.set - See http://crbug.com/299634
|
||||
chrome.contentSettings[type].set({
|
||||
'primaryPattern': pattern,
|
||||
'setting': setting,
|
||||
'scope': (incognito ? 'incognito_session_only' : 'regular')
|
||||
});
|
||||
}
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
chrome.tabs.query({active: true, currentWindow: true, url: ['http://*/*', 'https://*/*'] }, function(tabs) {
|
||||
var current = tabs[0];
|
||||
incognito = current.incognito;
|
||||
url = current.url;
|
||||
var types = ['cookies', 'images', 'javascript', 'location', 'plugins',
|
||||
'popups', 'notifications', 'fullscreen', 'mouselock',
|
||||
'microphone', 'camera', 'unsandboxedPlugins',
|
||||
'automaticDownloads'];
|
||||
types.forEach(function(type) {
|
||||
// HACK: [type] is not recognised by the docserver's sample crawler, so
|
||||
// mention an explicit
|
||||
// type: chrome.contentSettings.cookies.get - See http://crbug.com/299634
|
||||
chrome.contentSettings[type] && chrome.contentSettings[type].get({
|
||||
'primaryUrl': url,
|
||||
'incognito': incognito
|
||||
},
|
||||
function(details) {
|
||||
var input = <HTMLInputElement>document.getElementById(type);
|
||||
input.disabled = false;
|
||||
input.value = details.setting;
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
var selects = document.querySelectorAll('select');
|
||||
for (var i = 0; i < selects.length; i++) {
|
||||
selects[i].addEventListener('change', settingChanged);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
Vendored
+2
-2
@@ -869,7 +869,7 @@ declare module chrome.events {
|
||||
addListener(callback: Function): void;
|
||||
getRules(callback: (rules: Rule[]) => void): void;
|
||||
getRules(ruleIdentifiers: string[], callback: (rules: Rule[]) => void): void;
|
||||
hasListener(callback: Function): void;
|
||||
hasListener(callback: Function): boolean;
|
||||
removeRules(ruleIdentifiers?: string[], callback?: Function): void;
|
||||
addRules(rules: Rule[], callback?: (rules: Rule[]) => void): void;
|
||||
removeListener(callback: Function): void;
|
||||
@@ -1900,7 +1900,7 @@ declare module chrome.tabs {
|
||||
active?: boolean;
|
||||
index?: number;
|
||||
title?: string;
|
||||
url?: string;
|
||||
url?: string | string[];
|
||||
currentWindow?: boolean;
|
||||
highlighted?: boolean;
|
||||
pinned?: boolean;
|
||||
|
||||
+5
-5
@@ -41,8 +41,8 @@ $(function() {
|
||||
$.UIBlock(.5);
|
||||
$.UIUnblock();
|
||||
$.UIPopup({id: "myPopup", message: 'Hello!!!'});
|
||||
$.UIPopup({message: 'Hello!!!', title: "Whatever", callback: $.noop});
|
||||
$.UIPopup({message: 'Hello!!!', cancleButton: "Forget It!", continueButton: "OK"});
|
||||
$.UIPopup({ message: 'Hello!!!', title: "Whatever", callback: $.noop });
|
||||
$.UIPopup({ message: 'Hello!!!', cancelButton: "Forget It!", continueButton: "OK" });
|
||||
$.UIPopover({id: "myPopover"});
|
||||
$.UIPopover({callback: function() {}});
|
||||
$.UIPopover({title: "Whatever"});
|
||||
@@ -57,8 +57,8 @@ $(function() {
|
||||
var myStepper = $('#myStepper');
|
||||
$.UIResetStepper(myStepper);
|
||||
$.UICreateSwitch({id: "mySwitch", value: 5, checked: "true", callback: $.noop});
|
||||
$.UITabbar({tabs: 3, labels: ["one", "two", "three"], selected: 2});
|
||||
$.UISearch({articleId: "#main", placehold: "Looking?", results: 10});
|
||||
$.UITabbar({ tabs: 3, labels: ["one", "two", "three"], selected: 2 });
|
||||
$.UISearch({ articleId: "#main", placeholder: "Looking?", results: 10 });
|
||||
var carouselPanels = $('li');
|
||||
$.UISetupCarousel({target: "#carousel", panels: carouselPanels});
|
||||
$.UIBindData();
|
||||
@@ -90,7 +90,7 @@ $(function() {
|
||||
$("#panelToggler").UIPanelToggle("#togglePanels", $.noop);
|
||||
$('#editList').UIEditList({callback: $.noop, deletable: false, movable: true});
|
||||
$('#mySelectList').UISelectList();
|
||||
$('#myStepper').UIStepper({start: 1, end: 10, defautValue: 5});
|
||||
$('#myStepper').UIStepper({ start: 1, end: 10, defaultValue: 5 });
|
||||
$('#mySwitch').UISwitch();
|
||||
$('#myRangeControl').UIRange();
|
||||
|
||||
|
||||
@@ -161,7 +161,7 @@ function test_dom_element() {
|
||||
}
|
||||
|
||||
function test_dom_event() {
|
||||
var event = new CKEDITOR.dom.event(new Event());
|
||||
var event = new CKEDITOR.dom.event(new Event(""));
|
||||
alert(event.getKey());
|
||||
alert(event.getKeystroke() == 65);
|
||||
alert(event.getKeystroke() == CKEDITOR.CTRL + 65);
|
||||
|
||||
Vendored
+24
-4
@@ -7,6 +7,8 @@ declare function CodeMirror(host: HTMLElement, options?: CodeMirror.EditorConfig
|
||||
declare function CodeMirror(callback: (host: HTMLElement) => void , options?: CodeMirror.EditorConfiguration): CodeMirror.Editor;
|
||||
|
||||
declare module CodeMirror {
|
||||
export var Doc : CodeMirror.Doc;
|
||||
export var Pos: CodeMirror.Position;
|
||||
export var Pass: any;
|
||||
|
||||
function fromTextArea(host: HTMLTextAreaElement, options?: EditorConfiguration): CodeMirror.EditorFromTextArea;
|
||||
@@ -387,8 +389,8 @@ declare module CodeMirror {
|
||||
getTextArea(): HTMLTextAreaElement;
|
||||
}
|
||||
|
||||
class Doc {
|
||||
constructor (text: string, mode?: any, firstLineNumber?: number);
|
||||
interface Doc {
|
||||
new (text: string, mode?: any, firstLineNumber?: number): Doc;
|
||||
|
||||
/** Get the current editor content. You can pass it an optional argument to specify the string to be used to separate lines (defaults to "\n"). */
|
||||
getValue(seperator?: string): string;
|
||||
@@ -601,6 +603,8 @@ declare module CodeMirror {
|
||||
text: string[];
|
||||
/** Text that used to be between from and to, which is overwritten by this change. */
|
||||
removed: string;
|
||||
/** String representing the origin of the change event and wether it can be merged with history */
|
||||
origin: string;
|
||||
}
|
||||
|
||||
interface EditorChangeLinkedList extends CodeMirror.EditorChange {
|
||||
@@ -616,6 +620,7 @@ declare module CodeMirror {
|
||||
}
|
||||
|
||||
interface Position {
|
||||
new (line: number, ch: number): Position;
|
||||
ch: number;
|
||||
line: number;
|
||||
}
|
||||
@@ -777,8 +782,8 @@ declare module CodeMirror {
|
||||
/** Like inclusiveLeft , but for the right side. */
|
||||
inclusiveRight?: boolean;
|
||||
|
||||
/** Atomic ranges act as a single unit when cursor movement is concerned � i.e. it is impossible to place the cursor inside of them.
|
||||
In atomic ranges, inclusiveLeft and inclusiveRight have a different meaning � they will prevent the cursor from being placed
|
||||
/** Atomic ranges act as a single unit when cursor movement is concerned — i.e. it is impossible to place the cursor inside of them.
|
||||
In atomic ranges, inclusiveLeft and inclusiveRight have a different meaning — they will prevent the cursor from being placed
|
||||
respectively directly before and directly after the range. */
|
||||
atomic?: boolean;
|
||||
|
||||
@@ -789,10 +794,19 @@ declare module CodeMirror {
|
||||
This is mostly useful for text - replacement widgets that need to 'snap open' when the user tries to edit them.
|
||||
The "clear" event fired on the range handle can be used to be notified when this happens. */
|
||||
clearOnEnter?: boolean;
|
||||
|
||||
/** Determines whether the mark is automatically cleared when it becomes empty. Default is true. */
|
||||
clearWhenEmpty?: boolean;
|
||||
|
||||
/** Use a given node to display this range.Implies both collapsed and atomic.
|
||||
The given DOM node must be an inline element(as opposed to a block element). */
|
||||
replacedWith?: HTMLElement;
|
||||
|
||||
/** When replacedWith is given, this determines whether the editor will
|
||||
* capture mouse and drag events occurring in this widget. Default is
|
||||
* false—the events will be left alone for the default browser handler,
|
||||
* or specific handlers on the widget, to capture. */
|
||||
handleMouseEvents?: boolean;
|
||||
|
||||
/** A read - only span can, as long as it is not cleared, not be modified except by calling setValue to reset the whole document.
|
||||
Note: adding a read - only span currently clears the undo history of the editor,
|
||||
@@ -807,6 +821,12 @@ declare module CodeMirror {
|
||||
|
||||
/** Equivalent to startStyle, but for the rightmost span. */
|
||||
endStyle?: string;
|
||||
|
||||
/** A string of CSS to be applied to the covered text. For example "color: #fe3". */
|
||||
css?: string;
|
||||
|
||||
/** When given, will give the nodes created for this span a HTML title attribute with the given value. */
|
||||
title?: string;
|
||||
|
||||
/** When the target document is linked to other documents, you can set shared to true to make the marker appear in all documents.
|
||||
By default, a marker appears only in its target document. */
|
||||
|
||||
+6
-13
@@ -3,16 +3,9 @@
|
||||
|
||||
import colors = require("colors");
|
||||
|
||||
var test:string = 'test';
|
||||
var arr:string[] = ['color', 'odd'.italic.zebra, 'radical'.bold.rainbow, test.underline + 'super'.green];
|
||||
|
||||
colors.black("abc").trim();
|
||||
colors.red("abc").trim();
|
||||
colors.green("abc").trim();
|
||||
colors.yellow("abc").trim();
|
||||
colors.blue("abc").trim();
|
||||
colors.magenta("abc").trim();
|
||||
colors.cyan("abc").trim();
|
||||
colors.white("abc").trim();
|
||||
colors.gray("abc").trim();
|
||||
colors.grey("abc").trim();
|
||||
console.log(colors.black.underline('test'));
|
||||
console.log(colors.rainbow.black.blue.gray('test'));
|
||||
console.log(colors.random.reset.bgWhite.dim('test'));
|
||||
console.log('test'.black.underline);
|
||||
console.log('test'.rainbow.black.blue.gray);
|
||||
console.log('test'.random.reset.bgWhite.dim);
|
||||
|
||||
Vendored
+112
-26
@@ -4,34 +4,120 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "colors" {
|
||||
export function setTheme(theme:any):any;
|
||||
interface Color {
|
||||
(text: string): string;
|
||||
|
||||
export function black(text: string): string;
|
||||
export function red(text: string): string;
|
||||
export function green(text: string): string;
|
||||
export function yellow(text: string): string;
|
||||
export function blue(text: string): string;
|
||||
export function magenta(text: string): string;
|
||||
export function cyan(text: string): string;
|
||||
export function white(text: string): string;
|
||||
export function gray(text: string): string;
|
||||
export function grey(text: string): string;
|
||||
black: Color;
|
||||
red: Color;
|
||||
green: Color;
|
||||
yellow: Color;
|
||||
blue: Color;
|
||||
magenta: Color;
|
||||
cyan: Color;
|
||||
white: Color;
|
||||
gray: Color;
|
||||
grey: Color;
|
||||
|
||||
bgBlack: Color;
|
||||
bgRed: Color;
|
||||
bgGreen: Color;
|
||||
bgYellow: Color;
|
||||
bgBlue: Color;
|
||||
bgMagenta: Color;
|
||||
bgCyan: Color;
|
||||
bgWhite: Color;
|
||||
|
||||
reset: Color;
|
||||
bold: Color;
|
||||
dim: Color;
|
||||
italic: Color;
|
||||
underline: Color;
|
||||
inverse: Color;
|
||||
hidden: Color;
|
||||
strikethrough: Color;
|
||||
|
||||
rainbow: Color;
|
||||
zebra: Color;
|
||||
america: Color;
|
||||
trap: Color;
|
||||
random: Color;
|
||||
}
|
||||
|
||||
module e {
|
||||
export function setTheme(theme:any): void;
|
||||
|
||||
export var black: Color;
|
||||
export var red: Color;
|
||||
export var green: Color;
|
||||
export var yellow: Color;
|
||||
export var blue: Color;
|
||||
export var magenta: Color;
|
||||
export var cyan: Color;
|
||||
export var white: Color;
|
||||
export var gray: Color;
|
||||
export var grey: Color;
|
||||
|
||||
export var bgBlack: Color;
|
||||
export var bgRed: Color;
|
||||
export var bgGreen: Color;
|
||||
export var bgYellow: Color;
|
||||
export var bgBlue: Color;
|
||||
export var bgMagenta: Color;
|
||||
export var bgCyan: Color;
|
||||
export var bgWhite: Color;
|
||||
|
||||
export var reset: Color;
|
||||
export var bold: Color;
|
||||
export var dim: Color;
|
||||
export var italic: Color;
|
||||
export var underline: Color;
|
||||
export var inverse: Color;
|
||||
export var hidden: Color;
|
||||
export var strikethrough: Color;
|
||||
|
||||
export var rainbow: Color;
|
||||
export var zebra: Color;
|
||||
export var america: Color;
|
||||
export var trap: Color;
|
||||
export var random: Color;
|
||||
}
|
||||
|
||||
export = e;
|
||||
}
|
||||
|
||||
interface String {
|
||||
bold:string;
|
||||
italic:string;
|
||||
underline:string;
|
||||
inverse:string;
|
||||
yellow:string;
|
||||
cyan:string;
|
||||
white:string;
|
||||
magenta:string;
|
||||
green:string;
|
||||
red:string;
|
||||
grey:string;
|
||||
blue:string;
|
||||
rainbow:string;
|
||||
zebra:string;
|
||||
random:string;
|
||||
black: string;
|
||||
red: string;
|
||||
green: string;
|
||||
yellow: string;
|
||||
blue: string;
|
||||
magenta: string;
|
||||
cyan: string;
|
||||
white: string;
|
||||
gray: string;
|
||||
grey: string;
|
||||
|
||||
bgBlack: string;
|
||||
bgRed: string;
|
||||
bgGreen: string;
|
||||
bgYellow: string;
|
||||
bgBlue: string;
|
||||
bgMagenta: string;
|
||||
bgCyan: string;
|
||||
bgWhite: string;
|
||||
|
||||
reset: string;
|
||||
bold: string;
|
||||
dim: string;
|
||||
italic: string;
|
||||
underline: string;
|
||||
inverse: string;
|
||||
hidden: string;
|
||||
strikethrough: string;
|
||||
|
||||
rainbow: string;
|
||||
zebra: string;
|
||||
america: string;
|
||||
trap: string;
|
||||
random: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
/// <reference path='./connect-modrewrite.d.ts' />
|
||||
/// <reference path='../express/express.d.ts' />
|
||||
|
||||
import modRewrite = require('connect-modrewrite');
|
||||
import express = require('express');
|
||||
|
||||
var app = express();
|
||||
|
||||
app.use(modRewrite([
|
||||
'^/test$ /index.html',
|
||||
'^/test/\\d*$ /index.html [L]',
|
||||
'^/test/\\d*/\\d*$ /flag.html [L]',
|
||||
]));
|
||||
+12
@@ -0,0 +1,12 @@
|
||||
// Type definitions for connect-modrewrite
|
||||
// Project: https://github.com/tinganho/connect-modrewrite
|
||||
// Definitions by: Tingan Ho <https://github.com/tinganho/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
/// <reference path="../express/express.d.ts" />
|
||||
|
||||
declare module 'connect-modrewrite' {
|
||||
import express = require('express');
|
||||
function modrewrite(rewrites: string[]): express.RequestHandler;
|
||||
export = modrewrite;
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
/// <reference path="constant-case.d.ts" />
|
||||
|
||||
import constantCase = require('constant-case');
|
||||
|
||||
console.log(constantCase('string')); // => "STRING"
|
||||
console.log(constantCase('PascalCase')); // => "PASCAL_CASE"
|
||||
|
||||
console.log(constantCase('myString', 'tr')); // => "MY_STRİNG"
|
||||
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for constant-case
|
||||
// Project: https://github.com/blakeembrey/constant-case
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "constant-case" {
|
||||
function constantCase(string: string, locale?: string): string;
|
||||
export = constantCase;
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
import context = require("contextjs");
|
||||
|
||||
context.init();
|
||||
|
||||
context.settings({compress: true});
|
||||
|
||||
context.attach('#test', [
|
||||
{header: 'header 1'},
|
||||
{divider: true},
|
||||
{text:'foobar', submenu: [
|
||||
{text:'sub1'},
|
||||
{text:'sub2'}
|
||||
]}
|
||||
]);
|
||||
|
||||
context.destroy('#test');
|
||||
Vendored
+33
@@ -0,0 +1,33 @@
|
||||
// Type definitions for contextjs 2.1.1
|
||||
// Project: https://github.com/jakiestfu/Context.js
|
||||
// Definitions by: Kern Handa <https://github.com/kernhanda>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "contextjs" {
|
||||
interface MenuObject {
|
||||
action?: (e: Event) => void;
|
||||
divider?: boolean;
|
||||
header?: string;
|
||||
href?: string;
|
||||
subMenu?: MenuObject[];
|
||||
target?: string;
|
||||
text?: string;
|
||||
}
|
||||
|
||||
interface InitSettings {
|
||||
above?: string | boolean;
|
||||
compress?: boolean;
|
||||
fadeSpeed?: number;
|
||||
filter?: (e: Element) => void;
|
||||
preventDoubleContext?: boolean;
|
||||
}
|
||||
|
||||
module context {
|
||||
function init(settings?: InitSettings): void;
|
||||
function destroy(selector: any): void;
|
||||
function attach(selector: any, menuObjects: MenuObject[]): void;
|
||||
function settings(settings: InitSettings): void;
|
||||
}
|
||||
|
||||
export = context;
|
||||
}
|
||||
@@ -0,0 +1,502 @@
|
||||
/// <reference path="core-js.d.ts" />
|
||||
|
||||
interface Point { x: number; y: number; }
|
||||
interface Point3D extends Point { z: number; }
|
||||
|
||||
let a: any;
|
||||
let s: string;
|
||||
let i: number;
|
||||
let b: boolean;
|
||||
let f: () => void;
|
||||
let o: Object;
|
||||
let r: RegExp;
|
||||
let sym: symbol;
|
||||
let e: Error;
|
||||
let date: Date;
|
||||
let key: PropertyKey;
|
||||
let point: Point;
|
||||
let point3d: Point3D;
|
||||
let arrayOfPoint: Point[];
|
||||
let arrayOfPoint3D: Point3D[];
|
||||
let arrayOfSymbol: symbol[];
|
||||
let arrayOfPropertyKey: PropertyKey[];
|
||||
let arrayOfAny: any[];
|
||||
let arrayOfStringAny: [string, any][];
|
||||
let arrayLikeOfAny: ArrayLike<any>;
|
||||
let iterableOfPoint: Iterable<Point>;
|
||||
let iterableOfStringPoint: Iterable<[string, Point]>;
|
||||
let iterableOfPointPoint3D: Iterable<[Point, Point3D]>;
|
||||
let iterableIteratorOfPoint: IterableIterator<Point>;
|
||||
let iterableIteratorOfNumberPoint: IterableIterator<[number, Point]>;
|
||||
let iterableIteratorOfNumber: IterableIterator<number>;
|
||||
let iterableIteratorOfString: IterableIterator<string>;
|
||||
let iterableIteratorOfPointPoint: IterableIterator<[Point, Point]>;
|
||||
let iterableIteratorOfNode: IterableIterator<Node>;
|
||||
let iterableIteratorOfStringPoint: IterableIterator<[string, Point]>;
|
||||
let iterableIteratorOfAny: IterableIterator<any>;
|
||||
let iterableIteratorOfPropertyKey: IterableIterator<PropertyKey>;
|
||||
let iterableIteratorOfPropertyKeyPoint: IterableIterator<[PropertyKey, Point]>;
|
||||
let nodeList: NodeList;
|
||||
let pd: PropertyDescriptor;
|
||||
let pdm: PropertyDescriptorMap;
|
||||
let map: Map<string, Point>;
|
||||
let set: Set<Point>;
|
||||
let weakMap: WeakMap<Point, Point3D>;
|
||||
let weakSet: WeakSet<Point>;
|
||||
let $forOfPoint: $for<Point>;
|
||||
let $forOfPoint3D: $for<Point3D>;
|
||||
let promiseLikeOfPoint: PromiseLike<Point>;
|
||||
let promiseLikeOfPoint3D: PromiseLike<Point3D>;
|
||||
let promiseOfPoint: Promise<Point>;
|
||||
let promiseOfPoint3D: Promise<Point3D>;
|
||||
let promiseOfArrayOfPoint: Promise<Point[]>;
|
||||
let promiseOfVoid: Promise<void>;
|
||||
let dictOfPoint: Dict<Point>;
|
||||
let dictOfPoint3D: Dict<Point3D>;
|
||||
let dictOfAny: Dict<any>;
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: Object & Function
|
||||
// Modules: es6.object.assign, es6.object.is, es6.object.set-prototype-of,
|
||||
// es6.object.to-string, es6.function.name and es6.function.has-instance.
|
||||
// #############################################################################################
|
||||
|
||||
point = Object.assign(point, point);
|
||||
b = Object.is(point, point);
|
||||
Object.setPrototypeOf(point, point);
|
||||
s = f.name;
|
||||
b = f[Symbol.hasInstance](point);
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: Array
|
||||
// Modules: es6.array.from, es6.array.of, es6.array.copy-within, es6.array.fill, es6.array.find,
|
||||
// and es6.array.find-index
|
||||
// #############################################################################################
|
||||
|
||||
point = arrayOfPoint.find(p => b);
|
||||
i = arrayOfPoint.findIndex(p => b);
|
||||
arrayOfPoint = arrayOfPoint.fill(point, i, arrayOfPoint.length);
|
||||
arrayOfPoint = arrayOfPoint.copyWithin(i, i, i);
|
||||
a = arrayOfPoint[Symbol.unscopables];
|
||||
arrayOfPoint = Array.from(arrayOfPoint);
|
||||
arrayOfPoint = Array.from(iterableOfPoint);
|
||||
arrayOfPoint3D = Array.from(arrayOfPoint, point => point3d);
|
||||
arrayOfPoint3D = Array.from(arrayOfPoint, point => point3d, a);
|
||||
arrayOfPoint3D = Array.from(iterableOfPoint, point => point3d);
|
||||
arrayOfPoint3D = Array.from(iterableOfPoint, point => point3d, a);
|
||||
arrayOfPoint = Array.of(point, point);
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: String & RegExp
|
||||
// Modules: es6.string.from-code-point, es6.string.raw, es6.string.code-point-at,
|
||||
// es6.string.ends-with, es6.string.includes, es6.string.repeat,
|
||||
// es6.string.starts-with, and es6.regexp
|
||||
// #############################################################################################
|
||||
|
||||
i = s.codePointAt(i);
|
||||
b = s.includes(s, i);
|
||||
b = s.endsWith(s, i);
|
||||
s = s.repeat(i);
|
||||
b = s.startsWith(s, i);
|
||||
s = String.fromCodePoint(i, i);
|
||||
s = String.raw`abc`;
|
||||
s = r.flags;
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: Number & Math
|
||||
// Modules: es6.number.constructor, es6.number.statics, and es6.math
|
||||
// #############################################################################################
|
||||
|
||||
i = Number.EPSILON;
|
||||
b = Number.isFinite(i);
|
||||
b = Number.isInteger(i);
|
||||
b = Number.isNaN(i);
|
||||
b = Number.isSafeInteger(i);
|
||||
i = Number.MAX_SAFE_INTEGER;
|
||||
i = Number.MIN_SAFE_INTEGER;
|
||||
i = Number.parseFloat(s);
|
||||
i = Number.parseInt(s);
|
||||
i = Number.parseInt(s, i);
|
||||
i = Math.clz32(i);
|
||||
i = Math.imul(i, i);
|
||||
i = Math.sign(i);
|
||||
i = Math.log10(i);
|
||||
i = Math.log2(i);
|
||||
i = Math.log1p(i);
|
||||
i = Math.expm1(i);
|
||||
i = Math.cosh(i);
|
||||
i = Math.sinh(i);
|
||||
i = Math.tanh(i);
|
||||
i = Math.acosh(i);
|
||||
i = Math.asinh(i);
|
||||
i = Math.atanh(i);
|
||||
i = Math.hypot(i, i);
|
||||
i = Math.trunc(i);
|
||||
i = Math.fround(i);
|
||||
i = Math.cbrt(i);
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: Symbols
|
||||
// Modules: es6.symbol
|
||||
// #############################################################################################
|
||||
|
||||
sym = Symbol();
|
||||
sym = Symbol(s);
|
||||
sym = Symbol.for(s);
|
||||
s = Symbol.keyFor(sym);
|
||||
sym = Symbol.hasInstance;
|
||||
sym = Symbol.isConcatSpreadable;
|
||||
sym = Symbol.iterator;
|
||||
sym = Symbol.match;
|
||||
sym = Symbol.replace;
|
||||
sym = Symbol.search;
|
||||
sym = Symbol.species;
|
||||
sym = Symbol.split;
|
||||
sym = Symbol.toPrimitive;
|
||||
sym = Symbol.toStringTag;
|
||||
sym = Symbol.unscopables;
|
||||
b = o.hasOwnProperty(sym);
|
||||
b = o.hasOwnProperty(i);
|
||||
b = o.propertyIsEnumerable(sym);
|
||||
b = o.propertyIsEnumerable(i);
|
||||
arrayOfSymbol = Object.getOwnPropertySymbols(a);
|
||||
pd = Object.getOwnPropertyDescriptor(a, sym);
|
||||
pd = Object.getOwnPropertyDescriptor(a, i);
|
||||
Object.defineProperty(a, sym, pd);
|
||||
Object.defineProperty(a, i, pd);
|
||||
s = Math[Symbol.toStringTag];
|
||||
s = JSON[Symbol.toStringTag];
|
||||
|
||||
// Non-standard
|
||||
Symbol.useSimple();
|
||||
Symbol.userSetter();
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: Collections
|
||||
// Modules: es6.map, es6.set, es6.weak-map, and es6.weak-set
|
||||
// #############################################################################################
|
||||
|
||||
map.clear();
|
||||
map.delete(s);
|
||||
map.forEach((value: Point, key: string) => { });
|
||||
point = map.get(s);
|
||||
b = map.has(s);
|
||||
map = map.set(s, point);
|
||||
i = map.size;
|
||||
map = new Map<string, Point>();
|
||||
map = new Map(iterableOfStringPoint);
|
||||
|
||||
set.clear();
|
||||
set.delete(point);
|
||||
set.forEach((value: Point, key: Point) => { });
|
||||
b = set.has(point);
|
||||
set = set.add(point);
|
||||
i = set.size;
|
||||
set = new Set<Point>();
|
||||
set = new Set(iterableOfPoint);
|
||||
|
||||
weakMap.delete(point);
|
||||
point3d = weakMap.get(point);
|
||||
b = weakMap.has(point);
|
||||
weakMap = weakMap.set(point, point3d);
|
||||
weakMap = new WeakMap<Point, Point3D>();
|
||||
weakMap = new WeakMap(iterableOfPointPoint3D);
|
||||
|
||||
weakSet.delete(point);
|
||||
weakSet = weakSet.add(point);
|
||||
b = weakSet.has(point);
|
||||
weakSet = new WeakSet<Point>();
|
||||
weakSet = new WeakSet(iterableOfPoint);
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: Iterators
|
||||
// Modules: es6.string.iterator, es6.array.iterator, es6.map, es6.set, web.dom.iterable
|
||||
// #############################################################################################
|
||||
|
||||
iterableIteratorOfPoint = arrayOfPoint[Symbol.iterator]();
|
||||
iterableIteratorOfNumberPoint = arrayOfPoint.entries();
|
||||
iterableIteratorOfNumber = arrayOfPoint.keys();
|
||||
iterableIteratorOfPoint = arrayOfPoint.values();
|
||||
iterableIteratorOfStringPoint = map.entries();
|
||||
iterableIteratorOfString = map.keys();
|
||||
iterableIteratorOfPoint = map.values();
|
||||
iterableIteratorOfStringPoint = map[Symbol.iterator]();
|
||||
iterableIteratorOfPointPoint = set.entries();
|
||||
iterableIteratorOfPoint = set.keys();
|
||||
iterableIteratorOfPoint = set.values();
|
||||
iterableIteratorOfPoint = set[Symbol.iterator]();
|
||||
iterableIteratorOfNode = nodeList[Symbol.iterator]();
|
||||
|
||||
$for(iterableOfPoint).of((value: Point) => { });
|
||||
arrayOfPoint = $for(iterableOfPoint).array();
|
||||
arrayOfPoint3D = $for(iterableOfPoint).array(p => point3d);
|
||||
$forOfPoint = $for(iterableOfPoint).filter(p => b);
|
||||
$forOfPoint3D = $for(iterableOfPoint).map(p => point3d);
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: Promises
|
||||
// Modules: es6.promise
|
||||
// #############################################################################################
|
||||
|
||||
promiseLikeOfPoint.then((point: Point) => { });
|
||||
promiseLikeOfPoint = promiseLikeOfPoint.then();
|
||||
promiseLikeOfPoint = promiseLikeOfPoint.then(p => point);
|
||||
promiseLikeOfPoint = promiseLikeOfPoint.then(p => promiseLikeOfPoint);
|
||||
promiseLikeOfPoint = promiseLikeOfPoint.then(p => point, e => point);
|
||||
promiseLikeOfPoint = promiseLikeOfPoint.then(p => promiseLikeOfPoint, e => point);
|
||||
promiseLikeOfPoint = promiseLikeOfPoint.then(p => point, e => promiseLikeOfPoint);
|
||||
promiseLikeOfPoint = promiseLikeOfPoint.then(p => point, e => { });
|
||||
promiseLikeOfPoint = promiseLikeOfPoint.then(p => promiseLikeOfPoint, e => { });
|
||||
promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => point3d);
|
||||
promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => promiseLikeOfPoint3D);
|
||||
promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => point3d, e => point3d);
|
||||
promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => promiseLikeOfPoint3D, e => point3d);
|
||||
promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => point3d, e => promiseLikeOfPoint3D);
|
||||
promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => point3d, e => { });
|
||||
promiseLikeOfPoint3D = promiseLikeOfPoint.then(p => promiseLikeOfPoint3D, e => { });
|
||||
promiseOfPoint.then((point: Point) => { });
|
||||
promiseOfPoint = promiseOfPoint.then();
|
||||
promiseOfPoint = promiseOfPoint.then(p => point);
|
||||
promiseOfPoint = promiseOfPoint.then(p => promiseOfPoint);
|
||||
promiseOfPoint = promiseOfPoint.then(p => promiseLikeOfPoint);
|
||||
promiseOfPoint = promiseOfPoint.then(p => point, e => point);
|
||||
promiseOfPoint = promiseOfPoint.then(p => promiseOfPoint, e => point);
|
||||
promiseOfPoint = promiseOfPoint.then(p => promiseLikeOfPoint, e => point);
|
||||
promiseOfPoint = promiseOfPoint.then(p => point, e => promiseOfPoint);
|
||||
promiseOfPoint = promiseOfPoint.then(p => point, e => promiseLikeOfPoint);
|
||||
promiseOfPoint = promiseOfPoint.then(p => point, e => { });
|
||||
promiseOfPoint = promiseOfPoint.then(p => promiseOfPoint, e => { });
|
||||
promiseOfPoint = promiseOfPoint.then(p => promiseLikeOfPoint, e => { });
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => point3d);
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => promiseOfPoint3D);
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => promiseLikeOfPoint3D);
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => point3d, e => point3d);
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => promiseOfPoint3D, e => point3d);
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => promiseLikeOfPoint3D, e => point3d);
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => point3d, e => promiseOfPoint3D);
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => point3d, e => promiseLikeOfPoint3D);
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => point3d, e => { });
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => promiseOfPoint3D, e => { });
|
||||
promiseOfPoint3D = promiseOfPoint.then(p => promiseLikeOfPoint3D, e => { });
|
||||
promiseOfPoint = promiseOfPoint.catch(e => point);
|
||||
promiseOfPoint = promiseOfPoint.catch(e => promiseOfPoint);
|
||||
promiseOfPoint = promiseOfPoint.catch(e => promiseLikeOfPoint);
|
||||
promiseOfPoint = promiseOfPoint.catch(e => { });
|
||||
promiseOfPoint3D = promiseOfPoint.catch(e => point3d);
|
||||
promiseOfPoint3D = promiseOfPoint.catch(e => promiseOfPoint3D);
|
||||
promiseOfPoint3D = promiseOfPoint.catch(e => promiseLikeOfPoint3D);
|
||||
promiseOfPoint = new Promise<Point>((resolve, reject) => resolve(point));
|
||||
promiseOfPoint = new Promise<Point>((resolve, reject) => resolve(promiseOfPoint));
|
||||
promiseOfPoint = new Promise<Point>((resolve, reject) => resolve(promiseLikeOfPoint));
|
||||
promiseOfPoint = new Promise<Point>((resolve, reject) => reject(e));
|
||||
promiseOfArrayOfPoint = Promise.all(arrayOfPoint);
|
||||
promiseOfArrayOfPoint = Promise.all(iterableOfPoint);
|
||||
promiseOfPoint = Promise.race(arrayOfPoint);
|
||||
promiseOfPoint = Promise.race(iterableOfPoint);
|
||||
promiseOfVoid = Promise.resolve();
|
||||
promiseOfPoint = Promise.resolve(point3d);
|
||||
promiseOfPoint = Promise.resolve(promiseOfPoint);
|
||||
promiseOfPoint = Promise.resolve(promiseLikeOfPoint);
|
||||
promiseOfVoid = Promise.reject(e);
|
||||
promiseOfPoint = Promise.reject<Point>(e);
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 6: Reflect
|
||||
// Modules: es6.reflect
|
||||
// #############################################################################################
|
||||
|
||||
a = Reflect.apply(f, a, arrayLikeOfAny);
|
||||
a = Reflect.construct(f, arrayLikeOfAny, a);
|
||||
b = Reflect.defineProperty(a, s, pd);
|
||||
b = Reflect.defineProperty(a, i, pd);
|
||||
b = Reflect.defineProperty(a, sym, pd);
|
||||
b = Reflect.deleteProperty(a, s);
|
||||
b = Reflect.deleteProperty(a, i);
|
||||
b = Reflect.deleteProperty(a, sym);
|
||||
iterableIteratorOfAny = Reflect.enumerate(a);
|
||||
a = Reflect.get(a, s, a);
|
||||
a = Reflect.get(a, i, a);
|
||||
a = Reflect.get(a, sym, a);
|
||||
pd = Reflect.getOwnPropertyDescriptor(a, s);
|
||||
pd = Reflect.getOwnPropertyDescriptor(a, i);
|
||||
pd = Reflect.getOwnPropertyDescriptor(a, sym);
|
||||
a = Reflect.getPrototypeOf(a);
|
||||
b = Reflect.has(a, s);
|
||||
b = Reflect.has(a, i);
|
||||
b = Reflect.has(a, sym);
|
||||
b = Reflect.isExtensible(a);
|
||||
arrayOfPropertyKey = Reflect.ownKeys(a);
|
||||
b = Reflect.preventExtensions(a);
|
||||
b = Reflect.set(a, s, a, a);
|
||||
b = Reflect.set(a, i, a, a);
|
||||
b = Reflect.set(a, sym, a, a);
|
||||
b = Reflect.setPrototypeOf(a, a);
|
||||
|
||||
// #############################################################################################
|
||||
// ECMAScript 7
|
||||
// Modules: es7.array.includes, es7.string.at, es7.string.lpad, es7.string.rpad,
|
||||
// es7.object.to-array, es7.object.get-own-property-descriptors, es7.regexp.escape,
|
||||
// es7.map.to-json, and es7.set.to-json
|
||||
// #############################################################################################
|
||||
|
||||
b = arrayOfPoint.includes(point, i);
|
||||
s = s.at(i);
|
||||
s = s.lpad(i, s);
|
||||
s = s.rpad(i, s);
|
||||
arrayOfAny = Object.values(a);
|
||||
arrayOfStringAny = Object.entries(a);
|
||||
pdm = Object.getOwnPropertyDescriptors(a);
|
||||
s = RegExp.escape(s);
|
||||
a = map.toJSON();
|
||||
a = set.toJSON();
|
||||
|
||||
// #############################################################################################
|
||||
// Mozilla JavaScript: Array generics
|
||||
// Modules: js.array.statics
|
||||
// #############################################################################################
|
||||
|
||||
i = Array.push(arrayOfPoint, point, point);
|
||||
point = Array.pop(arrayOfPoint);
|
||||
arrayOfPoint = Array.concat(arrayOfPoint, arrayOfPoint);
|
||||
s = Array.join(arrayOfPoint, s);
|
||||
arrayOfPoint = Array.reverse(arrayOfPoint);
|
||||
point = Array.shift(arrayOfPoint);
|
||||
arrayOfPoint = Array.slice(arrayOfPoint, i, i);
|
||||
arrayOfPoint = Array.sort(arrayOfPoint, (a: Point, b: Point) => i);
|
||||
arrayOfPoint = Array.splice(arrayOfPoint, i);
|
||||
arrayOfPoint = Array.splice(arrayOfPoint, i, i, point, point);
|
||||
i = Array.unshift(arrayOfPoint, point, point);
|
||||
i = Array.indexOf(arrayOfPoint, point, i);
|
||||
i = Array.lastIndexOf(arrayOfPoint, point, i);
|
||||
b = Array.every(arrayOfPoint, (value: Point, index: number, array: Point[]) => b, a);
|
||||
b = Array.some(arrayOfPoint, (value: Point, index: number, array: Point[]) => b, a);
|
||||
Array.forEach(arrayOfPoint, (value: Point, index: number, array: Point[]) => { }, a);
|
||||
arrayOfPoint3D = Array.map(arrayOfPoint, (value: Point, index: number, array: Point[]) => point3d, a);
|
||||
arrayOfPoint = Array.filter(arrayOfPoint, (value: Point, index: number, array: Point[]) => b, a);
|
||||
point = Array.reduce(arrayOfPoint, (prev: Point, value: Point, index: number, array: Point[]) => point, point);
|
||||
point3d = Array.reduce(arrayOfPoint, (prev: Point3D, value: Point, index: number, array: Point[]) => point3d, point3d);
|
||||
point = Array.reduceRight(arrayOfPoint, (prev: Point, value: Point, index: number, array: Point[]) => point, point);
|
||||
point3d = Array.reduceRight(arrayOfPoint, (prev: Point3D, value: Point, index: number, array: Point[]) => point3d, point3d);
|
||||
iterableIteratorOfNumberPoint = Array.entries(arrayOfPoint);
|
||||
iterableIteratorOfNumber = Array.keys(arrayOfPoint);
|
||||
iterableIteratorOfPoint = Array.values(arrayOfPoint);
|
||||
point = Array.find(arrayOfPoint, p => b);
|
||||
i = Array.findIndex(arrayOfPoint, p => b);
|
||||
arrayOfPoint = Array.fill(arrayOfPoint, point, i, arrayOfPoint.length);
|
||||
arrayOfPoint = Array.copyWithin(arrayOfPoint, i, i, i);
|
||||
b = Array.includes(arrayOfPoint, point, i);
|
||||
arrayOfPoint = Array.turn(arrayOfPoint, (memo: Point[], value: Point, index: number, array: Point[]) => arrayOfPoint, arrayOfPoint);
|
||||
arrayOfPoint3D = Array.turn(arrayOfPoint, (memo: Point3D[], value: Point, index: number, array: Point[]) => arrayOfPoint3D, arrayOfPoint3D);
|
||||
|
||||
// #############################################################################################
|
||||
// Object - https://github.com/zloirock/core-js/#object
|
||||
// Modules: core.object
|
||||
// #############################################################################################
|
||||
|
||||
// Non-standard
|
||||
b = Object.isObject(a);
|
||||
s = Object.classof(a);
|
||||
point = Object.define(point, a);
|
||||
point = Object.make(point, a);
|
||||
|
||||
// #############################################################################################
|
||||
// Console - https://github.com/zloirock/core-js/#console
|
||||
// Modules: core.log
|
||||
// #############################################################################################
|
||||
|
||||
// Non-standard
|
||||
log(a, a, a);
|
||||
log.log(a, a, a);
|
||||
log.enable();
|
||||
log.disable();
|
||||
|
||||
// #############################################################################################
|
||||
// Dict - https://github.com/zloirock/core-js/#dict
|
||||
// Modules: core.dict
|
||||
// #############################################################################################
|
||||
|
||||
// Non-standard
|
||||
point = dictOfPoint[s];
|
||||
point = dictOfPoint[i];
|
||||
point = dictOfPoint[sym];
|
||||
dictOfPoint = new Dict(dictOfPoint);
|
||||
dictOfAny = new Dict(point);
|
||||
dictOfPoint = Dict(dictOfPoint);
|
||||
dictOfAny = Dict(point);
|
||||
b = Dict.isDict(a);
|
||||
iterableIteratorOfPoint = Dict.values(dictOfPoint);
|
||||
iterableIteratorOfPropertyKey = Dict.keys(dictOfPoint);
|
||||
iterableIteratorOfPropertyKeyPoint = Dict.entries(dictOfPoint);
|
||||
b = Dict.has(dictOfPoint, s);
|
||||
b = Dict.has(dictOfPoint, i);
|
||||
b = Dict.has(dictOfPoint, sym);
|
||||
point = Dict.get(dictOfPoint, s);
|
||||
point = Dict.get(dictOfPoint, i);
|
||||
point = Dict.get(dictOfPoint, sym);
|
||||
dictOfPoint = Dict.set(dictOfPoint, s, point);
|
||||
dictOfPoint = Dict.set(dictOfPoint, i, point);
|
||||
dictOfPoint = Dict.set(dictOfPoint, sym, point);
|
||||
Dict.forEach(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => { }, a);
|
||||
dictOfPoint3D = Dict.map(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => point3d, a);
|
||||
dictOfPoint3D = Dict.mapPairs(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => [s, point3d], a);
|
||||
dictOfPoint3D = Dict.mapPairs(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => [i, point3d], a);
|
||||
dictOfPoint3D = Dict.mapPairs(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => [sym, point3d], a);
|
||||
dictOfPoint = Dict.filter(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => b, a);
|
||||
b = Dict.some(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => b, a);
|
||||
b = Dict.every(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => b, a);
|
||||
point = Dict.find(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => b, a);
|
||||
key = Dict.findKey(dictOfPoint, (value: Point, key: PropertyKey, dict: Dict<Point>) => b, a);
|
||||
key = Dict.keyOf(dictOfPoint, point);
|
||||
b = Dict.includes(dictOfPoint, point);
|
||||
point = Dict.reduce(dictOfPoint, (prev: Point, value: Point, key: PropertyKey, dict: Dict<Point>) => point, point);
|
||||
point3d = Dict.reduce(dictOfPoint, (prev: Point3D, value: Point, key: PropertyKey, dict: Dict<Point>) => point3d, point3d);
|
||||
dictOfPoint = Dict.turn(dictOfPoint, (memo: Dict<Point>, value: Point, key: PropertyKey, dict: Dict<Point>) => { }, dictOfPoint);
|
||||
dictOfPoint3D = Dict.turn(dictOfPoint, (memo: Dict<Point3D>, value: Point, key: PropertyKey, dict: Dict<Point>) => { }, dictOfPoint3D);
|
||||
|
||||
// #############################################################################################
|
||||
// Partial application - https://github.com/zloirock/core-js/#partial-application
|
||||
// Modules: core.function.part
|
||||
// #############################################################################################
|
||||
|
||||
// Non-standard
|
||||
a = f.part(a, a);
|
||||
|
||||
// #############################################################################################
|
||||
// Date formatting - https://github.com/zloirock/core-js/#date-formatting
|
||||
// Modules: core.date
|
||||
// #############################################################################################
|
||||
|
||||
// Non-standard
|
||||
s = date.format(s, s);
|
||||
s = date.formatUTC(s, s);
|
||||
|
||||
// #############################################################################################
|
||||
// Array - https://github.com/zloirock/core-js/#array
|
||||
// Modules: core.array.turn
|
||||
// #############################################################################################
|
||||
|
||||
// Non-standard
|
||||
arrayOfPoint = arrayOfPoint.turn((memo: Point[], value: Point, key: PropertyKey, array: Point[]) => { }, arrayOfPoint);
|
||||
arrayOfPoint3D = arrayOfPoint.turn((memo: Point3D[], value: Point, key: PropertyKey, array: Point[]) => { }, arrayOfPoint3D);
|
||||
|
||||
// #############################################################################################
|
||||
// Number - https://github.com/zloirock/core-js/#number
|
||||
// Modules: core.number.iterator
|
||||
// #############################################################################################
|
||||
|
||||
iterableIteratorOfNumber = i[Symbol.iterator]();
|
||||
|
||||
// #############################################################################################
|
||||
// Escaping characters - https://github.com/zloirock/core-js/#escaping-characters
|
||||
// Modules: core.string.escape-html
|
||||
// #############################################################################################
|
||||
|
||||
s = s.escapeHTML();
|
||||
s = s.unescapeHTML();
|
||||
|
||||
// #############################################################################################
|
||||
// delay - https://github.com/zloirock/core-js/#delay
|
||||
// Modules: core.delay
|
||||
// #############################################################################################
|
||||
|
||||
promiseOfVoid = delay(i);
|
||||
Binary file not shown.
Vendored
+3037
File diff suppressed because it is too large
Load Diff
Vendored
+2
-2
@@ -6,9 +6,9 @@
|
||||
declare module "cron" {
|
||||
|
||||
interface CronJobStatic {
|
||||
new(cronTime: string|Date, onTick: () => void, onComplete?: () => void, start?: boolean, timezone?: string, context?: any): CronJob;
|
||||
new(cronTime: string|Date, onTick: () => void, onComplete?: () => void, start?: boolean, timeZone?: string, context?: any): CronJob;
|
||||
new(options: {
|
||||
cronTime: string|Date; onTick: () => void; onComplete?: () => void; start?: boolean; timezone?: string; context?: any
|
||||
cronTime: string|Date; onTick: () => void; onComplete?: () => void; start?: boolean; timeZone?: string; context?: any
|
||||
}): CronJob;
|
||||
}
|
||||
interface CronJob {
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
hello: 'world'
|
||||
@@ -0,0 +1 @@
|
||||
{"hello": "world"}
|
||||
@@ -0,0 +1,36 @@
|
||||
/// <reference path="cson.d.ts" />
|
||||
|
||||
import cson = require('cson');
|
||||
|
||||
var data: string = cson.stringify({hello: 'world'});
|
||||
console.log('cson.stringify => %s', data);
|
||||
|
||||
data = cson.createString({hello: 'world'});
|
||||
console.log('cson.createString => %s', data);
|
||||
|
||||
data = cson.createJSONString({hello: 'world'});
|
||||
console.log('cson.createJSONString => %s', data);
|
||||
|
||||
data = cson.createCSONString({hello: 'world'});
|
||||
console.log('cson.createCSONString => %s', data);
|
||||
|
||||
var obj: Object = cson.parse(data);
|
||||
console.log('cson.parse => %s', JSON.stringify(obj));
|
||||
|
||||
obj = cson.parseCSONString(data);
|
||||
console.log('cson.parseCSONString => %s', JSON.stringify(obj));
|
||||
|
||||
obj = cson.parseJSONString('{"hello": "world"}');
|
||||
console.log('cson.parseJSONString => %s', JSON.stringify(obj));
|
||||
|
||||
obj = cson.parseString("hello: 'world'");
|
||||
console.log('cson.parseString => %s', JSON.stringify(obj));
|
||||
|
||||
obj = cson.load('cson-test.cson');
|
||||
console.log('cson.load => %s', JSON.stringify(obj));
|
||||
|
||||
obj = cson.parseCSONFile('cson-test.cson');
|
||||
console.log('cson.parseCSONFile => %s', JSON.stringify(obj));
|
||||
|
||||
obj = cson.parseJSONFile('cson-test.json');
|
||||
console.log('cson.parseJSONFile => %s', JSON.stringify(obj));
|
||||
Vendored
+32
@@ -0,0 +1,32 @@
|
||||
// Type definitions for CSON
|
||||
// Project: https://github.com/bevry/cson
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "cson" {
|
||||
// Create Strings
|
||||
export function stringify(data: Object, opts?: Object, indent?: any): string;
|
||||
export function createCSONString(data: Object, opts?: Object, next?: any): string;
|
||||
export function createJSONString(data: Object, opts?: Object, next?: any): string;
|
||||
export function createString(data: Object, opts?: Object, next?: any): string;
|
||||
|
||||
// Parse Strings
|
||||
export function parse(data: string, opts?: Object, next?: any): Object;
|
||||
export function parseCSONString(data: string, opts?: Object, next?: any): Object;
|
||||
export function parseJSONString(data: string, opts?: Object, next?: any): Object;
|
||||
export function parseCSString(data: string, opts?: Object, next?: any): Object;
|
||||
export function parseJSString(data: string, opts?: Object, next?: any): Object;
|
||||
export function parseString(data: string, opts?: Object, next?:any): Object;
|
||||
|
||||
// Parse Files
|
||||
export function load(filePath: string, opts?: Object, next?: any): Object;
|
||||
export function parseCSONFile(filePath: string, opts?: Object, next?: any): Object;
|
||||
export function parseJSONFile(filePath: string, opts?: Object, next?: any): Object;
|
||||
export function parseCSFile(filePath: string, opts?: Object, next?: any): Object;
|
||||
export function parseJSFile(filePath: string, opts?: Object, next?: any): Object;
|
||||
|
||||
// Require Files
|
||||
export function requireCSFile(filePath: string, opts?: Object, next?: any): Object;
|
||||
export function requireJSFile(filePath: string, opts?: Object, next?: any): Object;
|
||||
export function requireFile(filePath: string, opts?: Object, next?: any): Object;
|
||||
}
|
||||
Vendored
+72
-72
@@ -74,16 +74,16 @@ declare module d3 {
|
||||
* Derive an attribute value for each node in the selection based on bound data.
|
||||
*
|
||||
* @param name The attribute name, optionally prefixed.
|
||||
* @param value The function of the datum (the bound data item) and index (the position in the subgrouping) which computes the attribute value. If the function returns null, the attribute is removed.
|
||||
* @param value The function of the datum (the bound data item), index (the position in the subgrouping), and outer index (overall position in nested selections) which computes the attribute value. If the function returns null, the attribute is removed.
|
||||
*/
|
||||
attr(name: string, value: (datum: Datum, index: number) => Primitive): Update<Datum>;
|
||||
attr(name: string, value: (datum: Datum, index: number, outerIndex: number) => Primitive): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Set multiple properties at once using an Object. D3 iterates over all enumerable properties and either sets or computes the attribute's value based on the corresponding entry in the Object.
|
||||
*
|
||||
* @param obj A key-value mapping corresponding to attributes and values. If the value is a simple string or number, it is taken as a constant. Otherwise, it is a function that derives the attribute value.
|
||||
*/
|
||||
attr(obj: { [key: string]: Primitive | ((datum: Datum, index: number) => Primitive) }): Update<Datum>;
|
||||
attr(obj: { [key: string]: Primitive | ((datum: Datum, index: number, outerIndex: number) => Primitive) }): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Returns true if the first node in this selection has the given class list. If multiple classes are specified (i.e., "foo bar"), then returns true only if all classes match.
|
||||
@@ -106,14 +106,14 @@ declare module d3 {
|
||||
* @param name The class list. Spaces separate multiple class names.
|
||||
* @param value The function to run for each node. Should return true to add the class to the node, or false to remove it.
|
||||
*/
|
||||
classed(name: string, value: (datum: Datum, index: number) => boolean): Update<Datum>;
|
||||
classed(name: string, value: (datum: Datum, index: number, outerIndex: number) => boolean): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Set or derive classes for multiple class lists at once.
|
||||
*
|
||||
* @param obj An Object mapping class lists to values that are either plain booleans or functions that return booleans.
|
||||
*/
|
||||
classed(obj: { [key: string]: boolean | ((datum: Datum, index: number) => boolean) }): Update<Datum>;
|
||||
classed(obj: { [key: string]: boolean | ((datum: Datum, index: number, outerIndex: number) => boolean) }): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Retrieve the computed style value for the first node in the selection.
|
||||
@@ -135,7 +135,7 @@ declare module d3 {
|
||||
* @param value the function to derive the value
|
||||
* @param priority if specified, either null or the string "important" (no exclamation mark)
|
||||
*/
|
||||
style(name: string, value: (datum: Datum, index: number) => Primitive, priority?: string): Update<Datum>;
|
||||
style(name: string, value: (datum: Datum, index: number, outerIndex: number) => Primitive, priority?: string): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Set a large number of CSS properties from an object.
|
||||
@@ -143,7 +143,7 @@ declare module d3 {
|
||||
* @param obj an Object whose keys correspond to CSS property names and values are either constants or functions that derive property values
|
||||
* @param priority if specified, either null or the string "important" (no exclamation mark)
|
||||
*/
|
||||
style(obj: { [key: string]: Primitive | ((datum: Datum, index: number) => Primitive) }, priority?: string): Update<Datum>;
|
||||
style(obj: { [key: string]: Primitive | ((datum: Datum, index: number, outerIndex: number) => Primitive) }, priority?: string): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Retrieve an arbitrary node property such as the 'checked' property of checkboxes, or the 'value' of text boxes.
|
||||
@@ -166,14 +166,14 @@ declare module d3 {
|
||||
* @param name the property name
|
||||
* @param value the function used to derive the property's value
|
||||
*/
|
||||
property(name: string, value: (datum: Datum, index: number) => any): Update<Datum>;
|
||||
property(name: string, value: (datum: Datum, index: number, outerIndex: number) => any): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Set multiple node properties. Caveats apply: take care not to mutate special properties like __proto__.
|
||||
*
|
||||
* @param obj an Object whose keys correspond to node properties and values are either constants or functions that will compute a value.
|
||||
*/
|
||||
property(obj: { [key: string]: any | ((datum: Datum, index: number) => any) }): Update<Datum>;
|
||||
property(obj: { [key: string]: any | ((datum: Datum, index: number, outerIndex: number) => any) }): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Retrieve the textContent of the first node in the selection.
|
||||
@@ -190,7 +190,7 @@ declare module d3 {
|
||||
* Compute the textContent of each node in the selection.
|
||||
* @param value the function which will compute the text
|
||||
*/
|
||||
text(value: (datum: Datum, index: number) => Primitive): Update<Datum>;
|
||||
text(value: (datum: Datum, index: number, outerIndex: number) => Primitive): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Retrieve the HTML content of the first node in the selection. Uses 'innerHTML' internally and will not work with SVG or other elements without a polyfill.
|
||||
@@ -207,7 +207,7 @@ declare module d3 {
|
||||
* Compute the HTML content for each node in the selection. Uses 'innerHTML' internally and thus will not work with SVG or other elements without a polyfill.
|
||||
* @param value the function to compute HTML content
|
||||
*/
|
||||
html(value: (datum: Datum, index: number) => string): Selection<Datum>;
|
||||
html(value: (datum: Datum, index: number, outerIndex: number) => string): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Appends a new child to each node in the selection. This child will inherit the parent's data (if available). Returns a fresh selection consisting of the newly-appended children.
|
||||
@@ -221,7 +221,7 @@ declare module d3 {
|
||||
*
|
||||
* @param name the function to compute a new element
|
||||
*/
|
||||
append(name: (datum: Datum, index: number) => EventTarget): Update<Datum>;
|
||||
append(name: (datum: Datum, index: number, outerIndex: number) => EventTarget): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Inserts a new child to each node in the selection. This child will inherit its parent's data (if available). Returns a fresh selection consisting of the newly-inserted children.
|
||||
@@ -235,21 +235,21 @@ declare module d3 {
|
||||
* @param name the element name to append. May be prefixed (see d3.ns.prefix).
|
||||
* @param before a function to determine the node to use as the next sibling
|
||||
*/
|
||||
insert(name: string, before: (datum: Datum, index: number) => EventTarget): Update<Datum>;
|
||||
insert(name: string, before: (datum: Datum, index: number, outerIndex: number) => EventTarget): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Inserts a new child to the end of each node in the selection by computing a new node. This child will inherit its parent's data (if available). Returns a fresh selection consisting of the newly-inserted children.
|
||||
* @param name the function to compute a new child
|
||||
* @param before the selector to determine position (e.g., ":first-child")
|
||||
*/
|
||||
insert(name: (datum: Datum, index: number) => EventTarget, before: string): Update<Datum>;
|
||||
insert(name: (datum: Datum, index: number, outerIndex: number) => EventTarget, before: string): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Inserts a new child to the end of each node in the selection by computing a new node. This child will inherit its parent's data (if available). Returns a fresh selection consisting of the newly-inserted children.
|
||||
* @param name the function to compute a new child
|
||||
* @param before a function to determine the node to use as the next sibling
|
||||
*/
|
||||
insert(name: (datum: Datum, index: number) => EventTarget, before: (datum: Datum, index: number) => EventTarget): Update<Datum>;
|
||||
insert(name: (datum: Datum, index: number, outerIndex: number) => EventTarget, before: (datum: Datum, index: number, outerIndex: number) => EventTarget): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Removes the elements from the DOM. They are in a detached state and may be re-added (though there is currently no dedicated API for doing so).
|
||||
@@ -266,14 +266,14 @@ declare module d3 {
|
||||
* @param data the array of data to bind to this selection
|
||||
* @param key the optional function to determine the unique key for each piece of data. When unspecified, uses the index of the element.
|
||||
*/
|
||||
data<NewDatum>(data: NewDatum[], key?: (datum: NewDatum, index: number) => string): Update<NewDatum>;
|
||||
data<NewDatum>(data: NewDatum[], key?: (datum: NewDatum, index: number, outerIndex: number) => string): Update<NewDatum>;
|
||||
|
||||
/**
|
||||
* Derives data to bind to this selection.
|
||||
* @param data the function to derive data. Must return an array.
|
||||
* @param key the optional function to determine the unique key for each data item. When unspecified, uses the index of the element.
|
||||
*/
|
||||
data<NewDatum>(data: (datum: Datum, index: number) => NewDatum[], key?: (datum: NewDatum, index: number) => string): Update<NewDatum>;
|
||||
data<NewDatum>(data: (datum: Datum, index: number, outerIndex: number) => NewDatum[], key?: (datum: NewDatum, index: number, outerIndex: number) => string): Update<NewDatum>;
|
||||
|
||||
/**
|
||||
* Filters the selection, returning only those nodes that match the given CSS selector.
|
||||
@@ -285,7 +285,7 @@ declare module d3 {
|
||||
* Filters the selection, returning only those nodes for which the given function returned true.
|
||||
* @param selector the filter function
|
||||
*/
|
||||
filter(selector: (datum: Datum, index: number) => boolean): Update<Datum>;
|
||||
filter(selector: (datum: Datum, index: number, outerIndex: number) => boolean): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Return the data item bound to the first element in the selection.
|
||||
@@ -302,7 +302,7 @@ declare module d3 {
|
||||
* Derive the data item for each node in the selection. Useful for situations such as the HTML5 'dataset' attribute.
|
||||
* @param value the function to compute data for each node
|
||||
*/
|
||||
datum<NewDatum>(value: (datum: Datum, index: number) => NewDatum): Update<NewDatum>;
|
||||
datum<NewDatum>(value: (datum: Datum, index: number, outerIndex: number) => NewDatum): Update<NewDatum>;
|
||||
|
||||
/**
|
||||
* Reorders nodes in the selection based on the given comparator. Nodes are re-inserted into the document once sorted.
|
||||
@@ -319,7 +319,7 @@ declare module d3 {
|
||||
* Returns the listener (if any) for the given event.
|
||||
* @param type the type of event to load the listener for. May have a namespace (e.g., ".foo") at the end.
|
||||
*/
|
||||
on(type: string): (datum: Datum, index: number) => any;
|
||||
on(type: string): (datum: Datum, index: number, outerIndex: number) => any;
|
||||
|
||||
/**
|
||||
* Adds a listener for the specified event. If one was already registered, it is removed before the new listener is added. The return value of the listener function is ignored.
|
||||
@@ -327,7 +327,7 @@ declare module d3 {
|
||||
* @param listener an event listener function, or null to unregister
|
||||
* @param capture sets the DOM useCapture flag
|
||||
*/
|
||||
on(type: string, listener: (datum: Datum, index: number) => any, capture?: boolean): Update<Datum>;
|
||||
on(type: string, listener: (datum: Datum, index: number, outerIndex: number) => any, capture?: boolean): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Begins a new transition. Interrupts any active transitions of the same name.
|
||||
@@ -351,7 +351,7 @@ declare module d3 {
|
||||
* Creates a subselection by using a function to find descendent elements. Bound data is inherited.
|
||||
* @param selector the function to find matching descendants
|
||||
*/
|
||||
select(selector: (datum: Datum, index: number) => EventTarget): Update<Datum>;
|
||||
select(selector: (datum: Datum, index: number, outerIndex: number) => EventTarget): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Creates a subselection by finding all descendents that match the given selector. Bound data is not inherited.
|
||||
@@ -363,13 +363,13 @@ declare module d3 {
|
||||
* Creates a subselection by using a function to find descendent elements. Bound data is not inherited.
|
||||
* @param selector the function to find matching descendents
|
||||
*/
|
||||
selectAll(selector: (datum: Datum, index: number) => Array<EventTarget> | NodeList): Update<any>;
|
||||
selectAll(selector: (datum: Datum, index: number, outerIndex: number) => Array<EventTarget> | NodeList): Update<any>;
|
||||
|
||||
/**
|
||||
* Invoke the given function for each element in the selection. The return value of the function is ignored.
|
||||
* @param func the function to invoke
|
||||
*/
|
||||
each(func: (datum: Datum, index: number) => any): Update<Datum>;
|
||||
each(func: (datum: Datum, index: number, outerIndex: number) => any): Update<Datum>;
|
||||
|
||||
/**
|
||||
* Call a function on the selection. sel.call(foo) is equivalent to foo(sel).
|
||||
@@ -386,7 +386,7 @@ declare module d3 {
|
||||
/**
|
||||
* Returns the first non-null element in the selection, or null otherwise.
|
||||
*/
|
||||
node(): EventTarget;
|
||||
node(): Node;
|
||||
|
||||
/**
|
||||
* Returns the total number of elements in the selection.
|
||||
@@ -406,14 +406,14 @@ declare module d3 {
|
||||
|
||||
interface Enter<Datum> {
|
||||
append(name: string): Selection<Datum>;
|
||||
append(name: (datum: Datum, index: number) => EventTarget): Selection<Datum>;
|
||||
append(name: (datum: Datum, index: number, outerIndex: number) => EventTarget): Selection<Datum>;
|
||||
|
||||
insert(name: string, before?: string): Selection<Datum>;
|
||||
insert(name: string, before: (datum: Datum, index: number) => EventTarget): Selection<Datum>;
|
||||
insert(name: (datum: Datum, index: number) => EventTarget, before?: string): Selection<Datum>;
|
||||
insert(name: (datum: Datum, index: number) => EventTarget, before: (datum: Datum, index: number) => EventTarget): Selection<Datum>;
|
||||
insert(name: string, before: (datum: Datum, index: number, outerIndex: number) => EventTarget): Selection<Datum>;
|
||||
insert(name: (datum: Datum, index: number, outerIndex: number) => EventTarget, before?: string): Selection<Datum>;
|
||||
insert(name: (datum: Datum, index: number, outerIndex: number) => EventTarget, before: (datum: Datum, index: number, outerIndex: number) => EventTarget): Selection<Datum>;
|
||||
|
||||
select(name: (datum: Datum, index: number) => EventTarget): Selection<Datum>;
|
||||
select(name: (datum: Datum, index: number, outerIndex: number) => EventTarget): Selection<Datum>;
|
||||
call(func: (selection: Enter<Datum>, ...args: any[]) => any, ...args: any[]): Enter<Datum>;
|
||||
}
|
||||
}
|
||||
@@ -464,16 +464,16 @@ declare module d3 {
|
||||
* Derive an attribute value for each node in the selection based on bound data.
|
||||
*
|
||||
* @param name The attribute name, optionally prefixed.
|
||||
* @param value The function of the datum (the bound data item) and index (the position in the subgrouping) which computes the attribute value. If the function returns null, the attribute is removed.
|
||||
* @param value The function of the datum (the bound data item), index (the position in the subgrouping), and outer index (overall position in nested selections) which computes the attribute value. If the function returns null, the attribute is removed.
|
||||
*/
|
||||
attr(name: string, value: (datum: Datum, index: number) => Primitive): Selection<Datum>;
|
||||
attr(name: string, value: (datum: Datum, index: number, outerIndex: number) => Primitive): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Set multiple properties at once using an Object. D3 iterates over all enumerable properties and either sets or computes the attribute's value based on the corresponding entry in the Object.
|
||||
*
|
||||
* @param obj A key-value mapping corresponding to attributes and values. If the value is a simple string or number, it is taken as a constant. Otherwise, it is a function that derives the attribute value.
|
||||
*/
|
||||
attr(obj: { [key: string]: Primitive | ((datum: Datum, index: number) => Primitive) }): Selection<Datum>;
|
||||
attr(obj: { [key: string]: Primitive | ((datum: Datum, index: number, outerIndex: number) => Primitive) }): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Returns true if the first node in this selection has the given class list. If multiple classes are specified (i.e., "foo bar"), then returns true only if all classes match.
|
||||
@@ -496,14 +496,14 @@ declare module d3 {
|
||||
* @param name The class list. Spaces separate multiple class names.
|
||||
* @param value The function to run for each node. Should return true to add the class to the node, or false to remove it.
|
||||
*/
|
||||
classed(name: string, value: (datum: Datum, index: number) => boolean): Selection<Datum>;
|
||||
classed(name: string, value: (datum: Datum, index: number, outerIndex: number) => boolean): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Set or derive classes for multiple class lists at once.
|
||||
*
|
||||
* @param obj An Object mapping class lists to values that are either plain booleans or functions that return booleans.
|
||||
*/
|
||||
classed(obj: { [key: string]: boolean | ((datum: Datum, index: number) => boolean) }): Selection<Datum>;
|
||||
classed(obj: { [key: string]: boolean | ((datum: Datum, index: number, outerIndex: number) => boolean) }): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Retrieve the computed style value for the first node in the selection.
|
||||
@@ -525,7 +525,7 @@ declare module d3 {
|
||||
* @param value the function to derive the value
|
||||
* @param priority if specified, either null or the string "important" (no exclamation mark)
|
||||
*/
|
||||
style(name: string, value: (datum: Datum, index: number) => Primitive, priority?: string): Selection<Datum>;
|
||||
style(name: string, value: (datum: Datum, index: number, outerIndex: number) => Primitive, priority?: string): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Set a large number of CSS properties from an object.
|
||||
@@ -533,7 +533,7 @@ declare module d3 {
|
||||
* @param obj an Object whose keys correspond to CSS property names and values are either constants or functions that derive property values
|
||||
* @param priority if specified, either null or the string "important" (no exclamation mark)
|
||||
*/
|
||||
style(obj: { [key: string]: Primitive | ((datum: Datum, index: number) => Primitive) }, priority?: string): Selection<Datum>;
|
||||
style(obj: { [key: string]: Primitive | ((datum: Datum, index: number, outerIndex: number) => Primitive) }, priority?: string): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Retrieve an arbitrary node property such as the 'checked' property of checkboxes, or the 'value' of text boxes.
|
||||
@@ -556,14 +556,14 @@ declare module d3 {
|
||||
* @param name the property name
|
||||
* @param value the function used to derive the property's value
|
||||
*/
|
||||
property(name: string, value: (datum: Datum, index: number) => any): Selection<Datum>;
|
||||
property(name: string, value: (datum: Datum, index: number, outerIndex: number) => any): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Set multiple node properties. Caveats apply: take care not to mutate special properties like __proto__.
|
||||
*
|
||||
* @param obj an Object whose keys correspond to node properties and values are either constants or functions that will compute a value.
|
||||
*/
|
||||
property(obj: { [key: string]: any | ((datum: Datum, index: number) => any) }): Selection<Datum>;
|
||||
property(obj: { [key: string]: any | ((datum: Datum, index: number, innerInder: number) => any) }): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Retrieve the textContent of the first node in the selection.
|
||||
@@ -580,7 +580,7 @@ declare module d3 {
|
||||
* Compute the textContent of each node in the selection.
|
||||
* @param value the function which will compute the text
|
||||
*/
|
||||
text(value: (datum: Datum, index: number) => Primitive): Selection<Datum>;
|
||||
text(value: (datum: Datum, index: number, outerIndex: number) => Primitive): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Retrieve the HTML content of the first node in the selection. Uses 'innerHTML' internally and will not work with SVG or other elements without a polyfill.
|
||||
@@ -597,7 +597,7 @@ declare module d3 {
|
||||
* Compute the HTML content for each node in the selection. Uses 'innerHTML' internally and thus will not work with SVG or other elements without a polyfill.
|
||||
* @param value the function to compute HTML content
|
||||
*/
|
||||
html(value: (datum: Datum, index: number) => string): Selection<Datum>;
|
||||
html(value: (datum: Datum, index: number, outerIndex: number) => string): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Appends a new child to each node in the selection. This child will inherit the parent's data (if available). Returns a fresh selection consisting of the newly-appended children.
|
||||
@@ -611,7 +611,7 @@ declare module d3 {
|
||||
*
|
||||
* @param name the function to compute a new element
|
||||
*/
|
||||
append(name: (datum: Datum, index: number) => EventTarget): Selection<Datum>;
|
||||
append(name: (datum: Datum, index: number, outerIndex: number) => EventTarget): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Inserts a new child to each node in the selection. This child will inherit its parent's data (if available). Returns a fresh selection consisting of the newly-inserted children.
|
||||
@@ -625,21 +625,21 @@ declare module d3 {
|
||||
* @param name the element name to append. May be prefixed (see d3.ns.prefix).
|
||||
* @param before a function to determine the node to use as the next sibling
|
||||
*/
|
||||
insert(name: string, before: (datum: Datum, index: number) => EventTarget): Selection<Datum>;
|
||||
insert(name: string, before: (datum: Datum, index: number, outerIndex: number) => EventTarget): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Inserts a new child to the end of each node in the selection by computing a new node. This child will inherit its parent's data (if available). Returns a fresh selection consisting of the newly-inserted children.
|
||||
* @param name the function to compute a new child
|
||||
* @param before the selector to determine position (e.g., ":first-child")
|
||||
*/
|
||||
insert(name: (datum: Datum, index: number) => EventTarget, before: string): Selection<Datum>;
|
||||
insert(name: (datum: Datum, index: number, outerIndex: number) => EventTarget, before: string): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Inserts a new child to the end of each node in the selection by computing a new node. This child will inherit its parent's data (if available). Returns a fresh selection consisting of the newly-inserted children.
|
||||
* @param name the function to compute a new child
|
||||
* @param before a function to determine the node to use as the next sibling
|
||||
*/
|
||||
insert(name: (datum: Datum, index: number) => EventTarget, before: (datum: Datum, index: number) => EventTarget): Selection<Datum>;
|
||||
insert(name: (datum: Datum, index: number, outerIndex: number) => EventTarget, before: (datum: Datum, index: number, outerIndex: number) => EventTarget): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Removes the elements from the DOM. They are in a detached state and may be re-added (though there is currently no dedicated API for doing so).
|
||||
@@ -656,14 +656,14 @@ declare module d3 {
|
||||
* @param data the array of data to bind to this selection
|
||||
* @param key the optional function to determine the unique key for each piece of data. When unspecified, uses the index of the element.
|
||||
*/
|
||||
data<NewDatum>(data: NewDatum[], key?: (datum: NewDatum, index: number) => string): selection.Update<NewDatum>;
|
||||
data<NewDatum>(data: NewDatum[], key?: (datum: NewDatum, index: number, outerIndex: number) => string): selection.Update<NewDatum>;
|
||||
|
||||
/**
|
||||
* Derives data to bind to this selection.
|
||||
* @param data the function to derive data. Must return an array.
|
||||
* @param key the optional function to determine the unique key for each data item. When unspecified, uses the index of the element.
|
||||
*/
|
||||
data<NewDatum>(data: (datum: Datum, index: number) => NewDatum[], key?: (datum: NewDatum, index: number) => string): selection.Update<NewDatum>;
|
||||
data<NewDatum>(data: (datum: Datum, index: number, outerIndex: number) => NewDatum[], key?: (datum: NewDatum, index: number, outerIndex: number) => string): selection.Update<NewDatum>;
|
||||
|
||||
/**
|
||||
* Filters the selection, returning only those nodes that match the given CSS selector.
|
||||
@@ -675,7 +675,7 @@ declare module d3 {
|
||||
* Filters the selection, returning only those nodes for which the given function returned true.
|
||||
* @param selector the filter function
|
||||
*/
|
||||
filter(selector: (datum: Datum, index: number) => boolean): Selection<Datum>;
|
||||
filter(selector: (datum: Datum, index: number, outerIndex: number) => boolean): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Return the data item bound to the first element in the selection.
|
||||
@@ -686,7 +686,7 @@ declare module d3 {
|
||||
* Derive the data item for each node in the selection. Useful for situations such as the HTML5 'dataset' attribute.
|
||||
* @param value the function to compute data for each node
|
||||
*/
|
||||
datum<NewDatum>(value: (datum: Datum, index: number) => NewDatum): Selection<NewDatum>;
|
||||
datum<NewDatum>(value: (datum: Datum, index: number, outerIndex: number) => NewDatum): Selection<NewDatum>;
|
||||
|
||||
/**
|
||||
* Set the data item for each node in the selection.
|
||||
@@ -709,7 +709,7 @@ declare module d3 {
|
||||
* Returns the listener (if any) for the given event.
|
||||
* @param type the type of event to load the listener for. May have a namespace (e.g., ".foo") at the end.
|
||||
*/
|
||||
on(type: string): (datum: Datum, index: number) => any;
|
||||
on(type: string): (datum: Datum, index: number, outerIndex: number) => any;
|
||||
|
||||
/**
|
||||
* Adds a listener for the specified event. If one was already registered, it is removed before the new listener is added. The return value of the listener function is ignored.
|
||||
@@ -717,7 +717,7 @@ declare module d3 {
|
||||
* @param listener an event listener function, or null to unregister
|
||||
* @param capture sets the DOM useCapture flag
|
||||
*/
|
||||
on(type: string, listener: (datum: Datum, index: number) => any, capture?: boolean): Selection<Datum>;
|
||||
on(type: string, listener: (datum: Datum, index: number, outerIndex: number) => any, capture?: boolean): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Begins a new transition. Interrupts any active transitions of the same name.
|
||||
@@ -741,7 +741,7 @@ declare module d3 {
|
||||
* Creates a subselection by using a function to find descendent elements. Bound data is inherited.
|
||||
* @param selector the function to find matching descendants
|
||||
*/
|
||||
select(selector: (datum: Datum, index: number) => EventTarget): Selection<Datum>;
|
||||
select(selector: (datum: Datum, index: number, outerIndex: number) => EventTarget): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Creates a subselection by finding all descendents that match the given selector. Bound data is not inherited.
|
||||
@@ -760,7 +760,7 @@ declare module d3 {
|
||||
* Creates a subselection by using a function to find descendent elements. Bound data is not inherited.
|
||||
* @param selector the function to find matching descendents
|
||||
*/
|
||||
selectAll(selector: (datum: Datum, index: number) => Array<EventTarget> | NodeList): Selection<any>;
|
||||
selectAll(selector: (datum: Datum, index: number, outerIndex: number) => Array<EventTarget> | NodeList): Selection<any>;
|
||||
|
||||
/**
|
||||
* Creates a subselection by using a function to find descendent elements. Bound data is not inherited.
|
||||
@@ -768,13 +768,13 @@ declare module d3 {
|
||||
* Use this overload when data-binding a subselection (that is, sel.selectAll('.foo').data(d => ...)). The type will carry over.
|
||||
* @param selector the function to find matching descendents
|
||||
*/
|
||||
selectAll<T>(selector: (datum: Datum, index: number) => Array<EventTarget> | NodeList): Selection<T>;
|
||||
selectAll<T>(selector: (datum: Datum, index: number, outerIndex: number) => Array<EventTarget> | NodeList): Selection<T>;
|
||||
|
||||
/**
|
||||
* Invoke the given function for each element in the selection. The return value of the function is ignored.
|
||||
* @param func the function to invoke
|
||||
*/
|
||||
each(func: (datum: Datum, index: number) => any): Selection<Datum>;
|
||||
each(func: (datum: Datum, index: number, outerIndex: number) => any): Selection<Datum>;
|
||||
|
||||
/**
|
||||
* Call a function on the selection. sel.call(foo) is equivalent to foo(sel).
|
||||
@@ -805,32 +805,35 @@ declare module d3 {
|
||||
}
|
||||
|
||||
interface Transition<Datum> {
|
||||
|
||||
transition(): Transition<Datum>;
|
||||
|
||||
delay(): number;
|
||||
delay(delay: number): Transition<Datum>;
|
||||
delay(delay: (datum: Datum, index: number) => number): Transition<Datum>;
|
||||
delay(delay: (datum: Datum, index: number, outerIndex: number) => number): Transition<Datum>;
|
||||
|
||||
duration(): number;
|
||||
duration(duration: number): Transition<Datum>;
|
||||
duration(duration: (datum: Datum, index: number) => number): Transition<Datum>;
|
||||
duration(duration: (datum: Datum, index: number, outerIndex: number) => number): Transition<Datum>;
|
||||
|
||||
ease(): (t: number) => number;
|
||||
ease(value: string, ...args: any[]): Transition<Datum>;
|
||||
ease(value: (t: number) => number): Transition<Datum>;
|
||||
|
||||
attr(name: string, value: Primitive): Transition<Datum>;
|
||||
attr(name: string, value: (datum: Datum, index: number) => Primitive): Transition<Datum>;
|
||||
attr(obj: { [key: string]: Primitive | ((datum: Datum, index: number) => Primitive) }): Transition<Datum>;
|
||||
attr(name: string, value: (datum: Datum, index: number, outerIndex: number) => Primitive): Transition<Datum>;
|
||||
attr(obj: { [key: string]: Primitive | ((datum: Datum, index: number, outerIndex: number) => Primitive) }): Transition<Datum>;
|
||||
|
||||
attrTween(name: string, tween: (datum: Datum, index: number, attr: string) => Primitive): Transition<Datum>;
|
||||
attrTween(name: string, tween: (datum: Datum, index: number, attr: string) => (t: number) => Primitive): Transition<Datum>;
|
||||
|
||||
style(name: string, value: Primitive, priority?: string): Transition<Datum>;
|
||||
style(name: string, value: (datum: Datum, index: number) => Primitive, priority?: string): Transition<Datum>;
|
||||
style(obj: { [key: string]: Primitive | ((datum: Datum, index: number) => Primitive) }, priority?: string): Transition<Datum>;
|
||||
style(name: string, value: (datum: Datum, index: number, outerIndex: number) => Primitive, priority?: string): Transition<Datum>;
|
||||
style(obj: { [key: string]: Primitive | ((datum: Datum, index: number, outerIndex: number) => Primitive) }, priority?: string): Transition<Datum>;
|
||||
|
||||
styleTween(name: string, tween: (datum: Datum, index: number, attr: string) => Primitive, priority?: string): Transition<Datum>;
|
||||
|
||||
text(value: Primitive): Transition<Datum>;
|
||||
text(value: (datum: Datum, index: number) => Primitive): Transition<Datum>;
|
||||
text(value: (datum: Datum, index: number, outerIndex: number) => Primitive): Transition<Datum>;
|
||||
|
||||
tween(name: string, factory: () => (t: number) => any): Transition<Datum>;
|
||||
|
||||
@@ -2193,8 +2196,7 @@ declare module d3 {
|
||||
interpolate(interpolate: "cardinal-open"): Line<T>;
|
||||
interpolate(interpolate: "cardinal-closed"): Line<T>;
|
||||
interpolate(interpolate: "monotone"): Line<T>;
|
||||
interpolate(interpolate: string): Line<T>;
|
||||
interpolate(interpolate: (points: Array<[number, number]>) => string): Line<T>;
|
||||
interpolate(interpolate: string | ((points: Array<[number, number]>) => string)): Line<T>;
|
||||
|
||||
tension(): number;
|
||||
tension(tension: number): Line<T>;
|
||||
@@ -2232,8 +2234,7 @@ declare module d3 {
|
||||
interpolate(interpolate: "cardinal-open"): Radial<T>;
|
||||
interpolate(interpolate: "cardinal-closed"): Radial<T>;
|
||||
interpolate(interpolate: "monotone"): Radial<T>;
|
||||
interpolate(interpolate: string): Radial<T>;
|
||||
interpolate(interpolate: (points: Array<[number, number]>) => string): Radial<T>;
|
||||
interpolate(interpolate: string | ((points: Array<[number, number]>) => string)): Radial<T>;
|
||||
|
||||
tension(): number;
|
||||
tension(tension: number): Radial<T>;
|
||||
@@ -2283,7 +2284,7 @@ declare module d3 {
|
||||
interpolate(interpolate: "cardinal"): Area<T>;
|
||||
interpolate(interpolate: "cardinal-open"): Area<T>;
|
||||
interpolate(interpolate: "monotone"): Area<T>;
|
||||
interpolate(interpolate: string): Area<T>;
|
||||
interpolate(interpolate: string | ((points: Array<[number, number]>) => string)): Area<T>;
|
||||
|
||||
tension(): number;
|
||||
tension(tension: number): Area<T>;
|
||||
@@ -2333,8 +2334,7 @@ declare module d3 {
|
||||
interpolate(interpolate: "cardinal"): Radial<T>;
|
||||
interpolate(interpolate: "cardinal-open"): Radial<T>;
|
||||
interpolate(interpolate: "monotone"): Radial<T>;
|
||||
interpolate(interpolate: string): Radial<T>;
|
||||
interpolate(interpolate: (points: Array<[number, number]>) => string): Radial<T>;
|
||||
interpolate(interpolate: string | ((points: Array<[number, number]>) => string)): Radial<T>;
|
||||
|
||||
tension(): number;
|
||||
tension(tension: number): Radial<T>;
|
||||
@@ -2358,7 +2358,7 @@ declare module d3 {
|
||||
}
|
||||
|
||||
interface Arc<T> {
|
||||
(d: T, i: number): string;
|
||||
(d: T, i?: number): string;
|
||||
|
||||
innerRadius(): (d: T, i: number) => number;
|
||||
innerRadius(radius: number): Arc<T>;
|
||||
@@ -2810,7 +2810,7 @@ declare module d3 {
|
||||
|
||||
nodes(root: T): T[];
|
||||
|
||||
links(nodes: T[]): cluster.Link<T>;
|
||||
links(nodes: T[]): cluster.Link<T>[];
|
||||
|
||||
children(): (node: T) => T[];
|
||||
children(accessor: (node: T) => T[]): Cluster<T>;
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
/// <reference path="data-driven.d.ts" />
|
||||
|
||||
import data_driven = require('data-driven');
|
||||
|
||||
data_driven([
|
||||
{key:"value"},
|
||||
{key:"foobar"}
|
||||
],() => {});
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for data-driven.js
|
||||
// Project: https://github.com/fluentsoftware/data-driven
|
||||
// Definitions by: Adam Babcock <https://github.com/mrhen>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "data-driven" {
|
||||
function data_driven<T>(data:T[], callback:()=>any):any;
|
||||
export = data_driven
|
||||
}
|
||||
Vendored
+1
-1
@@ -34,7 +34,7 @@ declare module deepDiff {
|
||||
}
|
||||
}
|
||||
|
||||
declare var diff: deepDiff.IDeepDiff;
|
||||
declare var DeepDiff: deepDiff.IDeepDiff;
|
||||
|
||||
declare module "deep-diff" {
|
||||
var diff: deepDiff.IDeepDiff;
|
||||
|
||||
Vendored
+6
-2
@@ -4,6 +4,10 @@
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module 'detect-indent' {
|
||||
function DetectIndent (dir: string, alt?: string): string;
|
||||
export = DetectIndent;
|
||||
interface DetectIndent {
|
||||
(dir: string, alt?: string): string;
|
||||
}
|
||||
var _: DetectIndent;
|
||||
export = _;
|
||||
}
|
||||
|
||||
|
||||
Vendored
+6448
File diff suppressed because it is too large
Load Diff
Vendored
+53
-4
@@ -1,4 +1,4 @@
|
||||
// Type definitions for DevExtreme 15.1.4
|
||||
// Type definitions for DevExtreme 15.1.5
|
||||
// Project: http://js.devexpress.com/
|
||||
// Definitions by: DevExpress Inc. <http://devexpress.com/>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
@@ -520,6 +520,8 @@ declare module DevExpress {
|
||||
}
|
||||
/** 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;
|
||||
}
|
||||
@@ -1438,6 +1440,7 @@ declare module DevExpress.ui {
|
||||
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;
|
||||
groupRender?: any;
|
||||
@@ -1817,9 +1820,11 @@ declare module DevExpress.ui {
|
||||
/** A handler for the click event. */
|
||||
onClick?: any;
|
||||
clickAction?: any;
|
||||
/** The name of an icon to be displayed on the button. */
|
||||
/** 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. */
|
||||
@@ -1867,7 +1872,7 @@ declare module DevExpress.ui {
|
||||
minSearchLength?: number;
|
||||
/** Specifies the maximum count of items displayed by the widget. */
|
||||
maxItemCount?: number;
|
||||
/** Specifies the currently selected item. */
|
||||
/** Gets the currently selected item. */
|
||||
selectedItem?: Object;
|
||||
}
|
||||
/** A textbox widget that supports autocompletion. */
|
||||
@@ -2730,6 +2735,8 @@ declare module DevExpress.ui {
|
||||
onItemExpanded?: Function;
|
||||
/** A handler for the itemCollapsed event. */
|
||||
onItemCollapsed?: Function;
|
||||
hoverStateEnabled?: boolean;
|
||||
focusStateEnabled?: boolean;
|
||||
}
|
||||
/** A widget displaying specified data items as a tree. */
|
||||
export class dxTreeView extends CollectionWidget {
|
||||
@@ -3339,6 +3346,8 @@ Specifies the message displayed in a group row when the corresponding group cont
|
||||
}) => 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. */
|
||||
@@ -3589,8 +3598,10 @@ Searches grid records by a search string.
|
||||
focus(element?: JQuery): void;
|
||||
}
|
||||
export interface dxPivotGridOptions extends WidgetOptions {
|
||||
onContentReady?: Function;
|
||||
/** Specifies a data source for the pivot grid. */
|
||||
dataSource?: any;
|
||||
/** Specifies whether or not the widget uses native scrolling. */
|
||||
useNativeScrolling?: any;
|
||||
/** Allows an end-user to change sorting options. */
|
||||
allowSorting?: boolean;
|
||||
@@ -3676,6 +3687,8 @@ Searches grid records by a search string.
|
||||
onCellClick?: (e: any) => void;
|
||||
/** A handler for the cellPrepared event. */
|
||||
onCellPrepared?: (e: any) => void;
|
||||
/** A handler for the contextMenuPreparing event. */
|
||||
onContextMenuPreparing?: (e: Object) => void;
|
||||
}
|
||||
/** A data summarization widget for multi-dimensional data analysis and data mining. */
|
||||
export class dxPivotGrid extends Widget {
|
||||
@@ -5179,11 +5192,13 @@ declare module DevExpress.viz.charts {
|
||||
onTooltipShown?: (e: {
|
||||
component: BaseChart;
|
||||
element: Element;
|
||||
target: BasePoint;
|
||||
}) => void;
|
||||
/** A handler for the tooltipHidden event. */
|
||||
onTooltipHidden?: (e: {
|
||||
component: BaseChart;
|
||||
element: Element;
|
||||
target: BasePoint;
|
||||
}) => void;
|
||||
tooltipHidden?: (point: TPoint) => void;
|
||||
tooltipShown?: (point: TPoint) => void;
|
||||
@@ -5606,6 +5621,18 @@ declare module DevExpress.viz.gauges {
|
||||
};
|
||||
/** 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. */
|
||||
@@ -6252,7 +6279,19 @@ declare module DevExpress.viz.map {
|
||||
center: Array<number>;
|
||||
component: dxVectorMap;
|
||||
element: Element;
|
||||
}) => void;
|
||||
}) => 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. */
|
||||
@@ -6355,6 +6394,16 @@ declare module DevExpress.viz.sparklines {
|
||||
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 {
|
||||
|
||||
Vendored
+1
-1
@@ -23018,7 +23018,7 @@ declare module dojox {
|
||||
*/
|
||||
class PortletSettings extends dijit._Container implements dijit.layout.ContentPane {
|
||||
constructor(params?: Object, srcNodeRef?: HTMLElement);
|
||||
inherited: { (arguments: IArguments): any };
|
||||
inherited: { (args: IArguments): any };
|
||||
/**
|
||||
* Custom press, release, and click synthetic events
|
||||
* which trigger on a left mouse click, touch, or space/enter keyup.
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
/// <reference path="dot-case.d.ts" />
|
||||
|
||||
import dotCase = require('dot-case');
|
||||
|
||||
console.log(dotCase('string')); // => "string"
|
||||
console.log(dotCase('camelCase')); // => "camel.case"
|
||||
console.log(dotCase('sentence case')); // => "sentence.case"
|
||||
|
||||
console.log(dotCase('MY STRING', 'tr')); // => "my.strıng"
|
||||
Vendored
+9
@@ -0,0 +1,9 @@
|
||||
// Type definitions for dot-case
|
||||
// Project: https://github.com/blakeembrey/dot-case
|
||||
// Definitions by: Sam Saint-Pettersen <https://github.com/stpettersens>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "dot-case" {
|
||||
function dotCase(string: string, locale?: string): string;
|
||||
export = dotCase;
|
||||
}
|
||||
+4
-4
@@ -25,10 +25,10 @@ d.destroy();
|
||||
d.element.appendChild(document.createElement("div"));
|
||||
d.tether.position();
|
||||
|
||||
d.on("open", () => null);
|
||||
d.on("close", () => null);
|
||||
d.once("close", () => null);
|
||||
d.off("close", () => null);
|
||||
d.on("open", () => false);
|
||||
d.on("close", () => false);
|
||||
d.once("close", () => false);
|
||||
d.off("close", () => false);
|
||||
d.off("open");
|
||||
|
||||
var e = new Drop({
|
||||
|
||||
Vendored
+14
-10
@@ -295,7 +295,7 @@ interface DurandalViewEngineModule {
|
||||
* @param {string} id The view id whose view should be cached.
|
||||
* @param {DOMElement} view The view to cache.
|
||||
*/
|
||||
putViewInCache(id:string, view:HTMLElement);
|
||||
putViewInCache(id: string, view: HTMLElement);
|
||||
|
||||
/**
|
||||
* Creates the view associated with the view id.
|
||||
@@ -1107,7 +1107,7 @@ declare module 'plugins/serializer' {
|
||||
* @param {object} [settings] Settings can specify any of the options allowed by the serialize or deserialize methods.
|
||||
* @return {object} The new clone.
|
||||
*/
|
||||
export function clone<T>(obj:T, settings?:Object): T;
|
||||
export function clone<T>(obj: T, settings?: Object): T;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -1262,8 +1262,8 @@ interface DurandalEventModule {
|
||||
}
|
||||
|
||||
interface DialogButton {
|
||||
text: string;
|
||||
value: any;
|
||||
text: string;
|
||||
value: any;
|
||||
}
|
||||
|
||||
interface DurandalAppModule extends DurandalEventSupport<DurandalAppModule> {
|
||||
@@ -1509,13 +1509,12 @@ interface DurandalRouteConfiguration {
|
||||
title?: any;
|
||||
moduleId?: string;
|
||||
hash?: string;
|
||||
/** string or string[] */
|
||||
route?: any;
|
||||
route?: string|string[];
|
||||
routePattern?: RegExp;
|
||||
isActive?: KnockoutComputed<boolean>;
|
||||
nav?: any;
|
||||
hasChildRoutes?: boolean;
|
||||
viewUrl?:string;
|
||||
viewUrl?: string;
|
||||
}
|
||||
|
||||
interface DurandalRouteInstruction {
|
||||
@@ -1523,7 +1522,7 @@ interface DurandalRouteInstruction {
|
||||
queryString: string;
|
||||
config: DurandalRouteConfiguration;
|
||||
params: any[];
|
||||
queryParams: Object;
|
||||
queryParams: { [index: string]: any };
|
||||
}
|
||||
|
||||
interface DurandalRelativeRouteSettings {
|
||||
@@ -1766,7 +1765,12 @@ interface DurandalRouterBase<T> extends DurandalEventSupport<T> {
|
||||
* @param {object} instruction The route instruction. The instruction object has config, fragment, queryString, params and queryParams properties.
|
||||
* @returns {Promise|Boolean|String} If a boolean, determines whether or not the route should activate or be cancelled. If a string, causes a redirect to the specified route. Can also be a promise for either of these value types.
|
||||
*/
|
||||
guardRoute?: (instance: Object, instruction: DurandalRouteInstruction) => any;
|
||||
guardRoute?: (instance: Object, instruction: DurandalRouteInstruction) => JQueryPromise<boolean|string>|boolean|string;
|
||||
|
||||
/**
|
||||
* Parent router of the current child router.
|
||||
*/
|
||||
parent?: DurandalRouter;
|
||||
}
|
||||
|
||||
interface DurandalRouter extends DurandalRouterBase<DurandalRouter> { }
|
||||
@@ -1792,4 +1796,4 @@ interface DurandalRootRouter extends DurandalRouterBase<DurandalRootRouter> {
|
||||
* Installs the router's custom ko binding handler.
|
||||
*/
|
||||
install(): void;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,214 @@
|
||||
/// <reference path="../jquery/jquery.d.ts" />
|
||||
/// <reference path="dw-bxslider-4.d.ts" />
|
||||
|
||||
// examples from http://bxslider.com/examples
|
||||
|
||||
$(document).ready(function() {
|
||||
$('.bxslider1').bxSlider({
|
||||
mode: 'fade',
|
||||
captions: true
|
||||
});
|
||||
|
||||
$('.bxslider2').bxSlider({
|
||||
auto: true,
|
||||
autoControls: true
|
||||
});
|
||||
|
||||
$('.bxslider3').bxSlider({
|
||||
infiniteLoop: false,
|
||||
hideControlOnEnd: true
|
||||
});
|
||||
|
||||
$('.bxslider4').bxSlider({
|
||||
adaptiveHeight: true,
|
||||
mode: 'fade'
|
||||
});
|
||||
|
||||
$('.slider1').bxSlider({
|
||||
slideWidth: 200,
|
||||
minSldies: 2,
|
||||
maxSlides: 3,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.slider2').bxSlider({
|
||||
slideWidth: 300,
|
||||
minSlides: 2,
|
||||
maxSlides: 2,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.slider3').bxSlider({
|
||||
slideWidth: 5000,
|
||||
minSlides: 2,
|
||||
maxSlides: 4,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.slider4').bxSlider({
|
||||
slideWidth: 300,
|
||||
minSlides: 2,
|
||||
maxSlides: 3,
|
||||
moveSlides: 1,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.slider5').bxSlider({
|
||||
slideWidth: 300,
|
||||
minSlides: 3,
|
||||
maxSlides: 3,
|
||||
moveSlides: 3,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.slider6').bxSlider({
|
||||
slideWidth: 300,
|
||||
minSlides: 2,
|
||||
maxSlides: 3,
|
||||
startSlide: 2,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.slider7').bxSlider({
|
||||
slideWidth: 200,
|
||||
minSlides: 4,
|
||||
maxSlides: 5,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.slider8').bxSlider({
|
||||
mode: 'vertical',
|
||||
slideWidth: 300,
|
||||
minSlides: 2,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.bxslider6').bxSlider({
|
||||
minSlides: 2,
|
||||
maxSlides: 2,
|
||||
slideWidth: 360,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.bxslider7').bxSlider({
|
||||
minSlides: 3,
|
||||
maxSlides: 4,
|
||||
slideWidth: 170,
|
||||
slideMargin: 10
|
||||
});
|
||||
|
||||
$('.bxslider8').bxSlider({
|
||||
pagerCustom: '#bx-pager'
|
||||
});
|
||||
$('.bxslider9').bxSlider({
|
||||
buildPager: function(slideIndex) {
|
||||
switch (slideIndex) {
|
||||
case 0:
|
||||
return '<img src="/images/thumbs/tree_root.jpg">';
|
||||
case 1:
|
||||
return '<img src="/images/thumbs/houses.jpg">';
|
||||
case 2:
|
||||
return '<img src="/images/thumbs/hill_fence.jpg">';
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
$('.bxslider10').bxSlider({
|
||||
mode: 'vertical',
|
||||
slideMargin: 5
|
||||
});
|
||||
|
||||
$('.bxslider11').bxSlider({
|
||||
nextSelector: '#slider-next',
|
||||
prevSelector: '#slider-prev',
|
||||
nextText: 'Onward →',
|
||||
prevText: '← Go back'
|
||||
});
|
||||
|
||||
$('.bxslider12a').bxSlider({
|
||||
mode: 'fade',
|
||||
auto: true,
|
||||
autoControls: true,
|
||||
pause: 2000
|
||||
});
|
||||
|
||||
$('.bxslider12b').bxSlider({
|
||||
auto: true,
|
||||
autoControls: true,
|
||||
pause: 3000,
|
||||
slideMargin: 20
|
||||
});
|
||||
|
||||
$('.bxslider13').bxSlider({
|
||||
onSliderLoad: function() {
|
||||
// do funky JS stuff here
|
||||
alert('Slider has finished loading. Click OK to continue!');
|
||||
},
|
||||
onSlideAfter: function() {
|
||||
// do mind-blowing JS stuff here
|
||||
alert('A slide has finished transitioning. Bravo. Click OK to continue!');
|
||||
}
|
||||
});
|
||||
|
||||
var slider = $('.bxslider14').bxSlider({
|
||||
mode: 'fade'
|
||||
});
|
||||
|
||||
$('#slider-next').click(function() {
|
||||
slider.goToNextSlide();
|
||||
return false;
|
||||
});
|
||||
|
||||
$('#slider-count').click(function() {
|
||||
var count = slider.getSlideCount();
|
||||
alert('Slide count: ' + count);
|
||||
return false;
|
||||
});
|
||||
|
||||
$('.bxslider15').bxSlider({
|
||||
video: true,
|
||||
useCSS: false
|
||||
});
|
||||
|
||||
$('.bxslider16').bxSlider({
|
||||
minSlides: 4,
|
||||
maxSlides: 4,
|
||||
slideWidth: 170,
|
||||
slideMargin: 10,
|
||||
ticker: true,
|
||||
speed: 6000
|
||||
});
|
||||
|
||||
$('.bxslider17').bxSlider({
|
||||
mode: 'horizontal',
|
||||
useCSS: false,
|
||||
infiniteLoop: false,
|
||||
hideControlOnEnd: true,
|
||||
easing: 'easeOutElastic',
|
||||
speed: 2000
|
||||
});
|
||||
|
||||
var slider = $('.bxslider18').bxSlider({
|
||||
mode: 'horizontal'
|
||||
});
|
||||
|
||||
$('#reload-slider').click(function(e) {
|
||||
e.preventDefault();
|
||||
$('.bxslider').append('<li><img src="/images/730_200/trees.jpg"></li>');
|
||||
slider.reloadSlider();
|
||||
});
|
||||
|
||||
var slider = $('.bxslider19').bxSlider({
|
||||
mode: 'horizontal'
|
||||
});
|
||||
|
||||
$('#reload-slider').click(function(e) {
|
||||
e.preventDefault();
|
||||
slider.reloadSlider({
|
||||
mode: 'fade',
|
||||
auto: true,
|
||||
pause: 1000,
|
||||
speed: 500
|
||||
});
|
||||
});
|
||||
});
|
||||
Vendored
+623
@@ -0,0 +1,623 @@
|
||||
// Type definitions for bxSlider v4.2.5
|
||||
// Project: https://github.com/stevenwanderski/bxslider-4
|
||||
// Definitions by: Piotr Sałkowski <https://github.com/namerci>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
///<reference path="../jquery/jquery.d.ts"/>
|
||||
|
||||
interface bxSliderOptions {
|
||||
/**
|
||||
* mode Type of transition between slides
|
||||
*
|
||||
* default: 'horizontal'
|
||||
* options: 'horizontal', 'vertical', 'fade'
|
||||
*/
|
||||
mode?: string
|
||||
|
||||
/**
|
||||
* speed Slide transition duration (in ms)
|
||||
*
|
||||
* default: 500
|
||||
* options: integer
|
||||
*/
|
||||
speed?: number
|
||||
|
||||
/**
|
||||
* slideMargin Margin between each slide
|
||||
*
|
||||
* default: 0
|
||||
* options: integer
|
||||
*/
|
||||
slideMargin?: number
|
||||
|
||||
/**
|
||||
* startSlide Starting slide index (zero-based)
|
||||
*
|
||||
* default: 0
|
||||
* options: integer
|
||||
*/
|
||||
startSlide?: number
|
||||
|
||||
/**
|
||||
* randomStart Start slider on a random slide
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
randomStart?: boolean
|
||||
|
||||
/**
|
||||
* slideSelector Element to use as slides (ex. 'div.slide').
|
||||
* Note: by default, bxSlider will use all immediate children of the slider element
|
||||
*
|
||||
* default: ''
|
||||
* options: jQuery selector
|
||||
*/
|
||||
slideSelector?: string
|
||||
|
||||
/**
|
||||
* infiniteLoop If true, clicking "Next" while on the last slide will transition to the first slide and vice-versa
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
infiniteLoop?: boolean
|
||||
|
||||
/**
|
||||
* hideControlOnEnd If true, "Prev" and "Next" controls will receive a class disabled when slide is the first or the last
|
||||
* Note: Only used when infiniteLoop: false
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
hideControlOnEnd?: boolean
|
||||
|
||||
/**
|
||||
* easing The type of "easing" to use during transitions. If using CSS transitions, include a value for the transition-timing-function property. If not using CSS transitions, you may include plugins/jquery.easing.1.3.js for many options.
|
||||
* See http://gsgd.co.uk/sandbox/jquery/easing/ for more info.
|
||||
*
|
||||
* default: null
|
||||
* options: if using CSS: 'linear', 'ease', 'ease-in', 'ease-out', 'ease-in-out', 'cubic-bezier(n,n,n,n)'. If not using CSS: 'swing', 'linear' (see the above file for more options)
|
||||
*/
|
||||
easing?: string
|
||||
|
||||
/**
|
||||
* captions Include image captions. Captions are derived from the image's title attribute
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
captions?: boolean
|
||||
|
||||
/**
|
||||
* ticker Use slider in ticker mode (similar to a news ticker)
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
ticker?: boolean
|
||||
|
||||
/**
|
||||
* tickerHover Ticker will pause when mouse hovers over slider. Note: this functionality does NOT work if using CSS transitions!
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
tickerHover?: boolean
|
||||
|
||||
/**
|
||||
* adaptiveHeight Dynamically adjust slider height based on each slide's height
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
adaptiveHeight?: boolean
|
||||
|
||||
/**
|
||||
* adaptiveHeightSpeed Slide height transition duration (in ms). Note: only used if adaptiveHeight: true
|
||||
*
|
||||
* default: 500
|
||||
* options: integer
|
||||
*/
|
||||
adaptiveHeightSpeed?: number
|
||||
|
||||
/**
|
||||
* video If any slides contain video, set this to true. Also, include plugins/jquery.fitvids.js
|
||||
* See http://fitvidsjs.com/ for more info
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
video?: boolean
|
||||
|
||||
/**
|
||||
* responsive Enable or disable auto resize of the slider. Useful if you need to use fixed width sliders.
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
responsive?: boolean
|
||||
|
||||
/**
|
||||
* useCSS If true, CSS transitions will be used for horizontal and vertical slide animations (this uses native hardware acceleration). If false, jQuery animate() will be used.
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
useCSS?: boolean
|
||||
|
||||
/**
|
||||
* preloadImages If 'all', preloads all images before starting the slider. If 'visible', preloads only images in the initially visible slides before starting the slider (tip: use 'visible' if all slides are identical dimensions)
|
||||
*
|
||||
* default: 'visible'
|
||||
* options: 'all', 'visible'
|
||||
*/
|
||||
preloadImages?: string
|
||||
|
||||
/**
|
||||
* touchEnabled If true, slider will allow touch swipe transitions
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
touchEnabled?: boolean
|
||||
|
||||
/**
|
||||
* swipeThreshold Amount of pixels a touch swipe needs to exceed in order to execute a slide transition. Note: only used if touchEnabled: true
|
||||
*
|
||||
* default: 50
|
||||
* options: integer
|
||||
*/
|
||||
swipeThreshold?: number
|
||||
|
||||
/**
|
||||
* oneToOneTouch If true, non-fade slides follow the finger as it swipes
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
oneToOneTouch?: boolean
|
||||
|
||||
/**
|
||||
* preventDefaultSwipeX If true, touch screen will not move along the x-axis as the finger swipes
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
preventDefaultSwipeX?: boolean
|
||||
|
||||
/**
|
||||
* preventDefaultSwipeY If true, touch screen will not move along the y-axis as the finger swipes
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
preventDefaultSwipeY?: boolean
|
||||
|
||||
/**
|
||||
* wrapperClass Class to wrap the slider in. Change to prevent from using default bxSlider styles.
|
||||
*
|
||||
* default: 'bx-wrapper'
|
||||
* options: string
|
||||
*/
|
||||
wrapperClass?: string
|
||||
|
||||
/**
|
||||
* pager If true, a pager will be added
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
pager?: boolean
|
||||
|
||||
/**
|
||||
* pagerType If 'full', a pager link will be generated for each slide. If 'short', a x / y pager will be used (ex. 1 / 5)
|
||||
*
|
||||
* default: 'full'
|
||||
* options: 'full', 'short'
|
||||
*/
|
||||
pagerType?: string
|
||||
|
||||
/**
|
||||
* pagerShortSeparator If pagerType: 'short', pager will use this value as the separating character
|
||||
*
|
||||
* default: ' / '
|
||||
* options: string
|
||||
*/
|
||||
pagerShortSeparator?: string
|
||||
|
||||
/**
|
||||
* pagerSelector Element used to populate the populate the pager. By default, the pager is appended to the bx-viewport
|
||||
*
|
||||
* default: ''
|
||||
* options: jQuery selector
|
||||
*/
|
||||
pagerSelector?: string
|
||||
|
||||
/**
|
||||
* pagerCustom Parent element to be used as the pager. Parent element must contain a <a data-slide-index="x"> element for each slide. See example here. Not for use with dynamic carousels.
|
||||
*
|
||||
* default: null
|
||||
* options: jQuery selector
|
||||
*/
|
||||
pagerCustom?: string
|
||||
|
||||
/**
|
||||
* buildPager If supplied, function is called on every slide element, and the returned value is used as the pager item markup.
|
||||
* See examples for detailed implementation
|
||||
*
|
||||
* default: null
|
||||
* options: functoin(slideIndex)
|
||||
*/
|
||||
buildPager?: (slideIndex: number) => void;
|
||||
|
||||
|
||||
/**
|
||||
* controls If true, "Next" / "Prev" controls will be added
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
controls?: boolean
|
||||
|
||||
/**
|
||||
* nextText Text to be used for the "Next" control
|
||||
*
|
||||
* default: 'Next'
|
||||
* options: string
|
||||
*/
|
||||
nextText?: string
|
||||
|
||||
/**
|
||||
* prevText Text to be used for the "Prev" control
|
||||
*
|
||||
* default: 'Prev'
|
||||
* options: string
|
||||
*/
|
||||
prevText?: string
|
||||
|
||||
/**
|
||||
* nextSelector Element used to populate the "Next" control
|
||||
*
|
||||
* default: null
|
||||
* options: jQuery selector
|
||||
*/
|
||||
nextSelector?: string
|
||||
|
||||
/**
|
||||
* prevSelector Element used to populate the "Prev" control
|
||||
*
|
||||
* default: null
|
||||
* options: jQuery selector
|
||||
*/
|
||||
prevSelector?: string
|
||||
|
||||
/**
|
||||
* autoControls If true, "Start" / "Stop" controls will be added
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
autoControls?: boolean
|
||||
|
||||
/**
|
||||
* startText Text to be used for the "Start" control
|
||||
*
|
||||
* default: 'Start'
|
||||
* options: string
|
||||
*/
|
||||
startText?: string
|
||||
|
||||
/**
|
||||
* stopText Text to be used for the "Stop" control
|
||||
*
|
||||
* default: 'Stop'
|
||||
* options: string
|
||||
*/
|
||||
stopText?: string
|
||||
|
||||
/**
|
||||
* autoControlsCombine When slideshow is playing only "Stop" control is displayed and vice-versa
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
autoControlsCombine?: boolean
|
||||
|
||||
/**
|
||||
* autoControlsSelector Element used to populate the auto controls
|
||||
*
|
||||
* default: null
|
||||
* options: jQuery selector
|
||||
*/
|
||||
autoControlsSelector?: string
|
||||
|
||||
/**
|
||||
* keyboardEnabled Allows for keyboard control of visible slider. Keypress ignored if slider not visible.
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
keyboardEnabled?: boolean
|
||||
|
||||
/**
|
||||
* auto Slides will automatically transition
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
auto?: boolean
|
||||
|
||||
/**
|
||||
* stopAutoOnClick Auto will stop on interaction with controls
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
stopAutoOnClick?: boolean
|
||||
|
||||
/**
|
||||
* pause The amount of time (in ms) between each auto transition
|
||||
*
|
||||
* default: 4000
|
||||
* options: integer
|
||||
*/
|
||||
pause?: number
|
||||
|
||||
/**
|
||||
* autoStart Auto show starts playing on load. If false, slideshow will start when the "Start" control is clicked
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
autoStart?: boolean
|
||||
|
||||
/**
|
||||
* autoDirection The direction of auto show slide transitions
|
||||
*
|
||||
* default: 'next'
|
||||
* options: 'next', 'prev'
|
||||
*/
|
||||
autoDirection?: string
|
||||
|
||||
/**
|
||||
* autoHover Auto show will pause when mouse hovers over slider
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
autoHover?: boolean
|
||||
|
||||
/**
|
||||
* autoDelay Time (in ms) auto show should wait before starting
|
||||
*
|
||||
* default: 0
|
||||
* options: integer
|
||||
*/
|
||||
autoDelay?: number
|
||||
|
||||
/**
|
||||
* minSlides The minimum number of slides to be shown. Slides will be sized down if carousel becomes smaller than the original size.
|
||||
*
|
||||
* default: 1
|
||||
* options: integer
|
||||
*/
|
||||
minSlides?: number
|
||||
|
||||
/**
|
||||
* maxSlides The maximum number of slides to be shown. Slides will be sized up if carousel becomes larger than the original size.
|
||||
*
|
||||
* default: 1
|
||||
* options: integer
|
||||
*/
|
||||
maxSlides?: number
|
||||
|
||||
/**
|
||||
* moveSlides The number of slides to move on transition. This value must be >= minSlides, and <= maxSlides. If zero (default), the number of fully-visible slides will be used.
|
||||
*
|
||||
* default: 0
|
||||
* options: integer
|
||||
*/
|
||||
moveSlides?: number
|
||||
|
||||
/**
|
||||
* slideWidth The width of each slide. This setting is required for all horizontal carousels!
|
||||
*
|
||||
* default: 0
|
||||
* options: integer
|
||||
*/
|
||||
slideWidth?: number
|
||||
|
||||
/**
|
||||
* shrinkItems The Carousel will only show whole items and shrink the images to fit the viewport based on maxSlides/MinSlides.
|
||||
*
|
||||
* default: false
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
shrinkItems?: boolean
|
||||
|
||||
/**
|
||||
* ariaLive Adds Aria Live attribute to slider.
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
ariaLive?: boolean
|
||||
|
||||
/**
|
||||
* ariaHidden Adds Aria Hidden attribute to any nonvisible slides.
|
||||
*
|
||||
* default: true
|
||||
* options: boolean (true / false)
|
||||
*/
|
||||
ariaHidden?: boolean
|
||||
|
||||
/**
|
||||
* onSliderLoad Executes immediately after the slider is fully loaded
|
||||
*
|
||||
* default: function(){}
|
||||
* options: function(currentIndex){ // your code here }
|
||||
* arguments:
|
||||
* currentIndex: element index of the current slide
|
||||
*/
|
||||
onSliderLoad?: (currentIndex?: number) => void;
|
||||
|
||||
/**
|
||||
* onSliderResize Executes immediately after the slider is resized
|
||||
*
|
||||
* default: function(){}
|
||||
* options: function(currentIndex){ // your code here }
|
||||
* arguments:
|
||||
* currentIndex: element index of the current slide
|
||||
*/
|
||||
onSliderResize?: (currentIndex?: number) => void;
|
||||
|
||||
/**
|
||||
* onSlideBefore Executes immediately before each slide transition.
|
||||
*
|
||||
* default: function(){}
|
||||
* options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
* arguments:
|
||||
* $slideElement: jQuery element of the destination element
|
||||
* oldIndex: element index of the previous slide (before the transition)
|
||||
* newIndex: element index of the destination slide (after the transition)
|
||||
*/
|
||||
onSlideBefore?: ($slideElement?: JQuery, oldIndex?: number, newIndex?: number) => void;
|
||||
|
||||
/**
|
||||
* onSlideAfter Executes immediately after each slide transition. Function argument is the current slide element (when transition completes).
|
||||
*
|
||||
* default: function(){}
|
||||
* options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
* arguments:
|
||||
* $slideElement: jQuery element of the destination element
|
||||
* oldIndex: element index of the previous slide (before the transition)
|
||||
* newIndex: element index of the destination slide (after the transition)
|
||||
*/
|
||||
onSlideAfter?: ($slideElement?: JQuery, oldIndex?: number, newIndex?: number) => void;
|
||||
|
||||
/**
|
||||
* onSlideNext Executes immediately before each "Next" slide transition. Function argument is the target (next) slide element.
|
||||
*
|
||||
* default: function(){}
|
||||
* options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
* arguments:
|
||||
* $slideElement: jQuery element of the destination element
|
||||
* oldIndex: element index of the previous slide (before the transition)
|
||||
* newIndex: element index of the destination slide (after the transition)
|
||||
*/
|
||||
onSlideNext?: ($slideElement?: JQuery, oldIndex?: number, newIndex?: number) => void;
|
||||
|
||||
/**
|
||||
* onSlidePrev Executes immediately before each "Prev" slide transition. Function argument is the target (prev) slide element.
|
||||
*
|
||||
* default: function(){}
|
||||
* options: function($slideElement, oldIndex, newIndex){ // your code here }
|
||||
* arguments:
|
||||
* $slideElement: jQuery element of the destination element
|
||||
* oldIndex: element index of the previous slide (before the transition)
|
||||
* newIndex: element index of the destination slide (after the transition)
|
||||
*/
|
||||
onSlidePrev?: ($slideElement?: JQuery, oldIndex?: number, newIndex?: number) => void;
|
||||
}
|
||||
|
||||
interface bxSlider {
|
||||
|
||||
/**
|
||||
* goToSlide Performs a slide transition to the supplied slide index (zero-based)
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* slider.goToSlide(3);
|
||||
*/
|
||||
goToSlide: (index: number) => void;
|
||||
|
||||
/**
|
||||
* goToNextSlide Performs a "Next" slide transition
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* slider.goToNextSlide();
|
||||
*/
|
||||
goToNextSlide: () => void;
|
||||
|
||||
/**
|
||||
* goToPrevSlide Performs a "Prev" slide transition
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* slider.goToPrevSlide();
|
||||
*/
|
||||
goToPrevSlide: () => void;
|
||||
|
||||
/**
|
||||
* startAuto Starts the auto show. Provide an argument false to prevent the auto controls from being updated.
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* slider.startAuto();
|
||||
*/
|
||||
startAuto: (preventControlUpdate?: boolean) => void;
|
||||
|
||||
/**
|
||||
* stopAuto Stops the auto show. Provide an argument false to prevent the auto controls from being updated.
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* slider.stopAuto();
|
||||
*/
|
||||
stopAuto: (preventControlUpdate?: boolean) => void;
|
||||
|
||||
/**
|
||||
* getCurrentSlide Returns the current active slide
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* var current = slider.getCurrentSlide();
|
||||
*/
|
||||
getCurrentSlide: () => number;
|
||||
|
||||
/**
|
||||
* getSlideCount Returns the total number of slides in the slider
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* var slideQty = slider.getSlideCount();
|
||||
*/
|
||||
getSlideCount: () => number;
|
||||
|
||||
/**
|
||||
* redrawSlider Redraw the slider. Useful when needing to redraw a hidden slider after it is unhidden.
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* slider.redrawSlider();
|
||||
*/
|
||||
redrawSlider: () => void;
|
||||
|
||||
/**
|
||||
* reloadSlider Reload the slider. Useful when adding slides on the fly. Accepts an optional settings object. See here for an example.
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* slider.reloadSlider();
|
||||
*/
|
||||
reloadSlider: (settings?: bxSliderOptions) => void;
|
||||
|
||||
/**
|
||||
* destroySlider Destroy the slider. This reverts all slider elements back to their original state (before calling the slider).
|
||||
*
|
||||
* example:
|
||||
* slider = $('.bxslider').bxSlider();
|
||||
* slider.destroySlider();
|
||||
*/
|
||||
destroySlider: () => void;
|
||||
}
|
||||
|
||||
interface JQuery {
|
||||
/**
|
||||
* Creates a bxSlider from the current element.
|
||||
* @param options
|
||||
*/
|
||||
bxSlider(options?:bxSliderOptions): bxSlider;
|
||||
}
|
||||
@@ -0,0 +1,44 @@
|
||||
/**
|
||||
* Created by karl on 14/07/15.
|
||||
*/
|
||||
|
||||
/// <reference path="../express/express.d.ts" />
|
||||
/// <reference path="./easy-api-request.d.ts" />
|
||||
|
||||
import express = require('express');
|
||||
import APIRequest = require('easy-api-request');
|
||||
|
||||
APIRequest.create({
|
||||
name: 'testAPI',
|
||||
config: {
|
||||
url: 'http://example.com'
|
||||
}
|
||||
});
|
||||
|
||||
var app = express();
|
||||
|
||||
app.get('/', function (req:any, res:express.Response) {
|
||||
var rMaker = <APIRequest.RequestMaker>req.testAPI;
|
||||
var r = rMaker();
|
||||
r.get('/', function (err, resp) {
|
||||
if(err) {
|
||||
console.error(err);
|
||||
}
|
||||
res.json(err || resp);
|
||||
});
|
||||
});
|
||||
|
||||
app.get('/', function (req:any, res:express.Response) {
|
||||
var rMaker = <APIRequest.RequestMaker>req.testAPI;
|
||||
var r = rMaker();
|
||||
r.get('/')
|
||||
.then(function (resp) {
|
||||
res.json(resp);
|
||||
})
|
||||
.catch(function (err){
|
||||
if(err) {
|
||||
console.error(err);
|
||||
}
|
||||
res.json(err);
|
||||
});
|
||||
});
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user