diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md index 8490556995..c1a30bb057 100644 --- a/CONTRIBUTORS.md +++ b/CONTRIBUTORS.md @@ -16,9 +16,6 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](amplify-deferred/amplify-deferred.d.ts) [AmplifyJs 1.1.0 using JQuery Deferred](http://amplifyjs.com) by [Jonas Eriksson](https://github.com/joeriks), [Laurentiu Stamate](https://github.com/laurentiustamate94) * [:link:](amqp-rpc/amqp-rpc.d.ts) [amqp-rpc](https://github.com/demchenkoe/node-amqp-rpc) by [Wonshik Kim](https://github.com/wokim) * [:link:](amqplib/amqplib.d.ts) [amqplib 0.3.x](https://github.com/squaremo/amqp.node) by [Michael Nahkies](https://github.com/mnahkies) -* [:link:](angular2/angular2.d.ts) [Angular](http://angular.io) by [angular team](https://github.com/angular) -* [:link:](angular2/http.d.ts) [Angular](http://angular.io) by [angular team](https://github.com/angular) -* [:link:](angular2/router.d.ts) [Angular](http://angular.io) by [angular team](https://github.com/angular) * [:link:](ng-file-upload/ng-file-upload.d.ts) [Angular File Upload](https://github.com/danialfarid/ng-file-upload) by [John Reilly](https://github.com/johnnyreilly) * [:link:](angular-file-upload/angular-file-upload.d.ts) [Angular File Upload](https://github.com/danialfarid/ng-file-upload) by [John Reilly](https://github.com/johnnyreilly) * [: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) @@ -38,6 +35,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](angular-toasty/angular-toasty.d.ts) [Angular Toasty](https://github.com/invertase/angular-toasty) by [Dominik Muench](https://github.com/muenchdo) * [:link:](angular-translate/angular-translate.d.ts) [Angular Translate (pascalprecht.translate module)](https://github.com/PascalPrecht/angular-translate) by [Michel Salib](https://github.com/michelsalib) * [:link:](angular-ui-bootstrap/angular-ui-bootstrap.d.ts) [Angular UI Bootstrap](https://github.com/angular-ui/bootstrap) by [Brian Surowiec](https://github.com/xt0rted) +* [:link:](angular2/router.d.ts) [Angular v2.0.0-39](http://angular.io) by [angular team](https://github.com/angular) +* [:link:](angular2/angular2.d.ts) [Angular v2.0.0-39](http://angular.io) by [angular team](https://github.com/angular) +* [:link:](angular2/http.d.ts) [Angular v2.0.0-local_sha.7d5c3eb](http://angular.io) by [angular team](https://github.com/angular) +* [:link:](angular2/test_lib.d.ts) [Angular v2.0.0-local_sha.7d5c3eb](http://angular.io) by [angular team](https://github.com/angular) * [: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) @@ -107,6 +108,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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:](basic-auth/basic-auth.d.ts) [basic-auth](https://github.com/jshttp/basic-auth) by [Clément Bourgeois](https://github.com/moonpyk) * [:link:](batch-stream/batch-stream.d.ts) [batch-stream](https://github.com/segmentio/batch-stream) by [Nicholas Penree](http://github.com/drudge) * [:link:](bcrypt/bcrypt.d.ts) [bcrypt](https://www.npmjs.org/package/bcrypt) by [Peter Harris](https://github.com/codeanimal) * [:link:](better-curry/better-curry.d.ts) [better-curry](https://github.com/pocesar/js-bettercurry) by [Paulo Cesar](https://github.com/pocesar) @@ -130,8 +132,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:](bootstrap.timepicker/bootstrap.timepicker.d.ts) [bootstrap.timepicker](https://github.com/jdewit/bootstrap-timepicker) by [derikwhittaker](https://github.com/derikwhittaker) * [:link:](box2d/box2dweb.d.ts) [bootstrap.timepicker](http://code.google.com/p/box2dweb) by [jbaldwin](https://github.com/jbaldwin) +* [:link:](bootstrap.timepicker/bootstrap.timepicker.d.ts) [bootstrap.timepicker](https://github.com/jdewit/bootstrap-timepicker) by [derikwhittaker](https://github.com/derikwhittaker) * [:link:](bowser/bowser.d.ts) [Bowser 1.x](https://github.com/ded/bowser) by [Paulo Cesar](https://github.com/pocesar) * [:link:](breeze/breeze.d.ts) [Breeze 1.5.x](http://www.breezejs.com) by [Boris Yankov](https://github.com/borisyankov), [IdeaBlade](https://github.com/IdeaBlade/Breeze) * [:link:](browser-harness/browser-harness.d.ts) [Browser Harness](https://github.com/scriby/browser-harness) by [Chris Scribner](https://github.com/scriby) @@ -178,10 +180,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](classnames/classnames.d.ts) [classnames](https://github.com/JedWatson/classnames) by [Dave Keen](http://www.keendevelopment.ch), [Adi Dahiya](https://github.com/adidahiya), [Jason Killian](https://github.com/JKillian) * [:link:](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) -* [:link:](codemirror/searchcursor.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [jacqt](https://github.com/jacqt) * [:link:](codemirror/codemirror-matchbrackets.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [Sixin Li](https://github.com/sixinli) * [:link:](codemirror/codemirror-showhint.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [jacqt](https://github.com/jacqt), [basarat](https://github.com/basarat) +* [:link:](codemirror/codemirror.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [mihailik](https://github.com/mihailik) +* [:link:](codemirror/searchcursor.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [jacqt](https://github.com/jacqt) * [:link:](coffeeify/coffeeify.d.ts) [coffeeify](https://github.com/jnordberg/coffeeify) by [Qubo](https://github.com/tkQubo) * [:link:](colorbrewer/colorbrewer.d.ts) [colorbrewer](https://github.com/jeanlauliac/colorbrewer) by [Matt Traynham](https://github.com/mtraynham) * [: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) @@ -192,6 +194,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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-mongo/connect-mongo.d.ts) [connect-mongo](https://github.com/kcbanner/connect-mongo) by [Mizuki Yamamoto](https://github.com/Syati) * [: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) @@ -204,6 +207,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](cordova-ionic/plugins/keyboard.d.ts) [Cordova Keyboard plugin](https://github.com/driftyco/ionic-plugins-keyboard) by [Hendrik Maus](https://github.com/hendrikmaus) * [:link:](cordova-plugin-app-version/cordova-plugin-app-version.d.ts) [cordova-plugin-app-version](https://github.com/whiteoctober/cordova-plugin-app-version) by [Markus Wagner](https://github.com/Ritzlgrmft) * [:link:](cordova-plugin-ibeacon/cordova-plugin-ibeacon.d.ts) [cordova-plugin-ibeacon](https://github.com/petermetz/cordova-plugin-ibeacon) by [Markus Wagner](https://github.com/Ritzlgrmft) +* [:link:](cordova-plugin-ouralabs/cordova-plugin-ouralabs.d.ts) [cordova-plugin-ouralabs](https://github.com/Justin-Credible/cordova-plugin-ouralabs) by [Justin Unterreiner](https://github.com/Justin-Credible) * [:link:](cordovarduino/cordovarduino.d.ts) [Cordovarduino plugin](https://github.com/stereolux/cordovarduino) by [Hendrik Maus](https://github.com/hendrikmaus) * [:link:](core-decorators/core-decorators.d.ts) [core-decorators.js](https://github.com/jayphelps/core-decorators.js) by [Qubo](https://github.com/tkqubo) * [:link:](core-js/core-js.d.ts) [core-js](https://github.com/zloirock/core-js) by [Ron Buckton](http://github.com/rbuckton) @@ -260,6 +264,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](dotdotdot/dotdotdot.d.ts) [dotdotdot](http://dotdotdot.frebsite.nl) by [Milan Jaros](https://github.com/milanjaros) * [:link:](doublearray/doublearray.d.ts) [doublearray](https://github.com/takuyaa/doublearray) by [MIZUSHIMA Junki](https://github.com/mzsm) * [:link:](dragula/dragula.d.ts) [dragula](http://bevacqua.github.io/dragula) by [Paul Welter](https://github.com/pwelter34) +* [:link:](hystrixjs/hystrixjs.d.ts) [dragula](https://bitbucket.org/igor_sechyn/hystrixjs) by [Igor Sechyn](https://github.com/igorsechyn) * [:link:](drop/drop.d.ts) [Drop](http://github.hubspot.com/drop) by [Adi Dahiya](https://github.com/adidahiya) * [:link:](dropboxjs/dropboxjs.d.ts) [dropbox-js](https://github.com/dropbox/dropbox-js) by [Steve Fenton](https://github.com/Steve-Fenton), [Pedro Casaubon](https://github.com/xperiments) * [:link:](dropzone/dropzone.d.ts) [Dropzone](http://www.dropzonejs.com) by [Natan Vivo](https://github.com/nvivo), [Andy Hawkins](https://github.com/a904guy/,http://a904guy.com/,http://www.bmbsqd.com), [Vasya Aksyonov](https://github.com/outring) @@ -272,8 +277,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](easy-jsend/easy-jsend.d.ts) [easy-jsend](https://github.com/DeadAlready/easy-jsend) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-session/easy-session.d.ts) [easy-session](https://github.com/DeadAlready/node-easy-session) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-table/easy-table.d.ts) [easy-table](https://github.com/eldargab/easy-table) by [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-x-headers/easy-x-headers.d.ts) [easy-x-headers](https://github.com/DeadAlready/easy-x-headers) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-xapi/easy-xapi.d.ts) [easy-xapi](https://github.com/DeadAlready/easy-xapi) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easy-xapi-utils/easy-xapi-utils.d.ts) [easy-xapi-utils](https://github.com/DeadAlready/easy-xapi-utils) by [Karl Düüna](https://github.com/DeadAlready) * [:link:](easystarjs/easystarjs.d.ts) [EasyStar.js](http://easystarjs.com) by [Magnus Gustafsson](https://github.com/borundin) @@ -314,6 +319,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](express-less/express-less.d.ts) [express-less](https://www.npmjs.com/package/express-less) by [xyb](https://github.com/xieyubo) * [:link:](express-myconnection/express-myconnection.d.ts) [express-myconnection](https://www.npmjs.org/package/express-myconnection) by [Michael Ferris](https://github.com/Cellule) * [:link:](express-partials/express-partials.d.ts) [express-partials](https://github.com/publicclass/express-partials) by [jt000](https://github.com/jt000) +* [:link:](express-route-fs/express-route-fs.d.ts) [express-route-fs](https://github.com/kripod/express-route-fs) by [Kristóf Poduszló](https://github.com/kripod) * [:link:](express-session/express-session.d.ts) [express-session](https://www.npmjs.org/package/express-session) by [Hiroki Horiuchi](https://github.com/horiuchi) * [:link:](express-unless/express-unless.d.ts) [express-unless](https://www.npmjs.org/package/express-unless) by [Wonshik Kim](https://github.com/wokim) * [:link:](express-validator/express-validator.d.ts) [express-validator](https://github.com/ctavan/express-validator) by [Nathan Ridley](https://github.com/axefrog), [Jonathan Häberle](http://dreampulse.de) @@ -344,6 +350,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](firebase-client/firebase-client.d.ts) [Firebase Client](https://www.github.com/jpstevens/firebase-client) by [Andrew Breen](https://github.com/fpsscarecrow) * [:link:](firebase/firebase-simplelogin.d.ts) [Firebase Simple Login](https://www.firebase.com/docs/security/simple-login-overview.html) by [Wilker Lucio](http://github.com/wilkerlucio) * [:link:](first-mate/first-mate.d.ts) [first-mate](https://github.com/atom/first-mate) by [Vadim Macagon](https://github.com/enlight) +* [:link:](flake-idgen/flake-idgen.d.ts) [flakge-idgen](https://github.com/T-PWK/flake-idgen) by [Yuce Tekol](http://yuce.me) * [: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) @@ -358,9 +365,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](formidable/formidable.d.ts) [Formidable](https://github.com/felixge/node-formidable) by [Wim Looman](https://github.com/Nemo157) * [:link:](foundation/foundation.d.ts) [Foundation](http://foundation.zurb.com) by [Boris Yankov](https://github.com/borisyankov) * [:link:](fpsmeter/FPSMeter.d.ts) [FPSmeter](http://darsa.in/fpsmeter) by [Aaron Lampros](http://github.com/alampros) -* [:link:](freedom/freedom.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) -* [:link:](freedom/freedom-module-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) * [:link:](freedom/freedom-core-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) +* [:link:](freedom/freedom-module-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) +* [:link:](freedom/freedom.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek) * [:link:](from/from.d.ts) [from](https://github.com/dominictarr/from) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](fs-ext/fs-ext.d.ts) [fs-ext](https://github.com/baudehlo/node-fs-ext) by [Oguzhan Ergin](https://github.com/OguzhanE) * [:link:](fs-extra/fs-extra.d.ts) [fs-extra](https://github.com/jprichardson/node-fs-extra) by [midknight41](https://github.com/midknight41) @@ -409,9 +416,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](gridfs-stream/gridfs-stream.d.ts) [gridfs-stream](https://github.com/aheckmann/gridfs-stream) by [Lior Mualem](https://github.com/liorm) * [:link:](gridstack/gridstack.d.ts) [Gridstack](http://troolee.github.io/gridstack.js) by [Pascal Senn](https://github.com/PascalSenn) * [: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/TweenLite.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/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-cached/gulp-cached.d.ts) [gulp-cached](https://github.com/wearefractal/gulp-cached) by [Thomas Corbière](https://github.com/tomc974) @@ -420,8 +427,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](gulp-coffeeify/gulp-coffeeify.d.ts) [gulp-coffeeify](https://github.com/nariyu/gulp-coffeeify) by [Qubo](https://github.com/tkQubo) * [:link:](gulp-coffeelint/gulp-coffeelint.d.ts) [gulp-coffeelint](https://github.com/janraasch/gulp-coffeelint) by [Qubo](https://github.com/tkQubo) * [: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-rev/gulp-rev.d.ts) [gulp-csso](https://github.com/sindresorhus/gulp-rev) by [Tanguy Krotoff](https://github.com/tkrotoff) * [: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-dtsm/gulp-dtsm.d.ts) [gulp-dtsm](https://github.com/9joneg/gulp-dtsm) by [Aya Morisawa](https://github.com/AyaMorisawa) * [:link:](gulp-espower/gulp-espower.d.ts) [gulp-espower](https://github.com/power-assert-js/gulp-espower) by [Qubo](https://github.com/tkQubo) @@ -493,8 +500,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](humane/humane.d.ts) [Humane](http://wavded.github.com/humane-js) by [jmvrbanac](https://github.com/jmvrbanac) * [:link:](hypertext-application-language/hypertext-application-language.d.ts) [Hypertext Application Language Draft 6](https://tools.ietf.org/html/draft-kelly-json-hal-06) by [Maks3w](https://github.com/maks3w) * [:link:](i18n-node/i18n-node.d.ts) [i18n-node](https://github.com/mashpie/i18n-node) by [Maxime LUCE](https://github.com/SomaticIT) -* [:link:](i18next/i18next.d.ts) [i18next](http://i18next.com) by [Maarten Docter](https://github.com/mdocter) * [:link:](ng-i18next/ng-i18next.d.ts) [i18next](https://github.com/i18next/ng-i18next) by [Cyril Schumacher](https://github.com/cyrilschumacher) +* [:link:](i18next/i18next.d.ts) [i18next](http://i18next.com) by [Maarten Docter](https://github.com/mdocter) * [:link:](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) @@ -524,6 +531,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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:](jade/jade.d.ts) [jade](https://github.com/jadejs/jade) by [Panu Horsmalahti](https://github.com/panuhorsmalahti) * [:link:](jake/jake.d.ts) [jake](https://github.com/mde/jake) by [Kon](http://phyzkit.net) * [:link:](jasmine/jasmine.d.ts) [Jasmine](http://jasmine.github.io) by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb), [David Pärsson](https://github.com/davidparsson) * [:link:](jasmine-data_driven_tests/jasmine-data_driven_tests.d.ts) [Jasmine Data Driven Tests](https://github.com/gburghardt/jasmine-data_driven_tests) by [Anthony MacKinnon](https://github.com/AnthonyMacKinnon) @@ -544,7 +552,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jjve/jjve.d.ts) [JJVE](https://github.com/silas/jjve) by [Wim Looman](https://github.com/Nemo157) * [:link:](joData/joData.d.ts) [joData](https://github.com/mccow002/joData) by [Chris Wrench](https://github.com/cgwrench) * [:link:](johnny-five/johnny-five.d.ts) [johnny-five](https://github.com/rwaldron/johnny-five) by [Toshiya Nakakura](https://github.com/nakakura) -* [:link:](joi/joi.d.ts) [joi](https://github.com/spumko/joi) by [Bart van der Schoor](https://github.com/Bartvds), [Laurence Dougal Myers](https://github.com/laurence-myers) +* [:link:](joi/joi.d.ts) [joi](https://github.com/spumko/joi) by [Bart van der Schoor](https://github.com/Bartvds), [Laurence Dougal Myers](https://github.com/laurence-myers), [Christopher Glantschnig](https://github.com/cglantschnig) * [:link:](jointjs/jointjs.d.ts) [Joint JS](http://www.jointjs.com) by [Aidan Reel](http://github.com/areel), [David Durman](http://github.com/DavidDurman), [Ewout Van Gossum](https://github.com/DenEwout) * [:link:](jqrangeslider/jqrangeslider.d.ts) [jQRangeSlider](http://ghusse.github.com/jQRangeSlider) by [Dániel Tar](https://github.com/qcz) * [:link:](jquery/jquery.d.ts) [jQuery 1.10.x / 2.0.x](http://jquery.com) by [Boris Yankov](https://github.com/borisyankov), [Christian Hoffmeister](https://github.com/choffmeister), [Steve Fenton](https://github.com/Steve-Fenton), [Diullei Gomes](https://github.com/Diullei), [Tass Iliopoulos](https://github.com/tasoili), [Jason Swearingen](https://github.com/jasons-novaleaf), [Sean Hill](https://github.com/seanski), [Guus Goossens](https://github.com/Guuz), [Kelly Summerlin](https://github.com/ksummerlin), [Basarat Ali Syed](https://github.com/basarat), [Nicholas Wolverson](https://github.com/nwolverson), [Derek Cicerone](https://github.com/derekcicerone), [Andrew Gaspar](https://github.com/AndrewGaspar), [James Harrison Fisher](https://github.com/jameshfisher), [Seikichi Kondo](https://github.com/seikichi), [Benjamin Jackman](https://github.com/benjaminjackman), [Poul Sorensen](https://github.com/s093294), [Josh Strobl](https://github.com/JoshStrobl), [John Reilly](https://github.com/johnnyreilly), [Dick van den Brink](https://github.com/DickvdBrink) @@ -553,6 +561,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jquery.colorpicker/jquery.colorpicker.d.ts) [jQuery Colorpicker Plugin](https://github.com/vanderlee/colorpicker) by [Jeffery Grajkowski](https://github.com/pushplay) * [:link:](jquery.contextMenu/jquery.contextMenu.d.ts) [jQuery contextMenu](http://medialize.github.com/jQuery-contextMenu) by [Natan Vivo](https://github.com/nvivo) * [:link:](jquery.cookie/jquery.cookie.d.ts) [jQuery Cookie Plugin](https://github.com/carhartl/jquery-cookie) by [Roy Goode](https://github.com/RoyGoode), [Ben Lorantfy](https://github.com/BenLorantfy) +* [:link:](jquery-cropbox/jquery-cropbox.d.ts) [jQuery cropbox](https://github.com/acornejo/jquery-cropbox) by [Per Kastman](https://github.com/PerKastman) * [:link:](jquery.cycle2/jquery.cycle2.d.ts) [jQuery Cycle2 version (build 20140216)](http://jquery.malsup.com/cycle2) by [Donny Nadolny](https://github.com/dnadolny) * [:link:](jquery.dataTables/jquery.dataTables.d.ts) [JQuery DataTables](http://www.datatables.net) by [Kiarash Ghiaseddin](https://github.com/Silver-Connection/DefinitelyTyped), [Omid Rad](https://github.com/omidkrad), [Armin Sander](https://github.com/pragmatrix) * [:link:](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) @@ -581,6 +590,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jquery-handsontable/jquery-handsontable.d.ts) [jquery-handsontable](http://handsontable.com) by [Ted John](https://github.com/intelorca) * [:link:](jquery.menuaim/jquery.menuaim.d.ts) [jQuery-menu-aim](https://github.com/kamens/jQuery-menu-aim) by [Robert Fonseca-Ensor](http://www.robfe.com) * [:link:](jquery.pjax/jquery.pjax.d.ts) [jquery-pjax](https://github.com/defunkt/jquery-pjax) by [Junle Li](https://github.com/lijunle) +* [:link:](jquery-timeentry/jquery-timeentry.d.ts) [jQuery-timeentry.js](https://github.com/kbwood/timeentry) by [Mark Nadig](https://github.com/marknadig) * [:link:](jquery-urlparam/jquery-urlparam.d.ts) [jquery-urlparam](https://gist.github.com/stpettersens/e1f4478f299b6f4905c1) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [: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.ajaxfile/jquery.ajaxFile.d.ts) [jquery.ajaxfile](https://github.com/fpellet/jquery.ajaxFile) by [Florent PELLET](https://github.com/fpellet) @@ -609,6 +619,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](jquery.scrollTo/jquery.scrollTo.d.ts) [jQuery.scrollTo.js](https://github.com/flesler/jquery.scrollTo) by [Neil Stalker](https://github.com/nestalk) * [:link:](jquery.simulate/jquery.simulate.d.ts) [jquery.simulate.js](https://github.com/jquery/jquery-simulate) by [Derek Cicerone](https://github.com/derekcicerone) * [:link:](jquery.slimScroll/jquery.slimScroll.d.ts) [jQuery.slimScroll](https://github.com/rochal/jQuery-slimScroll) by [Chintan Shah](https://github.com/Promact) +* [:link:](jquery.soap/jquery.soap.d.ts) [jQuery.SOAP](https://github.com/doedje/jquery.soap) by [Roland Greim](https://github.com/tigerxy) * [:link:](jquery.sortElements/jquery.sortElement.d.ts) [jQuery.sortElements](http://james.padolsey.com/javascript/sorting-elements-with-jquery) by [Tim Bureck](https://github.com/tbureck) * [:link:](jquery.superLink/jquery.superLink.d.ts) [jquery.superLink](http://james.padolsey.com/demos/plugins/jQuery/superLink/superlink.jquery.js) by [Blake Niemyjski](https://github.com/niemyjski) * [:link:](jquery.tile/jquery.tile.d.ts) [jquery.tile.js](https://github.com/urin/jquery.tile.js) by [Shunsuke Ohtani](https://github.com/zaneli) @@ -624,6 +635,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](js-cookie/js-cookie.d.ts) [js-cookie](https://github.com/js-cookie/js-cookie) by [Theodore Brown](https://github.com/theodorejb) * [:link:](js-fixtures/fixtures.d.ts) [js-fixtures](https://github.com/badunk/js-fixtures) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid) * [:link:](js-git/js-git.d.ts) [js-git](https://github.com/creationix/js-git) by [Bart van der Schoor](https://github.com/Bartvds) +* [:link:](js-md5/md5.d.ts) [js-md5](https://github.com/emn178/js-md5) by [Roland Greim](https://github.com/tigerxy) * [:link:](js-signals/js-signals.d.ts) [JS-Signals](http://millermedeiros.github.io/js-signals) by [Diullei Gomes](https://github.com/diullei) * [:link:](js-yaml/js-yaml.d.ts) [js-yaml](https://github.com/nodeca/js-yaml) by [Bart van der Schoor](https://github.com/Bartvds) * [:link:](blocks/blocks.d.ts) [jsblocks](http://jsblocks.com) by [Krzysztof Śmigiel](https://github.com/ksmigiel) @@ -712,6 +724,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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), [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:](lodash-decorators/lodash-decorators.d.ts) [lodash-decorators](https://github.com/steelsojka/lodash-decorators) by [Qubo](https://github.com/tkqubo) * [: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) * [:link:](logg/logg.d.ts) [logg](https://github.com/dpup/node-logg) by [Bret Little](https://github.com/blittle) @@ -745,12 +758,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](marionette/marionette.d.ts) [Marionette](https://github.com/marionettejs) by [Zeeshan Hamid](https://github.com/zhamid), [Natan Vivo](https://github.com/nvivo), [Sven Tschui](https://github.com/sventschui) * [:link:](marked/marked.d.ts) [Marked](https://github.com/chjj/marked) by [William Orr](https://github.com/worr) * [:link:](markerclustererplus/markerclustererplus.d.ts) [MarkerClustererPlus for Google Maps V3](http://github.com/mahnunchik/markerclustererplus) by [Mathias Rodriguez](http://github.com/enanox) +* [:link:](markitup/markitup.d.ts) [markitup 1.x](https://github.com/markitup/1.x) by [drillbits](https://github.com/drillbits) * [:link:](maskedinput/maskedinput.d.ts) [Masked Input plugin for jQuery](http://digitalbush.com/projects/masked-input-plugin) by [Lokesh Peta](https://github.com/lokeshpeta) * [:link:](material-ui/material-ui.d.ts) [material-ui](https://github.com/callemall/material-ui) by [Nathan Brown](https://github.com/ngbrown) * [:link:](mathjax/mathjax.d.ts) [MathJax](https://github.com/mathjax/MathJax) by [Roland Zwaga](https://github.com/rolandzwaga) * [:link:](matter-js/matter-js.d.ts) [Matter.js](https://github.com/liabru/matter-js) by [Ivane Gegia](https://twitter.com/ivanegegia) * [:link:](mCustomScrollbar/mCustomScrollbar.d.ts) [mCustomScrollbar](https://github.com/malihu/malihu-custom-scrollbar-plugin) by [Sarah Williams](https://github.com/flurg) * [:link:](memory-cache/memory-cache.d.ts) [memory-cache](http://github.com/ptarjan/node-cache) by [Jeff Goddard](https://github.com/jedigo) +* [:link:](mendixmodelsdk/mendixmodelsdk.d.ts) [mendixmodelsdk](http://www.mendix.com) by [Mendix](https://github.com/mendix) * [:link:](merge-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:](meshblu/meshblu.d.ts) [meshblu.js](https://github.com/octoblu/meshblu-npm) by [Felipe Nipo](https://github.com/fnipo) @@ -787,16 +802,16 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](mobile-detect/mobile-detect.d.ts) [mobile-detect](http://hgoebl.github.io/mobile-detect.js) by [Martin McWhorter](https://github.com/martinmcwhorter) * [:link:](mobservable/mobservable.d.ts) [mobservable](https://mweststrate.github.io/mobservable) by [Michel Weststrate](https://github.com/mweststrate) * [:link:](mobservable-react/mobservable-react.d.ts) [mobservable](https://github.com/mweststrate/mobservable-react) by [Michel Weststrate](https://github.com/mweststrate) -* [:link:](mocha/mocha-node.d.ts) [mocha](http://mochajs.org) by [Vadim Macagon](https://github.com/enlight), [vvakame](https://github.com/vvakame) * [:link:](mocha/mocha.d.ts) [mocha](http://mochajs.org) by [Kazi Manzur Rashid](https://github.com/kazimanzurrashid), [otiai10](https://github.com/otiai10), [jt000](https://github.com/jt000), [Vadim Macagon](https://github.com/enlight) +* [:link:](mocha/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) * [:link:](modernizr/modernizr.d.ts) [Modernizr](http://modernizr.com) by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb) * [: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), [Matt Brooks](https://github.com/EnableSoftware) * [:link:](moment/moment.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya), [Matt Brooks](https://github.com/EnableSoftware) * [:link:](moment-range/moment-range.d.ts) [Moment.js](https://github.com/gf3/moment-range) by [Bart van den Burg](https://github.com/Burgov), [Wilgert Velinga](https://github.com/wilgert) -* [:link:](moment/moment-node.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya), [Matt Brooks](https://github.com/EnableSoftware) * [:link:](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) @@ -845,6 +860,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](node-cache/node-cache.d.ts) [node-cache](https://github.com/tcs-de/nodecache) by [Ilya Mochalov](https://github.com/chrootsu) * [:link:](node-calendar/node-calendar.d.ts) [node-calendar](https://www.npmjs.com/package/node-calendar) by [Luzian Zagadinow](https://github.com/luzianz) * [:link:](config/config.d.ts) [node-config](https://github.com/lorenwest/node-config) by [Roman Korneev](https://github.com/RWander) +* [:link:](node-config-manager/node-config-manager.d.ts) [node-config-manager](https://www.npmjs.com/package/node-config-manager) by [TANAKA Koichi](https://gitnub.com/mugeso) * [:link:](convict/convict.d.ts) [node-convict](https://github.com/mozilla/node-convict) by [Wim Looman](https://github.com/Nemo157) * [:link:](node-ffi/node-ffi.d.ts) [node-ffi](https://github.com/rbranson/node-ffi) by [Paul Loyd](https://github.com/loyd) * [:link:](node-fibers/node-fibers.d.ts) [node-fibers](https://github.com/laverdet/node-fibers) by [Cary Haynie](https://github.com/caryhaynie) @@ -866,7 +882,11 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](node-schedule/node-schedule.d.ts) [node-schedule](https://github.com/tejasmanohar/node-schedule) by [Cyril Schumacher](https://github.com/cyrilschumacher) * [:link:](node-slack/node-slack.d.ts) [node-slack](https://github.com/xoxco/node-slack) by [Qubo](https://github.com/tkQubo) * [:link:](stack-trace/stack-trace.d.ts) [node-stack-trace](https://github.com/felixge/node-stack-trace) by [Exceptionless](https://github.com/exceptionless) +* [:link:](node-uuid/node-uuid-global.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) * [:link:](node-uuid/node-uuid.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) +* [:link:](node-uuid/node-uuid-base.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) +* [:link:](node-uuid/node-uuid-cjs.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay) +* [:link:](node-validator/node-validator.d.ts) [node-validator](https://www.npmjs.com/package/node-validator) by [Ken Gorab](https://github.com/kengorab) * [:link:](node-webkit/node-webkit.d.ts) [node-webkit](https://github.com/rogerwang/node-webkit) by [Pedro Casaubon](https://github.com/xperiments) * [:link:](xml2js/xml2js.d.ts) [node-xml2js](https://github.com/Leonidas-from-XIV/node-xml2js) by [Michel Salib](https://github.com/michelsalib), [Jason McNeil](https://github.com/jasonrm) * [:link:](node/node.d.ts) [Node.js](http://nodejs.org) by [Microsoft TypeScript](http://typescriptlang.org), [DefinitelyTyped](https://github.com/borisyankov/DefinitelyTyped) @@ -884,13 +904,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](nopt/nopt.d.ts) [nopt](https://github.com/npm/nopt) by [jbondc](https://github.com/jbondc) * [:link:](notifyjs/notifyjs.d.ts) [notify.js](https://github.com/alexgibson/notify.js) by [soundTricker](https://github.com/soundTricker) * [: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 [Patrick Davies](https://github.com/bleuarg) * [:link:](wnumb/wnumb.d.ts) [nouislider](https://github.com/leongersen/wnumb) by [Corey Jepperson](https://github.com/acoreyj) +* [:link:](nouislider/nouislider.d.ts) [nouislider](https://github.com/leongersen/noUiSlider) by [Patrick Davies](https://github.com/bleuarg) * [:link:](noVNC/noVNC.d.ts) [noVNC](https://github.com/kanaka/noVNC) by [Ken Smith](https://github.com/smithkl42) * [:link:](npm/npm.d.ts) [npm](https://github.com/npm/npm) by [Maxime LUCE](https://github.com/SomaticIT) * [:link:](nprogress/NProgress.d.ts) [NProgress](https://github.com/rstacruz/nprogress) by [Judah Gabriel Himango](http://debuggerdotbreak.wordpress.com) * [:link:](numbro/numbro.d.ts) [Numbro.js](https://github.com/foretagsplatsen/numbro) by [Vincent Bortone](https://github.com/vbortone) * [:link:](numeraljs/numeraljs.d.ts) [Numeral.js](https://github.com/adamwdraper/Numeral-js) by [Vincent Bortone](https://github.com/vbortone) +* [:link:](obelisk.js/obelisk.js.d.ts) [obelisk.js](https://github.com/nosir/obelisk.js) by [Brian Drupieski](https://github.com/bdrupieski) * [:link:](object-assign/object-assign.d.ts) [object-assign](https://github.com/sindresorhus/object-assign) by [Christopher Brown](https://github.com/chbrown) * [:link:](object-hash/object-hash.d.ts) [object-hash](https://github.com/puleos/object-hash) by [Michael Zabka](https://github.com/misak113) * [:link:](object-path/object-path.d.ts) [objectPath v0.9.x](https://github.com/mariocasciaro/object-path) by [Paulo Cesar](https://github.com/pocesar) @@ -904,6 +925,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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](http://openlayers.org) by [Wouter Goedhart](https://github.com/woutergd) +* [:link:](openpgp/openpgp.d.ts) [openpgpjs](http://openpgpjs.org) by [Guillaume Lacasa](https://blog.lacasa.fr) * [:link:](opn/opn.d.ts) [opn](https://github.com/sindresorhus/opn) by [Shinnosuke Watanabe](https://github.com/shinnn) * [:link:](optimist/optimist.d.ts) [optimist](https://github.com/substack/node-optimist) by [Carlos Ballesteros Velasco](https://github.com/soywiz) * [:link:](orchestrator/orchestrator.d.ts) [Orchestrator](https://github.com/orchestrator/orchestrator) by [Qubo](https://github.com/tkQubo) @@ -919,9 +941,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](pascal-case/pascal-case.d.ts) [pascal-case](https://github.com/blakeembrey/pascal-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) * [:link:](passport/passport.d.ts) [Passport](http://passportjs.org) by [Horiuchi_H](https://github.com/horiuchi) * [:link:](passport-strategy/passport-strategy.d.ts) [Passport Strategy module](https://github.com/jaredhanson/passport-strategy) by [Lior Mualem](https://github.com/liorm) -* [:link:](passport-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-twitter/passport-twitter.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-case/path-case.d.ts) [path-case](https://github.com/blakeembrey/path-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) @@ -942,6 +964,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](phonegap/phonegap.d.ts) [PhoneGap](http://phonegap.com) by [Boris Yankov](https://github.com/borisyankov), [Dick van den Brink](https://github.com/DickvdBrink) * [:link:](phonegap-facebook-plugin/phonegap-facebook-plugin.d.ts) [phonegap-facebook-plugin](https://github.com/Wizcorp/phonegap-facebook-plugin) by [Justin Unterreiner](https://github.com/Justin-Credible) * [:link:](phonegap-plugin-push/phonegap-plugin-push.d.ts) [phonegap-plugin-push](https://github.com/phonegap/phonegap-plugin-push) by [Frederico Galvão](https://github.com/fredgalvao) +* [:link:](urbanairship-cordova/urbanairship-cordova.d.ts) [phonegap-ua-push](https://github.com/urbanairship/phonegap-ua-push) by [Justin Unterreiner](https://github.com/Justin-Credible) * [:link:](photonui/photonui.d.ts) [PhotonUI](https://github.com/wanadev/PhotonUI) by [Florent Poujol](https://github.com/florentpoujol) * [:link:](photoswipe/photoswipe.d.ts) [PhotoSwipe](http://photoswipe.com) by [Xiaohan Zhang](https://github.com/hellochar) * [:link:](physijs/physijs.d.ts) [Physijs](http://chandlerprall.github.io/Physijs) by [Satoru Kimura](https://github.com/gyohk) @@ -1000,6 +1023,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](react/react-global.d.ts) [React (namespace)](http://facebook.github.io/react) by [Asana](https://asana.com), [AssureSign](http://www.assuresign.com), [Microsoft](https://microsoft.com) * [:link:](react-dnd/react-dnd.d.ts) [React DnD](https://github.com/gaearon/react-dnd) by [Asana](https://asana.com) * [:link:](react-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-bootstrap/react-bootstrap.d.ts) [react-bootstrap](https://github.com/react-bootstrap/react-bootstrap) by [Walker Burgin](https://github.com/walkerburgin) * [:link:](react-mixin/react-mixin.d.ts) [react-mixin](https://github.com/brigand/react-mixin) by [Qubo](https://github.com/tkqubo) * [:link:](react-props-decorators/react-props-decorators.d.ts) [react-props-decorators](https://github.com/popkirby/react-props-decorators) by [Qubo](https://github.com/tkqubo) * [:link:](react-redux/react-redux.d.ts) [react-redux](https://github.com/rackt/react-redux) by [Qubo](https://github.com/tkqubo) @@ -1014,6 +1038,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](redux-actions/redux-actions.d.ts) [redux-actions](https://github.com/acdlite/redux-actions) by [Jack Hsu](https://github.com/jaysoo) * [:link:](redux-devtools/redux-devtools.d.ts) [redux-devtools](https://github.com/gaearon/redux-devtools) by [Qubo](https://github.com/tkqubo) * [:link:](redux-logger/redux-logger.d.ts) [redux-logger](https://github.com/fcomb/redux-logger) by [Alexander Rusakov](https://github.com/arusakov) +* [:link:](redux-thunk/redux-thunk.d.ts) [redux-thunk](https://github.com/gaearon/redux-thunk) by [Qubo](https://github.com/tkqubo) * [:link:](ref/ref.d.ts) [ref](https://github.com/TooTallNate/ref) by [Paul Loyd](https://github.com/loyd) * [:link:](ref-array/ref-array.d.ts) [ref-array](https://github.com/TooTallNate/ref-array) by [Paul Loyd](https://github.com/loyd) * [:link:](ref-struct/ref-struct.d.ts) [ref-struct](https://github.com/TooTallNate/ref-struct) by [Paul Loyd](https://github.com/loyd) @@ -1035,6 +1060,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](riotjs/riotjs.d.ts) [riot.js](https://github.com/moot/riotjs) by [vvakame](https://github.com/vvakame) * [:link:](riotcontrol/riotcontrol.d.ts) [RiotControl](https://github.com/jimsparkman/RiotControl) by [Ilya Mochalov](https://github.com/chrootsu) * [:link:](rivets/rivets.d.ts) [rivets](http://rivetsjs.com) by [Trevor Baron](https://github.com/TrevorDev) +* [:link:](rosie/rosie.d.ts) [rosie](https://github.com/rosiejs/rosie) by [Abner Oliveira](https://github.com/abner) * [: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:](rsmq/rsmq.d.ts) [rsmq](http://smrchy.github.io/rsmq) by [Qubo](https://github.com/MugeSo) @@ -1060,11 +1086,13 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](sanitize-filename/sanitize-filename.d.ts) [sanitize-filename](https://github.com/parshap/node-sanitize-filename) by [Wim Looman](https://github.com/Nemo157) * [:link:](sanitize-html/sanitize-html.d.ts) [sanitize-html](https://github.com/punkave/sanitize-html) by [Rogier Schouten](https://github.com/rogierschouten) * [:link:](sanitizer/sanitizer.d.ts) [Sanitizer](https://github.com/theSmaw/Caja-HTML-Sanitizer) by [Dave Taylor](http://davetayls.me) +* [:link:](satnav/satnav.d.ts) [satnav](https://github.com/f5io/satnav-js) by [Christian Holm Diget](https://github.com/DotNetNerd) * [:link:](sax/sax.d.ts) [sax js](https://github.com/isaacs/sax-js) by [Asana](https://asana.com) * [:link:](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:](segment-analytics/segment-analytics.d.ts) [Segment's analytics.js](https://segment.com/docs/libraries/analytics.js) by [Andrew Fong](https://github.com/fongandrew) +* [:link:](analytics-node/analytics-node.d.ts) [Segment's analytics.js for Node.js](https://segment.com/docs/libraries/node) by [Andrew Fong](https://github.com/fongandrew) * [: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), [Yuki Kokubun](https://github.com/Kuniwak) @@ -1104,11 +1132,12 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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:](snake-case/snake-case.d.ts) [snake-case](https://github.com/blakeembrey/snake-case) by [Sam Saint-Pettersen](https://github.com/stpettersens) -* [:link:](snapsvg/snapsvg.d.ts) [Snap-SVG](https://github.com/adobe-webplatform/Snap.svg) by [Lars Klein](https://github.com/lhk) +* [:link:](snapsvg/snapsvg.d.ts) [Snap-SVG](https://github.com/adobe-webplatform/Snap.svg) by [Lars Klein](https://github.com/lhk), [Mattanja Kern](https://github.com/mattanja) * [:link:](socket.io/socket.io.d.ts) [socket.io](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages) * [:link:](socket.io-client/socket.io-client.d.ts) [socket.io-client](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages) * [:link:](socket.io.users/socket.io.users.d.ts) [socket.io.users](https://github.com/nodets/socket.io.users) by [Makis Maropoulos](https://github.com/kataras) * [:link:](sockjs/sockjs.d.ts) [SockJS 0.3.x](https://github.com/sockjs/sockjs-client) by [Emil Ivanov](https://github.com/vladev) +* [:link:](sockjs-client/sockjs-client.d.ts) [sockjs-client](https://github.com/sockjs/sockjs-client) by [Emil Ivanov](https://github.com/vladev), [Alexander Rusakov](https://github.com/arusakov) * [: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) * [:link:](source-map/source-map.d.ts) [source-map](https://github.com/mozilla/source-map) by [Morten Houston Ludvigsen](https://github.com/MortenHoustonLudvigsen) @@ -1125,6 +1154,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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/stampit-org/stampit) by [Vasyl Boroviak](https://github.com/koresar) +* [:link:](stamplay-js-sdk/stamplay-js-sdk.d.ts) [stamplay-js-sdk](https://github.com/Stamplay/stamplay-js-sdk) by [Riderman de Sousa Barbosa](https://github.com/ridermansb) * [:link:](static-eval/static-eval.d.ts) [static-eval](https://github.com/substack/static-eval) by [Ben Liddicott](https://github.com/benliddicott/DefinitelyTyped) * [: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) @@ -1159,7 +1189,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [:link:](swipe/swipe.d.ts) [Swipe](https://github.com/thebird/Swipe) by [Andrey Kurdyumov](https://github.com/kant2002) * [:link:](swiper/swiper.d.ts) [Swiper](https://github.com/nolimits4web/Swiper) by [Sebastián Galiano](https://github.com/sgaliano) * [: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:](switchery/switchery.d.ts) [switchery](https://github.com/abpetkov/switchery) by [Bruno Grieder](https://github.com/bgrieder), [Clayton Lautier](https://github.com/claylaut) * [: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:](tabris/tabris.d.ts) [Tabris.js](http://tabrisjs.com) by [Tabris.js team](http://github.com/eclipsesource/tabris) @@ -1227,14 +1257,15 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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:](ui-grid/ui-grid.d.ts) [ui-grid](http://www.ui-grid.info) by [Ben Tesser](https://github.com/btesser), [Joe Skeen](http://github.com/joeskeen) * [:link:](ui-router-extras/ui-router-extras.d.ts) [UI-Router Extras (ct.ui.router.extras module)](https://github.com/christopherthielen/ui-router-extras) by [Michael Putters](https://github.com/mputters), [Marcel van de Kamp](https://github.com/marcel-k) -* [:link:](umbraco/umbraco-services.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland) -* [:link:](umbraco/umbraco.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland) * [:link:](umbraco/umbraco-resources.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland) +* [:link:](umbraco/umbraco.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland) +* [:link:](umbraco/umbraco-services.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland) * [: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) +* [:link:](undertaker/undertaker.d.ts) [undertaker](https://github.com/phated/undertaker) by [Qubo](https://github.com/tkqubo) * [:link:](jquery.uniform/jquery.uniform.d.ts) [Uniform.js](https://github.com/pixelmatrix/uniform) by [flyfishMT](https://github.com/flyfishMT) * [:link:](uniq/uniq.d.ts) [uniq](https://www.npmjs.com/package/uniq) by [Hans Windhoff](https://github.com/hansrwindhoff) * [:link:](unique-random/unique-random.d.ts) [unique-random](https://github.com/sindresorhus/unique-random) by [Yuki Kokubun](https://github.com/Kuniwak) @@ -1274,12 +1305,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam * [: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:](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:](webcl/webcl.d.ts) [WebCL](https://www.khronos.org/registry/webcl/specs/1.0.0) by [Ralph Brown](https://github.com/NCARalph) * [:link:](webcola/webcola.d.ts) [webcola](https://github.com/tgdwyer/WebCola) by [Qinfeng Chen](https://github.com/qinfchen) * [:link:](webcomponents.js/webcomponents.js.d.ts) [webcomponents.js](https://github.com/webcomponents/webcomponentsjs) by [Adi Dahiya](https://github.com/adidahiya) * [:link:](webcrypto/WebCrypto.d.ts) [WebCrypto](http://www.w3.org/TR/WebCryptoAPI) by [Lucas Dixon](https://github.com/iislucas) * [:link:](webgl-ext/webgl-ext.d.ts) [WebGL Extensions](http://webgl.org) by [Arthur Langereis](https://github.com/zenmumbler) * [:link:](webix/webix.d.ts) [Webix UI](http://webix.com) by [Maksim Kozhukh](http://github.com/mkozhukh) * [:link:](webpack/webpack.d.ts) [webpack](https://github.com/webpack/webpack) by [Qubo](https://github.com/tkqubo) +* [:link:](webpack/webpack-env.d.ts) [webpack (module API)](https://github.com/webpack/webpack) by [use-strict](https://github.com/use-strict) * [: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) diff --git a/autobahn/autobahn.d.ts b/autobahn/autobahn.d.ts index ceaf212307..6debcca7c9 100644 --- a/autobahn/autobahn.d.ts +++ b/autobahn/autobahn.d.ts @@ -4,197 +4,266 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// +/// 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(procedure: string, args?: any[], kwargs?: any, options?: ICallOptions): When.Promise; + call(procedure: string, args?: any[], kwargs?: any, options?: ICallOptions): When.Promise; - publish(topic: string, args?: any[], kwargs?: any, options?: IPublishOptions): When.Promise; + publish(topic: string, args?: any[], kwargs?: any, options?: IPublishOptions): When.Promise; - subscribe(topic: string, handler: SubscribeHandler, options?: ISubscribeOptions): When.Promise; + subscribe(topic: string, handler: SubscribeHandler, options?: ISubscribeOptions): When.Promise; - register(procedure: string, endpoint: RegisterEndpoint, options?: IRegisterOptions): When.Promise; + register(procedure: string, endpoint: RegisterEndpoint, options?: IRegisterOptions): When.Promise; - unsubscribe(subscription: ISubscription): When.Promise; + unsubscribe(subscription: ISubscription): When.Promise; - unregister(registration: IRegistration): When.Promise; + unregister(registration: IRegistration): When.Promise; - 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; - } + class Invocation implements IInvocation { + constructor(caller?: number, progress?: boolean, procedure?: string); - interface IResult { - args: any[]; - kwargs: any; - } + procedure: string; + } - interface IError { - error: string; - args: any[]; - kwargs: any; - } + interface IEvent { + publication: number; + publisher?: number; + topic: string; + } - type SubscribeHandler = (args?: any[], kwargs?: any, details?: IEvent) => void; + class Event implements IEvent { + constructor(publication?: number, publisher?: string, topic?: string); - interface ISubscription { - topic: string; - handler: SubscribeHandler; - options: ISubscribeOptions; - session: Session; - id: number; - active: boolean; - unsubscribe(): When.Promise; - } + publication: number; + topic: string; + } - type RegisterEndpoint = (args?: any[], kwargs?: any, details?: IInvocation) => void; + interface IResult { + args: any[]; + kwargs: any; + } - interface IRegistration { - procedure: string; - endpoint: RegisterEndpoint; - options: IRegisterOptions; - session: Session; - id: number; - active: boolean; - unregister(): When.Promise; - } + class Result implements IResult { + constructor(args?: any[], kwargs?: any); - interface IPublication { - id: number; - } + args: any[]; + kwargs: any; + } - interface ICallOptions { - timeout?: number; - receive_progress?: boolean; - disclose_me?: boolean; - } + interface IError { + error: string; + args: any[]; + kwargs: any; + } - interface IPublishOptions { - exclude?: number[]; - eligible?: number[]; - disclose_me? : Boolean; - } + class Error implements IError { + constructor(error?: string, args?: any[], kwargs?: any); - interface ISubscribeOptions { - match? : string; - } + error: string; + args: any[]; + kwargs: any; + } - interface IRegisterOptions { - disclose_caller?: boolean; - } + type SubscribeHandler = (args?: any[], kwargs?: any, details?: IEvent) => void; - export class Connection { - constructor(options?: IConnectionOptions); + interface ISubscription { + topic: string; + handler: SubscribeHandler; + options: ISubscribeOptions; + session: Session; + id: number; + active: boolean; + unsubscribe(): When.Promise; + } - open(): void; + class Subscription implements ISubscription { + constructor(topic? : string, handler?: SubscribeHandler, options?: ISubscribeOptions, session?: Session, id?: number); - close(reason: string, message: string): void; + handler: SubscribeHandler; - onopen: (session: Session, details: any) => void; - onclose: (reason: string, details: any) => boolean; - } + unsubscribe(): When.Promise; - interface ITransportDefinition { - url?: string; - protocols?: string[]; - type: string; - } + topic: string; + options: ISubscribeOptions; + session: Session; + id: number; + active: boolean; + } - type DeferFactory = () => any; + type RegisterEndpoint = (args?: any[], kwargs?: any, details?: IInvocation) => void; - type OnChallengeHandler = (session: Session, method: string, extra: any) => When.Promise; + interface IRegistration { + procedure: string; + endpoint: RegisterEndpoint; + options: IRegisterOptions; + session: Session; + id: number; + active: boolean; + unregister(): When.Promise; + } - 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; - } + class Registration implements IRegistration { + constructor(procedure?: string, endpoint?: RegisterEndpoint, options?: IRegisterOptions, session?: Session, id?: number); - interface ICloseEventDetails { - wasClean: boolean; - reason: string; - code: number; - } + endpoint: RegisterEndpoint; - interface ITransport { - onopen: () => void; - onmessage: (message: any[]) => void; - onclose: (details: ICloseEventDetails) => void; + unregister(): When.Promise; - send(message: any[]): void; - close(errorCode: number, reason?: string): void; - } + procedure: string; + options: IRegisterOptions; + session: Session; + id: number; + active: boolean; + } - interface ITransportFactory { - //constructor(options: any); - type: string; - create(): ITransport; - } + interface IPublication { + id: number; + } - interface ITransports { - register(name: string, factory: any): void; - isRegistered(name: string): boolean; - get(name: string): any; - list(): any[]; - } + class Publication implements IPublication { + constructor(id: number); - interface ILog { - debug(...args: any[]): void; - } + id: number; + } - interface IUtil { - assert(condition: boolean, message: string): void; - } + interface ICallOptions { + timeout?: number; + receive_progress?: boolean; + disclose_me?: boolean; + } - var util: IUtil; - var log: ILog; - var transports: ITransports; + interface IPublishOptions { + exclude?: number[]; + eligible?: number[]; + disclose_me?: Boolean; + } + + interface ISubscribeOptions { + match?: string; + } + + interface IRegisterOptions { + disclose_caller?: boolean; + } + + export class Connection { + constructor(options?: IConnectionOptions); + + open(): void; + + close(reason: string, message: string): void; + + onopen: (session: Session, details: any) => void; + onclose: (reason: string, details: any) => boolean; + } + + interface ITransportDefinition { + url?: string; + protocols?: string[]; + type: string; + } + + type DeferFactory = () => JQueryPromise; + + type OnChallengeHandler = (session: Session, method: string, extra: any) => When.Promise; + + 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 ITransport { + onopen: () => void; + onmessage: (message: any[]) => void; + onclose: (details: ICloseEventDetails) => void; + + send(message: any[]): void; + close(errorCode: number, reason?: string): void; + } + + 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(): string[]; + } + + interface ILog { + debug(...args: any[]): void; + } + + interface IUtil { + assert(condition: boolean, message: string): void; + } + + interface IAuthCra { + derive_key(secret: string, salt: string, iterations: number, keylen: number): string; + sign(key: string, challenge: string): string; + } + + var util: IUtil; + var log: ILog; + var transports: ITransports; + var auth_cra: IAuthCra; } declare module "autobahn" { - export = autobahn; + export = autobahn; } diff --git a/basic-auth/basic-auth.d.ts b/basic-auth/basic-auth.d.ts index e039989971..e25f217e4e 100644 --- a/basic-auth/basic-auth.d.ts +++ b/basic-auth/basic-auth.d.ts @@ -5,15 +5,15 @@ /// -declare module BasicAuth { - export interface BasicAuthResult { - name:string; - pass:string; - } -} - declare module "basic-auth" { - function auth(req: Express.Request): BasicAuth.BasicAuthResult; + function auth(req: Express.Request): auth.BasicAuthResult; + + namespace auth { + interface BasicAuthResult { + name: string; + pass: string; + } + } export = auth; } diff --git a/gulp-sass/gulp-sass-tests.ts b/gulp-sass/gulp-sass-tests.ts index 429df6572d..b1aeef4b4f 100644 --- a/gulp-sass/gulp-sass-tests.ts +++ b/gulp-sass/gulp-sass-tests.ts @@ -12,5 +12,6 @@ gulp.task('sass', function () { gulp.task('sass', function () { gulp.src('./scss/*.scss') .pipe(sass({errLogToConsole: true})) + .pipe(sass.sync()) .pipe(gulp.dest('./css')); }); \ No newline at end of file diff --git a/gulp-sass/gulp-sass.d.ts b/gulp-sass/gulp-sass.d.ts index 781df0af75..b133461dc7 100644 --- a/gulp-sass/gulp-sass.d.ts +++ b/gulp-sass/gulp-sass.d.ts @@ -45,6 +45,8 @@ declare module "gulp-sass" { interface Sass { (opts?: Options): NodeJS.ReadWriteStream; + logError(error?: string): void; + sync(options?: Options): NodeJS.ReadWriteStream; } var _tmp: Sass; diff --git a/lodash/lodash-tests.ts b/lodash/lodash-tests.ts index 8be3a0ef09..db15ebc4ab 100644 --- a/lodash/lodash-tests.ts +++ b/lodash/lodash-tests.ts @@ -240,6 +240,42 @@ module TestDropRight { result = _(list).dropRight(42).value(); } +// _.dropWhile +module TestDropWhile { + let array: TResult[]; + let list: _.List; + let predicateFn: (value: TResult, index: number, collection: _.List) => boolean; + let result: TResult[]; + + result = _.dropWhile(array); + result = _.dropWhile(array, predicateFn); + result = _.dropWhile(array, predicateFn, any); + result = _.dropWhile(array, '') + result = _.dropWhile(array, '', any); + result = _.dropWhile<{a: number;}, TResult>(array, {a: 42}); + + result = _.dropWhile(list); + result = _.dropWhile(list, predicateFn); + result = _.dropWhile(list, predicateFn, any); + result = _.dropWhile(list, '') + result = _.dropWhile(list, '', any); + result = _.dropWhile<{a: number;}, TResult>(list, {a: 42}); + + result = _(array).dropWhile().value(); + result = _(array).dropWhile(predicateFn).value(); + result = _(array).dropWhile(predicateFn, any).value(); + result = _(array).dropWhile('').value(); + result = _(array).dropWhile('', any).value(); + result = _(array).dropWhile<{a: number;}>({a: 42}).value(); + + result = _(list).dropWhile().value(); + result = _(list).dropWhile(predicateFn).value(); + result = _(list).dropWhile(predicateFn, any).value(); + result = _(list).dropWhile('').value(); + result = _(list).dropWhile('', any).value(); + result = _(list).dropWhile<{a: number;}, TResult>({a: 42}).value(); +} + result = _.rest([1, 2, 3]); result = _.rest([1, 2, 3], 2); result = _.rest([1, 2, 3], (num) => num < 3) @@ -344,16 +380,6 @@ module TestFirst { result = _(list).first(); } -result = _.takeWhile([1, 2, 3], (num) => num < 3); -result = _.takeWhile(foodsOrganic, 'organic'); -result = _.takeWhile(foodsType, { 'type': 'fruit' }); - -result = _([1, 2, 3]).takeWhile(function (num) { - return num < 3; -}).value(); -result = _(foodsType).takeWhile('organic').value(); -result = _(foodsType).takeWhile({ 'type': 'fruit' }).value(); - result = >_.flatten([[1, 2], [3, 4]]); result = >_.flatten([[1, 2], [3, 4], 5, 6]); result = >>>_.flatten([1, [2], [3, [[4]]]]); @@ -648,6 +674,42 @@ module TestTakeRightWhile { result = _(list).takeRightWhile<{a: number;}, TResult>({a: 42}).value(); } +// _.takeWhile +module TestTakeWhile { + let array: TResult[]; + let list: _.List; + let predicateFn: (value: TResult, index: number, collection: _.List) => boolean; + let result: TResult[]; + + result = _.takeWhile(array); + result = _.takeWhile(array, predicateFn); + result = _.takeWhile(array, predicateFn, any); + result = _.takeWhile(array, '') + result = _.takeWhile(array, '', any); + result = _.takeWhile<{a: number;}, TResult>(array, {a: 42}); + + result = _.takeWhile(list); + result = _.takeWhile(list, predicateFn); + result = _.takeWhile(list, predicateFn, any); + result = _.takeWhile(list, '') + result = _.takeWhile(list, '', any); + result = _.takeWhile<{a: number;}, TResult>(list, {a: 42}); + + result = _(array).takeWhile().value(); + result = _(array).takeWhile(predicateFn).value(); + result = _(array).takeWhile(predicateFn, any).value(); + result = _(array).takeWhile('').value(); + result = _(array).takeWhile('', any).value(); + result = _(array).takeWhile<{a: number;}>({a: 42}).value(); + + result = _(list).takeWhile().value(); + result = _(list).takeWhile(predicateFn).value(); + result = _(list).takeWhile(predicateFn, any).value(); + result = _(list).takeWhile('').value(); + result = _(list).takeWhile('', any).value(); + result = _(list).takeWhile<{a: number;}, TResult>({a: 42}).value(); +} + result = _.union([1, 2, 3], [101, 2, 1, 10], [2, 1]); result = _([1, 2, 3]).union([101, 2, 1, 10], [2, 1]).value(); diff --git a/lodash/lodash.d.ts b/lodash/lodash.d.ts index e18e5f6b37..5a3e0df9e9 100644 --- a/lodash/lodash.d.ts +++ b/lodash/lodash.d.ts @@ -457,6 +457,100 @@ declare module _ { dropRight(n?: number): LoDashArrayWrapper; } + //_.dropWhile + interface LoDashStatic { + /** + * Creates a slice of array excluding elements dropped from the beginning. Elements are dropped until predicate + * returns falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array). + * + * If a property name is provided for predicate the created _.property style callback returns the property + * value of the given element. + * + * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for + * elements that have a matching property value, else false. + * + * If an object is provided for predicate the created _.matches style callback returns true for elements that + * have the properties of the given object, else false. + * + * @param array The array to query. + * @param predicate The function invoked per iteration. + * @param thisArg The this binding of predicate. + * @return Returns the slice of array. + */ + dropWhile( + array: List, + predicate?: ListIterator, + thisArg?: any + ): TValue[]; + + /** + * @see _.dropWhile + */ + dropWhile( + array: List, + predicate?: string, + thisArg?: any + ): TValue[]; + + /** + * @see _.dropWhile + */ + dropWhile( + array: List, + predicate?: TWhere + ): TValue[]; + } + + interface LoDashArrayWrapper { + /** + * @see _.dropWhile + */ + dropWhile( + predicate?: ListIterator, + thisArg?: any + ): LoDashArrayWrapper; + + /** + * @see _.dropWhile + */ + dropWhile( + predicate?: string, + thisArg?: any + ): LoDashArrayWrapper; + + /** + * @see _.dropWhile + */ + dropWhile( + predicate?: TWhere + ): LoDashArrayWrapper; + } + + interface LoDashObjectWrapper { + /** + * @see _.dropWhile + */ + dropWhile( + predicate?: ListIterator, + thisArg?: any + ): LoDashArrayWrapper; + + /** + * @see _.dropWhile + */ + dropWhile( + predicate?: string, + thisArg?: any + ): LoDashArrayWrapper; + + /** + * @see _.dropWhile + */ + dropWhile( + predicate?: TWhere + ): LoDashArrayWrapper; + } + //_.findIndex interface LoDashStatic { /** @@ -671,66 +765,6 @@ declare module _ { first(): TResult; } - interface LoDashStatic { - /** - * Takes the first items from an array or list based on a predicate - * @param array The array or list of items on which the result set will be based - * @param predicate A predicate function to determine whether a value will be taken. Optional; defaults to identity. - * @param [thisArg] The this binding of predicate. - */ - takeWhile( - array: (Array|List), - predicate?: ListIterator, - thisArg?: any - ): T[]; - - /** - * Takes the first items from an array or list based on a predicate - * @param array The array or list of items on which the result set will be based - * @param pluckValue Uses a _.property style callback to return the property value of the given element - */ - takeWhile( - array: (Array|List), - pluckValue: string - ): any[]; - - /** - * Takes the first items from an array or list based on a predicate - * @param array The array or list of items on which the result set will be based - * @param whereValue Uses a _.matches style callback to return the first elements that match the given value - */ - takeWhile( - array: (Array|List), - whereValue: W - ): T[]; - } - - interface LoDashArrayWrapper { - /** - * Takes the first items based on a predicate - * @param predicate The function called per element. - * @param [thisArg] The this binding of callback. - **/ - takeWhile( - predicate: ListIterator, - thisArg?: any): LoDashArrayWrapper; - - /** - * Takes the first items based on a predicate - * @param pluckValue Uses a _.property style callback to return the property value of the given element - **/ - takeWhile( - pluckValue: string): LoDashArrayWrapper; - - /** - * Takes the first items based on a predicate - * @param whereValue Uses a _.matches style callback to return the first elements that match the given value - **/ - takeWhile( - whereValue: W): LoDashArrayWrapper; - - } - interface MaybeNestedList extends List> { } interface RecursiveList extends List> { } @@ -1531,6 +1565,100 @@ declare module _ { ): LoDashArrayWrapper; } + //_.takeWhile + interface LoDashStatic { + /** + * Creates a slice of array with elements taken from the beginning. Elements are taken until predicate returns + * falsey. The predicate is bound to thisArg and invoked with three arguments: (value, index, array). + * + * If a property name is provided for predicate the created _.property style callback returns the property + * value of the given element. + * + * If a value is also provided for thisArg the created _.matchesProperty style callback returns true for + * elements that have a matching property value, else false. + * + * If an object is provided for predicate the created _.matches style callback returns true for elements that + * have the properties of the given object, else false. + * + * @param array The array to query. + * @param predicate The function invoked per iteration. + * @param thisArg The this binding of predicate. + * @return Returns the slice of array. + */ + takeWhile( + array: List, + predicate?: ListIterator, + thisArg?: any + ): TValue[]; + + /** + * @see _.takeWhile + */ + takeWhile( + array: List, + predicate?: string, + thisArg?: any + ): TValue[]; + + /** + * @see _.takeWhile + */ + takeWhile( + array: List, + predicate?: TWhere + ): TValue[]; + } + + interface LoDashArrayWrapper { + /** + * @see _.takeWhile + */ + takeWhile( + predicate?: ListIterator, + thisArg?: any + ): LoDashArrayWrapper; + + /** + * @see _.takeWhile + */ + takeWhile( + predicate?: string, + thisArg?: any + ): LoDashArrayWrapper; + + /** + * @see _.takeWhile + */ + takeWhile( + predicate?: TWhere + ): LoDashArrayWrapper; + } + + interface LoDashObjectWrapper { + /** + * @see _.takeWhile + */ + takeWhile( + predicate?: ListIterator, + thisArg?: any + ): LoDashArrayWrapper; + + /** + * @see _.takeWhile + */ + takeWhile( + predicate?: string, + thisArg?: any + ): LoDashArrayWrapper; + + /** + * @see _.takeWhile + */ + takeWhile( + predicate?: TWhere + ): LoDashArrayWrapper; + } + //_.union interface LoDashStatic { /** diff --git a/node-uuid/README.md b/node-uuid/README.md new file mode 100644 index 0000000000..234d608e8d --- /dev/null +++ b/node-uuid/README.md @@ -0,0 +1,8 @@ +This folder contains definitions for the node-uuid library in 3 flavors: + +- node-uuid.d.ts + - for use in node environment (default) +- node-uuid-global.d.ts + - for use in browser environment as a global variable +- node-uuid-cjs.d.ts + - for use in browser environment as a CommonJS module (using a loader such as webpack) \ No newline at end of file diff --git a/node-uuid/node-uuid-base.d.ts b/node-uuid/node-uuid-base.d.ts new file mode 100644 index 0000000000..255bb6b334 --- /dev/null +++ b/node-uuid/node-uuid-base.d.ts @@ -0,0 +1,52 @@ +// Type definitions for node-uuid.js +// Project: https://github.com/broofa/node-uuid +// Definitions by: Jeff May +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/** Common definitions for all environments */ +declare namespace __NodeUUID { + interface UUIDOptions { + + /** + * Node id as Array of 6 bytes (per 4.1.6). + * Default: Randomly generated ID. See note 1. + */ + node?: any[]; + + /** + * (Number between 0 - 0x3fff) RFC clock sequence. + * Default: An internally maintained clockseq is used. + */ + clockseq?: number; + + /** + * (Number | Date) Time in milliseconds since unix Epoch. + * Default: The current time is used. + */ + msecs?: number|Date; + + /** + * (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if msecs is unspecified. + * Default: internal uuid counter is used, as per 4.2.1.2. + */ + nsecs?: number; + } + + interface UUID { + v1(options?: UUIDOptions): string; + v1(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + + v2(options?: UUIDOptions): string; + v2(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + + v3(options?: UUIDOptions): string; + v3(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + + v4(options?: UUIDOptions): string; + v4(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + + parse(id: string, buffer?: number[], offset?: number): number[]; + + unparse(buffer: number[], offset?: number): string; + } +} diff --git a/node-uuid/node-uuid-cjs-tests.ts b/node-uuid/node-uuid-cjs-tests.ts new file mode 100644 index 0000000000..197e4b384f --- /dev/null +++ b/node-uuid/node-uuid-cjs-tests.ts @@ -0,0 +1,29 @@ +/// + +import nodeUuid = require('node-uuid'); + +var uid1: string = nodeUuid.v1(); +var uid2: string = nodeUuid.v2(); +var uid3: string = nodeUuid.v3(); +var uid4: string = nodeUuid.v4(); + +var options: __NodeUUID.UUIDOptions = { + node: [], + clockseq: 2, + nsecs: 3, + msecs: new Date() +}; + +var padding: number[] = [0, 1, 2]; + +var offset: number = 15; + +var buf : number[] = []; + +nodeUuid.parse(uid4, buf, offset); +nodeUuid.unparse(buf, offset); + +var uid21: number[] = nodeUuid.v1(options, padding, offset); +var uid22: number[] = nodeUuid.v2(options, padding, offset); +var uid23: number[] = nodeUuid.v3(options, padding, offset); +var uid24: number[] = nodeUuid.v4(options, padding, offset); diff --git a/node-uuid/node-uuid-cjs.d.ts b/node-uuid/node-uuid-cjs.d.ts new file mode 100644 index 0000000000..1c765abd76 --- /dev/null +++ b/node-uuid/node-uuid-cjs.d.ts @@ -0,0 +1,15 @@ +// Type definitions for node-uuid.js +// Project: https://github.com/broofa/node-uuid +// Definitions by: Jeff May +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +/** + * Expose as CommonJS module + * For use in node environment or browser environment (using webpack or other module loaders) + */ +declare module "node-uuid" { + var uuid: __NodeUUID.UUID; + export = uuid; +} \ No newline at end of file diff --git a/node-uuid/node-uuid-global-tests.ts b/node-uuid/node-uuid-global-tests.ts new file mode 100644 index 0000000000..ad98519aa0 --- /dev/null +++ b/node-uuid/node-uuid-global-tests.ts @@ -0,0 +1,27 @@ +/// + +var uid1: string = uuid.v1(); +var uid2: string = uuid.v2(); +var uid3: string = uuid.v3(); +var uid4: string = uuid.v4(); + +var options: __NodeUUID.UUIDOptions = { + node: [], + clockseq: 2, + nsecs: 3, + msecs: new Date() +}; + +var padding: number[] = [0, 1, 2]; + +var offset: number = 15; + +var buf : number[] = []; + +uuid.parse(uid4, buf, offset); +uuid.unparse(buf, offset); + +var uid21: number[] = uuid.v1(options, padding, offset); +var uid22: number[] = uuid.v2(options, padding, offset); +var uid23: number[] = uuid.v3(options, padding, offset); +var uid24: number[] = uuid.v4(options, padding, offset); diff --git a/node-uuid/node-uuid-global.d.ts b/node-uuid/node-uuid-global.d.ts new file mode 100644 index 0000000000..908f01dc97 --- /dev/null +++ b/node-uuid/node-uuid-global.d.ts @@ -0,0 +1,9 @@ +// Type definitions for node-uuid.js +// Project: https://github.com/broofa/node-uuid +// Definitions by: Jeff May +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +/** Expose as global variable */ +declare var uuid: __NodeUUID.UUID; diff --git a/node-uuid/node-uuid-tests.ts b/node-uuid/node-uuid-tests.ts index e922c04de3..0c9c31109f 100644 --- a/node-uuid/node-uuid-tests.ts +++ b/node-uuid/node-uuid-tests.ts @@ -1,36 +1,36 @@ /// -import uuid = require('node-uuid'); +import nodeUuid = require('node-uuid'); -var uid1: string = uuid.v1() -var uid2: string = uuid.v2() -var uid3: string = uuid.v3() -var uid4: string = uuid.v4() +var uid1: string = nodeUuid.v1(); +var uid2: string = nodeUuid.v2(); +var uid3: string = nodeUuid.v3(); +var uid4: string = nodeUuid.v4(); -var options: UUIDOptions = { +var options: __NodeUUID.UUIDOptions = { node: [], clockseq: 2, nsecs: 3, msecs: new Date() -} +}; -var padding: number[] = [0, 1, 2] +var padding: number[] = [0, 1, 2]; -var offset: number = 15 +var offset: number = 15; -var buf : number[] = [] +var buf : number[] = []; -uuid.parse(uid4, buf, offset) -uuid.unparse(buf, offset) +nodeUuid.parse(uid4, buf, offset); +nodeUuid.unparse(buf, offset); -var uid21: number[] = uuid.v1(options, padding, offset) -var uid22: number[] = uuid.v2(options, padding, offset) -var uid23: number[] = uuid.v3(options, padding, offset) -var uid24: number[] = uuid.v4(options, padding, offset) +var uid21: number[] = nodeUuid.v1(options, padding, offset); +var uid22: number[] = nodeUuid.v2(options, padding, offset); +var uid23: number[] = nodeUuid.v3(options, padding, offset); +var uid24: number[] = nodeUuid.v4(options, padding, offset); var buffer: Buffer; -var uid31: Buffer = uuid.v1(options, buffer, offset) -var uid32: Buffer = uuid.v2(options, buffer, offset) -var uid33: Buffer = uuid.v3(options, buffer, offset) -var uid34: Buffer = uuid.v4(options, buffer, offset) +var uid31: Buffer = nodeUuid.v1(options, buffer, offset); +var uid32: Buffer = nodeUuid.v2(options, buffer, offset); +var uid33: Buffer = nodeUuid.v3(options, buffer, offset); +var uid34: Buffer = nodeUuid.v4(options, buffer, offset); diff --git a/node-uuid/node-uuid.d.ts b/node-uuid/node-uuid.d.ts index aec39084f8..bb72708097 100644 --- a/node-uuid/node-uuid.d.ts +++ b/node-uuid/node-uuid.d.ts @@ -4,60 +4,41 @@ // Definitions: https://github.com/borisyankov/DefinitelyTyped /// +/// +/// -interface UUIDOptions { - +/** + * Definitions for use in node environment + * + * !! For browser enviroments, use node-uuid-global or node-uuid-cjs + */ +declare module __NodeUUID { /** - * Node id as Array of 6 bytes (per 4.1.6). - * Default: Randomly generated ID. See note 1. + * Overloads for node environment + * We need to duplicate some declarations because + * interface merging doesn't work with overloads */ - node?: any[] + interface UUID { + v1(options?: UUIDOptions): string; + v1(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + v1(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer; - /** - * (Number between 0 - 0x3fff) RFC clock sequence. - * Default: An internally maintained clockseq is used. - */ - clockseq?: number + v2(options?: UUIDOptions): string; + v2(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + v2(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer; - /** - * (Number | Date) Time in milliseconds since unix Epoch. - * Default: The current time is used. - */ - msecs?: number|Date + v3(options?: UUIDOptions): string; + v3(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + v3(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer; - /** - * (Number between 0-9999) additional time, in 100-nanosecond units. Ignored if msecs is unspecified. - * Default: internal uuid counter is used, as per 4.2.1.2. - */ - nsecs?: number -} + v4(options?: UUIDOptions): string; + v4(options?: UUIDOptions, buffer?: number[], offset?: number): number[]; + v4(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer; -interface UUID { - v1(options?: UUIDOptions): string - v1(options?: UUIDOptions, buffer?: number[], offset?: number): number[] - v1(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer + parse(id: string, buffer?: number[], offset?: number): number[]; + parse(id: string, buffer?: Buffer, offset?: number): Buffer; - v2(options?: UUIDOptions): string - v2(options?: UUIDOptions, buffer?: number[], offset?: number): number[] - v2(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer - - v3(options?: UUIDOptions): string - v3(options?: UUIDOptions, buffer?: number[], offset?: number): number[] - v3(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer - - v4(options?: UUIDOptions): string - v4(options?: UUIDOptions, buffer?: number[], offset?: number): number[] - v4(options?: UUIDOptions, buffer?: Buffer, offset?: number): Buffer - - parse(id: string, buffer?: number[], offset?: number): number[] - parse(id: string, buffer?: Buffer, offset?: number): Buffer - - unparse(buffer: number[], offset?: number): string - unparse(buffer: Buffer, offset?: number): string -} - -declare var uuid: UUID; - -declare module "node-uuid" { - export = uuid; + unparse(buffer: number[], offset?: number): string; + unparse(buffer: Buffer, offset?: number): string; + } } diff --git a/node/node-tests.ts b/node/node-tests.ts index a73a35e223..bb0c5f678e 100644 --- a/node/node-tests.ts +++ b/node/node-tests.ts @@ -34,7 +34,7 @@ assert.doesNotThrow(() => { fs.writeFile("thebible.txt", "Do unto others as you would have them do unto you.", assert.ifError); - + fs.write(1234, "test"); fs.writeFile("Harry Potter", @@ -87,6 +87,25 @@ function bufferTests() { console.log(Buffer.byteLength('xyz123', 'ascii')); var result1 = Buffer.concat([utf8Buffer, base64Buffer]); var result2 = Buffer.concat([utf8Buffer, base64Buffer], 9999999); + + // Test that TS 1.6 works with the 'as Buffer' annotation + // on isBuffer. + var a: Buffer | number; + a = new Buffer(10); + if (Buffer.isBuffer(a)) { + a.writeUInt8(3, 4); + } + + // write* methods return offsets. + var b = new Buffer(16); + var result: number = b.writeUInt32LE(0, 0); + result = b.writeUInt16LE(0, 4); + result = b.writeUInt8(0, 6); + result = b.writeInt8(0, 7); + result = b.writeDoubleLE(0, 8); + + // fill returns the input buffer. + b.fill('a').fill('b'); } diff --git a/node/node.d.ts b/node/node.d.ts index e90a4a1461..b1436e16a1 100644 --- a/node/node.d.ts +++ b/node/node.d.ts @@ -119,7 +119,7 @@ declare var Buffer: { * * @param obj object to test. */ - isBuffer(obj: any): boolean; + isBuffer(obj: any): obj is Buffer; /** * Returns true if {encoding} is a valid encoding argument. * Valid string encodings in Node 0.12: 'ascii'|'utf8'|'utf16le'|'ucs2'(alias of 'utf16le')|'base64'|'binary'(deprecated)|'hex' @@ -377,21 +377,21 @@ interface NodeBuffer { readFloatBE(offset: number, noAssert?: boolean): number; readDoubleLE(offset: number, noAssert?: boolean): number; readDoubleBE(offset: number, noAssert?: boolean): number; - writeUInt8(value: number, offset: number, noAssert?: boolean): void; - writeUInt16LE(value: number, offset: number, noAssert?: boolean): void; - writeUInt16BE(value: number, offset: number, noAssert?: boolean): void; - writeUInt32LE(value: number, offset: number, noAssert?: boolean): void; - writeUInt32BE(value: number, offset: number, noAssert?: boolean): void; - writeInt8(value: number, offset: number, noAssert?: boolean): void; - writeInt16LE(value: number, offset: number, noAssert?: boolean): void; - writeInt16BE(value: number, offset: number, noAssert?: boolean): void; - writeInt32LE(value: number, offset: number, noAssert?: boolean): void; - writeInt32BE(value: number, offset: number, noAssert?: boolean): void; - writeFloatLE(value: number, offset: number, noAssert?: boolean): void; - writeFloatBE(value: number, offset: number, noAssert?: boolean): void; - writeDoubleLE(value: number, offset: number, noAssert?: boolean): void; - writeDoubleBE(value: number, offset: number, noAssert?: boolean): void; - fill(value: any, offset?: number, end?: number): void; + writeUInt8(value: number, offset: number, noAssert?: boolean): number; + writeUInt16LE(value: number, offset: number, noAssert?: boolean): number; + writeUInt16BE(value: number, offset: number, noAssert?: boolean): number; + writeUInt32LE(value: number, offset: number, noAssert?: boolean): number; + writeUInt32BE(value: number, offset: number, noAssert?: boolean): number; + writeInt8(value: number, offset: number, noAssert?: boolean): number; + writeInt16LE(value: number, offset: number, noAssert?: boolean): number; + writeInt16BE(value: number, offset: number, noAssert?: boolean): number; + writeInt32LE(value: number, offset: number, noAssert?: boolean): number; + writeInt32BE(value: number, offset: number, noAssert?: boolean): number; + writeFloatLE(value: number, offset: number, noAssert?: boolean): number; + writeFloatBE(value: number, offset: number, noAssert?: boolean): number; + writeDoubleLE(value: number, offset: number, noAssert?: boolean): number; + writeDoubleBE(value: number, offset: number, noAssert?: boolean): number; + fill(value: any, offset?: number, end?: number): Buffer; } /************************************************ diff --git a/openpgp/openpgp-tests.ts b/openpgp/openpgp-tests.ts new file mode 100644 index 0000000000..464bc77cdd --- /dev/null +++ b/openpgp/openpgp-tests.ts @@ -0,0 +1,128 @@ +/// + +// Open PGP Sample codes + +var options: openpgp.KeyOptions = { + numBits: 2048, + userId: 'Jon Smith ', + passphrase: 'super long and hard to guess secret' +}; + +openpgp.generateKeyPair(options).then(function (keypair) { + // success + var privkey = keypair.privateKeyArmored; + var pubkey = keypair.publicKeyArmored; +}).catch(function (error) { + // failure +}); + + +var spubkey = '-----BEGIN PGP PUBLIC KEY BLOCK ... END PGP PUBLIC KEY BLOCK-----'; +var publicKey = openpgp.key.readArmored(spubkey); + +openpgp.encryptMessage(publicKey.keys, 'Hello, World!').then(function (pgpMessage) { + // success +}).catch(function (error) { + // failure +}); + + + +var sprivkey = '-----BEGIN PGP PRIVATE KEY BLOCK ... END PGP PRIVATE KEY BLOCK-----'; +var privateKey = openpgp.key.readArmored(sprivkey).keys[0]; +privateKey.decrypt('passphrase'); + +var pgpMessageStr = '-----BEGIN PGP MESSAGE ... END PGP MESSAGE-----'; +var pgpMessage = openpgp.message.readArmored(pgpMessageStr); + +openpgp.decryptMessage(privateKey, pgpMessage).then(function (plaintext) { + // success +}).catch(function (error) { + // failure +}); + + +// Open PGP Tests + + +var keyoptions: openpgp.KeyOptions; +var key= openpgp.key.generate(keyoptions); +var keys: Array; +var message = openpgp.message.readArmored(""); +var cleartextmessage = openpgp.cleartext.readArmored(""); +var mpi: openpgp.crypto.Mpi; +var mpis: Array; + + +openpgp.decryptAndVerifyMessage(key, key, "").then(); +openpgp.decryptAndVerifyMessage(key, keys, "").then(); + +openpgp.decryptMessage(key, message).then(); + +openpgp.encryptMessage(key, "").then(); +openpgp.encryptMessage(keys, "").then(); + +openpgp.generateKeyPair(keyoptions).then(function (keypair) { + key = keypair.key; +}); + +openpgp.signAndEncryptMessage(key, key, "").then(); +openpgp.signAndEncryptMessage(keys, key, "").then(); + +openpgp.signClearMessage(key, "").then(); +openpgp.signClearMessage(keys, "").then(); + +openpgp.verifyClearSignedMessage(key, cleartextmessage); +openpgp.verifyClearSignedMessage(keys, cleartextmessage); + +openpgp.armor.armor(openpgp.enums.armor.message, {}, 0, 1); +openpgp.armor.dearmor(""); + +openpgp.cleartext.readArmored(""); + +openpgp.crypto.generateSessionKey(openpgp.enums.symmetric.aes128); +openpgp.crypto.getPrefixRandom(openpgp.enums.symmetric.aes128); +openpgp.crypto.getPrivateMpiCount(openpgp.enums.symmetric.aes128); +openpgp.crypto.publicKeyDecrypt(openpgp.enums.publicKey.rsa_encrypt, mpis, mpis, mpi); +openpgp.crypto.publicKeyEncrypt(openpgp.enums.publicKey.rsa_encrypt, mpis, mpi); + +openpgp.crypto.cfb.decrypt("", "", "", true); +openpgp.crypto.cfb.encrypt("", "", "", "", true); +openpgp.crypto.cfb.mdc({}, "", ""); + +openpgp.crypto.hash.digest(openpgp.enums.hash.md5, ""); +openpgp.crypto.hash.getHashByteLength(openpgp.enums.hash.md5); + +openpgp.crypto.random.getRandomBigInteger(0); +openpgp.crypto.random.getRandomBytes(0); +openpgp.crypto.random.getRandomValues(openpgp.util.str2Uint8Array("")); +openpgp.crypto.random.getSecureRandom(0, 1); + +openpgp.crypto.signature.sign(openpgp.enums.hash.md5, openpgp.enums.publicKey.rsa_encrypt, mpis, mpis, ""); +openpgp.crypto.signature.verify(openpgp.enums.publicKey.rsa_encrypt, openpgp.enums.hash.md5, mpis, mpis, ""); + +openpgp.key.generate(keyoptions); +openpgp.key.readArmored(""); + +openpgp.message.fromBinary(""); +openpgp.message.fromText(""); +openpgp.message.readArmored(""); + +openpgp.packet.fromStructuredClone({}); +openpgp.packet.newPacketFromTag(""); + +openpgp.util.bin2str([0, 1]); +openpgp.util.calc_checksum(""); +openpgp.util.decode_utf8(""); +openpgp.util.encode_utf8(""); +openpgp.util.get_hashAlgorithmString(); +openpgp.util.getWebCrypto(); +openpgp.util.hex2bin(""); +openpgp.util.hexidump(""); +openpgp.util.hexstrdump(""); +openpgp.util.print_debug(""); +openpgp.util.print_debug_hexstr_dump(""); +openpgp.util.shiftRight("", 1); +openpgp.util.str2bin(""); +openpgp.util.str2Uint8Array(""); +openpgp.util.Uint8Array2str(openpgp.util.str2Uint8Array("")); \ No newline at end of file diff --git a/openpgp/openpgp.d.ts b/openpgp/openpgp.d.ts new file mode 100644 index 0000000000..0ae8445a23 --- /dev/null +++ b/openpgp/openpgp.d.ts @@ -0,0 +1,552 @@ +// Type definitions for openpgpjs +// Project: http://openpgpjs.org/ +// Definitions by: Guillaume Lacasa +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare module openpgp { + + interface KeyPair { + key: key.Key, + privateKeyArmored: string, + publicKeyArmored: string + } + + interface KeyOptions { + keyType?: enums.publicKey, + numBits: number, + userId: string, + passphrase: string, + unlocked?: boolean + } + + interface Keyid { + bytes: String, + } + + interface Signature { + keyid: Keyid, + valid: boolean + } + + interface VerifiedMessage { + text: String, + signatures: Array + } + + /** Decrypts message and verifies signatures + + @param privateKey private key with decrypted secret key data + @param publicKeys array of keys to verify signatures + @param msg the message object with signed and encrypted data + */ + function decryptAndVerifyMessage(privateKey: key.Key, publicKeys: Array, msg: String): Promise; + /** Decrypts message and verifies signatures + + @param privateKey private key with decrypted secret key data + @param publicKey single key to verify signatures + @param msg the message object with signed and encrypted data + */ + function decryptAndVerifyMessage(privateKey: key.Key, publicKey: key.Key, msg: String): Promise; + + /** Decrypts message + + @param privateKey private key with decrypted secret key data + @param msg the message object with the encrypted data + */ + function decryptMessage(privateKey: key.Key, msg: message.Message): Promise; + + /** Encrypts message text with keys + @param keys array of keys used to encrypt the message + @param text message as native JavaScript string + @returns encrypted ASCII armored message + */ + function encryptMessage(keys: Array, message: string): Promise; + /** Encrypts message text with keys + + @param single key used to encrypt the message + @param text message as native JavaScript string + */ + function encryptMessage(key: key.Key, message: string): Promise; + + /** Generates a new OpenPGP key pair. Currently only supports RSA keys. Primary and subkey will be of same type. + @param options + */ + function generateKeyPair(options: KeyOptions): Promise; + + /** Signs message text and encrypts it + + @param publicKeys array of keys used to encrypt the message + @param privateKey private key with decrypted secret key data for signing + @param text private key with decrypted secret key data for signing + */ + function signAndEncryptMessage(publicKeys: Array, privateKey: key.Key, text: String): Promise; + /** Signs message text and encrypts it + + @param publicKeys single key used to encrypt the message + @param privateKey private key with decrypted secret key data for signing + @param text private key with decrypted secret key data for signing + */ + function signAndEncryptMessage(publicKey: key.Key, privateKey: key.Key, text: String): Promise; + + /** Signs a cleartext message + + @param privateKeys array of keys with decrypted secret key data to sign cleartext + @param text cleartext + */ + function signClearMessage(privateKeys: Array, text: String): Promise; + /** Signs a cleartext message + + @param privateKeys single key with decrypted secret key data to sign cleartext + @param text cleartext + */ + function signClearMessage(privateKey: key.Key, text: String): Promise; + + /** Verifies signatures of cleartext signed message + + @param publicKeys array of keys to verify signatures + @param msg cleartext message object with signatures + */ + function verifyClearSignedMessage(publicKeys: Array, msg: cleartext.CleartextMessage): Promise; + /** Verifies signatures of cleartext signed message + + @param publicKeys single key to verify signatures + @param msg cleartext message object with signatures + */ + function verifyClearSignedMessage(publicKey: key.Key, msg: cleartext.CleartextMessage): Promise; +} + +declare module openpgp.armor { + + /** Armor an OpenPGP binary packet block + + @param messagetype type of the message + @param body + @param partindex + @param parttotal + */ + function armor(messagetype: enums.armor, body: Object, partindex: Number, parttotal: Number): String; + + /** DeArmor an OpenPGP armored message; verify the checksum and return the encoded bytes + + @param text OpenPGP armored message + */ + function dearmor(text: String): Object; +} + +declare module openpgp.cleartext { + + /** Class that represents an OpenPGP cleartext signed message. + */ + interface CleartextMessage { + /** Returns ASCII armored text of cleartext signed message + */ + armor(): String; + + /** Returns the key IDs of the keys that signed the cleartext message + */ + getSigningKeyIds(): Array; + + /** Get cleartext + */ + getText(): String; + + /** Sign the cleartext message + @param privateKeys private keys with decrypted secret key data for signing + */ + sign(privateKeys: Array): void; + + /** Verify signatures of cleartext signed message + @param keys array of keys to verify signatures + */ + verify(keys: Array): Array; + } + + function readArmored(armoredText: String): CleartextMessage; +} + +declare module openpgp.config { + var prefer_hash_algorithm: enums.hash; + var encryption_cipher: enums.symmetric; + var compression: enums.compression; + var show_version: Boolean; + var show_comment: Boolean; + var integrity_protect: Boolean; + var keyserver: String; + var debug: Boolean; +} + +declare module openpgp.crypto { + interface Mpi { + data: Number, + read(input: String): Number, + write(): String, + } + + /** Generating a session key for the specified symmetric algorithm + @param algo Algorithm to use + */ + function generateSessionKey(algo: enums.symmetric): String; + + /** generate random byte prefix as string for the specified algorithm + @param algo Algorithm to use + */ + function getPrefixRandom(algo: enums.symmetric): String; + + /** Returns the number of integers comprising the private key of an algorithm + @param algo The public key algorithm + */ + function getPrivateMpiCount(algo: enums.symmetric): Number; + + /** Decrypts data using the specified public key multiprecision integers of the private key, the specified secretMPIs of the private key and the specified algorithm. + @param algo Algorithm to be used + @param publicMPIs Algorithm dependent multiprecision integers of the public key part of the private key + @param secretMPIs Algorithm dependent multiprecision integers of the private key used + @param data Data to be encrypted as MPI + */ + function publicKeyDecrypt(algo: enums.publicKey, publicMPIs: Array, secretMPIs: Array, data: Mpi): Mpi; + + /** Encrypts data using the specified public key multiprecision integers and the specified algorithm. + @param algo Algorithm to be used + @param publicMPIs Algorithm dependent multiprecision integers + @param data Data to be encrypted as MPI + */ + function publicKeyEncrypt(algo: enums.publicKey, publicMPIs: Array, data: Mpi): Array; +} + +declare module openpgp.crypto.cfb { + /** This function decrypts a given plaintext using the specified blockcipher to decrypt a message + @param cipherfn the algorithm cipher class to decrypt data in one block_size encryption + @param key binary string representation of key to be used to decrypt the ciphertext. This will be passed to the cipherfn + @param ciphertext to be decrypted provided as a string + @param resync a boolean value specifying if a resync of the IV should be used or not. The encrypteddatapacket uses the "old" style with a resync. Decryption within an encryptedintegrityprotecteddata packet is not resyncing the IV. + */ + function decrypt(cipherfn: String, key: String, ciphertext: String, resync: Boolean): String; + + /** This function encrypts a given with the specified prefixrandom using the specified blockcipher to encrypt a message + @param prefixrandom random bytes of block_size length provided as a string to be used in prefixing the data + @param cipherfn the algorithm cipher class to encrypt data in one block_size encryption + @param plaintext data to be encrypted provided as a string + @param key binary string representation of key to be used to encrypt the plaintext. This will be passed to the cipherfn + @param resync a boolean value specifying if a resync of the IV should be used or not. The encrypteddatapacket uses the "old" style with a resync. Encryption within an encryptedintegrityprotecteddata packet is not resyncing the IV. + */ + function encrypt(prefixrandom: String, cipherfn: String, plaintext: String, key: String, resync: Boolean): String; + + /** Decrypts the prefixed data for the Modification Detection Code (MDC) computation + @param cipherfn cipherfn.encrypt Cipher function to use + @param key binary string representation of key to be used to check the mdc This will be passed to the cipherfn + @param ciphertext The encrypted data + */ + function mdc(cipherfn: Object, key: String, ciphertext: String): String; +} + +declare module openpgp.crypto.hash { + /** Create a hash on the specified data using the specified algorithm + @param algo Hash algorithm type + @param data Data to be hashed + */ + function digest(algo: enums.hash, data: String): String; + + /** Returns the hash size in bytes of the specified hash algorithm type + @param algo Hash algorithm type + */ + function getHashByteLength(algo: enums.hash): Number; +} + +declare module openpgp.crypto.random { + /** Create a secure random big integer of bits length + @param bits Bit length of the MPI to create + */ + function getRandomBigInteger(bits: Number): Number; + + /** Retrieve secure random byte string of the specified length + @param length Length in bytes to generate + */ + function getRandomBytes(length: Number): String; + + /** Helper routine which calls platform specific crypto random generator + @param buf + */ + function getRandomValues(buf: Uint8Array): void; + + /** Return a secure random number in the specified range + @param from Min of the random number + @param to Max of the random number (max 32bit) + */ + function getSecureRandom(from: Number, to: Number): Number; +} + +declare module openpgp.crypto.signature { + /** Create a signature on data using the specified algorithm + @param hash_algo hash Algorithm to use + @param algo Asymmetric cipher algorithm to use + @param publicMPIs Public key multiprecision integers of the private key + @param secretMPIs Private key multiprecision integers which is used to sign the data + @param data Data to be signed + */ + function sign(hash_algo: enums.hash, algo: enums.publicKey, publicMPIs: Array, secretMPIs: Array, data: String): Mpi; + + /** + @param algo public Key algorithm + @param hash_algo Hash algorithm + @param msg_MPIs Signature multiprecision integers + @param publickey_MPIs Public key multiprecision integers + @param data Data on where the signature was computed on + */ + function verify(algo: enums.publicKey, hash_algo: enums.hash, msg_MPIs: Array, publickey_MPIs: Array, data: String): Boolean; +} + +declare module openpgp.enums { + + enum armor { + multipart_section, + multipart_last, + signed, + message, + public_key, + private_key + } + + enum compression { + uncompressed, + zip, + zlib, + bzip2 + } + + enum hash { + md5, + sha1, + ripemd, + sha256, + sha384, + sha512, + sha224 + } + + enum packet { + publicKeyEncryptedSessionKey, + signature, + symEncryptedSessionKey, + onePassSignature, + secretKey, + publicKey, + secretSubkey, + compressed, + symmetricallyEncrypted, + marker, + literal, + trust, + userid, + publicSubkey, + userAttribute, + symEncryptedIntegrityProtected, + modificationDetectionCode, + } + + enum publicKey { + rsa_encrypt_sign, + rsa_encrypt, + rsa_sign, + elgamal, + dsa + } + + enum symmetric { + plaintext, + idea, + tripledes, + cast5, + blowfish, + aes128, + aes192, + aes256, + twofish + } +} + +declare module openpgp.key { + + interface KeyResult { + keys: Array, + err: Array + } + + /** Class that represents an OpenPGP key. Must contain a primary key. Can contain additional subkeys, signatures, user ids, user attributes. + */ + interface Key { + armor(): String, + decrypt(passphrase: String): Boolean, + } + + /** Generates a new OpenPGP key. Currently only supports RSA keys. Primary and subkey will be of same type. + + @param options + */ + function generate(options: KeyOptions): Key; + + /** Reads an OpenPGP armored text and returns one or multiple key objects + + @param armoredText text to be parsed + */ + function readArmored(armoredText: String): KeyResult; + +} + +declare module openpgp.message { + /** Class that represents an OpenPGP message. Can be an encrypted message, signed message, compressed message or literal message + */ + interface Message { + /** Returns ASCII armored text of message + */ + armor(): String, + + /** Decrypt the message + @param privateKey private key with decrypted secret data + */ + decrypt(privateKey: key.Key): Array, + + /** Encrypt the message + @param keys array of keys, used to encrypt the message + */ + encrypt(keys: Array): Array, + + /** Returns the key IDs of the keys to which the session key is encrypted + */ + getEncryptionKeyIds(): Array, + + /** Get literal data that is the body of the message + */ + getLiteralData(): String, + + /** Returns the key IDs of the keys that signed the message + */ + getSigningKeyIds(): Array, + + /** Get literal data as text + */ + getText(): String, + + /** Sign the message (the literal data packet of the message) + @param privateKey private keys with decrypted secret key data for signing + */ + sign(privateKey: Array): Message, + + /** Unwrap compressed message + */ + unwrapCompressed(): Message, + + /** Verify message signatures + @param keys array of keys to verify signatures + */ + verify(keys: Array): Array, + } + + /** creates new message object from binary data + @param bytes + */ + function fromBinary(bytes: String): Message; + + /** creates new message object from text + @param text + */ + function fromText(text: String): Message; + + /** reads an OpenPGP armored message and returns a message object + + @param armoredText text to be parsed + */ + function readArmored(armoredText: String): Message; +} + +declare module openpgp.packet { + + /** Allocate a new packet from structured packet clone + @param packetClone packet clone + */ + function fromStructuredClone(packetClone: Object): Object + + /** Allocate a new packet + @param property name from enums.packet + */ + function newPacketFromTag(tag: String): Object; +} + +declare module openpgp.util { + /** Convert an array of integers(0.255) to a string + @param bin An array of (binary) integers to convert + */ + function bin2str(bin: Array): String; + + /** Calculates a 16bit sum of a string by adding each character codes modulus 65535 + @param text String to create a sum of + */ + function calc_checksum(text: String): Number; + + /** Convert a string of utf8 bytes to a native javascript string + @param utf8 A valid squence of utf8 bytes + */ + function decode_utf8(utf8: String): String + + /** Convert a native javascript string to a string of utf8 bytes + param str The string to convert + */ + function encode_utf8(str: String): String + + /** Return the algorithm type as string + */ + function get_hashAlgorithmString(): String + + /** Get native Web Cryptography api. The default configuration is to use the api when available. But it can also be deactivated with config.useWebCrypto + */ + function getWebCrypto(): Object + + /** Create binary string from a hex encoded string + @param str Hex string to convert + */ + function hex2bin(str: String): String; + + /** Creating a hex string from an binary array of integers (0..255) + @param str Array of bytes to convert + */ + function hexidump(str: String): String; + + /** Create hexstring from a binary + @param str String to convert + */ + function hexstrdump(str: String): String; + + /** Helper function to print a debug message. Debug messages are only printed if + @param str String of the debug message + */ + function print_debug(str: String): void; + + /** Helper function to print a debug message. Debug messages are only printed if + @param str String of the debug message + */ + function print_debug_hexstr_dump(str: String): void; + + /** Shifting a string to n bits right + @param value The string to shift + @param bitcount Amount of bits to shift (MUST be smaller than 9) + */ + function shiftRight(value: String, bitcount: Number): String; + + /** Convert a string to an array of integers(0.255) + @param str String to convert + */ + function str2bin(str: String): Array; + + /** Convert a string to a Uint8Array + @param str String to convert + */ + function str2Uint8Array(str: String): Uint8Array; + + /** Convert a Uint8Array to a string. This currently functions the same as bin2str. + @param bin An array of (binary) integers to convert + */ + function Uint8Array2str(bin: Uint8Array): String; + + +} \ No newline at end of file diff --git a/parse/parse-tests.ts b/parse/parse-tests.ts index d373c064d6..d3af6be5c5 100644 --- a/parse/parse-tests.ts +++ b/parse/parse-tests.ts @@ -400,3 +400,16 @@ function test_view() { var model = Parse.User.current(); var view = new Parse.View(); } + +function test_promise() { + let resolved = Parse.Promise.as(true); + let rejected = Parse.Promise.error("an error object"); + Parse.Promise.when([resolved, rejected]).then(function() { + // success + }, function() { + // failed + }); + + // can check whether an object is a Parse.Promise object or not + Parse.Promise.is(resolved); +} diff --git a/parse/parse.d.ts b/parse/parse.d.ts index 85d3682f5f..d088014c72 100644 --- a/parse/parse.d.ts +++ b/parse/parse.d.ts @@ -72,14 +72,16 @@ declare namespace Parse { then(resolvedCallback: (value: T) => U, rejectedCallback?: (reason: any) => U): IPromise; } - interface Promise { + class Promise { + + static as(resolvedValue: U): Promise; + static error(error: U): Promise; + static is(possiblePromise: any): Boolean; + static when(promises: Promise[]): Promise; always(callback: Function): Promise; - as(): Promise; done(callback: Function): Promise; - error(): Promise; fail(callback: Function): Promise; - is(): Promise; reject(error: any): void; resolve(result: any): void; then(resolvedCallback: (value: T) => Promise, @@ -88,8 +90,6 @@ declare namespace Parse { rejectedCallback?: (reason: any) => IPromise): IPromise; then(resolvedCallback: (value: T) => U, rejectedCallback?: (reason: any) => U): IPromise; - - when(promises: Promise[]): Promise; } interface IBaseObject { @@ -1050,11 +1050,11 @@ declare namespace Parse { } +declare module "parse/node" { + export = { Parse }; +} + declare module "parse" { - var type: typeof Parse; - var subType: { - Parse: typeof type; - } - - export = subType; + import parse = require("parse/node"); + export = parse } diff --git a/react-dom/react-dom.d.ts b/react-dom/react-dom.d.ts new file mode 100644 index 0000000000..16ded77d85 --- /dev/null +++ b/react-dom/react-dom.d.ts @@ -0,0 +1,40 @@ +// Type definitions for React-DOM v0.14.0-rc +// Project: https://www.npmjs.com/package/react-dom +// Definitions by: Stefan-Bieliauskas +// Definitions: https://github.com/borisyankov/DefinitelyTyped + +/// + +declare class __ReactDom { + public render

( + element: __React.DOMElement

, + container: Element, + callback?: () => any): __React.DOMComponent

; + public render( + element: __React.ClassicElement

, + container: Element, + callback?: () => any): __React.ClassicComponent; + public render( + element: __React.ReactElement

, + container: Element, + callback?: () => any): __React.Component; + + public findDOMNode( + componentOrElement: __React.Component | Element): TElement; + public findDOMNode( + componentOrElement: __React.Component | Element): Element; + + public unmountComponentAtNode(container: Element): boolean; +} + +declare class __ReactDomServer { + public renderToString(element: __React.ReactElement): string; + public renderToStaticMarkup(element: __React.ReactElement): string; +} +declare module "react-dom" { + export = __ReactDom +} + +declare module "react-dom/server" { + export = __ReactDomServer +} \ No newline at end of file diff --git a/switchery/switchery-tests.ts b/switchery/switchery-tests.ts index 2a06795027..35bd77920f 100644 --- a/switchery/switchery-tests.ts +++ b/switchery/switchery-tests.ts @@ -3,69 +3,86 @@ // // Examples from https://github.com/abpetkov/switchery // +import {default as Switchery} from "switchery"; function multipleSwitches() { - var elems = Array.prototype.slice.call( document.querySelectorAll( '.js-switch' ) ); + var elems = Array.prototype.slice.call(document.querySelectorAll('.js-switch')); - elems.forEach( (html: Element) => { - var switchery = new Switchery( html ); - } ); + elems.forEach((html: Element) => { + var switchery = new Switchery(html); + }); } function disabledSwitch() { - var elem = document.querySelector( '.js-switch' ) + var elem = document.querySelector('.js-switch') //inactive switch - var switchery = new Switchery( elem, {disabled: true} ); + var switchery = new Switchery(elem, { disabled: true }); //Customize the default opacity of the disabled switch, using the disabledOpacity option. - switchery = new Switchery( elem, {disabled: true, disabledOpacity: 0.75} ); + switchery = new Switchery(elem, { disabled: true, disabledOpacity: 0.75 }); } function coloredSwitch() { - var elem = document.querySelector( '.js-switch' ) + var elem = document.querySelector('.js-switch') //You can change the primary color of the switch to fit your design perfectly: - var switchery = new Switchery( elem, {color: '#41b7f1'} ); + var switchery = new Switchery(elem, { color: '#41b7f1' }); //Or the secondary color, which will change the switch background color and border color: - switchery = new Switchery( elem, {secondaryColor: '#bbf0f0'} ); + switchery = new Switchery(elem, { secondaryColor: '#bbf0f0' }); //Since version 0.6.3, you're even allowed to change the jack color from JS, as follows: - switchery = new Switchery( elem, {jackColor: '#fffc00'} ); + switchery = new Switchery(elem, { jackColor: '#fffc00', jackSecondaryColor: '#41b7f1' }); } function switchSizes() { - var elem = document.querySelector( '.js-switch' ) + var elem = document.querySelector('.js-switch') - var switchery = new Switchery( elem, {size: 'small'} ); - switchery = new Switchery( elem, {size: 'large'} ); + var switchery = new Switchery(elem, { size: 'small' }); + switchery = new Switchery(elem, { size: 'large' }); } function checkingState() { - var elem = document.querySelector( '.js-switch' ) + var elem = document.querySelector('.js-switch') //On click: - var clickCheckbox = document.querySelector( '.js-check-click' ) - var clickButton = document.querySelector( '.js-check-click-button' ); + var clickCheckbox = document.querySelector('.js-check-click') + var clickButton = document.querySelector('.js-check-click-button'); - clickButton.addEventListener( 'click', () => { - alert( clickCheckbox.checked ); - } ); + clickButton.addEventListener('click', () => { + alert(clickCheckbox.checked); + }); //On change: - var changeCheckbox = document.querySelector( '.js-check-change' ); + var changeCheckbox = document.querySelector('.js-check-change'); - changeCheckbox.onchange = function () { - alert( changeCheckbox.checked ); + changeCheckbox.onchange = function() { + alert(changeCheckbox.checked); }; +} + +function detached() { + var elem = document.querySelector('.js-switch') + var switchery = new Switchery(elem, { size: 'small' }); + + switchery.destroy(); +} + +function toggleState() { + var elem = document.querySelector('.js-switch') + var switchery = new Switchery(elem, { size: 'small' }); + var isDisabled = switchery.isDisabled(); + + switchery.enable(); + switchery.disable(); } \ No newline at end of file diff --git a/switchery/switchery.d.ts b/switchery/switchery.d.ts index 4d953aff88..79934c776c 100644 --- a/switchery/switchery.d.ts +++ b/switchery/switchery.d.ts @@ -1,64 +1,93 @@ -// Type definitions for switchery 0.7.0 +// Type definitions for switchery 0.8.1 // Project: https://github.com/abpetkov/switchery -// Definitions by: Bruno Grieder +// Definitions by: Bruno Grieder , Clayton Lautier // Definitions: https://github.com/borisyankov/DefinitelyTyped declare module Switchery { - export interface Options { + interface SwitcheryStatic { + new (node: Node, options?: Options): Switchery; + } + + interface Options { /** * color of the switch element (HEX or RGB value) * @default '#64bd63' */ - color? : string; + color?: string; /** * secondary color for background color and border, when the switch is off * @default '#dfdfdf' */ - secondaryColor? : string; + secondaryColor?: string; /** * color of the jack/handle element * @default '#fff' */ - jackColor? : string; + jackColor?: string; + /** + * color of unchecked jack/handle element + * @default 'null' + */ + jackSecondaryColor?: string; /** * class name for the switch element (by default styled in switchery.css) * @default 'switchery' */ - className? : string; + className?: string; /** * enable or disable click events and changing the state of the switch (boolean value) * @default false */ - disabled? : boolean; + disabled?: boolean; /** * opacity of the switch when it's disabled (0 to 1) * @default 0.5 */ - disabledOpacity? : number; + disabledOpacity?: number; /** * length of time that the transition will take, ex. '0.4s', '1s', '2.2s' (Note: transition speed of the handle is twice shorter) - * @default '0.4s' + * @default '0.1s' */ - speed? : string; + speed?: string; /** * size of the switch element (small or large) * @default 'default' */ - size? : string; + size?: string; } - - } -declare class Switchery { +interface Switchery { - constructor(node: Node, options?: Switchery.Options); + /** + * Unbinding all event handlers attached to the switch element to prepare the object for garbage collection. + * @returns {void} + */ + destroy(): void; + /** + * Enable disabled switch by re-adding event handlers and changing the opacity to 1. + * @returns {void} + */ + enable(): void; + + /** + * Disable switch by unbinding attached events and changing opacity to disabledOpacity value + * @returns {void} + */ + disable(): void; + + /** + * Check if switch is currently disabled by checking the readonly and disabled attributes on the checkbox and the disabled option set via JS. + * If any of those are present, the returned value is true. + * @returns {boolean} whether it's disabled or not. + */ + isDisabled(): boolean; } declare module "switchery" { - - export = Switchery + var switchery: Switchery.SwitcheryStatic; + export default switchery; } \ No newline at end of file diff --git a/urijs/URIjs-tests.ts b/urijs/URIjs-tests.ts index 3501a6efc2..0f529fe4a0 100644 --- a/urijs/URIjs-tests.ts +++ b/urijs/URIjs-tests.ts @@ -37,4 +37,9 @@ var uri: uri.URI = $('a').uri(); URI('http://example.org/foo/hello.html').segment('bar'); URI('http://example.org/foo/hello.html').segment(0, 'bar'); -URI('http://example.org/foo/hello.html').segment(['foo', 'bar', 'foobar.html']); \ No newline at end of file +URI('http://example.org/foo/hello.html').segment(['foo', 'bar', 'foobar.html']); + +var withDuplicates = URI("?bar=1&bar=1") + .duplicateQueryParameters(true) + .normalizeQuery() + .toString(); \ No newline at end of file diff --git a/urijs/URIjs.d.ts b/urijs/URIjs.d.ts index a41e06cbfa..3bd4ba366f 100644 --- a/urijs/URIjs.d.ts +++ b/urijs/URIjs.d.ts @@ -27,6 +27,8 @@ declare module uri { domain(): string; domain(domain: boolean): string; domain(domain: string): URI; + + duplicateQueryParameters(val: boolean): URI; equals(): boolean; equals(url: string): boolean; diff --git a/yargs/yargs-tests.ts b/yargs/yargs-tests.ts index 10b75382b5..f20254990a 100644 --- a/yargs/yargs-tests.ts +++ b/yargs/yargs-tests.ts @@ -134,6 +134,49 @@ function Argv$options() { ; } +function command() { + var argv = yargs + .usage('npm ') + .command('install', 'tis a mighty fine package to install') + .command('publish', 'shiver me timbers, should you be sharing all that', yargs => { + argv = yargs.option('f', { + alias: 'force', + description: 'yar, it usually be a bad idea' + }) + .help('help') + .argv; + }) + .help('help') + .argv; +} + +function completion_sync() { + var argv = yargs + .completion('completion', (current, argv) => { + // 'current' is the current command being completed. + // 'argv' is the parsed arguments so far. + // simply return an array of completions. + return [ + 'foo', + 'bar' + ]; + }) + .argv; +} + +function completion_async() { + var argv = yargs + .completion('completion', (current, argv, done) => { + setTimeout(function() { + done([ + 'apple', + 'banana' + ]); + }, 500); + }) + .argv; +} + function Argv$help() { var yargs1 = yargs .usage("$0 -operand1 number -operand2 number -operation [add|subtract]"); diff --git a/yargs/yargs.d.ts b/yargs/yargs.d.ts index 0e42090fcd..03b7c05dcd 100644 --- a/yargs/yargs.d.ts +++ b/yargs/yargs.d.ts @@ -54,6 +54,12 @@ declare module "yargs" { usage(options?: { [key: string]: Options }): Argv; command(command: string, description: string): Argv; + command(command: string, description: string, fn: (args: Argv) => void): Argv; + + completion(cmd: string, fn?: SyncCompletionFunction): Argv; + completion(cmd: string, description?: string, fn?: SyncCompletionFunction): Argv; + completion(cmd: string, fn?: AsyncCompletionFunction): Argv; + completion(cmd: string, description?: string, fn?: AsyncCompletionFunction): Argv; example(command: string, description: string): Argv; @@ -110,6 +116,9 @@ declare module "yargs" { desc?: any; requiresArg?: any; } + + type SyncCompletionFunction = (current: string, argv: any) => string[]; + type AsyncCompletionFunction = (current: string, argv: any, done: (completion: string[]) => void) => void; } var yargs: yargs.Argv;