Merge remote-tracking branch 'upstream/master' into types2.0

This commit is contained in:
Ryan Cavanaugh
2016-04-19 15:18:41 -07:00
147 changed files with 24570 additions and 4380 deletions

View File

@@ -10,6 +10,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](acorn/acorn.d.ts) [Acorn](https://github.com/marijnh/acorn) by [RReverser](https://github.com/RReverser)
* [:link:](rails-actioncable/rails-actioncable.d.ts) [ActionCable](https://github.com/rails/rails/tree/master/actioncable) by [Vincent Zhu](https://github.com/zhu1230)
* [:link:](cordova-plugin-ms-adal/cordova-plugin-ms-adal.d.ts) [Active Directory Authentication Library plugin for Apache Cordova](https://github.com/AzureAD/azure-activedirectory-library-for-cordova) by [Kai Walter](https://github.com/KaiWalter)
* [:link:](adal-angular/adal-angular.d.ts) [ADAL.JS](https://github.com/AzureAD/azure-activedirectory-library-for-js) by [mmaitre314](https://github.com/mmaitre314)
* [:link:](adal-angular/adal.d.ts) [ADAL.JS](https://github.com/AzureAD/azure-activedirectory-library-for-js) by [mmaitre314](https://github.com/mmaitre314)
* [:link:](add2home/add2home.d.ts) [add2home](http://cubiq.org/add-to-home-screen) by [James Wilkins](http://www.codeplex.com/site/users/view/jamesnw)
* [:link:](adm-zip/adm-zip.d.ts) [adm-zip](https://github.com/cthackers/adm-zip) by [John Vilk](https://github.com/jvilk), [Abner Oliveira](https://github.com/abner)
* [:link:](ag-grid/ag-grid.d.ts) [ag-grid](http://www.ag-grid.com) by [Niall Crosby](https://github.com/ceolter)
@@ -38,6 +40,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](angularjs/angular-component-router.d.ts) [Angular JS 1.5 component router](http://angularjs.org) by [David Reher](http://github.com/davidreher)
* [:link:](angular-meteor/angular-meteor.d.ts) [Angular JS Meteor (angular.meteor module)](https://github.com/Urigo/angular-meteor) by [Peter Grman](https://github.com/pgrm)
* [:link:](angular-locker/angular-locker.d.ts) [Angular Locker](https://github.com/tymondesigns/angular-locker) by [Niko Kovačič](https://github.com/nkovacic)
* [:link:](angular-media-queries/match-media.d.ts) [Angular matchMedia (angular.matchMedia module)](https://github.com/jacopotarantino/angular-match-media) by [Joao Monteiro](https://github.com/jpmnteiro)
* [:link:](angular-material/angular-material.d.ts) [Angular Material (angular.material module)](https://github.com/angular/material) by [Matt Traynham](https://github.com/mtraynham)
* [:link:](angular-protractor/angular-protractor.d.ts) [Angular Protractor](https://github.com/angular/protractor) by [Bill Armstrong](https://github.com/BillArmstrong)
* [:link:](angular-scenario/angular-scenario.d.ts) [Angular Scenario Testing (ngScenario module)](http://angularjs.org) by [RomanoLindano](https://github.com/RomanoLindano)
@@ -55,8 +58,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](angular-environment/angular-environment.d.ts) [angular-environment](https://github.com/juanpablob/angular-environment) by [Matt Wheatley](https://github.com/terrawheat)
* [:link:](angular-formly/angular-formly.d.ts) [angular-formly](https://github.com/formly-js/angular-formly) by [Scott Hatcher](https://github.com/scatcher)
* [:link:](angular-gettext/angular-gettext.d.ts) [angular-gettext](https://angular-gettext.rocketeer.be) by [Ákos Lukács](https://github.com/AkosLukacs)
* [:link:](angular-google-analytics/angular-google-analytics-service.d.ts) [angular-google-analytics](https://github.com/revolunet/angular-google-analytics) by [Matt Wheatley](https://github.com/terrawheat)
* [:link:](angular-google-analytics/angular-google-analytics.d.ts) [angular-google-analytics](https://github.com/revolunet/angular-google-analytics) by [Cyril Schumacher](https://github.com/cyrilschumacher)
* [:link:](angular-google-analytics/angular-google-analytics-service.d.ts) [angular-google-analytics](https://github.com/revolunet/angular-google-analytics) by [Matt Wheatley](https://github.com/terrawheat)
* [:link:](angular-hotkeys/angular-hotkeys.d.ts) [angular-hotkeys](https://github.com/chieffancypants/angular-hotkeys) by [Jason Zhao](https://github.com/jlz27), [Stefan Steinhart](https://github.com/reppners)
* [:link:](angular-http-auth/angular-http-auth.d.ts) [angular-http-auth](https://github.com/witoldsz/angular-http-auth) by [vvakame](https://github.com/vvakame)
* [:link:](angular-httpi/angular-httpi.d.ts) [angular-httpi](https://github.com/bennadel/httpi) by [Andrew Camilleri](https://github.com/Kukks)
@@ -68,6 +71,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](angular-modal/angular-modal.d.ts) [angular-modal](https://github.com/btford/angular-modal) by [Paul Lessing](https://github.com/paullessing)
* [:link:](angular-notifications/angular-notifications.d.ts) [angular-notifications](https://github.com/DerekRies/angular-notifications) by [Tomasz Ducin](https://github.com/ducin/DefinitelyTyped)
* [:link:](angular-notify/angular-notify.d.ts) [angular-notify](https://github.com/cgross/angular-notify) by [Suwato](https://github.com/Suwato/DefinitelyTyped)
* [:link:](angular-permission/angular-permission.d.ts) [angular-permission](https://github.com/Narzerus/angular-permission) by [Voislav Mishevski](https://github.com/vmishevski)
* [:link:](angular-scroll/angular-scroll.d.ts) [angular-scroll](https://github.com/oblador/angular-scroll) by [Sam Herrmann](https://github.com/samherrmann)
* [:link:](angular-signalr-hub/angular-signalr-hub.d.ts) [angular-signalr-hub](https://github.com/JustMaier/angular-signalr-hub) by [Adam Santaniello](https://github.com/AdamSantaniello)
* [:link:](angular-spinner/angular-spinner.d.ts) [angular-spinner.js](https://github.com/urish/angular-spinner) by [Marcin Biegała](https://github.com/Biegal)
@@ -86,11 +90,12 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](animation-frame/animation-frame.d.ts) [animation-frame](https://github.com/kof/animation-frame) by [Qinfeng Chen](https://github.com/qinfchen)
* [:link:](ansi-styles/ansi-styles.d.ts) [ansi-styles](https://github.com/sindresorhus/ansi-styles) by [bryn austin bellomy](https://github.com/brynbellomy)
* [:link:](ansicolors/ansicolors.d.ts) [ansicolors](https://github.com/thlorenz/ansicolors) by [rogierschouten](https://github.com/rogierschouten)
* [:link:](antd/antd.d.ts) [Antd](http://ant.design) by [bang88](https://github.com/bang88)
* [:link:](antd/antd.d.ts) [Antd](http://ant.design) by [bang88](https://github.com/bang88), [Bruce Mitchener](https://github.com/waywardmonkeys)
* [:link:](any-db/any-db.d.ts) [any-db](https://github.com/grncdr/node-any-db) by [Rogier Schouten](https://github.com/rogierschouten)
* [:link:](any-db-transaction/any-db-transaction.d.ts) [any-db-transaction](https://github.com/grncdr/node-any-db-transaction) by [Rogier Schouten](https://github.com/rogierschouten)
* [:link:](anydb-sql/anydb-sql.d.ts) [anydb-sql](https://github.com/doxout/anydb-sql) by [Gorgi Kosev](https://github.com/spion)
* [:link:](anydb-sql-migrations/anydb-sql-migrations.d.ts) [anydb-sql-migrations](https://github.com/spion/anydb-sql-migrations) by [Gorgi Kosev](https://github.com/spion)
* [:link:](cordova-plugin-background-mode/cordova-plugin-background-mode.d.ts) [Apache Background Mode plugin](https://github.com/katzer/cordova-plugin-background-mode) by [Paul Thiel](https://github.com/Lordnoname)
* [:link:](cordova/cordova.d.ts) [Apache Cordova](http://cordova.apache.org) by [Microsoft Open Technologies Inc.](http://msopentech.com)
* [:link:](cordova-plugin-email-composer/cordova-plugin-email-composer.d.ts) [Apache Cordova Email Composer plugin](https://github.com/katzer/cordova-plugin-email-composer) by [Dave Taylor](http://davetayls.me)
* [:link:](api-error-handler/api-error-handler.d.ts) [api-error-handler](https://github.com/expressjs/api-error-handler) by [Tanguy Krotoff](https://github.com/tkrotoff)
@@ -244,19 +249,20 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](circular-json/circular-json.d.ts) [circular-json](https://github.com/WebReflection/circular-json) by [Jonathan Pevarnek](https://github.com/jpevarnek)
* [:link:](ckeditor/ckeditor.d.ts) [CKEditor](http://ckeditor.com) by [Ondrej Sevcik](https://github.com/ondrejsevcik)
* [:link:](classnames/classnames.d.ts) [classnames](https://github.com/JedWatson/classnames) by [Dave Keen](http://www.keendevelopment.ch), [Adi Dahiya](https://github.com/adidahiya), [Jason Killian](https://github.com/JKillian)
* [:link:](cldr.js/cldr.js-event.d.ts) [Cldr.js](https://github.com/rxaviers/cldrjs) by [Raman But-Husaim](https://github.com/RamanBut-Husaim)
* [:link:](cldr.js/cldr.js-supplemental.d.ts) [Cldr.js](https://github.com/rxaviers/cldrjs) by [Raman But-Husaim](https://github.com/RamanBut-Husaim)
* [:link:](cldr.js/cldr.js.d.ts) [Cldr.js](https://github.com/rxaviers/cldrjs) by [Raman But-Husaim](https://github.com/RamanBut-Husaim), [Grégoire Castre](https://github.com/gcastre)
* [:link:](cldr.js/cldr.js-event.d.ts) [Cldr.js](https://github.com/rxaviers/cldrjs) by [Raman But-Husaim](https://github.com/RamanBut-Husaim)
* [:link:](clean-css/clean-css.d.ts) [clean-css](https://github.com/jakubpawlowicz/clean-css) by [Tanguy Krotoff](https://github.com/tkrotoff)
* [:link:](cli/cli.d.ts) [cli](https://www.npmjs.com/package/cli) by [Klaus Reimer](https://github.com/kayahr)
* [:link:](cli-color/cli-color.d.ts) [cli-color](https://github.com/medikoo/cli-color) by [Joel Spadin](https://github.com/ChaosinaCan)
* [:link:](clipboard/clipboard.d.ts) [clipboard.js](https://github.com/zenorocha/clipboard.js) by [Andrei Kurosh](https://github.com/impworks)
* [:link:](clone/clone.d.ts) [clone](https://github.com/pvorb/node-clone) by [Kieran Simpson](https://github.com/kierans/DefinitelyTyped)
* [:link:](closure-compiler/closure-compiler.d.ts) [closure-compiler](https://github.com/tim-smart/node-closure) by [Martin Probst](https://github.com/mprobst)
* [:link:](codemirror/codemirror-showhint.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [jacqt](https://github.com/jacqt), [basarat](https://github.com/basarat)
* [:link:](codemirror/codemirror-matchbrackets.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [Sixin Li](https://github.com/sixinli)
* [:link:](codemirror/codemirror-runmode.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [Joseph Vaughan](https://github.com/Joev-)
* [:link:](codemirror/searchcursor.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [jacqt](https://github.com/jacqt)
* [:link:](codemirror/codemirror.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [mihailik](https://github.com/mihailik)
* [:link:](codemirror/codemirror-showhint.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [jacqt](https://github.com/jacqt), [basarat](https://github.com/basarat)
* [:link:](codemirror/codemirror-matchbrackets.d.ts) [CodeMirror](https://github.com/marijnh/CodeMirror) by [Sixin Li](https://github.com/sixinli)
* [:link:](coffeeify/coffeeify.d.ts) [coffeeify](https://github.com/jnordberg/coffeeify) by [Qubo](https://github.com/tkQubo)
* [: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)
@@ -308,6 +314,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](createjs/createjs.d.ts) [CreateJS](http://www.createjs.com) by [Pedro Ferreira](https://bitbucket.org/drk4), [Chris Smith](https://github.com/evilangelist), [Satoru Kimura](https://github.com/gyohk)
* [:link:](credential/credential.d.ts) [credential](https://github.com/ericelliott/credential) by [Phú](https://github.com/phuvo)
* [:link:](cron/cron.d.ts) [cron](https://www.npmjs.com/package/cron) by [Hiroki Horiuchi](https://github.com/horiuchi)
* [:link:](cropperjs/cropperjs.d.ts) [cropperjs](https://github.com/fengyuanchen/cropperjs) by [Stepan Mikhaylyuk](https://github.com/stepancar)
* [:link:](cross-storage/cross-storage.d.ts) [cross-storage](https://github.com/zendesk/cross-storage) by [Daniel Chao](http://dchao.co)
* [:link:](crossfilter/crossfilter.d.ts) [CrossFilter](https://github.com/square/crossfilter) by [Schmulik Raskin](https://github.com/schmuli)
* [:link:](crossroads/crossroads.d.ts) [Crossroads.js](http://millermedeiros.github.io/crossroads.js) by [Diullei Gomes](https://github.com/diullei)
@@ -369,13 +376,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](dot-case/dot-case.d.ts) [dot-case](https://github.com/blakeembrey/dot-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
* [:link:](dot-prop/dot-prop.d.ts) [dot-prop](https://github.com/sindresorhus/dot-prop) by [Sam Verschueren](https://github.com/samverschueren)
* [:link:](dotdotdot/dotdotdot.d.ts) [dotdotdot](http://dotdotdot.frebsite.nl) by [Milan Jaros](https://github.com/milanjaros)
* [:link:](dotenv/dotenv.d.ts) [dotenv](https://github.com/motdotla/dotenv) by [Jussi Kinnula](https://github.com/jussikinnula)
* [:link:](doublearray/doublearray.d.ts) [doublearray](https://github.com/takuyaa/doublearray) by [MIZUSHIMA Junki](https://github.com/mzsm)
* [:link:](draft-js/draft-js.d.ts) [draft-js](https://github.com/facebook/draft-js) by [Pavel Evsegneev](https://github.com/Ahineya)
* [:link:](hystrixjs/hystrixjs.d.ts) [dragula](https://bitbucket.org/igor_sechyn/hystrixjs) by [Igor Sechyn](https://github.com/igorsechyn)
* [:link:](dragula/dragula.d.ts) [dragula](http://bevacqua.github.io/dragula) by [Paul Welter](https://github.com/pwelter34)
* [:link:](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)
* [: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), [Simon Huber](https://github.com/renuo)
* [:link:](dsv/dsv.d.ts) [dsv](https://www.npmjs.com/package/dsv) by [Jason Swearingen](https://jasonswearingen.github.io)
* [:link:](dts-bundle/dts-bundle.d.ts) [dts-bundle](https://github.com/TypeStrong/dts-bundle) by [Asana](https://asana.com)
* [:link:](durandal/durandal.d.ts) [Durandal](http://durandaljs.com) by [Blue Spire](https://github.com/BlueSpire)
@@ -394,8 +402,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](ejs-locals/ejs-locals.d.ts) [ejs-locals](https://github.com/randometc/ejs-locals) by [jt000](https://github.com/jt000)
* [:link:](ejs/ejs.d.ts) [ejs.js](http://ejs.co) by [Ben Liddicott](https://github.com/benliddicott/DefinitelyTyped)
* [:link:](jquery.elang/jquery.elang.d.ts) [eLang](https://github.com/sumegizoltan/ELang) by [Zoltan Sumegi](https://github.com/sumegizoltan)
* [:link:](github-electron/github-electron.d.ts) [Electron](http://electron.atom.io) by [jedmao](https://github.com/jedmao), [rhysd](https://rhysd.github.io)
* [:link:](github-electron/github-electron.d.ts) [Electron](http://electron.atom.io) by [jedmao](https://github.com/jedmao), [rhysd](https://rhysd.github.io), [Milan Burda](https://github.com/miniak)
* [:link:](electron-builder/electron-builder.d.ts) [electron-builder](https://github.com/loopline-systems/electron-builder) by [Maxime LUCE](https://github.com/SomaticIT)
* [:link:](electron-json-storage/electron-json-storage.d.ts) [electron-json-storage](https://github.com/jviotti/electron-json-storage) by [Sam Saint-Pettersen](https://github.com/stpettersens)
* [:link:](electron-packager/electron-packager.d.ts) [electron-packager](https://github.com/maxogden/electron-packager) by [Maxime LUCE](https://github.com/SomaticIT)
* [:link:](github-electron/electron-prebuilt.d.ts) [electron-prebuilt](https://github.com/mafintosh/electron-prebuilt) by [rhysd](https://github.com/rhysd)
* [:link:](electron-window-state/electron-window-state.d.ts) [electron-window-state](https://github.com/mawie81/electron-window-state) by [rhysd](https://github.com/rhysd)
@@ -407,19 +416,23 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](emissary/emissary.d.ts) [emissary](https://github.com/atom/emissary) by [vvakame](https://github.com/vvakame)
* [:link:](empower/empower.d.ts) [empower](https://github.com/twada/empower) by [vvakame](https://github.com/vvakame)
* [:link:](emscripten/emscripten.d.ts) [Emscripten](http://kripken.github.io/emscripten-site/index.html) by [Kensuke Matsuzaki](https://github.com/zakki)
* [:link:](encoding-japanese/encoding-japanese.d.ts) [encoding-japanese](https://github.com/polygonplanet/encoding.js) by [rhysd](https://rhysd.github.io)
* [:link:](envify/envify.d.ts) [envify](https://github.com/hughsk/envify) by [Qubo](https://github.com/tkQubo)
* [:link:](enzyme/enzyme.d.ts) [Enzyme](https://github.com/airbnb/enzyme) by [Marian Palkus](https://github.com/MarianPalkus), [Cap3](http://www.cap3.de)
* [:link:](epiceditor/epiceditor.d.ts) [EpicEditor](http://epiceditor.com) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](eq.js/eq.js.d.ts) [eq.js](https://github.com/Snugug/eq.js) by [Stephen Lautier](https://github.com/stephenlautier)
* [:link:](errorhandler/errorhandler.d.ts) [errorhandler](https://github.com/expressjs/errorhandler) by [Santi Albo](https://github.com/santialbo)
* [:link:](error-stack-parser/error-stack-parser.d.ts) [ErrorStackParser](https://github.com/stacktracejs/error-stack-parser) by [Eric Wendelin](https://www.eriwen.com)
* [:link:](es6-collections/es6-collections.d.ts) [es6-collections](https://github.com/WebReflection/es6-collections) by [Ron Buckton](http://github.com/rbuckton)
* [:link:](es6-promise/es6-promise.d.ts) [es6-promise](https://github.com/jakearchibald/ES6-Promise) by [François de Campredon](https://github.com/fdecampredon), [vvakame](https://github.com/vvakame)
* [:link:](es6-shim/es6-shim.d.ts) [es6-shim](https://github.com/paulmillr/es6-shim) by [Ron Buckton](http://github.com/rbuckton)
* [:link:](escape-html/escape-html.d.ts) [escape-html](https://github.com/component/escape-html) by [Elisée MAURER](https://github.com/elisee)
* [:link:](escape-latex/escape-latex.d.ts) [escape-latex](https://github.com/dangmai/escape-latex) by [Oliver Schneider](https://github.com/olsio)
* [:link:](escape-string-regexp/escape-string-regexp.d.ts) [escape-string-regexp](https://github.com/sindresorhus/escape-string-regexp) by [kruncher](https://github.com/kruncher)
* [:link:](esprima/esprima.d.ts) [Esprima](http://esprima.org) by [teppeis](https://github.com/teppeis), [RReverser](https://github.com/RReverser)
* [:link:](estree/flow.d.ts) [ESTree AST extensions for Facebook Flow](https://github.com/estree/estree) by [RReverser](https://github.com/RReverser)
* [:link:](estree/estree.d.ts) [ESTree AST specification](https://github.com/estree/estree) by [RReverser](https://github.com/RReverser)
* [:link:](evaporate/evaporate.d.ts) [EvaporateJS](https://github.com/TTLabs/EvaporateJS) by [Andrew Kuklewicz](https://github.com/kookster), [Chris Rhoden](https://github.com/chrisrhoden)
* [:link:](event-kit/event-kit.d.ts) [event-kit](https://github.com/atom/event-kit) by [Vadim Macagon](https://github.com/enlight)
* [:link:](event-loop-lag/event-loop-lag.d.ts) [event-loop-lag](https://github.com/pebble/event-loop-lag) by [Rogier Schouten](https://github.com/rogierschouten)
* [:link:](event-stream/event-stream.d.ts) [event-stream](https://github.com/dominictarr/event-stream) by [David Gardiner](https://github.com/flcdrg)
@@ -430,8 +443,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](expect/expect.d.ts) [Expect](https://github.com/mjackson/expect) by [Justin Reidy](https://github.com/jmreidy)
* [:link:](expect.js/expect.js.d.ts) [expect.js](https://github.com/Automattic/expect.js) by [Teppei Sato](https://github.com/teppeis)
* [:link:](expectations/expectations.d.ts) [expectations.js](https://github.com/spmason/expectations) by [vvakame](https://github.com/vvakame)
* [:link:](express/express.d.ts) [Express 4.x](http://expressjs.com) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](express-serve-static-core/express-serve-static-core.d.ts) [Express 4.x](http://expressjs.com) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](express/express.d.ts) [Express 4.x](http://expressjs.com) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](express-brute/express-brute.d.ts) [express-brute](https://github.com/AdamPflug/express-brute) by [Cyril Schumacher](https://github.com/cyrilschumacher)
* [:link:](express-brute-memcached/express-brute-memcached.d.ts) [express-brute-memcached](https://github.com/AdamPflug/express-brute-memcached) by [Cyril Schumacher](https://github.com/cyrilschumacher)
* [:link:](express-brute-mongo/express-brute-mongo.d.ts) [express-brute-mongo](https://github.com/auth0/express-brute-mongo) by [Cyril Schumacher](https://github.com/cyrilschumacher)
@@ -447,6 +460,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [: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-useragent/express-useragent.d.ts) [express-useragent](https://www.npmjs.org/package/express-useragent) by [Isman Usoh](https://github.com/isman-usoh)
* [:link:](express-validator/express-validator.d.ts) [express-validator](https://github.com/ctavan/express-validator) by [Nathan Ridley](https://github.com/axefrog), [Jonathan Häberle](http://dreampulse.de)
* [:link:](extend/extend.d.ts) [extend](https://www.npmjs.com/package/extend) by [Stefan Steinhart](https://github.com/reppners)
* [:link:](wiiu/wiiu.d.ts) [Extended Functionality of Wii U Internet Browser](https://www.nintendo.co.jp/wiiu/hardware/internetbrowser/extended_functionality.html) by [MIZUSHIMA Junki](https://github.com/mzsm)
@@ -457,6 +471,12 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](fbsdk/fbsdk.d.ts) [Facebook Javascript SDK](https://developers.facebook.com/docs/javascript) by [Joshua Strobl](https://github.com/JoshStrobl)
* [:link:](fbemitter/fbemitter.d.ts) [Facebook's EventEmitter](https://github.com/facebook/emitter) by [kmxz](https://github.com/kmxz)
* [:link:](faker/faker.d.ts) [faker](http://marak.com/faker.js) by [Bas Pennings](https://github.com/basp), [Yuki Kokubun](https://github.com/Kuniwak)
* [:link:](falcor/falcor-browser.d.ts) [falcor](http://netflix.github.io/falcor) by [Quramy](https://github.com/Quramy)
* [:link:](falcor/falcor.d.ts) [falcor](http://netflix.github.io/falcor) by [Quramy](https://github.com/Quramy)
* [:link:](falcor-express/falcor-express.d.ts) [falcor-express](https://github.com/Netflix/falcor-express) by [Quramy](https://github.com/Quramy)
* [:link:](falcor-http-datasource/falcor-http-datasource.d.ts) [falcor-http-datasource](https://github.com/Netflix/falcor-http-datasource) by [Quramy](https://github.com/Quramy)
* [:link:](falcor-json-graph/falcor-json-graph.d.ts) [falcor-json-graph](https://github.com/Netflix/falcor-json-graph) by [Quramy](https://github.com/Quramy)
* [:link:](falcor-router/falcor-router.d.ts) [falcor-router](https://github.com/Netflix/falcor-router) by [Quramy](https://github.com/Quramy)
* [:link:](famous/famous.d.ts) [Famous Engine](http://famous.org) by [Boris Vasilenko](https://github.com/borisvasilenko)
* [:link:](fancybox/fancybox.d.ts) [fancyBox](https://github.com/fancyapps/fancyBox) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](farbtastic/farbtastic.d.ts) [Farbtastic: jQuery Color Wheel](http://mattfarina.github.io/farbtastic) by [Matt Brooks](https://github.com/EnableSoftware)
@@ -472,6 +492,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](filesystem/filesystem.d.ts) [File System API](http://www.w3.org/TR/file-system-api) by [Kon](http://phyzkit.net)
* [:link:](file-url/file-url.d.ts) [file-url](https://github.com/sindresorhus/file-url) by [MEDIA CHECK s.r.o.](http://www.mediacheck.cz)
* [:link:](FileSaver/FileSaver.d.ts) [FileSaver.js](https://github.com/eligrey/FileSaver.js) by [Cyril Schumacher](https://github.com/cyrilschumacher)
* [:link:](filesize/filesize.d.ts) [filesize](https://github.com/avoidwork/filesize.js) by [Giedrius Grabauskas](https://github.com/GiedriusGrabauskas)
* [:link:](finalhandler/finalhandler.d.ts) [finalhandler](https://github.com/pillarjs/finalhandler) by [Ilya Mochalov](https://github.com/chrootsu)
* [:link:](Finch/Finch.d.ts) [Finch](https://github.com/stoodder/finchjs) by [David Sichau](https://github.com/DavidSichau)
* [:link:](findup-sync/findup-sync.d.ts) [findup-sync](https://github.com/cowboy/node-findup-sync) by [Bart van der Schoor](https://github.com/Bartvds), [Nathan Brown](https://github.com/ngbrown)
@@ -507,8 +528,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](foundation-sites/foundation-sites.d.ts) [Foundation Sites](http://foundation.zurb.com) by [Sam Vloeberghs](https://github.com/samvloeberghs)
* [:link:](fpsmeter/FPSMeter.d.ts) [FPSmeter](http://darsa.in/fpsmeter) by [Aaron Lampros](http://github.com/alampros)
* [:link:](freedom/freedom-core-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek)
* [:link:](freedom/freedom-module-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek)
* [:link:](freedom/freedom.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek)
* [:link:](freedom/freedom-module-env.d.ts) [freedom](https://github.com/freedomjs/freedom) by [Jonathan Pevarnek](https://github.com/jpevarnek)
* [:link:](freeport/freeport.d.ts) [freeport](https://github.com/daaku/nodejs-freeport) by [Arne Schubert](https://github.com/atd-schubert)
* [:link:](from/from.d.ts) [from](https://github.com/dominictarr/from) by [Bart van der Schoor](https://github.com/Bartvds)
* [:link:](fromjs/fromjs.d.ts) [fromjs](https://github.com/suckgamony/fromjs) by [Glenn Dierckx](https://github.com/glenndierckx)
* [:link:](fromnow/fromnow.d.ts) [fromnow](https://github.com/lukeed/fromNow) by [Martin Bukovics](https://github.com/marinewater)
@@ -544,33 +566,33 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](goJS/goJS.d.ts) [GoJS](http://gojs.net) by [Northwoods Software](https://github.com/NorthwoodsSoftware)
* [:link:](google.analytics/ga.d.ts) [Google Analytics (Classic and Universal)](https://developers.google.com/analytics/devguides/collection/gajs) by [Ronnie Haakon Hegelund](http://ronniehegelund.blogspot.dk), [Pat Kujawa](http://patkujawa.com)
* [:link:](gapi/gapi.d.ts) [Google API Client](https://code.google.com/p/google-api-javascript-client) by [Frank M](https://github.com/sgtfrankieboy)
* [:link:](google-apps-script/google-apps-script.document.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.content.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.maps.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.mail.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.lock.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.language.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.contacts.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.charts.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.optimization.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.maps.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.calendar.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.cache.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.base.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.script.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.jdbc.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.gmail.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.forms.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.html.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.xml-service.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.utilities.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.url-fetch.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.script.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.ui.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.jdbc.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.drive.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.spreadsheet.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.mail.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.html.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.groups.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.gmail.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.types.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.properties.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.language.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.forms.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.spreadsheet.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.sites.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.xml-service.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.base.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.cache.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.calendar.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.lock.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.properties.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.document.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.optimization.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.groups.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google-apps-script/google-apps-script.drive.d.ts) [Google Apps Script 2015-11-12](https://developers.google.com/apps-script) by [motemen](https://github.com/motemen)
* [:link:](google.feeds/google.feed.api.d.ts) [Google Feed Apis](https://developers.google.com/feed) by [RodneyJT](https://github.com/RodneyJT)
* [:link:](google.geolocation/google.geolocation.d.ts) [Google Geolocation](https://code.google.com/p/geo-location-javascript) by [Vincent Bortone](https://github.com/vbortone)
* [:link:](googlemaps/google.maps.d.ts) [Google Maps JavaScript API](https://developers.google.com/maps) by [Folia A/S](http://www.folia.dk), [Chris Wrench](https://github.com/cgwrench)
@@ -583,6 +605,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](gapi.translate/gapi.translate.d.ts) [Google Translate API](https://developers.google.com/translate) by [Frank M](https://github.com/sgtfrankieboy)
* [:link:](gapi.urlshortener/gapi.urlshortener.d.ts) [Google Url Shortener API](https://developers.google.com/url-shortener) by [Frank M](https://github.com/sgtfrankieboy)
* [:link:](google.visualization/google.visualization.d.ts) [Google Visualisation Apis](https://developers.google.com/chart) by [Dan Ludwig](https://github.com/danludwig)
* [:link:](google-closure-compiler/google-closure-compiler.d.ts) [google-closure-compiler](https://github.com/chadkillingsworth/closure-compiler-npm) by [Evan Martin](http://neugierig.org)
* [:link:](google-maps/google-maps.d.ts) [google-maps](https://www.npmjs.com/package/google-maps) by [Deividas Bakanas](https://github.com/DeividasBakanas), [Giedrius Grabauskas](https://github.com/GiedriusGrabauskas)
* [:link:](gae.channel.api/gae.channel.api.d.ts) [GoogleAppEngine's Channel API](https://developers.google.com/appengine/docs/java/channel/javascript) by [vvakame](https://github.com/vvakame)
* [:link:](graceful-fs/graceful-fs.d.ts) [graceful-fs](https://github.com/cowboy/graceful-fs) by [Bart van der Schoor](https://github.com/Bartvds)
@@ -590,13 +613,14 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](graphene-pk11/graphene-pk11.d.ts) [graphene-pk11](https://github.com/PeculiarVentures/graphene) by [Stepan Miroshin](https://github.com/microshine)
* [:link:](graphviz/graphviz.d.ts) [Graphviz](https://github.com/glejeune/node-graphviz) by [Matt Frantz](https://github.com/mhfrantz)
* [:link:](gravatar/gravatar.d.ts) [gravatar](https://github.com/emerleite/node-gravatar) by [Denis Sokolov](https://github.com/denis-sokolov)
* [:link:](qrcode-generator/qrcode-generator.d.ts) [grcode-generator](https://github.com/kazuhikoarase/qrcode-generator) by [Stefan Huber](https://github.com/stefanhuber)
* [:link:](greasemonkey/greasemonkey.d.ts) [Greasemonkey](http://www.greasespot.net) by [Kota Saito](https://github.com/kotas)
* [:link:](greensock/greensock.d.ts) [GreenSock Animation Platform](http://www.greensock.com/get-started-js) by [Robert S](https://github.com/codebelt)
* [:link:](gridfs-stream/gridfs-stream.d.ts) [gridfs-stream](https://github.com/aheckmann/gridfs-stream) by [Lior Mualem](https://github.com/liorm)
* [: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/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:](gsap/TweenLite.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)
@@ -660,6 +684,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](gulp-watch/gulp-watch.d.ts) [gulp-watch](https://github.com/floatdrop/gulp-watch) by [Tanguy Krotoff](https://github.com/tkrotoff)
* [:link:](hammerjs/hammerjs.d.ts) [Hammer.js](http://hammerjs.github.io) by [Philip Bulley](https://github.com/milkisevil), [Han Lin Yap](https://github.com/codler)
* [:link:](handlebars/handlebars.d.ts) [Handlebars](http://handlebarsjs.com) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](handsontable/handsontable.d.ts) [Handsontable](https://handsontable.com) by [Handsoncode sp. z o.o.](http://handsoncode.net)
* [:link:](hapi/hapi.d.ts) [hapi](http://github.com/spumko/hapi) by [Jason Swearingen](http://github.com/jasonswearingen)
* [:link:](harmony-proxy/harmony-proxy.d.ts) [harmony-proxy](https://www.npmjs.com/package/harmony-proxy) by [Remo Jansen](https://github.com/remojansen)
* [:link:](hasher/hasher.d.ts) [Hasher.js](https://github.com/millermedeiros/hasher) by [flyfishMT](https://github.com/flyfishMT)
@@ -681,6 +706,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](hopscotch/hopscotch.d.ts) [Hopscotch](http://linkedin.github.io/hopscotch) by [Tim Perry](https://github.com/pimterry)
* [:link:](howlerjs/howler.d.ts) [howler.js](https://github.com/goldfire/howler.js) by [Pedro Casaubon](https://github.com/xperiments)
* [:link:](touch-events/touch-events.d.ts) [HTML Touch Events](http://www.w3.org/TR/touch-events) by [Kevin Barabash](https://github.com/kevinb7)
* [:link:](html-entities/html-entities.d.ts) [html-entities](https://www.npmjs.com/package/html-entities) by [Xavier Stouder](https://github.com/xstoudi)
* [:link:](html-to-text/html-to-text.d.ts) [html-to-text](https://github.com/werk85/node-html-to-text) by [Eryk Warren](https://github.com/erykwarren)
* [:link:](html2canvas/html2canvas.d.ts) [html2canvas.js](https://github.com/niklasvh/html2canvas) by [Richard Hepburn](https://github.com/rwhepburn)
* [:link:](html-minifier/html-minifier.d.ts) [HTMLMinifier](https://github.com/kangax/html-minifier) by [Tanguy Krotoff](https://github.com/tkrotoff)
@@ -693,8 +719,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 [Michael Ledin](https://github.com/mxl)
* [:link:](ng-i18next/ng-i18next.d.ts) [i18next](https://github.com/i18next/ng-i18next) by [Cyril Schumacher](https://github.com/cyrilschumacher)
* [:link:](i18next/i18next.d.ts) [i18next](http://i18next.com) by [Maarten Docter](https://github.com/mdocter)
* [:link:](i18next-browser-languagedetector/i18next-browser-languagedetector.d.ts) [i18next-browser-languagedetector](http://i18next.com) by [Cyril Schumacher](https://github.com/cyrilschumacher)
* [:link:](i18next-express-middleware/i18next-express-middleware.d.ts) [i18next-express-middleware](http://i18next.com) by [Cyril Schumacher](https://github.com/cyrilschumacher)
* [:link:](i18next-node-fs-backend/i18next-node-fs-backend.d.ts) [i18next-node-fs-backend](https://github.com/i18next/i18next-node-fs-backend) by [Cyril Schumacher](https://github.com/cyrilschumacher)
@@ -703,14 +729,16 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](ibm-mobilefirst/ibm-mobilefirst.d.ts) [IBM MobileFirst Platform Foundation](http://www.ibm.com/software/products/en/mobilefirstfoundation) by [Guillermo Ignacio Enriquez Gutierrez](https://github.com/nacho4d)
* [:link:](icepick/icepick.d.ts) [icepick](https://github.com/aearly/icepick) by [Nathan Brown](https://github.com/ngbrown)
* [:link:](icheck/icheck.d.ts) [iCheck](http://damirfoy.com/iCheck) by [Dániel Tar](https://github.com/qcz)
* [:link:](iconv/iconv.d.ts) [iconv](https://github.com/bnoordhuis/node-iconv) by [delphinus](https://github.com/delphinus35)
* [:link:](image-size/image-size.d.ts) [image-size](https://github.com/image-size/image-size) by [Elisée MAURER](https://github.com/elisee)
* [:link:](imagemagick/imagemagick.d.ts) [imagemagick](http://github.com/rsms/node-imagemagick) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
* [:link:](imagemagick-native/imagemagick-native.d.ts) [imagemagick-native](https://www.npmjs.org/package/imagemagick-native) by [Hiroki Horiuchi](https://github.com/horiuchi)
* [:link:](imagesloaded/imagesloaded.d.ts) [imagesLoaded](https://github.com/desandro/imagesloaded) by [Chris Charabaruk](http://github.com/coldacid)
* [:link:](imap/imap.d.ts) [imap](https://www.npmjs.com/package/imap) by [Peter Snider](https://github.com/psnider)
* [:link:](imgur-rest-api/imgur-rest-api.d.ts) [Imgur REST API v3](https://api.imgur.com) by [Luke William Westby](http://github.com/lukewestby)
* [:link:](immutability-helper/immutability-helper.d.ts) [immutability-helper](https://github.com/kolodny/immutability-helper) by [Sean Kelley](https://github.com/seansfkelley)
* [:link:](impress/impress.d.ts) [Impress.js](https://github.com/bartaz/impress.js) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](incremental-dom/incremental-dom.d.ts) [Incremetal DOM](https://github.com/google/incremental-dom) by [Basarat Ali Syed](https://github.com/basarat)
* [:link:](incremental-dom/incremental-dom.d.ts) [Incremetal DOM](https://github.com/google/incremental-dom) by [Basarat Ali Syed](https://github.com/basarat), [Markus Lanthaler](https://github.com/lanthaler)
* [:link:](inflected/inflected.d.ts) [inflected](https://github.com/martinandert/inflected) by [Daniel Schmidt](https://github.com/dsci)
* [:link:](inflection/inflection.d.ts) [inflection](https://github.com/dreamerslab/node.inflection) by [Shogo Iwano](https://github.com/shiwano)
* [:link:](inherits/inherits.d.ts) [inherits](https://github.com/isaacs/inherits) by [Ilya Mochalov](https://github.com/chrootsu)
@@ -727,6 +755,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](inversify/inversify.d.ts) [inversify](https://github.com/inversify/InversifyJS) by [inversify](https://github.com/inversify)
* [:link:](ionic/ionic.d.ts) [Ionic](http://ionicframework.com) by [Spencer Williams](https://github.com/spencerwi)
* [:link:](cordova-ionic/cordova-ionic.d.ts) [Ionic Cordova plugins](https://github.com/driftyco) by [Hendrik Maus](https://github.com/hendrikmaus)
* [:link:](ioredis/ioredis.d.ts) [ioredis](https://github.com/luin/ioredis) by [York Yao](https://github.com/plantain-00)
* [:link:](irc/irc.d.ts) [irc](https://github.com/martynsmith/node-irc) by [phillips1012](https://github.com/phillips1012)
* [:link:](is-lower-case/is-lower-case.d.ts) [is-lower-case](https://github.com/blakeembrey/is-lower-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
* [:link:](is-my-json-valid/is-my-json-valid.d.ts) [is-my-json-valid](https://github.com/mafintosh/is-my-json-valid) by [kruncher](https://github.com/kruncher)
@@ -877,6 +906,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](js-data-angular/js-data-angular.d.ts) [JSDataAngular](https://github.com/js-data/js-data-angular) by [Stefan Steinhart](https://github.com/reppners)
* [:link:](jsdeferred/jsdeferred.d.ts) [JSDeferred](https://github.com/cho45/jsdeferred) by [Daisuke Mino](https://github.com/minodisk)
* [:link:](jsdom/jsdom.d.ts) [jsdom](https://github.com/tmpvar/jsdom) by [Asana](https://asana.com)
* [:link:](jsen/jsen.d.ts) [jsen (JSON Sentinel)](https://github.com/bugventure/jsen) by [Vladimir Đokić](https://github.com/vladeck)
* [:link:](jsend/jsend.d.ts) [jsend](https://github.com/Prestaul/jsend) by [Federico Caselli](https://github.com/CaselIT)
* [:link:](jsesc/jsesc.d.ts) [jsesc](https://github.com/mathiasbynens/jsesc) by [Bart van der Schoor](https://github.com/Bartvds)
* [:link:](jsfl/jsfl.d.ts) [JSFL](https://adobe.com) by [soywiz](https://github.com/soywiz)
@@ -888,6 +918,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](jsnox/jsnox.d.ts) [JSnoX](https://github.com/af/jsnox) by [Steve Baker](https://github.com/stkb)
* [:link:](json-patch/json-patch.d.ts) [json-patch](https://github.com/bruth/jsonpatch-js) by [vvakame](https://github.com/vvakame)
* [:link:](json-pointer/json-pointer.d.ts) [json-pointer 1.0 l](https://www.npmjs.org/package/json-pointer) by [Bart van der Schoor](https://github.com/Bartvds)
* [:link:](json-socket/json-socket.d.ts) [json-socket](https://github.com/sebastianseilund/node-json-socket) by [Sven Reglitzki](https://github.com/svi3c)
* [:link:](json-stable-stringify/json-stable-stringify.d.ts) [json-stable-stringify](https://github.com/substack/json-stable-stringify) by [Matt Frantz](https://github.com/mhfrantz)
* [:link:](json5/json5.d.ts) [JSON5](http://json5.org) by [Jason Swearingen](https://jasonswearingen.github.io)
* [:link:](jsoneditoronline/jsoneditoronline.d.ts) [JSONEditorOnline](https://github.com/josdejong/jsoneditoronline) by [Vincent Bortone](https://github.com/vbortone)
@@ -904,6 +935,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](jsts/jsts.d.ts) [jsts](https://github.com/bjornharrtell/jsts) by [Stephane Alie](https://github.com/StephaneAlie)
* [:link:](jsuri/jsuri.d.ts) [jsUri](https://github.com/derek-watson/jsUri) by [Chris Charabaruk](http://github.com/coldacid), [Florian Wagner](http://github.com/flqw)
* [:link:](jsurl/jsurl.d.ts) [jsurl](https://github.com/Mikhus/jsurl) by [Alexey Gorshkov](https://github.com/agorshkov23)
* [:link:](jsx-chai/jsx-chai.d.ts) [jsx-chai](https://github.com/bkonkle/jsx-chai) by [Philipp Holzer](https://github.com/nupplaphil)
* [:link:](jszip/jszip.d.ts) [JSZip](http://stuk.github.com/jszip) by [mzeiher](https://github.com/mzeiher)
* [:link:](jug/jug.d.ts) [jug](https://github.com/kaiquewdev/Graph) by [yevt](https://github.com/yevt)
* [:link:](jwplayer/jwplayer.d.ts) [JW Player](http://developer.longtailvideo.com/trac) by [Martin Duparc](https://github.com/martinduparc)
@@ -947,17 +979,22 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](ko.plus/ko.plus.d.ts) [ko.plus](https://github.com/stevegreatrex/ko.plus) by [Howard Richards](https://github.com/conficient)
* [:link:](koa-compose/koa-compose.d.ts) [koa](https://github.com/koajs/compose) by [jKey Lu](https://github.com/jkeylu)
* [:link:](koa/koa.d.ts) [Koa 2.x](http://koajs.com) by [DavidCai1993](https://github.com/DavidCai1993)
* [:link:](koa-bodyparser/koa-bodyparser.d.ts) [koa-bodyparser v3.x](https://github.com/koajs/bodyparser) by [Jerry Chin](https://github.com/hellopao)
* [:link:](koa-favicon/koa-favicon.d.ts) [koa-favicon v2.x](https://github.com/koajs/favicon) by [Jerry Chin](https://github.com/hellopao)
* [:link:](koa-json/koa-json.d.ts) [koa-json v2.x](https://github.com/koajs/json) by [Alex Friedman](https://github.com/brooklyndev)
* [:link:](koa-router/koa-router.d.ts) [koa-router v7.x](https://github.com/alexmingoia/koa-router) by [Jerry Chin](https://github.com/hellopao)
* [:link:](kolite/knockout.dirtyFlag.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](kolite/knockout.command.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](kolite/knockout.activity.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](koa-static/koa-static.d.ts) [koa-static v2.x](https://github.com/koajs/static) by [Jerry Chin](https://github.com/hellopao)
* [:link:](kolite/kolite.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](kolite/knockout.activity.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](kolite/knockout.command.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](kolite/knockout.dirtyFlag.d.ts) [KoLite](https://github.com/CodeSeven/kolite) by [Boris Yankov](https://github.com/borisyankov)
* [:link:](konami.js/konami.d.ts) [Konami-js](https://github.com/snaptortoise/konami-js) by [Matthieu Mourisson](https://github.com/mareek)
* [:link:](kue/kue.d.ts) [kue 0.9.x](https://github.com/Automattic/kue) by [Nicholas Penree](http://github.com/drudge)
* [:link:](kuromoji/kuromoji.d.ts) [kuromoji.js](https://github.com/takuyaa/kuromoji.js) by [MIZUSHIMA Junki](https://github.com/mzsm)
* [:link:](ladda/ladda.d.ts) [Ladda](https://github.com/hakimel/Ladda) by [Danil Flores](https://github.com/dflor003), [Michael Lee](https://github.com/leemicw)
* [:link:](lls/lls.d.ts) [LargeLocalStorage](https://github.com/tantaman/LargeLocalStorage) by [Borislav Zhivkov](https://github.com/borislavjivkov)
* [:link:](later/later.d.ts) [LaterJS](http://bunkat.github.io/later) by [Jason D Dryhurst-Smith](http://jasonds.co.uk)
* [:link:](latinize/latinize.d.ts) [latinize](https://github.com/dundalek/latinize) by [Giedrius Grabauskas](https://github.com/GiedriusGrabauskas)
* [:link:](lazy.js/lazy.js.d.ts) [Lazy.js](https://github.com/dtao/lazy.js) by [Bart van der Schoor](https://github.com/Bartvds)
* [:link:](lazypipe/lazypipe.d.ts) [lazypipe](https://github.com/OverZealous/lazypipe) by [Thomas Corbière](https://github.com/tomc974)
* [:link:](leaflet-curve/leaflet-curve.d.ts) [leaflet-curve](https://github.com/onikiienko/Leaflet.curve) by [Onikiienko](https://github.com/onikiienko)
@@ -992,7 +1029,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [: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)
* [:link:](loggly/loggly.d.ts) [loggly](https://github.com/nodejitsu/node-loggly) by [Ray Martone](https://github.com/rmartone)
* [:link:](loglevel/loglevel.d.ts) [loglevel](https://github.com/pimterry/loglevel) by [Stefan Profanter](https://github.com/Pro), [Florian Wagner](https://github.com/flqw)
* [:link:](loglevel/loglevel.d.ts) [loglevel](https://github.com/pimterry/loglevel) by [Stefan Profanter](https://github.com/Pro), [Florian Wagner](https://github.com/flqw), [Gabor Szmetanko](https://github.com/szmeti)
* [:link:](logrotate-stream/logrotate-stream.d.ts) [logrotate-stream](https://github.com/dstokes/logrotate-stream) by [Rogier Schouten](https://github.com/rogierschouten)
* [:link:](lokijs/lokijs.d.ts) [lokijs](https://github.com/techfort/LokiJS) by [TeamworkGuy2](https://github.com/TeamworkGuy2)
* [:link:](lolex/lolex.d.ts) [lolex](https://github.com/sinonjs/lolex) by [Wim Looman](https://github.com/Nemo157)
@@ -1044,6 +1081,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](node-mysql-wrapper/my-meteor.d.ts) [meteorjs for node-mysql-wrapper which helps in development](https://github.com/nodets/node-mysql-wrapper) by [Makis Maropoulos](https://github.com/kataras)
* [:link:](method-override/method-override.d.ts) [method-override](https://github.com/expressjs/method-override) by [Santi Albo](https://github.com/santialbo)
* [:link:](metismenu/metismenu.d.ts) [metisMenu](http://github.com/onokumus/metisMenu) by [onokums](https://github.com/onokumus)
* [:link:](microgears/microgears.d.ts) [microgears](http://github.com/marcusdb/microgears) by [Marcus David Bronstein](https://github.com/marcusdb)
* [:link:](micromatch/micromatch.d.ts) [micromatch](https://github.com/jonschlinkert/micromatch) by [glen-84](https://github.com/glen-84)
* [:link:](microsoft-ajax/microsoft.ajax.d.ts) [Microsoft ASP.NET Ajax client side library](http://msdn.microsoft.com/en-us/library/ee341002(v=vs.100).aspx) by [Patrick Magee](https://github.com/pjmagee)
* [:link:](xrm/xrm.d.ts) [Microsoft Dynamics xRM API](http://www.microsoft.com/en-us/download/details.aspx?id=44567) by [David Berry](https://github.com/6ix4our), [Matt Ngan](https://github.com/mattngan), [Markus Mauch](https://github.com/markusmauch)
@@ -1072,8 +1110,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](mkpath/mkpath.d.ts) [mkpath](https://www.npmjs.com/package/mkpath) by [Jared Klopper](https://github.com/optical)
* [:link:](mmmagic/mmmagic.d.ts) [mmmagic](https://github.com/mscdex/mmmagic) by [Andrei Sebastian Cîmpean](http://andreime.com)
* [:link:](mobile-detect/mobile-detect.d.ts) [mobile-detect](http://hgoebl.github.io/mobile-detect.js) by [Martin McWhorter](https://github.com/martinmcwhorter)
* [:link:](mobservable-react/mobservable-react.d.ts) [mobservable](https://github.com/mweststrate/mobservable-react) by [Michel Weststrate](https://github.com/mweststrate)
* [: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-phantomjs/mocha-phantomjs.d.ts) [mocha-phantomjs](http://metaskills.net/mocha-phantomjs) by [Erik Schierboom](https://github.com/ErikSchierboom)
@@ -1081,9 +1119,9 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](mockery/mockery.d.ts) [mockery](https://github.com/mfncooper/mockery) by [jt000](https://github.com/jt000)
* [:link:](modernizr/modernizr.d.ts) [Modernizr](http://modernizr.com) by [Boris Yankov](https://github.com/borisyankov), [Theodore Brown](https://github.com/theodorejb), [Leon Yu](https://github.com/leonyu)
* [:link:](moment-timezone/moment-timezone.d.ts) [moment-timezone.js](http://momentjs.com/timezone) by [Michel Salib](https://github.com/michelsalib)
* [:link:](moment-range/moment-range.d.ts) [Moment.js](https://github.com/gf3/moment-range) by [Bart van den Burg](https://github.com/Burgov), [Wilgert Velinga](https://github.com/wilgert)
* [:link:](moment/moment.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-node.d.ts) [Moment.js](https://github.com/timrwood/moment) by [Michael Lakerveld](https://github.com/Lakerfield), [Aaron King](https://github.com/kingdango), [Hiroki Horiuchi](https://github.com/horiuchi), [Dick van den Brink](https://github.com/DickvdBrink), [Adi Dahiya](https://github.com/adidahiya), [Matt Brooks](https://github.com/EnableSoftware), [Gal Talmor](https://github.com/galtalmor)
* [:link:](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:](mongodb/mongodb.d.ts) [MongoDB](https://github.com/mongodb/node-mongodb-native/tree/2.1) by [Federico Caselli](https://github.com/CaselIT)
* [:link:](mongoose/mongoose.d.ts) [Mongoose](http://mongoosejs.com) by [horiuchi](https://github.com/horiuchi)
* [:link:](mongoose-auto-increment/mongoose-auto-increment.d.ts) [mongoose-auto-increment](https://github.com/codetunnel/mongoose-auto-increment) by [Aya Morisawa](https://github.com/AyaMorisawa)
@@ -1101,7 +1139,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](msgpack/msgpack.d.ts) [msgpack.js - MessagePack JavaScript Implementation](https://github.com/uupaa/msgpack.js) by [Shinya Mochizuki](https://github.com/enrapt-mochizuki)
* [:link:](msnodesql/msnodesql.d.ts) [msnodesql](https://github.com/WindowsAzure/node-sqlserver) by [Boris Yankov](https://github.com/borisyankov), [Maxime LUCE](https://github.com/SomaticIT)
* [:link:](msportalfx-test/msportalfx-test.d.ts) [msportalfx-test](https://msazure.visualstudio.com/DefaultCollection/AzureUX/_git/portalfx-msportalfx-test) by [Julio Casal](https://github.com/julioct)
* [:link:](mssql/mssql.d.ts) [mssql](https://www.npmjs.com/package/mssql) by [COLSA Corporation](http://www.colsa.com), [Ben Farr](https://github.com/jaminfarr)
* [:link:](mssql/mssql.d.ts) [mssql](https://www.npmjs.com/package/mssql) by [COLSA Corporation](http://www.colsa.com), [Ben Farr](https://github.com/jaminfarr), [Vitor Buzinaro](https://github.com/buzinas)
* [:link:](mu2/mu2.d.ts) [mu2](http://github.com/raycmorgan/mu) by [Jeff Goddard](https://github.com/jedigo)
* [:link:](multer/multer.d.ts) [multer](https://github.com/expressjs/multer) by [jt000](https://github.com/jt000), [vilicvane](https://vilic.github.io), [David Broder-Rodgers](https://github.com/DavidBR-SW)
* [:link:](multiplexjs/multiplexjs.d.ts) [Multiplex.js](http://github.com/multiplex/multiplex.js) by [Kamyar Nazeri](http://github.com/KamyarNazeri)
@@ -1109,6 +1147,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](mz/mz.d.ts) [mz](https://github.com/normalize/mz) by [Thomas Hickman](https://github.com/ThomasHickman)
* [:link:](nanoajax/nanoajax.d.ts) [nanoajax](https://github.com/yanatan16/nanoajax) by [Nathan Cahill](https://github.com/nathancahill)
* [:link:](natural/natural.d.ts) [Natural](https://github.com/NaturalNode/natural) by [Dylan R. E. Moonfire](https://github.com/dmoonfire)
* [:link:](natural-sort/natural-sort.d.ts) [NaturalSort](https://github.com/studio-b12/natural-sort) by [Antonio Morales](https://github.com/a-morales)
* [:link:](navigation/navigation.d.ts) [Navigation](http://grahammendick.github.io/navigation) by [Graham Mendick](https://github.com/grahammendick)
* [:link:](nconf/nconf.d.ts) [nconf](https://github.com/flatiron/nconf) by [Jeff Goddard](https://github.com/jedigo), [Jean-Martin Thibault](https://github.com/jmthibault)
* [:link:](ncp/ncp.d.ts) [ncp](https://github.com/AvianFlu/ncp) by [Bart van der Schoor](https://github.com/bartvds)
@@ -1117,6 +1156,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](netmask/netmask.d.ts) [Netmask](https://github.com/rs/node-netmask) by [Matt Frantz](https://github.com/mhfrantz)
* [:link:](nexpect/nexpect.d.ts) [nexpect](https://github.com/nodejitsu/nexpect) by [vvakame](http://github.com/vvakame)
* [:link:](ng-command/ng-command.d.ts) [ng-command](https://github.com/stephenlautier/ng-command) by [Stephen Lautier](https://github.com/stephenlautier)
* [:link:](ng-facebook/ng-facebook.d.ts) [ng-facebook](https://github.com/GoDisco/ngFacebook) by [Crevil](https://github.com/Crevil)
* [:link:](ng-flow/ng-flow.d.ts) [ng-flow](https://github.com/flowjs/ng-flow) by [Ryan McNamara](https://github.com/ryan10132)
* [:link:](ng-grid/ng-grid.d.ts) [ng-grid](http://angular-ui.github.io/ng-grid) by [Ken Smith](https://github.com/smithkl42), [Roland Zwaga](https://github.com/rolandzwaga), [Kent Cooper](https://github.com/kentcooper)
* [:link:](angular-idle/angular-idle.d.ts) [ng-idle](http://hackedbychinese.github.io/ng-idle) by [mthamil](https://github.com/mthamil)
@@ -1147,7 +1187,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](ng-stomp/ng-stomp.d.ts) [ngStomp](https://github.com/beevelop/ng-stomp) by [Lukasz Potapczuk](https://github.com/lpotapczuk)
* [:link:](ngstorage/ngstorage.d.ts) [ngstorage](https://github.com/gsklee/ngStorage) by [Jakub Pistek](https://github.com/kubiq)
* [:link:](nightmare/nightmare.d.ts) [Nightmare](https://github.com/segmentio/nightmare) by [horiuchi](https://github.com/horiuchi)
* [:link:](noble/noble.d.ts) [noble](https://github.com/sandeepmistry/noble) by [Seon-Wook Park](https://github.com/swook)
* [:link:](noble/noble.d.ts) [noble](https://github.com/sandeepmistry/noble) by [Seon-Wook Park](https://github.com/swook), [Hans Bakker](https://github.com/wind-rider)
* [:link:](nock/nock.d.ts) [nock](https://github.com/pgte/nock) by [bonnici](https://github.com/bonnici)
* [:link:](node-imap/imap.d.ts) [node imap](https://github.com/mscdex/node-imap) by [Steve Fenton](https://github.com/Steve-Fenton)
* [:link:](oauth2-server/oauth2-server.d.ts) [Node OAuth2 Server](https://github.com/thomseddon/node-oauth2-server) by [Robbie Van Gorkom](https://github.com/vangorra)
@@ -1189,12 +1229,13 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](node-sass-middleware/node-sass-middleware.d.ts) [node-sass-middleware](https://github.com/sass/node-sass-middleware) by [Pascal Garber](http://www.jumplink.eu)
* [:link:](node-schedule/node-schedule.d.ts) [node-schedule](https://github.com/tejasmanohar/node-schedule) by [Cyril Schumacher](https://github.com/cyrilschumacher)
* [:link:](node-slack/node-slack.d.ts) [node-slack](https://github.com/xoxco/node-slack) by [Qubo](https://github.com/tkQubo)
* [:link:](node-snap7/node-snap7.d.ts) [node-snap7](https://github.com/mathiask88/node-snap7) by [Heilingbrunner](https://github.com/heilingbrunner)
* [:link:](srp/srp.d.ts) [node-srp](https://github.com/mozilla/node-srp) by [Pat Smuk](https://github.com/Patman64)
* [:link:](stack-trace/stack-trace.d.ts) [node-stack-trace](https://github.com/felixge/node-stack-trace) by [Exceptionless](https://github.com/exceptionless)
* [:link:](node-uuid/node-uuid-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-uuid/node-uuid-base.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay)
* [:link:](node-uuid/node-uuid.d.ts) [node-uuid.js](https://github.com/broofa/node-uuid) by [Jeff May](https://github.com/jeffmay)
* [:link:](node-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), [Christopher Currens](https://github.com/ccurrens)
@@ -1242,8 +1283,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](once/once.d.ts) [once](https://github.com/isaacs/once) by [Denis Sokolov](https://github.com/denis-sokolov)
* [:link:](onoff/onoff.d.ts) [onoff](https://github.com/fivdi/onoff) by [Marcel Ernst](https://github.com/marcel-ernst)
* [:link:](onsenui/onsenui.d.ts) [Onsen UI](http://onsen.io) by [Fran Dios](https://github.com/frankdiox)
* [:link:](deep-extend/deep-extend.d.ts) [open](https://github.com/unclechu/node-deep-extend) by [rhysd](https://github.com/rhysd)
* [:link:](open/open.d.ts) [open](https://github.com/jjrdn/node-open) by [Bart van der Schoor](https://github.com/Bartvds)
* [:link:](deep-extend/deep-extend.d.ts) [open](https://github.com/unclechu/node-deep-extend) by [rhysd](https://github.com/rhysd)
* [:link:](OpenJsCad/openjscad.d.ts) [OpenJsCad.js](https://github.com/joostn/OpenJsCad) by [Dan Marshall](https://github.com/danmarshall)
* [:link:](openlayers/openlayers.d.ts) [OpenLayers](http://openlayers.org) by [Wouter Goedhart](https://github.com/woutergd)
* [:link:](openpgp/openpgp.d.ts) [openpgpjs](http://openpgpjs.org) by [Guillaume Lacasa](https://blog.lacasa.fr)
@@ -1271,12 +1312,14 @@ 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-twitter/passport-twitter.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction)
* [:link:](passport-facebook/passport-facebook.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction)
* [:link:](passport-google-oauth/passport-google-oauth.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction)
* [:link:](passport-twitter/passport-twitter.d.ts) [passport-facebook](https://github.com/jaredhanson/passport-facebook) by [James Roland Cabresos](https://github.com/staticfunction)
* [:link:](passport-facebook-token/passport-facebook-token.d.ts) [passport-facebook-token](https://github.com/drudge/passport-facebook-token) by [Ray Martone](https://github.com/rmartone)
* [:link:](passport-http-bearer/passport-http-bearer.d.ts) [passport-http-bearer](https://github.com/jaredhanson/passport-http-bearer) by [Isman Usoh](https://github.com/isman-usoh)
* [:link:](passport-jwt/passport-jwt.d.ts) [passport-jwt](https://github.com/themikenicholson/passport-jwt) by [TANAKA Koichi](https://github.com/mugeso)
* [:link:](passport-local/passport-local.d.ts) [passport-local](https://github.com/jaredhanson/passport-local) by [Maxime LUCE](https://github.com/SomaticIT)
* [:link:](password-hash/password-hash.d.ts) [password-hash 1.2.x](https://github.com/davidwood/node-password-hash) by [TANAKA Koichi](https://github.com/mugeso)
* [:link:](path-case/path-case.d.ts) [path-case](https://github.com/blakeembrey/path-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
* [:link:](path-exists/path-exists.d.ts) [path-exists](https://github.com/sindresorhus/path-exists) by [Shogo Iwano](https://github.com/shiwano)
* [:link:](path-parse/path-parse.d.ts) [path-parse](https://github.com/jbgutierrez/path-parse) by [Dan Chao](http://dchao.co)
@@ -1291,7 +1334,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](pegjs/pegjs.d.ts) [PEG.js](http://pegjs.org) by [vvakame](https://github.com/vvakame), [Tobias Kahlert](https://github.com/SrTobi)
* [:link:](persona/persona.d.ts) [Persona](http://www.mozilla.org/en-US/persona) by [James Frasca](https://github.com/Nycto)
* [:link:](pg/pg.d.ts) [pg](https://github.com/brianc/node-postgres) by [Phips Peter](http://pspeter3.com)
* [:link:](pg-promise/pg-promise.d.ts) [pg-promise](https://github.com/vitaly-t/pg-promise) by [Jörg Dotzki](https://github.com/ISO50)
* [:link:](pg-promise/pg-promise.d.ts) [pg-promise](https://github.com/vitaly-t/pg-promise) by [vvakame](https://github.com/vvakame)
* [:link:](pgwmodal/pgwmodal.d.ts) [PgwModal](http://pgwjs.com/pgwmodal) by [Pine Mizune](https://github.com/pine613)
* [:link:](phantomcss/phantomcss.d.ts) [PhantomCSS](https://github.com/Huddle/PhantomCSS) by [Amaury Bauzac](https://github.com/abauzac)
* [:link:](phantom/phantom.d.ts) [PhantomJS bridge for NodeJS](https://github.com/sgentle/phantomjs-node) by [horiuchi](https://github.com/horiuchi), [Random](https://github.com/llRandom)
@@ -1336,9 +1379,11 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](prelude-ls/prelude-ls.d.ts) [prelude.ls](http://www.preludels.com) by [Aya Morisawa](https://github.com/AyaMorisawa)
* [:link:](prettyjson/prettyjson.d.ts) [prettyjson](https://github.com/rafeca/prettyjson) by [Wael BEN ZID EL GUEBSI](https://github.com/benzid-wael)
* [:link:](meteor-prime8consulting-oauth2/meteor-prime8consulting-oauth2.d.ts) [prime8consulting:meteor-oauth2](https://github.com/prime-8-consulting/meteor-oauth2) by [Robbie Van Gorkom](https://github.com/vangorra)
* [:link:](prismjs/prism.d.ts) [prism](http://prismjs.com) by [Erik Lieben](https://github.com/eriklieben)
* [:link:](progressjs/progress.d.ts) [ProgressJs](http://usablica.github.io/progress.js) by [Shunsuke Ohtani](https://github.com/zaneli)
* [:link:](project-oxford/project-oxford.d.ts) [project-oxford](https://github.com/felixrieseberg/project-oxford) by [Scott Southwood](https://github.com/scsouthw)
* [:link:](promise/promise.d.ts) [promise](https://www.promisejs.org) by [Manuel Rueda](https://github.com/ManRueda)
* [:link:](promise-pg/promise-pg.d.ts) [promise-pg](https://bitbucket.org/lplabs/promise-pg) by [Chris Charabaruk](http://github.com/coldacid)
* [:link:](promise-pool/promise-pool.d.ts) [promise-pool](https://github.com/vilic/promise-pool) by [VILIC VANE](https://github.com/vilic)
* [:link:](promises-a-plus/promises-a-plus.d.ts) [promises-a-plus](http://promisesaplus.com) by [Igor Oleinikov](https://github.com/Igorbek)
* [:link:](promisify-supertest/promisify-supertest.d.ts) [promisify-supertest](https://www.npmjs.com/package/promisify-supertest) by [Leo Liang](https://github.com/aleung)
@@ -1364,6 +1409,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](qwest/qwest.d.ts) [qwest](https://github.com/pyrsmk/qwest) by [Lindsay Evans](https://github.com/lindsayevans)
* [:link:](rabbit.js/rabbit.js.d.ts) [rabbit.js](https://github.com/squaremo/rabbit.js) by [Wonshik Kim](https://github.com/wokim)
* [:link:](ractive/ractive.d.ts) [Ractive](http://ractivejs.org) by [Han Lin Yap](http://yap.nu)
* [:link:](radium/radium.d.ts) [radium](https://github.com/formidablelabs/radium) by [Alex Gorbatchev](https://github.com/alexgorbatchev), [Philipp Holzer](https://github.com/nupplaphil)
* [:link:](random-js/random-js.d.ts) [random-js](https://github.com/ckknight/random-js) by [Gustavo Di Pietro](https://github.com/pistacchio)
* [:link:](random-string/random-string.d.ts) [random-string](https://github.com/valiton/node-random-string) by [Sam Saint-Pettersen](https://github.com/stpettersens)
* [:link:](rangy/rangy.d.ts) [Rangy](https://github.com/timdown/rangy) by [Rudolph Gottesheim](http://www.midnight-design.at)
@@ -1390,6 +1436,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](rc-select/rc-select.d.ts) [React Select](https://github.com/react-component/select) by [Denis Tirilis](https://github.com/DenisTirilis)
* [:link:](react-bootstrap/react-bootstrap.d.ts) [react-bootstrap](https://github.com/react-bootstrap/react-bootstrap) by [Walker Burgin](https://github.com/walkerburgin), [Vincent Siao](https://github.com/vsiao)
* [:link:](react-bootstrap-table/react-bootstrap-table.d.ts) [react-bootstrap-table](https://github.com/AllenFang/react-bootstrap-table) by [Frank Laub](https://github.com/flaub)
* [:link:](react-cropper/react-cropper.d.ts) [react-cropper](https://github.com/roadmanfong/react-cropper) by [Stepan Mikhaylyuk](https://github.com/stepancar)
* [:link:](react-datagrid/react-datagrid.d.ts) [react-datagrid](https://github.com/zippyui/react-datagrid.git) by [Stephen Jelfs](https://github.com/stephenjelfs)
* [:link:](react-day-picker/react-day-picker.d.ts) [react-day-picker](https://github.com/gpbl/react-day-picker) by [Giampaolo Bellavite](https://github.com/gpbl), [Jason Killian](https://github.com/jkillian)
* [:link:](react-dropzone/react-dropzone.d.ts) [react-dropzone](https://github.com/paramaggarwal/react-dropzone) by [Mathieu Larouche Dube](https://github.com/matdube)
@@ -1400,9 +1447,10 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](react-input-calendar/react-input-calendar.d.ts) [react-input-calendar](https://github.com/Rudeg/react-input-calendar) by [Stepan Mikhaylyuk](https://github.com/stepancar)
* [:link:](react-intl/react-intl.d.ts) [react-intl](http://formatjs.io/react) by [Bruno Grieder](https://github.com/bgrieder), [Christian Droulers](https://github.com/cdroulers)
* [:link:](react-mixin/react-mixin.d.ts) [react-mixin](https://github.com/brigand/react-mixin) by [Qubo](https://github.com/tkqubo)
* [:link:](react-motion/react-motion.d.ts) [react-motion](https://github.com/chenglou/react-motion) by [Stepan Mikhaylyuk](https://github.com/stepancar)
* [:link:](react-native/react-native.d.ts) [react-native](https://github.com/facebook/react-native) by [Bruno Grieder](https://github.com/bgrieder)
* [:link:](react-props-decorators/react-props-decorators.d.ts) [react-props-decorators](https://github.com/popkirby/react-props-decorators) by [Qubo](https://github.com/tkqubo)
* [:link:](react-redux/react-redux.d.ts) [react-redux](https://github.com/rackt/react-redux) by [Qubo](https://github.com/tkqubo)
* [:link:](react-redux/react-redux.d.ts) [react-redux](https://github.com/rackt/react-redux) by [Qubo](https://github.com/tkqubo), [Sean Kelley](https://github.com/seansfkelley)
* [:link:](react-router/react-router.d.ts) [react-router](https://github.com/rackt/react-router) by [Sergey Buturlakin](https://github.com/sergey-buturlakin), [Yuichi Murata](https://github.com/mrk21), [Václav Ostrožlík](https://github.com/vasek17), [Nathan Brown](https://github.com/ngbrown)
* [:link:](react-router-bootstrap/react-router-bootstrap.d.ts) [react-router-bootstrap](https://github.com/react-bootstrap/react-router-bootstrap) by [Vincent Lesierse](https://github.com/vlesierse)
* [:link:](react-router-redux/react-router-redux.d.ts) [react-router-redux](https://github.com/rackt/react-router-redux) by [Isman Usoh](http://github.com/isman-usoh), [Noah Shipley](https://github.com/noah79), [Dimitri Rosenberg](https://github.com/rosendi)
@@ -1411,15 +1459,20 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](react-spinkit/react-spinkit.d.ts) [react-spinkit](https://github.com/KyleAMathews/react-spinkit) by [Qubo](https://github.com/tkqubo)
* [:link:](react-swf/react-swf.d.ts) [react-swf](https://github.com/syranide/react-swf) by [Stepan Mikhaylyuk](https://github.com/stepancar)
* [:link:](react-swipeable-views/react-swipeable-views.d.ts) [react-swipeable-views](https://github.com/oliviertassinari/react-swipeable-views) by [Michael Ledin](https://github.com/mxl)
* [:link:](react-tabs/react-tabs.d.ts) [react-tabs](https://github.com/reactjs/react-tabs) by [Yuu Igarashi](https://github.com/yu-i9)
* [:link:](react-tagcloud/react-tagcloud.d.ts) [react-tagcloud](https://github.com/madox2/react-tagcloud) by [wassname](https://github.com/wassname)
* [:link:](react-tap-event-plugin/react-tap-event-plugin.d.ts) [react-tap-event-plugin](https://github.com/zilverline/react-tap-event-plugin) by [Michael Ledin](https://github.com/mxl)
* [:link:](react-widgets/react-widgets.d.ts) [react-widgets](https://github.com/jquense/react-widgets) by [Rogier Schouten](https://github.com/rogierschouten)
* [:link:](read/read.d.ts) [read](https://github.com/isaacs/read) by [Tim JK](https://github.com/timjk)
* [:link:](readdir-stream/readdir-stream.d.ts) [readdir-stream](https://github.com/logicalparadox/readdir-stream) by [Bart van der Schoor](https://github.com/Bartvds)
* [:link:](rebass/rebass.d.ts) [Rebass](https://github.com/jxnblk/rebass) by [rhysd](https://rhysd.github.io)
* [:link:](recursive-readdir/recursive-readdir.d.ts) [recursive-readdir](https://github.com/jergason/recursive-readdir) by [Elisée Maurer](https://github.com/elisee)
* [:link:](redis/redis.d.ts) [redis](https://github.com/mranney/node_redis) by [Carlos Ballesteros Velasco](https://github.com/soywiz), [Peter Harris](https://github.com/CodeAnimal), [TANAKA Koichi](https://github.com/MugeSo)
* [:link:](redlock/redlock.d.ts) [Redlock](https://github.com/mike-marcacci/node-redlock) by [Ilya Mochalov](https://github.com/chrootsu)
* [:link:](redux/redux.d.ts) [Redux](https://github.com/rackt/redux) by [William Buchwalter](https://github.com/wbuchwalter), [Vincent Prouillet](https://github.com/Keats)
* [:link:](redux-action-utils/redux-action-utils.d.ts) [redux-action-utils](https://github.com/insin/redux-action-utils) by [Qubo](https://github.com/tkqubo)
* [:link:](redux-actions/redux-actions.d.ts) [redux-actions](https://github.com/acdlite/redux-actions) by [Jack Hsu](https://github.com/jaysoo)
* [:link:](redux-debounced/redux-debounced.d.ts) [redux-debounced](https://github.com/ryanseddon/redux-debounced) by [Sean Kelley](https://github.com/seansfkelley)
* [:link:](redux-devtools/redux-devtools.d.ts) [redux-devtools](https://github.com/gaearon/redux-devtools) by [Petryshyn Sergii](https://github.com/mc-petry)
* [:link:](redux-devtools-dock-monitor/redux-devtools-dock-monitor.d.ts) [redux-devtools-dock-monitor](https://github.com/gaearon/redux-devtools-dock-monitor) by [Petryshyn Sergii](https://github.com/mc-petry)
* [:link:](redux-devtools-log-monitor/redux-devtools-log-monitor.d.ts) [redux-devtools-log-monitor](https://github.com/gaearon/redux-devtools-log-monitor) by [Petryshyn Sergii](https://github.com/mc-petry)
@@ -1427,6 +1480,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](react-scroll/react-scroll.d.ts) [redux-immutable](https://github.com/fisshy/react-scroll) by [Pedro Pereira](https://github.com/oizie)
* [:link:](redux-immutable/redux-immutable.d.ts) [redux-immutable](https://github.com/gajus/redux-immutable) by [Pedro Pereira](https://github.com/oizie)
* [:link:](redux-logger/redux-logger.d.ts) [redux-logger](https://github.com/fcomb/redux-logger) by [Alexander Rusakov](https://github.com/arusakov)
* [:link:](redux-promise/redux-promise.d.ts) [redux-promise](https://github.com/acdlite/redux-promise) by [Rogelio Morrell Caballero](https://github.com/molekilla)
* [:link:](redux-router/redux-router.d.ts) [redux-router](https://github.com/rackt/redux-router) by [Stepan Mikhaylyuk](http://github.com/stepancar)
* [:link:](redux-saga/redux-saga.d.ts) [redux-saga](https://github.com/yelouafi/redux-saga) by [Daniel Lytkin](https://github.com/aikoven), [Dimitri Rosenberg](https://github.com/rosendi)
* [:link:](redux-thunk/redux-thunk.d.ts) [redux-thunk](https://github.com/gaearon/redux-thunk) by [Qubo](https://github.com/tkqubo)
@@ -1443,6 +1497,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](requirejs/require.d.ts) [RequireJS](http://requirejs.org) by [Josh Baldwin](https://github.com/jbaldwin)
* [:link:](reselect/reselect.d.ts) [reselect](https://github.com/rackt/reselect) by [Ian Ker-Seymer](https://github.com/ianks)
* [:link:](resemblejs/resemblejs.d.ts) [Resemble.js](http://huddle.github.io/Resemble.js) by [Tim Perry](https://github.com/pimterry)
* [:link:](resolve-from/resolve-from.d.ts) [resolve-from](https://github.com/sindresorhus/resolve-from) by [unional](https://github.com/unional)
* [:link:](response-time/response-time.d.ts) [response-time](https://github.com/expressjs/response-time) by [Uros Smolnik](https://github.com/urossmolnik)
* [:link:](rest-io/rest-io.d.ts) [rest-io](https://github.com/EnoF/rest-io) by [Andy Tang](https://github.com/EnoF), [Stefan Schacherl](https://github.com/TheBay0r)
* [:link:](rest/rest.d.ts) [rest.js](https://github.com/cujojs/rest) by [Wim Looman](https://github.com/Nemo157)
@@ -1469,6 +1524,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](rtree/rtree.d.ts) [rtree](https://github.com/leaflet-extras/RTree) by [Omede Firouz](https://github.com/oefirouz)
* [:link:](run-sequence/run-sequence.d.ts) [run-sequence](https://github.com/OverZealous/run-sequence) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
* [:link:](rx/rx.d.ts) [RxJS](http://rx.codeplex.com) by [gsino](http://www.codeplex.com/site/users/view/gsino), [Igor Oleinikov](https://github.com/Igorbek)
* [:link:](rx-dom/rx-dom.d.ts) [RxJS](https://github.com/Reactive-Extensions/RxJS-DOM) by [oliver Weichhold](https://github.com/oliverw)
* [:link:](rx/rx.aggregates.d.ts) [RxJS-Aggregates](http://rx.codeplex.com) by [Carl de Billy](http://carl.debilly.net), [Igor Oleinikov](https://github.com/Igorbek)
* [:link:](rx/rx.all.d.ts) [RxJS-All](http://rx.codeplex.com) by [Carl de Billy](http://carl.debilly.net), [Igor Oleinikov](https://github.com/Igorbek)
* [:link:](rx/rx.async.d.ts) [RxJS-Async](http://rx.codeplex.com) by [zoetrope](https://github.com/zoetrope), [Igor Oleinikov](https://github.com/Igorbek)
@@ -1511,8 +1567,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](sentence-case/sentence-case.d.ts) [sentence-case](https://github.com/blakeembrey/sentence-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
* [:link:](sequelize/sequelize.d.ts) [Sequelize](http://sequelizejs.com) by [samuelneff](https://github.com/samuelneff), [Peter Harris](https://github.com/codeanimal), [Ivan Drinchev](https://github.com/drinchev)
* [:link:](sequelize-fixtures/sequelize-fixtures.d.ts) [Sequelize-Fixtures](https://github.com/domasx2/sequelize-fixtures) by [Christian Schwarz](https://github.com/cschwarz)
* [:link:](serve-favicon/serve-favicon.d.ts) [serve-favicon](https://github.com/expressjs/serve-favicon) by [Uros Smolnik](https://github.com/urossmolnik)
* [:link:](on-headers/on-headers.d.ts) [serve-favicon](https://github.com/jshttp/on-headers) by [John Jeffery](https://github.com/jjeffery)
* [:link:](serve-favicon/serve-favicon.d.ts) [serve-favicon](https://github.com/expressjs/serve-favicon) by [Uros Smolnik](https://github.com/urossmolnik)
* [:link:](serve-index/serve-index.d.ts) [serve-index](https://github.com/expressjs/serve-index) by [Tanguy Krotoff](https://github.com/tkrotoff)
* [:link:](serve-static/serve-static.d.ts) [serve-static](https://github.com/expressjs/serve-static) by [Uros Smolnik](https://github.com/urossmolnik)
* [:link:](ss-utils/ss-utils.d.ts) [ServiceStack Utils](https://servicestack.net) by [Demis Bellot](https://github.com/mythz)
@@ -1546,13 +1602,16 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](slickgrid/slick.autotooltips.d.ts) [SlickGrid AutoToolTips Plugin](https://github.com/mleibman/SlickGrid) by [Ryo Iwamoto](https://github.com/ryiwamoto)
* [:link:](slickgrid/slick.headerbuttons.d.ts) [SlickGrid HeaderButtons Plugin](https://github.com/mleibman/SlickGrid) by [Derek Cicerone](https://github.com/derekcicerone)
* [:link:](slickgrid/slick.rowselectionmodel.d.ts) [SlickGrid RowSelectionModel Plugin](https://github.com/mleibman/SlickGrid) by [Derek Cicerone](https://github.com/derekcicerone)
* [:link:](slideout/slideout.d.ts) [Slideout](https://github.com/mango/slideout) by [Markus Peloso](https://github.com/ToastHawaii)
* [:link:](smoothie/smoothie.d.ts) [Smoothie Charts](https://github.com/joewalnes/smoothie) by [Drew Noakes](https://drewnoakes.com), [Mike H. Hawley](https://github.com/mikehhawley)
* [:link:](smtpapi/smtpapi.d.ts) [smtpapi-nodejs](https://github.com/sendgrid/smtpapi-nodejs) by [Antonio Morales](https://github.com/a-morales)
* [:link:](snake-case/snake-case.d.ts) [snake-case](https://github.com/blakeembrey/snake-case) by [Sam Saint-Pettersen](https://github.com/stpettersens)
* [:link:](snapsvg/snapsvg.d.ts) [Snap-SVG](https://github.com/adobe-webplatform/Snap.svg) by [Lars Klein](https://github.com/lhk), [Mattanja Kern](https://github.com/mattanja)
* [:link:](soap/soap.d.ts) [soap](https://www.npmjs.com/package/soap) by [Nicole Wang](https://github.com/nicoleWjie)
* [:link:](cordova-plugin-x-socialsharing/cordova-plugin-x-socialsharing.d.ts) [SocialSharing-PhoneGap-Plugin](https://github.com/EddyVerbruggen/SocialSharing-PhoneGap-Plugin) by [Markus Wagner](https://github.com/Ritzlgrmft)
* [:link:](socket.io/socket.io.d.ts) [socket.io](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages), [Florent Poujol](https://github.com/florentpoujol)
* [:link:](socket.io-client/socket.io-client.d.ts) [socket.io-client](http://socket.io) by [PROGRE](https://github.com/progre), [Damian Connolly](https://github.com/divillysausages), [Florent Poujol](https://github.com/florentpoujol)
* [:link:](socket.io-redis/socket.io-redis.d.ts) [socket.io-redis](https://github.com/socketio/socket.io-redis) by [Philipp Holzer](https://github.com/nupplaphil)
* [:link:](socket.io.users/socket.io.users.d.ts) [socket.io.users](https://github.com/nodets/socket.io.users) by [Makis Maropoulos](https://github.com/kataras)
* [:link:](socketty/socketty.d.ts) [Socketty](https://www.npmjs.com/package/socketty) by [Nax](https://github.com/Nax)
* [:link:](sockjs/sockjs.d.ts) [SockJS 0.3.x](https://github.com/sockjs/sockjs-client) by [Emil Ivanov](https://github.com/vladev)
@@ -1586,6 +1645,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](steam/steam.d.ts) [steam](https://github.com/seishun/node-steam) by [Andrey Kurdyumov](https://github.com/kant2002)
* [:link:](slick-carousel/slick-carousel.d.ts) [stick](http://kenwheeler.github.io/slick) by [John Gouigouix](https://github.com/orchestra-ts/DefinitelyTyped)
* [:link:](storejs/storejs.d.ts) [store.js](https://github.com/marcuswestin/store.js) by [Vincent Bortone](https://github.com/vbortone)
* [:link:](stream-meter/stream-meter.d.ts) [stream-meter](https://github.com/brycebaril/node-stream-meter) by [TANAKA Koichi](https://github.com/mugeso)
* [:link:](stream-series/stream-series.d.ts) [stream-series](https://github.com/rschmukler/stream-series) by [Keita Kagurazaka](https://github.com/k-kagurazaka)
* [:link:](stream-to-array/stream-to-array.d.ts) [stream-to-array](https://github.com/stream-utils/stream-to-array) by [Bart van der Schoor](https://github.com/Bartvds)
* [:link:](streamjs/streamjs.d.ts) [streamjs](http://winterbe.github.io/streamjs) by [Bence Eros](https://github.com/erosb)
@@ -1594,7 +1654,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](strip-json-comments/strip-json-comments.d.ts) [strip-json-comments](https://github.com/sindresorhus/strip-json-comments) by [Dylan R. E. Moonfire](https://github.com/dmoonfire)
* [:link:](stripe/stripe.d.ts) [stripe](https://stripe.com) by [Andy Hawkins](https://github.com/a904guy/,http://a904guy.com), [Eric J. Smith](https://github.com/ejsmith), [Amrit Kahlon](https://github.com/amritk)
* [:link:](stripe-checkout/stripe-checkout.d.ts) [Stripe Checkout](https://stripe.com/checkout) by [Chris Wrench](https://github.com/cgwrench)
* [:link:](stripe/stripe-node.d.ts) [stripe-node](https://github.com/stripe/stripe-node) by [William Johnston](https://github.com/wjohnsto)
* [:link:](stripe/stripe-node.d.ts) [stripe-node](https://github.com/stripe/stripe-node) by [William Johnston](https://github.com/wjohnsto), [Peter Harris](https://github.com/codeanimal)
* [:link:](strophe/strophe.d.ts) [Strophe.js](http://strophe.im/strophejs) by [David Deutsch](https://github.com/DavidKDeutsch)
* [:link:](stylus/stylus.d.ts) [stylus](https://github.com/LearnBoost/stylus) by [Maxime LUCE](https://github.com/SomaticIT)
* [:link:](sugar/sugar.d.ts) [Sugar](http://sugarjs.com) by [Josh Baldwin](https://github.com/jbaldwin)
@@ -1637,6 +1697,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](text-buffer/text-buffer.d.ts) [text-buffer](https://github.com/atom/text-buffer) by [vvakame](https://github.com/vvakame)
* [:link:](text-encoding/text-encoding.d.ts) [text-encoding](https://github.com/inexorabletash/text-encoding) by [MIZUNE Pine](https://github.com/pine613)
* [:link:](facebook-js-sdk/facebook-js-sdk.d.ts) [the Facebook Javascript SDK](https://developers.facebook.com/docs/javascript) by [Amrit Kahlon](https://github.com/amritk)
* [:link:](facebook-pixel/facebook-pixel.d.ts) [the Facebook Pixel Tag API](https://developers.facebook.com/docs/ads-for-websites/tag-api) by [Noctis Hsu](https://github.com/noctishsu)
* [:link:](spotify-api/spotify-api.d.ts) [The Spotify Web API](https://developer.spotify.com/web-api) by [Niels Kristian Hansen Skovmand](https://github.com/skovmand)
* [:link:](threejs/three-FirstPersonControls.d.ts) [three.js](http://mrdoob.github.com/three.js) by [Poul Kjeldager Sørensen](https://github.com/s093294)
* [:link:](threejs/three-canvasrenderer.d.ts) [three.js (CanvasRenderer.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/renderers/CanvasRenderer.js) by [Satoru Kimura](https://github.com/gyohk)
@@ -1655,7 +1716,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](threejs/three-transformcontrols.d.ts) [three.js (TransformControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/TransformControls.js) by [Stefan Profanter](https://github.com/Pro)
* [:link:](threejs/three-vrcontrols.d.ts) [three.js (VRControls.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/controls/VRControls.js) by [Toshiya Nakakura](https://github.com/nakakura)
* [:link:](threejs/three-vreffect.d.ts) [three.js (VREffect.js)](https://github.com/mrdoob/three.js/blob/master/examples/js/effects/VREffect.js) by [Toshiya Nakakura](https://github.com/nakakura)
* [:link:](threejs/three.d.ts) [three.js r73](http://mrdoob.github.com/three.js) by [Kon](http://phyzkit.net), [Satoru Kimura](https://github.com/gyohk)
* [:link:](threejs/three.d.ts) [three.js r75](http://mrdoob.github.com/three.js) by [Kon](http://phyzkit.net), [Satoru Kimura](https://github.com/gyohk), [Florent Poujol](https://github.com/florentpoujol), [SereznoKot](https://github.com/SereznoKot)
* [:link:](thrift/thrift.d.ts) [thrift](https://www.npmjs.com/package/thrift) by [Zachary Collins](https://github.com/corps)
* [:link:](through/through.d.ts) [through](https://github.com/dominictarr/through) by [Andrew Gaspar](https://github.com/AndrewGaspar)
* [:link:](through2/through2.d.ts) [through2 v](https://github.com/rvagg/through2) by [Bart van der Schoor](https://github.com/Bartvds), [jedmao](https://github.com/jedmao), [Georgios Valotasios](https://github.com/valotas)
@@ -1684,14 +1745,15 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](twig/twig.d.ts) [twig](https://github.com/justjohn/twig.js) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
* [:link:](twitter/twitter.d.ts) [Twitter for Websites](https://dev.twitter.com/web) by [Chitoku](https://github.com/chitoku-k)
* [:link:](jquery.bootstrap.wizard/jquery.bootstrap.wizard.d.ts) [twitter-bootstrap-wizard](https://github.com/VinceG/twitter-bootstrap-wizard) by [Blake Niemyjski](https://github.com/niemyjski)
* [:link:](twitter-text/twitter-text.d.ts) [twitter-text](https://github.com/twitter/twitter-text) by [rhysd](https://rhysd.github.io)
* [:link:](twix/twix.d.ts) [twix.js](https://github.com/icambron/twix.js) by [j3ko](https://github.com/j3ko)
* [:link:](type-check/type-check.d.ts) [type-check](https://github.com/gkz/type-check) by [Hans Windhoff](https://github.com/hansrwindhoff)
* [:link:](type-detect/type-detect.d.ts) [type-detect](https://github.com/chaijs/type-detect) by [Bart van der Schoor](https://github.com/Bartvds)
* [:link:](type-name/type-name.d.ts) [type-name](https://github.com/twada/type-name) by [OKUNOKENTARO](https://github.com/armorik83)
* [:link:](typeahead/typeahead.d.ts) [typeahead.js](http://twitter.github.io/typeahead.js) by [Ivaylo Gochkov](https://github.com/igochkov), [Gidon Junge](https://github.com/gjunge)
* [:link:](webfontloader/webfontloader.d.ts) [typekit-webfontloader](https://github.com/typekit/webfontloader) by [doskallemaskin](https://github.com/doskallemaskin)
* [:link:](typescript/typescript.d.ts) [TypeScript API](http://www.typescriptlang.org) by [Microsoft TypeScript](http://typescriptlang.org)
* [:link:](typescript-services/typescriptServices.d.ts) [TypeScript API](http://www.typescriptlang.org) by [Microsoft TypeScript](http://typescriptlang.org)
* [:link:](typescript/typescript.d.ts) [TypeScript API](http://www.typescriptlang.org) by [Microsoft TypeScript](http://typescriptlang.org)
* [:link:](typescript-deferred/typescript-deferred.d.ts) [typescript-deferred](https://github.com/DirtyHairy/typescript-deferred) by [Christian Speckner](https://github.com/DirtyHairy)
* [:link:](meteor-persistent-session/meteor-persistent-session.d.ts) [u2622:persistent-session](https://github.com/okgrow/meteor-persistent-session) by [Robbie Van Gorkom](https://github.com/vangorra)
* [:link:](ua-parser-js/ua-parser-js.d.ts) [ua-parser-js](https://github.com/faisalman/ua-parser-js) by [Viktor Miroshnikov](https://github.com/superduper), [Lucas Woo](https://github.com/legendecas)
@@ -1701,8 +1763,8 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](ui-router-extras/ui-router-extras.d.ts) [UI-Router Extras (ct.ui.router.extras module)](https://github.com/christopherthielen/ui-router-extras) by [Michael Putters](https://github.com/mputters), [Marcel van de Kamp](https://github.com/marcel-k)
* [:link:](ui-select/ui-select.d.ts) [ui-select](https://github.com/angular-ui/ui-select) by [Niko Kovačič](https://github.com/nkovacic)
* [:link:](uikit/uikit.d.ts) [uikit](http://getuikit.org) by [Giovanni Silva](https://github.com/giovannicandido)
* [:link:](umbraco/umbraco-services.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland)
* [:link:](umbraco/umbraco-resources.d.ts) [Umbraco](https://github.com/umbraco) by [DeCareSystemsIreland](https://github.com/DeCareSystemsIreland)
* [:link:](umbraco/umbraco-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:](umzug/umzug.d.ts) [Umzug](https://github.com/sequelize/umzug) by [Ivan Drinchev](https://github.com/drinchev)
* [:link:](underscore/underscore.d.ts) [Underscore](http://underscorejs.org) by [Boris Yankov](https://github.com/borisyankov), [Josh Baldwin](https://github.com/jbaldwin), [Christopher Currens](https://github.com/ccurrens)
@@ -1727,6 +1789,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](usage/usage.d.ts) [usage](https://github.com/arunoda/node-usage) by [Pascal Vomhoff](https://github.com/pvomhoff)
* [:link:](username/username.d.ts) [username](https://www.npmjs.com/package/username) by [Klaus Reimer](https://github.com/kayahr)
* [:link:](utils-merge/utils-merge.d.ts) [utils-merge](https://github.com/jaredhanson/utils-merge) by [Ilya Mochalov](https://github.com/chrootsu)
* [:link:](uuid-1345/uuid-1345.d.ts) [uuid-1345](https://github.com/scravy/uuid-1345) by [TANAKA Koichi](https://github.com/mugeso)
* [:link:](uuid/UUID.d.ts) [UUID.js](https://github.com/LiosK/UUID.js) by [Jason Jarrett](https://github.com/staxmanade)
* [:link:](valerie/valerie.d.ts) [valerie](https://github.com/davewatts/valerie) by [Howard Richards](https://github.com/conficient)
* [:link:](validator/validator.d.ts) [validator.js](https://github.com/chriso/validator.js) by [tgfjt](https://github.com/tgfjt), [Ilya Mochalov](https://github.com/chrootsu)
@@ -1753,6 +1816,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](vue/vue.d.ts) [vuejs](https://github.com/vuejs/vue) by [odangosan](https://github.com/odangosan), [kaorun343](https://github.com/kaorun343)
* [:link:](w2ui/w2ui.d.ts) [w2ui](http://w2ui.com) by [Valentin Robert](https://github.com/Ptival)
* [:link:](wake_on_lan/wake_on_lan.d.ts) [wake_on_lan](https://github.com/agnat/node_wake_on_lan) by [Tobias Kahlert](https://github.com/SrTobi)
* [:link:](wampy/wampy.d.ts) [wampy.js](https://github.com/KSDaemon/wampy.js) by [Konstantin Burkalev](https://github.com/KSDaemon)
* [:link:](watch/watch.d.ts) [watch](https://github.com/mikeal/watch) by [Carlos Ballesteros Velasco](https://github.com/soywiz)
* [:link:](jquery.watermark/jquery.watermark.d.ts) [Watermark plugin for jQuery](http://jquery-watermark.googlecode.com) by [Anwar Javed](https://github.com/anwarjaved)
* [:link:](webaudioapi/waa.d.ts) [Web Audio API](http://www.w3.org/TR/webaudio) by [Baruch Berger](https://github.com/bbss), [Kon](http://phyzkit.net), [kubosho](https://github.com/kubosho)
@@ -1775,6 +1839,7 @@ This document generated by [dt-contributors-generator](https://github.com/vvakam
* [:link:](when/when.d.ts) [When](https://github.com/cujojs/when) by [Derek Cicerone](https://github.com/derekcicerone), [Wim Looman](https://github.com/Nemo157)
* [:link:](which/which.d.ts) [which](https://github.com/isaacs/node-which) by [vvakame](https://github.com/vvakame)
* [:link:](jquery.window/jquery.window.d.ts) [Window plugin for jQuery](http://fstoke.me/jquery/window) by [Ryan Graham](https://github.com/ryan-codingintrigue)
* [:link:](windows-1251/windows-1251.d.ts) [windows-1251](https://github.com/mathiasbynens/windows-1251) by [RomanGolovanov](https://github.com/RomanGolovanov)
* [:link:](windows-service/windows-service.d.ts) [windows-service](https://bitbucket.org/stephenwvickers/node-windows-service) by [Rogier Schouten](https://github.com/rogierschouten)
* [:link:](winjs/winjs.d.ts) [WinJS](http://try.buildwinjs.com) by [TypeScript samples](https://www.typescriptlang.org), [Adam Hewitt](https://github.com/adamhewitt627), [Craig Treasure](https://github.com/craigktreasure), [Jeff Fisher](https://github.com/xirzec)
* [:link:](winreg/winreg.d.ts) [Winreg](https://github.com/fresc81/node-winreg) by [RX14](https://github.com/RX14)

View File

@@ -803,6 +803,10 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
textClickEnabled: boolean;
/** In case legend position is set to "absolute", you can set distance from top of the chart, in pixels. */
top: number;
/** Legend markers can mirror graphs settings, displaying a line and a real bullet as in the graph itself.
Set this property to true if you want to enable this feature. Note, if you set graph colors in dataProvider, they will not be reflected in the marker.
@default false*/
useGraphSettings: boolean;
/** Specifies if legend labels should be use same color as corresponding markers. */
useMarkerColorForLabels: boolean;
/** Alignment of the value text. Possible values are "left" and "right". right */
@@ -1239,6 +1243,11 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** Specifies if a grid line is placed on the center of a cell or on the beginning of a cell. Possible values are: "start" and "middle" This setting doesn't work if parseDates is set to true. middle */
gridPosition: string;
/** Specifies if minor grid should be displayed.
NOTE: If equalSpacing is set to true, this setting will be ignored.
@default false*/
minorGridEnabled: boolean;
/** Specifies the shortest period of your data. This should be set only if parseDates is set to "true". Possible period values: fff - milliseconds, ss - seconds, mm - minutes, hh - hours, DD - days, MM - months, YYYY - years. DD */
minPeriod: string;
@@ -1248,6 +1257,14 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
/** Specifies whether the graph should start on axis or not. In case you display columns, it is recommended to set this to false. If parseDates is set to true, startOnAxis will allways be false, unless equalSpacing is set to true. */
startOnAxis: boolean;
/** Works only when parseDates is set to true and equalSpacing is false. If you set it to true, at the position where bigger period changes,
category axis will display date strings of bot small and big period, in two rows.
@default false*/
twoLineMode: boolean;
/** Use line color for bullet
@default false*/
useLineColorForBulletBorder: boolean;
/** Number returns coordinate of a category. Works only if parseDates is false. If parseDates is true, use dateToCoordinate method. category - String */
categoryToCoordinate(category: string);
@@ -1486,6 +1503,10 @@ If you do not set properties such as dashLength, lineAlpha, lineColor, etc - val
@default true
*/
enabled: boolean;
/** If set to true, instead of a cursor line user will see a fill which width will always be equal to the width of one data item.
Recommend setting cursorAlpha to 0.1 or some other small number if using this feature.
@default false*/
fullWidth: boolean;
/** If this is set to true, only one balloon at a time will be displayed. Note, this is quite CPU consuming. */
oneBalloonOnly: boolean;
/** If this is set to true, the user will be able to pan the chart (Serial only) instead of zooming. */

View File

@@ -250,4 +250,25 @@ declare namespace angular.material {
interface IMenuService {
hide(response?: any, options?: any): angular.IPromise<any>;
}
interface IColorPalette {
red: IPalette;
pink: IPalette;
'deep-purple': IPalette;
indigo: IPalette;
blue: IPalette;
'light-blue': IPalette;
cyan: IPalette;
teal: IPalette;
green: IPalette;
'light-green': IPalette;
lime: IPalette;
yellow: IPalette;
amber: IPalette;
orange: IPalette;
'deep-orange': IPalette;
brown: IPalette;
grey: IPalette;
'blue-grey': IPalette;
}
}

View File

@@ -1,6 +1,6 @@
/// <reference path="./angular-permission.d.ts" />
import * as permission from 'angular-permission';
import permission = angular.permission;
angular
.module('fooModule', ['permission', 'user'])

View File

@@ -6,7 +6,8 @@
/// <reference path="../angularjs/angular.d.ts" />
/// <reference path="../angular-ui-router/angular-ui-router.d.ts" />
declare module 'angular-permission' {
declare namespace angular.permission {
export interface PermissionStore {
/**
* Allows to define permission on application configuration

View File

@@ -141,6 +141,8 @@ class UrlLocatorTestService implements IUrlLocatorTestService {
private $state: ng.ui.IStateService
) {
$rootScope.$on("$locationChangeSuccess", (event: ng.IAngularEvent) => this.onLocationChangeSuccess(event));
$rootScope.$on('$stateNotFound', (event: ng.IAngularEvent, unfoundState: ng.ui.IUnfoundState, fromState: ng.ui.IState, fromParams: {}) =>
this.onStateNotFound(event, unfoundState, fromState, fromParams));
}
public currentUser: any;
@@ -162,6 +164,15 @@ class UrlLocatorTestService implements IUrlLocatorTestService {
});
}
}
private onStateNotFound(event: ng.IAngularEvent,
unfoundState: ng.ui.IUnfoundState,
fromState: ng.ui.IState,
fromParams: {}) {
var unfoundTo: string = unfoundState.to;
var unfoundToParams: {} = unfoundState.toParams;
var unfoundOptions: ng.ui.IStateOptions = unfoundState.options
}
private stateServiceTest() {
this.$state.go("myState");

View File

@@ -100,6 +100,12 @@ declare namespace angular.ui {
cache?: boolean;
}
interface IUnfoundState {
to: string,
toParams: {},
options: IStateOptions
}
interface IStateProvider extends angular.IServiceProvider {
state(name:string, config:IState): IStateProvider;
state(config:IState): IStateProvider;

View File

@@ -87,6 +87,15 @@ logCall = logService.warn;
logs = logCall.logs;
///////////////////////////////////////
// ControllerService mock
///////////////////////////////////////
var $controller: ng.IControllerService;
$controller(class TestController {}, {}, {myBinding: 'works!'});
$controller(function TestController() {}, {someLocal: 42}, {myBinding: 'works!'});
$controller('TestController', {}, {myBinding: 'works!'});
///////////////////////////////////////
// IComponentControllerService
///////////////////////////////////////

View File

@@ -97,6 +97,18 @@ declare namespace angular {
logs: string[];
}
///////////////////////////////////////////////////////////////////////////
// ControllerService mock
// see https://docs.angularjs.org/api/ngMock/service/$controller
// This interface extends http://docs.angularjs.org/api/ng.$controller
///////////////////////////////////////////////////////////////////////////
interface IControllerService {
// Although the documentation doesn't state this, locals are optional
<T>(controllerConstructor: new (...args: any[]) => T, locals?: any, bindings?: any): T;
<T>(controllerConstructor: Function, locals?: any, bindings?: any): T;
<T>(controllerName: string, locals?: any, bindings?: any): T;
}
///////////////////////////////////////////////////////////////////////////
// ComponentControllerService
// see https://docs.angularjs.org/api/ngMock/service/$componentController

View File

@@ -98,9 +98,7 @@ resource = resourceClass.save({ key: 'value' }, { key: 'value' }, function () {
var promise : angular.IPromise<IMyResource>;
var arrayPromise : angular.IPromise<IMyResource[]>;
var json: {
[index: string]: any;
};
var json: IMyResource;
promise = resource.$delete();
promise = resource.$delete({ key: 'value' });

View File

@@ -153,9 +153,7 @@ declare namespace angular.resource {
/** the promise of the original server interaction that created this instance. **/
$promise : angular.IPromise<T>;
$resolved : boolean;
toJSON: () => {
[index: string]: any;
}
toJSON(): T;
}
/**

View File

@@ -204,7 +204,7 @@ declare namespace angular {
* @param name The name of the constant.
* @param value The constant value.
*/
constant(name: string, value: any): IModule;
constant<T>(name: string, value: T): IModule;
constant(object: Object): IModule;
/**
* The $controller service is used by Angular to create new controllers.
@@ -294,7 +294,7 @@ declare namespace angular {
* @param name The name of the instance.
* @param value The value.
*/
value(name: string, value: any): IModule;
value<T>(name: string, value: T): IModule;
value(object: Object): IModule;
/**

View File

@@ -311,7 +311,7 @@ declare namespace Backbone {
start(options?: HistoryOptions): boolean;
getHash(window?: Window): string;
getFragment(fragment?: string, forcePushState?: boolean): string;
getFragment(fragment?: string): string;
stop(): void;
route(route: string, callback: Function): number;
checkUrl(e?: any): void;
@@ -328,6 +328,7 @@ declare namespace Backbone {
// TODO: quickfix, this can't be fixed easy. The collection does not need to have the same model as the parent view.
collection?: Backbone.Collection<any>; //was: Collection<TModel>;
el?: any;
events?: EventsHash;
id?: string;
className?: string;
tagName?: string;

3
bunyan/bunyan.d.ts vendored
View File

@@ -20,6 +20,9 @@ declare module "bunyan" {
level(value: number | string):void;
levels(name: number | string, value: number | string):void;
fields:any;
src:boolean;
trace(error:Error, format?:any, ...params:any[]):void;
trace(buffer:Buffer, format?:any, ...params:any[]):void;
trace(obj:Object, format?:any, ...params:any[]):void;

View File

@@ -557,3 +557,7 @@ declare namespace Chartist {
}
declare var Chartist: Chartist.ChartistStatic;
declare module 'chartist' {
export = Chartist;
}

View File

@@ -2,20 +2,46 @@
// Project: https://github.com/js-coder/cookie.js
// Definitions by: Boltmade <https://github.com/Boltmade>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* Shortcut for cookie.get()
*/
declare function cookie(key : string, fallback?: string) : string;
declare function cookie(keys : string[], fallback?: string) : string;
declare namespace cookie {
/**
* Create a cookie. The value will automatically be escaped.
*/
export function set(key : string, value : string, options? : any) : void;
/**
* Set several cookies at once
*/
export function set(obj : any, options? : any) : void;
/**
* Remove cookies
*/
export function remove(key : string) : void;
export function remove(keys : string[]) : void;
export function remove(...args : string[]) : void;
/**
* Remove all cookies
*/
export function empty() : void;
/**
* Retrieve the value of the cookie
*/
export function get(key : string, fallback?: string) : string;
export function get(keys : string[], fallback?: string) : string;
/**
* Retrieve values of several cookies
*/
export function get(keys : string[], fallback?: string) : any;
/**
* Get all currently saved cookies
*/
export function all() : any;
/**
* Test if cookies are enabled
*/
export function enabled() : boolean;
}

View File

@@ -0,0 +1,14 @@
/// <reference path='../cordova/cordova.d.ts' />
/// <reference path='./cordova-plugin-background-mode.d.ts' />
cordova.plugins.backgroundMode.setDefaults({ silent: true });
cordova.plugins.backgroundMode.enable();
cordova.plugins.backgroundMode.isEnabled();
cordova.plugins.backgroundMode.isActivated();
cordova.plugins.backgroundMode.configure({ text: 'Insane Title' });
cordova.plugins.backgroundMode.onactivate = () => { }
cordova.plugins.backgroundMode.ondeactivate = () => { }
cordova.plugins.backgroundMode.onfailure = (errorCode) => { }

View File

@@ -0,0 +1,76 @@
// Type definitions for Apache Background Mode plugin
// Project: https://github.com/katzer/cordova-plugin-background-mode
// Definitions by: Paul Thiel <https://github.com/Lordnoname>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
* The plugin prevent the app from going to sleep while in background
*/
interface CordovaPluginBackgroundMode {
/**
* The background mode can be enabled
*/
enable(): void;
/**
* The background mode can be disabled
*/
disable(): void;
/**
* Checks if the background mode is enabled or not
*/
isEnabled(): boolean;
/**
* Checks if the background mode is activated or not
*/
isActivated(): boolean;
/**
* Function to get notified when the background mode has been activated
*/
onactivate(): void;
/**
* Function to get notified when the background mode has been deactivated
*/
ondeactivate(): void;
/**
* Function to get notified when the background could not benn activated
*/
onfailure(callback: (errorCode: number) => void): void;
/**
* Customize default title, ticker and text for the notification
*/
setDefaults(item: ICordovaPluginBackgroundModeNotificationItem): void;
/**
* Configure the default background notification
*/
configure(item: ICordovaPluginBackgroundModeNotificationItem): void;
}
interface ICordovaPluginBackgroundModeNotificationItem {
/**
* The title of the notification displayed in background mode
*/
title?: string,
/**
* The ticker of the notification displayed in background mode
*/
ticker?: string,
/**
* The body of the notification displayed in background mode
*/
text?: string,
/**
* Handles if app is coming to foreground when tapping on the notification
*/
resume?: boolean,
/**
* Handles if there is a notification when background is activated
*/
silent?: boolean
}
interface CordovaPlugins {
backgroundMode: CordovaPluginBackgroundMode
}

7429
devextreme/devextreme-15.2.7.d.ts vendored Normal file

File diff suppressed because it is too large Load Diff

View File

@@ -1,11 +1,11 @@
// Type definitions for DevExtreme 15.2.7
// Type definitions for DevExtreme 15.2.9
// Project: http://js.devexpress.com/
// Definitions by: DevExpress Inc. <http://devexpress.com/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts" />
declare namespace DevExpress {
declare module DevExpress {
/** A mixin that provides a capability to fire and subscribe to events. */
export interface EventsMixin<T> {
/** Subscribes to a specified event. */
@@ -427,6 +427,9 @@ declare namespace DevExpress {
/** A handler for the loadError event. */
onLoadError?: (e?: Error) => void;
}
export interface OperationPromise<T> extends JQueryPromise<T> {
operationId: number;
}
/** An object that provides access to a data web service or local data storage for collection container widgets. */
export class DataSource implements EventsMixin<DataSource> {
constructor(url: string);
@@ -454,9 +457,9 @@ declare namespace DevExpress {
/** Returns the key expression. */
key(): any;
/** Starts loading data. */
load(): JQueryPromise<Array<any>>;
load(): OperationPromise<Array<any>>;
/** Clears currently loaded DataSource items and calls the load() method. */
reload(): JQueryPromise<Array<any>>;
reload(): OperationPromise<Array<any>>;
/** Returns an object that would be passed to the load() method of the underlying Store according to the current data shaping option values of the current DataSource instance. */
loadOptions(): Object;
/** Returns the current pageSize option value. */
@@ -499,6 +502,7 @@ declare namespace DevExpress {
store(): Store;
/** Returns the number of data items available in an underlying Store after the last load() operation without paging. */
totalCount(): number;
cancel(operationId: number): boolean;
on(eventName: "loadingChanged", eventHandler: (isLoading: boolean) => void): DataSource;
on(eventName: "loadError", eventHandler: (e?: Error) => void): DataSource;
on(eventName: "changed", eventHandler: () => void): DataSource;
@@ -831,7 +835,7 @@ declare namespace DevExpress {
export function registerPalette(paletteName: string, palette: Object): void;
}
}
declare namespace DevExpress.ui {
declare module DevExpress.ui {
export interface dxValidatorOptions extends DOMComponentOptions {
/** An array of validation rules to be checked for the editor with which the dxValidator object is associated. */
validationRules?: Array<any>;
@@ -1369,7 +1373,7 @@ declare namespace DevExpress.ui {
constructor(element: Element, options?: dxMultiViewOptions);
}
export interface dxMapOptions extends WidgetOptions {
/** Specifies whether or not the widget automatically adjusts center and zoom option values when adding a new marker or route or when creating a widget if it initially contains markers or routes. */
/** Specifies whether or not the widget automatically adjusts center and zoom option values when adding a new marker or route, or when creating a widget if it initially contains markers or routes. */
autoAdjust?: boolean;
center?: {
/** The latitude location displayed in the center of the widget. */
@@ -2157,7 +2161,7 @@ declare namespace DevExpress.ui {
requiredMark?: string;
/** The text displayed for optional fields. */
optionalMark?: string;
/** Specifies the message that is shown for end-users a required field value is not specified. */
/** Specifies the message that is shown for end-users if a required field value is not specified. */
requiredMessage?: string;
/** Specifies whether or not the total validation summary is displayed on the form. */
showValidationSummary?: boolean;
@@ -2406,10 +2410,10 @@ interface JQuery {
dxForm(options: "instance"): DevExpress.ui.dxForm;
dxForm(options: string): any;
dxForm(options: string, ...params: any[]): any;
dxForm(options: DevExpress.ui.dxForm): JQuery;
dxForm(options: DevExpress.ui.dxFormOptions): JQuery;
}
declare namespace DevExpress.ui {
declare module DevExpress.ui {
export interface dxTileViewOptions extends CollectionWidgetOptions {
/** A Boolean value specifying whether or not the widget changes its state when interacting with a user. */
activeStateEnabled?: boolean;
@@ -2646,7 +2650,7 @@ interface JQuery {
dxDropDownMenu(options: string, ...params: any[]): any;
dxDropDownMenu(options: DevExpress.ui.dxDropDownMenuOptions): JQuery;
}
declare namespace DevExpress.data {
declare module DevExpress.data {
export interface XmlaStoreOptions {
/** The HTTP address to an XMLA OLAP server. */
url?: string;
@@ -2693,11 +2697,11 @@ declare namespace DevExpress.data {
groupName?: string;
/** The index of the field within a group. */
groupIndex?: number;
/** Specifies the initial sort order of field values. */
/** Specifies the sort order of field values. */
sortOrder?: string;
/** Specifies how field data should be sorted. Can be used for the XmlaStore store type only. */
sortBy?: string;
/** Specifies the data field against which the header items of this field should be sorted. */
/** Sorts the header items of this field by the summary values of another field. */
sortBySummaryField?: string;
/** The array of field names that specify a path to column/row whose summary field is used for sorting of this field's header items. */
sortBySummaryPath?: Array<any>;
@@ -2843,7 +2847,7 @@ declare namespace DevExpress.data {
off(eventName: string, eventHandler: Function): PivotGridDataSource;
}
}
declare namespace DevExpress.ui {
declare module DevExpress.ui {
export interface dxSchedulerOptions extends WidgetOptions {
/** Specifies a date displayed on the current scheduler view by default. */
currentDate?: Date;
@@ -2873,7 +2877,7 @@ declare namespace DevExpress.ui {
showAllDayPanel?: boolean;
/** Specifies cell duration in minutes. */
cellDuration?: number;
/** Specifies the edit mode for recurrent appointments. */
/** Specifies the edit mode for recurring appointments. */
recurrenceEditMode?: string;
/** Specifies which editing operations an end-user can perform on appointments. */
editing?: {
@@ -2963,10 +2967,10 @@ declare namespace DevExpress.ui {
updateAppointment(target: Object, appointment: Object): void;
/** Deletes the appointment defined by the parameter from the the data associated with the widget. */
deleteAppointment(appointment: Object): void;
/** Scrolls the scheduler work space to the specified time. */
scrollToTime(hours: number, minutes: number): void;
/** Displays the Appointment Details popup. */
showAppointmentPopup(appointmentData: Object, createNewAppointment?: boolean): void;
/** Scrolls the scheduler work space to the specified time of the specified day. */
scrollToTime(hours: number, minutes: number, date: Date): void;
/** Displayes the Appointment Details popup. */
showAppointmentPopup(appointmentData: Object, createNewAppointment?: boolean, currentAppointmentData?: Object): void;
}
export interface dxColorBoxOptions extends dxDropDownEditorOptions {
/** Specifies the text displayed on the button that applies changes and closes the drop-down editor. */
@@ -3771,6 +3775,8 @@ declare namespace DevExpress.ui {
summaryType?: string;
/** Specifies a format for the summary item value. */
valueFormat?: string;
/** Specifies whether or not to skip empty strings, null and undefined values when calculating a summary. */
skipEmptyValues?: boolean;
}>;
/** Specifies items of the total summary. */
totalItems?: Array<{
@@ -3797,7 +3803,11 @@ declare namespace DevExpress.ui {
summaryType?: string;
/** Specifies a format for the summary item value. */
valueFormat?: string;
/** Specifies whether or not to skip empty strings, null and undefined values when calculating a summary. */
skipEmptyValues?: boolean;
}>;
/** Specifies whether or not to skip empty strings, null and undefined values when calculating a summary. */
skipEmptyValues?: boolean;
/** Allows you to use a custom aggregate function to calculate the value of a summary item. */
calculateCustomSummary?: (options: {
component: dxDataGrid;
@@ -4037,7 +4047,7 @@ declare namespace DevExpress.ui {
/** The string to display as an Export to Excel file context menu item. */
exportToExcel?: string;
};
/** The Load panel configuration options. */
/** Specifies options configuring the load panel. */
loadPanel?: {
/** Enables or disables the load panel. */
enabled?: boolean;
@@ -4189,7 +4199,7 @@ interface JQuery {
dxScheduler(options: string, ...params: any[]): any;
dxScheduler(options: DevExpress.ui.dxSchedulerOptions): JQuery;
}
declare namespace DevExpress.framework {
declare module DevExpress.framework {
/** An object used to store information on the views displayed in an application. */
export class ViewCache {
viewRemoved: JQueryCallback;
@@ -4471,7 +4481,7 @@ declare namespace DevExpress.framework {
}
}
}
declare namespace DevExpress.viz.core {
declare module DevExpress.viz.core {
/**
* Applies a theme for the entire page with several DevExtreme visualization widgets.
* @deprecated Use the DevExpress.viz.currentTheme(theme) method instead.
@@ -4707,7 +4717,7 @@ declare namespace DevExpress.viz.core {
svg(): string;
}
}
declare namespace DevExpress.viz.charts {
declare module DevExpress.viz.charts {
/** This section describes the fields and methods that can be used in code to manipulate the Series object. */
export interface BaseSeries {
/** Provides information about the state of the series object. */
@@ -5738,6 +5748,8 @@ declare namespace DevExpress.viz.charts {
equalBarWidth?: boolean;
/** Specifies a common bar width as a percentage from 0 to 1. */
barWidth?: number;
/** Forces the widget to treat negative values as zeroes. Applies to stacked-like series only. */
negativesAsZeroes?: boolean;
}
export interface Legend extends AdvancedLegend {
/** Specifies whether the legend is located outside or inside the chart's plot. */
@@ -5799,7 +5811,7 @@ declare namespace DevExpress.viz.charts {
customizeText?: (info: { value: any; valueText: string; point: ChartPoint; }) => string;
}
};
/** Specifies a default pane for the chart's series. */
/** Specifies a default pane for the chart series. */
defaultPane?: string;
/** Specifies a coefficient determining the diameter of the largest bubble. */
maxBubbleSize?: number;
@@ -5956,7 +5968,7 @@ interface JQuery {
dxPolarChart(methodName: string, ...params: any[]): any;
dxPolarChart(methodName: "instance"): DevExpress.viz.charts.dxPolarChart;
}
declare namespace DevExpress.viz.gauges {
declare module DevExpress.viz.gauges {
export interface BaseRangeContainer {
/** Specifies a range container's background color. */
backgroundColor?: string;
@@ -6373,7 +6385,7 @@ interface JQuery {
dxBarGauge(methodName: string, ...params: any[]): any;
dxBarGauge(methodName: "instance"): DevExpress.viz.gauges.dxBarGauge;
}
declare namespace DevExpress.viz.rangeSelector {
declare module DevExpress.viz.rangeSelector {
export interface dxRangeSelectorOptions extends viz.core.BaseWidgetOptions {
/** Specifies the options for the range selector's background. */
background?: {
@@ -6425,6 +6437,8 @@ declare namespace DevExpress.viz.rangeSelector {
equalBarWidth?: boolean;
/** Specifies a common bar width as a percentage from 0 to 1. */
barWidth?: number;
/** Forces the widget to treat negative values as zeroes. Applies to stacked-like series only. */
negativesAsZeroes?: boolean;
/** Sets the name of the palette to be used in the range selector's chart. Alternatively, an array of colors can be set as a custom palette to be used within this chart. */
palette?: any;
/** An object defining the charts series. */
@@ -6667,7 +6681,7 @@ interface JQuery {
dxRangeSelector(methodName: string, ...params: any[]): any;
dxRangeSelector(methodName: "instance"): DevExpress.viz.rangeSelector.dxRangeSelector;
}
declare namespace DevExpress.viz.map {
declare module DevExpress.viz.map {
/** This section describes the fields and methods that can be used in code to manipulate the Layer object. */
export interface MapLayer {
/** The name of the layer. */
@@ -7306,7 +7320,7 @@ interface JQuery {
dxVectorMap(methodName: string, ...params: any[]): any;
dxVectorMap(methodName: "instance"): DevExpress.viz.map.dxVectorMap;
}
declare namespace DevExpress.viz.sparklines {
declare module DevExpress.viz.sparklines {
export interface SparklineTooltip extends viz.core.Tooltip {
/**
* Specifies how a tooltip is horizontally aligned relative to the graph.

21
dom4/dom4.d.ts vendored
View File

@@ -9,21 +9,6 @@ interface ParentNode {
*/
children: HTMLCollection;
/**
* Returns the first child that is an element, and null otherwise.
*/
firstElementChild: Element;
/**
* Returns the last child that is an element, and null otherwise.
*/
lastElementChild: Element;
/**
* Returns the number of children that are elements.
*/
childElementCount: number;
/**
* Returns the first element that is a descendant of node that matches relativeSelectors.
*/
@@ -47,11 +32,11 @@ interface Element extends ParentNode {
matches(selectors: string): boolean;
}
interface Elements extends ParentNode, Array<Element> {
interface Elements extends ElementTraversal, ParentNode, Array<Element> {
}
interface Document extends ParentNode {
interface Document extends ElementTraversal, ParentNode {
}
interface DocumentFragment extends ParentNode {
interface DocumentFragment extends ElementTraversal, ParentNode {
}

View File

@@ -4,6 +4,9 @@ import Dropzone = require("dropzone");
const dropzoneFromString = new Dropzone(".test");
const dropzoneFromElement = new Dropzone(document.getElementById("test"));
const dropzoneRenameFunction = function(name: string){
return name;
};
const dropzoneWithOptions = new Dropzone(".test", {
url: "/some/url",
@@ -25,10 +28,12 @@ const dropzoneWithOptions = new Dropzone(".test", {
clickable: true,
ignoreHiddenFiles: true,
acceptedFiles: "image/*",
renameFilename: dropzoneRenameFunction,
autoProcessQueue: true,
autoQueue: true,
addRemoveLinks: true,
previewsContainer: "<div></div>",
hiddenInputContainer: document.createElement("input"),
capture: "camera",
dictDefaultMessage: "",

View File

@@ -2,6 +2,9 @@
const dropzoneFromString = new Dropzone(".test");
const dropzoneFromElement = new Dropzone(document.getElementById("test"));
const dropzoneRenameFunction = function (name:string):string {
return name + 'new';
};
const dropzoneWithOptions = new Dropzone(".test", {
url: "/some/url",
@@ -26,10 +29,12 @@ const dropzoneWithOptions = new Dropzone(".test", {
clickable: true,
ignoreHiddenFiles: true,
acceptedFiles: "image/*",
renameFilename: dropzoneRenameFunction,
autoProcessQueue: true,
autoQueue: true,
addRemoveLinks: true,
previewsContainer: "<div></div>",
hiddenInputContainer: document.createElement("input"),
capture: "camera",
dictDefaultMessage: "",

View File

@@ -1,6 +1,6 @@
// Type definitions for Dropzone 4.0.1
// Type definitions for Dropzone 4.3.0
// Project: http://www.dropzonejs.com/
// Definitions 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>
// Definitions 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>, Simon Huber <https://github.com/renuo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
@@ -45,10 +45,12 @@ interface DropzoneOptions {
clickable?: boolean|string|HTMLElement|(string|HTMLElement)[];
ignoreHiddenFiles?: boolean;
acceptedFiles?: string;
renameFilename?(name:string): string;
autoProcessQueue?: boolean;
autoQueue?: boolean;
addRemoveLinks?: boolean;
previewsContainer?: boolean|string|HTMLElement;
hiddenInputContainer?: HTMLElement;
capture?: string;
dictDefaultMessage?: string;

View File

@@ -340,11 +340,15 @@ win.show();
// content-tracing
// https://github.com/atom/electron/blob/master/docs/api/content-tracing.md
contentTracing.startRecording('*', contentTracing.DEFAULT_OPTIONS, () => {
console.log('Tracing started');
const options = {
categoryFilter: '*',
traceOptions: 'record-until-full,enable-sampling'
}
setTimeout(() => {
contentTracing.stopRecording('', path => {
contentTracing.startRecording(options, function() {
console.log('Tracing started');
setTimeout(function() {
contentTracing.stopRecording('', function(path) {
console.log('Tracing data recorded to ' + path);
});
}, 5000);
@@ -408,7 +412,7 @@ var menuItem = new MenuItem({});
menuItem.label = 'Hello World!';
menuItem.click = (menuItem, browserWindow) => {
console.log('click', menuItem, browserWindow);
console.log('click', menuItem, browserWindow);
};
// menu
@@ -644,7 +648,7 @@ app.on('ready', () => {
appIcon.setToolTip('This is my application.');
appIcon.setContextMenu(contextMenu);
appIcon.setImage('/path/to/new/icon');
appIcon.popUpContextMenu(contextMenu, {x: 100, y: 100});
appIcon.popUpContextMenu(contextMenu, {x: 100, y: 100});
appIcon.on('click', (event, bounds) => {
console.log('click', event, bounds);
@@ -745,7 +749,7 @@ shell.openItem('/home/user/Desktop/test.txt');
shell.moveItemToTrash('/home/user/Desktop/test.txt');
shell.openExternal('https://github.com', {
activate: false
activate: false
});
shell.beep();
@@ -775,7 +779,7 @@ session.defaultSession.cookies.get({ url : "http://www.github.com" }, (error, co
var cookie = { url : "http://www.github.com", name : "dummy_name", value : "dummy" };
session.defaultSession.cookies.set(cookie, (error) => {
if (error) {
console.error(error);
console.error(error);
}
});
@@ -815,3 +819,24 @@ session.defaultSession.enableNetworkEmulation({
session.defaultSession.setCertificateVerifyProc((hostname, cert, callback) => {
callback((hostname === 'github.com') ? true : false);
});
session.defaultSession.setPermissionRequestHandler(function(webContents, permission, callback) {
if (webContents.getURL() === 'github.com') {
if (permission == "notifications") {
callback(false);
return;
}
}
callback(true);
});
// Modify the user agent for all requests to the following urls.
var filter = {
urls: ["https://*.github.com/*", "*://electron.github.io"]
};
session.defaultSession.webRequest.onBeforeSendHeaders(filter, function(details, callback) {
details.requestHeaders['User-Agent'] = "MyAgent";
callback({cancel: false, requestHeaders: details.requestHeaders});
});

View File

@@ -1,4 +1,4 @@
// Type definitions for Electron v0.37.4
// Type definitions for Electron v0.37.6
// Project: http://electron.atom.io/
// Definitions by: jedmao <https://github.com/jedmao/>, rhysd <https://rhysd.github.io>, Milan Burda <https://github.com/miniak/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -25,7 +25,7 @@ declare namespace Electron {
sender: EventEmitter;
}
// https://github.com/atom/electron/blob/master/docs/api/app.md
// https://github.com/electron/electron/blob/master/docs/api/app.md
/**
* The app module is responsible for controlling the application's lifecycle.
@@ -319,7 +319,7 @@ declare namespace Electron {
*
* Note: This will not affect process.argv.
*/
appendArgument(value: any): void;
appendArgument(value: string): void;
}
interface Dock {
@@ -411,7 +411,7 @@ declare namespace Electron {
iconIndex?: number;
}
// https://github.com/atom/electron/blob/master/docs/api/auto-updater.md
// https://github.com/electron/electron/blob/master/docs/api/auto-updater.md
/**
* This module provides an interface for the Squirrel auto-updater framework.
@@ -448,7 +448,7 @@ declare namespace Electron {
* Ask the server whether there is an update, you have to call setFeedURL
* before using this API
*/
checkForUpdates(): any;
checkForUpdates(): void;
/**
* Restarts the app and installs the update after it has been downloaded.
* It should only be called after update-downloaded has been emitted.
@@ -456,7 +456,7 @@ declare namespace Electron {
quitAndInstall(): void;
}
// https://github.com/atom/electron/blob/master/docs/api/browser-window.md
// https://github.com/electron/electron/blob/master/docs/api/browser-window.md
/**
* The BrowserWindow class gives you ability to create a browser window.
@@ -1132,6 +1132,11 @@ declare namespace Electron {
* Default: ISO-8859-1.
*/
defaultEncoding?: string;
/**
* Whether to throttle animations and timers when the page becomes background.
* Default: true
*/
backgroundThrottling?: boolean;
}
interface BrowserWindowOptions extends Rectangle {
@@ -1282,7 +1287,7 @@ declare namespace Electron {
enableLargerThanScreen?: boolean;
/**
* Windows background color as Hexadecimal value, like #66CD00 or #FFF or #80FFFFFF (alpha is supported).
* Default: #000 (black) for Linux and Windows, #FFF for Mac (or clear if transparent).
* Default: #FFF (white).
*/
backgroundColor?: string;
/**
@@ -1327,7 +1332,7 @@ declare namespace Electron {
height?: number;
}
// https://github.com/atom/electron/blob/master/docs/api/clipboard.md
// https://github.com/electron/electron/blob/master/docs/api/clipboard.md
/**
* The clipboard module provides methods to perform copy and paste operations.
@@ -1383,7 +1388,7 @@ declare namespace Electron {
* Reads the data in the clipboard of the specified format.
* Note: This API is experimental and could be removed in future.
*/
read(format: string, type?: ClipboardType): any;
read(format: string, type?: ClipboardType): string | NativeImage;
/**
* Writes data to the clipboard.
*/
@@ -1397,7 +1402,7 @@ declare namespace Electron {
type ClipboardType = '' | 'selection';
// https://github.com/atom/electron/blob/master/docs/api/content-tracing.md
// https://github.com/electron/electron/blob/master/docs/api/content-tracing.md
/**
* The content-tracing module is used to collect tracing data generated by the underlying Chromium content module.
@@ -1407,47 +1412,40 @@ declare namespace Electron {
interface ContentTracing {
/**
* Get a set of category groups. The category groups can change as new code paths are reached.
* @param callback Called once all child processes have acked to the getCategories request.
*
* @param callback Called once all child processes have acknowledged the getCategories request.
*/
getCategories(callback: (categoryGroups: any[]) => void): void;
getCategories(callback: (categoryGroups: string[]) => void): void;
/**
* Start recording on all processes. Recording begins immediately locally, and asynchronously
* Start recording on all processes. Recording begins immediately locally and asynchronously
* on child processes as soon as they receive the EnableRecording request.
* @param categoryFilter A filter to control what category groups should be traced.
* A filter can have an optional "-" prefix to exclude category groups that contain
* a matching category. Having both included and excluded category patterns in the
* same list would not be supported.
* @param options controls what kind of tracing is enabled, it could be a OR-ed
* combination of tracing.DEFAULT_OPTIONS, tracing.ENABLE_SYSTRACE, tracing.ENABLE_SAMPLING
* and tracing.RECORD_CONTINUOUSLY.
* @param callback Called once all child processes have acked to the startRecording request.
*
* @param callback Called once all child processes have acknowledged the startRecording request.
*/
startRecording(categoryFilter: string, options: number, callback: Function): void;
startRecording(options: ContentTracingOptions, callback: Function): void;
/**
* Stop recording on all processes. Child processes typically are caching trace data and
* only rarely flush and send trace data back to the main process. That is because it may
* be an expensive operation to send the trace data over IPC, and we would like to avoid
* much runtime overhead of tracing. So, to end tracing, we must asynchronously ask all
* child processes to flush any pending trace data.
*
* @param resultFilePath Trace data will be written into this file if it is not empty,
* or into a temporary file.
* @param callback Called once all child processes have acked to the stopRecording request.
* @param callback Called once all child processes have acknowledged the stopRecording request.
*/
stopRecording(resultFilePath: string, callback:
/**
* @param filePath A file that contains the traced data.
*/
(filePath: string) => void
): void;
stopRecording(resultFilePath: string, callback: (filePath: string) => void): void;
/**
* Start monitoring on all processes. Monitoring begins immediately locally, and asynchronously
* Start monitoring on all processes. Monitoring begins immediately locally and asynchronously
* on child processes as soon as they receive the startMonitoring request.
*
* @param callback Called once all child processes have acked to the startMonitoring request.
*/
startMonitoring(categoryFilter: string, options: number, callback: Function): void;
startMonitoring(options: ContentTracingOptions, callback: Function): void;
/**
* Stop monitoring on all processes.
* @param callback Called once all child processes have acked to the stopMonitoring request.
*
* @param callback Called once all child processes have acknowledged the stopMonitoring request.
*/
stopMonitoring(callback: Function): void;
/**
@@ -1456,17 +1454,13 @@ declare namespace Electron {
* be an expensive operation to send the trace data over IPC, and we would like to avoid much
* runtime overhead of tracing. So, to end tracing, we must asynchronously ask all child
* processes to flush any pending trace data.
* @param callback Called once all child processes have acked to the captureMonitoringSnapshot request.
*
* @param callback Called once all child processes have acknowledged the captureMonitoringSnapshot request.
*/
captureMonitoringSnapshot(resultFilePath: string, callback:
/**
* @param filePath A file that contains the traced data
* @returns {}
*/
(filePath: string) => void
): void;
captureMonitoringSnapshot(resultFilePath: string, callback: (filePath: string) => void): void;
/**
* Get the maximum across processes of trace buffer percent full state.
* Get the maximum usage across processes of trace buffer as a percentage of the full state.
*
* @param callback Called when the TraceBufferUsage value is determined.
*/
getTraceBufferUsage(callback: Function): void;
@@ -1475,16 +1469,47 @@ declare namespace Electron {
*/
setWatchEvent(categoryName: string, eventName: string, callback: Function): void;
/**
* Cancel the watch event. If tracing is enabled, this may race with the watch event callback.
* Cancel the watch event. This may lead to a race condition with the watch event callback if tracing is enabled.
*/
cancelWatchEvent(): void;
DEFAULT_OPTIONS: number;
ENABLE_SYSTRACE: number;
ENABLE_SAMPLING: number;
RECORD_CONTINUOUSLY: number;
}
// https://github.com/atom/electron/blob/master/docs/api/crash-reporter.md
interface ContentTracingOptions {
/**
* Filter to control what category groups should be traced.
* A filter can have an optional - prefix to exclude category groups
* that contain a matching category. Having both included and excluded
* category patterns in the same list is not supported.
*
* Examples:
* test_MyTest*
* test_MyTest*,test_OtherStuff
* -excluded_category1,-excluded_category2
*/
categoryFilter: string;
/**
* Controls what kind of tracing is enabled, it is a comma-delimited list.
*
* Possible options are:
* record-until-full
* record-continuously
* trace-to-console
* enable-sampling
* enable-systrace
*
* The first 3 options are trace recoding modes and hence mutually exclusive.
* If more than one trace recording modes appear in the traceOptions string,
* the last one takes precedence. If none of the trace recording modes are specified,
* recording mode is record-until-full.
*
* The trace option will first be reset to the default option (record_mode set
* to record-until-full, enable_sampling and enable_systrace set to false)
* before options parsed from traceOptions are applied on it.
*/
traceOptions: string;
}
// https://github.com/electron/electron/blob/master/docs/api/crash-reporter.md
/**
* The crash-reporter module enables sending your app's crash reports.
@@ -1492,87 +1517,56 @@ declare namespace Electron {
interface CrashReporter {
/**
* You are required to call this method before using other crashReporter APIs.
*
* Note: On OS X, Electron uses a new crashpad client, which is different from breakpad
* on Windows and Linux. To enable the crash collection feature, you are required to call
* the crashReporter.start API to initialize crashpad in the main process and in each
* renderer process from which you wish to collect crash reports.
*/
start(options: CrashReporterStartOptions): void;
/**
* @returns The date and ID of the last crash report. When there was no crash report
* @returns The crash report. When there was no crash report
* sent or the crash reporter is not started, null will be returned.
*/
getLastCrashReport(): CrashReporterPayload;
getLastCrashReport(): CrashReport;
/**
* @returns All uploaded crash reports. Each report contains the date and uploaded ID.
* @returns All uploaded crash reports.
*/
getUploadedReports(): CrashReporterPayload[];
getUploadedReports(): CrashReport[];
}
interface CrashReporterStartOptions {
/**
* Default: Electron
*/
* Default: Electron
*/
productName?: string;
companyName: string;
/**
* URL that crash reports would be sent to as POST.
*/
* URL that crash reports would be sent to as POST.
*/
submitURL: string;
/**
* Send the crash report without user interaction.
* Default: true.
*/
* Send the crash report without user interaction.
* Default: true.
*/
autoSubmit?: boolean;
/**
* Default: false.
*/
* Default: false.
*/
ignoreSystemCrashHandler?: boolean;
/**
* An object you can define which content will be send along with the report.
* Only string properties are send correctly.
* Nested objects are not supported.
*/
* An object you can define that will be sent along with the report.
* Only string properties are sent correctly, nested objects are not supported.
*/
extra?: {[prop: string]: string};
}
interface CrashReporterPayload extends Object {
/**
* E.g., "electron-crash-service".
*/
rept: string;
/**
* The version of Electron.
*/
ver: string;
/**
* E.g., "win32".
*/
platform: string;
/**
* E.g., "renderer".
*/
process_type: string;
ptime: number;
/**
* The version in package.json.
*/
_version: string;
/**
* The product name in the crashReporter options object.
*/
_productName: string;
/**
* Name of the underlying product. In this case, Electron.
*/
prod: string;
/**
* The company name in the crashReporter options object.
*/
_companyName: string;
/**
* The crashreporter as a file.
*/
upload_file_minidump: File;
interface CrashReport {
id: string;
date: Date;
}
// https://github.com/atom/electron/blob/master/docs/api/desktop-capturer.md
// https://github.com/electron/electron/blob/master/docs/api/desktop-capturer.md
/**
* The desktopCapturer module can be used to get available sources
@@ -1585,7 +1579,7 @@ declare namespace Electron {
* Note: There is no guarantee that the size of source.thumbnail is always
* the same as the thumnbailSize in options. It also depends on the scale of the screen or window.
*/
getSources(options: any, callback: (error: Error, sources: DesktopCapturerSource[]) => any): void;
getSources(options: DesktopCapturerOptions, callback: (error: Error, sources: DesktopCapturerSource[]) => any): void;
}
interface DesktopCapturerOptions {
@@ -1618,7 +1612,7 @@ declare namespace Electron {
thumbnail: NativeImage;
}
// https://github.com/atom/electron/blob/master/docs/api/dialog.md
// https://github.com/electron/electron/blob/master/docs/api/dialog.md
/**
* The dialog module provides APIs to show native system dialogs, such as opening files or alerting,
@@ -1660,13 +1654,13 @@ declare namespace Electron {
* @param callback If supplied, the API call will be asynchronous.
* @returns The index of the clicked button.
*/
showMessageBox(browserWindow: BrowserWindow, options: ShowMessageBoxOptions, callback?: (response: any) => void): number;
showMessageBox(browserWindow: BrowserWindow, options: ShowMessageBoxOptions, callback?: (response: number) => void): number;
/**
* Shows a message box. It will block until the message box is closed.
* @param callback If supplied, the API call will be asynchronous.
* @returns The index of the clicked button.
*/
showMessageBox(options: ShowMessageBoxOptions, callback?: (response: any) => void): number;
showMessageBox(options: ShowMessageBoxOptions, callback?: (response: number) => void): number;
/**
* Displays a modal dialog that shows an error message.
*
@@ -1752,7 +1746,7 @@ declare namespace Electron {
noLink?: boolean;
}
// https://github.com/atom/electron/blob/master/docs/api/download-item.md
// https://github.com/electron/electron/blob/master/docs/api/download-item.md
/**
* DownloadItem represents a download item in Electron.
@@ -1820,7 +1814,7 @@ declare namespace Electron {
getContentDisposition(): string;
}
// https://github.com/atom/electron/blob/master/docs/api/global-shortcut.md
// https://github.com/electron/electron/blob/master/docs/api/global-shortcut.md
/**
* The globalShortcut module can register/unregister a global keyboard shortcut
@@ -1854,7 +1848,7 @@ declare namespace Electron {
unregisterAll(): void;
}
// https://github.com/atom/electron/blob/master/docs/api/ipc-main.md
// https://github.com/electron/electron/blob/master/docs/api/ipc-main.md
/**
* The ipcMain module handles asynchronous and synchronous messages
@@ -1883,7 +1877,7 @@ declare namespace Electron {
sender: WebContents;
}
// https://github.com/atom/electron/blob/master/docs/api/ipc-renderer.md
// https://github.com/electron/electron/blob/master/docs/api/ipc-renderer.md
/**
* The ipcRenderer module provides a few methods so you can send synchronous
@@ -1926,7 +1920,8 @@ declare namespace Electron {
sender: IpcRenderer;
}
// https://github.com/atom/electron/blob/master/docs/api/menu-item.md
// https://github.com/electron/electron/blob/master/docs/api/menu-item.md
// https://github.com/electron/electron/blob/master/docs/api/accelerator.md
/**
* The MenuItem allows you to add items to an application or context menu.
@@ -1986,14 +1981,17 @@ declare namespace Electron {
* multiple modifiers and key codes, combined by the + character.
*
* Examples:
* Command+A
* Ctrl+Shift+Z
* CommandOrControl+A
* CommandOrControl+Shift+Z
*
* Platform notice:
* On Linux and Windows, the Command key would not have any effect,
* you can use CommandOrControl which represents Command on OS X and Control on
* Linux and Windows to define some accelerators.
*
* Use Alt instead of Option. The Option key only exists on OS X, whereas
* the Alt key is available on all platforms.
*
* The Super key is mapped to the Windows key on Windows and Linux and Cmd on OS X.
*
* Available modifiers:
@@ -2031,8 +2029,17 @@ declare namespace Electron {
* or NativeImage instances. When passing null, an empty image will be used.
*/
icon?: NativeImage|string;
/**
* If false, the menu item will be greyed out and unclickable.
*/
enabled?: boolean;
/**
* If false, the menu item will be entirely hidden.
*/
visible?: boolean;
/**
* Should only be specified for 'checkbox' or 'radio' type menu items.
*/
checked?: boolean;
/**
* Should be specified for submenu type menu item, when it's specified the
@@ -2055,7 +2062,7 @@ declare namespace Electron {
role?: MenuItemRole | MenuItemRoleMac;
}
// https://github.com/atom/electron/blob/master/docs/api/menu.md
// https://github.com/electron/electron/blob/master/docs/api/menu.md
/**
* The Menu class is used to create native menus that can be used as application
@@ -2110,7 +2117,7 @@ declare namespace Electron {
items: MenuItem[];
}
// https://github.com/atom/electron/blob/master/docs/api/native-image.md
// https://github.com/electron/electron/blob/master/docs/api/native-image.md
/**
* This class is used to represent an image.
@@ -2158,7 +2165,7 @@ declare namespace Electron {
/**
* @returns {} The size of the image.
*/
getSize(): any;
getSize(): Dimension;
/**
* Marks the image as template image.
*/
@@ -2169,7 +2176,7 @@ declare namespace Electron {
isTemplateImage(): boolean;
}
// https://github.com/atom/electron/blob/master/docs/api/power-monitor.md
// https://github.com/electron/electron/blob/master/docs/api/power-monitor.md
/**
* The power-monitor module is used to monitor power state changes.
@@ -2195,7 +2202,7 @@ declare namespace Electron {
on(event: string, listener: Function): this;
}
// https://github.com/atom/electron/blob/master/docs/api/power-save-blocker.md
// https://github.com/electron/electron/blob/master/docs/api/power-save-blocker.md
/**
* The powerSaveBlocker module is used to block the system from entering
@@ -2220,7 +2227,7 @@ declare namespace Electron {
isStarted(id: number): boolean;
}
// https://github.com/atom/electron/blob/master/docs/api/protocol.md
// https://github.com/electron/electron/blob/master/docs/api/protocol.md
/**
* The protocol module can register a custom protocol or intercept an existing protocol.
@@ -2335,7 +2342,7 @@ declare namespace Electron {
}): void;
}
// https://github.com/atom/electron/blob/master/docs/api/remote.md
// https://github.com/electron/electron/blob/master/docs/api/remote.md
/**
* The remote module provides a simple way to do inter-process communication (IPC)
@@ -2365,7 +2372,7 @@ declare namespace Electron {
process: NodeJS.Process;
}
// https://github.com/atom/electron/blob/master/docs/api/screen.md
// https://github.com/electron/electron/blob/master/docs/api/screen.md
/**
* The Display object represents a physical display connected to the system.
@@ -2450,7 +2457,7 @@ declare namespace Electron {
getDisplayMatching(rect: Bounds): Display;
}
// https://github.com/atom/electron/blob/master/docs/api/session.md
// https://github.com/electron/electron/blob/master/docs/api/session.md
/**
* The session module can be used to create new Session objects.
@@ -2504,7 +2511,7 @@ declare namespace Electron {
/**
* Resolves the proxy information for url.
*/
resolveProxy(url: URL, callback: (proxy: any) => any): void;
resolveProxy(url: URL, callback: (proxy: string) => void): void;
/**
* Sets download saving directory.
* By default, the download directory will be the Downloads under the respective app folder.
@@ -2520,9 +2527,16 @@ declare namespace Electron {
*/
disableNetworkEmulation(): void;
/**
* Sets the certificate verify proc for session.
* Sets the certificate verify proc for session, the proc will be called
* whenever a server certificate verification is requested.
*
* Calling setCertificateVerifyProc(null) will revert back to default certificate verify proc.
*/
setCertificateVerifyProc(proc: CertificateVerifyProc): void;
setCertificateVerifyProc(proc: (hostname: string, cert: Certificate, callback: (accepted: boolean) => void) => void): void;
/**
* Sets the handler which can be used to respond to permission requests for the session.
*/
setPermissionRequestHandler(handler: (webContents: WebContents, permission: Permission, callback: (allow: boolean) => void) => void): void;
/**
* Clears the host resolver cache.
*/
@@ -2530,9 +2544,11 @@ declare namespace Electron {
/**
* The webRequest API set allows to intercept and modify contents of a request at various stages of its lifetime.
*/
webRequest: any;
webRequest: WebRequest;
}
type Permission = 'media' | 'geolocation' | 'notifications' | 'midiSysex' | 'pointerLock' | 'fullscreen';
interface ClearStorageDataOptions {
/**
* Should follow window.location.origins representation scheme://host:port.
@@ -2567,10 +2583,6 @@ declare namespace Electron {
uploadThroughput?: number;
}
interface CertificateVerifyProc {
(hostname: string, cert: any, callback: (accepted: boolean) => any): any;
}
interface CookieFilter {
/**
* Retrieves cookies which are associated with url. Empty implies retrieving cookies of all urls.
@@ -2695,7 +2707,189 @@ declare namespace Electron {
remove(url: string, name: string, callback: (error: Error) => void): void;
}
// https://github.com/atom/electron/blob/master/docs/api/shell.md
/**
* Each API accepts an optional filter and a listener, the listener will be called when the API's event has happened.
* Passing null as listener will unsubscribe from the event.
*
* The filter will be used to filter out the requests that do not match the URL patterns.
* If the filter is omitted then all requests will be matched.
*
* For certain events the listener is passed with a callback,
* which should be called with an response object when listener has done its work.
*/
interface WebRequest {
/**
* The listener will be called when a request is about to occur.
*/
onBeforeRequest(listener: (details: WebRequest.BeforeRequestDetails, callback: WebRequest.BeforeRequestCallback) => void): void;
/**
* The listener will be called when a request is about to occur.
*/
onBeforeRequest(filter: WebRequest.Filter, listener: (details: WebRequest.BeforeRequestDetails, callback: WebRequest.BeforeRequestCallback) => void): void;
/**
* The listener will be called before sending an HTTP request, once the request headers are available.
* This may occur after a TCP connection is made to the server, but before any http data is sent.
*/
onBeforeSendHeaders(listener: (details: WebRequest.BeforeSendHeadersDetails, callback: WebRequest.BeforeSendHeadersCallback) => void): void;
/**
* The listener will be called before sending an HTTP request, once the request headers are available.
* This may occur after a TCP connection is made to the server, but before any http data is sent.
*/
onBeforeSendHeaders(filter: WebRequest.Filter, listener: (details: WebRequest.BeforeSendHeadersDetails, callback: WebRequest.BeforeSendHeadersCallback) => void): void;
/**
* The listener will be called just before a request is going to be sent to the server,
* modifications of previous onBeforeSendHeaders response are visible by the time this listener is fired.
*/
onSendHeaders(listener: (details: WebRequest.SendHeadersDetails) => void): void;
/**
* The listener will be called just before a request is going to be sent to the server,
* modifications of previous onBeforeSendHeaders response are visible by the time this listener is fired.
*/
onSendHeaders(filter: WebRequest.Filter, listener: (details: WebRequest.SendHeadersDetails) => void): void;
/**
* The listener will be called when HTTP response headers of a request have been received.
*/
onHeadersReceived(listener: (details: WebRequest.HeadersReceivedDetails, callback: WebRequest.HeadersReceivedCallback) => void): void;
/**
* The listener will be called when HTTP response headers of a request have been received.
*/
onHeadersReceived(filter: WebRequest.Filter, listener: (details: WebRequest.HeadersReceivedDetails, callback: WebRequest.HeadersReceivedCallback) => void): void;
/**
* The listener will be called when first byte of the response body is received.
* For HTTP requests, this means that the status line and response headers are available.
*/
onResponseStarted(listener: (details: WebRequest.ResponseStartedDetails) => void): void;
/**
* The listener will be called when first byte of the response body is received.
* For HTTP requests, this means that the status line and response headers are available.
*/
onResponseStarted(filter: WebRequest.Filter, listener: (details: WebRequest.ResponseStartedDetails) => void): void;
/**
* The listener will be called when a server initiated redirect is about to occur.
*/
onBeforeRedirect(listener: (details: WebRequest.BeforeRedirectDetails) => void): void;
/**
* The listener will be called when a server initiated redirect is about to occur.
*/
onBeforeRedirect(filter: WebRequest.Filter, listener: (details: WebRequest.BeforeRedirectDetails) => void): void;
/**
* The listener will be called when a request is completed.
*/
onCompleted(listener: (details: WebRequest.CompletedDetails) => void): void;
/**
* The listener will be called when a request is completed.
*/
onCompleted(filter: WebRequest.Filter, listener: (details: WebRequest.CompletedDetails) => void): void;
/**
* The listener will be called when an error occurs.
*/
onErrorOccurred(listener: (details: WebRequest.ErrorOccurredDetails) => void): void;
/**
* The listener will be called when an error occurs.
*/
onErrorOccurred(filter: WebRequest.Filter, listener: (details: WebRequest.ErrorOccurredDetails) => void): void;
}
namespace WebRequest {
interface Filter {
urls: string[];
}
interface Details {
id: number;
url: string;
method: string;
resourceType: string;
timestamp: number;
}
interface UploadData {
/**
* Content being sent.
*/
bytes: Buffer;
/**
* Path of file being uploaded.
*/
file: string;
}
interface BeforeRequestDetails extends Details {
uploadData?: UploadData[];
}
type BeforeRequestCallback = (response: {
cancel?: boolean;
/**
* The original request is prevented from being sent or completed, and is instead redirected to the given URL.
*/
redirectURL?: string;
}) => void;
interface BeforeSendHeadersDetails extends Details {
requestHeaders: Headers;
}
type BeforeSendHeadersCallback = (response: {
cancel?: boolean;
/**
* When provided, request will be made with these headers.
*/
requestHeaders?: Headers;
}) => void;
interface SendHeadersDetails extends Details {
requestHeaders: Headers;
}
interface HeadersReceivedDetails extends Details {
statusLine: string;
statusCode: number;
responseHeaders: Headers;
}
type HeadersReceivedCallback = (response: {
cancel?: boolean;
/**
* When provided, the server is assumed to have responded with these headers.
*/
responseHeaders?: Headers;
/**
* Should be provided when overriding responseHeaders to change header status
* otherwise original response header's status will be used.
*/
statusLine?: string;
}) => void;
interface ResponseStartedDetails extends Details {
responseHeaders: Headers;
fromCache: boolean;
statusCode: number;
statusLine: string;
}
interface BeforeRedirectDetails extends Details {
redirectURL: string;
statusCode: number;
ip?: string;
fromCache: boolean;
responseHeaders: Headers;
}
interface CompletedDetails extends Details {
responseHeaders: Headers;
fromCache: boolean;
statusCode: number;
statusLine: string;
}
interface ErrorOccurredDetails extends Details {
fromCache: boolean;
error: string;
}
}
// https://github.com/electron/electron/blob/master/docs/api/shell.md
/**
* The shell module provides functions related to desktop integration.
@@ -2732,7 +2926,7 @@ declare namespace Electron {
beep(): void;
}
// https://github.com/atom/electron/blob/master/docs/api/tray.md
// https://github.com/electron/electron/blob/master/docs/api/tray.md
/**
* A Tray represents an icon in an operating system's notification area.
@@ -2853,7 +3047,7 @@ declare namespace Electron {
metaKey: boolean;
}
// https://github.com/atom/electron/blob/master/docs/api/web-contents.md
// https://github.com/electron/electron/blob/master/docs/api/web-contents.md
/**
* A WebContents is responsible for rendering and controlling a web page.
@@ -2868,7 +3062,7 @@ declare namespace Electron {
* This event is like did-finish-load but emitted when the load failed or was cancelled,
* e.g. window.stop() is invoked.
*/
on(event: 'did-fail-load', listener: (event: Event, errorCode: number, errorDescription: string, validatedURL: string) => void): this;
on(event: 'did-fail-load', listener: (event: Event, errorCode: number, errorDescription: string, validatedURL: string, isMainFrame: boolean) => void): this;
/**
* Emitted when a frame has done navigation.
*/
@@ -2892,7 +3086,8 @@ declare namespace Electron {
httpResponseCode: number,
requestMethod: string,
referrer: string,
headers: any
headers: Headers,
resourceType: string
) => void): this;
/**
* Emitted when a redirect is received while requesting a resource.
@@ -2904,7 +3099,7 @@ declare namespace Electron {
httpResponseCode: number,
requestMethod: string,
referrer: string,
headers: any
headers: Headers
) => void): this;
/**
* Emitted when the document in the given frame is loaded.
@@ -3317,6 +3512,10 @@ declare namespace Electron {
debugger: Debugger;
}
interface Headers {
[key: string]: string;
}
type NewWindowDisposition = 'default' | 'foreground-tab' | 'background-tab' | 'new-window' | 'other';
/**
@@ -3452,7 +3651,7 @@ declare namespace Electron {
/**
* Coordinates of first match region.
*/
selectionArea?: any;
selectionArea?: Bounds;
}
interface DeviceEmulationParameters {
@@ -3564,7 +3763,7 @@ declare namespace Electron {
on(event: string, listener: Function): this;
}
// https://github.com/atom/electron/blob/master/docs/api/web-frame.md
// https://github.com/electron/electron/blob/master/docs/api/web-frame.md
/**
* The web-frame module allows you to customize the rendering of the current web page.
@@ -3630,7 +3829,7 @@ declare namespace Electron {
executeJavaScript(code: string, userGesture?: boolean, callback?: (result: any) => void): void;
}
// https://github.com/atom/electron/blob/master/docs/api/web-view-tag.md
// https://github.com/electron/electron/blob/master/docs/api/web-view-tag.md
/**
* Use the webview tag to embed 'guest' content (such as web pages) in your Electron app.
@@ -3934,7 +4133,7 @@ declare namespace Electron {
* Fired when details regarding a requested resource is available.
* status indicates socket connection to download the resource.
*/
addEventListener(type: 'did-get-response-details', listener: (event: WebViewElement.DidGetResponseRetails) => void, useCapture?: boolean): void;
addEventListener(type: 'did-get-response-details', listener: (event: WebViewElement.DidGetResponseDetails) => void, useCapture?: boolean): void;
/**
* Fired when a redirect was received while requesting a resource.
*/
@@ -4056,27 +4255,29 @@ declare namespace Electron {
interface LoadCommitEvent extends Event {
url: string;
isMainFrame: string;
isMainFrame: boolean;
}
interface DidFailLoadEvent extends Event {
errorCode: number;
errorDescription: string;
validatedURL: string;
isMainFrame: boolean;
}
interface DidFrameFinishLoadEvent extends Event {
isMainFrame: boolean;
}
interface DidGetResponseRetails extends Event {
interface DidGetResponseDetails extends Event {
status: boolean;
newURL: string;
originalURL: string;
httpResponseCode: number;
requestMethod: string;
referrer: string;
headers: any;
headers: Headers;
resourceType: string;
}
interface DidGetRedirectRequestEvent extends Event {
@@ -4086,7 +4287,7 @@ declare namespace Electron {
httpResponseCode: number;
requestMethod: string;
referrer: string;
headers: any;
headers: Headers;
}
interface PageTitleUpdatedEvent extends Event {
@@ -4163,7 +4364,7 @@ declare namespace Electron {
postMessage(message: string, targetOrigin: string): void;
}
// https://github.com/atom/electron/blob/master/docs/api/synopsis.md
// https://github.com/electron/electron/blob/master/docs/api/synopsis.md
interface CommonElectron {
clipboard: Electron.Clipboard;
@@ -4205,7 +4406,7 @@ interface Document {
createElement(tagName: 'webview'): Electron.WebViewElement;
}
// https://github.com/atom/electron/blob/master/docs/api/window-open.md
// https://github.com/electron/electron/blob/master/docs/api/window-open.md
interface Window {
/**
@@ -4214,7 +4415,7 @@ interface Window {
open(url: string, frameName?: string, features?: string): Electron.BrowserWindowProxy;
}
// https://github.com/atom/electron/blob/master/docs/api/file-object.md
// https://github.com/electron/electron/blob/master/docs/api/file-object.md
interface File {
/**

View File

@@ -0,0 +1,95 @@
/// <reference path="./encoding-japanese.d.ts" />
import * as Encoding from 'encoding-japanese';
// Convert character encoding to Shift_JIS from UTF-8.
var utf8Array_1 = new Uint8Array([1, 2, 3]);
var utf8Array_2 = [1, 2, 3];
var utf8Array_3 = new Buffer([1, 2, 3]);
var sjisArray = Encoding.convert(utf8Array_1, 'SJIS', 'UTF8');
var sjisArray = Encoding.convert(utf8Array_2, 'UTF16', 'UTF8');
var sjisArray = Encoding.convert(utf8Array_3, 'EUCJP', 'UTF8');
// Convert character encoding by automatic detection (AUTO detect).
var utf8Array = utf8Array_1;
var sjisArray1 = Encoding.convert(utf8Array, 'SJIS');
// or
var sjisArray2 = Encoding.convert(utf8Array, 'SJIS', 'AUTO');
// Detect the character encoding.
// The return value be one of the "Available Encodings" below.
var detected = Encoding.detect(utf8Array);
if (detected === 'UTF8') {
console.log('Encoding is UTF-8');
}
var sjisArray3 = Encoding.convert(utf8Array, {
to: 'SJIS', // to_encoding
from: 'UTF8' // from_encoding
});
var utf8String = 'ã\u0081\u0093ã\u0082\u0093ã\u0081«ã\u0081¡ã\u0081¯';
var unicodeString = Encoding.convert(utf8String, {
to: 'UNICODE',
from: 'UTF8',
type: 'string' // Specify 'string' type. (Return as string)
});
console.log(unicodeString); // こんにちは
var utf16Array = Encoding.convert(utf8Array, {
to: 'UTF16', // to_encoding
from: 'UTF8', // from_encoding
bom: true // With BOM
});
var utf16leArray = Encoding.convert(utf8Array, {
to: 'UTF16', // to_encoding
from: 'UTF8', // from_encoding
bom: 'LE' // With BOM (little-endian)
});
var utf16beArray = Encoding.convert(utf8Array, {
to: 'UTF16BE',
from: 'UTF8'
});
// Detect character encoding by automatic. (AUTO detect).
var detected2 = Encoding.detect(utf8Array);
if (detected2 === 'UTF8') {
console.log('Encoding is UTF-8');
}
// Detect character encoding by specific encoding name.
var isSJIS = Encoding.detect(sjisArray, 'SJIS');
if (isSJIS) {
console.log('Encoding is SJIS');
}
var sjisArray4 = [
130, 177, 130, 241, 130, 201, 130, 191, 130, 205, 129,
65, 130, 217, 130, 176, 129, 153, 130, 210, 130, 230
];
var encoded = Encoding.urlEncode(sjisArray4);
console.log(encoded);
// output:
// '%82%B1%82%F1%82%C9%82%BF%82%CD%81A%82%D9%82%B0%81%99%82%D2%82%E6'
var decoded = Encoding.urlDecode(encoded);
console.log(decoded);
// output: [
// 130, 177, 130, 241, 130, 201, 130, 191, 130, 205, 129,
// 65, 130, 217, 130, 176, 129, 153, 130, 210, 130, 230
// ]
var sjisArray5 = [
130, 177, 130, 241, 130, 201, 130, 191, 130, 205
];
var encoded2 = Encoding.base64Encode(sjisArray5);
console.log(encoded2); // 'grGC8YLJgr+CzQ=='
var decoded2 = Encoding.base64Decode(encoded2);
console.log(decoded2);
// [130, 177, 130, 241, 130, 201, 130, 191, 130, 205]

View File

@@ -0,0 +1,49 @@
// Type definitions for encoding-japanese v1.0.24
// Project: https://github.com/polygonplanet/encoding.js
// Definitions by: rhysd <https://rhysd.github.io>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module "encoding-japanese" {
export type Encoding =
"UTF32" | "UTF16" | "UTF16BE" |
"UTF16LE" | "BINARY" | "ASCII" |
"JIS" | "UTF8" | "EUCJP" |
"SJIS" | "UNICODE" | "AUTO";
type RawType = string | Uint8Array | number[] | Buffer;
interface ConvertOptions {
to: Encoding;
from?: Encoding;
type?: "string" | "arraybuffer" | "array";
bom?: boolean | string;
}
export function detect(data: RawType, encodings?: Encoding | Encoding[]): Encoding;
export function convert(data: RawType, to: Encoding, from?: Encoding): number[];
export function convert(data: RawType, options: ConvertOptions): string | ArrayBuffer | number[];
export function urlEncode(data: number[] | Uint8Array): string;
export function urlDecode(data: string): number[];
export function base64Encode(data: number[] | Uint8Array): string;
export function base64Decode(data: string): number[];
export function codeToString(data: number[] | Uint8Array): string;
export function stringToCode(data: string): number[];
export function toHankakuCase(data: number[]): number[];
export function toHankakuCase(data: string): string;
export function toZenkakuCase(data: number[]): number[];
export function toZenkakuCase(data: string): string;
export function toHiraganaCase(data: number[]): number[];
export function toHiraganaCase(data: string): string;
export function toKatakanaCase(data: number[]): number[];
export function toKatakanaCase(data: string): string;
export function toHankanaCase(data: number[]): number[];
export function toHankanaCase(data: string): string;
export function toZenkanaCase(data: number[]): number[];
export function toZenkanaCase(data: string): string;
export function toHankakuSpace(data: number[]): number[];
export function toHankakuSpace(data: string): string;
export function toZenkakuSpace(data: number[]): number[];
export function toZenkakuSpace(data: string): string;
}

View File

@@ -6,7 +6,16 @@
/// <reference path="../express/express.d.ts" />
declare namespace Express {
interface ExpressUserAgent {
interface Request {
useragent?: ExpressUseragent.UserAgent;
}
}
declare namespace ExpressUseragent {
import express = Express;
interface UserAgent {
isMobile: boolean;
isTablet: boolean;
isiPad: boolean;
@@ -55,14 +64,10 @@ declare namespace Express {
source: string;
}
interface Request {
useragent?: ExpressUserAgent;
}
function parse(source: string): UserAgent;
function express(): (req: express.Request, res: express.Response, next?: Function) => void;
}
declare module "express-useragent" {
import express = require("express");
export function parse(source: string): Express.ExpressUserAgent;
export function express(): (req: express.Request, res: express.Response, next?: Function) => void;
export = ExpressUseragent;
}

View File

@@ -179,6 +179,12 @@ declare namespace ExpressValidator {
/**
* Decode HTML entities
*/
/**
* Convert the input string to a date, or null if the input is not a date.
*/
toDate(): Sanitizer;
entityDecode(): Sanitizer;
entityEncode(): Sanitizer;
/**

View File

@@ -0,0 +1,25 @@
/// <reference path="../express/express.d.ts" />
/// <reference path="../falcor/falcor.d.ts" />
/// <reference path="../falcor-router/falcor-router.d.ts" />
/// <reference path="falcor-express.d.ts" />
import express = require('express');
import Router = require('falcor-router');
import falcorExpress = require('falcor-express')
const app = express();
class MyRouter extends Router.createClass([{
route: 'greeting',
get() {
return {json: {greeting: 'Hello, world'}};
}
}]){
constructor() {
super();
}
}
app.use('/model.json', falcorExpress.dataSourceRoute((req, res) => new MyRouter()));
app.listen(3000);

14
falcor-express/falcor-express.d.ts vendored Normal file
View File

@@ -0,0 +1,14 @@
// Type definitions for falcor-express 0.1.2
// Project: https://github.com/Netflix/falcor-express
// Definitions by: Quramy <https://github.com/Quramy/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../falcor/falcor.d.ts" />
/// <reference path="../express/express.d.ts" />
declare module 'falcor-express' {
import {Request, Response, Handler} from 'express';
import {DataSource} from 'falcor';
function dataSourceRoute(getDataSource: (req: Request, res: Response) => DataSource): Handler;
}

View File

@@ -0,0 +1,8 @@
///<reference path="falcor-http-datasource.d.ts" />
import HttpDataSource from 'falcor-http-datasource';
import {Model} from 'falcor';
const model = new Model({
source: new HttpDataSource('/model.json')
});

View File

@@ -0,0 +1,23 @@
// Type definitions for falcor-http-datasource 0.1.3
// Project: https://github.com/Netflix/falcor-http-datasource
// Definitions by: Quramy <https://github.com/Quramy/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../falcor/falcor.d.ts" />
declare namespace FalcorHttpDataSource {
/**
* A HttpDataSource object is a {@link DataSource} can be used to retrieve data from a remote JSONGraph object using the browser's XMLHttpRequest.
**/
class XMlHttpSource extends FalcorModel.DataSource {
constructor(jsonGraphUrl: string);
}
}
declare module 'falcor-http-datasource' {
import XMlHttpSource = FalcorHttpDataSource.XMlHttpSource;
export {XMlHttpSource};
export default XMlHttpSource;
}

View File

@@ -0,0 +1,39 @@
/// <reference path="falcor-json-graph.d.ts" />
import {Key, KeySet, Path, PathSet, ref, atom, error, pathValue, pathInvalidation} from 'falcor-json-graph';
const stringKey: Key = "productsById";
const numberKey: Key = 10;
const booleanKey: Key = true;
const keySet01: KeySet = stringKey;
const keySet02: KeySet = [stringKey];
const KeySet03: KeySet = {from: 1, to: 10};
const KeySet04: KeySet = ["name", {from: 0, length: 10}];
const path0: Path = ["productsById", "1234", "name"];
const path1: Path = [stringKey, numberKey, booleanKey];
const pathSet01: PathSet = ["productsById", ["1234", "5678"], ["name", "price"]];
const pathSet02: PathSet = ["products", [{from: 0, length: 10}, "length"], ["name", "price"]];
var ref01 = ref(['hoge']);
var ref02 = ref(['hoge'], {$expires: 1000});
console.log(ref02.$type, ref02.value, ref02.$expires);
var atom01 = atom('hoge');
var atom02 = atom('hoge', {$expires: 1000});
console.log(atom02.$type, atom02.value, atom02.$expires);
var err01 = error('some error!');
var err02 = error('some error!', {$expires: 1000});
console.log(err02.$type === 'error', ref02.value, ref02.$expires);
var pv01 = pathValue('hoge', 'FOO');
var pv02 = pathValue('hoge[0].bar', 'FOO');
var pv03 = pathValue('hoge[0...100].bar', 'FOO');
var pv04 = pathValue(['hoge', {from: 0, to: 100}, 'bar'], 'FOO');
console.log(pv04.path, pv04.value);
var ip01 = pathInvalidation('hoge');
console.log(ip01.path, ip01.invalidate);

104
falcor-json-graph/falcor-json-graph.d.ts vendored Normal file
View File

@@ -0,0 +1,104 @@
// Type definitions for falcor-json-graph 1.1.7
// Project: https://github.com/Netflix/falcor-json-graph
// Definitions by: Quramy <https://github.com/Quramy/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
declare namespace FalcorJsonGraph {
// NOTE: The following types are described at https://github.com/Netflix/falcor/tree/master/lib/typedefs .
/**
* An atom allows you to treat a JSON value as atomic regardless of its type, ensuring that a JSON object or array is always returned in its entirety. The JSON value must be treated as immutable. Atoms can also be used to associate metadata with a JSON value. This metadata can be used to influence the way values are handled.
**/
interface Atom extends Sentinel {
$type: 'atom';
value: any;
}
interface Error extends Sentinel {
$type: 'error';
value: any;
}
interface InvalidPath {
path: PathSet;
invalidate: boolean;
}
/**
* A part of a {@link Path} that can be any JSON value type. All types are coerced to string, except null. This makes the number 1 and the string "1" equivalent.
**/
type Key = string | number | boolean;
/**
* A part of a {@link PathSet} that can be either a {@link Key}, {@link Range}, or Array of either.
**/
type KeySet = Key | Range | Array<Key | Range>;
/**
* An ordered list of {@link Key}s that point to a value in a {@link JSONGraph}.
**/
type Path = Array<Key>;
/**
* An ordered list of {@link KeySet}s that point to location(s) in the {@link JSONGraph}. It enables pointing to multiple locations in a more terse format than a set of {@link Path}s and is generally more efficient to evaluate.
**/
type PathSet = Array<KeySet>;
/**
* A wrapper around a path and its value.
**/
interface PathValue {
path: string | PathSet;
value: any;
}
/**
* An envelope that wraps a JSON object.
**/
interface JSONEnvelope<T> {
json: T;
}
/**
* JavaScript Object Notation Graph (JSONGraph) is a notation for expressing graphs in JSON. For more information, see the [JSONGraph Guide]{@link http://netflix.github.io/falcor/documentation/jsongraph.html}.
**/
type JSONGraph = any;
/**
* An envelope that wraps a {@link JSONGraph} fragment.
**/
interface JSONGraphEnvelope {
jsonGraph: JSONGraph;
paths?: Array<PathSet>;
invalidate?: Array<PathSet>;
}
/**
* Describe a range of integers. Must contain either a "to" or "length" property.
**/
interface Range {
from?: number;
to?: number;
length?: number;
}
interface Reference extends Sentinel {
$type: 'reference';
value: Path;
}
interface Sentinel {
$expires?: number;
}
function ref(path: string | FalcorJsonGraph.PathSet, props?: FalcorJsonGraph.Sentinel): FalcorJsonGraph.Reference;
function atom (value: any, props?: FalcorJsonGraph.Sentinel): FalcorJsonGraph.Atom;
function error(errorValue: any, props?: FalcorJsonGraph.Sentinel): FalcorJsonGraph.Error;
function pathValue(path: string | FalcorJsonGraph.PathSet, value: any): FalcorJsonGraph.PathValue;
function pathInvalidation(path: string | FalcorJsonGraph.PathSet): FalcorJsonGraph.InvalidPath;
}
declare module 'falcor-json-graph' {
export = FalcorJsonGraph;
}

View File

@@ -0,0 +1,102 @@
/// <reference path="falcor-router.d.ts" />
import falcor = require('falcor');
import Router = require('falcor-router');
new Router([]);
new Router([], {});
new Router([], {debug: true});
new Router([], {maxPaths: 10});
new Router([], {maxRefFollow: 10});
new Router([{route: "greeting", get: () =>({path:["greeting"], value: "Hello World"})}]);
new falcor.Model({source: new Router([])});
class MyRouter extends Router.createClass([]) {
constructor() {
super({debug: true, maxPaths: 10, maxRefFollow: 10});
}
}
new falcor.Model({source: new MyRouter()});
new Router([{
route: 'todos.length',
get() {
return {path: 'todos.length', value: 10};
},
}]);
new Router([{
route: 'todos.length',
get() {
return [{path: 'todos.length', value: 10}];
},
}]);
new Router([{
route: 'todos.length',
get() {
return {json: { todos: {length : 10}}};
}
}]);
new Router([{
route: 'todos.length',
get() {
return new Promise<falcor.PathValue>(resolve => {
resolve({path: 'todos.length', value: 10});
});
},
}]);
new Router([{
route: 'todos.length',
get() {
return new Promise<falcor.PathValue[]>(resolve => {
resolve([{path: 'todos.length', value: 10}]);
});
},
}]);
new Router([{
route: 'todos.length',
get() {
return new Promise<falcor.JSONEnvelope<any>>(resolve => {
resolve({json: { todos: {length : 10}}});
});
}
}]);
new Router([{
route: 'todos[{integers:indicies}]',
get(pathset: FalcorRouter.RoutePathSet & {indicies: number[]}) {
return pathset.indicies.map(idx => {
const id = 'id' + idx;
return {
path: `todos[${idx}]`,
value: {
$type: 'ref',
value: `todosById.${id}`
}
}
});
}
}]);
new Router([{
route: 'todos[{integers:number}]',
set(jsonGraph) {
return {json: jsonGraph};
}
}]);
new Router([{
route: 'todos.push',
call(callpath, args) {
return [
{path: 'json.todos.length', value: 11},
{path: 'json.todos[10].name', value: args[0].name}
];
}
}]);

59
falcor-router/falcor-router.d.ts vendored Normal file
View File

@@ -0,0 +1,59 @@
// Type definitions for falcor-router 0.4.0
// Project: https://github.com/Netflix/falcor-router
// Definitions by: Quramy <https://github.com/Quramy/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../falcor/falcor.d.ts" />
declare namespace FalcorRouter {
import DataSource = FalcorModel.DataSource;
class Router extends DataSource {
constructor(routes: Array<RouteDefinition>, options?: RouterOptions);
/**
* When a route misses on a call, get, or set the unhandledDataSource will
* have a chance to fulfill that request.
**/
routeUnhandledPathsTo(dataSource: DataSource): void;
static createClass(routes?: Array<RouteDefinition>): typeof CreatedRouter;
}
class CreatedRouter extends Router {
constructor(options?: RouterOptions);
}
interface Route {
route: string;
}
type RoutePathSet = FalcorJsonGraph.PathSet;
interface CallRoute extends Route {
call(callPath: RoutePathSet, args: Array<any>): RouteResult | Promise<RouteResult>;
}
interface GetRoute extends Route {
get(pathset: RoutePathSet): RouteResult | Promise<RouteResult>;
}
interface SetRoute extends Route {
set(jsonGraph: FalcorJsonGraph.JSONGraph): RouteResult | Promise<RouteResult>;
}
type RouteDefinition = GetRoute | SetRoute | CallRoute;
type RouteResult = FalcorJsonGraph.PathValue | Array<FalcorJsonGraph.PathValue> | FalcorJsonGraph.JSONEnvelope<any>;
interface RouterOptions {
debug?: boolean;
maxPaths?: number;
maxRefFollow?: number;
}
}
declare module 'falcor-router' {
export = FalcorRouter.Router;
}

View File

@@ -0,0 +1,18 @@
/// <reference path="falcor-browser.d.ts" />
var model = new falcor.Model({source: new falcor.HttpDataSource('/model.json')});
model.get('greeting').then(response => {
document.write(response.json.greeting);
});
model.set({
json: {
someAtom: falcor.atom('value'),
someRef: falcor.ref('someAtom'),
someError: falcor.error('an error'),
}
});
model.set(falcor.pathValue('greeting', 'Hello, world'));

20
falcor/falcor-browser.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
// Type definitions for falcor 0.1.17
// Project: http://netflix.github.io/falcor/
// Definitions by: Quramy <https://github.com/Quramy/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="falcor.d.ts" />
/// <reference path="../falcor-http-datasource/falcor-http-datasource.d.ts" />
declare interface FalcorStatic {
Model: typeof FalcorModel.Model;
DataSource: typeof FalcorModel.DataSource;
HttpDataSource: typeof FalcorHttpDataSource.XMlHttpSource;
ref: typeof FalcorJsonGraph.ref;
atom: typeof FalcorJsonGraph.atom;
error: typeof FalcorJsonGraph.error;
pathValue: typeof FalcorJsonGraph.pathValue;
}
declare var falcor: FalcorStatic;

132
falcor/falcor-tests.ts Normal file
View File

@@ -0,0 +1,132 @@
/// <reference path="falcor.d.ts" />
import falcor = require('falcor');
let dataSource: falcor.DataSource;
dataSource.get([['someParam']]).subscribe(jsonGraphEnvelope => {
console.log(jsonGraphEnvelope.jsonGraph);
});
dataSource.set({
jsonGraph: {
someParam: 'value',
},
paths: [['someParam']]
}).subscribe(jsonGraphEnvelope => {
console.log(jsonGraphEnvelope.jsonGraph);
});
dataSource.call(['items', 'push']);
dataSource.call(['items', 'push'], [{id: 'i003', name: 'item003'}]);
dataSource.call(['items', 'push'], [{id: 'i003', name: 'item003'}], [['id', 'name']]);
dataSource.call(['items', 'push'], [{id: 'i003', name: 'item003'}], [['id', 'name']], [['length']]).subscribe(jsonGraphEnvelope => {
console.log(jsonGraphEnvelope.jsonGraph);
console.log(jsonGraphEnvelope.invalidate);
console.log(jsonGraphEnvelope.paths[0]);
});
new falcor.Model();
new falcor.Model({});
new falcor.Model({
source: dataSource,
cache: {},
maxSize: 100,
collectRatio: 0.5,
comparator: (a, b) => {
return a === b;
},
errorSelector: (jsonGraphError: any) => {
console.error(jsonGraphError);
},
onChange: () => {
console.log('Changed!');
}
});
const model = new falcor.Model({
cache: {
itemsById: {
i01: {id: 'i01', name: 'item 01'},
i27: {id: 'i27', name: 'item 27'},
},
items: [
{$type: 'ref', value: ['itemsById', 'i01']},
{$type: 'ref', value: ['itemsById', 'i27']},
],
}
});
model.get('items[0].name');
model.get(['items', 0, 'name']);
model.get(['items', {from: 0, to: 1}, 'name']);
model.get(['items', {from: 0, length: 2, hoge: 3}, 'name']);
model.get('items[0].name', 'items[1].name');
model.set({path: 'items[0].name', value: 'ITEM 01'}, {path: ['items', 1, 'name'], value: 'ITEM 27'});
model.set({
itemsById: {
i01: {
name: 'ITEM 01'
}
}
});
model.preload();
model.preload(['items', 0, 'name']);
model.preload(['items', 0, 'name'], ['items', 1, 'name']);
model.preload(['items', {from: 0, to: 1}, 'name']);
model.call('items.push');
model.call(['items', 'push']);
model.call('items.push', [{id: 'i02', name: 'item02'}], ["length"]);
model.call('items.push', [{id: 'i02', name: 'item02'}], ["name", "length"], []);
model.invalidate();
model.invalidate(['items', 0, 'name']);
model.invalidate(['items', 0, 'name'], ['items', 1, 'name']);
model.invalidate(['items', {from: 0, to: 1}, 'name']);
model.get('items[0].["name", "id"]').then(res => {
const derefedModel = model.deref(res.json.items[0])
derefedModel.get('name', 'id');
});
model.getValue('items[0].name').subscribe();
model.getValue(['items', 0, 'name']).subscribe();
model.setValue('items[0].name', 'item001').subscribe();
model.setValue(['items', 0, 'name'], 'item001').subscribe();
model.setCache({itemsById: {}});
const cache = model.getCache();
let version: number;
version = model.getVersion();
version = model.getVersion(['items']);
const delayedBatchingModel: falcor.Model = model.batch(100);
delayedBatchingModel.unbatch();
const teabModel: falcor.Model = model.treatErrorsAsValues();
const sourceFromModel: falcor.DataSource = model.asDataSource();
const boxingModel: falcor.Model = model.boxValues();
const unboxingModel: falcor.Model = boxingModel.unboxValues();
const noDataSourceModel: falcor.Model = model.withoutDataSource();
const somePath: falcor.Path = model.getPath();
const modelResponse = model.get<{items: {length: number}}>('items.length');
modelResponse.subscribe();
modelResponse.subscribe(res => res.json.items.length);
modelResponse.subscribe(res => res.json.items.length, error => console.error.bind(error));
modelResponse.subscribe(res => res.json.items.length, error => console.error.bind(error), () => null);
const subscription = modelResponse.subscribe(res => res);
subscription.dispose();
modelResponse.then(res => res.json.items.length);
modelResponse.then(res => res, error => console.error.bind(error));
modelResponse.then<number>(res => res.json.items.length).then((l: number) => l + 1);

277
falcor/falcor.d.ts vendored Normal file
View File

@@ -0,0 +1,277 @@
// Type definitions for falcor 0.1.17
// Project: http://netflix.github.io/falcor/
// Definitions by: Quramy <https://github.com/Quramy/>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../falcor-json-graph/falcor-json-graph.d.ts" />
declare namespace FalcorModel {
/////////////////////////////////////////////////////
// Global types
/////////////////////////////////////////////////////
export import Atom = FalcorJsonGraph.Atom;
export import Error = FalcorJsonGraph.Error;
export import Key = FalcorJsonGraph.Key;
export import KeySet = FalcorJsonGraph.KeySet;
export import Path = FalcorJsonGraph.Path;
export import PathSet = FalcorJsonGraph.PathSet;
export import PathValue = FalcorJsonGraph.PathValue;
export import JSONEnvelope = FalcorJsonGraph.JSONEnvelope;
export import JSONGraph = FalcorJsonGraph.JSONGraph;
export import JSONGraphEnvelope = FalcorJsonGraph.JSONGraphEnvelope;
export import Range = FalcorJsonGraph.Range;
export import Reference = FalcorJsonGraph.Reference;
/////////////////////////////////////////////////////
// DataSource
/////////////////////////////////////////////////////
/**
* A DataSource is an interface which can be implemented to expose JSON Graph information to a Model. Every DataSource is associated with a single JSON Graph object. Models execute JSON Graph operations (get, set, and call) to retrieve values from the DataSources JSON Graph object. DataSources may retrieve JSON Graph information from anywhere, including device memory, a remote machine, or even a lazily-run computation.
**/
abstract class DataSource {
/**
* The get method retrieves values from the DataSource's associated JSONGraph object.
**/
get(pathSets: Array<PathSet>): Observable<JSONGraphEnvelope>;
/**
* The set method accepts values to set in the DataSource's associated JSONGraph object.
**/
set(jsonGraphEnvelope: JSONGraphEnvelope): Observable<JSONGraphEnvelope>;
/**
* Invokes a function in the DataSource's JSONGraph object.
**/
call(functionPath: Path, args?: Array<any>, refSuffixes?: Array<PathSet>, thisPaths?: Array<PathSet>): Observable<JSONGraphEnvelope>;
}
/////////////////////////////////////////////////////
// Model
/////////////////////////////////////////////////////
interface ModelOptions {
source?: DataSource;
cache?: JSONGraph;
maxSize?: number;
collectRatio?: number;
errorSelector?: ModelErrorSelector;
onChange?: ModelOnChange;
comparator?: ModelComparator;
}
/**
* This callback is invoked when the Model's cache is changed.
**/
interface ModelOnChange {
(): void;
}
/**
* This function is invoked on every JSONGraph Error retrieved from the DataSource. This function allows Error objects to be transformed before being stored in the Model's cache.
**/
interface ModelErrorSelector {
(jsonGraphError: any): any;
}
/**
* This function is invoked every time a value in the Model cache is about to be replaced with a new value. If the function returns true, the existing value is replaced with a new value and the version flag on all of the value's ancestors in the tree are incremented.
**/
interface ModelComparator {
(existingValue: any, newValue: any): boolean;
}
/**
* A Model object is used to execute commands against a {@link JSONGraph} object. {@link Model}s can work with a local JSONGraph cache, or it can work with a remote {@link JSONGraph} object through a {@link DataSource}.
**/
class Model {
constructor(options?: ModelOptions);
/**
* The get method retrieves several {@link Path}s or {@link PathSet}s from a {@link Model}. The get method loads each value into a JSON object and returns in a ModelResponse.
**/
get(...path: Array<string | PathSet>): ModelResponse<JSONEnvelope<any>>;
get<T>(...path: Array<string | PathSet>): ModelResponse<JSONEnvelope<T>>;
/**
* Sets the value at one or more places in the JSONGraph model. The set method accepts one or more {@link PathValue}s, each of which is a combination of a location in the document and the value to place there. In addition to accepting {@link PathValue}s, the set method also returns the values after the set operation is complete.
**/
set(...args: Array<PathValue>): ModelResponse<JSONEnvelope<any>>;
set<T>(...args: Array<PathValue>): ModelResponse<JSONEnvelope<T>>;
set(jsonGraph: JSONGraph): ModelResponse<JSONEnvelope<any>>;
set<T>(jsonGraph: JSONGraph): ModelResponse<JSONEnvelope<T>>;
/**
* The preload method retrieves several {@link Path}s or {@link PathSet}s from a {@link Model} and loads them into the Model cache.
**/
preload(...path: Array<PathSet>): void;
/**
* Invokes a function in the JSON Graph.
**/
// NOTE: In http://netflix.github.io/falcor/doc/Model.html#call, it says that refPaths should be an array<PathSet>.
// However, model implementation returns an error with setting refPaths as Array<PathSet> and it works with refPaths as PathSet.
// So refPaths is defined as a PathSet in this .d.ts.
call(functionPath: string | Path, args?: Array<any>, refPaths?: PathSet, thisPaths?: Array<PathSet>): ModelResponse<JSONEnvelope<any>>;
call<T>(functionPath: string | Path, args?: Array<any>, refPaths?: PathSet, thisPaths?: Array<PathSet>): ModelResponse<JSONEnvelope<T>>;
/**
* The invalidate method synchronously removes several {@link Path}s or {@link PathSet}s from a {@link Model} cache.
**/
invalidate(...path: Array<PathSet>): void;
/**
* Returns a new {@link Model} bound to a location within the {@link JSONGraph}. The bound location is never a {@link Reference}: any {@link Reference}s encountered while resolving the bound {@link Path} are always replaced with the {@link Reference}s target value. For subsequent operations on the {@link Model}, all paths will be evaluated relative to the bound path. Deref allows you to:
* - Expose only a fragment of the {@link JSONGraph} to components, rather than the entire graph
* - Hide the location of a {@link JSONGraph} fragment from components
* - Optimize for executing multiple operations and path looksup at/below the same location in the {@link JSONGraph}
**/
deref(responseObject: any): Model;
/**
* Get data for a single {@link Path}.
**/
getValue(path: string | Path): ModelResponse<any>;
getValue<T>(path: string | Path): ModelResponse<T>;
/**
* Set value for a single {@link Path}.
**/
setValue(path: string | Path, value: any): ModelResponse<any>;
setValue<T>(path: string | Path, value: any): ModelResponse<T>;
/**
* Set the local cache to a {@link JSONGraph} fragment. This method can be a useful way of mocking a remote document, or restoring the local cache from a previously stored state.
**/
setCache(jsonGraph: JSONGraph): void;
/**
* Get the local {@link JSONGraph} cache. This method can be a useful to store the state of the cache.
**/
getCache(...path: Array<PathSet>): JSONGraph;
/**
* Retrieves a number which is incremented every single time a value is changed underneath the Model or the object at an optionally-provided Path beneath the Model.
**/
getVersion(path?: Path): number;
/**
* Returns a clone of the {@link Model} that enables batching. Within the configured time period, paths for get operations are collected and sent to the {@link DataSource} in a batch. Batching can be more efficient if the {@link DataSource} access the network, potentially reducing the number of HTTP requests to the server.
**/
batch(schedulerOrDelay?: number | Scheduler): Model; // FIXME what's a valid type for scheduler?
/**
* Returns a clone of the {@link Model} that disables batching. This is the default mode. Each get operation will be executed on the {@link DataSource} separately.
**/
unbatch(): Model;
/**
* Returns a clone of the {@link Model} that treats errors as values. Errors will be reported in the same callback used to report data. Errors will appear as objects in responses, rather than being sent to the {@link Observable~onErrorCallback} callback of the {@link ModelResponse}.
**/
treatErrorsAsValues(): Model;
/**
* Adapts a Model to the {@link DataSource} interface.
**/
asDataSource(): DataSource;
/**
* Returns a clone of the {@link Model} that boxes values returning the wrapper ({@link Atom}, {@link Reference}, or {@link Error}), rather than the value inside it. This allows any metadata attached to the wrapper to be inspected.
**/
boxValues(): Model;
/**
* Returns a clone of the {@link Model} that unboxes values, returning the value inside of the wrapper ({@link Atom}, {@link Reference}, or {@link Error}), rather than the wrapper itself. This is the default mode.
**/
unboxValues(): Model;
/**
* Returns a clone of the {@link Model} that only uses the local {@link JSONGraph} and never uses a {@link DataSource} to retrieve missing paths.
**/
withoutDataSource(): Model;
/**
* Returns the {@link Path} to the object within the JSON Graph that this Model references.
**/
getPath(): Path;
}
/////////////////////////////////////////////////////
// ModelResponse
/////////////////////////////////////////////////////
class ModelResponse<T> extends Observable<T>{
constructor(observable: Observable<T>);
progressively(): ModelResponse<JSONEnvelope<T>>;
forEach(onNext: (value: T) => void, onError?: (error: Error) => void, onCompleted?: () => void): Subscription;
then(onFulfilled?: (value: T) => any | Thenable<any>, onRejected?: (error: any) => void): Thenable<any>;
then<U>(onFulfilled?: (value: T) => U | Thenable<U>, onRejected?: (error: any) => void): Thenable<U>;
}
interface Thenable<T> {
then<U>(onFulfilled?: (value: T) => U | Thenable<U>, onRejected?: (error: any) => U | Thenable<U>): Thenable<U>;
then<U>(onFulfilled?: (value: T) => U | Thenable<U>, onRejected?: (error: any) => void): Thenable<U>;
}
/////////////////////////////////////////////////////
// Observable
/////////////////////////////////////////////////////
class Observable<T>{
/**
* The forEach method is a synonym for {@link Observable.prototype.subscribe} and triggers the execution of the Observable, causing the values within to be pushed to a callback. An Observable is like a pipe of water that is closed. When forEach is called, we open the valve and the values within are pushed at us. These values can be received using either callbacks or an {@link Observer} object.
**/
forEach(onNext?: ObservableOnNextCallback<T>, onError?: ObservableOnErrorCallback , onCompleted?: ObservableOnCompletedCallback ): Subscription;
/**
* The subscribe method is a synonym for {@link Observable.prototype.forEach} and triggers the execution of the Observable, causing the values within to be pushed to a callback. An Observable is like a pipe of water that is closed. When forEach is called, we open the valve and the values within are pushed at us. These values can be received using either callbacks or an {@link Observer} object.
**/
subscribe(onNext?: ObservableOnNextCallback<T>, onError?: ObservableOnErrorCallback , onCompleted?: ObservableOnCompletedCallback ): Subscription;
}
/**
* This callback accepts a value that was emitted while evaluating the operation underlying the {@link Observable} stream.
**/
interface ObservableOnNextCallback<T> {
(value: T): void;
}
/**
* This callback accepts an error that occurred while evaluating the operation underlying the {@link Observable} stream. When this callback is invoked, the {@link Observable} stream ends and no more values will be received by the {@link Observable~onNextCallback}.
**/
interface ObservableOnErrorCallback {
(error: Error): void;
}
/**
* This callback is invoked when the {@link Observable} stream ends. When this callback is invoked the {@link Observable} stream has ended, and therefore the {@link Observable~onNextCallback} will not receive any more values.
**/
interface ObservableOnCompletedCallback {
(): void;
}
class Subscription {
/**
* When this method is called on the Subscription, the Observable that created the Subscription will stop sending values to the callbacks passed when the Subscription was created.
**/
dispose(): void;
}
interface Scheduler {
catch(handler: (exception: any) => boolean): Scheduler;
catchException(handler: (exception: any) => boolean): Scheduler;
}
}
declare module 'falcor' {
export = FalcorModel;
}

View File

@@ -73,6 +73,8 @@ interface FancyboxOptions extends FancyboxCallback {
prevMethod?: string;
helpers?: any;
live?: boolean;
parent?: string;
}
interface FancyboxMethods {
@@ -126,4 +128,4 @@ interface JQuery {
interface JQueryStatic {
fancybox: FancyboxMethods;
}
}

View File

@@ -0,0 +1,15 @@
/// <reference path="filesize.d.ts" />
import filesize = require("filesize");
filesize(500); // "500 B"
filesize(500, { bits: true }); // "4 Kb"
filesize(265318, { base: 10 }); // "265.32 kB"
filesize(265318); // "259.1 KB"
filesize(265318, { round: 0 }); // "259 KB"
filesize(265318, { output: "array" }); // [259.1, "KB"]
filesize(265318, { output: "object" }); // {value: 259.1, suffix: "KB", symbol: "KB"}
filesize(1, { symbols: { B: "Б" } }); // "1 Б"
filesize(1024); // "1 KB"
filesize(1024, { exponent: 0 }); // "1024 B"
filesize(1024, { output: "exponent" }); // 1

84
filesize/filesize.d.ts vendored Normal file
View File

@@ -0,0 +1,84 @@
// Type definitions for filesize 3.2.1
// Project: https://github.com/avoidwork/filesize.js
// Definitions by: Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace Filesize {
export interface SiJedecBits {
b?: string;
Kb?: string;
Mb?: string;
Gb?: string;
Tb?: string;
Pb?: string;
Eb?: string;
Zb?: string;
Yb?: string;
}
export interface SiJedecBytes {
B?: string;
KB?: string;
MB?: string;
GB?: string;
TB?: string;
PB?: string;
EB?: string;
ZB?: string;
YB?: string;
}
type SiJedec = SiJedecBits & SiJedecBytes & { [name: string]: string };
export interface Options {
/**
* Enables bit sizes, default is false
*/
bits?: boolean;
/**
* Number base, default is 2
*/
base?: number;
/**
* Decimal place, default is 2
*/
round?: number;
/**
* Output of function (array, exponent, object, or string), default is string
*/
output?: string;
/**
* Dictionary of SI/JEDEC symbols to replace for localization, defaults to english if no match is found
* @deprecated: use 'symbols'
*/
suffixes?: SiJedec;
/**
* Dictionary of SI/JEDEC symbols to replace for localization, defaults to english if no match is found
*/
symbols?: SiJedec;
/**
* Specifies the SI suffix via exponent, e.g. 2 is MB for bytes, default is -1
*/
exponent?: number;
/**
* Enables unix style human readable output, e.g ls -lh, default is false
*/
unix?: boolean;
/**
* Character between the result and suffix, default is " "
*/
spacer?: string;
}
export interface IFilesize {
(bytes: number): string;
(bytes: number, options: Options): string;
}
}
declare module "filesize" {
let fileSize: Filesize.IFilesize;
export = fileSize;
}

View File

@@ -334,6 +334,46 @@ interface FirebaseAuthData {
expires: number;
auth: Object;
google?: FirebaseAuthDataGoogle;
twitter?: FirebaseAuthDataTwitter;
github?: FirebaseAuthDataGithub;
facebook?: FirebaseAuthDataFacebook;
password?: FirebaseAuthDataPassword;
anonymous?: any;
}
interface FirebaseAuthDataPassword{
email: string;
isTemporaryPassword: boolean;
profileImageURL: string;
}
interface FirebaseAuthDataTwitter{
id: string;
accessToken: string;
accessTokenSecret: string;
displayName: string;
username: string;
profileImageURL: string;
cachedUserProfile: any;
}
interface FirebaseAuthDataGithub{
id: string;
accessToken: string;
displayName: string;
email?: string;
username: string;
profileImageURL: string;
cachedUserProfile: any;
}
interface FirebaseAuthDataFacebook{
id: string;
accessToken: string;
displayName: string;
email?: string;
profileImageURL: string;
cachedUserProfile: any;
}
interface FirebaseAuthDataGoogle {

View File

@@ -71,8 +71,8 @@ flowFile.cancel();
flowFile.retry();
flowFile.bootstrap();
bool = flowFile.isUploading();
bool = flowFile.isComplete;
num = flowFile.sizeUploaded;
num = flowFile.timeRemaining;
str = flowFile.getExtension;
str = flowFile.getType;
bool = flowFile.isComplete();
num = flowFile.sizeUploaded();
num = flowFile.timeRemaining();
str = flowFile.getExtension();
str = flowFile.getType();

10
flowjs/flowjs.d.ts vendored
View File

@@ -76,10 +76,10 @@ declare namespace flowjs {
retry(): void;
bootstrap(): void;
isUploading(): boolean;
isComplete: boolean;
sizeUploaded: number;
timeRemaining: number;
getExtension: string;
getType: string;
isComplete(): boolean;
sizeUploaded(): number;
timeRemaining(): number;
getExtension(): string;
getType(): string;
}
}

3
gapi/gapi.d.ts vendored
View File

@@ -140,8 +140,9 @@ declare namespace gapi.client {
* @param name The name of the API to load.
* @param version The version of the API to load
* @param callback the function that is called once the API interface is loaded
* @param url optional, the url of your app - if using Google's APIs, don't set it
*/
export function load(name: string, version: string, callback: () => any): void;
export function load(name: string, version: string, callback: () => any, url?: string): void;
/**
* Creates a HTTP request for making RESTful requests.
* An object encapsulating the various arguments for this method.

View File

@@ -0,0 +1,28 @@
/// <reference path="google-closure-compiler.d.ts" />
import * as GoogleClosureCompiler from 'google-closure-compiler';
// See
// https://github.com/chadkillingsworth/closure-compiler-npm#plugin-authors-and-native-node-usage
// for the API example. This code tries to do the exact same thing.
let ClosureCompiler = GoogleClosureCompiler.compiler;
console.log(ClosureCompiler.COMPILER_PATH)
console.log(ClosureCompiler.CONTRIB_PATH)
let options: GoogleClosureCompiler.CompileOptions = {
js: 'file-one.js',
compilation_level: 'ADVANCED',
};
let closureCompiler = new ClosureCompiler(options);
let compilerProcess = closureCompiler.run((exitCode, stdout, stderr) => {
// ...
});
let jsonStream: GoogleClosureCompiler.JSONStreamFile[] = [
{
path: 'foo.js',
src: 'var x = "hello, world";',
},
];

View File

@@ -0,0 +1,38 @@
// Type definitions for google-closure-compiler
// Project: https://github.com/chadkillingsworth/closure-compiler-npm
// Definitions by: Evan Martin <http://neugierig.org>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
declare module 'google-closure-compiler' {
import * as child_process from 'child_process';
// The "json_streams" compiler flag lets the compiler accept/produce
// arrays of JSON objects in this shape for input/output.
interface JSONStreamFile {
path: string;
src: string;
srcmap?: string; // TODO(evan): pass through source maps.
}
interface Compiler {
javaPath: string;
logger: (...args: any[]) => void;
spawnOptions: {[key:string]: string};
run(callback?: (exitCode: number, stdout: string, stderr: string) => void):
child_process.ChildProcess;
getFullCommand(): string;
}
type CompileOptions = {[key: string]: string};
var compiler: {
new (opts: (CompileOptions|string[]),
extraCommandArgs?: string[]): Compiler;
JAR_PATH: string;
COMPILER_PATH: string;
CONTRIB_PATH: string;
};
}

View File

@@ -339,6 +339,7 @@ declare namespace google.maps {
getCursor(): string;
getDraggable(): boolean;
getIcon(): string|Icon|Symbol;
getLabel(): MarkerLabel;
getMap(): Map|StreetViewPanorama;
getOpacity(): number;
getPlace(): Place;
@@ -353,6 +354,7 @@ declare namespace google.maps {
setCursor(cursor: string): void;
setDraggable(flag: boolean): void;
setIcon(icon: string|Icon|Symbol): void;
setLabel(label: string|MarkerLabel): void;
setMap(map: Map|StreetViewPanorama): void;
setOpacity(opacity: number): void;
setOptions(options: MarkerOptions): void;
@@ -390,6 +392,12 @@ declare namespace google.maps {
* @type {(string|Icon|Symbol)}
*/
icon?: string|Icon|Symbol;
/**
* Adds a label to the marker. The label can either be a string, or a MarkerLabel object.
* Only the first character of the string will be displayed.
* @type {(string|MarkerLabel)}
*/
label?: string|MarkerLabel;
/**
* Map on which to display Marker.
* @type {(Map|StreetViewPanorama)}
@@ -468,6 +476,19 @@ declare namespace google.maps {
url?: string;
}
export interface MarkerLabel {
/** The color of the label text. Default color is black. */
color?: string;
/** The font family of the label text (equivalent to the CSS font-family property). */
fontFamily?: string;
/** The font size of the label text (equivalent to the CSS font-size property). Default size is 14px. */
fontSize?: string;
/** The font weight of the label text (equivalent to the CSS font-weight property). */
fontWeight?: string;
/** The text to be displayed in the label. Only the first character of this string will be shown. */
text?: string;
}
export interface MarkerShape {
coords?: number[];
type?: string;

View File

@@ -11,7 +11,7 @@ declare module "hammerjs" {
interface HammerStatic
{
new( element:HTMLElement, options?:any ): HammerManager;
new( element:HTMLElement | SVGElement, options?:any ): HammerManager;
defaults:HammerDefaults;

View File

@@ -0,0 +1,190 @@
/// <reference path="handsontable.d.ts" />
function test_HandsontableInit() {
var elem = document.createElement('div');
var hot = new Handsontable(elem, {
allowEmpty: true,
allowInsertColumn: true,
allowInsertRow: true,
allowInvalid: true,
allowRemoveColumn: true,
allowRemoveRow: true,
autoColumnSize: true,
autoComplete: [],
autoRowSize: true,
autoWrapCol: true,
autoWrapRow: true,
cell: [],
cells: function() {},
checkedTemplate: true,
className: [],
colHeaders: true,
columnHeaderHeight: 123,
columns: [],
columnSorting: {},
colWidths: 123,
commentedCellClassName: 'foo',
comments: [],
contextMenu: true,
contextMenuCopyPaste: {},
copyable: true,
copyColsLimit: 123,
copyPaste: true,
copyRowsLimit: 123,
correctFormat: true,
currentColClassName: 'foo',
currentRowClassName: 'foo',
customBorders: true,
data: [],
dataSchema: {},
dateFormat: 'foo',
debug: true,
defaultDate: 'foo',
disableVisualSelection: true,
editor: true,
enterBeginsEditing: true,
enterMoves: {},
fillHandle: true,
fixedColumnsLeft: 123,
fixedRowsTop: 123,
format: 'foo',
fragmentSelection: true,
height: 123,
invalidCellClassName: 'foo',
label: {},
language: 'foo',
manualColumnFreeze: true,
manualColumnMove: true,
manualColumnResize: true,
manualRowMove: true,
manualRowResize: true,
maxCols: 123,
maxRows: 123,
mergeCells: true,
minCols: 123,
minRows: 123,
minSpareCols: 123,
minSpareRows: 123,
multiSelect: true,
noWordWrapClassName: 'foo',
observeChanges: true,
observeDOMVisibility: true,
outsideClickDeselects: true,
pasteMode: 'foo',
persistentState: true,
placeholder: 123,
placeholderCellClassName: 'foo',
preventOverflow: true,
readOnly: true,
readOnlyCellClassName: 'foo',
renderAllRows: true,
renderer: 'foo',
rowHeaders: true,
rowHeaderWidth: 123,
rowHeights: 123,
search: true,
selectOptions: [],
skipColumnOnPaste: true,
sortFunction: function() {},
sortIndicator: true,
source: [],
startCols: 123,
startRows: 123,
stretchH: 'foo',
strict: true,
tableClassName: 'foo',
tabMoves: {},
title: 'foo',
trimDropdown: true,
trimWhitespace: true,
type: 'foo',
uncheckedTemplate: true,
undo: true,
validator: function() {},
viewportColumnRenderingOffset: 123,
viewportRowRenderingOffset: 123,
visibleRows: 123,
width: 1232,
wordWrap: true,
});
}
function test_HandsontableMethods() {
var elem = document.createElement('div');
var hot = new Handsontable(elem, {});
hot.addHook('foo', []);
hot.addHookOnce('foo', []);
hot.alter('foo', 123, 123, 'foo', true);
hot.clear();
hot.colOffset();
hot.colToProp(123);
hot.countCols();
hot.countEmptyCols(true);
hot.countEmptyRows(true);
hot.countRenderedCols();
hot.countRenderedRows();
hot.countRows();
hot.countSourceRows();
hot.countVisibleCols();
hot.countVisibleRows();
hot.deselectCell();
hot.destroy();
hot.destroyEditor(true);
hot.getActiveEditor();
hot.getCell(123, 123, true);
hot.getCellEditor(123, 123);
hot.getCellMeta(123, 123);
hot.getCellRenderer(123, 123);
hot.getCellValidator(123, 123);
hot.getColHeader(123);
hot.getColWidth(123);
hot.getCoords(elem.querySelector('td'));
hot.getCopyableData(123, 123);
hot.getCopyableText(123, 123, 123, 123);
hot.getData(123, 123, 123, 123);
hot.getDataAtCell(123, 123);
hot.getDataAtCol(123);
hot.getDataAtProp(123);
hot.getDataAtRow(123);
hot.getDataAtRowProp(123, 'foo');
hot.getDataType(123, 123, 123, 123);
hot.getInstance();
hot.getPlugin('foo');
hot.getRowHeader(123);
hot.getRowHeight(123);
hot.getSchema();
hot.getSelected();
hot.getSelectedRange();
hot.getSettings();
hot.getSourceData(123, 123, 123, 123);
hot.getSourceDataAtCell(123, 123);
hot.getSourceDataAtCol(123);
hot.getSourceDataAtRow(123);
hot.getValue();
hot.hasColHeaders();
hot.hasHook('foo');
hot.hasRowHeaders();
hot.isEmptyCol(123);
hot.isEmptyRow(123);
hot.isListening();
hot.listen();
hot.loadData([]);
hot.populateFromArray(123, 123, [], 123, 123, 'foo', 'foo', 'foo', []);
hot.propToCol('foo');
hot.removeCellMeta(123, 123, 'foo');
hot.removeHook('foo', function() {});
hot.render();
hot.rowOffset();
hot.runHooks('foo', 123, 'foo', true, {}, [], function() {});
hot.selectCell(123, 123, 123, 123, true, true);
hot.selectCellByProp(123, 'foo', 123, 'foo', true);
hot.setCellMeta(123, 123, 'foo', 'foo');
hot.setCellMetaObject(123, 123, {});
hot.setDataAtCell(123, 123, 'foo', 'foo');
hot.setDataAtRowProp(123, 'foo', 'foo', 'foo');
hot.spliceCol(123, 123, 123, 'foo');
hot.spliceRow(123, 123, 123, 'foo');
hot.unlisten();
hot.updateSettings({}, true);
hot.validateCells(function() {});
}

194
handsontable/handsontable.d.ts vendored Normal file
View File

@@ -0,0 +1,194 @@
// Type definitions for Handsontable 0.24.1
// Project: https://handsontable.com/
// Definitions by: Handsoncode sp. z o.o. <http://handsoncode.net/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped\
declare namespace ht {
interface Options {
allowEmpty?: boolean;
allowInsertColumn?: boolean;
allowInsertRow?: boolean;
allowInvalid?: boolean;
allowRemoveColumn?: boolean;
allowRemoveRow?: boolean;
autoColumnSize?: Object|boolean;
autoComplete?: any[];
autoRowSize?: Object|boolean;
autoWrapCol?: boolean;
autoWrapRow?: boolean;
cell?: any[];
cells?: Function;
checkedTemplate?: boolean|string;
className?: string|any[];
colHeaders?: boolean|any[]|Function;
columnHeaderHeight?: number|any[];
columns?: any[];
columnSorting?: boolean|Object;
colWidths?: any[]|Function|number|string;
commentedCellClassName?: string;
comments?: boolean|any[];
contextMenu?: boolean|any[]|Object;
contextMenuCopyPaste?: Object;
copyable?: boolean;
copyColsLimit?: number;
copyPaste?: boolean;
copyRowsLimit?: number;
correctFormat?: boolean;
currentColClassName?: string;
currentRowClassName?: string;
customBorders?: boolean|any[];
data?: any[]|Function;
dataSchema?: Object;
dateFormat?: string;
debug?: boolean;
defaultDate?: string;
disableVisualSelection?: boolean|string|any[];
editor?: string|Function|boolean;
enterBeginsEditing?: boolean;
enterMoves?: Object|Function;
fillHandle?: boolean|string|Object;
fixedColumnsLeft?: number;
fixedRowsTop?: number;
format?: string;
fragmentSelection?: boolean|string;
height?: number|Function;
invalidCellClassName?: string;
label?: Object;
language?: string;
manualColumnFreeze?: boolean;
manualColumnMove?: boolean|any[];
manualColumnResize?: boolean|any[];
manualRowMove?: boolean|any[];
manualRowResize?: boolean|any[];
maxCols?: number;
maxRows?: number;
mergeCells?: boolean|any[];
minCols?: number;
minRows?: number;
minSpareCols?: number;
minSpareRows?: number;
multiSelect?: boolean;
noWordWrapClassName?: string;
observeChanges?: boolean;
observeDOMVisibility?: boolean;
outsideClickDeselects?: boolean;
pasteMode?: string;
persistentState?: boolean;
placeholder?: any;
placeholderCellClassName?: string;
preventOverflow?: string|boolean;
readOnly?: boolean;
readOnlyCellClassName?: string;
renderAllRows?: boolean;
renderer?: string|Function;
rowHeaders?: boolean|any[]|Function;
rowHeaderWidth?: number|any[];
rowHeights?: any[]|Function|number|string;
search?: boolean;
selectOptions?: any[];
skipColumnOnPaste?: boolean;
sortFunction?: Function;
sortIndicator?: boolean;
source?: any[]|Function;
startCols?: number;
startRows?: number;
stretchH?: string;
strict?: boolean;
tableClassName?: string|any[];
tabMoves?: Object;
title?: string;
trimDropdown?: boolean;
trimWhitespace?: boolean;
type?: string;
uncheckedTemplate?: boolean|string;
undo?: boolean;
validator?: Function|RegExp;
viewportColumnRenderingOffset?: number|string;
viewportRowRenderingOffset?: number|string;
visibleRows?: number;
width?: number|Function;
wordWrap?: boolean;
isEmptyCol?: (col: number) => boolean;
isEmptyRow?: (row: number) => boolean;
}
interface Methods {
addHook(key: string, callback: Function|any[]): void;
addHookOnce(key: string, callback: Function|any[]): void;
alter(action: string, index: number, amount?: number, source?: string, keepEmptyRows?: boolean): void;
clear(): void;
colOffset(): number;
colToProp(col: number): string|number;
countCols(): number;
countEmptyCols(ending?: boolean): number;
countEmptyRows(ending?: boolean): number;
countRenderedCols(): number;
countRenderedRows(): number;
countRows(): number;
countSourceRows(): number;
countVisibleCols(): number;
countVisibleRows(): number;
deselectCell(): void;
destroy(): void;
destroyEditor(revertOriginal?: boolean): void;
getActiveEditor(): Object;
getCell(row: number, col: number, topmost?: boolean): Element;
getCellEditor(row: number, col: number): Object;
getCellMeta(row: number, col: number): Object;
getCellRenderer(row: number, col: number): Function;
getCellValidator(row: number, col: number): any;
getColHeader(col: number): any[]|string;
getColWidth(col: number): number;
getCoords(elem: Element): Object;
getCopyableData(row: number, column: number): string;
getCopyableText(startRow: number, startCol: number, endRow: number, endCol: number): string;
getData(r?: number, c?: number, r2?: number, c2?: number): any[];
getDataAtCell(row: number, col: number): any;
getDataAtCol(col: number): any[];
getDataAtProp(prop: string|number): any[];
getDataAtRow(row: number): any[];
getDataAtRowProp(row: number, prop: string): any;
getDataType(rowFrom: number, columnFrom: number, rowTo: number, columnTo: number): string;
getInstance(): any;
getPlugin(pluginName: string): any;
getRowHeader(row?: number): any[]|string;
getRowHeight(row: number): number;
getSchema(): Object;
getSelected(): any[];
getSelectedRange(): any;
getSettings(): Object;
getSourceData(r?: number, c?: number, r2?: number, c2?: number): any[];
getSourceDataAtCell(row: number, column: number): any;
getSourceDataAtCol(column: number): any[];
getSourceDataAtRow(row: number): any[]|Object;
getValue(): any;
hasColHeaders(): boolean;
hasHook(key: string): boolean;
hasRowHeaders(): boolean;
isEmptyCol(col: number): boolean;
isEmptyRow(row: number): boolean;
isListening(): boolean;
listen(): void;
loadData(data: any[]): void;
populateFromArray(row: number, col: number, input: any[], endRow?: number, endCol?: number, source?: string, method?: string, direction?: string, deltas?: any[]): any;
propToCol(prop: string): number;
removeCellMeta(row: number, col: number, key: string): void;
removeHook(key: string, callback: Function): void;
render(): void;
rowOffset(): number;
runHooks(key: string, p1?: any, p2?: any, p3?: any, p4?: any, p5?: any, p6?: any): any;
selectCell(row: number, col: number, endRow?: number, endCol?: number, scrollToCell?: boolean, changeListener?: boolean): boolean;
selectCellByProp(row: number, prop: string, endRow?: number, endProp?: string, scrollToCell?: boolean): boolean;
setCellMeta(row: number, col: number, key: string, val: string): void;
setCellMetaObject(row: number, col: number, prop: Object): void;
setDataAtCell(row: number|any[], col: number, value: string, source?: string): void;
setDataAtRowProp(row: number|any[], prop: string, value: string, source?: string): void;
spliceCol(col: number, index: number, amount: number, elements?: any): void;
spliceRow(row: number, index: number, amount: number, elements?: any): void;
unlisten(): void;
updateSettings(settings: Object, init: boolean): void;
validateCells(callback: Function): void;
}
}
declare var Handsontable: {
new (element: Element, options: ht.Options): ht.Methods;
};

View File

@@ -234,10 +234,10 @@ declare module "hapi" {
credentialData?: any
): IBoom;
/** Note that if result is a Stream with a statusCode property, that status code will be used as the default response code. */
<T>(result: string|number|boolean|Buffer|stream.Stream | Promise<T> | T): Response;
<T>(result?: string|number|boolean|Buffer|stream.Stream | Promise<T> | T): Response;
/** Returns control back to the framework without setting a response. If called in the handler, the response defaults to an empty payload with status code 200.
* The data argument is only used for passing back authentication data and is ignored elsewhere. */
* The data argument is only used for passing back authentication data and is ignored elsewhere. */
continue(credentialData?: any): void;
/** Transmits a file from the file system. The 'Content-Type' header defaults to the matching mime type based on filename extension. The response flow control rules do not apply. */

View File

@@ -22,10 +22,12 @@ plugin.register.attributes = {
};
// optional options parameter
server.register({}, function (err) {});
server.register({}, function (err) {
});
// optional options.routes.vhost parameter
server.register({}, { select: 'api', routes: { prefix: '/prefix' } }, function (err) {});
// optional options.routes.vhost parameter
server.register({}, {select: 'api', routes: {prefix: '/prefix'}}, function (err) {
});
//server.pack.register(plugin, (err: Object) => {
// if (err) { throw err; }
@@ -84,15 +86,22 @@ server.route([{
// config.validate parameters should be optional
server.route([{
method: 'GET',
path: '/hello2',
handler: function(request: Hapi.Request, reply: Function) {
reply('hello world2');
},
config: {
validate: {
}
}
method: 'GET',
path: '/hello2',
handler: function (request: Hapi.Request, reply: Function) {
reply('hello world2');
},
config: {
validate: {}
}
}]);
server.route([{
method: 'GET',
path: '/hello3',
handler: function (request: Hapi.Request, reply: Function) {
reply().code(201);
}
}]);
// Start the server

View File

@@ -22,17 +22,19 @@ plugin.register.attributes = {
};
// optional options parameter
server.register({}, function (err) {});
server.register({}, function (err) {
});
// optional callback function with and without options
server.register({}).then((res: any) => {
console.log(res);
});
server.register({}, { select: "api", routes: { prefix: "/prefix" } }).then((res: any) => {
server.register({}, {select: "api", routes: {prefix: "/prefix"}}).then((res: any) => {
console.log(res);
});
// optional options.routes.vhost parameter
server.register({}, { select: "api", routes: { prefix: "/prefix" } }, function (err) {});
server.register({}, {select: "api", routes: {prefix: "/prefix"}}, function (err) {
});
//server.pack.register(plugin, (err: Object) => {
// if (err) { throw err; }
@@ -91,28 +93,29 @@ server.route([{
// config.validate parameters should be optional
server.route([{
method: 'GET',
path: '/hello2',
handler: function(request: Hapi.Request, reply: Function) {
reply('hello world2');
},
config: {
validate: {
}
}
method: 'GET',
path: '/hello2',
handler: function (request: Hapi.Request, reply: Function) {
reply('hello world2');
},
config: {
validate: {}
}
}]);
// Should be able to chain reply options
server.route([{
method: 'GET',
path: '/chained-notation',
handler: function(request: Hapi.Request, reply: Hapi.IReply) {
reply('chained-notation')
.bytes(16)
.code(200)
.type('text/plain')
.header('X-Custom', 'some-value');
}
method: 'GET',
path: '/chained-notation',
handler: function (request: Hapi.Request, reply: Hapi.IReply) {
reply.state('cookie_key', 'cookie_value');
reply('chained-notation')
.bytes(16)
.code(200)
.type('text/plain')
.unstate('cookie_to_remove')
.header('X-Custom', 'some-value');
}
}]);
// Start the server
@@ -120,48 +123,50 @@ server.start();
// server startup may now return a promise
server.start()
.then(() => {
console.log('Started!');
});
.then(() => {
console.log('Started!');
});
//inject a request into connection
server.inject({
method: 'GET',
url: '/hello'
method: 'GET',
url: '/hello'
}).then(response => {
console.log(response.statusCode);
console.log(response.statusCode);
});
//the same but this time using callback
server.inject({
method: 'GET',
url: '/hello'
method: 'GET',
url: '/hello'
}, response => {
console.log(response.statusCode);
console.log(response.statusCode);
});
//tests for server initialization
server.initialize()
.then(() => {
console.log('Initialized!')
});
.then(() => {
console.log('Initialized!')
});
//and the same but with callback
server.initialize(err => {
if (err) {
console.log(err);
}
if (err) {
console.log(err);
}
});
//server stopping may now return a promise
server.stop()
.then(() => {
console.log('Stopped!');
});
.then(() => {
console.log('Stopped!');
});
//decorate can take an optional options argument
server.decorate('hello', 'world', () => {}, {
apply: true
server.decorate('hello', 'world', () => {
}, {
apply: true
});
server.decorate('hello2', 'world2', () => {});
server.decorate('hello2', 'world2', () => {
});

3654
hapi/hapi.d.ts vendored

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,10 @@
/// <reference path="html-entities.d.ts" />
import * as htmlEntities from "html-entities";
let entities = new htmlEntities.AllHtmlEntities();
console.log(entities.encode('<>"\'&©®')); // &lt;&gt;&quot;&apos;&amp;©®
console.log(entities.encodeNonUTF('<>"\'&©®')); // &lt;&gt;&quot;&apos;&amp;&#169;&#174;
console.log(entities.encodeNonASCII('<>"\'&©®')); // <>"\'&©®
console.log(entities.decode('&lt;&gt;&quot;&apos;&amp;&copy;&reg;&#8710;')); // <>"'&&copy;&reg;∆

17
html-entities/html-entities.d.ts vendored Normal file
View File

@@ -0,0 +1,17 @@
// Type definitions for html-entities v1.2.0
// Project: https://www.npmjs.com/package/html-entities
// Definitions by: Xavier Stouder <https://github.com/xstoudi/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "html-entities" {
abstract class Entities {
encode(toEncode: string): string;
encodeNonUTF(toEncode: string): string;
encodeNonASCII(toEncode: string): string;
decode(toDecode: string): string;
}
class XmlEntities extends Entities {}
class Html4Entities extends Entities {}
class Html5Entities extends Entities {}
class AllHtmlEntities extends Entities {}
}

View File

@@ -36,6 +36,9 @@ declare namespace Html2Canvas {
/** Whether to attempt to load cross-origin images as CORS served, before reverting back to proxy. */
useCORS?: boolean;
/** Use svg powered rendering where available (FF11+). */
svgRendering?: boolean;
/** Callback providing the rendered canvas element after rendering */
onrendered?(canvas: HTMLCanvasElement): void;

View File

@@ -39,7 +39,9 @@ str = httpStatus[414];
str = httpStatus[415];
str = httpStatus[416];
str = httpStatus[417];
str = httpStatus[422];
str = httpStatus[429];
str = httpStatus[451];
str = httpStatus[500];
str = httpStatus[501];
str = httpStatus[502];
@@ -82,7 +84,9 @@ nmr = httpStatus.REQUEST_URI_TOO_LONG;
nmr = httpStatus.UNSUPPORTED_MEDIA_TYPE;
nmr = httpStatus.REQUESTED_RANGE_NOT_SATISFIABLE;
nmr = httpStatus.EXPECTATION_FAILED;
nmr = httpStatus.UNPROCESSABLE_ENTITY;
nmr = httpStatus.TOO_MANY_REQUESTS;
nmr = httpStatus.UNAVAILABLE_FOR_LEGAL_REASONS;
nmr = httpStatus.INTERNAL_SERVER_ERROR;
nmr = httpStatus.NOT_IMPLEMENTED;
nmr = httpStatus.BAD_GATEWAY;

View File

@@ -1,4 +1,4 @@
// Type definitions for http-status v0.1.8
// Type definitions for http-status v0.2.1
// Project: https://github.com/wdavidw/node-http-status
// Definitions by: Michael Zabka <https://github.com/misak113/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -38,7 +38,9 @@ interface HttpStatus {
415: string;
416: string;
417: string;
422: string;
429: string;
451: string;
500: string;
501: string;
502: string;
@@ -79,7 +81,9 @@ interface HttpStatus {
UNSUPPORTED_MEDIA_TYPE: number;
REQUESTED_RANGE_NOT_SATISFIABLE: number;
EXPECTATION_FAILED: number;
UNPROCESSABLE_ENTITY: number;
TOO_MANY_REQUESTS: number;
UNAVAILABLE_FOR_LEGAL_REASONS: number;
INTERNAL_SERVER_ERROR: number;
NOT_IMPLEMENTED: number;
BAD_GATEWAY: number;

28
iconv/iconv-tests.ts Normal file
View File

@@ -0,0 +1,28 @@
///<reference path="./iconv.d.ts" />
import {Iconv} from "iconv";
import {Writable} from "stream";
const iconv: Iconv.Iconv = new Iconv("utf-8", "cp932");
const iconvFromFunction: Iconv.Iconv = Iconv("utf-8", "cp932");
iconv.writable = true;
let buffer: Buffer;
buffer = iconv.convert("hoge");
buffer = iconv.convert("hoge", "utf-8");
buffer = iconv.convert(new Buffer("hoge"), "utf-8");
let result: boolean;
result = iconv.write("hoge");
result = iconv.write("hoge", "utf-8");
result = iconv.write(new Buffer("hoge"), "utf-8");
iconv.end();
iconv.end("hoge");
iconv.end("hoge", "utf-8");
iconv.end(new Buffer("hoge"), "utf-8");
const st: Writable = iconv.pipe(new Writable, {end: true});

39
iconv/iconv.d.ts vendored Normal file
View File

@@ -0,0 +1,39 @@
// Type definitions for iconv 2.1.11
// Project: https://github.com/bnoordhuis/node-iconv
// Definitions by: delphinus <https://github.com/delphinus35/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
///<reference path="../node/node.d.ts" />
declare namespace Iconv {
interface Static {
new(fromEncoding: string, toEncoding: string): Iconv;
(fromEncoding: string, toEncoding: string): Iconv;
}
interface Iconv extends NodeJS.WritableStream {
writable: boolean;
convert(input: string | Buffer, encoding?: string): Buffer;
write(input: string | Buffer, encoding?: string): boolean;
end(input?: string | Buffer, encoding?: string): void;
// copy from NodeJS.WritableStream for compatibility
write(buffer: Buffer|string, cb?: Function): boolean;
write(str: string, encoding?: string, cb?: Function): boolean;
end(): void;
end(buffer: Buffer, cb?: Function): void;
end(str: string, cb?: Function): void;
end(str: string, encoding?: string, cb?: Function): void;
// copy from stream.Stream
pipe<T extends NodeJS.WritableStream>(destination: T, options?: { end?: boolean; }): T;
}
}
declare module "iconv" {
var Iconv: Iconv.Static;
}

View File

@@ -0,0 +1,50 @@
/// <reference path="immutability-helper.d.ts"/>
import * as update from 'immutability-helper';
import { newContext } from 'immutability-helper';
namespace TestObjectUpdate {
update({}, {
foo: {
bar: { $set: 'baz' }
}
});
}
namespace TestArrayUpdate {
update([], {
foo: {
bar: { $set: 'baz' }
}
});
}
namespace TestExtend {
update.extend('$command', (specValue, originalValue) => originalValue);
}
namespace TestNewContext {
update.newContext().extend('$command', (specValue, originalValue) => originalValue);
newContext().extend('$command', (specValue, originalValue) => originalValue);
// This shouldn't compile, but we can't test negatives.
// newContext().newContext();
}
namespace TestFromReactDocs {
// These are copied from https://facebook.github.io/react/docs/update.html
let initialArray = [1, 2, 3];
let newArray = update(initialArray, { $push: [4] }); // => [1, 2, 3, 4]
let collection = [1, 2, { a: [12, 17, 15] }];
let newCollection = update(collection, { 2: { a: { $splice: [[1, 1, 13, 14]] } } });
// => [1, 2, {a: [12, 13, 14, 15]}]
let obj = { a: 5, b: 3 };
let newObj = update(obj, { b: { $apply: function(x: number) { return x * 2; } } });
// => {a: 5, b: 6}
let newObj2 = update(obj, { b: { $set: obj.b * 2 } });
let objShallow = { a: 5, b: 3 };
let newObjShallow = update(obj, { $merge: { b: 6, c: 7 } }); // => {a: 5, b: 6, c: 7}
}

View File

@@ -0,0 +1,41 @@
// Type definitions for immutability-helper v2.0.0
// Project: https://github.com/kolodny/immutability-helper
// Definitions by: Sean Kelley <https://github.com/seansfkelley>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare module "immutability-helper" {
interface UpdateSpecCommand {
$set?: any;
$merge?: {};
$apply?(value: any): any;
[customCommand: string]: any;
}
interface UpdateSpecPath {
[pathPart: string]: UpdateSpec;
}
type UpdateSpec = UpdateSpecCommand | UpdateSpecPath;
interface UpdateArraySpec extends UpdateSpecCommand {
$push?: any[];
$unshift?: any[];
$splice?: any[][];
[customCommand: string]: any;
}
type CommandHandler = (specValue: any, originalValue: any) => any;
interface UpdateFunction {
(value: any[], spec: UpdateArraySpec): any[];
(value: {}, spec: UpdateSpec): any;
extend: (commandName: string, handler: CommandHandler) => any;
}
interface Update extends UpdateFunction {
newContext(): UpdateFunction;
}
const update: Update;
export = update;
}

54
ioredis/ioredis-tests.ts Normal file
View File

@@ -0,0 +1,54 @@
/// <reference path="ioredis.d.ts" />
import * as Redis from "ioredis";
var redis = new Redis();
redis.set('foo', 'bar');
redis.get('foo', function(err, result) {
console.log(result);
});
// Or using a promise if the last argument isn't a function
redis.get('foo').then(function(result: any) {
console.log(result);
});
// Arguments to commands are flattened, so the following are the same:
redis.sadd('set', 1, 3, 5, 7);
redis.sadd('set', [1, 3, 5, 7]);
// All arguments are passed directly to the redis server:
redis.set('key', 100, 'EX', 10);
new Redis() // Connect to 127.0.0.1:6379
new Redis(6380) // 127.0.0.1:6380
new Redis(6379, '192.168.1.1') // 192.168.1.1:6379
new Redis('/tmp/redis.sock')
new Redis({
port: 6379, // Redis port
host: '127.0.0.1', // Redis host
family: 4, // 4 (IPv4) or 6 (IPv6)
password: 'auth',
db: 0
})
var pub = new Redis();
redis.subscribe('news', 'music', function(err: any, count: any) {
// Now we are subscribed to both the 'news' and 'music' channels.
// `count` represents the number of channels we are currently subscribed to.
pub.publish('news', 'Hello world!');
pub.publish('music', 'Hello again!');
});
redis.on('message', function(channel: any, message: any) {
// Receive message Hello world! from channel news
// Receive message Hello again! from channel music
console.log('Receive message %s from channel %s', message, channel);
});
// There's also an event called 'messageBuffer', which is the same as 'message' except
// it returns buffers instead of strings.
redis.on('messageBuffer', function(channel: any, message: any) {
// Both `channel` and `message` are buffers.
});

699
ioredis/ioredis.d.ts vendored Normal file
View File

@@ -0,0 +1,699 @@
// Type definitions for ioredis
// Project: https://github.com/luin/ioredis
// Definitions by: York Yao <https://github.com/plantain-00/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/* =================== USAGE ===================
import * as Redis from "ioredis";
var redis = new Redis();
=============================================== */
/// <reference path="../node/node.d.ts" />
declare module "ioredis" {
interface RedisStatic {
new (port?: number, host?: string, options?: IORedis.RedisOptions): IORedis.Redis;
new (host?: string, options?: IORedis.RedisOptions): IORedis.Redis;
new (options: IORedis.RedisOptions): IORedis.Redis;
new (url: string): IORedis.Redis;
(port?: number, host?: string, options?: IORedis.RedisOptions): IORedis.Redis;
(host?: string, options?: IORedis.RedisOptions): IORedis.Redis;
(options: IORedis.RedisOptions): IORedis.Redis;
(url: string): IORedis.Redis;
Cluster: IORedis.Cluster;
}
var redis: RedisStatic;
export = redis;
}
declare module IORedis {
interface Commander {
new (): Commander;
getBuiltinCommands(): string[];
createBuiltinCommand(commandName: string): {};
defineCommand(name: string, definition: {
numberOfKeys?: number;
lua?: string;
}): any;
sendCommand(): void;
}
interface Redis extends NodeJS.EventEmitter, Commander {
connect(callback: Function): Promise<any>;
disconnect(): void;
duplicate(): Redis;
monitor(calback: (error: Error, monitor: NodeJS.EventEmitter) => void): Promise<NodeJS.EventEmitter>;
send_command(command: string, ...args: any[]): any;
auth(password: string, callback?: ResCallbackT<any>): any;
ping(callback?: ResCallbackT<number>): any;
append(key: string, value: string, callback?: ResCallbackT<number>): any;
bitcount(key: string, callback?: ResCallbackT<number>): any;
bitcount(key: string, start: number, end: number, callback?: ResCallbackT<number>): any;
set(key: string, value: string, callback?: ResCallbackT<string>): any;
get(key: string, callback?: ResCallbackT<string>): any;
exists(key: string, value: string, callback?: ResCallbackT<number>): any;
publish(channel: string, value: any): any;
subscribe(channel: string): any;
get(args: any[], callback?: ResCallbackT<string>): any;
get(...args: any[]): any;
set(args: any[], callback?: ResCallbackT<string>): any;
set(...args: any[]): any;
setnx(args: any[], callback?: ResCallbackT<any>): any;
setnx(...args: any[]): any;
setex(args: any[], callback?: ResCallbackT<any>): any;
setex(...args: any[]): any;
append(args: any[], callback?: ResCallbackT<any>): any;
append(...args: any[]): any;
strlen(args: any[], callback?: ResCallbackT<any>): any;
strlen(...args: any[]): any;
del(args: any[], callback?: ResCallbackT<any>): any;
del(...args: any[]): any;
exists(args: any[], callback?: ResCallbackT<any>): any;
exists(...args: any[]): any;
setbit(args: any[], callback?: ResCallbackT<any>): any;
setbit(...args: any[]): any;
getbit(args: any[], callback?: ResCallbackT<any>): any;
getbit(...args: any[]): any;
setrange(args: any[], callback?: ResCallbackT<any>): any;
setrange(...args: any[]): any;
getrange(args: any[], callback?: ResCallbackT<any>): any;
getrange(...args: any[]): any;
substr(args: any[], callback?: ResCallbackT<any>): any;
substr(...args: any[]): any;
incr(args: any[], callback?: ResCallbackT<any>): any;
incr(...args: any[]): any;
decr(args: any[], callback?: ResCallbackT<any>): any;
decr(...args: any[]): any;
mget(args: any[], callback?: ResCallbackT<any>): any;
mget(...args: any[]): any;
rpush(...args: any[]): any;
lpush(args: any[], callback?: ResCallbackT<any>): any;
lpush(...args: any[]): any;
rpushx(args: any[], callback?: ResCallbackT<any>): any;
rpushx(...args: any[]): any;
lpushx(args: any[], callback?: ResCallbackT<any>): any;
lpushx(...args: any[]): any;
linsert(args: any[], callback?: ResCallbackT<any>): any;
linsert(...args: any[]): any;
rpop(args: any[], callback?: ResCallbackT<any>): any;
rpop(...args: any[]): any;
lpop(args: any[], callback?: ResCallbackT<any>): any;
lpop(...args: any[]): any;
brpop(args: any[], callback?: ResCallbackT<any>): any;
brpop(...args: any[]): any;
brpoplpush(args: any[], callback?: ResCallbackT<any>): any;
brpoplpush(...args: any[]): any;
blpop(args: any[], callback?: ResCallbackT<any>): any;
blpop(...args: any[]): any;
llen(args: any[], callback?: ResCallbackT<any>): any;
llen(...args: any[]): any;
lindex(args: any[], callback?: ResCallbackT<any>): any;
lindex(...args: any[]): any;
lset(args: any[], callback?: ResCallbackT<any>): any;
lset(...args: any[]): any;
lrange(args: any[], callback?: ResCallbackT<any>): any;
lrange(...args: any[]): any;
ltrim(args: any[], callback?: ResCallbackT<any>): any;
ltrim(...args: any[]): any;
lrem(args: any[], callback?: ResCallbackT<any>): any;
lrem(...args: any[]): any;
rpoplpush(args: any[], callback?: ResCallbackT<any>): any;
rpoplpush(...args: any[]): any;
sadd(args: any[], callback?: ResCallbackT<any>): any;
sadd(...args: any[]): any;
srem(args: any[], callback?: ResCallbackT<any>): any;
srem(...args: any[]): any;
smove(args: any[], callback?: ResCallbackT<any>): any;
smove(...args: any[]): any;
sismember(args: any[], callback?: ResCallbackT<any>): any;
sismember(...args: any[]): any;
scard(args: any[], callback?: ResCallbackT<any>): any;
scard(...args: any[]): any;
spop(args: any[], callback?: ResCallbackT<any>): any;
spop(...args: any[]): any;
srandmember(args: any[], callback?: ResCallbackT<any>): any;
srandmember(...args: any[]): any;
sinter(args: any[], callback?: ResCallbackT<any>): any;
sinter(...args: any[]): any;
sinterstore(args: any[], callback?: ResCallbackT<any>): any;
sinterstore(...args: any[]): any;
sunion(args: any[], callback?: ResCallbackT<any>): any;
sunion(...args: any[]): any;
sunionstore(args: any[], callback?: ResCallbackT<any>): any;
sunionstore(...args: any[]): any;
sdiff(args: any[], callback?: ResCallbackT<any>): any;
sdiff(...args: any[]): any;
sdiffstore(args: any[], callback?: ResCallbackT<any>): any;
sdiffstore(...args: any[]): any;
smembers(args: any[], callback?: ResCallbackT<any>): any;
smembers(...args: any[]): any;
zadd(args: any[], callback?: ResCallbackT<any>): any;
zadd(...args: any[]): any;
zincrby(args: any[], callback?: ResCallbackT<any>): any;
zincrby(...args: any[]): any;
zrem(args: any[], callback?: ResCallbackT<any>): any;
zrem(...args: any[]): any;
zremrangebyscore(args: any[], callback?: ResCallbackT<any>): any;
zremrangebyscore(...args: any[]): any;
zremrangebyrank(args: any[], callback?: ResCallbackT<any>): any;
zremrangebyrank(...args: any[]): any;
zunionstore(args: any[], callback?: ResCallbackT<any>): any;
zunionstore(...args: any[]): any;
zinterstore(args: any[], callback?: ResCallbackT<any>): any;
zinterstore(...args: any[]): any;
zrange(args: any[], callback?: ResCallbackT<any>): any;
zrange(...args: any[]): any;
zrangebyscore(args: any[], callback?: ResCallbackT<any>): any;
zrangebyscore(...args: any[]): any;
zrevrangebyscore(args: any[], callback?: ResCallbackT<any>): any;
zrevrangebyscore(...args: any[]): any;
zcount(args: any[], callback?: ResCallbackT<any>): any;
zcount(...args: any[]): any;
zrevrange(args: any[], callback?: ResCallbackT<any>): any;
zrevrange(...args: any[]): any;
zcard(args: any[], callback?: ResCallbackT<any>): any;
zcard(...args: any[]): any;
zscore(args: any[], callback?: ResCallbackT<any>): any;
zscore(...args: any[]): any;
zrank(args: any[], callback?: ResCallbackT<any>): any;
zrank(...args: any[]): any;
zrevrank(args: any[], callback?: ResCallbackT<any>): any;
zrevrank(...args: any[]): any;
hset(args: any[], callback?: ResCallbackT<any>): any;
hset(...args: any[]): any;
hsetnx(args: any[], callback?: ResCallbackT<any>): any;
hsetnx(...args: any[]): any;
hget(args: any[], callback?: ResCallbackT<any>): any;
hget(...args: any[]): any;
hmset(args: any[], callback?: ResCallbackT<any>): any;
hmset(key: string, hash: any, callback?: ResCallbackT<any>): any;
hmset(...args: any[]): any;
hmget(args: any[], callback?: ResCallbackT<any>): any;
hmget(...args: any[]): any;
hincrby(args: any[], callback?: ResCallbackT<any>): any;
hincrby(...args: any[]): any;
hdel(args: any[], callback?: ResCallbackT<any>): any;
hdel(...args: any[]): any;
hlen(args: any[], callback?: ResCallbackT<any>): any;
hlen(...args: any[]): any;
hkeys(args: any[], callback?: ResCallbackT<any>): any;
hkeys(...args: any[]): any;
hvals(args: any[], callback?: ResCallbackT<any>): any;
hvals(...args: any[]): any;
hgetall(args: any[], callback?: ResCallbackT<any>): any;
hgetall(...args: any[]): any;
hgetall(key: string, callback?: ResCallbackT<any>): any;
hexists(args: any[], callback?: ResCallbackT<any>): any;
hexists(...args: any[]): any;
incrby(args: any[], callback?: ResCallbackT<any>): any;
incrby(...args: any[]): any;
decrby(args: any[], callback?: ResCallbackT<any>): any;
decrby(...args: any[]): any;
getset(args: any[], callback?: ResCallbackT<any>): any;
getset(...args: any[]): any;
mset(args: any[], callback?: ResCallbackT<any>): any;
mset(...args: any[]): any;
msetnx(args: any[], callback?: ResCallbackT<any>): any;
msetnx(...args: any[]): any;
randomkey(args: any[], callback?: ResCallbackT<any>): any;
randomkey(...args: any[]): any;
select(args: any[], callback?: ResCallbackT<any>): void;
select(...args: any[]): void;
move(args: any[], callback?: ResCallbackT<any>): any;
move(...args: any[]): any;
rename(args: any[], callback?: ResCallbackT<any>): any;
rename(...args: any[]): any;
renamenx(args: any[], callback?: ResCallbackT<any>): any;
renamenx(...args: any[]): any;
expire(args: any[], callback?: ResCallbackT<any>): any;
expire(...args: any[]): any;
expireat(args: any[], callback?: ResCallbackT<any>): any;
expireat(...args: any[]): any;
keys(args: any[], callback?: ResCallbackT<any>): any;
keys(...args: any[]): any;
dbsize(args: any[], callback?: ResCallbackT<any>): any;
dbsize(...args: any[]): any;
auth(args: any[], callback?: ResCallbackT<any>): void;
auth(...args: any[]): void;
ping(args: any[], callback?: ResCallbackT<any>): any;
ping(...args: any[]): any;
echo(args: any[], callback?: ResCallbackT<any>): any;
echo(...args: any[]): any;
save(args: any[], callback?: ResCallbackT<any>): any;
save(...args: any[]): any;
bgsave(args: any[], callback?: ResCallbackT<any>): any;
bgsave(...args: any[]): any;
bgrewriteaof(args: any[], callback?: ResCallbackT<any>): any;
bgrewriteaof(...args: any[]): any;
shutdown(args: any[], callback?: ResCallbackT<any>): any;
shutdown(...args: any[]): any;
lastsave(args: any[], callback?: ResCallbackT<any>): any;
lastsave(...args: any[]): any;
type(args: any[], callback?: ResCallbackT<any>): any;
type(...args: any[]): any;
multi(args: any[], callback?: ResCallbackT<any>): Pipeline;
multi(...args: any[]): Pipeline;
exec(args: any[], callback?: ResCallbackT<any>): any;
exec(...args: any[]): any;
discard(args: any[], callback?: ResCallbackT<any>): any;
discard(...args: any[]): any;
sync(args: any[], callback?: ResCallbackT<any>): any;
sync(...args: any[]): any;
flushdb(args: any[], callback?: ResCallbackT<any>): any;
flushdb(...args: any[]): any;
flushall(args: any[], callback?: ResCallbackT<any>): any;
flushall(...args: any[]): any;
sort(args: any[], callback?: ResCallbackT<any>): any;
sort(...args: any[]): any;
info(args: any[], callback?: ResCallbackT<any>): any;
info(...args: any[]): any;
monitor(args: any[], callback?: ResCallbackT<any>): any;
monitor(...args: any[]): any;
ttl(args: any[], callback?: ResCallbackT<any>): any;
ttl(...args: any[]): any;
persist(args: any[], callback?: ResCallbackT<any>): any;
persist(...args: any[]): any;
slaveof(args: any[], callback?: ResCallbackT<any>): any;
slaveof(...args: any[]): any;
debug(args: any[], callback?: ResCallbackT<any>): any;
debug(...args: any[]): any;
config(args: any[], callback?: ResCallbackT<any>): any;
config(...args: any[]): any;
subscribe(args: any[], callback?: ResCallbackT<any>): any;
subscribe(...args: any[]): any;
unsubscribe(args: any[], callback?: ResCallbackT<any>): any;
unsubscribe(...args: any[]): any;
psubscribe(args: any[], callback?: ResCallbackT<any>): any;
psubscribe(...args: any[]): any;
punsubscribe(args: any[], callback?: ResCallbackT<any>): any;
punsubscribe(...args: any[]): any;
publish(args: any[], callback?: ResCallbackT<any>): any;
publish(...args: any[]): any;
watch(args: any[], callback?: ResCallbackT<any>): any;
watch(...args: any[]): any;
unwatch(args: any[], callback?: ResCallbackT<any>): any;
unwatch(...args: any[]): any;
cluster(args: any[], callback?: ResCallbackT<any>): any;
cluster(...args: any[]): any;
restore(args: any[], callback?: ResCallbackT<any>): any;
restore(...args: any[]): any;
migrate(args: any[], callback?: ResCallbackT<any>): any;
migrate(...args: any[]): any;
dump(args: any[], callback?: ResCallbackT<any>): any;
dump(...args: any[]): any;
object(args: any[], callback?: ResCallbackT<any>): any;
object(...args: any[]): any;
client(args: any[], callback?: ResCallbackT<any>): any;
client(...args: any[]): any;
eval(args: any[], callback?: ResCallbackT<any>): any;
eval(...args: any[]): any;
evalsha(args: any[], callback?: ResCallbackT<any>): any;
evalsha(...args: any[]): any;
script(args: any[], callback?: ResCallbackT<any>): any;
script(...args: any[]): any;
script(key: string, callback?: ResCallbackT<any>): any;
quit(args: any[], callback?: ResCallbackT<any>): any;
quit(...args: any[]): any;
scan(...args: any[]): any;
scan(args: any[], callback?: ResCallbackT<any>): any;
hscan(...args: any[]): any;
hscan(args: any[], callback?: ResCallbackT<any>): any;
zscan(...args: any[]): any;
zscan(args: any[], callback?: ResCallbackT<any>): any;
pipeline(): Pipeline;
pipeline(commands: string[][]): Pipeline;
scanStream(options?: IORedis.ScanStreamOption): NodeJS.EventEmitter;
hscanStream(key: string, options?: IORedis.ScanStreamOption): NodeJS.EventEmitter;
}
interface Pipeline {
exec(callback?: ResCallbackT<any[]>): any;
get(args: any[], callback?: ResCallbackT<string>): Pipeline;
get(...args: any[]): Pipeline;
set(args: any[], callback?: ResCallbackT<string>): Pipeline;
set(...args: any[]): Pipeline;
setnx(args: any[], callback?: ResCallbackT<any>): Pipeline;
setnx(...args: any[]): Pipeline;
setex(args: any[], callback?: ResCallbackT<any>): Pipeline;
setex(...args: any[]): Pipeline;
append(args: any[], callback?: ResCallbackT<any>): Pipeline;
append(...args: any[]): Pipeline;
strlen(args: any[], callback?: ResCallbackT<any>): Pipeline;
strlen(...args: any[]): Pipeline;
del(args: any[], callback?: ResCallbackT<any>): Pipeline;
del(...args: any[]): Pipeline;
exists(args: any[], callback?: ResCallbackT<any>): Pipeline;
exists(...args: any[]): Pipeline;
setbit(args: any[], callback?: ResCallbackT<any>): Pipeline;
setbit(...args: any[]): Pipeline;
getbit(args: any[], callback?: ResCallbackT<any>): Pipeline;
getbit(...args: any[]): Pipeline;
setrange(args: any[], callback?: ResCallbackT<any>): Pipeline;
setrange(...args: any[]): Pipeline;
getrange(args: any[], callback?: ResCallbackT<any>): Pipeline;
getrange(...args: any[]): Pipeline;
substr(args: any[], callback?: ResCallbackT<any>): Pipeline;
substr(...args: any[]): Pipeline;
incr(args: any[], callback?: ResCallbackT<any>): Pipeline;
incr(...args: any[]): Pipeline;
decr(args: any[], callback?: ResCallbackT<any>): Pipeline;
decr(...args: any[]): Pipeline;
mget(args: any[], callback?: ResCallbackT<any>): Pipeline;
mget(...args: any[]): Pipeline;
rpush(...args: any[]): Pipeline;
lpush(args: any[], callback?: ResCallbackT<any>): Pipeline;
lpush(...args: any[]): Pipeline;
rpushx(args: any[], callback?: ResCallbackT<any>): Pipeline;
rpushx(...args: any[]): Pipeline;
lpushx(args: any[], callback?: ResCallbackT<any>): Pipeline;
lpushx(...args: any[]): Pipeline;
linsert(args: any[], callback?: ResCallbackT<any>): Pipeline;
linsert(...args: any[]): Pipeline;
rpop(args: any[], callback?: ResCallbackT<any>): Pipeline;
rpop(...args: any[]): Pipeline;
lpop(args: any[], callback?: ResCallbackT<any>): Pipeline;
lpop(...args: any[]): Pipeline;
brpop(args: any[], callback?: ResCallbackT<any>): Pipeline;
brpop(...args: any[]): Pipeline;
brpoplpush(args: any[], callback?: ResCallbackT<any>): Pipeline;
brpoplpush(...args: any[]): Pipeline;
blpop(args: any[], callback?: ResCallbackT<any>): Pipeline;
blpop(...args: any[]): Pipeline;
llen(args: any[], callback?: ResCallbackT<any>): Pipeline;
llen(...args: any[]): Pipeline;
lindex(args: any[], callback?: ResCallbackT<any>): Pipeline;
lindex(...args: any[]): Pipeline;
lset(args: any[], callback?: ResCallbackT<any>): Pipeline;
lset(...args: any[]): Pipeline;
lrange(args: any[], callback?: ResCallbackT<any>): Pipeline;
lrange(...args: any[]): Pipeline;
ltrim(args: any[], callback?: ResCallbackT<any>): Pipeline;
ltrim(...args: any[]): Pipeline;
lrem(args: any[], callback?: ResCallbackT<any>): Pipeline;
lrem(...args: any[]): Pipeline;
rpoplpush(args: any[], callback?: ResCallbackT<any>): Pipeline;
rpoplpush(...args: any[]): Pipeline;
sadd(args: any[], callback?: ResCallbackT<any>): Pipeline;
sadd(...args: any[]): Pipeline;
srem(args: any[], callback?: ResCallbackT<any>): Pipeline;
srem(...args: any[]): Pipeline;
smove(args: any[], callback?: ResCallbackT<any>): Pipeline;
smove(...args: any[]): Pipeline;
sismember(args: any[], callback?: ResCallbackT<any>): Pipeline;
sismember(...args: any[]): Pipeline;
scard(args: any[], callback?: ResCallbackT<any>): Pipeline;
scard(...args: any[]): Pipeline;
spop(args: any[], callback?: ResCallbackT<any>): Pipeline;
spop(...args: any[]): Pipeline;
srandmember(args: any[], callback?: ResCallbackT<any>): Pipeline;
srandmember(...args: any[]): Pipeline;
sinter(args: any[], callback?: ResCallbackT<any>): Pipeline;
sinter(...args: any[]): Pipeline;
sinterstore(args: any[], callback?: ResCallbackT<any>): Pipeline;
sinterstore(...args: any[]): Pipeline;
sunion(args: any[], callback?: ResCallbackT<any>): Pipeline;
sunion(...args: any[]): Pipeline;
sunionstore(args: any[], callback?: ResCallbackT<any>): Pipeline;
sunionstore(...args: any[]): Pipeline;
sdiff(args: any[], callback?: ResCallbackT<any>): Pipeline;
sdiff(...args: any[]): Pipeline;
sdiffstore(args: any[], callback?: ResCallbackT<any>): Pipeline;
sdiffstore(...args: any[]): Pipeline;
smembers(args: any[], callback?: ResCallbackT<any>): Pipeline;
smembers(...args: any[]): Pipeline;
zadd(args: any[], callback?: ResCallbackT<any>): Pipeline;
zadd(...args: any[]): Pipeline;
zincrby(args: any[], callback?: ResCallbackT<any>): Pipeline;
zincrby(...args: any[]): Pipeline;
zrem(args: any[], callback?: ResCallbackT<any>): Pipeline;
zrem(...args: any[]): Pipeline;
zremrangebyscore(args: any[], callback?: ResCallbackT<any>): Pipeline;
zremrangebyscore(...args: any[]): Pipeline;
zremrangebyrank(args: any[], callback?: ResCallbackT<any>): Pipeline;
zremrangebyrank(...args: any[]): Pipeline;
zunionstore(args: any[], callback?: ResCallbackT<any>): Pipeline;
zunionstore(...args: any[]): Pipeline;
zinterstore(args: any[], callback?: ResCallbackT<any>): Pipeline;
zinterstore(...args: any[]): Pipeline;
zrange(args: any[], callback?: ResCallbackT<any>): Pipeline;
zrange(...args: any[]): Pipeline;
zrangebyscore(args: any[], callback?: ResCallbackT<any>): Pipeline;
zrangebyscore(...args: any[]): Pipeline;
zrevrangebyscore(args: any[], callback?: ResCallbackT<any>): Pipeline;
zrevrangebyscore(...args: any[]): Pipeline;
zcount(args: any[], callback?: ResCallbackT<any>): Pipeline;
zcount(...args: any[]): Pipeline;
zrevrange(args: any[], callback?: ResCallbackT<any>): Pipeline;
zrevrange(...args: any[]): Pipeline;
zcard(args: any[], callback?: ResCallbackT<any>): Pipeline;
zcard(...args: any[]): Pipeline;
zscore(args: any[], callback?: ResCallbackT<any>): Pipeline;
zscore(...args: any[]): Pipeline;
zrank(args: any[], callback?: ResCallbackT<any>): Pipeline;
zrank(...args: any[]): Pipeline;
zrevrank(args: any[], callback?: ResCallbackT<any>): Pipeline;
zrevrank(...args: any[]): Pipeline;
hset(args: any[], callback?: ResCallbackT<any>): Pipeline;
hset(...args: any[]): Pipeline;
hsetnx(args: any[], callback?: ResCallbackT<any>): Pipeline;
hsetnx(...args: any[]): Pipeline;
hget(args: any[], callback?: ResCallbackT<any>): Pipeline;
hget(...args: any[]): Pipeline;
hmset(args: any[], callback?: ResCallbackT<any>): Pipeline;
hmset(key: string, hash: any, callback?: ResCallbackT<any>): Pipeline;
hmset(...args: any[]): Pipeline;
hmget(args: any[], callback?: ResCallbackT<any>): Pipeline;
hmget(...args: any[]): Pipeline;
hincrby(args: any[], callback?: ResCallbackT<any>): Pipeline;
hincrby(...args: any[]): Pipeline;
hdel(args: any[], callback?: ResCallbackT<any>): Pipeline;
hdel(...args: any[]): Pipeline;
hlen(args: any[], callback?: ResCallbackT<any>): Pipeline;
hlen(...args: any[]): Pipeline;
hkeys(args: any[], callback?: ResCallbackT<any>): Pipeline;
hkeys(...args: any[]): Pipeline;
hvals(args: any[], callback?: ResCallbackT<any>): Pipeline;
hvals(...args: any[]): Pipeline;
hgetall(args: any[], callback?: ResCallbackT<any>): Pipeline;
hgetall(...args: any[]): Pipeline;
hgetall(key: string, callback?: ResCallbackT<any>): Pipeline;
hexists(args: any[], callback?: ResCallbackT<any>): Pipeline;
hexists(...args: any[]): Pipeline;
incrby(args: any[], callback?: ResCallbackT<any>): Pipeline;
incrby(...args: any[]): Pipeline;
decrby(args: any[], callback?: ResCallbackT<any>): Pipeline;
decrby(...args: any[]): Pipeline;
getset(args: any[], callback?: ResCallbackT<any>): Pipeline;
getset(...args: any[]): Pipeline;
mset(args: any[], callback?: ResCallbackT<any>): Pipeline;
mset(...args: any[]): Pipeline;
msetnx(args: any[], callback?: ResCallbackT<any>): Pipeline;
msetnx(...args: any[]): Pipeline;
randomkey(args: any[], callback?: ResCallbackT<any>): Pipeline;
randomkey(...args: any[]): Pipeline;
select(args: any[], callback?: ResCallbackT<any>): void;
select(...args: any[]): Pipeline;
move(args: any[], callback?: ResCallbackT<any>): Pipeline;
move(...args: any[]): Pipeline;
rename(args: any[], callback?: ResCallbackT<any>): Pipeline;
rename(...args: any[]): Pipeline;
renamenx(args: any[], callback?: ResCallbackT<any>): Pipeline;
renamenx(...args: any[]): Pipeline;
expire(args: any[], callback?: ResCallbackT<any>): Pipeline;
expire(...args: any[]): Pipeline;
expireat(args: any[], callback?: ResCallbackT<any>): Pipeline;
expireat(...args: any[]): Pipeline;
keys(args: any[], callback?: ResCallbackT<any>): Pipeline;
keys(...args: any[]): Pipeline;
dbsize(args: any[], callback?: ResCallbackT<any>): Pipeline;
dbsize(...args: any[]): Pipeline;
auth(args: any[], callback?: ResCallbackT<any>): void;
auth(...args: any[]): void;
ping(args: any[], callback?: ResCallbackT<any>): Pipeline;
ping(...args: any[]): Pipeline;
echo(args: any[], callback?: ResCallbackT<any>): Pipeline;
echo(...args: any[]): Pipeline;
save(args: any[], callback?: ResCallbackT<any>): Pipeline;
save(...args: any[]): Pipeline;
bgsave(args: any[], callback?: ResCallbackT<any>): Pipeline;
bgsave(...args: any[]): Pipeline;
bgrewriteaof(args: any[], callback?: ResCallbackT<any>): Pipeline;
bgrewriteaof(...args: any[]): Pipeline;
shutdown(args: any[], callback?: ResCallbackT<any>): Pipeline;
shutdown(...args: any[]): Pipeline;
lastsave(args: any[], callback?: ResCallbackT<any>): Pipeline;
lastsave(...args: any[]): Pipeline;
type(args: any[], callback?: ResCallbackT<any>): Pipeline;
type(...args: any[]): Pipeline;
multi(args: any[], callback?: ResCallbackT<any>): Pipeline;
multi(...args: any[]): Pipeline;
exec(args: any[], callback?: ResCallbackT<any>): Pipeline;
exec(...args: any[]): Pipeline;
discard(args: any[], callback?: ResCallbackT<any>): Pipeline;
discard(...args: any[]): Pipeline;
sync(args: any[], callback?: ResCallbackT<any>): Pipeline;
sync(...args: any[]): Pipeline;
flushdb(args: any[], callback?: ResCallbackT<any>): Pipeline;
flushdb(...args: any[]): Pipeline;
flushall(args: any[], callback?: ResCallbackT<any>): Pipeline;
flushall(...args: any[]): Pipeline;
sort(args: any[], callback?: ResCallbackT<any>): Pipeline;
sort(...args: any[]): Pipeline;
info(args: any[], callback?: ResCallbackT<any>): Pipeline;
info(...args: any[]): Pipeline;
monitor(args: any[], callback?: ResCallbackT<any>): Pipeline;
monitor(...args: any[]): Pipeline;
ttl(args: any[], callback?: ResCallbackT<any>): Pipeline;
ttl(...args: any[]): Pipeline;
persist(args: any[], callback?: ResCallbackT<any>): Pipeline;
persist(...args: any[]): Pipeline;
slaveof(args: any[], callback?: ResCallbackT<any>): Pipeline;
slaveof(...args: any[]): Pipeline;
debug(args: any[], callback?: ResCallbackT<any>): Pipeline;
debug(...args: any[]): Pipeline;
config(args: any[], callback?: ResCallbackT<any>): Pipeline;
config(...args: any[]): Pipeline;
subscribe(args: any[], callback?: ResCallbackT<any>): Pipeline;
subscribe(...args: any[]): Pipeline;
unsubscribe(args: any[], callback?: ResCallbackT<any>): Pipeline;
unsubscribe(...args: any[]): Pipeline;
psubscribe(args: any[], callback?: ResCallbackT<any>): Pipeline;
psubscribe(...args: any[]): Pipeline;
punsubscribe(args: any[], callback?: ResCallbackT<any>): Pipeline;
punsubscribe(...args: any[]): Pipeline;
publish(args: any[], callback?: ResCallbackT<any>): Pipeline;
publish(...args: any[]): Pipeline;
watch(args: any[], callback?: ResCallbackT<any>): Pipeline;
watch(...args: any[]): Pipeline;
unwatch(args: any[], callback?: ResCallbackT<any>): Pipeline;
unwatch(...args: any[]): Pipeline;
cluster(args: any[], callback?: ResCallbackT<any>): Pipeline;
cluster(...args: any[]): Pipeline;
restore(args: any[], callback?: ResCallbackT<any>): Pipeline;
restore(...args: any[]): Pipeline;
migrate(args: any[], callback?: ResCallbackT<any>): Pipeline;
migrate(...args: any[]): Pipeline;
dump(args: any[], callback?: ResCallbackT<any>): Pipeline;
dump(...args: any[]): Pipeline;
object(args: any[], callback?: ResCallbackT<any>): Pipeline;
object(...args: any[]): Pipeline;
client(args: any[], callback?: ResCallbackT<any>): Pipeline;
client(...args: any[]): Pipeline;
eval(args: any[], callback?: ResCallbackT<any>): Pipeline;
eval(...args: any[]): Pipeline;
evalsha(args: any[], callback?: ResCallbackT<any>): Pipeline;
evalsha(...args: any[]): Pipeline;
quit(args: any[], callback?: ResCallbackT<any>): Pipeline;
quit(...args: any[]): Pipeline;
scan(...args: any[]): Pipeline;
scan(args: any[], callback?: ResCallbackT<any>): Pipeline;
hscan(...args: any[]): Pipeline;
hscan(args: any[], callback?: ResCallbackT<any>): Pipeline;
zscan(...args: any[]): Pipeline;
zscan(args: any[], callback?: ResCallbackT<any>): Pipeline;
}
interface Cluster extends NodeJS.EventEmitter, Commander {
new (nodes: { host: string; port: number; }[], options?: IORedis.ClusterOptions): Redis;
connect(callback: Function): Promise<any>;
disconnect(): void;
nodes(role: string): Redis[];
}
interface ResCallbackT<R> {
(err: Error, res: R): void;
}
interface RedisOptions {
port?: number;
host?: string;
/**
* 4 (IPv4) or 6 (IPv6), Defaults to 4.
*/
family?: number;
/**
* Local domain socket path. If set the port, host and family will be ignored.
*/
path?: string;
/**
* TCP KeepAlive on the socket with a X ms delay before start. Set to a non-number value to disable keepAlive.
*/
keepAlive?: number;
connectionName?: string;
/**
* If set, client will send AUTH command with the value of this option when connected.
*/
password?: string;
/**
* Database index to use.
*/
db?: number;
/**
* When a connection is established to the Redis server, the server might still be loading
* the database from disk. While loading, the server not respond to any commands.
* To work around this, when this option is true, ioredis will check the status of the Redis server,
* and when the Redis server is able to process commands, a ready event will be emitted.
*/
enableReadyCheck?: boolean;
keyPrefix?: string;
retryStrategy?: (times: number) => number;
reconnectOnError?: (error: Error) => boolean;
/**
* By default, if there is no active connection to the Redis server, commands are added to a queue
* and are executed once the connection is "ready" (when enableReadyCheck is true, "ready" means
* the Redis server has loaded the database from disk, otherwise means the connection to the Redis
* server has been established). If this option is false, when execute the command when the connection
* isn't ready, an error will be returned.
*/
enableOfflineQueue?: boolean;
/**
* The milliseconds before a timeout occurs during the initial connection to the Redis server.
* default: 10000.
*/
connectTimeout?: number;
/**
* After reconnected, if the previous connection was in the subscriber mode, client will auto re-subscribe these channels.
* default: true.
*/
autoResubscribe?: boolean;
/**
* If true, client will resend unfulfilled commands(e.g. block commands) in the previous connection when reconnected.
* default: true.
*/
autoResendUnfulfilledCommands?: boolean;
lazyConnect?: boolean;
tls?: {
ca: Buffer;
};
sentinels?: { host: string; port: number; }[];
name?: string;
/**
* Enable READONLY mode for the connection. Only available for cluster mode.
* default: false.
*/
readOnly?: boolean;
}
interface ScanStreamOption {
match?: string;
count?: number;
}
interface ClusterOptions {
clusterRetryStrategy?: (times: number) => number;
enableOfflineQueue?: boolean;
enableReadyCheck?: boolean;
scaleReads?: string;
maxRedirections?: number;
retryDelayOnFailover?: number;
retryDelayOnClusterDown?: number;
retryDelayOnTryAgain?: number;
redisOptions?: RedisOptions;
}
}

View File

@@ -747,31 +747,31 @@ describe("Manually ticking the Jasmine Clock", function () {
describe("Asynchronous specs", function () {
var value: number;
beforeEach(function (done) {
beforeEach(function (done: DoneFn) {
setTimeout(function () {
value = 0;
done();
}, 1);
});
it("should support async execution of test preparation and expectations", function (done) {
it("should support async execution of test preparation and expectations", function (done: DoneFn) {
value++;
expect(value).toBeGreaterThan(0);
done();
});
describe("long asynchronous specs", function() {
beforeEach(function(done) {
beforeEach(function(done: DoneFn) {
done();
}, 1000);
it("takes a long time", function(done) {
it("takes a long time", function(done: DoneFn) {
setTimeout(function() {
done();
}, 9000);
}, 10000);
afterEach(function(done) {
afterEach(function(done: DoneFn) {
done();
}, 1000);
});

21
jasmine/jasmine.d.ts vendored
View File

@@ -11,29 +11,36 @@ declare function fdescribe(description: string, specDefinitions: () => void): vo
declare function xdescribe(description: string, specDefinitions: () => void): void;
declare function it(expectation: string, assertion?: () => void, timeout?: number): void;
declare function it(expectation: string, assertion?: (done: () => void) => void, timeout?: number): void;
declare function it(expectation: string, assertion?: (done: DoneFn) => void, timeout?: number): void;
declare function fit(expectation: string, assertion?: () => void, timeout?: number): void;
declare function fit(expectation: string, assertion?: (done: () => void) => void, timeout?: number): void;
declare function fit(expectation: string, assertion?: (done: DoneFn) => void, timeout?: number): void;
declare function xit(expectation: string, assertion?: () => void, timeout?: number): void;
declare function xit(expectation: string, assertion?: (done: () => void) => void, timeout?: number): void;
declare function xit(expectation: string, assertion?: (done: DoneFn) => void, timeout?: number): void;
/** If you call the function pending anywhere in the spec body, no matter the expectations, the spec will be marked pending. */
declare function pending(reason?: string): void;
declare function beforeEach(action: () => void, timeout?: number): void;
declare function beforeEach(action: (done: () => void) => void, timeout?: number): void;
declare function beforeEach(action: (done: DoneFn) => void, timeout?: number): void;
declare function afterEach(action: () => void, timeout?: number): void;
declare function afterEach(action: (done: () => void) => void, timeout?: number): void;
declare function afterEach(action: (done: DoneFn) => void, timeout?: number): void;
declare function beforeAll(action: () => void, timeout?: number): void;
declare function beforeAll(action: (done: () => void) => void, timeout?: number): void;
declare function beforeAll(action: (done: DoneFn) => void, timeout?: number): void;
declare function afterAll(action: () => void, timeout?: number): void;
declare function afterAll(action: (done: () => void) => void, timeout?: number): void;
declare function afterAll(action: (done: DoneFn) => void, timeout?: number): void;
declare function expect(spy: Function): jasmine.Matchers;
declare function expect(actual: any): jasmine.Matchers;
declare function fail(e?: any): void;
/** Action method that should be called when the async work is complete */
interface DoneFn extends Function {
(): void;
/** fails the spec and indicates that it has completed. If the message is an Error, Error.message is used */
fail: (message?: Error|string) => void;
}
declare function spyOn(object: any, method: string): jasmine.Spy;

4
js-md5/md5.d.ts vendored
View File

@@ -29,4 +29,8 @@ interface String {
md5(value: Uint8Array): string;
}
declare module "js-md5" {
export = md5;
}
declare var md5: md5;

View File

@@ -0,0 +1,13 @@
/// <reference path="./json-socket" />
import JsonSocket = require("json-socket");
import {Socket} from "net";
JsonSocket.sendSingleMessage(42, "localhost", {foo: "bar"}, (err: Error) => {});
JsonSocket.sendSingleMessageAndReceive(42, "localhost", {foo: "bar"}, (err: Error, message: any) => {});
let jsonSocket = new JsonSocket(new Socket());
jsonSocket.sendMessage({foo: "bar"}, (err: Error) => {});
jsonSocket.sendEndMessage({foo: "bar"}, (err: Error) => {});
jsonSocket.sendError(new Error("foo"), (err: Error) => {});
jsonSocket.sendEndError(new Error("foo"), (err: Error) => {});

71
json-socket/json-socket.d.ts vendored Normal file
View File

@@ -0,0 +1,71 @@
// Type definitions for json-socket v0.1.2
// Project: https://github.com/sebastianseilund/node-json-socket
// Definitions by: Sven Reglitzki <https://github.com/svi3c/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts"/>
declare module "json-socket" {
import {Socket} from "net";
class JsonSocket extends Socket {
constructor(socket: Socket);
/**
* sends a single message and closes the connection instantly. Use this if you need to send a server a message,
* but you don't need any response.
* @param port port to send the message to
* @param host host to send the message to
* @param message the message to send
* @param callback will be called after the message has been sent
*/
static sendSingleMessage(port: number, host: string, message: any, callback: (err: Error) => void): void;
/**
* sends a single message, waits for a single response message from the server and closes the connection right after.
* Use this if you need to send a server a message, and get a response, but you don't need the connection to stay
* open.
* @param port port to send the message to
* @param host host to send the message to
* @param message the message to send
* @param callback will be called when the response message has been received
*/
static sendSingleMessageAndReceive(port: number, host: string, message: any, callback: (err: Error, message: any) => void): void;
/**
* Convenience method for sending an error as a message.
* @param err an Error object that should be formatted as a message
* @param callback will be called after the message has been sent
*/
sendError(err: Error, callback: (err: Error) => void): void;
/**
* Same as {@link JsonSocket.sendError}, except that the socket is closed right after the message has been sent
* using <a href="https://nodejs.org/api/net.html#net_socket_end_data_encoding">net.end()</a>.
* No more messages can be sent from either the server or client through this socket.
* @param err
* @param callback
*/
sendEndError(err: Error, callback: (err: Error) => void): void;
/**
* Sends a JSON message over the socket.
* @param message the message to send
* @param callback will be called after the message has been sent
*/
sendMessage(message: any, callback: (err: Error) => void): void;
/**
* Same as {@link JsonSocket.sendMessage}, except that the socket is closed right after the message has been sent
* using <a href="https://nodejs.org/api/net.html#net_socket_end_data_encoding">net.end()</a>.
* No more messages can be sent from either the server or client through this socket.
* @param message the message to send
* @param callback will be called after the message has been sent
*/
sendEndMessage(message: any, callback: (err: Error) => void): void;
}
export = JsonSocket;
}

View File

@@ -0,0 +1,9 @@
/// <reference path="../chai/chai.d.ts"/>
/// <reference path="jsx-chai.d.ts"/>
import chai = require('chai');
import jsxChai = require('jsx-chai');
function testUseJsxChai() {
chai.use(jsxChai.jsxChai);
}

20
jsx-chai/jsx-chai.d.ts vendored Normal file
View File

@@ -0,0 +1,20 @@
// Type definitions for jsx-chai 3.0.0
// Project: https://github.com/bkonkle/jsx-chai
// Definitions by: Philipp Holzer <https://github.com/nupplaphil/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../chai/chai.d.ts" />
declare module 'jsx-chai' {
interface JsxChaiStatic {
jsxChai: jsxChaiFunction;
}
interface jsxChaiFunction {
(chai: any, utils: any): void;
}
var jsxChai: JsxChaiStatic;
export = jsxChai;
}

437
kendo-ui/kendo-ui.d.ts vendored
View File

@@ -262,8 +262,10 @@ declare namespace kendo {
static fn: Observable;
static extend(prototype: Object): Observable;
init(...args: any[]): void
bind(eventName: string, handler: Function): Observable;
one(eventName: string, handler: Function): Observable;
first(eventName: string, handler: Function): Observable;
trigger(eventName: string, e?: any): boolean;
unbind(eventName: string, handler?: any): Observable;
}
@@ -1074,6 +1076,31 @@ declare namespace kendo.data {
view(): kendo.data.ObservableArray;
}
class Query {
data: any[];
static process(data: any[], options: DataSourceTransportReadOptionsData): QueryResult;
constructor(data: any[]);
toArray(): any[];
range(intex: number, count: number): kendo.data.Query;
skip(count: number): kendo.data.Query;
take(count: number): kendo.data.Query;
select(selector: Function): kendo.data.Query;
order(selector: string, dir?: string): kendo.data.Query;
order(selector: Function, dir?: string): kendo.data.Query;
filter(filters: DataSourceFilterItem): kendo.data.Query;
filter(filters: DataSourceFilterItem[]): kendo.data.Query;
filter(filters: DataSourceFilters): kendo.data.Query;
group(descriptors: DataSourceGroupItem): kendo.data.Query;
group(descriptors: DataSourceGroupItem[]): kendo.data.Query;
}
interface QueryResult {
total?: number;
data?: any[];
}
interface DataSourceAggregateItem {
field?: string;
aggregate?: string;
@@ -4209,6 +4236,7 @@ declare namespace kendo.ui {
dataSource?: any|any|kendo.data.DataSource;
checkAll?: boolean;
itemTemplate?: Function;
operators?: any;
search?: boolean;
ignoreCase?: boolean;
ui?: string|Function;
@@ -5554,9 +5582,11 @@ declare namespace kendo.ui {
interface PopupOptions {
name?: string;
adjustSize?: any;
animation?: PopupAnimation;
anchor?: string|JQuery;
appendTo?: string|JQuery;
collision?: string;
origin?: string;
position?: string;
activate?(e: PopupActivateEvent): void;
@@ -6677,6 +6707,9 @@ declare namespace kendo.ui {
enable(element: string, enable?: boolean): kendo.ui.TabStrip;
enable(element: Element, enable?: boolean): kendo.ui.TabStrip;
enable(element: JQuery, enable?: boolean): kendo.ui.TabStrip;
insertAfter(item: any, referenceTab: string): kendo.ui.TabStrip;
insertAfter(item: any, referenceTab: Element): kendo.ui.TabStrip;
insertAfter(item: any, referenceTab: JQuery): kendo.ui.TabStrip;
insertAfter(item: string, referenceTab: string): kendo.ui.TabStrip;
insertAfter(item: string, referenceTab: Element): kendo.ui.TabStrip;
insertAfter(item: string, referenceTab: JQuery): kendo.ui.TabStrip;
@@ -6686,6 +6719,9 @@ declare namespace kendo.ui {
insertAfter(item: JQuery, referenceTab: string): kendo.ui.TabStrip;
insertAfter(item: JQuery, referenceTab: Element): kendo.ui.TabStrip;
insertAfter(item: JQuery, referenceTab: JQuery): kendo.ui.TabStrip;
insertBefore(item: any, referenceTab: string): kendo.ui.TabStrip;
insertBefore(item: any, referenceTab: Element): kendo.ui.TabStrip;
insertBefore(item: any, referenceTab: JQuery): kendo.ui.TabStrip;
insertBefore(item: string, referenceTab: string): kendo.ui.TabStrip;
insertBefore(item: string, referenceTab: Element): kendo.ui.TabStrip;
insertBefore(item: string, referenceTab: JQuery): kendo.ui.TabStrip;
@@ -7213,7 +7249,9 @@ declare namespace kendo.ui {
dataItem(row: JQuery): kendo.data.TreeListModel;
destroy(): void;
editRow(row: JQuery): void;
expand(): void;
expand(row: string): void;
expand(row: Element): void;
expand(row: JQuery): void;
itemFor(model: kendo.data.TreeListModel): JQuery;
itemFor(model: any): JQuery;
items(): any;
@@ -7930,6 +7968,7 @@ declare namespace kendo.ui {
interface WindowRefreshOptions {
url?: string;
cache?: boolean;
data?: any;
type?: string;
template?: string;
@@ -7945,6 +7984,7 @@ declare namespace kendo.ui {
content?: WindowContent;
draggable?: boolean;
iframe?: boolean;
height?: number|string;
maxHeight?: number;
maxWidth?: number;
minHeight?: number;
@@ -7957,7 +7997,6 @@ declare namespace kendo.ui {
title?: string|boolean;
visible?: boolean;
width?: number|string;
height?: number|string;
activate?(e: WindowEvent): void;
close?(e: WindowCloseEvent): void;
deactivate?(e: WindowEvent): void;
@@ -8107,6 +8146,174 @@ declare namespace kendo.dataviz.ui {
}
interface ChartAxisDefaultsCrosshairTooltipBorder {
color?: string;
dashType?: string;
width?: number;
}
interface ChartAxisDefaultsCrosshairTooltipPadding {
bottom?: number;
left?: number;
right?: number;
top?: number;
}
interface ChartAxisDefaultsCrosshairTooltip {
background?: string;
border?: ChartAxisDefaultsCrosshairTooltipBorder;
color?: string;
font?: string;
format?: string;
padding?: ChartAxisDefaultsCrosshairTooltipPadding;
template?: string|Function;
visible?: boolean;
}
interface ChartAxisDefaultsCrosshair {
color?: string;
opacity?: number;
tooltip?: ChartAxisDefaultsCrosshairTooltip;
visible?: boolean;
width?: number;
}
interface ChartAxisDefaultsLabelsMargin {
bottom?: number;
left?: number;
right?: number;
top?: number;
}
interface ChartAxisDefaultsLabelsPadding {
bottom?: number;
left?: number;
right?: number;
top?: number;
}
interface ChartAxisDefaultsLabelsRotation {
align?: string;
angle?: number|string;
}
interface ChartAxisDefaultsLabels {
font?: string;
format?: string;
margin?: ChartAxisDefaultsLabelsMargin;
mirror?: boolean;
padding?: ChartAxisDefaultsLabelsPadding;
rotation?: ChartAxisDefaultsLabelsRotation;
skip?: number;
step?: number;
template?: string|Function;
visible?: boolean;
visual?: Function;
}
interface ChartAxisDefaultsLine {
color?: string;
dashType?: string;
visible?: boolean;
width?: number;
}
interface ChartAxisDefaultsMajorGridLines {
color?: string;
dashType?: string;
visible?: boolean;
width?: number;
step?: number;
skip?: number;
}
interface ChartAxisDefaultsMajorTicks {
color?: string;
size?: number;
visible?: boolean;
width?: number;
step?: number;
skip?: number;
}
interface ChartAxisDefaultsMinorGridLines {
color?: string;
dashType?: string;
visible?: boolean;
width?: number;
step?: number;
skip?: number;
}
interface ChartAxisDefaultsMinorTicks {
color?: string;
size?: number;
visible?: boolean;
width?: number;
step?: number;
skip?: number;
}
interface ChartAxisDefaultsPlotBand {
color?: string;
from?: number;
opacity?: number;
to?: number;
}
interface ChartAxisDefaultsTitleBorder {
color?: string;
dashType?: string;
width?: number;
}
interface ChartAxisDefaultsTitleMargin {
bottom?: number;
left?: number;
right?: number;
top?: number;
}
interface ChartAxisDefaultsTitlePadding {
bottom?: number;
left?: number;
right?: number;
top?: number;
}
interface ChartAxisDefaultsTitle {
background?: string;
border?: ChartAxisDefaultsTitleBorder;
color?: string;
font?: string;
margin?: ChartAxisDefaultsTitleMargin;
padding?: ChartAxisDefaultsTitlePadding;
position?: string;
rotation?: number;
text?: string;
visible?: boolean;
visual?: Function;
}
interface ChartAxisDefaults {
background?: string;
color?: string;
crosshair?: ChartAxisDefaultsCrosshair;
labels?: ChartAxisDefaultsLabels;
line?: ChartAxisDefaultsLine;
majorGridLines?: ChartAxisDefaultsMajorGridLines;
majorTicks?: ChartAxisDefaultsMajorTicks;
minorGridLines?: ChartAxisDefaultsMinorGridLines;
minorTicks?: ChartAxisDefaultsMinorTicks;
narrowRange?: boolean;
pane?: string;
plotBands?: ChartAxisDefaultsPlotBand[];
reverse?: boolean;
startAngle?: number;
title?: ChartAxisDefaultsTitle;
visible?: boolean;
}
interface ChartCategoryAxisItemAutoBaseUnitSteps {
seconds?: any;
minutes?: any;
@@ -9280,6 +9487,7 @@ declare namespace kendo.dataviz.ui {
color?: string;
font?: string;
format?: string;
opacity?: number;
padding?: ChartTooltipPadding;
shared?: boolean;
sharedTemplate?: string|Function;
@@ -10183,7 +10391,7 @@ declare namespace kendo.dataviz.ui {
interface ChartOptions {
name?: string;
autoBind?: boolean;
axisDefaults?: any;
axisDefaults?: ChartAxisDefaults;
categoryAxis?: ChartCategoryAxisItem[];
chartArea?: ChartChartArea;
dataSource?: any|any|kendo.data.DataSource;
@@ -10363,9 +10571,9 @@ declare namespace kendo.dataviz.ui {
options: DiagramOptions;
dataSource: kendo.data.DataSource;
connections: kendo.dataviz.diagram.Connection[];
connections: DiagramConnection[];
connectionsDataSource: kendo.data.DataSource;
shapes: kendo.dataviz.diagram.Shape[];
shapes: DiagramShape[];
element: JQuery;
wrapper: JQuery;
@@ -10432,6 +10640,9 @@ declare namespace kendo.dataviz.ui {
}
interface DiagramConnectionDefaultsContent {
color?: string;
fontFamily?: string;
fontSize?: number;
template?: string|Function;
text?: string;
visual?: Function;
@@ -10526,6 +10737,9 @@ declare namespace kendo.dataviz.ui {
}
interface DiagramConnectionContent {
color?: string;
fontFamily?: string;
fontSize?: number;
template?: string|Function;
text?: string;
visual?: Function;
@@ -10776,9 +10990,76 @@ declare namespace kendo.dataviz.ui {
stroke?: DiagramSelectableStroke;
}
interface DiagramShapeDefaultsConnectorDefaultsFill {
color?: string;
opacity?: number;
}
interface DiagramShapeDefaultsConnectorDefaultsHoverFill {
color?: string;
opacity?: number;
}
interface DiagramShapeDefaultsConnectorDefaultsHoverStroke {
color?: string;
dashType?: string;
width?: number;
}
interface DiagramShapeDefaultsConnectorDefaultsHover {
fill?: DiagramShapeDefaultsConnectorDefaultsHoverFill;
stroke?: DiagramShapeDefaultsConnectorDefaultsHoverStroke;
}
interface DiagramShapeDefaultsConnectorDefaultsStroke {
color?: string;
dashType?: string;
width?: number;
}
interface DiagramShapeDefaultsConnectorDefaults {
width?: number;
height?: number;
hover?: DiagramShapeDefaultsConnectorDefaultsHover;
fill?: DiagramShapeDefaultsConnectorDefaultsFill;
stroke?: DiagramShapeDefaultsConnectorDefaultsStroke;
}
interface DiagramShapeDefaultsConnectorFill {
color?: string;
opacity?: number;
}
interface DiagramShapeDefaultsConnectorHoverFill {
color?: string;
opacity?: number;
}
interface DiagramShapeDefaultsConnectorHoverStroke {
color?: string;
dashType?: string;
width?: number;
}
interface DiagramShapeDefaultsConnectorHover {
fill?: DiagramShapeDefaultsConnectorHoverFill;
stroke?: DiagramShapeDefaultsConnectorHoverStroke;
}
interface DiagramShapeDefaultsConnectorStroke {
color?: string;
dashType?: string;
width?: number;
}
interface DiagramShapeDefaultsConnector {
name?: string;
position?: Function;
width?: number;
height?: number;
hover?: DiagramShapeDefaultsConnectorHover;
fill?: DiagramShapeDefaultsConnectorFill;
stroke?: DiagramShapeDefaultsConnectorStroke;
}
interface DiagramShapeDefaultsContent {
@@ -10844,6 +11125,7 @@ declare namespace kendo.dataviz.ui {
interface DiagramShapeDefaults {
connectors?: DiagramShapeDefaultsConnector[];
connectorDefaults?: DiagramShapeDefaultsConnectorDefaults;
content?: DiagramShapeDefaultsContent;
editable?: DiagramShapeDefaultsEditable;
fill?: DiagramShapeDefaultsFill;
@@ -10863,10 +11145,77 @@ declare namespace kendo.dataviz.ui {
y?: number;
}
interface DiagramShapeConnectorDefaultsFill {
color?: string;
opacity?: number;
}
interface DiagramShapeConnectorDefaultsHoverFill {
color?: string;
opacity?: number;
}
interface DiagramShapeConnectorDefaultsHoverStroke {
color?: string;
dashType?: string;
width?: number;
}
interface DiagramShapeConnectorDefaultsHover {
fill?: DiagramShapeConnectorDefaultsHoverFill;
stroke?: DiagramShapeConnectorDefaultsHoverStroke;
}
interface DiagramShapeConnectorDefaultsStroke {
color?: string;
dashType?: string;
width?: number;
}
interface DiagramShapeConnectorDefaults {
width?: number;
height?: number;
hover?: DiagramShapeConnectorDefaultsHover;
fill?: DiagramShapeConnectorDefaultsFill;
stroke?: DiagramShapeConnectorDefaultsStroke;
}
interface DiagramShapeConnectorFill {
color?: string;
opacity?: number;
}
interface DiagramShapeConnectorHoverFill {
color?: string;
opacity?: number;
}
interface DiagramShapeConnectorHoverStroke {
color?: string;
dashType?: string;
width?: number;
}
interface DiagramShapeConnectorHover {
fill?: DiagramShapeConnectorHoverFill;
stroke?: DiagramShapeConnectorHoverStroke;
}
interface DiagramShapeConnectorStroke {
color?: string;
dashType?: string;
width?: number;
}
interface DiagramShapeConnector {
description?: string;
name?: string;
position?: Function;
width?: number;
height?: number;
hover?: DiagramShapeConnectorHover;
fill?: DiagramShapeConnectorFill;
stroke?: DiagramShapeConnectorStroke;
}
interface DiagramShapeContent {
@@ -10930,6 +11279,7 @@ declare namespace kendo.dataviz.ui {
interface DiagramShape {
connectors?: DiagramShapeConnector[];
connectorDefaults?: DiagramShapeConnectorDefaults;
content?: DiagramShapeContent;
editable?: DiagramShapeEditable;
fill?: DiagramShapeFill;
@@ -10999,6 +11349,7 @@ declare namespace kendo.dataviz.ui {
remove?(e: DiagramRemoveEvent): void;
save?(e: DiagramSaveEvent): void;
select?(e: DiagramSelectEvent): void;
toolBarClick?(e: DiagramToolBarClickEvent): void;
zoomEnd?(e: DiagramZoomEndEvent): void;
zoomStart?(e: DiagramZoomStartEvent): void;
}
@@ -11091,6 +11442,13 @@ declare namespace kendo.dataviz.ui {
deselected?: any;
}
interface DiagramToolBarClickEvent extends DiagramEvent {
action?: string;
shapes?: any;
connections?: any;
target?: JQuery;
}
interface DiagramZoomEndEvent extends DiagramEvent {
point?: kendo.dataviz.diagram.Point;
zoom?: number;
@@ -14924,6 +15282,9 @@ declare namespace kendo.dataviz.diagram {
}
interface ConnectionContent {
color?: string;
fontFamily?: string;
fontSize?: number;
template?: string|Function;
text?: string;
visual?: Function;
@@ -15022,11 +15383,35 @@ declare namespace kendo.dataviz.diagram {
opacity?: number;
}
interface ConnectorHoverFill {
color?: string;
opacity?: number;
}
interface ConnectorHoverStroke {
color?: string;
dashType?: string;
width?: number;
}
interface ConnectorHover {
fill?: ConnectorHoverFill;
stroke?: ConnectorHoverStroke;
}
interface ConnectorStroke {
color?: string;
dashType?: string;
width?: number;
}
interface ConnectorOptions {
name?: string;
width?: number;
height?: number;
hover?: ConnectorHover;
fill?: ConnectorFill;
stroke?: ConnectorStroke;
}
interface ConnectorEvent {
sender: Connector;
@@ -15491,6 +15876,41 @@ declare namespace kendo.dataviz.diagram {
}
interface ShapeConnectorDefaultsFill {
color?: string;
opacity?: number;
}
interface ShapeConnectorDefaultsHoverFill {
color?: string;
opacity?: number;
}
interface ShapeConnectorDefaultsHoverStroke {
color?: string;
dashType?: string;
width?: number;
}
interface ShapeConnectorDefaultsHover {
fill?: ShapeConnectorDefaultsHoverFill;
stroke?: ShapeConnectorDefaultsHoverStroke;
}
interface ShapeConnectorDefaultsStroke {
color?: string;
dashType?: string;
width?: number;
}
interface ShapeConnectorDefaults {
width?: number;
height?: number;
hover?: ShapeConnectorDefaultsHover;
fill?: ShapeConnectorDefaultsFill;
stroke?: ShapeConnectorDefaultsStroke;
}
interface ShapeConnector {
name?: string;
description?: string;
@@ -15498,8 +15918,11 @@ declare namespace kendo.dataviz.diagram {
}
interface ShapeContent {
text?: string;
align?: string;
color?: string;
fontFamily?: string;
fontSize?: number;
text?: string;
}
interface ShapeEditable {
@@ -15566,6 +15989,7 @@ declare namespace kendo.dataviz.diagram {
content?: ShapeContent;
selectable?: boolean;
visual?: Function;
connectorDefaults?: ShapeConnectorDefaults;
}
interface ShapeEvent {
sender: Shape;
@@ -15859,6 +16283,7 @@ declare namespace kendo.spreadsheet {
showGridLines(): boolean;
showGridLines(showGridLiens?: boolean): void;
toJSON(): void;
setDataSource(dataSource: kendo.data.DataSource, columns?: any): void;
unhideColumn(index: number): void;
unhideRow(index: number): void;

View File

@@ -21,6 +21,16 @@ function main() {
.then(function (user: KiiUser) {
});
user.pushInstallation().getMqttEndpoint("")
.then(function (endpoint: KiiCloud.KiiMqttEndpoint) {
endpoint.installationID;
});
var anotherUser: KiiUser = KiiUserBuilder
.builderWithIdentifier("id", "password")
.setEmailAddress("mail@example.org")
.build();
var bucket = Kii.bucketWithName("foo");
var clause1 = KiiClause.lessThan("x", 1);
var clause2 = KiiClause.greaterThan("y", 1);

View File

@@ -1,4 +1,4 @@
// Type definitions for Kii Cloud SDK v2.4.0
// Type definitions for Kii Cloud SDK v2.4.3
// Project: http://en.kii.com/
// Definitions by: Kii Consortium <http://jp.kii.com/consortium/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
@@ -166,6 +166,33 @@ declare namespace KiiCloud {
username?: string;
}
interface KiiAccessTokenObject {
access_token: string;
expires_at: Date;
}
interface KiiGcmInstallationResponse {
installationID: string;
}
interface KiiMqttInstallationResponse {
installationID: string;
installationRegistrationID: string;
}
interface KiiMqttEndpoint {
installationID: string;
username: string;
password: string;
mqttTopic: string;
host: string;
"X-MQTT-TTL": number;
portTCP: number;
portSSL: number;
portWS: number;
portWSS: number;
}
/**
* The main SDK class
*/
@@ -623,6 +650,7 @@ declare namespace KiiCloud {
* KiiACLAction.KiiACLBucketActionCreateObjects,<br>
* KiiACLAction.KiiACLBucketActionQueryObjects, <br>
* KiiACLAction.KiiACLBucketActionDropBucket,<br>
* KiiACLAction.KiiACLBucketActionReadObjects,<br>
* KiiACLAction.KiiACLObjectActionRead,<br>
* KiiACLAction.KiiACLObjectActionWrite,<br>
* KiiACLAction.KiiACLSubscribeToTopic,<br>
@@ -1998,7 +2026,7 @@ declare namespace KiiCloud {
* @example
* // example to use callbacks directly
* var bucket = . . .; // a KiiBucket
* bucket['delete']({
* bucket.delete({
* success: function(deletedBucket) {
* // do something with the result
* },
@@ -2010,7 +2038,7 @@ declare namespace KiiCloud {
*
* // example to use Promise
* var bucket = . . .; // a KiiBucket
* bucket['delete']({
* bucket.delete({
* success: function(deletedBucket) {
* // do something with the result
* },
@@ -2394,7 +2422,7 @@ declare namespace KiiCloud {
* </li>
* <li>reject callback function: function(error). error is an Error instance.
* <ul>
* <li>error.target is the KiiACL instance which this method was called on.</li>
* <li>error.target is the KiiGroup instance which this method was called on.</li>
* <li>error.message</li>
* </ul>
* </li>
@@ -2512,15 +2540,7 @@ declare namespace KiiCloud {
*
* // example to use Promise
* var group = . . .; // a KiiGroup
* group.save({
* success: function(theSavedGroup) {
* // do something with the saved group
* },
*
* failure: function(theGroup, anErrorString, addMembersArray, removeMembersArray) {
* // do something with the error response
* }
* }).then(
* group.save().then(
* function(theSavedGroup) {
* // do something with the saved group
* },
@@ -2571,15 +2591,7 @@ declare namespace KiiCloud {
*
* // example to use Promise
* var group = . . .; // a KiiGroup
* group.saveWithOwner("UserID of owner", {
* success: function(theSavedGroup) {
* // do something with the saved group
* },
*
* failure: function(theGroup, anErrorString, addMembersArray, removeMembersArray) {
* // do something with the error response
* }
* }).then(
* group.saveWithOwner("UserID of owner").then(
* function(theSavedGroup) {
* // do something with the saved group
* },
@@ -2656,7 +2668,7 @@ declare namespace KiiCloud {
* @example
* // example to use callbacks directly
* var group = . . .; // a KiiGroup
* group['delete']({
* group.delete({
* success: function(theDeletedGroup) {
* // do something
* },
@@ -2668,7 +2680,7 @@ declare namespace KiiCloud {
*
* // example to use Promise
* var group = . . .; // a KiiGroup
* group['delete']({
* group.delete({
* success: function(theDeletedGroup) {
* },
*
@@ -2891,6 +2903,13 @@ declare namespace KiiCloud {
*/
getUUID(): string;
/**
* Get Id of the object or null if the object ID hasn't been assigned.
*
* @return
*/
getID(): string;
/**
* Get the server's creation date of this object
*
@@ -3179,7 +3198,7 @@ declare namespace KiiCloud {
* @example
* // example to use callbacks directly
* var obj = . . .; // a KiiObject
* obj['delete']({
* obj.delete({
* success: function(theDeletedObject) {
* // do something
* },
@@ -3191,7 +3210,7 @@ declare namespace KiiCloud {
*
* // example to use Promise
* var obj = . . .; // a KiiObject
* obj['delete']().then(
* obj.delete().then(
* function(theDeletedObject) {
* // do something
* },
@@ -3419,7 +3438,7 @@ declare namespace KiiCloud {
* // Obtaind body contents as bodyBlob.
* // content-type managed in Kii Cloud can be obtained from type attr.
* // It is same as obj.getBodyContentType();
* var obj = param[0];
* var obj = params[0];
* var bodyBlob = params[1];
* var contentType = bodyBlob.type;
* },
@@ -3651,6 +3670,144 @@ declare namespace KiiCloud {
static isValidObjectID(objectID: string): boolean;
}
/**
* Represents a KiiPushInstallation object
*/
export class KiiPushInstallation {
/**
* Register the id issued by GCM to the Kii cloud for current logged in user.
*
* @param installationRegistrationID The ID of registration that identifies the installation externally.
* @param development Indicates if the installation is for development or production environment.
* @param callbacks An object with callback methods defined
*
* @return return promise object.
* <ul>
* <li>fulfill callback function: function(response).
* <ul>
* <li>response.installationID is ID of the installation in the platform.</li>
* </ul>
* </li>
* <li>reject callback function: function(error). error is an Error instance.
* <ul>
* <li>error.message</li>
* </ul>
* </li>
* </ul>
*
* @example
*
*/
installGcm(installationRegistrationID: string, development: boolean, callbacks?: { success(response: KiiGcmInstallationResponse): any; failure(error: Error): any; }): Promise<KiiGcmInstallationResponse>;
/**
* Register a MQTT installation to the Kii cloud for current logged in user.
*
* @param development Indicates if the installation is for development or production environment.
* @param callbacks An object with callback methods defined
*
* @return return promise object.
* <ul>
* <li>fulfill callback function: function(response).
* <ul>
* <li>response.installationID is ID of the installation in the platform.</li>
* <li>response.installationRegistrationID is ID of registration that identifies the installation externally.</li>
* </ul>
* </li>
* <li>reject callback function: function(error). error is an Error instance.
* <ul>
* <li>error.message</li>
* </ul>
* </li>
* </ul>
*
* @example
*
*/
installMqtt(development: boolean, callbacks?: { success(response: KiiMqttInstallationResponse): any; failure(error: Error): any; }): Promise<KiiMqttInstallationResponse>;
/**
* Get MQTT endpoint.
* If the MQTT endpoint is not ready, this method retries request up to three times.
* <br><br>
* Note that only MQTT over tls is supported currently.<br>
* Don't use portSSL, portWS or portWSS until we support it.
*
* @param installationID The ID of the installation in the platform.
* @param callbacks An object with callback methods defined
*
* @return return promise object.
* <ul>
* <li>fulfill callback function: function(response).
* <ul>
* <li>response.installationID is ID of the installation in the platform.</li>
* <li>response.username is username to use for connecting to the MQTT broker.</li>
* <li>response.password is assword to use for connecting to the MQTT broker.</li>
* <li>response.mqttTopic is topic to subscribe in the MQTT broker.</li>
* <li>response.host is URL of the MQTT broker host to connect.</li>
* <li>response.X-MQTT-TTL is the amount of time in seconds that specifies how long the mqttTopic will be valid, after that the client needs to request new MQTT endpoint info.</li>
* <li>response.portTCP is port to connect using plain TCP.</li>
* <li>response.portSSL is port to connect using SSL/TLS.</li>
* <li>response.portWS is port to connect using plain Websocket.</li>
* <li>response.portWSS is port to connect using SSL/TLS Websocket.</li>
* </ul>
* </li>
* <li>reject callback function: function(error). error is an Error instance.
* <ul>
* <li>error.message</li>
* </ul>
* </li>
* </ul>
*
* @example
*
*/
getMqttEndpoint(installationID: string, callbacks?: { success(response: KiiMqttEndpoint): any; failure(error: Error): any; }): Promise<KiiMqttEndpoint>;
/**
* Unregister the push settings by the id(issued by push provider) that is used for installation.
*
* @param installationRegistrationID The ID of registration that identifies the installation externally.
* @param deviceType The type of the installation, current implementation only supports "ANDROID" and "MQTT".
* @param callbacks An object with callback methods defined
*
* @return return promise object.
* <ul>
* <li>fulfill callback function: function().</li>
* <li>reject callback function: function(error). error is an Error instance.
* <ul>
* <li>error.message</li>
* </ul>
* </li>
* </ul>
*
* @example
*
*/
uninstall(installationRegistrationID: string, deviceType: string, callbacks?: { success(): any; failure(error: Error): any; }): Promise<void>;
/**
* Unregister the push settings by the id(issued by KiiCloud) that is used for installation.
*
* @param installationID The ID of the installation issued by KiiCloud.
* @param callbacks An object with callback methods defined
*
* @return return promise object.
* <ul>
* <li>fulfill callback function: function().</li>
* <li>reject callback function: function(error). error is an Error instance.
* <ul>
* <li>error.message</li>
* </ul>
* </li>
* </ul>
*
* @example
*
*/
uninstallByInstallationID(installationID: string, callbacks?: { success(): any; failure(error: Error): any; }): Promise<void>;
}
/**
* Builder of push message
*/
@@ -5997,7 +6154,7 @@ declare namespace KiiCloud {
*
* @return Access token and token expires in a object.
*/
getAccessTokenObject(): { access_token: string, expires_at: Date };
getAccessTokenObject(): KiiAccessTokenObject;
/**
* Get a specifically formatted string referencing the user
@@ -7161,7 +7318,7 @@ declare namespace KiiCloud {
* @example
* // example to use callbacks directly
* var user = Kii.getCurrentUser(); // a KiiUser
* user['delete']({
* user.delete({
* success: function(theDeletedUser) {
* // do something
* },
@@ -7173,7 +7330,7 @@ declare namespace KiiCloud {
*
* // example to use Promise
* var user = Kii.getCurrentUser(); // a KiiUser
* user['delete']().then(
* user.delete().then(
* function(theDeletedUser) {
* // do something
* },
@@ -7430,6 +7587,184 @@ declare namespace KiiCloud {
* @return push subscription object.
*/
pushSubscription(): KiiPushSubscription;
/**
* Instantiate push installation for this user.
*
* @return push installation object.
*/
pushInstallation(): KiiPushInstallation;
}
/**
* Represents a KiiUser builder
*/
export class KiiUserBuilder {
/**
* Create a KiiUser builder with identifier.
*
* <br><br>Create a KiiUser builder. This constructor is received
* identifier. The identifier is one of user name, email address or
* phone number. This constructor automatically identity What is
* identifier and build proper KiiUser object on build method.
*
* <br><br> Some strings can be accepted as both user name and phone
* number. If such string is passed to this constructor as
* identifier, then phone number is prior to user name. String of
* email address is in different class against user name and phone
* number. So Email address is always identified correctly.
*
* @param identifier The user's user name, email address or phone
* number. Must be string. Must not be null or undefined.
* @param password for the user. Must be string. Must not be null or
* undefined.
*
* @return KiiUser object builder.
*
* @throws If Identifier is not user name,
* email address or phone number.
* @throws If the password is not in the
* proper format
*/
static builderWithIdentifier(identifier: string, password: string): KiiUserBuilder;
/**
* Create KiiUser builder with email address
*
* <br><br>Create a KiiUser builder with email address.
*
* @param emailAddress email address.
* @param password for the user. Must be string. Must not be null or
* undefined.
*
* @return KiiUser object builder.
*
* @throws If the email address is not in the proper format
* @throws If the password is not in the
* proper format
*/
static builderWithEmailAddress(emailAddress: string, password: string): KiiUserBuilder;
/**
* Create KiiUser builder with global phone number
*
* <br><br>Create a KiiUser builder with global phone number.
*
* @param phoneNumber global phone number.
* @param password
*
* @return KiiUser object builder.
*
* @throws If the phone number is not in the proper format
*/
static builderWithGlobalPhoneNumber(phoneNumber: string, password: string): KiiUserBuilder;
/**
* Create KiiUser builder with local phone number
*
* <br><br>Create a KiiUser builder with local phone number.
*
* @param phoneNumber local phone number.
* @param country country code
* @param password for the user. Must be string. Must not be null or
* undefined.
*
* @return KiiUser object builder.
*
* @throws If the phone number is not in the proper format
* @throws If the country code is not a valid format
* @throws If the password is not in the
* proper format
*/
static builderWithLocalPhoneNumber(phoneNumber: string, country: string, password: string): KiiUserBuilder;
/**
* Create KiiUser builder with user name
*
* <br><br>Create a KiiUser builder with user name.
*
* @param username user name.
* @param password for the user. Must be string. Must not be null or
* undefined.
*
* @return KiiUser object builder.
*
* @throws If the username is not in the proper format
* @throws If the password is not in the
* proper format
*/
static builderWithUsername(username: string, password: string): KiiUserBuilder;
/**
* Set user name.
*
* <br><br>Set user name. If null or undefined is passed. It is
* ignored. Previous user name is remained.
*
* @param username user name.
*
* @return this builder object.
*
* @throws If the username is not in the
* proper format
*/
setUsername(username: string): KiiUserBuilder;
/**
* Set email address.
*
* <br><br>Set email address. If null or undefined is passed. It is
* ignored. Previous email address is remained.
*
* @param emailAddress email address.
*
* @return this builder object.
*
* @throws If the email address is not in the
* proper format
*/
setEmailAddress(emailAddress: string): KiiUserBuilder;
/**
* Set global phone number.
*
* <br><br>Set global phone number. If null or undefined is
* passed. It is ignored. Previous phone number is remained.
*
* @param phoneNumber global phone number.
*
* @return this builder object.
*
* @throws If the phone number is not
* in the proper format
*/
setGlobalPhoneNumber(phoneNumber: string): KiiUserBuilder;
/**
* Set local phone number.
*
* <br><br>Set local phone number. If null or undefined is
* passed. It is ignored. Previous phone number is remained.
*
* @param phoneNumber local phone number.
* @param country country code
*
* @return this builder object.
*
* @throws If the phone number is not
* in the proper format
* @throws If the country code is not a valid format
*/
setLocalPhoneNumber(phoneNumber: string, country: string): KiiUserBuilder;
/**
* Build KiiUser object.
*
* <br><br> Build KiiUser object. This method verify set values.
*
* @return a working KiiUser object.
*/
build(): KiiUser;
}
}
@@ -7449,6 +7784,7 @@ import KiiClause = KiiCloud.KiiClause;
import KiiGeoPoint = KiiCloud.KiiGeoPoint;
import KiiGroup = KiiCloud.KiiGroup;
import KiiObject = KiiCloud.KiiObject;
import KiiPushInstallation = KiiCloud.KiiPushInstallation;
import KiiPushMessageBuilder = KiiCloud.KiiPushMessageBuilder;
import KiiPushSubscription = KiiCloud.KiiPushSubscription;
import KiiQuery = KiiCloud.KiiQuery;
@@ -7458,3 +7794,4 @@ import KiiSocialConnect = KiiCloud.KiiSocialConnect;
import KiiThing = KiiCloud.KiiThing;
import KiiTopic = KiiCloud.KiiTopic;
import KiiUser = KiiCloud.KiiUser;
import KiiUserBuilder = KiiCloud.KiiUserBuilder;

View File

@@ -106,6 +106,10 @@ interface KnockoutValidationGroup {
isAnyMessageShown?: () => boolean;
}
interface KnockoutValidationLocalizationDictionary {
[key: string]: string;
}
interface KnockoutValidationStatic {
init(options?: KnockoutValidationConfiguration, force?: boolean): void;
reset(): void;
@@ -127,7 +131,9 @@ interface KnockoutValidationStatic {
registerExtenders(): void;
utils: KnockoutValidationUtils;
localize(msgTranslations: any): void;
localize(msgTranslations: KnockoutValidationLocalizationDictionary): void;
defineLocale(newLocale: string, msgTranslations: KnockoutValidationLocalizationDictionary): KnockoutValidationLocalizationDictionary;
locale(newLocale: string): string;
validateObservable(observable: KnockoutObservable<any>): boolean;
}

View File

@@ -535,6 +535,16 @@ interface KnockoutStatic {
};
components: KnockoutComponents;
/////////////////////////////////
// options.js
/////////////////////////////////
options: {
deferUpdates: boolean,
useOnlyNativeEvents: boolean
}
}
interface KnockoutBindingProvider {

View File

@@ -60,5 +60,6 @@ declare module "koa-bodyparser" {
onerror?: (err: Error, ctx: Koa.Context) => void;
}): { (ctx: Koa.Context, next?: () => any): any };
namespace bodyParser {}
export = bodyParser;
}

View File

@@ -0,0 +1,15 @@
/// <reference path="../koa/koa.d.ts" />
/// <reference path="koa-json.d.ts" />
import * as Koa from "koa";
import * as json from 'koa-json';
const app = new Koa();
app.use(json({
pretty: false,
param: 'pretty',
spaces: 2
}));
app.listen(80)

40
koa-json/koa-json.d.ts vendored Normal file
View File

@@ -0,0 +1,40 @@
// Type definitions for koa-json v2.x
// Project: https://github.com/koajs/json
// Definitions by: Alex Friedman <https://github.com/brooklyndev/>
// Definitions: https://github.com/brooklyndev/DefinitelyTyped
/* =================== USAGE ===================
import * as Koa from 'koa';
import * as json from 'koa-json';
const app = new Koa();
app.use(json());
=============================================== */
/// <reference path="../koa/koa.d.ts" />
declare module "koa-json" {
import * as Koa from "koa";
function json(opts?:{
/**
* default to pretty response [true]
*/
pretty?: boolean,
/**
* optional query-string param for pretty responses [none]
*/
param?: string,
/**
* JSON spaces [2]
*/
spaces?: number
}) : { (ctx: Koa.Context, next?: () => any): any } ;
namespace json {}
export = json;
}

View File

@@ -0,0 +1,7 @@
/// <reference path="latinize.d.ts" />
import latinize = require('latinize');
latinize('ỆᶍǍᶆṔƚÉ áéíóúýčďěňřšťžů'); // => 'ExAmPlE aeiouycdenrstzu'
latinize.characters['Ω'] = 'O';

17
latinize/latinize.d.ts vendored Normal file
View File

@@ -0,0 +1,17 @@
// Type definitions for latinize 0.2.0
// Project: https://github.com/dundalek/latinize
// Definitions by: Giedrius Grabauskas <https://github.com/GiedriusGrabauskas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace LatinizeModule {
export interface Latinize {
(str: string): string;
characters: { [char: string]: string };
}
}
declare module "latinize" {
let latinize: LatinizeModule.Latinize;
export = latinize;
}

View File

@@ -3383,6 +3383,11 @@ declare namespace L {
*/
className?: string;
/**
* Sets the radius of a circle marker.
*/
radius?: number;
}
}

View File

@@ -16,6 +16,11 @@ log.setLevel("error", false);
log.setLevel(LogLevel.WARN);
log.setLevel(LogLevel.WARN, false);
log.enableAll(false);
log.enableAll();
log.disableAll(true);
log.disableAll();
var logLevel = log.getLevel();
var testLogger = log.getLogger("TestLogger");
@@ -26,3 +31,8 @@ testLogger.warn("logging test");
var logging = log.noConflict();
logging.error("still pretty easy");
log.methodFactory = function(methodName: string, level: LogLevel, loggerName :string) {
return function(...messages: any[]) {
};
};

View File

@@ -1,6 +1,6 @@
// Type definitions for loglevel 1.4.0
// Project: https://github.com/pimterry/loglevel
// Definitions by: Stefan Profanter <https://github.com/Pro/>, Florian Wagner <https://github.com/flqw/>
// Definitions by: Stefan Profanter <https://github.com/Pro/>, Florian Wagner <https://github.com/flqw/>, Gabor Szmetanko <https://github.com/szmeti/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/**
@@ -15,8 +15,28 @@ declare const enum LogLevel {
SILENT = 5
}
interface LoggingMethod {
(...message : any[]):void;
}
interface MethodFactory {
(methodName : string, level : LogLevel, loggerName : string):LoggingMethod;
}
interface Log {
/**
* Plugin API entry point. This will be called for each enabled method each time the level is set
* (including initially), and should return a MethodFactory to be used for the given log method, at the given level,
* for a logger with the given name. If you'd like to retain all the reliability and features of loglevel, it's
* recommended that this wraps the initially provided value of log.methodFactory
*/
methodFactory:MethodFactory;
/**
* Output trace message to console.
* This will also include a full stack trace
@@ -135,6 +155,24 @@ interface Log {
*/
getLogger(name : String):Log;
/**
* This enables all log messages, and is equivalent to log.setLevel("trace").
*
* @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling
* back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass
* false as the optional 'persist' second argument, persistence will be skipped.
*/
enableAll(persist? : boolean):void;
/**
* This disables all log messages, and is equivalent to log.setLevel("silent").
*
* @param persist Where possible the log level will be persisted. LocalStorage will be used if available, falling
* back to cookies if not. If neither is available in the current environment (i.e. in Node), or if you pass
* false as the optional 'persist' second argument, persistence will be skipped.
*/
disableAll(persist? : boolean):void;
}
declare var log : Log;

View File

@@ -576,7 +576,7 @@ declare namespace __MaterialUI {
export class EnhancedButton extends React.Component<EnhancedButtonProps, {}> {
}
interface FlatButtonProps extends SharedEnhancedButtonProps<FlatButton> {
interface FlatButtonProps extends React.DOMAttributes, SharedEnhancedButtonProps<FlatButton> {
// <EnhancedButton/> is the element that get the 'other' properties
backgroundColor?: string;
disabled?: boolean;
@@ -843,7 +843,7 @@ declare namespace __MaterialUI {
ref?: string;
text: string;
}
interface DialogProps extends React.Props<Dialog> {
interface DialogProps extends React.DOMAttributes, React.Props<Dialog> {
/** @deprecated use a custom `actions` property instead */
actionFocus?: string;
actions?: Array<DialogAction | React.ReactElement<any>>;

View File

@@ -0,0 +1,58 @@
/// <reference path="microgears.d.ts" />
function verify_module_file() {
var tracePlugin = new TracePlugin();
microgears.addPlugin(tracePlugin);
var service = new UserService();
var userService = microgears.addService(service);
}
class TracePlugin implements microgears.Plugin {
name: 'TracePlugin';
public beforeChain(args:Array<any>, _meta: microgears.MetaInformation) {
var serviceName = _meta.serviceName,
method = _meta.methodName;
console.log('before call-> ' + serviceName + '.' + method);
_meta.extra = {
count: 1
};
return args
}
public afterChain(result:any, _meta: microgears.MetaInformation) {
var serviceName = _meta.serviceName,
method = _meta.methodName;
console.log('after of-> ' + serviceName + '.' + method);
if (_meta.extra.count) {
console.log('this number comes to the beforeChain: ' + _meta.extra.count);
}
return result;
}
}
class User {
name: string;
email: string;
constructor(name: string, email: string) {
this.email = email;
this.name = name;
}
}
class UserService implements microgears.Service {
name: string = "userService";
namespace: string = "services.user";
public findUserById(id: number) {
return new User('test', 'test@example.com');
}
}

33
microgears/microgears.d.ts vendored Normal file
View File

@@ -0,0 +1,33 @@
// Type definitions for microgears v4.0.0
// Project: http://github.com/marcusdb/microgears
// Definitions by: Marcus David Bronstein <https://github.com/marcusdb>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare namespace microgears {
export interface Service {
name: string;
async?: boolean;
pathname?: string;
namespace: string;
}
interface MetaInformation {
serviceName: string;
methodName: string;
serviceNameSpace: string;
extra: any;
}
interface Plugin {
name: string;
beforeChain(arguments: Array<any>, metaInfo: MetaInformation): Array<any>;
afterChain<T>(result: T, metaInfo: MetaInformation): T;
}
function addService(service: Service): Service;
function addPlugin(plugin: Plugin): void;
}
declare module "microgears" {
export = microgears;
}

View File

@@ -686,3 +686,8 @@ declare module 'moment' {
var moment: moment.MomentStatic;
export = moment;
}
declare module 'moment/moment' {
var moment: moment.MomentStatic;
export = moment;
}

10
mssql/mssql.d.ts vendored
View File

@@ -1,6 +1,6 @@
// Type definitions for mssql v2.2.0
// Type definitions for mssql v3.1.0
// Project: https://www.npmjs.com/package/mssql
// Definitions by: COLSA Corporation <http://www.colsa.com/>, Ben Farr <https://github.com/jaminfarr>
// Definitions by: COLSA Corporation <http://www.colsa.com/>, Ben Farr <https://github.com/jaminfarr>, Vitor Buzinaro <https://github.com/buzinas>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
/// <reference path="../node/node.d.ts" />
@@ -199,14 +199,14 @@ declare module "mssql" {
public constructor(transaction: Transaction);
public constructor(preparedStatement: PreparedStatement);
public execute(procedure: string): Promise<recordSet>;
public execute<Entity>(procedure: string, callback: (err?: any, recordsets?: Entity[], returnValue?: any) => void): void;
public execute<Entity>(procedure: string, callback: (err?: any, recordsets?: Entity[], returnValue?: any, rowsAffected?: number) => void): void;
public input(name: string, value: any): void;
public input(name: string, type: any, value: any): void;
public output(name: string, type: any, value?: any): void;
public pipe(stream: NodeJS.WritableStream): void;
public query(command: string): Promise<void>;
public query<Entity>(command: string): Promise<Entity[]>;
public query(command: string, callback: (err?: any, recordset?: any) => void): void;
public query(command: string, callback: (err?: any, recordset?: any, rowsAffected?: number) => void): void;
public query<Entity>(command: string, callback: (err?: any, recordset?: Entity[]) => void): void;
public batch(batch: string): Promise<recordSet>;
public batch<Entity>(batch: string): Promise<Entity[]>;
@@ -258,7 +258,7 @@ declare module "mssql" {
public prepare(statement?: string, callback?: (err?: any) => void): void;
public execute(values: Object): Promise<recordSet>;
public execute<Entity>(values: Object): Promise<Entity[]>;
public execute(values: Object, callback: (err: any, recordSet: recordSet) => void): void;
public execute(values: Object, callback: (err: any, recordSet: recordSet, rowsAffected: number) => void): void;
public execute<Entity>(values: Object, callback: (err: any, recordSet: Entity[]) => void): void;
public unprepare(): Promise<void>;
public unprepare(callback: (err?: any) => void): void;

View File

@@ -3,7 +3,7 @@
var app: any;
app.controller('MainCtrl', function ($localStorage: angular.storage.ILocalStorageService) {
app.controller('LocalCtrl', function ($localStorage: angular.storage.IStorageService) {
$localStorage.set('MyKey', 'value');
@@ -16,12 +16,32 @@ app.controller('MainCtrl', function ($localStorage: angular.storage.ILocalStorag
$localStorage.$reset({
counter: 1
});
$localStorage.$reset();
$localStorage.$apply();
});
app.config(['$localStorageProvider',
function ($localStorageProvider: angular.storage.ILocalStorageProvider) {
app.controller('SessionCtrl', function ($sessionStorage: angular.storage.IStorageService) {
$sessionStorage.set('MyKey', 'value');
$sessionStorage.get('MyKey');
$sessionStorage.$default({
counter: 1
});
$sessionStorage.$reset({
counter: 1
});
$sessionStorage.$reset();
$sessionStorage.$apply();
});
app.config(['$localStorageProvider', function ($localStorageProvider: angular.storage.IStorageProvider) {
$localStorageProvider.setKeyPrefix('NewPrefix');
$localStorageProvider.get('MyKey');
@@ -39,4 +59,23 @@ app.config(['$localStorageProvider',
$localStorageProvider.setSerializer(mySerializer);
$localStorageProvider.setDeserializer(myDeserializer);
}
]).config(['$sessionStorageProvider', function ($sessionStorageProvider: angular.storage.IStorageProvider) {
$sessionStorageProvider.setKeyPrefix('NewPrefix');
$sessionStorageProvider.get('MyKey');
$sessionStorageProvider.set('MyKey', { counter: 'value' });
var mySerializer = function (value:any):string {
return value.toString();
};
var myDeserializer = function (value:string):any {
return value;
};
$sessionStorageProvider.setSerializer(mySerializer);
$sessionStorageProvider.setDeserializer(myDeserializer);
}
]);

View File

@@ -7,22 +7,22 @@
declare namespace angular.storage {
export interface ILocalStorageService {
$default(items: any):ILocalStorageService;
$reset(items: any):ILocalStorageService;
$apply():void;
export interface IStorageService {
$default(items: {}): IStorageService;
$reset(items?: {}): IStorageService;
$apply(): void;
get<T>(key: string): T;
set<T>(key: string, value: T): T;
}
export interface ILocalStorageProvider extends angular.IServiceProvider {
export interface IStorageProvider extends angular.IServiceProvider {
get<T>(key:string): T;
set<T>(key:string, value:T): T;
setKeyPrefix(prefix: string):void;
setSerializer(serializer: (value: any)=>string):void;
setDeserializer(deserializer: (value: string)=>any):void;
setKeyPrefix(prefix: string): void;
setSerializer(serializer: (value: any)=>string): void;
setDeserializer(deserializer: (value: string)=>any): void;
}
}

View File

@@ -138,6 +138,7 @@ function bufferTests() {
var base64Buffer = new Buffer('','base64');
var octets: Uint8Array = null;
var octetBuffer = new Buffer(octets);
var sharedBuffer = new Buffer(octets.buffer);
var copiedBuffer = new Buffer(utf8Buffer);
console.log(Buffer.isBuffer(octetBuffer));
console.log(Buffer.isEncoding('utf8'));
@@ -181,6 +182,12 @@ function bufferTests() {
let sb = new ImportedSlowBuffer(43);
b.writeUInt8(0, 6);
}
// Buffer has Uint8Array's buffer field (an ArrayBuffer).
{
let buffer = new Buffer('123');
let octets = new Uint8Array(buffer.buffer);
}
}

17
node/node.d.ts vendored
View File

@@ -108,6 +108,14 @@ declare var Buffer: {
* @param array The octets to store.
*/
new (array: Uint8Array): Buffer;
/**
* Produces a Buffer backed by the same allocated memory as
* the given {ArrayBuffer}.
*
*
* @param arrayBuffer The ArrayBuffer with which to share memory.
*/
new (arrayBuffer: ArrayBuffer): Buffer;
/**
* Allocates a new buffer containing the given {array} of octets.
*
@@ -382,12 +390,10 @@ declare namespace NodeJS {
/**
* @deprecated
*/
interface NodeBuffer {
[index: number]: number;
interface NodeBuffer extends Uint8Array {
write(string: string, offset?: number, length?: number, encoding?: string): number;
toString(encoding?: string, start?: number, end?: number): string;
toJSON(): any;
length: number;
equals(otherBuffer: Buffer): boolean;
compare(otherBuffer: Buffer): number;
copy(targetBuffer: Buffer, targetStart?: number, sourceStart?: number, sourceEnd?: number): number;
@@ -429,7 +435,12 @@ interface NodeBuffer {
writeDoubleLE(value: number, offset: number, noAssert?: boolean): number;
writeDoubleBE(value: number, offset: number, noAssert?: boolean): number;
fill(value: any, offset?: number, end?: number): Buffer;
// TODO: encoding param
indexOf(value: string | number | Buffer, byteOffset?: number): number;
// TODO: entries
// TODO: includes
// TODO: keys
// TODO: values
}
/************************************************

View File

@@ -174,3 +174,7 @@ declare namespace noUiSlider {
noUiSlider: noUiSlider
}
}
declare module "nouislider" {
export = noUiSlider;
}

Some files were not shown because too many files have changed in this diff Show More