diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS index 0634fd4732..a03915a264 100644 --- a/.github/CODEOWNERS +++ b/.github/CODEOWNERS @@ -1,3760 +1,3932 @@ -/types/abbrev/ @BendingBender -/types/ably/ @ably -/types/abs/ @AyaMorisawa -/types/absolute/ @AyaMorisawa -/types/acc-wizard/ @cyrilschumacher -/types/accept-language-parser/ @kampfgnom -/types/accepts/ @bomret -/types/accounting/ @gerich-home @chrisleck -/types/ace/ @Diullei -/types/acl/ @tkQubo -/types/acorn/ @RReverser @e-cloud -/types/actioncable/ @zhu1230 -/types/activex-access/ @zspitz -/types/activex-adodb/ @zspitz -/types/activex-dao/ @zspitz -/types/activex-excel/ @zspitz -/types/activex-infopath/ @zspitz -/types/activex-libreoffice/ @zspitz -/types/activex-msforms/ @zspitz -/types/activex-mshtml/ @zspitz -/types/activex-msxml2/ @zspitz -/types/activex-office/ @zspitz -/types/activex-outlook/ @zspitz -/types/activex-powerpoint/ @zspitz -/types/activex-scripting/ @zspitz -/types/activex-stdole/ @zspitz -/types/activex-vbide/ @zspitz -/types/activex-wia/ @zspitz -/types/activex-word/ @zspitz -/types/adal/ @mmaitre314 -/types/adm-zip/ @jvilk @abner -/types/adone/ @s0m3on3 @maxveres -/types/aframe/ @devpaul -/types/agenda/ @meirgottlieb -/types/aggregate-error/ @BendingBender -/types/alertify/ @jjeffery -/types/alexa-sdk/ @petebeegle @hoo29 @pascalwhoop @blforce -/types/alexa-voice-service/ @dolanmiu -/types/algebra.js/ @CaselIT -/types/algoliasearch/ @cbaptiste @haroenv @aherve -/types/alt/ @Shearerbeard -/types/amazon-product-api/ @MattiLehtinen @alien35 -/types/amcharts/ @aleksey-bykov -/types/amplify/ @joeriks -/types/amplify-deferred/ @joeriks @laurentiustamate94 -/types/amplitude-js/ @Asido -/types/amqp/ @seikho @jonnysparkplugs -/types/amqp-rpc/ @wokim -/types/amqplib/ @mnahkies @abreits @nfantone -/types/analytics-node/ @fongandrew -/types/angular/ @diegovilar @thorn0 @calebstdenis @leonard-thieu -/types/angular-agility/ @rolandzwaga -/types/angular-animate/ @michelsalib @adidahiya @rasch @codyschaaf -/types/angular-block-ui/ @lassebn @sclassen -/types/angular-bootstrap-calendar/ @Odrin -/types/angular-bootstrap-lightbox/ @rolandzwaga -/types/angular-breadcrumb/ @marctalary -/types/angular-clipboard/ @bradfordwagner -/types/angular-cookie/ @borislavjivkov -/types/angular-cookies/ @diegovilar @aciccarello -/types/angular-deferred-bootstrap/ @Ritzlgrmft -/types/angular-dialog-service/ @wcomartin -/types/angular-dynamic-locale/ @stephenlautier -/types/angular-environment/ @terrawheat -/types/angular-es/ @mbutsykin -/types/angular-feature-flags/ @borislavjivkov -/types/angular-file-saver/ @deenairn -/types/angular-file-upload/ @cyrilgandon -/types/angular-formly/ @scatcher -/types/angular-fullscreen/ @julienpa -/types/angular-gettext/ @AkosLukacs -/types/angular-google-analytics/ @cyrilschumacher @Toxantron -/types/angular-gridster/ @jpmnteiro -/types/angular-growl-v2/ @mkp05 -/types/angular-hotkeys/ @jlz27 @reppners -/types/angular-http-auth/ @vvakame -/types/angular-httpi/ @Kukks -/types/angular-idle/ @mthamil -/types/angular-jwt/ @rerezz -/types/angular-load/ @david-gang -/types/angular-loading-bar/ @stephenlautier @tyronedougherty -/types/angular-local-storage/ @kenfdev @dona278 -/types/angular-localforage/ @reppners -/types/angular-locker/ @nkovacic -/types/angular-material/ @blbigelow @PeterHajdu @Dona278 @geertjansen -/types/angular-media-queries/ @jpmnteiro -/types/angular-meteor/ @pgrm -/types/angular-mocks/ @diegovilar @daltin -/types/angular-modal/ @paullessing -/types/angular-oauth2/ @anteriovieira -/types/angular-pdfjs-viewer/ @bastienmoulia -/types/angular-permission/ @vmishevski -/types/angular-promise-tracker/ @rufusl -/types/angular-q-spread/ @rafw87 -/types/angular-resource/ @diegovilar @miffels -/types/angular-route/ @park9140 -/types/angular-sanitize/ @diegovilar -/types/angular-scenario/ @RomanoLindano -/types/angular-scroll/ @samherrmann -/types/angular-signalr-hub/ @AdamSantaniello -/types/angular-spinner/ @Biegal -/types/angular-storage/ @mdekrey -/types/angular-strap/ @samherrmann @mkannwischer -/types/angular-toastr/ @nkovacic @trodi -/types/angular-toasty/ @muenchdo -/types/angular-tooltips/ @leonard-thieu -/types/angular-touchspin/ @nkovacic -/types/angular-translate/ @michelsalib -/types/angular-ui-bootstrap/ @xt0rted @ry8806 -/types/angular-ui-router/ @michelsalib @matiishyn @mikehaas763 -/types/angular-ui-scroll/ @marknadig -/types/angular-ui-sortable/ @thgreasi -/types/angular-ui-tree/ @CalvinFernandez -/types/angular-websocket/ @nickveys -/types/angular-wizard/ @mjurisic @rwwilden -/types/angular-xeditable/ @jpmnteiro -/types/angular.throttle/ @reppners -/types/angularfire/ @thSoft -/types/angularlocalstorage/ @horiuchi -/types/angulartics/ @stevenfan -/types/animation-frame/ @qinfchen -/types/animejs/ @A-Babin -/types/annyang/ @hisham @theluk -/types/ansi-styles/ @brynbellomy -/types/ansicolors/ @rogierschouten -/types/any-db/ @rogierschouten -/types/any-db-transaction/ @rogierschouten -/types/anybar/ @khoomeister -/types/anydb-sql-migrations/ @spion -/types/anymatch/ @BendingBender -/types/apex.js/ @y13i -/types/aphrodite/ @asvetliakov -/types/api-error-handler/ @tkrotoff -/types/apigee-access/ @CasperSkydt -/types/apollo-codegen/ @bradleyayers -/types/app-root-path/ @shantmarouti -/types/appframework/ @kyo-ago -/types/appletvjs/ @brainded -/types/applicationinsights/ @scsouthw -/types/applicationinsights-js/ @kamilszostak -/types/arbiter/ @arash16 -/types/arcgis-js-api/v3/ @Esri -/types/arcgis-js-api/ @Esri -/types/arcgis-rest-api/ @JeffJacobson -/types/arcgis-to-geojson-utils/ @JeffJacobson -/types/archiver/ @dolanmiu @crevil -/types/archy/ @vvakame -/types/are-we-there-yet/ @brianloveswords -/types/argparse/ @arcticwaters @tlaziuk -/types/argv/ @hookclaw -/types/array-find-index/ @samverschueren -/types/array-foreach/ @skysteve -/types/array-uniq/ @DanielRosenwasser -/types/arrify/ @wanganjun -/types/artyom.js/ @semagarcia -/types/asana/ @tkqubo -/types/ascii2mathml/ @RagibHasin -/types/asenv/ @remisery -/types/askmethat-rating/ @AlexTeixeira -/types/asn1js/ @microshine -/types/aspnet-identity-pw/ @jt000 -/types/assert-equal-jsx/ @seryl -/types/assert-plus/ @KostyaTretyak -/types/assertion-error/ @Bartvds -/types/assertsharp/ @brunolm -/types/assets-webpack-plugin/ @kryops -/types/async/ @borisyankov @kern0 @Penryn @fenying @pascalmartin -/types/async-cache/ @BendingBender -/types/async-lock/ @elisee -/types/async-polling/ @Goldsmith42 -/types/async.nexttick/ @pyrho -/types/asyncblock/ @horiuchi -/types/atmosphere/ @toedter @Mory1879 -/types/atmosphere.js/ @toedter @Mory1879 -/types/atom/v0/ @vvakame @smhxx -/types/atom/ @GlenCFL -/types/atom-keymap/v5/ @enlight -/types/atom-keymap/ @GlenCFL -/types/atom-mocha-test-runner/ @GlenCFL -/types/atpl/ @soywiz -/types/audiosprite/ @Perlmint -/types/aurelia-knockout/ @code-chris -/types/auth0/ @wbhob @westy92 @amiram -/types/auth0-angular/ @homesar -/types/auth0-js/v7/ @advancedrei -/types/auth0-js/ @adrianchia @mdurrant -/types/auth0-lock/ @carusology @goldcaddy77 -/types/auth0.widget/ @advancedrei -/types/auto-launch/ @rhysd @unindented -/types/auto-sni/ @janwo -/types/autobahn/ @darkl @valepu -/types/autobind-decorator/ @NoHomey -/types/autolinker/ @leonyu -/types/autoprefixer/ @odnamrataizem -/types/autosize/ @kingdango @keika299 @NeekSandhu -/types/awesomplete/ @webbiesdk @bmdixon @tbekolay -/types/aws-iot-device-sdk/ @niik @mlamp -/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex -/types/aws-serverless-express/ @threesquared @jcaffey @mattmeye -/types/aws4/ @ajcrites -/types/axel/ @ruslan-molodyko -/types/axios-mock-adapter/ @tkryskiewicz -/types/azure/ @AndrewGaspar @antiveeranna @SomaticIT -/types/azure-mobile-services-client/ @dmorosinotto -/types/azure-sb/ @Azure -/types/b_/ @outring -/types/babel-code-frame/ @mohsen1 -/types/babel-core/ @yortus @marvinhagemeister -/types/babel-generator/ @yortus @johnnyestilles -/types/babel-plugin-react-pug/ @jpap -/types/babel-plugin-syntax-jsx/ @marvinhagemeister -/types/babel-template/ @yortus @marvinhagemeister -/types/babel-traverse/ @yortus @marvinhagemeister -/types/babel-types/ @yortus @baxtersa @marvinhagemeister -/types/babelify/ @TeamworkGuy2 @marvinhagemeister -/types/babylon/ @yortus @marvinhagemeister -/types/babylon-walk/ @czbuchi -/types/babyparse/ @cdiddy77 -/types/backbone/ @borisyankov @nvivo -/types/backbone-associations/ @craigbrett17 -/types/backbone-fetch-cache/ @delphinus35 -/types/backbone-relational/ @eirikhm -/types/backbone.layoutmanager/ @hejiang2000 -/types/backbone.localstorage/ @lgrignon -/types/backbone.marionette/ @zhamid @nvivo @sventschui -/types/backbone.paginator/ @Nyamazing -/types/backbone.radio/ @alphaleonis -/types/backgrid/ @jlujan -/types/backlog-js/ @vvatanabe -/types/backoff/ @BendingBender -/types/baconjs/ @alexander-matsievsky @gekkio -/types/bagpipes/ @micmro -/types/barcode/ @pvomhoff -/types/bardjs/ @TepigMC -/types/base-64/ @dolanmiu -/types/base-x/ @chrootsu -/types/base16/ @alechill -/types/base64-js/ @pe8ter -/types/bases/ @harikv -/types/basic-auth/ @moonpyk @vesse -/types/batch-stream/ @drudge -/types/bazinga-translator/ @alexndlm -/types/bcrypt/ @codeanimal @IOAyman -/types/bcryptjs/ @RafaelKr -/types/bem-cn/ @selkinvitaly -/types/better-curry/ @pocesar -/types/better-sqlite3/ @Morfent @matrumz -/types/bezier-easing/ @ptlis -/types/bezier-js/ @danmarshall -/types/bgiframe/ @sumegizoltan -/types/big.js/ @nycdotnet @googol -/types/bigi/ @mhegazy -/types/bigint/ @Evgenus -/types/bignum/ @Patman64 -/types/bignumber.js/ @LaserUnicorns -/types/bigscreen/ @dduugg -/types/bind-ponyfill/ @skysteve -/types/bingmaps/ @rbrundritt -/types/bintrees/ @CjS77 -/types/bip21/ @stefanhuber -/types/bit-array/ @mudkipme -/types/bitcoinjs-lib/ @mhegazy @dlebrecht @rbuckton -/types/bittorrent-protocol/ @feross @tlaziuk -/types/bitwise-xor/ @rogierschouten -/types/bl/ @Bartvds -/types/blacklist/ @mhegazy -/types/blazy/ @julienpa -/types/blessed/ @brynbellomy -/types/blissfuljs/ @fskorzec -/types/blob-stream/ @erichillah -/types/blob-to-buffer/ @nrlquaker -/types/blob-util/ @WorldMaker -/types/blocks/ @ksmigiel -/types/bloomfilter/ @slawiko -/types/blue-tape/ @sodatea -/types/bluebird/v1/ @Bartvds -/types/bluebird/v2/ @Bartvds @falsandtru -/types/bluebird/ @lhecker -/types/bluebird-global/ @d-ph -/types/bluebird-retry/ @pvomhoff -/types/blueimp-md5/ @rmartone @mkohlmyr -/types/body-parser/ @santialbo @vilic @dreampulse @blendsdk @tlaziuk -/types/bonjour/ @quentin-ol @octo-sniffle -/types/bookshelf/ @arcticwaters @vesse -/types/boom/v3/ @rogatty -/types/boom/ @rogatty @AJamesPhillips @jineshshah36 -/types/bootbox/ @vbortone @konpikwastaken @kanup @icereed @trodi @stannynuytkens -/types/bootpag/ @rdeneau -/types/bootstrap/ @borisyankov -/types/bootstrap-datepicker/ @borisyankov -/types/bootstrap-fileinput/ @CheCoxshall -/types/bootstrap-maxlength/ @danmana -/types/bootstrap-notify/ @niemyjski @mouse0270 @robert-voica -/types/bootstrap-select/ @LKay -/types/bootstrap-slider/ @dbeckwith @leonard-thieu -/types/bootstrap-switch/ @johnmbaughman -/types/bootstrap-table/ @talatbaig -/types/bootstrap-touchspin/ @albinsunnanbo -/types/bootstrap-treeview/ @jbtronics -/types/bootstrap-validator/ @BradyLiles -/types/bootstrap.paginator/ @derikwhittaker -/types/bootstrap.timepicker/ @derikwhittaker @heatherbooker -/types/bootstrap.v3.datetimepicker/v3/ @bayitajesi -/types/bootstrap.v3.datetimepicker/ @katonap -/types/botvs/ @acrazing -/types/bounce.js/ @cherrry -/types/bowser/ @pocesar -/types/box2d/ @jbaldwin -/types/brace-expansion/ @BendingBender -/types/braintree-web/ @chlela -/types/breeze/ @borisyankov -/types/bricks.js/ @kondi -/types/brorand/ @chrootsu -/types/browser-bunyan/ @PaulLockwood @kryops -/types/browser-fingerprint/ @LKay -/types/browser-harness/ @scriby -/types/browser-pack/ @TeamworkGuy2 -/types/browser-report/ @JTOne123 -/types/browser-resolve/ @marionebl -/types/browser-sync/ @joeskeen -/types/browserify/ @AndrewGaspar @jvilk @leonard-thieu -/types/bs58/ @chrootsu -/types/bson/ @horiuchi @CaselIT -/types/bucks/ @zaneli -/types/buffer-compare/ @chrootsu -/types/buffer-equal/ @Bartvds -/types/buffers/ @rhencke -/types/bufferstream/ @Bartvds -/types/bull/v2/ @bgrieder @JProgrammer -/types/bull/ @bgrieder @JProgrammer @marshall007 -/types/bunnymq/ @cyrilschumacher -/types/bunyan/ @amikhalev -/types/bunyan-blackhole/ @olivr70 -/types/bunyan-bugsnag/ @pasieronen -/types/bunyan-config/ @cyrilschumacher -/types/bunyan-prettystream/ @jasonswearingen @enlight -/types/bunyan-winston-adapter/ @stevehipwell -/types/busboy/ @jacobbaskin -/types/business-rules-engine/ @rsamec -/types/bwip-js/ @MugeSo -/types/byline/ @reppners -/types/bytebuffer/ @cappellin -/types/bytes/ @danny8002 -/types/c3/ @mcliment @gerinjacob @denyo -/types/cache-manager/ @GausSim -/types/cachefactory/ @vag1830 @danielmassa -/types/cal-heatmap/ @RetroChrisB -/types/callsite/ @newclear -/types/callsites/ @BendingBender -/types/calq/ @eirikhm -/types/camelcase/ @samverschueren -/types/camelcase-keys/ @mhegazy -/types/camo/ @lucasmciruzzi -/types/cannon/ @clark-stevenson -/types/canvas-gauges/ @Mikhus -/types/canvasjs/ @brutalimp -/types/capitalize/ @frederickfogerty -/types/card-validator/ @ChanceM -/types/cash/ @akvlko -/types/casperjs/ @jedmao -/types/cassandra-driver/ @Svjard -/types/catbox/ @jasonswearingen @AJamesPhillips -/types/cbor/ @pushplay -/types/ccap/ @taoqf -/types/chai/v2/ @Bartvds @AGBrown -/types/chai/ @jedmao @Bartvds @AGBrown @olivr70 @mwistrand @joshuakgoldberg @shaunluttin -/types/chai-arrays/ @clementprevot -/types/chai-as-promised/ @jt000 @Kuniwak @leonard-thieu @lazerwalker @mattbishop -/types/chai-datetime/ @cliffburger -/types/chai-dom/ @mattlewis92 -/types/chai-enzyme/ @asvetliakov -/types/chai-fuzzy/ @Bartvds -/types/chai-http/ @Nemo157 @G1itcher @CaselIT -/types/chai-jest-snapshot/ @mattvperry -/types/chai-jquery/ @kazimanzurrashid -/types/chai-json-schema/ @ulrichheiniger -/types/chai-oequal/ @mizunashi-mana -/types/chai-spies/ @kuzn-ilya -/types/chai-string/ @nmalaguti -/types/chai-subset/ @delta62 @AGBrown -/types/chai-xml/ @jedigo -/types/chalk/ @Diullei @Bartvds @nicojs -/types/chance/ @cbowdon -/types/change-emitter/ @iskandersierra -/types/charm/ @Xananax -/types/chart.js/ @anuti @FabienLavocat @KentarouTakeda @larrybahr @mernen @josefpaij -/types/chartist/ @mtgibbs @psimonski @clottman -/types/chartjs/ @Steve-Fenton @FanaHOVA -/types/chayns/ @HenningKuehl -/types/check-sum/ @BendingBender -/types/checkstyle-formatter/ @mhegazy -/types/checksum/ @rogierschouten -/types/cheerio/ @blittle @wmaurer @umarniz -/types/chmodr/ @BendingBender -/types/chokidar/ @reppners @felixfbecker @bayssmekanique -/types/chosen-js/ @borisyankov @denisname -/types/chownr/ @BendingBender -/types/chroma-js/v0/ @invliD -/types/chroma-js/ @invliD @mpacholec -/types/chrome/ @matthewkimber @otiai10 @couven92 @rreverser @sreimer15 -/types/chunked-dc/ @dbrgn -/types/circular-json/ @jpevarnek -/types/ckeditor/ @ondrejsevcik -/types/clamp-js/ @Hikariii -/types/classnames/ @adidahiya @JKillian @seansfkelley @mradamczyk @marvinhagemeister -/types/cldrjs/ @RamanBut-Husaim @gcastre -/types/clean-css/ @tkrotoff -/types/clean-stack/ @BendingBender -/types/clear-require/ @dan-j -/types/cleave.js/ @clentfort -/types/cli/ @kayahr -/types/cli-color/ @ChaosinaCan -/types/cli-table2/ @mgroenhoff -/types/client-sessions/ @netroy -/types/cliff/ @brynbellomy -/types/clipboard/ @impworks -/types/clipboard-js/ @markwongsk -/types/clipboardy/ @BendingBender -/types/clndr/ @jasperjn -/types/clockpicker/ @jfcere -/types/closure-compiler/ @mprobst -/types/cloud-env/ @Morfent -/types/cloudflare-apps/ @MartynasZilinskas -/types/cls-hooked/ @aleung -/types/co-body/ @geoffreak -/types/co-views/ @devlee @geoffreak -/types/code/ @prashaantt -/types/codemirror/ @mihailik @nrbernard -/types/codependency/ @morphatic -/types/coffeeify/ @tkQubo -/types/coinstring/ @mhegazy -/types/collections/ @scarabedore -/types/color/v0/ @LKay -/types/color/v1/ @LKay -/types/color/ @Airlun -/types/color-convert/ @Airlun -/types/color-name/ @Ailrun -/types/color-string/ @BendingBender @danmarshall -/types/colorbrewer/ @mtraynham -/types/colors/ @Bartvds @staeke -/types/com.darktalker.cordova.screenshot/ @akarienta -/types/combine-source-map/ @TeamworkGuy2 -/types/combined-stream/ @felixge @tlaziuk -/types/combokeys/ @iclanton -/types/cometd/ @derekcicerone -/types/command-line-args/ @CzBuCHi -/types/command-line-commands/ @CzBuCHi -/types/commander/ @alan-agius4 @mdezem @vvakame -/types/commangular/ @hiraash -/types/comment-json/ @Jason3S -/types/common-tags/ @zuzusik @tzupengwang -/types/commonmark/ @nicojs @leonard-thieu -/types/compare-version/ @jpevarnek -/types/complex/ @AyaMorisawa -/types/component-emitter/ @psnider -/types/compose-function/ @denis-sokolov -/types/compressible/ @BendingBender -/types/compression/ @santialbo -/types/compression-webpack-plugin/ @dublicator -/types/concat-stream/ @jmarianer -/types/concaveman/ @DenisCarriere -/types/conf/v0/ @SamVerschueren -/types/conf/ @SamVerschueren @BendingBender -/types/confidence/ @jppellerin -/types/config/ @RWander @forrestbice @jndonald3 -/types/configstore/ @ArcticLight -/types/confit/ @ethanresnick -/types/connect/ @SomaticIT -/types/connect-ensure-login/ @0x6368656174 -/types/connect-flash/ @AndreasGassmann -/types/connect-history-api-fallback/ @douglasduteil -/types/connect-livereload/ @SomaticIT -/types/connect-modrewrite/ @tinganho -/types/connect-mongo/ @Syati -/types/connect-pg-simple/ @pasieronen -/types/connect-redis/ @xstoudi @morcerf -/types/connect-slashes/ @samherrmann -/types/connect-timeout/ @cyrilschumacher -/types/console-stamp/ @ericbyers -/types/consolidate/ @soywiz @theosherry @nicolashenry -/types/consul/ @chrootsu -/types/content-disposition/ @bomret -/types/content-type/ @horiuchi @BendingBender -/types/contentful-resolve-response/ @antonkarsten -/types/contextjs/ @kernhanda -/types/continuation-local-storage/ @rath @heycalmdown @aboveyou00 -/types/convert-hrtime/ @BendingBender -/types/convert-layout/ @xeningem -/types/convert-source-map/ @AndrewGaspar @mgroenhoff @TeamworkGuy2 -/types/convict/ @Nemo157 @vesse @elyscape -/types/cookie/ @pine613 -/types/cookie-parser/ @santialbo @BendingBender -/types/cookie-session/ @borislavjivkov -/types/cookie-signature/ @lith-light-g -/types/cookie_js/ @slawiko -/types/cookies/ @WangZishi @jkeylu @BendingBender -/types/copy-paste/ @SrTobi -/types/copy-text-to-clipboard/ @BendingBender -/types/copy-webpack-plugin/ @flying-sheep -/types/cordova-ionic/ @hendrikmaus -/types/cordova-plugin-app-version/ @Ritzlgrmft -/types/cordova-plugin-background-mode/ @Lordnoname -/types/cordova-plugin-badge/ @timbru31 -/types/cordova-plugin-ble-central/ @gjunge -/types/cordova-plugin-canvascamera/ @lordazzi -/types/cordova-plugin-device-name/ @larrybahr -/types/cordova-plugin-file-opener2/ @cyrilgandon -/types/cordova-plugin-ibeacon/ @Ritzlgrmft -/types/cordova-plugin-insomnia/ @Ritzlgrmft -/types/cordova-plugin-keyboard/ @danmana -/types/cordova-plugin-mapsforge/ @rafw87 -/types/cordova-plugin-ms-adal/ @KaiWalter -/types/cordova-plugin-native-keyboard/ @lobo87 -/types/cordova-plugin-ouralabs/ @Justin-Credible -/types/cordova-plugin-qrscanner/ @bitjson @jab -/types/cordova-plugin-spinner/ @Justin-Credible -/types/cordova-plugin-statusbar/ @Xinkai -/types/cordova-plugin-vibration/ @Minishlink -/types/cordova-plugin-x-socialsharing/ @Ritzlgrmft @larrybahr -/types/cordova-sqlite-storage/ @rafw87 -/types/cordova.plugins.diagnostic/ @dpa99c -/types/cordova_app_version_plugin/ @larrybahr -/types/cordovarduino/ @hendrikmaus -/types/core-decorators/ @tkqubo -/types/core-js/ @rbuckton @mfdeveloper -/types/cote/ @makepost -/types/couchbase/ @maouida -/types/countdown/ @gjuchault -/types/counterpart/ @santiagodoldan -/types/countries-and-timezones/ @zero51 -/types/country-list/ @iRoachie -/types/country-select-js/ @humrochagf -/types/cp-file/ @BendingBender -/types/cpy/ @mhegazy @BendingBender -/types/cradle/ @panuhorsmalahti -/types/crc/ @YuJianrong -/types/create-error/ @tkrotoff -/types/create-react-class/ @jgoz -/types/createjs/ @evilangelist @gyohk -/types/createjs-lib/ @evilangelist @gyohk -/types/credential/ @phuvo -/types/credit-card-type/ @LKay -/types/cron/ @horiuchi -/types/cropperjs/ @stepancar -/types/croppie/ @connor4312 @dklmuc -/types/crossfilter/ @schmuli @iebaker -/types/crossroads/ @diullei -/types/cryptiles/ @awendland -/types/crypto-js/ @misak113 -/types/cryptojs/ @giabao -/types/cson/ @stpettersens -/types/csprng/ @winksaville -/types/csrf/ @markis -/types/css/ @ilich -/types/css-font-loading-module/ @slikts -/types/css-modules/ @NeekSandhu -/types/cssbeautify/ @rictic -/types/csurf/ @horiuchi -/types/csv-parse/ @davidm77 @obi-jan-kenobi -/types/csv-stringify/ @rogierschouten @arjenvanderende -/types/csvrow/ @codeanimal -/types/csvtojson/ @EricByers @wcarson -/types/cucumber/v1/ @abraaoalves @jan-molak @isoung @BendingBender -/types/cucumber/ @abraaoalves @jan-molak @isoung @BendingBender -/types/currency-formatter/ @mhegazy @davidmpaz -/types/custom-error-generator/ @thmiceli -/types/cwise/ @taoqf -/types/cwise-compiler/ @taoqf -/types/cwise-parser/ @taoqf -/types/cybozulabs-md5/ @pine613 -/types/cypress/ @ghengeveld @mikewoudenberg @rvanmarkus -/types/cytoscape/ @phreed @wy193777 -/types/d3/v3/ @gustavderdrache @borisyankov -/types/d3/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-array/ @gustavderdrache @borisyankov @tomwanzek -/types/d3-axis/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-box/ @lk-chen -/types/d3-brush/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-chord/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-collection/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-color/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-contour/ @tomwanzek @Ledragon -/types/d3-dispatch/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-drag/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-dsv/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-ease/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-force/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-format/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-geo/ @Ledragon @tomwanzek @gustavderdrache @borisyankov -/types/d3-hexbin/ @uncovertruth @tomwanzek -/types/d3-hierarchy/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-hsv/ @arrayjam -/types/d3-interpolate/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-path/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-polygon/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-quadtree/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-queue/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-random/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-request/ @Ledragon @gustavderdrache @borisyankov @tomwanzek -/types/d3-sankey/ @tomwanzek @gustavderdrache -/types/d3-scale/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-scale-chromatic/ @Ledragon @gustavderdrache @borisyankov @henriquefm -/types/d3-selection/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-selection-multi/ @gustavderdrache @borisyankov -/types/d3-shape/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-time/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-time-format/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-timer/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-tip/ @brspnnggrt -/types/d3-transition/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-voronoi/ @tomwanzek @gustavderdrache @borisyankov -/types/d3-zoom/ @tomwanzek @gustavderdrache @borisyankov -/types/d3.cloud.layout/ @hansrwindhoff -/types/d3.slider/ @lk-chen -/types/d3kit/ @morphatic -/types/d3pie/ @mc-petry -/types/dagre/ @qinfchen @Frankrike @vilterp -/types/dagre-d3/ @markwongsk -/types/dagre-layout/ @qinfchen @Frankrike @vilterp -/types/dargs/ @BendingBender -/types/dat-gui/ @gyohk @sonic3d @rroylance -/types/data-driven/ @mrhen -/types/datadog-metrics/ @pushplay -/types/datatables.net/ @omidkrad @pragmatrix @denisemauldin -/types/datatables.net-buttons/ @SammyG4Free @jimhartford -/types/datatables.net-fixedheader/ @szechyjs -/types/datatables.net-rowreorder/ @baywet -/types/datatables.net-select/ @szechyjs -/types/date-arithmetic/ @HeeL -/types/date.format.js/ @balrob -/types/dateformat/ @aicest -/types/datejs/ @rupertavery -/types/daterangepicker/ @SirMartin @smasala -/types/db-migrate-base/ @nickiannone -/types/db-migrate-pg/ @nickiannone -/types/db.js/ @cgwrench -/types/dc/ @hansrwindhoff @mtraynham -/types/deasync/ @Sicilica -/types/debessmann/ @vkorehov -/types/debounce/ @denis-sokolov -/types/debug/ @swook @galtalmor @zamb3zi -/types/decamelize/ @samverschueren -/types/decay/ @enaeseth -/types/decimal.js/ @musicist288 -/types/decompress/ @plantain-00 -/types/decorum/ @dflor003 -/types/dedent/ @douglasduteil -/types/deep-assign/ @souldreamer -/types/deep-diff/ @ZauberNerd -/types/deep-equal/ @remojansen @janslow -/types/deep-extend/ @rhysd -/types/deep-freeze/ @Bartvds @aluanhaddad -/types/deep-freeze-es6/ @mattbishop -/types/deep-freeze-strict/ @mhegazy -/types/deepmerge/ @marvinscharle @syy1125 -/types/defaults/ @IbtihelCHNAB -/types/define-lazy-prop/ @BendingBender -/types/defined/ @BendingBender -/types/deku/ @pocka -/types/del/v2/ @AyaMorisawa -/types/del/ @AyaMorisawa @BendingBender -/types/delaunator/ @DenisCarriere -/types/delay/ @BendingBender -/types/denodeify/ @joaomoreno -/types/deoxxa-content-type/ @pine613 -/types/depd/ @danny8002 @BendingBender -/types/deployjava/ @cyrilschumacher -/types/destroy/ @BendingBender -/types/destroy-on-hwm/ @BendingBender -/types/detect-browser/ @rogierschouten -/types/detect-hover/ @thomastilkema -/types/detect-indent/v0/ @Bartvds -/types/detect-indent/ @Bartvds @BendingBender -/types/detect-it/ @thomastilkema -/types/detect-newline/ @BendingBender -/types/detect-passive-events/ @thomastilkema -/types/detect-pointer/ @thomastilkema -/types/detect-port/ @lith-light-g -/types/detect-touch-events/ @thomastilkema -/types/df-visible/ @Litee -/types/dhtmlxgantt/ @mkozhukh @chriscamicas -/types/dhtmlxscheduler/ @mkozhukh -/types/di-lite/ @dcrusader -/types/diacritics/ @otociulis -/types/diff/ @vvakame -/types/diff2html/ @rtfpessoa -/types/dir-resolve/ @andy-ms -/types/discontinuous-range/ @OiCMudkips -/types/disposable-email-domains/ @geoffreak -/types/doccookies/ @jonegerton -/types/dockerode/ @seikho @nlaplante @isac322 @lazarusx @meisenzahl -/types/docopt/ @giggio -/types/doctrine/ @rictic -/types/documentdb/ @NoelAbrahams @brettferdosi @ctstone @yifanwu -/types/documentdb-server/ @lith-light-g -/types/documentdb-session/ @DanielRosenwasser -/types/dojo/ @vansimke -/types/dom-inputevent/ @diagramatics -/types/dom4/ @adidahiya @giladgray -/types/domo/ @Steve-Fenton -/types/dompurify/ @bazuzi -/types/domready/ @dotnetnerd -/types/donna/ @vvakame -/types/dookie/ @swanest -/types/dot/ @ZombieHunter -/types/dot-object/ @nkovacic -/types/dot-prop/v2/ @samverschueren -/types/dot-prop/ @samverschueren @BendingBender -/types/dotdotdot/ @milanjaros -/types/dotenv/v2/ @jussikinnula @borekb @enaeseth -/types/dotenv/ @jussikinnula @borekb @enaeseth -/types/dotenv-safe/ @krenor -/types/dottie/ @domarmstrong -/types/doublearray/ @mzsm -/types/doubleclick-gpt/ @johngeorgewright -/types/downloadjs/ @cwmoo740 -/types/draft-js/ @dmitryrogozhny @eelco @ghotiphud @schwers @michael-yx-wu @willisplummer @smvilar -/types/drag-timetable/ @chinkan -/types/draggabilly/ @jaydubu -/types/dragster/ @zskovacs -/types/dragula/ @pwelter34 @abruzzihraig -/types/dropboxjs/ @Steve-Fenton @xperiments -/types/dropkickjs/ @VorobeY1326 -/types/dropzone/v4/ @nvivo @outring @renuo @Hikariii -/types/dropzone/ @nvivo @outring @renuo @Hikariii @tedbcsgpro -/types/dts-generator/ @mtraynham -/types/duplexer2/ @Goldsmith42 -/types/duplexer3/ @BendingBender -/types/duplexify/ @strax -/types/duplicate-package-checker-webpack-plugin/ @mtraynham -/types/durandal/ @BlueSpire -/types/dustjs-linkedin/ @mdezem -/types/dw-bxslider-4/ @namerci -/types/dwt/v12/ @yushulx -/types/dwt/ @yushulx @jbh -/types/dygraphs/ @danvk -/types/dymo-label-framework/ @thijskuipers -/types/dynatable/ @francoismassart -/types/each/ @misak113 -/types/easeljs/ @evilangelist -/types/easy-api-request/ @DeadAlready -/types/easy-jsend/ @DeadAlready -/types/easy-session/ @DeadAlready -/types/easy-table/ @nikeee -/types/easy-x-headers/ @DeadAlready -/types/easy-xapi/ @DeadAlready -/types/easy-xapi-supertest/ @DeadAlready -/types/easy-xapi-utils/ @DeadAlready -/types/easystarjs/ @borundin -/types/ebongarde-root/ @Ebongarde -/types/echarts/ @xieisabug @AntiMoron -/types/ecurve/ @mhegazy -/types/egg/ @sheperdwind -/types/egg-mock/ @sheperdwind -/types/egg.js/ @ToastHawaii -/types/egjs__axes/ @naver -/types/egjs__component/ @naver -/types/ej.web.all/ @syncfusion -/types/ejs-locals/ @jt000 -/types/ejson/ @shantanubhadoria -/types/elasticsearch/ @CasperSkydt @bfsmith @ddunkin @pushplay @mlamp @ahmadferdous -/types/electron-config/ @mrfunkycold @unindented -/types/electron-debug/ @unindented -/types/electron-devtools-installer/ @gamesmaxed -/types/electron-is-dev/ @trodi -/types/electron-json-storage/ @stpettersens @nrlquaker -/types/electron-notifications/ @djpereira -/types/electron-notify/ @djpereira -/types/electron-packager/ @SomaticIT @cortopy -/types/electron-settings/v2/ @leonard-thieu -/types/electron-settings/ @icopp -/types/electron-store/ @unindented -/types/electron-window-state/ @rhysd -/types/electron-winstaller/ @shiftkey -/types/element-ready/ @BendingBender -/types/element-resize-event/ @rogierschouten @plgregoire -/types/elm/ @thSoft -/types/email-addresses/ @johngrimsey -/types/email-templates/ @cyrilschumacher @gurisko -/types/email-validator/ @paullessing -/types/ember/v1/ @jedmao -/types/ember/ @jedmao @bttf @dwickern @chriskrycho @theroncross -/types/ember-testing-helpers/ @chriskrycho -/types/emissary/ @vvakame -/types/emojione/ @dbrgn -/types/empower/ @vvakame -/types/emscripten/ @zakki @periklis -/types/end-of-stream/ @strax -/types/engine.io/ @KentarouTakeda -/types/engine.io-client/ @KentarouTakeda -/types/enhanced-resolve/ @e-cloud @onigoetz -/types/ent/ @rogierschouten -/types/entities/ @aliceklipper -/types/env-to-object/ @MugeSo -/types/envify/ @tkQubo -/types/enzyme/ @MarianPalkus @NoHomey @jwbay @huhuanming @MartynasZilinskas @thovden -/types/enzyme-adapter-react-15/ @tkrotoff -/types/enzyme-adapter-react-16/ @tkrotoff -/types/enzyme-to-json/ @joscha -/types/eonasdan-bootstrap-datetimepicker/ @ToastHawaii -/types/epiceditor/ @borisyankov -/types/epub/ @julien-c -/types/eq.js/ @stephenlautier -/types/errorhandler/ @santialbo -/types/es6-collections/ @rbuckton -/types/es6-error/ @LKay -/types/es6-promise/ @fdecampredon @vvakame -/types/es6-promisify/ @harryshipton -/types/es6-shim/ @rbuckton -/types/es6-weak-map/ @pine -/types/escape-html/ @elisee -/types/escape-latex/ @olsio -/types/escape-string-regexp/ @kruncher -/types/escodegen/ @simondel -/types/eslint-plugin-prettier/ @ikatyang -/types/esprima/v2/ @teppeis @RReverser -/types/esprima/ @teppeis @RReverser @peter-scott -/types/esprima-walk/ @tswaters -/types/esri-leaflet/ @strajuser -/types/esri-leaflet-geocoder/ @BendingBender -/types/estraverse/ @sanex3339 -/types/estree/ @RReverser -/types/etag/ @BendingBender -/types/ethjs-signer/ @doppio -/types/eureka-js-client/ @Schnillz -/types/evaporate/ @kookster @chrisrhoden -/types/event-emitter/ @LKay -/types/event-kit/v1/ @enlight -/types/event-kit/ @GlenCFL -/types/event-loop-lag/ @rogierschouten -/types/event-stream/ @flcdrg -/types/event-to-promise/ @flying-sheep -/types/evernote/ @corps -/types/exceljs/ @rogierschouten @alitaheri -/types/execa/ @douglasduteil @BendingBender -/types/exit/ @Bartvds -/types/exit-hook/ @BendingBender -/types/exorcist/ @TeamworkGuy2 -/types/expect/ @jmreidy @merrywhether -/types/expect.js/ @teppeis -/types/expectations/ @vvakame -/types/expr-eval/ @connor4312 -/types/express/ @borisyankov -/types/express-brute/ @cyrilschumacher -/types/express-brute-memcached/ @cyrilschumacher -/types/express-brute-mongo/ @cyrilschumacher -/types/express-brute-redis/ @scottharwell -/types/express-debug/ @federicobond -/types/express-domain-middleware/ @hookclaw -/types/express-enforces-ssl/ @kevinstubbs -/types/express-fileupload/ @Naktibalda -/types/express-flash-2/ @mathsalmi -/types/express-formidable/ @tdolsen -/types/express-graphql/ @isman-usoh @nitintutlani @hubel -/types/express-handlebars/ @stpettersens @yhaskell -/types/express-jwt/ @wokim @kacepe @Sl1MBoy -/types/express-less/ @xieyubo -/types/express-minify/ @borislavjivkov -/types/express-mongo-sanitize/ @ericbyers -/types/express-mung/ @cyrilschumacher -/types/express-myconnection/ @Cellule -/types/express-mysql-session/ @Akim95 -/types/express-openapi/ @mugeso -/types/express-partials/ @jt000 -/types/express-rate-limit/ @cyrilschumacher -/types/express-route-fs/ @kripod -/types/express-sanitized/ @cjbarth -/types/express-serve-static-core/ @borisyankov @19majkel94 @kacepe -/types/express-session/ @horiuchi -/types/express-unless/ @wokim -/types/extend/ @reppners -/types/extended-listbox/ @code-chris -/types/extjs/ @brian428 -/types/extract-stack/ @BendingBender -/types/extract-text-webpack-plugin/ @flying-sheep @katyo -/types/extract-zip/ @mizunashi-mana -/types/eyes/ @brynbellomy -/types/f1/ @neolwc -/types/fabric/ @oklemencic @joewashear007 @mrand01 -/types/facebook-js-sdk/ @amritk -/types/facebook-pixel/ @noctishsu -/types/faker/v3/ @Kuniwak -/types/faker/ @bensw @basp @Kuniwak -/types/falcor/ @Quramy -/types/falcor-express/ @Quramy -/types/falcor-http-datasource/ @Quramy -/types/falcor-json-graph/ @Quramy -/types/falcor-router/ @Quramy @cdhgee -/types/famous/ @borisvasilenko -/types/fancybox/ @borisyankov -/types/farbtastic/ @EnableSoftware -/types/fast-diff/ @djrenren -/types/fast-levenshtein/ @mizunashi-mana -/types/fast-list/ @BendingBender -/types/fast-stats/ @rogierschouten -/types/fastclick/ @shinnn -/types/favico.js/ @drowse314-dev-ymat -/types/fb/ @JoshStrobl -/types/fbemitter/ @kmxz -/types/featherlight/ @xStrom -/types/fecha/ @9y5 -/types/feedme/ @codeanimal -/types/fetch-jsonp/ @tkrotoff -/types/fetch-mock/ @asvetliakov @tamird @merrywhether @chrissinclair -/types/fetch.io/ @newraina -/types/ffi/ @loyd -/types/ffmpeg-static/ @iamstevetran -/types/ffprobe-static/ @iamstevetran -/types/fibers/ @soywiz -/types/figures/ @BendingBender -/types/file-exists/ @BendingBender -/types/file-saver/ @cyrilschumacher @DaIgeb -/types/file-type/ @tcaesvk @BendingBender -/types/file-url/ @coderslagoon -/types/filenamify/ @rokt33r -/types/filesize/ @GiedriusGrabauskas -/types/fill-pdf/ @westy92 -/types/finalhandler/ @chrootsu -/types/finch/ @DavidSichau -/types/find-up/ @BendingBender -/types/findup-sync/ @Bartvds @ngbrown -/types/fingerprintjs/ @zaneli -/types/fingerprintjs2/ @curtstate -/types/firebase/ @vbortone @dsebastien @ciekawy -/types/firebase-client/ @fpsscarecrow -/types/firebase-token-generator/ @dotdotcommadot -/types/firebird/ @karak -/types/firefox/ @vvakame -/types/firmata/ @troywweber7 -/types/first-mate/v4/ @enlight -/types/first-mate/ @GlenCFL -/types/fixed-data-table/ @pepaar @stephenjelfs -/types/flat/ @chrootsu -/types/flexslider/ @diullei -/types/flickity/ @clmcgrath @wagich -/types/flight/ @jonathanhedren -/types/flightplan/ @borislavjivkov -/types/flipsnap/ @kubosho @gsino @mayuki -/types/flot/ @burlandm @Anticom -/types/flowjs/ @ryan10132 -/types/fluent-ffmpeg/ @tcaesvk @DingWeizhe -/types/flux/ @stkb @GiedriusGrabauskas -/types/flux-standard-action/ @tkqubo @zimme -/types/fluxxor/ @mrk21 -/types/fm-websync/ @markusmauch -/types/fontfaceobserver/ @RandScullard -/types/fontoxml/ @rolandzwaga -/types/forever-monitor/ @shuntksh -/types/forge-di/ @adamcarr -/types/form-data/ @soywiz @leonyu @BendingBender -/types/form-serializer/ @flqw -/types/format-unicorn/ @kruncher -/types/formidable/ @Nemo157 -/types/forwarded/ @BendingBender -/types/fossil-delta/ @endel -/types/foundation/ @borisyankov -/types/foundation-sites/ @samvloeberghs -/types/fpsmeter/ @alampros -/types/framebus/ @kbukum -/types/freedom/ @jpevarnek -/types/freeport/ @atd-schubert -/types/fresh/ @BendingBender -/types/friendly-errors-webpack-plugin/ @bahlo -/types/frisby/ @johnny4753 -/types/from/ @Bartvds -/types/from2/ @BendingBender -/types/fromjs/ @glenndierckx -/types/fromnow/ @marinewater -/types/fs-ext/ @OguzhanE -/types/fs-extra/ @alan-agius4 @midknight41 @shiftkey @mees- -/types/fs-extra-promise/ @midknight41 @jasonswearingen @HiromiShikata -/types/fs-extra-promise-es6/ @midknight41 @jasonswearingen @geoffreak @HiromiShikata -/types/fs-finder/ @misak113 -/types/fs-mock/ @rogierschouten -/types/fs-promise/ @tarruda -/types/fs-readdir-recursive/ @pscanf -/types/fsevents/ @BendingBender -/types/ftdomdelegate/ @dotnetnerd -/types/ftp/ @rogierschouten -/types/ftpd/ @rogierschouten -/types/fullcalendar/v1/ @nestalk @hasellcamargo -/types/fullcalendar/ @nestalk @hasellcamargo @panic175 @hmil -/types/fullname/ @kayahr -/types/fuse/ @smrq -/types/fusioncharts/ @rohitkr @shivarajkv -/types/fuzzaldrin/ @mhegazy -/types/fuzzaldrin-plus/ @jeancroy @jkillian -/types/fuzzyset/ @lgrignon -/types/fxn/ @charrondev -/types/gae.channel.api/ @vvakame -/types/gamequery/ @Laubi -/types/gandi-livedns/ @xstoudi -/types/gapi/ @sgtfrankieboy -/types/gapi.analytics/ @gatsbimantico -/types/gapi.auth2/ @flawless2011 -/types/gapi.calendar/ @tkrotoff -/types/gapi.client/ @Bolisov -/types/gapi.client.acceleratedmobilepageurl/ @Bolisov -/types/gapi.client.adexchangebuyer/ @Bolisov -/types/gapi.client.adexchangebuyer2/ @Bolisov -/types/gapi.client.adexchangeseller/ @Bolisov -/types/gapi.client.adexperiencereport/ @Bolisov -/types/gapi.client.admin/ @Bolisov -/types/gapi.client.adsense/ @Bolisov -/types/gapi.client.adsensehost/ @Bolisov -/types/gapi.client.analytics/ @Bolisov -/types/gapi.client.analyticsreporting/ @Bolisov -/types/gapi.client.androiddeviceprovisioning/ @Bolisov -/types/gapi.client.androidenterprise/ @Bolisov -/types/gapi.client.androidmanagement/ @Bolisov -/types/gapi.client.androidpublisher/ @Bolisov -/types/gapi.client.appengine/ @Bolisov -/types/gapi.client.appsactivity/ @Bolisov -/types/gapi.client.appstate/ @Bolisov -/types/gapi.client.bigquery/ @Bolisov -/types/gapi.client.bigquerydatatransfer/ @Bolisov -/types/gapi.client.blogger/ @Bolisov -/types/gapi.client.books/ @Bolisov -/types/gapi.client.calendar/ @Bolisov -/types/gapi.client.civicinfo/ @Bolisov -/types/gapi.client.classroom/ @Bolisov -/types/gapi.client.cloudbilling/ @Bolisov -/types/gapi.client.cloudbuild/ @Bolisov -/types/gapi.client.clouddebugger/ @Bolisov -/types/gapi.client.clouderrorreporting/ @Bolisov -/types/gapi.client.cloudfunctions/ @Bolisov -/types/gapi.client.cloudiot/ @Bolisov -/types/gapi.client.cloudkms/ @Bolisov -/types/gapi.client.cloudmonitoring/ @Bolisov -/types/gapi.client.cloudresourcemanager/ @Bolisov -/types/gapi.client.cloudtasks/ @Bolisov -/types/gapi.client.cloudtrace/ @Bolisov -/types/gapi.client.clouduseraccounts/ @Bolisov -/types/gapi.client.compute/ @Bolisov -/types/gapi.client.consumersurveys/ @Bolisov -/types/gapi.client.container/ @Bolisov -/types/gapi.client.content/ @Bolisov -/types/gapi.client.customsearch/ @Bolisov -/types/gapi.client.dataflow/ @Bolisov -/types/gapi.client.dataproc/ @Bolisov -/types/gapi.client.datastore/ @Bolisov -/types/gapi.client.deploymentmanager/ @Bolisov -/types/gapi.client.dfareporting/ @Bolisov -/types/gapi.client.discovery/ @Bolisov -/types/gapi.client.dlp/ @Bolisov -/types/gapi.client.dns/ @Bolisov -/types/gapi.client.doubleclickbidmanager/ @Bolisov -/types/gapi.client.doubleclicksearch/ @Bolisov -/types/gapi.client.drive/ @Bolisov -/types/gapi.client.firebasedynamiclinks/ @Bolisov -/types/gapi.client.firebaseremoteconfig/ @Bolisov -/types/gapi.client.firebaserules/ @Bolisov -/types/gapi.client.firestore/ @Bolisov -/types/gapi.client.fitness/ @Bolisov -/types/gapi.client.fusiontables/ @Bolisov -/types/gapi.client.games/ @Bolisov -/types/gapi.client.gamesconfiguration/ @Bolisov -/types/gapi.client.gamesmanagement/ @Bolisov -/types/gapi.client.genomics/ @Bolisov -/types/gapi.client.gmail/ @Bolisov -/types/gapi.client.groupsmigration/ @Bolisov -/types/gapi.client.groupssettings/ @Bolisov -/types/gapi.client.iam/ @Bolisov -/types/gapi.client.identitytoolkit/ @Bolisov -/types/gapi.client.kgsearch/ @Bolisov -/types/gapi.client.language/ @Bolisov -/types/gapi.client.licensing/ @Bolisov -/types/gapi.client.logging/ @Bolisov -/types/gapi.client.manufacturers/ @Bolisov -/types/gapi.client.mirror/ @Bolisov -/types/gapi.client.ml/ @Bolisov -/types/gapi.client.monitoring/ @Bolisov -/types/gapi.client.oauth2/ @Bolisov -/types/gapi.client.oslogin/ @Bolisov -/types/gapi.client.pagespeedonline/ @Bolisov -/types/gapi.client.partners/ @Bolisov -/types/gapi.client.people/ @Bolisov -/types/gapi.client.playcustomapp/ @Bolisov -/types/gapi.client.playmoviespartner/ @Bolisov -/types/gapi.client.plus/ @Bolisov -/types/gapi.client.plusdomains/ @Bolisov -/types/gapi.client.prediction/ @Bolisov -/types/gapi.client.proximitybeacon/ @Bolisov -/types/gapi.client.pubsub/ @Bolisov -/types/gapi.client.qpxexpress/ @Bolisov -/types/gapi.client.reseller/ @Bolisov -/types/gapi.client.resourceviews/ @Bolisov -/types/gapi.client.runtimeconfig/ @Bolisov -/types/gapi.client.safebrowsing/ @Bolisov -/types/gapi.client.script/ @Bolisov -/types/gapi.client.searchconsole/ @Bolisov -/types/gapi.client.servicecontrol/ @Bolisov -/types/gapi.client.servicemanagement/ @Bolisov -/types/gapi.client.serviceuser/ @Bolisov -/types/gapi.client.sheets/ @Bolisov -/types/gapi.client.siteverification/ @Bolisov -/types/gapi.client.slides/ @Bolisov -/types/gapi.client.sourcerepo/ @Bolisov -/types/gapi.client.spanner/ @Bolisov -/types/gapi.client.spectrum/ @Bolisov -/types/gapi.client.speech/ @Bolisov -/types/gapi.client.sqladmin/ @Bolisov -/types/gapi.client.storage/ @Bolisov -/types/gapi.client.storagetransfer/ @Bolisov -/types/gapi.client.streetviewpublish/ @Bolisov -/types/gapi.client.surveys/ @Bolisov -/types/gapi.client.tagmanager/ @Bolisov -/types/gapi.client.taskqueue/ @Bolisov -/types/gapi.client.tasks/ @Bolisov -/types/gapi.client.testing/ @Bolisov -/types/gapi.client.toolresults/ @Bolisov -/types/gapi.client.translate/ @Bolisov -/types/gapi.client.urlshortener/ @Bolisov -/types/gapi.client.vault/ @Bolisov -/types/gapi.client.videointelligence/ @Bolisov -/types/gapi.client.vision/ @Bolisov -/types/gapi.client.webfonts/ @Bolisov -/types/gapi.client.webmasters/ @Bolisov -/types/gapi.client.youtube/ @Bolisov -/types/gapi.client.youtubeanalytics/ @Bolisov -/types/gapi.client.youtubereporting/ @Bolisov -/types/gapi.drive/ @baxtersa -/types/gapi.pagespeedonline/ @sgtfrankieboy -/types/gapi.people/ @tkrotoff -/types/gapi.plus/ @tkrotoff -/types/gapi.translate/ @sgtfrankieboy -/types/gapi.urlshortener/ @sgtfrankieboy -/types/gapi.youtube/ @sgtfrankieboy -/types/gapi.youtubeanalytics/ @sgtfrankieboy -/types/gaussian/ @scttcper -/types/gen-readlines/ @CodeAnimal -/types/generic-functions/ @stpettersens -/types/generic-pool/ @jerray -/types/gently/ @bonnici -/types/geodesy/ @DenisCarriere @HandyG52 -/types/geojson/ @cobster -/types/geojson2osm/ @DenisCarriere -/types/geokdbush/ @DenisCarriere -/types/geolib/ @vvenegasv @dotnetpart -/types/geometry-dom/ @nakakura -/types/geopattern/ @Gaelan -/types/get-node-dimensions/ @vincekovacs -/types/get-stdin/ @DanielRosenwasser -/types/get-stream/ @douglasduteil @BendingBender -/types/getos/ @BendingBender -/types/gettext.js/ @jucrouzet -/types/gijgo/ @atatanasov -/types/giraffe/ @darthapo -/types/git/ @vvakame -/types/git-config/ @stpettersens -/types/git-remote-origin-url/ @janslow -/types/gl-matrix/ @mattijskneppers @tatchx @nbabanov @auzmartist -/types/gldatepicker/ @qcz -/types/glidejs/ @milanjaros -/types/glob/ @vvakame @voy -/types/glob-base/ @alan-agius4 -/types/glob-expand/ @vvakame -/types/glob-stream/ @Bartvds -/types/global-tunnel-ng/ @BendingBender -/types/globalize/ @gcastre @afromogli -/types/globalize-compiler/ @iclanton -/types/globby/ @douglasduteil @ikatyang -/types/globule/ @durad -/types/gm/ @ChaosinaCan @maartenvanvliet -/types/go/ @NorthwoodsSoftware -/types/google-adwords-scripts/ @jafaircl -/types/google-apps-script/ @motemen -/types/google-cloud__datastore/ @beaulac -/types/google-cloud__storage/ @blove @nbperry -/types/google-earth/ @icholy -/types/google-images/ @dolanmiu -/types/google-libphonenumber/ @leonyu -/types/google-map-react/ @honzabrecka -/types/google-maps/ @DeividasBakanas @GiedriusGrabauskas -/types/google-protobuf/ @marcuslongmuir -/types/google.feeds/ @RodneyJT -/types/google.fonts/ @danmarshall -/types/google.geolocation/ @vbortone -/types/google.picker/ @grapswiz -/types/google.visualization/ @danludwig @gmoore-sjcorg @danmana @mlcheng @IvanBisultanov @glebm -/types/googlemaps/ @cgwrench @nertzy @xaolas @mrmcnerd @martincostello -/types/googlemaps.infobubble/ @Dashue -/types/got/ @BendingBender @LinusU -/types/graceful-fs/v2/ @Bartvds -/types/graceful-fs/ @Bartvds @BendingBender -/types/graham_scan/ @hberntsen -/types/graphene-pk11/ @microshine -/types/graphite-udp/ @EricByers -/types/graphql/ @TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet @IvanGoncharov @DxCx -/types/graphql-date/ @enaeseth -/types/graphql-relay/ @arvitaly @nitintutlani @Grelinfo -/types/graphql-type-json/ @schfkt -/types/graphviz/ @mhfrantz -/types/gravatar/ @denis-sokolov -/types/gravatar-url/ @ivangabriele -/types/greasemonkey/ @kotas -/types/grecaptcha/ @DethAriel -/types/gregorian-calendar/ @cwalv -/types/griddle-react/ @hodavidhara -/types/gridfs-stream/ @liorm -/types/gridstack/ @PascalSenn @ZoolWay @Sl1MBoy -/types/grunt/ @jeffmay @basarat -/types/gsap/ @codebelt @ProbablePrime -/types/gulp/ @GiedriusGrabauskas -/types/gulp-angular-templatecache/ @amanmahajan7 -/types/gulp-babel/ @AyaMorisawa -/types/gulp-batch/ @alvarollmenezes @vizeke -/types/gulp-cache/ @aravindarun -/types/gulp-cached/ @tomc974 -/types/gulp-changed/ @tomc974 -/types/gulp-cheerio/ @tkQubo -/types/gulp-coffeeify/ @tkQubo -/types/gulp-coffeelint/ @tkQubo -/types/gulp-concat/ @k-kagurazaka -/types/gulp-connect/ @andrewiggins -/types/gulp-copy/ @aravindarun -/types/gulp-csso/ @tkrotoff -/types/gulp-debug/ @tkrotoff -/types/gulp-diff/ @ikatyang -/types/gulp-dtsm/ @AyaMorisawa -/types/gulp-espower/ @tkQubo -/types/gulp-file-include/ @DanielRosenwasser -/types/gulp-filter/ @tkrotoff -/types/gulp-flatten/ @k-kagurazaka -/types/gulp-gzip/ @tkQubo -/types/gulp-help/ @tkQubo -/types/gulp-help-doc/ @Mikhus -/types/gulp-html-replace/ @peterjuras -/types/gulp-htmlmin/ @tkrotoff -/types/gulp-if/ @joeskeen -/types/gulp-inject/ @k-kagurazaka -/types/gulp-insert/ @shantmarouti -/types/gulp-install/ @peterjuras -/types/gulp-jade/ @berwyn -/types/gulp-jasmine-browser/ @tkrotoff -/types/gulp-json-editor/ @peterjuras -/types/gulp-jspm/ @peterjuras -/types/gulp-less/ @k-kagurazaka -/types/gulp-load-plugins/ @joeskeen -/types/gulp-minify-css/ @k-kagurazaka -/types/gulp-minify-html/ @tkrotoff -/types/gulp-modernizr/ @remisery -/types/gulp-newer/ @tomc974 -/types/gulp-ng-annotate/ @tkQubo -/types/gulp-nodemon/ @tkQubo -/types/gulp-plumber/ @joeskeen -/types/gulp-protractor/ @tkrotoff -/types/gulp-pug/ @remisery -/types/gulp-remember/ @tomc974 -/types/gulp-rev/ @tkrotoff -/types/gulp-rev-replace/ @tkrotoff -/types/gulp-ruby-sass/ @agnislav -/types/gulp-shell/ @tkqubo -/types/gulp-size/ @tkrotoff @remisery -/types/gulp-sort/ @joeskeen -/types/gulp-strip-debug/ @peterjuras -/types/gulp-svg-sprite/ @tkqubo -/types/gulp-task-listing/ @joeskeen -/types/gulp-tsd/ @k-kagurazaka -/types/gulp-uglify/ @ChristopherHaws @leonard-thieu -/types/gulp-useref/ @tkrotoff -/types/gulp-util/ @jedmao -/types/gulp-watch/ @tkrotoff -/types/gulp-zip/ @dudeofawesome -/types/gzip-size/ @plantain-00 -/types/h2o2/ @jasonswearingen @AJamesPhillips -/types/halfred/ @dherges -/types/halogen/ @steller -/types/hammerjs/ @milkisevil @codler -/types/handlebars/ @borisyankov -/types/handsontable/ @panesofglass @astegmaier -/types/hapi/v8/ @jasonswearingen -/types/hapi/v12/ @jasonswearingen -/types/hapi/v15/ @jasonswearingen -/types/hapi/ @jasonswearingen @AJamesPhillips -/types/hapi-auth-basic/ @AJamesPhillips -/types/hapi-auth-jwt2/ @warrenseymour -/types/hapi-decorators/ @kenhowardpdx -/types/har-format/ @micmro -/types/hard-rejection/ @BendingBender -/types/harmony-proxy/ @remojansen -/types/has-ansi/ @BendingBender -/types/hash-file/ @HiromiShikata -/types/hash-stream/ @BendingBender -/types/hasha/ @BendgingBender -/types/hasher/ @flyfishMT -/types/hashids/ @pocesar -/types/hashmap/ @outring -/types/haversine/ @screendriver -/types/he/ @sedwards2009 -/types/headroom/ @hakubo -/types/heap/ @ryan10132 -/types/heatmap.js/ @lookuptable -/types/hedron/ @dborysov -/types/hellojs/ @PavelPZ @vuorinem -/types/hellosign-embedded/ @xt0rted -/types/helmet/ @cyrilschumacher @EvanHahn @bluehatbrit -/types/heredatalens/ @denyo -/types/heremaps/ @Josh-ES @denyo -/types/heroku-logger/ @kylevogt -/types/hexo-bunyan/ @segayuu -/types/hexo-fs/ @segayuu -/types/hexo-log/ @segayuu -/types/highcharts/ @damianog @baltie @AlbertOzimek @hanssens -/types/highcharts-ng/ @scatcher -/types/highland/ @Bartvds @hgwood @iwllyu @alvis -/types/highlight.js/ @nikeee @sourrust -/types/hiredis/ @titan -/types/history/v2/ @sergey-buturlakin @ngbrown -/types/history/v3/ @sergey-buturlakin @ngbrown @LKay -/types/history/ @sergey-buturlakin @ngbrown @rokoroku -/types/history.js/ @borisyankov @gjunge -/types/hjson/ @crunchie84 -/types/hls.js/ @jgainfort -/types/hoek/ @prashaantt -/types/homeworks/ @KennethanCeyer -/types/hooker/ @misak113 -/types/hopscotch/ @pimterry @Aurimas1 -/types/howler/ @xperiments @tdukart @alien35 @nicholashza -/types/hpp/ @kryops -/types/html-entities/ @xstoudi -/types/html-minifier/ @tkrotoff -/types/html-pdf/ @westy92 -/types/html-to-text/ @erykwarren -/types/html-webpack-plugin/ @deevus @bumbleblym -/types/html-webpack-template/ @bumbleblym -/types/html2canvas/ @rwhepburn @tan9 -/types/htmlbars-inline-precompile/ @chriskrycho -/types/htmlparser2/ @staticfunction @LinusU -/types/htmltojsx/ @basarat -/types/http-assert/ @jkeylu -/types/http-aws-es/ @marcogrcr -/types/http-codes/ @mhegazy -/types/http-errors/ @tkrotoff @BendingBender -/types/http-proxy/ @SomaticIT -/types/http-proxy-middleware/ @zebMcCorkle @BendingBender -/types/http-server/ @plantain-00 -/types/http-status/ @misak113 -/types/http-status-codes/ @JoshMcCullough -/types/http-string-parser/ @pine613 -/types/httperr/ @yortus -/types/hubot/ @dirk -/types/hubspot-pace/ @borislavjivkov -/types/humane/ @jmvrbanac -/types/humanize-plus/ @DenisCarriere -/types/humanparser/ @MichalPodeszwa -/types/humps/ @nikeee -/types/hyco-ws/ @mrcabellom -/types/hyperscript/ @spacejack @jmfirth -/types/hypertext-application-language/ @maks3w -/types/hystrixjs/ @igorsechyn -/types/i18n/ @SomaticIT @FindQ -/types/i18next/v2/ @mxl @deerawan @GiedriusGrabauskas -/types/i18next/ @mxl @deerawan @GiedriusGrabauskas -/types/i18next-browser-languagedetector/v0/ @cyrilschumacher @GiedriusGrabauskas -/types/i18next-browser-languagedetector/ @cyrilschumacher @GiedriusGrabauskas -/types/i18next-express-middleware/ @cyrilschumacher -/types/i18next-node-fs-backend/ @cyrilschumacher -/types/i18next-sprintf-postprocessor/ @cyrilschumacher -/types/i18next-xhr-backend/ @jamuhl @GiedriusGrabauskas -/types/i2c-bus/ @101100 -/types/iban/ @cyrilschumacher -/types/ibm-mobilefirst/ @nacho4d -/types/ibm_db/ @agov -/types/icepick/ @ngbrown @tobico -/types/icheck/ @qcz -/types/iconv/ @delphinus35 -/types/iconv-lite/ @poelstra -/types/ids/ @3fd -/types/iframe-resizer/ @arminbaljic -/types/ignite-ui/ @IgniteUI -/types/image-size/ @elisee -/types/imagemagick/ @soywiz -/types/imagemagick-native/ @horiuchi -/types/imagemapster/ @delphinus35 -/types/images/ @DingWeizhe -/types/imagesloaded/ @coldacid @apexskier -/types/imap/ @psnider -/types/imap-simple/ @pushplay -/types/imgur-rest-api/ @lukewestby -/types/immutability-helper/ @seansfkelley -/types/impress/ @borisyankov -/types/in-range/ @DanielRosenwasser -/types/incremental-dom/ @basarat @lanthaler @vvakame -/types/indent-string/ @mhegazy -/types/inert/ @nycdotnet @AJamesPhillips -/types/inflected/ @dsci -/types/inflection/ @shiwano -/types/inherits/ @chrootsu -/types/ini/ @marcinporebski -/types/iniparser/ @chrootsu -/types/inline-css/ @philipisapain -/types/inline-style-prefixer/ @ahz @dpetrezselyova -/types/inquirer/ @tkQubo @ppathan -/types/insert-module-globals/ @leonard-thieu -/types/insight/ @vvakame -/types/integer/ @Morfent -/types/interact.js/ @dduugg @adidahiya @thasner -/types/intercom-web/ @fongandrew @salbahra -/types/intercomjs/ @spencerwi -/types/internal-ip/ @BendingBender -/types/intl/ @RagibHasin -/types/intl-messageformat/ @mhegazy -/types/intl-tel-input/ @fdnhkj @leonard-thieu -/types/into-stream/ @BendingBender -/types/intro.js/ @anahkiasen -/types/invariant/ @bennett000 -/types/inversify-devtools/ @inversify -/types/ion.rangeslider/v1/ @dduugg -/types/ion.rangeslider/ @sixinli -/types/ionic/ @spencerwi -/types/ioredis/ @chrisleck -/types/ip/ @codeanimal -/types/ip-regex/ @unindented -/types/irc/ @phillips1012 -/types/is/ @cabralRodrigo -/types/is-absolute-url/ @mhegazy -/types/is-alphanumerical/ @vutran -/types/is-archive/ @mhegazy -/types/is-array/ @pine -/types/is-binary-path/ @DanielRosenwasser -/types/is-compressed/ @mhegazy -/types/is-finite/ @mhegazy -/types/is-ip/ @coderslagoon -/types/is-my-json-valid/ @kruncher -/types/is-number/ @harryshipton -/types/is-path-cwd/ @DanielRosenwasser -/types/is-path-in-cwd/ @mhegazy -/types/is-plain-object/ @zengfenfei -/types/is-promise/ @DanielRosenwasser -/types/is-relative-url/ @mhegazy -/types/is-root/ @mhegazy -/types/is-root-path/ @mhegazy -/types/is-stream/ @me -/types/is-svg/ @BendingBender -/types/is-text-path/ @mhegazy -/types/is-url/ @RyotaMurohoshi -/types/is-url-superb/ @kryops -/types/is-windows/ @mizunashi-mana -/types/isbn-utils/ @elhaard -/types/iscroll/ @csrakowski -/types/iso-3166-2/ @sicilica -/types/iso8601-localizer/ @avielfedida -/types/isomorphic-fetch/ @toddlucas -/types/isotope-layout/ @avidenic -/types/istanbul/ @tkrotoff -/types/istanbul-lib-coverage/ @jason0x43 -/types/istanbul-lib-hook/ @jason0x43 -/types/istanbul-lib-instrument/ @jason0x43 -/types/istanbul-lib-report/ @jason0x43 -/types/istanbul-lib-source-maps/ @jason0x43 -/types/istanbul-middleware/ @hookclaw -/types/istanbul-reports/ @jason0x43 -/types/ityped/ @DanielRosenwasser -/types/ix.js/ @Igorbek -/types/jade/ @panuhorsmalahti -/types/jalaali-js/ @alitaheri -/types/japanese-holidays/ @syamatoo -/types/jasmine/ @borisyankov @theodorejb @davidparsson @gmoothart @lukas-zech-software -/types/jasmine-ajax/ @lgrignon -/types/jasmine-data_driven_tests/ @AnthonyMacKinnon -/types/jasmine-enzyme/ @bolatovumar -/types/jasmine-es6-promise-matchers/ @stephenlautier -/types/jasmine-expect/ @GeneralCss -/types/jasmine-fixture/ @craigbrett17 -/types/jasmine-given/ @shairez -/types/jasmine-jquery/ @gstamac -/types/jasmine-matchers/ @Bartvds -/types/jasmine-node/ @svi3c -/types/jasmine-promise-matchers/ @matthewjh -/types/jasmine_dom_matchers/ @devoto13 -/types/jasminewd2/ @sjelin -/types/java/ @jimlloyd @hrl7 -/types/java-applet/ @cyrilschumacher -/types/javascript-astar/ @ptlis -/types/javascript-bignum/ @sandersn -/types/javascript-obfuscator/ @sanex3339 -/types/javascript-state-machine/ @borisyankov @mdocter @MrBigDog2U @samael65535 @taoqf -/types/jbinary/ @tbureck -/types/jcanvas/ @rogierschouten -/types/jdataview/ @RReverser -/types/jdenticon/ @mtr -/types/jest/v16/ @NoHomey @jwbay -/types/jest/ @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd -/types/jest-diff/ @myabc -/types/jest-docblock/ @ikatyang -/types/jest-get-type/ @myabc -/types/jest-matcher-utils/ @myabc -/types/jest-matchers/ @joscha -/types/jest-validate/ @ikatyang -/types/jfs/ @tlaziuk -/types/jimp/ @Jack-Works -/types/jjv/ @Nemo157 -/types/jjve/ @Nemo157 -/types/jmespath/ @pushplay -/types/jodata/ @cgwrench -/types/johnny-five/ @nakakura -/types/joi/v6/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW -/types/joi/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku -/types/joigoose/ @boothwhack -/types/jointjs/ @areel @DavidDurman @DenEwout @CaselIT @ChrisMoran -/types/jpeg-js/ @DanielRosenwasser -/types/jpm/ @github-account-because-they-want-it -/types/jqgrid/ @lokeshpeta -/types/jqrangeslider/ @qcz -/types/jquery/v1/ @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @DickvdBrink @King2500 @leonard-thieu -/types/jquery/v2/ @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @DickvdBrink @King2500 @leonard-thieu -/types/jquery/ @leonard-thieu @borisyankov @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @johnnyreilly @DickvdBrink @King2500 -/types/jquery-ajax-chain/ @humana-fragilitas -/types/jquery-alertable/ @stever -/types/jquery-backstretch/ @dkulyk -/types/jquery-cropbox/ @PerKastman -/types/jquery-deparam/ @patsissons -/types/jquery-easy-loading/ @delphinus35 -/types/jquery-editable-select/ @baywet -/types/jquery-fullscreen/ @bgrieder -/types/jquery-galleria/ @rimig -/types/jquery-handsontable/ @intelorca -/types/jquery-jsonrpcclient/ @Ty3uK -/types/jquery-knob/ @iain8 -/types/jquery-mask-plugin/ @avidenic -/types/jquery-match-height/ @kbytesys -/types/jquery-mockjax/ @laszlojakab @vladeck -/types/jquery-mousewheel/ @xt0rted -/types/jquery-param/ @patsissons -/types/jquery-sortable/ @Seltzer -/types/jquery-steps/ @jblank @nickwph -/types/jquery-timeentry/ @marknadig -/types/jquery-toastmessage-plugin/ @joeskeen -/types/jquery-truncate-html/ @abraaoalves -/types/jquery-urlparam/ @stpettersens -/types/jquery-validation-unobtrusive/ @EnableSoftware -/types/jquery.address/ @martinduparc @mardaneus86 -/types/jquery.are-you-sure/ @jonegerton -/types/jquery.autosize/ @kingdango -/types/jquery.bbq/ @sunetos -/types/jquery.bootstrap.wizard/ @niemyjski -/types/jquery.cleditor/ @pushplay -/types/jquery.clientsidelogging/ @diullei -/types/jquery.color/ @derekcicerone -/types/jquery.colorbox/ @gjunge -/types/jquery.colorpicker/ @pushplay -/types/jquery.contextmenu/ @nvivo -/types/jquery.cookie/ @RoyGoode @BenLorantfy -/types/jquery.customselect/ @adamcoulombe -/types/jquery.cycle2/ @dnadolny -/types/jquery.dropotron/ @cyrilschumacher -/types/jquery.dynatree/ @fdecampredon -/types/jquery.elang/ @sumegizoltan -/types/jquery.fancytree/ @alphaleonis @abedi-ir -/types/jquery.filtertable/ @totpero -/types/jquery.finger/ @maxackley -/types/jquery.flagstrap/ @felipedgarcia -/types/jquery.fullscreen/ @piraveen -/types/jquery.gridster/ @jbaldwin -/types/jquery.growl/ @yeganemehr -/types/jquery.highlight-bartaz/ @Pro -/types/jquery.jnotify/ @jamescurran -/types/jquery.joyride/ @vbortone -/types/jquery.jsignature/ @pjmagee -/types/jquery.leanmodal/ @FinelySliced -/types/jquery.livestampjs/ @vbortone -/types/jquery.notify/ @evil-shrike -/types/jquery.notifybar/ @zaneli -/types/jquery.noty/ @kingdango @thelfensdrfer -/types/jquery.payment/ @ejsmith @johnrutherford -/types/jquery.pjax/ @lijunle -/types/jquery.placeholder/ @majorsilence @EnableSoftware -/types/jquery.pnotify/ @DavidSichau @FUNExtreme -/types/jquery.postmessage/ @lijunle -/types/jquery.prettyphoto/ @pgaske -/types/jquery.qrcode/ @danmana -/types/jquery.rateit/ @gjunge -/types/jquery.rowgrid/ @vinayak-garg -/types/jquery.scrollto/ @nestalk -/types/jquery.simplemodal/ @ForNeVeR -/types/jquery.simplepagination/ @nvivo -/types/jquery.simulate/ @derekcicerone -/types/jquery.slimscroll/ @Promact -/types/jquery.soap/ @tigerxy -/types/jquery.sortelements/ @tbureck -/types/jquery.superlink/ @niemyjski -/types/jquery.tagsmanager/ @vbortone -/types/jquery.tile/ @zaneli -/types/jquery.timepicker/ @anwarjaved -/types/jquery.timer/ @JoshStrobl -/types/jquery.tinycarousel/ @csrakowski -/types/jquery.tinyscrollbar/ @csrakowski -/types/jquery.tipsy/ @bdukes -/types/jquery.tools/ @joeskeen -/types/jquery.tooltipster/ @pjmagee @VorobeY1326 @leonard-thieu @janhi -/types/jquery.total-storage/ @JeremyCBrooks -/types/jquery.transit/ @MrBigDog2U -/types/jquery.ui.datetimepicker/ @dougajmcdonald -/types/jquery.ui.layout/ @Steve-Fenton @drarmstr -/types/jquery.uniform/ @flyfishMT -/types/jquery.validation/ @fdecampredon @johnnyreilly @avidenic -/types/jquery.watermark/ @anwarjaved -/types/jquerymobile/ @borisyankov -/types/jqueryui/ @borisyankov @johnnyreilly -/types/js-base64/ @DenisCarriere -/types/js-beautify/ @JoshuaKGoldberg @hansrwindhoff -/types/js-clipper/ @omni360 -/types/js-combinatorics/ @outring -/types/js-cookie/ @theodorejb @BendingBender -/types/js-data-angular/ @reppners -/types/js-data-http/ @reppners -/types/js-fixtures/ @kazimanzurrashid -/types/js-git/ @Bartvds -/types/js-md5/ @mwmccarthy -/types/js-quantities/ @wrummler -/types/js-schema/ @marcinporebski @roblabat -/types/js-search/ @guoyunhe -/types/js-to-java/ @skyitachi -/types/js-url/ @pine613 -/types/js-yaml/ @Bartvds @sclausen -/types/js.spec/ @mattbishop -/types/jsbn/ @Evgenus -/types/jscrollpane/ @qcz -/types/jsdeferred/ @minodisk -/types/jsdom/ @leonard-thieu -/types/jsen/ @vladeck -/types/jsend/ @CaselIT -/types/jsesc/ @Bartvds -/types/jsfl/ @soywiz -/types/jsforce/ @dolanmiu @netes -/types/jshamcrest/ @dharkness -/types/jsmockito/ @shiver-me-timbers -/types/jsnox/ @stkb @DovydasNavickas -/types/json-merge-patch/ @senyaarseniy -/types/json-patch/ @vvakame -/types/json-pointer/ @Bartvds -/types/json-rpc-ws/ @npenin @mlamp -/types/json-schema/ @bcherny -/types/json-socket/ @svi3c -/types/json-stable-stringify/ @mhfrantz -/types/json-stringify-safe/ @BendingBender -/types/json2md/ @MartynasZilinskas -/types/jsonata/ @nick121212 -/types/jsoneditor/ @alejo90 -/types/jsoneditoronline/ @vbortone -/types/jsonfile/ @dbowring -/types/jsonminify/ @no23reason -/types/jsonnet/ @hookclaw -/types/jsonp/ @surenkov -/types/jsonpath/ @horiuchi @ikatyang -/types/jsonrpc-serializer/ @Akim95 -/types/jsonstream/ @Bartvds -/types/jsonwebtoken/ @SomaticIT @danielheim -/types/jspdf/ @amberjs -/types/jsplumb/ @shearnie -/types/jsqrcode/ @lordazzi -/types/jsrender/ @zakki -/types/jsrp/ @harryshipton -/types/jss/ @Ptival -/types/jssha/ @randombk @SrTobi -/types/jstimezonedetect/ @olamothe -/types/jstorage/ @dflor003 -/types/jstree/ @adaskothebeast -/types/jsts/ @StephaneAlie -/types/jsuite/ @darrenhillconsulting -/types/jsuri/ @coldacid @flqw -/types/jsurl/ @agorshkov23 -/types/jsx-chai/ @nupplaphil -/types/jszip/ @mzeiher @forabi -/types/jug/ @yevt -/types/jui/ @easylogic -/types/jui-core/ @easylogic -/types/jui-grid/ @easylogic -/types/jweixin/ @taoqf -/types/jwplayer/ @martinduparc @kutomer -/types/jwt-client/ @timoteoponce -/types/jwt-decode/v1/ @QuatroDevOfficial -/types/jwt-decode/ @GiedriusGrabauskas @madsmadsen -/types/jwt-simple/ @kenfdev @GaelMagnan -/types/kafka-node/ @dansitu @bkim54 @sfrooster @amiram -/types/karma/ @tkrotoff -/types/karma-chai/ @JayAndCatchFire -/types/karma-chai-sinon/ @vasek17 -/types/karma-coverage/ @tkrotoff -/types/karma-fixture/ @evictor -/types/karma-jasmine/ @michelsalib -/types/karma-webpack/ @mtraynham -/types/katex/ @mrand01 -/types/kcors/ @Xstoudi @izayoiko -/types/kdbush/ @DenisCarriere -/types/kefir/ @AyaMorisawa @HitoriSensei -/types/kendo-ui/ @telerik -/types/keyboardjs/ @vbortone @piranha771 -/types/keycloak-js/ @eppsilon -/types/keygrip/ @jkeylu -/types/keymaster/ @nitram509 -/types/keymirror/ @jfahrenkrug -/types/keypress.js/ @rcchen -/types/keysym/ @harryshipton -/types/keytar/ @miniak @shiftkey @juturu -/types/kik-browser/ @joelday -/types/klaw/ @mceachen -/types/klaw-sync/ @shiftkey -/types/knex/ @tkQubo @baronfel -/types/knex-postgis/ @vesse -/types/knockback/ @borisyankov -/types/knockout/ @EnableSoftware @BenjaminEckardt -/types/knockout-amd-helpers/ @DavidSichau -/types/knockout-secure-binding/ @pine613 -/types/knockout-transformations/ @johnnyreilly @Nemo157 -/types/knockout.deferred.updates/ @sgaliano -/types/knockout.editables/ @borisyankov -/types/knockout.es5/ @sgaliano -/types/knockout.kogrid/ @huer12 -/types/knockout.mapper/ @BMeyerKC -/types/knockout.mapping/ @borisyankov -/types/knockout.projections/ @johnnyreilly -/types/knockout.punches/ @johnnyreilly -/types/knockout.rx/ @Igorbek -/types/knockout.validation/ @danludwig -/types/knockout.viewmodel/ @oising -/types/knockstrap/ @adaskothebeast -/types/knuddels-userapps-api/ @Knuddels -/types/ko.plus/ @conficient -/types/koa/ @DavidCai1993 @jkeylu -/types/koa-basic-auth/ @Tobias4872 -/types/koa-bodyparser/ @hellopao -/types/koa-cache-control/ @pe8ter -/types/koa-compose/ @jkeylu -/types/koa-compress/ @hellopao -/types/koa-favicon/ @hellopao -/types/koa-generic-session/ @nsimmons @Ragg- -/types/koa-hbs/ @jcbmln @mudkipme -/types/koa-helmet/ @me -/types/koa-json/ @brooklyndev -/types/koa-json-error/ @mudkipme -/types/koa-jwt/ @brunokrebs -/types/koa-logger/ @geoffreak -/types/koa-logger-winston/ @stevehipwell -/types/koa-morgan/ @vesse -/types/koa-mount/ @amirsaber -/types/koa-passport/ @horiuchi -/types/koa-pino-logger/ @khell -/types/koa-pug/ @Xstoudi -/types/koa-range/ @strax -/types/koa-redis/ @nsimmons -/types/koa-route/ @migstopheles -/types/koa-router/ @hellopao @schfkt -/types/koa-send/ @pe8ter -/types/koa-session/ @kerol2r20 -/types/koa-session-minimal/ @longztian -/types/koa-static/ @hellopao -/types/koa-views/ @brooklyndev -/types/koa-websocket/ @me -/types/koa2-cors/ @xialeistudio -/types/koa__cors/ @Xstoudi @izayoiko @stevehipwell -/types/kolite/ @borisyankov -/types/konami.js/ @mareek -/types/kramed/ @tonicblue -/types/kss/ @giladgray -/types/kue/ @drudge @amiram @pc-jedi -/types/kurento-utils/ @nenadalm -/types/kuromoji/ @mzsm @kgtkr -/types/lab/ @prashaantt -/types/ladda/ @dflor003 @leemicw -/types/later/ @jasond-s -/types/latinize/ @GiedriusGrabauskas -/types/launchpad/ @rictic -/types/lazy.js/ @Bartvds -/types/lazypipe/ @tomc974 -/types/ldapjs/ @cvillemure @peterkooijmans -/types/leadfoot/ @theintern -/types/leaflet/v0/ @rgripper -/types/leaflet/ @alejo90 -/types/leaflet-areaselect/ @awallat -/types/leaflet-curve/ @onikiienko -/types/leaflet-draw/ @matt-guest @reblace @YunS-Stacy -/types/leaflet-editable/ @dalie -/types/leaflet-fullscreen/ @DenisCarriere -/types/leaflet-geocoder-mapzen/ @leezu -/types/leaflet-gpx/ @soucekv -/types/leaflet-imageoverlay-rotated/ @tkleinke -/types/leaflet-label/ @Nemo157 -/types/leaflet-polylinedecorator/ @soucekv -/types/leaflet-providers/ @BendingBender -/types/leaflet-rotatedmarker/ @robert-prib-polestar -/types/leaflet.awesome-markers/v0/ @Odrin @sebek64 -/types/leaflet.awesome-markers/ @sebek64 -/types/leaflet.fullscreen/ @wcomartin -/types/leaflet.gridlayer.googlemutant/ @ernest-rhinozeros -/types/leaflet.locatecontrol/ @DenisCarriere -/types/leaflet.markercluster/ @rimig -/types/leaflet.markercluster.layersupport/ @AsamK -/types/leaflet.pm/ @tkleinke -/types/leapmotionts/ @logotype -/types/left-pad/ @Goldsmith42 -/types/less/ @thasner @pranaygp -/types/less-middleware/ @federicobond -/types/lestate/ @thelambdaparty -/types/level-sublevel/ @basp -/types/leveldown/ @tarruda -/types/levelup/ @blittle @tarruda -/types/leven/ @jmalonzo -/types/levenshtein/ @geoffreak -/types/libpq/ @Lodin -/types/libxmljs/ @fdecampredon -/types/libxslt/ @alejo90 -/types/license-checker/ @rogierschouten -/types/lime-js/ @arthur-xavier -/types/line-by-line/ @etomsen -/types/line-reader/ @stpettersens -/types/linkify-it/ @praxxis -/types/linq4js/ @morrisjdev -/types/lls/ @borislavjivkov -/types/load-json-file/ @SamVerschueren -/types/loader-runner/ @e-cloud -/types/loader-utils/ @Perlmint -/types/lobibox/ @itboy87 -/types/local-dynamo/ @Sicilica -/types/localforage-cordovasqlitedriver/ @thgreasi -/types/localized-countries/ @coderslagoon -/types/localizejs-library/ @salbahra -/types/locate-path/ @me -/types/lockfile/v0/ @Bartvds -/types/lockfile/ @Bartvds @BendingBender -/types/lockr/ @droritos -/types/locutus/ @hookclaw -/types/lodash/v3/ @bczengel @chrootsu -/types/lodash/ @bczengel @chrootsu @stepancar @ericanderson @aj-r @ailrun @e-cloud -/types/lodash-es/ @stephenlautier -/types/lodash-webpack-plugin/ @bumbleblym -/types/lodash.add/ @bczengel @chrootsu @stepancar -/types/lodash.after/ @bczengel @chrootsu @stepancar -/types/lodash.ary/ @bczengel @chrootsu @stepancar -/types/lodash.assign/ @bczengel @chrootsu @stepancar -/types/lodash.assignin/ @bczengel @chrootsu @stepancar -/types/lodash.assigninwith/ @bczengel @chrootsu @stepancar -/types/lodash.assignwith/ @bczengel @chrootsu @stepancar -/types/lodash.at/ @bczengel @chrootsu @stepancar -/types/lodash.attempt/ @bczengel @chrootsu @stepancar -/types/lodash.before/ @bczengel @chrootsu @stepancar -/types/lodash.bind/ @bczengel @chrootsu @stepancar -/types/lodash.bindall/ @bczengel @chrootsu @stepancar -/types/lodash.bindkey/ @bczengel @chrootsu @stepancar -/types/lodash.camelcase/ @bczengel @chrootsu @stepancar -/types/lodash.capitalize/ @bczengel @chrootsu @stepancar -/types/lodash.castarray/ @bczengel @chrootsu @stepancar -/types/lodash.ceil/ @bczengel @chrootsu @stepancar -/types/lodash.chunk/ @bczengel @chrootsu @stepancar -/types/lodash.clamp/ @bczengel @chrootsu @stepancar -/types/lodash.clone/ @bczengel @chrootsu @stepancar -/types/lodash.clonedeep/ @bczengel @chrootsu @stepancar -/types/lodash.clonedeepwith/ @bczengel @chrootsu @stepancar -/types/lodash.clonewith/ @bczengel @chrootsu @stepancar -/types/lodash.compact/ @bczengel @chrootsu @stepancar -/types/lodash.concat/ @bczengel @chrootsu @stepancar -/types/lodash.cond/ @bczengel @chrootsu @stepancar -/types/lodash.constant/ @bczengel @chrootsu @stepancar -/types/lodash.countby/ @bczengel @chrootsu @stepancar -/types/lodash.create/ @bczengel @chrootsu @stepancar -/types/lodash.curry/ @bczengel @chrootsu @stepancar -/types/lodash.curryright/ @bczengel @chrootsu @stepancar -/types/lodash.debounce/ @bczengel @chrootsu @stepancar -/types/lodash.deburr/ @bczengel @chrootsu @stepancar -/types/lodash.defaults/ @bczengel @chrootsu @stepancar -/types/lodash.defaultsdeep/ @bczengel @chrootsu @stepancar -/types/lodash.defer/ @bczengel @chrootsu @stepancar -/types/lodash.delay/ @bczengel @chrootsu @stepancar -/types/lodash.difference/ @bczengel @chrootsu @stepancar -/types/lodash.differenceby/ @bczengel @chrootsu @stepancar -/types/lodash.differencewith/ @bczengel @chrootsu @stepancar -/types/lodash.divide/ @bczengel @chrootsu @stepancar -/types/lodash.drop/ @bczengel @chrootsu @stepancar -/types/lodash.dropright/ @bczengel @chrootsu @stepancar -/types/lodash.droprightwhile/ @bczengel @chrootsu @stepancar -/types/lodash.dropwhile/ @bczengel @chrootsu @stepancar -/types/lodash.endswith/ @bczengel @chrootsu @stepancar -/types/lodash.eq/ @bczengel @chrootsu @stepancar -/types/lodash.escape/ @bczengel @chrootsu @stepancar -/types/lodash.escaperegexp/ @bczengel @chrootsu @stepancar -/types/lodash.every/ @bczengel @chrootsu @stepancar -/types/lodash.fill/ @bczengel @chrootsu @stepancar -/types/lodash.filter/ @bczengel @chrootsu @stepancar -/types/lodash.find/ @bczengel @chrootsu @stepancar -/types/lodash.findindex/ @bczengel @chrootsu @stepancar -/types/lodash.findkey/ @bczengel @chrootsu @stepancar -/types/lodash.findlast/ @bczengel @chrootsu @stepancar -/types/lodash.findlastindex/ @bczengel @chrootsu @stepancar -/types/lodash.findlastkey/ @bczengel @chrootsu @stepancar -/types/lodash.first/ @bczengel @chrootsu @stepancar -/types/lodash.flatmap/ @bczengel @chrootsu @stepancar -/types/lodash.flatmapdeep/ @bczengel @chrootsu @stepancar -/types/lodash.flatmapdepth/ @bczengel @chrootsu @stepancar -/types/lodash.flatten/ @bczengel @chrootsu @stepancar -/types/lodash.flattendeep/ @bczengel @chrootsu @stepancar -/types/lodash.flattendepth/ @bczengel @chrootsu @stepancar -/types/lodash.flip/ @bczengel @chrootsu @stepancar -/types/lodash.floor/ @bczengel @chrootsu @stepancar -/types/lodash.flow/ @bczengel @chrootsu @stepancar -/types/lodash.flowright/ @bczengel @chrootsu @stepancar -/types/lodash.foreach/ @bczengel @chrootsu @stepancar -/types/lodash.foreachright/ @bczengel @chrootsu @stepancar -/types/lodash.forin/ @bczengel @chrootsu @stepancar -/types/lodash.forinright/ @bczengel @chrootsu @stepancar -/types/lodash.forown/ @bczengel @chrootsu @stepancar -/types/lodash.forownright/ @bczengel @chrootsu @stepancar -/types/lodash.frompairs/ @bczengel @chrootsu @stepancar -/types/lodash.functions/ @bczengel @chrootsu @stepancar -/types/lodash.functionsin/ @bczengel @chrootsu @stepancar -/types/lodash.get/ @bczengel @chrootsu @stepancar -/types/lodash.groupby/ @bczengel @chrootsu @stepancar -/types/lodash.gt/ @bczengel @chrootsu @stepancar -/types/lodash.gte/ @bczengel @chrootsu @stepancar -/types/lodash.has/ @bczengel @chrootsu @stepancar -/types/lodash.hasin/ @bczengel @chrootsu @stepancar -/types/lodash.head/ @bczengel @chrootsu @stepancar -/types/lodash.identity/ @bczengel @chrootsu @stepancar -/types/lodash.includes/ @bczengel @chrootsu @stepancar -/types/lodash.indexof/ @bczengel @chrootsu @stepancar -/types/lodash.initial/ @bczengel @chrootsu @stepancar -/types/lodash.inrange/ @bczengel @chrootsu @stepancar -/types/lodash.intersection/ @bczengel @chrootsu @stepancar -/types/lodash.intersectionby/ @bczengel @chrootsu @stepancar -/types/lodash.intersectionwith/ @bczengel @chrootsu @stepancar -/types/lodash.invert/ @bczengel @chrootsu @stepancar -/types/lodash.invertby/ @bczengel @chrootsu @stepancar -/types/lodash.invoke/ @bczengel @chrootsu @stepancar -/types/lodash.invokemap/ @bczengel @chrootsu @stepancar -/types/lodash.isarguments/ @bczengel @chrootsu @stepancar -/types/lodash.isarray/ @bczengel @chrootsu @stepancar -/types/lodash.isarraybuffer/ @bczengel @chrootsu @stepancar -/types/lodash.isarraylike/ @bczengel @chrootsu @stepancar -/types/lodash.isarraylikeobject/ @bczengel @chrootsu @stepancar -/types/lodash.isboolean/ @bczengel @chrootsu @stepancar -/types/lodash.isbuffer/ @bczengel @chrootsu @stepancar -/types/lodash.isdate/ @bczengel @chrootsu @stepancar -/types/lodash.iselement/ @bczengel @chrootsu @stepancar -/types/lodash.isempty/ @bczengel @chrootsu @stepancar -/types/lodash.isequal/ @bczengel @chrootsu @stepancar -/types/lodash.isequalwith/ @bczengel @chrootsu @stepancar -/types/lodash.iserror/ @bczengel @chrootsu @stepancar -/types/lodash.isfinite/ @bczengel @chrootsu @stepancar -/types/lodash.isfunction/ @bczengel @chrootsu @stepancar -/types/lodash.isinteger/ @bczengel @chrootsu @stepancar -/types/lodash.islength/ @bczengel @chrootsu @stepancar -/types/lodash.ismap/ @bczengel @chrootsu @stepancar -/types/lodash.ismatch/ @bczengel @chrootsu @stepancar -/types/lodash.ismatchwith/ @bczengel @chrootsu @stepancar -/types/lodash.isnan/ @bczengel @chrootsu @stepancar -/types/lodash.isnative/ @bczengel @chrootsu @stepancar -/types/lodash.isnil/ @bczengel @chrootsu @stepancar -/types/lodash.isnull/ @bczengel @chrootsu @stepancar -/types/lodash.isnumber/ @bczengel @chrootsu @stepancar -/types/lodash.isobject/ @bczengel @chrootsu @stepancar -/types/lodash.isobjectlike/ @bczengel @chrootsu @stepancar -/types/lodash.isplainobject/ @bczengel @chrootsu @stepancar -/types/lodash.isregexp/ @bczengel @chrootsu @stepancar -/types/lodash.issafeinteger/ @bczengel @chrootsu @stepancar -/types/lodash.isset/ @bczengel @chrootsu @stepancar -/types/lodash.isstring/ @bczengel @chrootsu @stepancar -/types/lodash.issymbol/ @bczengel @chrootsu @stepancar -/types/lodash.istypedarray/ @bczengel @chrootsu @stepancar -/types/lodash.isundefined/ @bczengel @chrootsu @stepancar -/types/lodash.isweakmap/ @bczengel @chrootsu @stepancar -/types/lodash.isweakset/ @bczengel @chrootsu @stepancar -/types/lodash.iteratee/ @bczengel @chrootsu @stepancar -/types/lodash.join/ @bczengel @chrootsu @stepancar -/types/lodash.kebabcase/ @bczengel @chrootsu @stepancar -/types/lodash.keyby/ @bczengel @chrootsu @stepancar -/types/lodash.keys/ @bczengel @chrootsu @stepancar -/types/lodash.keysin/ @bczengel @chrootsu @stepancar -/types/lodash.last/ @bczengel @chrootsu @stepancar -/types/lodash.lastindexof/ @bczengel @chrootsu @stepancar -/types/lodash.lowercase/ @bczengel @chrootsu @stepancar -/types/lodash.lowerfirst/ @bczengel @chrootsu @stepancar -/types/lodash.lt/ @bczengel @chrootsu @stepancar -/types/lodash.lte/ @bczengel @chrootsu @stepancar -/types/lodash.mapkeys/ @bczengel @chrootsu @stepancar -/types/lodash.mapvalues/ @bczengel @chrootsu @stepancar -/types/lodash.matches/ @bczengel @chrootsu @stepancar -/types/lodash.matchesproperty/ @bczengel @chrootsu @stepancar -/types/lodash.max/ @bczengel @chrootsu @stepancar -/types/lodash.maxby/ @bczengel @chrootsu @stepancar -/types/lodash.mean/ @bczengel @chrootsu @stepancar -/types/lodash.meanby/ @bczengel @chrootsu @stepancar -/types/lodash.memoize/ @bczengel @chrootsu @stepancar -/types/lodash.merge/ @bczengel @chrootsu @stepancar -/types/lodash.mergewith/ @bczengel @chrootsu @stepancar -/types/lodash.method/ @bczengel @chrootsu @stepancar -/types/lodash.methodof/ @bczengel @chrootsu @stepancar -/types/lodash.min/ @bczengel @chrootsu @stepancar -/types/lodash.minby/ @bczengel @chrootsu @stepancar -/types/lodash.mixin/ @bczengel @chrootsu @stepancar -/types/lodash.negate/ @bczengel @chrootsu @stepancar -/types/lodash.noop/ @bczengel @chrootsu @stepancar -/types/lodash.now/ @bczengel @chrootsu @stepancar -/types/lodash.nth/ @bczengel @chrootsu @stepancar -/types/lodash.ntharg/ @bczengel @chrootsu @stepancar -/types/lodash.omit/ @bczengel @chrootsu @stepancar -/types/lodash.omitby/ @bczengel @chrootsu @stepancar -/types/lodash.once/ @bczengel @chrootsu @stepancar -/types/lodash.orderby/ @bczengel @chrootsu @stepancar -/types/lodash.over/ @bczengel @chrootsu @stepancar -/types/lodash.overargs/ @bczengel @chrootsu @stepancar -/types/lodash.overevery/ @bczengel @chrootsu @stepancar -/types/lodash.oversome/ @bczengel @chrootsu @stepancar -/types/lodash.pad/ @bczengel @chrootsu @stepancar -/types/lodash.padend/ @bczengel @chrootsu @stepancar -/types/lodash.padstart/ @bczengel @chrootsu @stepancar -/types/lodash.parseint/ @bczengel @chrootsu @stepancar -/types/lodash.partial/ @bczengel @chrootsu @stepancar -/types/lodash.partialright/ @bczengel @chrootsu @stepancar -/types/lodash.partition/ @bczengel @chrootsu @stepancar -/types/lodash.pick/ @bczengel @chrootsu @stepancar -/types/lodash.pickby/ @bczengel @chrootsu @stepancar -/types/lodash.property/ @bczengel @chrootsu @stepancar -/types/lodash.propertyof/ @bczengel @chrootsu @stepancar -/types/lodash.pull/ @bczengel @chrootsu @stepancar -/types/lodash.pullall/ @bczengel @chrootsu @stepancar -/types/lodash.pullallby/ @bczengel @chrootsu @stepancar -/types/lodash.pullallwith/ @bczengel @chrootsu @stepancar -/types/lodash.pullat/ @bczengel @chrootsu @stepancar -/types/lodash.random/ @bczengel @chrootsu @stepancar -/types/lodash.range/ @bczengel @chrootsu @stepancar -/types/lodash.rangeright/ @bczengel @chrootsu @stepancar -/types/lodash.rearg/ @bczengel @chrootsu @stepancar -/types/lodash.reduce/ @bczengel @chrootsu @stepancar -/types/lodash.reduceright/ @bczengel @chrootsu @stepancar -/types/lodash.reject/ @bczengel @chrootsu @stepancar -/types/lodash.remove/ @bczengel @chrootsu @stepancar -/types/lodash.repeat/ @bczengel @chrootsu @stepancar -/types/lodash.replace/ @bczengel @chrootsu @stepancar -/types/lodash.rest/ @bczengel @chrootsu @stepancar -/types/lodash.result/ @bczengel @chrootsu @stepancar -/types/lodash.reverse/ @bczengel @chrootsu @stepancar -/types/lodash.round/ @bczengel @chrootsu @stepancar -/types/lodash.sample/ @bczengel @chrootsu @stepancar -/types/lodash.samplesize/ @bczengel @chrootsu @stepancar -/types/lodash.set/ @bczengel @chrootsu @stepancar -/types/lodash.setwith/ @bczengel @chrootsu @stepancar -/types/lodash.shuffle/ @bczengel @chrootsu @stepancar -/types/lodash.size/ @bczengel @chrootsu @stepancar -/types/lodash.slice/ @bczengel @chrootsu @stepancar -/types/lodash.snakecase/ @bczengel @chrootsu @stepancar -/types/lodash.some/ @bczengel @chrootsu @stepancar -/types/lodash.sortby/ @bczengel @chrootsu @stepancar -/types/lodash.sortedindex/ @bczengel @chrootsu @stepancar -/types/lodash.sortedindexby/ @bczengel @chrootsu @stepancar -/types/lodash.sortedindexof/ @bczengel @chrootsu @stepancar -/types/lodash.sortedlastindex/ @bczengel @chrootsu @stepancar -/types/lodash.sortedlastindexby/ @bczengel @chrootsu @stepancar -/types/lodash.sortedlastindexof/ @bczengel @chrootsu @stepancar -/types/lodash.sorteduniq/ @bczengel @chrootsu @stepancar -/types/lodash.sorteduniqby/ @bczengel @chrootsu @stepancar -/types/lodash.split/ @bczengel @chrootsu @stepancar -/types/lodash.spread/ @bczengel @chrootsu @stepancar -/types/lodash.startcase/ @bczengel @chrootsu @stepancar -/types/lodash.startswith/ @bczengel @chrootsu @stepancar -/types/lodash.subtract/ @bczengel @chrootsu @stepancar -/types/lodash.sum/ @bczengel @chrootsu @stepancar -/types/lodash.sumby/ @bczengel @chrootsu @stepancar -/types/lodash.tail/ @bczengel @chrootsu @stepancar -/types/lodash.take/ @bczengel @chrootsu @stepancar -/types/lodash.takeright/ @bczengel @chrootsu @stepancar -/types/lodash.takerightwhile/ @bczengel @chrootsu @stepancar -/types/lodash.takewhile/ @bczengel @chrootsu @stepancar -/types/lodash.template/ @bczengel @chrootsu @stepancar -/types/lodash.throttle/ @bczengel @chrootsu @stepancar -/types/lodash.times/ @bczengel @chrootsu @stepancar -/types/lodash.toarray/ @bczengel @chrootsu @stepancar -/types/lodash.tofinite/ @bczengel @chrootsu @stepancar -/types/lodash.tointeger/ @bczengel @chrootsu @stepancar -/types/lodash.tolength/ @bczengel @chrootsu @stepancar -/types/lodash.tolower/ @bczengel @chrootsu @stepancar -/types/lodash.tonumber/ @bczengel @chrootsu @stepancar -/types/lodash.topairs/ @bczengel @chrootsu @stepancar -/types/lodash.topairsin/ @bczengel @chrootsu @stepancar -/types/lodash.topath/ @bczengel @chrootsu @stepancar -/types/lodash.toplainobject/ @bczengel @chrootsu @stepancar -/types/lodash.tosafeinteger/ @bczengel @chrootsu @stepancar -/types/lodash.tostring/ @bczengel @chrootsu @stepancar -/types/lodash.toupper/ @bczengel @chrootsu @stepancar -/types/lodash.transform/ @bczengel @chrootsu @stepancar -/types/lodash.trim/ @bczengel @chrootsu @stepancar -/types/lodash.trimend/ @bczengel @chrootsu @stepancar -/types/lodash.trimstart/ @bczengel @chrootsu @stepancar -/types/lodash.truncate/ @bczengel @chrootsu @stepancar -/types/lodash.unary/ @bczengel @chrootsu @stepancar -/types/lodash.unescape/ @bczengel @chrootsu @stepancar -/types/lodash.union/ @bczengel @chrootsu @stepancar -/types/lodash.unionby/ @bczengel @chrootsu @stepancar -/types/lodash.unionwith/ @bczengel @chrootsu @stepancar -/types/lodash.uniq/ @bczengel @chrootsu @stepancar -/types/lodash.uniqby/ @bczengel @chrootsu @stepancar -/types/lodash.uniqueid/ @bczengel @chrootsu @stepancar -/types/lodash.uniqwith/ @bczengel @chrootsu @stepancar -/types/lodash.unset/ @bczengel @chrootsu @stepancar -/types/lodash.unzip/ @bczengel @chrootsu @stepancar -/types/lodash.unzipwith/ @bczengel @chrootsu @stepancar -/types/lodash.update/ @bczengel @chrootsu @stepancar -/types/lodash.updatewith/ @bczengel @chrootsu @stepancar -/types/lodash.uppercase/ @bczengel @chrootsu @stepancar -/types/lodash.upperfirst/ @bczengel @chrootsu @stepancar -/types/lodash.values/ @bczengel @chrootsu @stepancar -/types/lodash.valuesin/ @bczengel @chrootsu @stepancar -/types/lodash.without/ @bczengel @chrootsu @stepancar -/types/lodash.words/ @bczengel @chrootsu @stepancar -/types/lodash.wrap/ @bczengel @chrootsu @stepancar -/types/lodash.xor/ @bczengel @chrootsu @stepancar -/types/lodash.xorby/ @bczengel @chrootsu @stepancar -/types/lodash.xorwith/ @bczengel @chrootsu @stepancar -/types/lodash.zip/ @bczengel @chrootsu @stepancar -/types/lodash.zipobject/ @bczengel @chrootsu @stepancar -/types/lodash.zipobjectdeep/ @bczengel @chrootsu @stepancar -/types/lodash.zipwith/ @bczengel @chrootsu @stepancar -/types/log-symbols/ @BendingBender -/types/log-update/ @BendingBender -/types/log4javascript/ @Ritzlgrmft -/types/logat/ @krvikash35 -/types/logg/ @blittle -/types/loggly/ @rmartone @geoffreak -/types/loglevel/ @Pro @szmeti @screendriver -/types/logrotate-stream/ @rogierschouten -/types/lokijs/ @TeamworkGuy2 -/types/lolex/ @Nemo157 @joshuakgoldberg -/types/long/ @peterkooijmans -/types/loopback/ @kattsushi @enko @sequoia @drmikecrowe -/types/loopback-boot/ @kattsushi -/types/lorem-ipsum/ @durad -/types/lory.js/ @kubosho @milkisevil -/types/loud-rejection/ @BendingBender -/types/lovefield/ @freshp86 -/types/lowdb/ @typicode -/types/lowlight/ @NoHomey -/types/lozad/ @plantain-00 -/types/lru-cache/ @Bartvds @BendingBender -/types/lscache/ @Chris-Martinezz -/types/ltx/ @PJakcson -/types/luaparse/ @stpettersens -/types/lunr/v0/ @sebastian-lenz -/types/lunr/ @seantanly -/types/lwip/ @AyaMorisawa -/types/lz-string/ @M0ns1gn0r -/types/magic-number/ @stpettersens -/types/magicsuggest/ @leonardochaia -/types/magnet-uri/ @tlaziuk -/types/mailcheck/ @pocesar -/types/maildev/ @cyrilschumacher @zbarbuto -/types/mailgen/ @vothanhkiet @jordanfarrer -/types/mailparser/ @psnider -/types/main-bower-files/ @k-kagurazaka -/types/make-dir/ @ikatyang @BendingBender -/types/maker.js/ @danmarshall -/types/mandrill-api/ @pocesar -/types/map-obj/ @BendingBender -/types/mapbox/ @anahkiasen -/types/mapbox-gl/ @dobrud @patrickr -/types/mapbox__shelf-pack/ @Perlmint -/types/mapsjs/ @davismj -/types/mariasql/ @bennett000 -/types/markdown-it/ @rapropos -/types/markdown-it-anchor/ @seryl -/types/markdown-it-container/ @hronex -/types/marked/ @worr @BendingBender -/types/marker-animate-unobtrusive/ @viskin -/types/markerclustererplus/ @enanox @mxl -/types/markitup/ @drillbits -/types/maskedinput/ @lokeshpeta -/types/masonry-layout/ @m-a-wilson @warriorrocker -/types/massive/ @swissspidy @clarenceh -/types/match-media-mock/ @asvetliakov -/types/material-design-lite/ @bradzacher -/types/material-ui/ @ngbrown @theigor @alitaheri @herrmanno @DaIgeb @allienna @schlesingermatthias @InsidersByte @artyomsv @dan-j @minodisk -/types/materialize-css/ @eriklieben @leonyu @SinghSukhdeep -/types/math3d/ @laszlojakab -/types/mathjax/ @rolandzwaga -/types/mathjs/ @siavol -/types/matter-js/ @piranha771 -/types/maxmind/ @geoffreak -/types/mcustomscrollbar/ @flurg -/types/md5/ @arcdev1 @jprogrammer -/types/mdns/ @reppners -/types/mdurl/ @rokt33r -/types/media-typer/ @BendingBender -/types/medium-editor/ @keika299 -/types/mem/ @SamVerschueren -/types/memcached/ @KentarouTakeda -/types/memoizee/ @juanpicado -/types/memory-cache/ @jedigo @thieman -/types/memory-fs/ @e-cloud -/types/memwatch-next/ @cyrilschumacher -/types/meow/ @KnisterPeter -/types/merge-descriptors/ @danny8002 -/types/merge-stream/ @k-kagurazaka -/types/merge2/ @tkrotoff @smac89 -/types/mersenne-twister/ @KentarouTakeda -/types/meshblu/ @fnipo -/types/mess/ @Nemo157 -/types/messenger/ @derekcicerone -/types/meteor/ @barbatus @fullflavedave @orefalo @dagatsoin @birkskyum @ardatan @stefanholzapfel -/types/meteor-accounts-phone/ @DAB0mB -/types/meteor-collection-hooks/ @twastvedt -/types/meteor-jboulhous-dev/ @vangorra -/types/meteor-persistent-session/ @vangorra -/types/meteor-prime8consulting-oauth2/ @vangorra -/types/meteor-publish-composite/ @vangorra -/types/meteor-roles/ @vangorra -/types/method-override/ @santialbo -/types/methods/ @cprecioso -/types/metismenu/ @onokumus @denisname -/types/metric-suffix/ @davidm77 -/types/mfiles/ @avonwyss -/types/micro/ @kaoDev -/types/microgears/ @marcusdb -/types/micromatch/ @glen-84 -/types/microrouter/ @mathieudutour -/types/microsoft-ajax/ @pjmagee -/types/microsoft-live-connect/ @jvilk -/types/microsoft-sdk-soap/ @markusmauch -/types/microsoftteams/ @WrathOfZombies @jayongg @ydogandjiev -/types/microtime/ @vincekovacs -/types/milkcocoa/ @odangosan -/types/mime/ @jedigo @dhritzkiv -/types/mime-db/ @AJamesPhillips -/types/mime-types/ @Perlmint -/types/mimos/ @AJamesPhillips -/types/mina/ @lhk @mattanja @kant2002 -/types/minimatch/ @vvakame @shantmarouti -/types/minimist/ @Bartvds @Necroskillz @kamranayub -/types/minimist-options/ @ikatyang -/types/minipass/ @BendingBender -/types/mithril/ @spacejack @andraaspar @isiahmeadows -/types/mithril-global/ @spacejack @isiahmeadows -/types/mitm/ @alejo90 -/types/mixpanel/ @hjellek -/types/mixto/ @vvakame -/types/mkdirp/ @Bartvds -/types/mkpath/ @optical -/types/mobile-detect/ @martinmcwhorter -/types/mocha/ @kazimanzurrashid @otiai10 @jt000 @enlight -/types/mocha-phantomjs/ @ErikSchierboom -/types/mock-fs/ @Nemo157 @tkqubo -/types/mock-raf/ @djpereira -/types/mock-require/ @djpereira -/types/mockdate/ @brunolm -/types/mockery/ @jt000 -/types/modernizr/ @borisyankov @theodorejb @leonyu @lucax88x @nhardy -/types/modesl/ @neeschit -/types/moment-business/ @wonbyte -/types/moment-duration-format/ @SwintDC @TwoStone @leonard-thieu -/types/moment-jalaali/ @alitaheri -/types/moment-range/ @Burgov @wilgert @franjuan @MartynasZilinskas -/types/moment-round/ @jacobbaskin -/types/moment-timezone/ @michelsalib -/types/mongodb/ @CaselIT @alanmarcell @kikar @bitjson @dante-101 -/types/mongoose/ @simonxca @horiuchi @sindrenm @lukasz-zak -/types/mongoose-auto-increment/ @AyaMorisawa -/types/mongoose-deep-populate/ @AyaMorisawa -/types/mongoose-mock/ @jt000 -/types/mongoose-paginate/ @linusbrolin @simonxca -/types/mongoose-promise/ @simonxca -/types/mongoose-seeder/ @Crevil -/types/mongoose-sequence/ @linusbrolin -/types/mongoose-simple-random/ @rsxdalv -/types/mongoose-unique-validator/ @stevehipwell -/types/monk/ @wzr1337 -/types/moo/ @deltaidea -/types/moonjs/ @DanielRosenwasser -/types/morgan/ @staticfunction @pscanf -/types/morris.js/ @mareek @sindilevich -/types/mousetrap/ @qcz -/types/move-concurrently/ @mgroenhoff -/types/moviedb/ @basarat @0x6368656174 -/types/moxios/ @itoasuka -/types/mpromise/ @sgkim126 -/types/mri/ @shiftkey @j-f1 -/types/ms/ @danny8002 -/types/msgpack-lite/ @endel @efokschaner -/types/msgpack5/ @wokim @heycalmdown -/types/msnodesql/ @borisyankov @SomaticIT -/types/msportalfx-test/ @julioct -/types/mssql/ @jaminfarr @buzinas @mrrichar @elhaard @pkeuter -/types/mu2/ @jedigo -/types/multer/ @jt000 @DavidBR-SW @mxl @hyunseob -/types/multer-gridfs-storage/v1/ @devconcept -/types/multer-gridfs-storage/ @devconcept -/types/multer-s3/ @tcaesvk @galtalmor -/types/multi-typeof/ @mhegazy -/types/multimatch/ @stephenlautier -/types/multiparty/ @kenfdev -/types/multiplexjs/ @KamyarNazeri -/types/murmurhash-js/ @cvle -/types/murmurhash3js/ @dlee-nvisia -/types/musicmetadata/ @Xstoudi -/types/mustache/ @markashleybell -/types/mv/ @nenadalm -/types/mysql/ @wjohnsto @kacepe -/types/mz/ @ThomasHickman -/types/n3/ @phreed -/types/nano/ @timjacobi @vincekovacs -/types/nanoajax/ @nathancahill -/types/nanomsg/ @titan -/types/nanoscroller/ @zihark17 -/types/nanp/ @karn -/types/nats-hemera/ @vforv -/types/natsort/ @mgroenhoff -/types/natural/ @dmoonfire -/types/natural-sort/ @a-morales -/types/navigation/ @grahammendick -/types/navigation-react/ @grahammendick -/types/navigo/ @aersamkull -/types/nblas/ @erikgerrits -/types/nconf/ @jedigo @jmthibault -/types/ncp/ @bartvds -/types/ndarray/ @pawsong @taoqf -/types/nearley/ @deltaidea @BendingBender -/types/nedb/ @reppners @anthonynichols -/types/nedb-logger/ @thisboyiscrazy -/types/needle/v0/ @bigsan -/types/needle/v1/ @bigsan @nikeee -/types/needle/ @bigsan @nikeee @sindilevich -/types/negotiator/ @BendingBender -/types/neo4j/ @cyrilschumacher -/types/nes/ @NoHomey -/types/net-keepalive/ @hertzg -/types/netmask/ @mhfrantz -/types/nexpect/ @vvakame -/types/next/ @dru89 -/types/next-redux-wrapper/ @stevegeek -/types/ng-command/ @stephenlautier -/types/ng-cordova/ @ksachdeva -/types/ng-dialog/ @stephenlautier -/types/ng-facebook/ @Crevil -/types/ng-file-upload/ @johnnyreilly @thewarpaint -/types/ng-flow/ @ryan10132 -/types/ng-grid/ @smithkl42 @rolandzwaga @kentcooper -/types/ng-i18next/ @cyrilschumacher -/types/ng-notify/ @nzamosenchuk -/types/ng-stomp/ @lpotapczuk -/types/ngbootbox/ @stpettersens -/types/ngeohash/ @erkie -/types/ngkookies/ @martinmcwhorter -/types/ngmap/ @nkovacic -/types/ngprogress/ @martinmcwhorter -/types/ngprogress-lite/ @LukeForder -/types/ngreact/ @velveret -/types/ngstorage/ @kubiq -/types/ngtoaster/ @btesser -/types/ngwysiwyg/ @patrick-mackay -/types/nightmare/ @horiuchi @samyang-au -/types/nightwatch/ @rkavalap @schlesiger -/types/noble/ @swook @wind-rider @shantanubhadoria @lukel99 @bioball @keton -/types/nock/ @bonnici @horiuchi -/types/nodal/ @charrondev -/types/node/v6/ @WilcoBakker @inlined -/types/node/v7/ @parambirs @RobDesideri @tellnes @WilcoBakker -/types/node/ @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis -/types/node-7z/ @erkie -/types/node-array-ext/ @Beng89 -/types/node-cache/ @chrootsu @dthunell -/types/node-calendar/ @luzianz -/types/node-cleanup/ @agadar -/types/node-common-errors/ @icopp -/types/node-dir/ @panuhorsmalahti -/types/node-dogstatsd/ @chrisbobo -/types/node-emoji/ @jonestristand -/types/node-feedparser/ @cortopy -/types/node-fetch/ @torstenwerner -/types/node-fibers/ @caryhaynie -/types/node-forge/ @westy92 @flynetworks @a-k-g -/types/node-gcm/ @horiuchi -/types/node-geocoder/ @rosek86 -/types/node-getopt/ @kcauchy -/types/node-hid/ @mhegazy @ert78gb -/types/node-hue-api/ @fjmorel -/types/node-int64/ @x3cion @kevin-greene-ck -/types/node-ipc/ @arvitaly -/types/node-jsfl-runner/ @mrand01 -/types/node-json-db/ @kuzn-ilya -/types/node-mysql-wrapper/ @kataras -/types/node-notifier/ @tkQubo -/types/node-pg-migrate/ @bradleyayers -/types/node-polyglot/ @timjk -/types/node-powershell/ @rodrigoff -/types/node-ral/ @ssddi456 -/types/node-red/ @andersea -/types/node-rsa/ @alitaheri -/types/node-schedule/ @cyrilschumacher @flowpl -/types/node-slack/ @tkQubo -/types/node-snap7/ @heilingbrunner -/types/node-sprite-generator/ @Perlmint -/types/node-static/ @Morfent -/types/node-statsd/ @alexturek @convoyinc -/types/node-telegram-bot-api/ @ammuench @agadar @Dabolus -/types/node-uuid/ @jeffmay -/types/node-validator/ @kengorab -/types/node-vault/ @YuJianrong -/types/node-waves/ @stephenlautier -/types/node-wit/ @julienduf -/types/node-xmpp-client/ @PJakcson -/types/node-xmpp-core/ @PJakcson -/types/node-zookeeper-client/ @plantain-00 @jessezhang91 -/types/node_redis/ @borisyankov -/types/nodegit/ @dolanmiu -/types/nodemailer/v3/ @rogierschouten -/types/nodemailer/ @rogierschouten @dex4er -/types/nodemailer-direct-transport/ @rogierschouten -/types/nodemailer-mailgun-transport/ @otociulis -/types/nodemailer-pickup-transport/ @psnider -/types/nodemailer-ses-transport/ @westy92 -/types/nodemailer-smtp-pool/ @rogierschouten -/types/nodemailer-smtp-transport/ @rogierschouten -/types/nodemailer-stub-transport/ @cyrilschumacher -/types/nodeunit/ @jedigo -/types/noisejs/ @izmhr -/types/nomnom/ @panopticoncentral -/types/nopt/ @jbondc -/types/normalize-url/ @odin3 @BendingBender -/types/notie/ @mateusdemboski -/types/notify/ @hellochar -/types/notify.js/ @bahman616 -/types/notifyjs/ @soundTricker -/types/nouislider/v7/ @acoreyj -/types/nouislider/v8/ @bleuarg -/types/nouislider/ @bleuarg @lagaffe -/types/novnc-core/ @smithkl42 @BendingBender -/types/npm/ @SomaticIT -/types/npm-package-arg/ @mgroenhoff -/types/ns-api/ @Archcry -/types/nslog/ @unindented -/types/nsqjs/ @cezaryrk -/types/number-is-nan/ @mhegazy -/types/number-to-words/ @frederickfogerty -/types/numeral/ @vbortone -/types/numjs/ @taoqf -/types/nunjucks/ @RubenSlabbert -/types/nunjucks-date/ @kruncher -/types/nvd3/ @PjMitchell -/types/nw.gui/ @xperiments -/types/nw.js/ @alirdn -/types/o.js/ @IceOnFire @bradzacher @janhommes -/types/oauth.js/ @nobuoka -/types/oauth2-server/ @vangorra @cirick -/types/oauth2orize/ @wokim @heycalmdown @stevehipwell -/types/obelisk.js/ @bdrupieski -/types/object-assign/ @chbrown -/types/object-diff/ @rogierschouten -/types/object-hash/ @misak113 -/types/object-map/ @wolfgang42 -/types/object-path/ @pocesar -/types/object-refs/ @3fd -/types/oblo-util/ @Oblosys -/types/oboe/ @optical -/types/observe-js/ @herrmanno -/types/oclazyload/ @rolandzwaga -/types/odata/ @janhommes -/types/ofe/ @Morfent -/types/office-js/ @OfficeDev @LanceEA -/types/offline-js/ @cgwrench -/types/oibackoff/ @geoffreak -/types/oidc-token-manager/ @rosieks -/types/on-finished/ @czechboy0 @BendingBender -/types/on-headers/ @jjeffery @BendingBender -/types/once/ @denis-sokolov @BendingBender -/types/onetime/ @BendingBender -/types/oniguruma/ @smhxx -/types/onoff/ @marcel-ernst -/types/open/ @Bartvds -/types/opener/ @tikurahul -/types/openfin/ @chrisbarker -/types/openjscad/ @danmarshall -/types/openlayers/v2/ @bolhovsky -/types/openlayers/v3/ @osechet @matthiasdailey-ccri -/types/openlayers/ @osechet @wb14123 @ailrun @mylen -/types/openstack-wrapper/ @sanjaymadane -/types/opentok/ @westy92 @CatGuardian -/types/opentype.js/ @danmarshall -/types/opn/ @shinnn @SomaticIT -/types/optics-agent/ @crevil -/types/optimist/ @soywiz @chbrown -/types/optimize-css-assets-webpack-plugin/ @odnamrataizem -/types/ora/v0/ @screendriver -/types/ora/ @basarat @screendriver @BendingBender -/types/oracledb/ @Bigous -/types/orchestrator/ @tkQubo @TeamworkGuy2 -/types/orderedmap/ @bradleyayers -/types/orientjs/ @saeedtabrizi -/types/os-homedir/ @mhegazy -/types/os-locale/v1/ @AyaMorisawa @BendingBender -/types/os-locale/ @AyaMorisawa @BendingBender -/types/os-name/ @BendingBender -/types/os-tmpdir/ @mhegazy -/types/osmosis/ @jurajkocan -/types/osmtogeojson/ @tkqubo -/types/osrm/ @DenisCarriere -/types/owl.carousel/ @igorissen -/types/owlcarousel/ @dpiatkowski -/types/p-all/ @BendingBender -/types/p-any/ @BendingBender -/types/p-cancelable/ @BendingBender -/types/p-debounce/ @BendingBender -/types/p-defer/ @SamVerschueren -/types/p-do-whilst/ @BendingBender -/types/p-each-series/ @BendingBender -/types/p-event/ @BendingBender -/types/p-every/ @BendingBender -/types/p-lazy/ @BendingBender -/types/p-limit/ @BendingBender -/types/p-locate/ @BendingBender -/types/p-log/ @BendingBender -/types/p-map/ @BendingBender -/types/p-map-series/ @BendingBender -/types/p-one/ @BendingBender -/types/p-props/ @BendingBender -/types/p-queue/ @BendingBender @evanshortiss -/types/p-reduce/ @BendingBender -/types/p-reflect/ @BendingBender -/types/p-retry/ @BendingBender -/types/p-series/ @BendingBender -/types/p-settle/ @natesilva -/types/p-some/ @BendingBender -/types/p-tap/ @BendingBender -/types/p-throttle/ @BendingBender -/types/p-timeout/ @BendingBender -/types/p-try/ @BendingBender -/types/p-wait-for/ @BendingBender -/types/p-whilst/ @BendingBender -/types/p2/ @clark-stevenson -/types/packery/ @piraveen @hanssens -/types/pad/ @mhegazy -/types/paho-mqtt/ @amikhalev -/types/pako/ @cappellin @calebegg -/types/papaparse/ @torpedro @rainshen49 @jfloff -/types/paper/ @clark-stevenson -/types/paralleljs/ @jbaldwin -/types/parse/ @dpoetzsch @jaeggerr @flavionegrao -/types/parse-git-config/ @leonard-thieu -/types/parse-glob/ @glen-84 -/types/parse-link-header/ @zelein -/types/parse-mockdb/ @dpoetzsch -/types/parse-torrent/ @niieani @tlaziuk -/types/parse-torrent-file/ @tlaziuk -/types/parse-unit/ @Jack-Works -/types/parseurl/ @bomret -/types/parsimmon/ @Bartvds @mizunashi-mana @bcherny @bvanreeven @leonard-thieu -/types/passport/ @horiuchi @enaeseth -/types/passport-anonymous/ @0x6368656174 -/types/passport-beam/ @AtlasDev -/types/passport-client-cert/ @warnersean -/types/passport-discord/ @kzay -/types/passport-facebook/ @staticfunction @lucasmacosta -/types/passport-facebook-token/ @rmartone -/types/passport-github/ @yasupeke -/types/passport-github2/ @yasupeke @mthmulders -/types/passport-google-oauth/ @staticfunction -/types/passport-google-oauth2/ @bluehatbrit -/types/passport-http/ @krizalys -/types/passport-http-bearer/ @isman-usoh -/types/passport-local/ @SomaticIT -/types/passport-local-mongoose/ @linusbrolin -/types/passport-oauth2/ @pasieronen -/types/passport-oauth2-client-password/ @akaNightmare -/types/passport-saml/ @cjbarth -/types/passport-steam/ @kzay -/types/passport-strategy/ @liorm -/types/passport-twitter/ @staticfunction -/types/passport-unique-token/ @briman0094 @SomaticIT -/types/password-hash/ @mugeso -/types/password-hash-and-salt/ @alitaheri -/types/path-exists/v1/ @shiwano -/types/path-exists/ @shiwano @BendingBender -/types/path-is-absolute/ @mhegazy -/types/pathfinding/ @BNedry -/types/pathjs/ @lokeshpeta -/types/pathwatcher/v0/ @vvakame -/types/pathwatcher/ @GlenCFL -/types/pause/ @BendingBender -/types/payment/ @apare -/types/paypal-cordova-plugin/ @Justin-Credible -/types/paypal-rest-sdk/ @trainerbill -/types/pbf/ @cschwarz -/types/pdfjs-dist/ @jbaldwin -/types/pdfkit/ @erichillah -/types/pdfobject/ @nielsboogaard -/types/pebblekitjs/ @makotokw -/types/peer-dial/ @RealTYPICAL -/types/peerjs/ @nakakura -/types/pegjs/ @vvakame @SrTobi @siegebell -/types/pem/ @tony19 @DethAriel -/types/perfect-scrollbar/ @aicest @CarbonAtom -/types/persona/ @Nycto -/types/pet-finder-api/ @me -/types/pg/v6/ @pspeter3 -/types/pg/ @pspeter3 -/types/pg-connection-string/ @bradleyayers -/types/pg-ears/ @bradleyayers -/types/pg-escape/ @khell -/types/pg-pool/ @aleung -/types/pg-query-stream/ @asmarques -/types/pg-types/ @waratuman -/types/pgwmodal/ @pine613 -/types/phantom/ @horiuchi @llRandom -/types/phantomcss/ @abauzac -/types/phantomjs/ @jedhunsaker @keesey -/types/phoenix/ @mciastek -/types/phone/ @DxCx -/types/phone-formatter/ @westy92 -/types/phonegap/ @borisyankov @DickvdBrink -/types/phonegap-facebook-plugin/ @Justin-Credible -/types/phonegap-nfc/ @michaeldesigaud -/types/phonegap-plugin-push/ @fredgalvao @larrybahr -/types/phonon/ @kserin -/types/photonui/ @florentpoujol -/types/photoswipe/ @hellochar -/types/physijs/ @gyohk -/types/pi-spi/ @marcel-ernst -/types/pick-weight/ @rsxdalv -/types/pickadate/ @theodorejb @leonard-thieu -/types/picturefill/ @alaz -/types/pidusage/ @cyrilschumacher -/types/pify/ @samverschueren @mad-mike -/types/pigpio/ @manerfan -/types/pikaday/ @MidnightDesign @wake42 -/types/pikaday-time/ @Sayan751 -/types/pinkyswear/ @chances -/types/pino/v3/ @psnider -/types/pino/ @psnider @BendingBender -/types/pinterest-sdk/ @adamburmister -/types/pinyin/ @wanganjun -/types/piwik-tracker/ @lbguilherme -/types/pkijs/ @microshine -/types/platform/ @JakeH -/types/playerframework/ @ricardosabino -/types/pleasejs/ @nakakura -/types/plotly.js/ @chrisgervang @martinduparc @frederikaalund @taoqf -/types/plugapi/ @BNedry -/types/plupload/ @patrickbussmann -/types/pluralize/ @ukyo -/types/png-async/ @kanreisa -/types/pngjs/ @jason0x43 -/types/podcast/ @nikeee -/types/podium/ @AJamesPhillips -/types/point-in-polygon/ @dyst5422 @kogai -/types/polylabel/ @DenisCarriere -/types/polyline/ @Kern0 -/types/polymer/ @lgrignon @laco0416 -/types/polymer-ts/ @lgrignon -/types/popcorn/ @grapswiz -/types/portscanner/ @douglasduteil -/types/postal/ @lokeshpeta @myitcv -/types/postmark/ @benbayard -/types/pouch-redux-middleware/ @charrondev -/types/pouchdb/ @AGBrown @geppy @fredgalvao -/types/pouchdb-adapter-fruitdown/ @spaulg @geppy @fredgalvao -/types/pouchdb-adapter-http/ @spaulg @geppy @fredgalvao -/types/pouchdb-adapter-idb/ @spaulg @geppy @fredgalvao -/types/pouchdb-adapter-leveldb/ @spaulg @geppy @fredgalvao -/types/pouchdb-adapter-localstorage/ @spaulg @geppy @fredgalvao -/types/pouchdb-adapter-memory/ @spaulg @geppy @fredgalvao -/types/pouchdb-adapter-node-websql/ @spaulg @geppy @fredgalvao -/types/pouchdb-adapter-websql/ @spaulg @geppy @fredgalvao -/types/pouchdb-browser/ @spaulg @geppy @fredgalvao -/types/pouchdb-core/ @spaulg @trubit @geppy @fredgalvao @TobiasBales -/types/pouchdb-find/ @trubit -/types/pouchdb-http/ @spaulg @geppy @fredgalvao -/types/pouchdb-mapreduce/ @spaulg @geppy @fredgalvao -/types/pouchdb-node/ @spaulg @geppy @fredgalvao -/types/pouchdb-replication/ @trubit -/types/pouchdb-upsert/ @keithdmoore @hotforfeature @apolkingg8 -/types/power-assert/ @vvakame -/types/power-assert-formatter/ @vvakame -/types/precise/ @codeanimal -/types/precond/ @olsio -/types/preloadjs/ @endel -/types/prelude-ls/ @AyaMorisawa -/types/prettier/ @ikatyang -/types/pretty-bytes/ @plantain-00 -/types/pretty-format/ @ikatyang -/types/pretty-ms/ @BendingBender -/types/printf/ @AluisioASG -/types/priorityqueuejs/ @geoffreak -/types/prismjs/ @eriklieben @andrewiggins -/types/private-ip/ @coderslagoon -/types/procfs-stats/ @cyrilschumacher -/types/progress/ @sebastian-lenz -/types/progressbar/ @atd-schubert -/types/progressjs/ @zaneli -/types/proj4/ @DenisCarriere -/types/proj4leaflet/ @BendingBender -/types/project-oxford/ @scsouthw -/types/promise-dag/ @OSjoerdWie -/types/promise-pg/ @coldacid -/types/promise-polyfill/ @skysteve -/types/promise-pool/ @vilic -/types/promise.prototype.finally/ @slavik57 @BendingBender -/types/promised-temp/ @rokadias -/types/promisify-node/ @borekb -/types/promisify-supertest/ @aleung -/types/prompt-sync/ @MugeSo -/types/prompt-sync-history/ @MugeSo -/types/promptly/ @danrspencer -/types/prop-types/ @DovydasNavickas -/types/properties-reader/ @Goldsmith42 -/types/prosemirror-collab/ @bradleyayers @davidka -/types/prosemirror-commands/ @bradleyayers @davidka -/types/prosemirror-history/ @bradleyayers @davidka -/types/prosemirror-inputrules/ @bradleyayers @davidka -/types/prosemirror-keymap/ @bradleyayers @davidka -/types/prosemirror-markdown/ @bradleyayers -/types/prosemirror-menu/ @davidka -/types/prosemirror-model/ @bradleyayers @davidka -/types/prosemirror-schema-basic/ @bradleyayers @davidka -/types/prosemirror-schema-list/ @bradleyayers @davidka -/types/prosemirror-state/ @bradleyayers @davidka -/types/prosemirror-tables/ @superchu @eshvedai -/types/prosemirror-transform/ @bradleyayers @davidka -/types/prosemirror-view/ @bradleyayers @davidka -/types/protobufjs/ @panuhorsmalahti -/types/protractor-browser-logs/ @rokadias -/types/protractor-helpers/ @johncant -/types/protractor-http-mock/ @Crevil -/types/proxy-addr/ @BendingBender -/types/proxyquire/ @jt000 -/types/pty.js/ @enlight -/types/public-ip/ @BendingBender -/types/pubsub-js/ @borisyankov -/types/pug/ @TonyPythoneer @19majkel94 -/types/pulltorefreshjs/ @DanielRosenwasser -/types/pump/ @tlaziuk -/types/puppeteer/ @marvinhagemeister @cdeutsch -/types/pure-render-decorator/ @seansfkelley -/types/purl/ @danfma -/types/pusher-js/ @tkqubo -/types/pvutils/ @microshine -/types/python-shell/ @dolanmiu -/types/q/v0/ @bnemetchek @johnnyreilly -/types/q/ @bnemetchek @AndrewGaspar @johnnyreilly @mboudreau -/types/q-io/ @Bartvds -/types/q-retry/ @vilic -/types/qhistory/ @Kovensky -/types/qlik/ @RubenSlabbert @AginicX -/types/qlik-engineapi/ @konne -/types/qlik-visualizationextensions/ @konne -/types/qr-image/ @taoqf -/types/qrcode-generator/ @stefanhuber -/types/qrcode.react/ @mleko -/types/qs/ @RWander @leonyu @tehbelinda @zyml @artursvonda -/types/qtip2/ @Seltzer @leonard-thieu -/types/query-string/ @SamVerschueren @tkrotoff @huhuanming -/types/quick-lru/ @BendingBender -/types/quill/ @sumitkm @guillaume-ro-fr -/types/quixote/ @greybax -/types/qunit/v1/ @diullei -/types/qunit/ @waratuman -/types/quoted-printable/ @pushplay -/types/qwest/ @lindsayevans -/types/r-script/ @NaridaL -/types/rabbit.js/ @wokim -/types/radium/ @alexgorbatchev @nupplaphil @asvetliakov @mihe -/types/radius/ @codeanimal -/types/ramda/ @donnut @mdekrey @LiamGoodacre @mrdziuban @sbking @afharo @teves-castro @1M0reBug @hojberg @charlespwd -/types/random-js/ @pistacchio -/types/random-seed/ @endel -/types/random-string/ @stpettersens -/types/randomcolor/ @feitzi @BradyLiles -/types/range-parser/ @tlaziuk -/types/rangyinputs/ @ersimont -/types/raphael/ @CheCoxshall -/types/rappid/ @DenEwout -/types/ratelimiter/ @AyaMorisawa -/types/raty/ @terrawheat -/types/raven/ @scttcper @1999 -/types/raygun4js/ @xt0rted @BenjaminHarding -/types/rc/ @DanielRosenwasser -/types/rc-select/ @DenisTirilis -/types/rc-slider/ @mantasmarcinkus @mattoni -/types/rc-tree/ @johnnyreilly -/types/rcloader/ @panuhorsmalahti -/types/rdf-data-model/ @rubensworks -/types/rdf-js/ @rubensworks -/types/react/v15/ @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz -/types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz @richseviora -/types/react-app/ @prakarshpandey -/types/react-aria-menubutton/ @forabi @crohlfs -/types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch -/types/react-beautiful-dnd/ @varHarrie -/types/react-body-classname/ @mhegazy -/types/react-bootstrap/ @walkerburgin @vsiao @danilojrr @Batbold-Gansukh @octatone @chengsieuly @mretolaza @katbusch @vitosamson @LKay @aaronbeall -/types/react-bootstrap-date-picker/ @LKay @ssi-hu-antal-bodnar -/types/react-bootstrap-daterangepicker/ @ianks -/types/react-bootstrap-table/ @flaub @alelode @UJosue10 -/types/react-breadcrumbs/ @KostyaEsmukov -/types/react-burger-menu/ @radziksh -/types/react-calendar-timeline/ @radziksh -/types/react-chartjs-2/ @apare @FabienLavocat -/types/react-codemirror/ @velveret @rudi-c -/types/react-color/ @LKay @markspolakovs @mntdn -/types/react-copy-to-clipboard/ @mabels -/types/react-cropper/ @stepancar -/types/react-css-modules/ @KostyaEsmukov @skirsdeda -/types/react-css-transition-replace/ @LKay -/types/react-custom-scrollbars/v3/ @David-LeBlanc-git -/types/react-custom-scrollbars/ @David-LeBlanc-git @kittimiyo -/types/react-data-grid/v1/ @SupernaviX -/types/react-data-grid/ @SupernaviX @KieranPeat @martinnov92 -/types/react-datagrid/ @stephenjelfs -/types/react-datepicker/ @radziksh @andrewBalekha @smrq @Rogach @royxue -/types/react-daterange-picker/ @uncovertruth @MartynasZilinskas -/types/react-dates/ @Artur-A -/types/react-daum-postcode/ @Sa-ryong -/types/react-dnd-html5-backend/ @oizie -/types/react-document-title/ @cleverguy25 -/types/react-dom/v15/ @MartynasZilinskas -/types/react-dom/ @MartynasZilinskas -/types/react-dom-factories/ @jgoz -/types/react-dropzone/v2/ @matdube @LynxEyes @goblindegook @benbayard -/types/react-dropzone/v3/ @matdube @LynxEyes @goblindegook @benbayard @LKay -/types/react-dropzone/ @matdube @LynxEyes @goblindegook @benbayard @LKay @codeaid -/types/react-easy-chart/ @danzel -/types/react-event-listener/ @asvetliakov -/types/react-fa/ @flaub @patsissons @LKay -/types/react-facebook-login/ @apare @jankarres -/types/react-faux-dom/ @alitaheri @cleverguy25 -/types/react-file-input/ @dmitryrogozhny -/types/react-file-reader-input/ @dmitryrogozhny @alitaheri -/types/react-flatpickr/ @begincalendar -/types/react-flex/ @pushplay -/types/react-flexr/ @pushplay -/types/react-flip-move/ @jmhain -/types/react-fontawesome/ @timurrustamov @dublicator @vincaslt @gavingregory -/types/react-form/ @cameron-mcateer -/types/react-foundation/ @danielearwicker -/types/react-ga/ @telshin -/types/react-geosuggest/ @brmenchl -/types/react-gravatar/ @invliD -/types/react-grid-layout/ @abirkholz @alitaheri @ZheyangSong @andrewhathaway -/types/react-hamburger-menu/ @grzesie2k -/types/react-helmet/v4/ @evanbb @isman-usoh -/types/react-helmet/ @evanbb @isman-usoh @lith-light-g @sammkj @yuit -/types/react-highlight-words/ @mhegazy -/types/react-highlighter/ @oizie -/types/react-holder/ @isman-usoh -/types/react-hot-loader/ @jacekjagiello -/types/react-i18next/v1/ @KostyaEsmukov -/types/react-i18next/ @GiedriusGrabauskas -/types/react-icon-base/ @apare @LKay -/types/react-icons/ @apare @johnnyreilly @LKay -/types/react-imageloader/ @stephenjelfs -/types/react-infinite/ @rhysd -/types/react-infinite-scroller/ @Lapanti @psrebniak -/types/react-input-calendar/ @stepancar -/types/react-input-mask/ @apare -/types/react-intl/v1/ @bgrieder -/types/react-intl/ @bgrieder @cdroulers @gyzerok @tillwolff @LKay @bhouser @kristerkari -/types/react-intl-redux/ @LKay -/types/react-is-deprecated/ @seansfkelley -/types/react-joyride/ @DanielRosenwasser @bendxn -/types/react-json/ @spielc -/types/react-json-pretty/ @LKay -/types/react-json-tree/ @gnestor -/types/react-jsonschema-form/ @iamdanfox @sirreal @iplus26 -/types/react-lazyload/ @m0a -/types/react-leaflet/ @danzel @davschne @yuit -/types/react-list/ @buptyyf -/types/react-loadable/ @Kovensky @odensc -/types/react-loader/ @artfuldev -/types/react-maskedinput/ @LKay @lavoaster @CarlosBonetti -/types/react-mce/ @morphologue -/types/react-mdl/ @bradzacher -/types/react-measure/ @asvetliakov @marcfallows -/types/react-mixin/ @tkqubo -/types/react-modal/ @radziksh @drewnoakes @homburg @ttamminen @hallowatcher -/types/react-monaco-editor/ @jnetterf -/types/react-motion/ @stepancar @asvetliakov -/types/react-motion-slider/ @asvetliakov -/types/react-native/ @alloy @huhuanming @iRoachie @timwangdev @kamal -/types/react-native-collapsible/ @iRoachie -/types/react-native-communications/ @huhuanming -/types/react-native-datepicker/ @jacobbaskin -/types/react-native-doc-viewer/ @iRoachie -/types/react-native-drawer/ @jnbt -/types/react-native-drawer-layout/ @jmfirth -/types/react-native-elements/ @iRoachie @ifiokjr -/types/react-native-fbsdk/ @ifiokjr -/types/react-native-fetch-blob/ @MNBuyskih -/types/react-native-fs/ @pocesar -/types/react-native-goby/ @MessageDream -/types/react-native-google-analytics-bridge/ @huhuanming @nbperry -/types/react-native-google-signin/ @j-fro -/types/react-native-keep-awake/ @huhuanming -/types/react-native-linear-gradient/ @j-fro -/types/react-native-material-design-searchbar/ @iRoachie -/types/react-native-material-kit/ @iRoachie -/types/react-native-material-ui/ @iRoachie -/types/react-native-modal/ @ifiokjr -/types/react-native-modalbox/ @iRoachie -/types/react-native-orientation/ @MoLow -/types/react-native-safari-view/ @mrand01 -/types/react-native-scrollable-tab-view/ @CaiHuan -/types/react-native-sensor-manager/ @SahinVardar -/types/react-native-snap-carousel/ @jnbt -/types/react-native-sortable-list/ @sivolobov -/types/react-native-svg-uri/ @iRoachie -/types/react-native-swiper/ @CaiHuan @huhuanming @mhcgrq -/types/react-native-tab-navigator/ @iRoachie -/types/react-native-tab-view/ @kaoDev -/types/react-native-touch-id/ @huhuanming -/types/react-native-vector-icons/ @iRoachie @timwangdev -/types/react-native-video/ @huhuanming @abrahambotros -/types/react-navigation/ @huhuanming @mhcgrq @fangpenlin @abrahambotros @petejkim @iRoachie @phanalpha @charlesfamu @timwangdev -/types/react-notification-system/ @GiedriusGrabauskas @DeividasBakanas @LKay @sztobar -/types/react-notification-system-redux/ @LKay -/types/react-onclickoutside/v5/ @LKay -/types/react-onclickoutside/ @LKay -/types/react-overlays/ @aaronbeall @vitosamson -/types/react-paginate/ @deevus @wouterhardeman @pegel03 @archy-bold -/types/react-pointable/ @istefo -/types/react-portal/ @shuntksh -/types/react-props-decorators/ @tkqubo -/types/react-recaptcha/ @mhegazy -/types/react-redux/ @tkqubo @thasner @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo -/types/react-redux-i18n/ @clementdevos -/types/react-redux-toastr/ @Smiche @artyomsv @kulmajaba -/types/react-relay/ @graphcool -/types/react-responsive/ @asvetliakov -/types/react-router/v2/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov -/types/react-router/v3/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @ssorallen -/types/react-router/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @tkrotoff @huy-nguyen @grmiade @DaIgeb @egorshulga -/types/react-router-bootstrap/ @vlesierse @LKay @olmobrutall -/types/react-router-config/ @lith-light-g -/types/react-router-dom/ @tkrotoff @huy-nguyen -/types/react-router-native/ @ezintz -/types/react-router-redux/v3/ @isman-usoh @noah79 @rosendi -/types/react-router-redux/v4/ @isman-usoh @noah79 @rosendi @LKay @DovydasNavickas -/types/react-router-redux/ @huy-nguyen @8398a7 -/types/react-scroll/ @sudoplz @GiedriusGrabauskas -/types/react-scrollbar/ @stephenjelfs -/types/react-select/ @Hesquibet @giladgray @iebaker @skirsdeda @vujevits @devrelm @MartynasZilinskas @onatm @ninjaferret @tehbi4 -/types/react-side-effect/ @remojansen -/types/react-sidebar/ @jeroenvervaeke -/types/react-slick/ @andrewBalekha @GiedriusGrabauskas -/types/react-smooth-scrollbar/ @asvetliakov -/types/react-sortable-hoc/ @NoHomey @charlesrey -/types/react-sortable-tree/ @wouterhardeman @jzoric -/types/react-spinkit/v1/ @tkqubo @mleko @pelotom -/types/react-spinkit/ @tkqubo @mleko @pelotom @zzanol -/types/react-split-pane/ @rcchen -/types/react-sticky/ @curtisw0 -/types/react-stripe-elements/ @dan-j -/types/react-svg-pan-zoom/ @huy-nguyen -/types/react-swf/ @stepancar -/types/react-swipe/ @DeividasBakanas -/types/react-swipeable/ @GiedriusGrabauskas @mctep -/types/react-swipeable-views/ @mxl @DeividasBakanas -/types/react-syntax-highlighter/ @NoHomey -/types/react-table/ @royxue @psakalo -/types/react-tabs/ @danez -/types/react-tag-input/ @Ogglas @jankarres -/types/react-tagcloud/ @wassname -/types/react-tap-event-plugin/ @mxl -/types/react-test-renderer/v15/ @arvitaly @lochbrunner @lochbrunner @johnnyreilly -/types/react-test-renderer/ @arvitaly @lochbrunner @johnnyreilly @jgoz -/types/react-tether/ @ryprice -/types/react-textarea-autosize/ @asvetliakov @zry656565 -/types/react-toggle/v2/ @LKay -/types/react-toggle/ @LKay -/types/react-tooltip/ @DeividasBakanas -/types/react-touch/ @grzesie2k -/types/react-tracking/ @alloy -/types/react-transition-group/v1/ @LKay -/types/react-transition-group/ @LKay -/types/react-treeview/ @janslow -/types/react-truncate/ @mattvperry -/types/react-user-tour/ @ccancellieri -/types/react-virtual-keyboard/ @bsurai -/types/react-virtualized/ @kaoDev @guntherjh @wasd171 @szabolcsx -/types/react-virtualized-select/ @seansfkelley -/types/react-weui/ @tairan -/types/react-widgets/ @rogierschouten @sanyatuning @frodehansen2 -/types/react-youtube/ @kgtkr -/types/reactable/ @spielc -/types/reactcss/ @chrisgervang @LKay -/types/reactstrap/ @alihammad @mfal @danilobjr @fabiopaiva -/types/read/ @timjk -/types/read-chunk/ @crispybee -/types/read-package-tree/ @mgroenhoff -/types/read-pkg-up/ @dudeofawesome -/types/readdir-stream/ @Bartvds -/types/readline-sync/ @jonestristand -/types/reapop/ @Barrokgl -/types/recaptcha/ @brentj73 -/types/recase/ @18steps -/types/recharts/ @mthmulders @rapmue @royxue -/types/recompose/ @iskandersierra @mrapogee @clayne11 -/types/reconnectingwebsocket/ @nguarracino -/types/recursive-readdir/v1/ @elisee -/types/recursive-readdir/ @elisee @MicahZoltu -/types/redis/ @soywiz @CodeAnimal @MugeSo -/types/redis-mock/ @BendingBender -/types/redis-rate-limiter/ @westy92 -/types/redis-scripto/ @westy92 -/types/redlock/v2/ @chrootsu -/types/redlock/ @chrootsu @BendingBender -/types/redom/ @RauliL -/types/reduce-reducers/ @huy-nguyen -/types/redux-action/ @newraina -/types/redux-action-utils/ @tkqubo -/types/redux-actions/ @jaysoo @alexgorbatchev @alechill -/types/redux-auth-wrapper/v1/ @LKay -/types/redux-auth-wrapper/ @LKay -/types/redux-batched-subscribe/ @mDibyo -/types/redux-bootstrap/ @remojansen -/types/redux-debounced/ @seansfkelley -/types/redux-devtools/ @mc-petry -/types/redux-devtools-dock-monitor/ @mc-petry -/types/redux-devtools-log-monitor/ @mc-petry -/types/redux-doghouse/ @BendingBender -/types/redux-first-router/ @Valbrand @viggyfresh -/types/redux-first-router-link/ @janb87 -/types/redux-form/v4/ @aikoven -/types/redux-form/v6/ @carsonf @aikoven @LKay @bancek -/types/redux-form/ @carsonf @aikoven @LKay @bancek @alsiola -/types/redux-immutable/ @oizie @sebald @gavingregory -/types/redux-immutable-state-invariant/ @remojansen @highflying -/types/redux-infinite-scroll/ @silkyfray -/types/redux-localstorage/ @LKay -/types/redux-localstorage-debounce/ @LKay -/types/redux-localstorage-filter/ @LKay -/types/redux-logger/ @arusakov @kgroat -/types/redux-mock-store/ @MarianPalkus -/types/redux-optimistic-ui/ @asvetliakov -/types/redux-pack/ @tansongyang -/types/redux-persist-transform-encrypt/ @LKay -/types/redux-persist-transform-filter/ @LKay -/types/redux-promise/ @molekilla @xStrom -/types/redux-promise-middleware/ @ianks -/types/redux-recycle/ @LKay -/types/redux-router/ @stepancar -/types/redux-saga-routines/ @LKay -/types/redux-storage/ @asvetliakov -/types/redux-storage-engine-jsurl/ @screendriver -/types/redux-ui/ @andyshuxin -/types/ref/ @loyd -/types/ref-array/ @loyd -/types/ref-struct/ @loyd -/types/ref-union/ @loyd -/types/reflect-metadata/ @rbuckton -/types/reflux/ @mauricedb -/types/relateurl/ @tkrotoff -/types/relaxed-json/ @18steps -/types/remote-redux-devtools/ @ColinEberhardt @unindented -/types/remove-markdown/ @RagibHasin -/types/replace-ext/ @DeividasBakanas -/types/request/ @soywiz @bonnici @Bartvds @joeskeen @ccurrens @lookfirst -/types/request-ip/ @mrhen -/types/request-promise/ @cglantschnig @joeskeen @AyaMorisawa -/types/request-promise-native/ @gustavohenke -/types/requestretry/ @EricByers @trainerbill -/types/require-dir/ @weekens -/types/require-directory/ @Igmat -/types/require-from-string/ @ikatyang -/types/requirejs/ @jbaldwin -/types/requirejs-domready/ @lefb766 -/types/resemblejs/ @pimterry -/types/resolve/ @marionebl -/types/resolve-from/ @unional -/types/response-time/ @urossmolnik @TonyPythoneer -/types/rest/ @Nemo157 -/types/restangular/ @borisyankov -/types/restful.js/ @tkqubo -/types/restify/v4/ @blittle @stevehipwell -/types/restify/ @blittle @stevehipwell -/types/restify-cookies/ @weekens -/types/restify-cors-middleware/ @dthunell -/types/restify-errors/ @stevehipwell -/types/restify-plugins/ @KostyaTretyak -/types/restler/ @cyrilschumacher -/types/restling/ @loghorn -/types/resumablejs/ @DanielMcAssey -/types/rethinkdb/ @alexgorbatchev -/types/retry/ @krenor -/types/rev-hash/ @ikatyang -/types/revalidate/ @alex3165 -/types/revalidator/ @brewsoftware -/types/reveal/ @robertop87 @Nava2 -/types/rewire/ @borislavjivkov @CaselIT -/types/rfc2047/ @mugifly -/types/rheostat/ @SashaBayan @kourge -/types/rickshaw/ @niemyjski -/types/rimraf/ @soywiz @e-cloud @bash -/types/riot/ @Stubb0rn -/types/riot-api-nodejs/ @zafixlrp -/types/riot-games-api/ @xstoudi -/types/riotcontrol/ @chrootsu -/types/riotjs/ @vvakame -/types/rison/ @impworks -/types/rivets/ @TrevorDev @matjanos -/types/rollup/ @flying-sheep -/types/ronomon__crypto-async/ @BendingBender -/types/rosie/ @abner @subvertallchris -/types/roslib/ @Pro @skycoop -/types/rot-js/ @atiaxi -/types/route-parser/ @ianks @bobbuehler -/types/routie/ @Adilson -/types/royalslider/ @csrakowski -/types/rpio/ @DominikPalo -/types/rrc/ @DeividasBakanas -/types/rrule/ @waratuman -/types/rsmq/ @MugeSo -/types/rsmq-worker/ @MugeSo -/types/rss/ @secondwtq -/types/rsvp/ @chriskrycho -/types/rsync/ @philippstucki -/types/rtree/ @oefirouz -/types/run-sequence/ @k-kagurazaka -/types/rvo2/ @erikvullings -/types/rx/ @Igorbek -/types/rx-angular/ @mickdelaney -/types/rx-core/ @Igorbek @mizunashi-mana -/types/rx-core-binding/ @Igorbek -/types/rx-dom/ @oliverw -/types/rx-jquery/ @Igorbek -/types/rx-lite/ @Igorbek -/types/rx-lite-aggregates/ @Igorbek -/types/rx-lite-async/ @zoetrope @Igorbek -/types/rx-lite-backpressure/ @Igorbek -/types/rx-lite-coincidence/ @Igorbek -/types/rx-lite-experimental/ @Igorbek -/types/rx-lite-joinpatterns/ @Igorbek -/types/rx-lite-testing/ @Igorbek -/types/rx-lite-time/ @Igorbek -/types/rx-lite-virtualtime/ @Igorbek -/types/rx.wamp/ @darkl -/types/s3-upload-stream/ @geoffreak -/types/safari-extension/ @luukd -/types/safari-extension-content/ @luukd -/types/safe-json-stringify/ @ericbyers -/types/safe-regex/ @mhegazy -/types/sails.io.js/ @arvitaly -/types/saml2-js/ @horiuchi -/types/saml20/ @HackerUndKoch -/types/samlp/ @horiuchi -/types/sammy/ @borisyankov @oising -/types/sandboxed-module/ @svi3c -/types/sane/ @BendingBender -/types/sanitize-filename/ @Nemo157 -/types/sanitize-html/ @rogierschouten @afshin @BehindTheMath -/types/sap__xsenv/ @mad-mike -/types/sass-graph/ @marvinhagemeister -/types/sat/ @omni360 -/types/satnav/ @DotNetNerd -/types/saywhen/ @SeanSobey -/types/scalike/ @ryoppy -/types/screenfull/ @icholy @lionelb @joelshepherd -/types/screeps-profiler/ @ramblurr -/types/scriptjs/ @ssttevee -/types/scroll-into-view/ @zivni -/types/scroller/ @borisyankov -/types/scrollreveal/ @Davidblkx -/types/scrolltofixed/ @bmdixon -/types/scrypt-async/ @xStrom -/types/seamless/ @danmana -/types/seamless-immutable/ @alex3165 @xsburg @geirsagberg -/types/seedrandom/ @kernhanda -/types/segment-analytics/ @fongandrew -/types/select2/ @borisyankov -/types/selectize/ @adidahiya @naBausch -/types/selenium-webdriver/v2/ @BillArmstrong @Kuniwak @cnishina -/types/selenium-webdriver/ @BillArmstrong @Kuniwak @cnishina @SupernaviX @bendxn -/types/semantic-ui/ @leonard-thieu -/types/semantic-ui-accordion/ @leonard-thieu -/types/semantic-ui-api/ @leonard-thieu -/types/semantic-ui-checkbox/ @leonard-thieu -/types/semantic-ui-dimmer/ @leonard-thieu -/types/semantic-ui-dropdown/ @leonard-thieu -/types/semantic-ui-embed/ @leonard-thieu -/types/semantic-ui-form/ @leonard-thieu -/types/semantic-ui-modal/ @leonard-thieu -/types/semantic-ui-nag/ @leonard-thieu -/types/semantic-ui-popup/ @leonard-thieu -/types/semantic-ui-progress/ @leonard-thieu -/types/semantic-ui-rating/ @leonard-thieu -/types/semantic-ui-search/ @leonard-thieu -/types/semantic-ui-shape/ @leonard-thieu -/types/semantic-ui-sidebar/ @leonard-thieu -/types/semantic-ui-site/ @leonard-thieu -/types/semantic-ui-sticky/ @leonard-thieu -/types/semantic-ui-tab/ @leonard-thieu -/types/semantic-ui-transition/ @leonard-thieu -/types/semantic-ui-visibility/ @leonard-thieu -/types/semaphore/ @mhfrantz -/types/semver/ @Bartvds @BendingBender @LucianBuzzo -/types/semver-compare/ @vincekovacs -/types/semver-diff/ @chrismbarr -/types/sencha_touch/ @brian428 -/types/send/ @MikeJerred -/types/seneca/ @psnider -/types/sequelize/v3/ @samuelneff @codeanimal @drinchev @morpheusxaut @torhal -/types/sequelize/ @samuelneff @codeanimal @drinchev @babolivier @kukoo1 @oktapodia @morpheusxaut -/types/sequelize-fixtures/ @cschwarz -/types/sequencify/ @npenin -/types/sequester/ @Strate -/types/serialize-javascript/ @lith-light-g -/types/serialport/ @codefoster -/types/serve-favicon/ @urossmolnik -/types/serve-index/ @tkrotoff -/types/serve-static/ @urossmolnik -/types/server-destroy/ @gyszalai -/types/session-file-store/ @blendsdk -/types/set-cookie-parser/ @nickp10 -/types/sha1/ @arcdev1 -/types/shallowequal/ @seansfkelley -/types/shapefile/ @DenisCarriere -/types/sharedworker/ @nakakura -/types/sharepoint/ @gandjustas @andrei-markeev @baywet @teroarvola -/types/sharp/ @lith-light-g -/types/sharp-timer/v0/ @afractal -/types/sharp-timer/ @afractal -/types/sheetify/ @toddself -/types/shell-escape/ @nenadalm -/types/shell-quote/ @jason0x43 -/types/shelljs/ @nikeee @voy -/types/shipit/ @cyrilschumacher -/types/shipit-utils/ @cyrilschumacher -/types/shopify-buy/ @openminder -/types/shortid/ @stpettersens @despairblue -/types/shot/ @AJamesPhillips -/types/should/ @varju -/types/should-promised/ @devoto13 -/types/showdown/ @cbowdon @tan9 -/types/siema/ @Irmiz -/types/siesta/ @bquarmby -/types/sigmajs/ @qinfchen -/types/sigmund/ @BendingBender -/types/signalr/ @borisyankov @keesey @GiedriusGrabauskas -/types/signalr-no-jquery/ @gjoshevski -/types/signals/ @diullei -/types/signature_pad/ @AbubakerB @jrmihalick -/types/simple-assign/ @NoHomey -/types/simple-cw-node/ @vvakame -/types/simple-mock/ @leonyu -/types/simple-oauth2/ @mad-mike -/types/simple-peer/ @tlaziuk -/types/simple-url-cache/ @a-lucas -/types/simple-xml/ @notVitaliy -/types/simplebar/v1/ @gregonnet @leonard-thieu -/types/simplebar/ @leonard-thieu -/types/simplemde/ @Scalesoft -/types/simplesmtp/ @rogierschouten -/types/simplestorage.js/ @axelcostaspena @mxl -/types/sinon/ @mrbigdog2u @rationull @lumaxis @nicojs @43081j -/types/sinon-as-promised/ @igrayson -/types/sinon-chai/ @kazimanzurrashid @jedmao -/types/sinon-chrome/ @pimterry -/types/sinon-express-mock/ @jpchip @tlaziuk -/types/sinon-mongoose/ @stevehipwell -/types/sinon-stub-promise/ @vintem -/types/sinon-test/ @mummybot -/types/sip.js/ @decyrus -/types/sipml/ @chookies -/types/sitemap2/ @shundy -/types/sizzle/ @leonard-thieu -/types/sjcl/ @Evgenus -/types/ski/ @AyaMorisawa -/types/skyway/ @nakakura -/types/slack-node/ @geoffreak -/types/slack-winston/ @BlueHatbRit -/types/slackify-html/ @hypexr -/types/slate-irc/ @elisee -/types/sleep/ @rajarz -/types/slickgrid/ @jbaldwin -/types/slideout/ @ToastHawaii -/types/slimerjs/ @alexwall -/types/slocket/ @BendingBender -/types/slug/ @mhegazy -/types/smart-fox-server/ @ChanceM -/types/smooth-scrollbar/ @asvetliakov -/types/smoothie/ @mikehhawley -/types/smoothscroll-polyfill/ @kryops -/types/smtp-server/ @markisme @Taisiias -/types/smtpapi/ @a-morales -/types/snapsvg/ @lhk @mattanja @kant2002 -/types/snazzy-info-window/ @milosd92 -/types/snekfetch/ @DarkerTV -/types/snoowrap/ @vitosamson -/types/snowboy/ @dolanmiu -/types/soap/ @aleung @cagefox -/types/socket.io/ @progre @divillysausages @florentpoujol @KentarouTakeda @gigi -/types/socket.io-client/ @progre @divillysausages @florentpoujol -/types/socket.io-redis/ @nupplaphil -/types/socket.io.users/ @kataras -/types/socketio-wildcard/ @BendingBender -/types/socketty/ @Nax -/types/sockjs/ @pmccloghrylaing -/types/sockjs-client/ @vladev @arusakov @BendingBender -/types/solution-center-communicator/ @dami-gg -/types/sortablejs/ @Maw-Fox -/types/soundmanager2/ @elton2048 -/types/source-list-map/ @e-cloud -/types/source-map/ @MortenHoustonLudvigsen @rbuckton -/types/source-map-support/ @Bartvds @jason0x43 -/types/space-pen/ @vvakame -/types/spark-md5/ @bastienmoulia -/types/sparkly/ @BendingBender -/types/sparkpost/v1/ @geoffreak -/types/sparkpost/ @geoffreak @bondz -/types/sparqljs/ @AlexeyMz -/types/spatialite/ @atd-schubert -/types/spdy/ @tony19 -/types/speakeasy/ @legendecas @mrOlorin -/types/speakingurl/ @Goldsmith42 -/types/spectacle/ @zmaybury -/types/spectrum/ @M-Zuber -/types/spin.js/ @borisyankov @theodorejb -/types/split/ @marcinporebski -/types/split.js/ @icholy -/types/split2/ @mugeso -/types/spotify-api/ @skovmand -/types/sprintf/ @soywiz @BendingBender -/types/sprintf-js/ @jasonswearingen @BendingBender -/types/sql.js/ @Hozuki -/types/sqlite3/ @nmalaguti @dpyro -/types/sqlstring/ @marvinhagemeister -/types/squirejs/ @bradleyayers -/types/srp/ @Patman64 -/types/ss-utils/ @mythz -/types/ssh-key-decrypt/ @BendingBender -/types/ssh2/ @tkQubo @rbuckton -/types/ssh2-sftp-client/ @igrayson @ascariandrea -/types/ssh2-streams/ @rbuckton -/types/sshpk/ @mabels -/types/stack-mapper/ @rogierschouten -/types/stack-trace/ @exceptionless -/types/stack-utils/ @BendingBender -/types/stacktrace-js/ @exceptionless @pilagod -/types/stale-lru-cache/ @cxcorp -/types/stampit/ @koresar -/types/stamplay-js-sdk/ @ridermansb -/types/stat-mode/ @BendingBender -/types/stats.js/ @gregolai @hberntsen -/types/statsd-client/ @peterkooijmans -/types/status-bar/ @vvakame -/types/statuses/ @tkrotoff @BendingBender -/types/steam/ @kant2002 -/types/steed/ @Paul-Isache -/types/stemmer/ @will-ockmore -/types/stompjs/ @jimic -/types/stoppable/ @EricByers -/types/storejs/ @vbortone @harry0000 -/types/storybook__addon-actions/ @joscha -/types/storybook__addon-info/ @mkornblum -/types/storybook__addon-knobs/ @joscha @martynaskadisa -/types/storybook__addon-links/ @joscha -/types/storybook__addon-notes/ @joscha -/types/storybook__addon-options/ @joscha -/types/storybook__react/ @joscha -/types/stream-buffers/ @Jason3S -/types/stream-meter/ @mugeso -/types/stream-series/ @k-kagurazaka -/types/stream-to-array/v0/ @Bartvds -/types/stream-to-array/ @Bartvds @BendingBender -/types/streaming-json-stringify/ @BendingBender -/types/streamjs/ @erosb -/types/strftime/ @cyrilschumacher -/types/string/ @basp -/types/string-hash/ @ethanrubio -/types/string-similarity/ @ragtime -/types/string-template/ @TonyPythoneer -/types/string_score/ @marcinporebski -/types/stringify-object/ @khoomeister -/types/strip-ansi/ @mhegazy -/types/strip-bom/ @mhegazy -/types/strip-json-comments/ @dmoonfire -/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU -/types/stripe-checkout/ @cgwrench -/types/stripe-v2/ @ejsmith @amritk @adamcmiel @jleider @galuszkak -/types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak -/types/striptags/ @ccitro -/types/strong-cluster-control/ @shuntksh -/types/strophe/ @DavidKDeutsch -/types/stylelint/ @alan-agius4 -/types/stylelint-webpack-plugin/ @bahlo -/types/stylus/ @SomaticIT -/types/subsume/ @BendingBender -/types/succinct/ @EnableSoftware -/types/sudo-block/ @BendingBender -/types/suitescript/ @darrenhillconsulting -/types/sumo-logger/ @forabi -/types/superagent/v2/ @varju @NicoZelaya @mxl -/types/superagent/ @NicoZelaya @mxl @paplorinc -/types/superagent-no-cache/ @mxl -/types/superagent-prefix/ @mxl -/types/supercluster/ @DenisCarriere -/types/supertest/ @varju -/types/supertest-as-promised/ @tkrotoff -/types/supports-color/ @mgroenhoff -/types/survey-knockout/ @andrewtelnov -/types/svg-injector/ @poke -/types/svg-pan-zoom/v2/ @Promact -/types/svg-pan-zoom/ @Yimiprod -/types/svg-sprite/ @tkqubo -/types/svg2png/ @hansrwindhoff @sccgithub -/types/svg4everybody/ @BendingBender -/types/svgjs.draggable/ @LiFeleSs -/types/svgjs.resize/ @jkevingutierrez -/types/svgo/ @bradleyayers -/types/swag/ @shiwano -/types/swagger-express-middleware/ @alexandreroba -/types/swagger-express-mw/ @micmro -/types/swagger-hapi/ @micmro -/types/swagger-jsdoc/ @drGrove -/types/swagger-node-runner/ @micmro -/types/swagger-parser/ @Tobias4872 @EricHenry -/types/swagger-restify-mw/ @micmro -/types/swagger-sails-hook/ @micmro -/types/swagger-schema-official/ @mohsen1 @bsouthga @nimerritt -/types/swagger-tools/ @bricka -/types/swaggerize-express/ @mugeso @nickmorton -/types/sweetalert/ @ToastHawaii -/types/swfobject/ @rou -/types/swiftclick/ @Laurence-C -/types/swig/ @CodeAnimal @soywiz -/types/swig-email-templates/ @mrhen -/types/swipe/ @kant2002 -/types/swiper/ @sgaliano @lucax88x -/types/swipeview/ @borisyankov -/types/switchery/ @bgrieder @claylaut -/types/swiz/ @jedigo -/types/sylvester/ @StephaneAlie -/types/synaptic/ @ToastHawaii @austincummings -/types/systeminformation/ @PixelcrabAT -/types/systemjs/ @ludohenin @NathanWalker @GiedriusGrabauskas @aluanhaddad -/types/table/ @evanshortiss -/types/tabris-plugin-firebase/ @eclipsesource -/types/tabtab/ @vojtechhabarta -/types/tabulator/ @euginio -/types/tapable/ @e-cloud -/types/tape/ @Bartvds @sodatea @DennisSchwartz -/types/tar/ @SomaticIT @connor4312 -/types/tedious/ @rogierschouten @cjthompson -/types/tedious-connection-pool/ @sandorfr -/types/telebot/ @mariotsi -/types/temp/ @DanielRosenwasser -/types/temp-write/ @BendingBender -/types/tempfile/ @SamVerschueren @BendingBender -/types/tempy/ @douglasduteil -/types/terminal-menu/ @aravindarun -/types/testingbot-api/ @timbru31 -/types/tether/ @adidahiya -/types/tether-drop/ @adidahiya -/types/tether-shepherd/ @mtgibbs -/types/text-buffer/v0/ @vvakame -/types/text-buffer/ @GlenCFL -/types/text-encoding/ @pine613 -/types/three/ @gyohk @florentpoujol @SereznoKot @omni360 @ivoisbelongtous @piranha771 @qszhusightp @nakakura @s093294 @Pro @efokschaner -/types/thrift/ @kamek-pf @kevin-greene-ck @jessezhang91 -/types/throng/ @cyrilschumacher -/types/throttle/ @BendingBender -/types/through/ @AndrewGaspar -/types/through2/v0/ @Bartvds @jedmao -/types/through2/ @Bartvds @jedmao @valotas @TeamworkGuy2 -/types/through2-map/ @LucasHill -/types/tile-reduce/ @DenisCarriere -/types/tilebelt/ @DenisCarriere -/types/time-span/ @BendingBender @mdvorscak -/types/timelinejs/ @rolandzwaga -/types/timelinejs3/ @MikeMatusz -/types/timer-machine/ @dolanmiu -/types/timezone-js/ @bonnici -/types/timezonecomplete/ @rogierschouten -/types/tinder/ @pingec -/types/tinycolor2/ @M-Zuber @geertjansen @nvh -/types/tinycopy/ @vvatanabe -/types/tinymce/ @martinduparc @ipoul -/types/titanium/ @cyounkins -/types/title/ @fa7ad -/types/tldjs/ @geoffreak -/types/tmp/ @optical @Perlmint -/types/to-camel-case/ @j-f1 -/types/to-markdown/ @SuperPaintman -/types/to-title-case-gouch/ @stpettersens -/types/toastr/ @borisyankov -/types/tocktimer/ @evanshortiss -/types/tooltipster/ @stephenlautier -/types/topojson/ @ricardo-mello @chenzhutian -/types/torrent-stream/ @xstoudi -/types/touch/ @mizunashi-mana @BendingBender -/types/touch-events/ @kevinb7 -/types/tough-cookie/ @leonard-thieu @LiJinyao -/types/traceback/ @misak113 -/types/tracking/ @pimterry -/types/transducers-js/ @colinkahn @dphilipson @NaridaL -/types/transducers.js/ @dphilipson -/types/traverse/ @newclear -/types/traverson/ @marcinporebski -/types/trayballoon/ @korve -/types/tress/ @sindilevich -/types/trim/ @skysteve -/types/trunk8/ @niemyjski -/types/tspromise/ @soywiz -/types/tunnel/ @BendingBender -/types/tus-js-client/ @kevhiggins -/types/tv4/ @Bartvds @psnider -/types/tween.js/ @Amos47 @sunetos @jzarnikov @alexburner -/types/tweenjs/ @evilangelist -/types/tweezer.js/ @praxxis -/types/twig/ @soywiz @enko -/types/twilio/ @nickiannone @ashleybrener -/types/twit/ @Volox -/types/twitter/ @chitoku-k -/types/twitter-stream-channels/ @adrianbardan -/types/twix/ @j3ko -/types/type-check/ @hansrwindhoff -/types/type-detect/ @Bartvds -/types/type-is/ @BendingBender -/types/type-name/ @armorik83 -/types/typeahead/ @igochkov @gjunge -/types/typedarray-pool/ @pawsong -/types/typescript-deferred/ @DirtyHairy -/types/tz-format/ @samverschueren -/types/ua-parser-js/ @superduper @legendecas @MeLlamoPablo -/types/uglify-js/ @tkrotoff -/types/uglifycss/ @blendsdk -/types/ui-grid/ @btesser @joeskeen -/types/ui-router-extras/ @mputters @marcel-k @LaserUnicorns -/types/ui-select/ @nkovacic -/types/uid-safe/ @geoffreak -/types/uikit/ @giovannicandido @s0x -/types/uk.co.workingedge.phonegap.plugin.launchnavigator/ @dpa99c -/types/umbraco/ @DeCareSystemsIreland -/types/umd/ @TeamworkGuy2 -/types/umzug/ @drinchev -/types/underscore/ @borisyankov @jbaldwin @ccurrens -/types/underscore-ko/ @MagicMau -/types/underscore.string/ @rygine -/types/undertaker/ @tkqubo @GiedriusGrabauskas -/types/undertaker-registry/ @GiedriusGrabauskas -/types/uniq/ @hansrwindhoff -/types/uniqid/ @idchlife -/types/unique-hash-stream/ @BendingBender -/types/unique-random/ @Kuniwak -/types/unist/ @bizen241 -/types/unity-webapi/ @jmvrbanac -/types/universal-analytics/ @Bartvds @DarkerTV -/types/universal-router/ @jtmthf -/types/unorm/ @chbrown -/types/untildify/ @BendingBender -/types/unused-filename/ @BendingBender -/types/update-notifier/ @vvakame @nchen63 -/types/uppercamelcase/ @plantain-00 -/types/urbanairship-cordova/ @Justin-Credible -/types/uri-templates/ @Bartvds -/types/urijs/ @RodneyJT @xt0rted -/types/uritemplate/ @teyc -/types/url-assembler/ @wolfgang42 -/types/url-join/ @rogierschouten @devrelm -/types/url-parse/ @ChernenkoPaul -/types/url-regex/ @unindented -/types/url-search-params/ @nick121212 -/types/url-template/ @marcinporebski -/types/urlrouter/ @soywiz -/types/urlsafe-base64/ @tkrotoff -/types/usage/ @pvomhoff -/types/usb/ @underscorebrody -/types/user-home/ @mhegazy -/types/useragent/ @geoffreak -/types/username/ @kayahr -/types/utf8/ @zelein -/types/util-deprecate/ @BendingBender -/types/util.promisify/ @adamvoss -/types/utils-merge/ @chrootsu -/types/uuid/ @iamolivinius @felipeochoa @cjbarth -/types/uuid-1345/ @mugeso -/types/uuid-js/ @mhegazy -/types/uuid-validate/ @HiromiShikata -/types/uuidjs/ @staxmanade -/types/uws/ @plantain-00 -/types/valdr/ @ilbertz -/types/valdr-message/ @ilbertz -/types/valerie/ @conficient -/types/valid-url/ @stevehipwell -/types/validate.js/ @HillTravis -/types/validator/ @tgfjt @chrootsu @IOAyman @louy @kacepe @deptno -/types/validatorjs/ @LKay -/types/vanilla-tilt/ @BrunnerLivio -/types/vary/ @BendingBender -/types/vast-client/ @jgainfort -/types/vec3/ @xstoudi -/types/vectorious/ @erikgerrits -/types/vega/ @pelotom -/types/velocity-animate/ @smrq -/types/verror/ @svi3c @max4t -/types/vertx3-eventbus-client/ @oddeirik -/types/vex-js/ @gdcohan -/types/vexflow/ @rquiring @sebastianhaas @bohoffi -/types/vfile/ @bizen241 @rokt33r -/types/victory/ @asvetliakov @snerks @Havret -/types/video.js/ @vbortone @scleriot -/types/viewability-helper/ @lironzluf -/types/viewerjs/ @lrh3321 -/types/viewporter/ @borisyankov -/types/vimeo/ @DazWilkin -/types/vimeo__player/ @denisyilmaz -/types/vinyl/v0/ @jedmao -/types/vinyl/ @vvakame @jedmao @thorn0 -/types/vinyl-buffer/ @tkQubo -/types/vinyl-fs/ @vvakame @remisery -/types/vinyl-paths/ @tkQubo -/types/virtual-dom/ @chbrown -/types/virtual-keyboard/ @bsurai -/types/vis/ @MichaelBitard @macleodbroad-wf @adripanico @seveves @kaktus40 @mmaitre314 @supercargo -/types/vision/ @jasonswearingen @AJamesPhillips -/types/vitalsigns/ @cyrilschumacher -/types/vivus/ @DanielRosenwasser @lekhmanrus -/types/vkbeautify/ @sch3lp -/types/voca/ @pine -/types/voronoi-diagram/ @michaelneu -/types/vortex-web-client/ @Pro -/types/voximplant-websdk/ @aylarov -/types/vue-i18n/ @aicest -/types/vue-resource/ @kaorun343 -/types/vue-scrollto/ @vincekovacs -/types/w2ui/ @Ptival -/types/w3c-generic-sensor/ @kenchris -/types/w3c-screen-orientation/ @kenchris -/types/w3c-web-usb/ @larsgk -/types/waitme/ @totpero -/types/wake_on_lan/ @SrTobi -/types/wallabyjs/ @andrewconnell -/types/wallpaper/ @BendingBender -/types/wampy/ @KSDaemon -/types/warning/ @cvle -/types/watch/ @soywiz @Perlmint -/types/watchify/ @TeamworkGuy2 -/types/watchpack/ @e-cloud -/types/waterline/ @arvitaly -/types/watson-developer-cloud/ @waldo000000 @Naktibalda -/types/waypoints/ @dominikbulaj @Koloto -/types/wcwidth/ @rokt33r -/types/weapp-api/ @vargeek -/types/web-animations-js/ @kritollm -/types/web-bluetooth/ @urish -/types/webappsec-credential-management/ @iainmcgin -/types/webassembly-js-api/ @periklis -/types/webcl/ @NCARalph -/types/webcomponents.js/ @adidahiya -/types/webcrypto/ @iislucas -/types/webdriverio/ @nmalaguti @timbru31 @fsmedberg-tc @tanvirislam06 -/types/webfontloader/ @doskallemaskin -/types/webgl-ext/ @zenmumbler -/types/webgl2/ @nkemnitz -/types/webgme/ @phreed -/types/webix/ @mkozhukh -/types/webmidi/ @lostfictions -/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @ahmed-taj -/types/webpack-bundle-analyzer/ @kryops -/types/webpack-chain/ @eirikurn @psachs21 -/types/webpack-chunk-hash/ @mtraynham -/types/webpack-dev-middleware/ @bumbleblym -/types/webpack-dev-server/ @maestroh @daveparslow @ZheyangSong -/types/webpack-dotenv-plugin/ @kryops -/types/webpack-env/ @use-strict @rhonsby -/types/webpack-fail-plugin/ @deevus -/types/webpack-hot-middleware/ @bumbleblym -/types/webpack-merge/v0/ @deevus -/types/webpack-merge/ @deevus @mtraynham -/types/webpack-node-externals/ @mtraynham -/types/webpack-notifier/ @bumbleblym -/types/webpack-sources/ @e-cloud @chriseppstein -/types/webpack-stream/ @iclanton @bumbleblym -/types/webpack-validator/ @deevus -/types/webrtc/ @nakakura -/types/websocket/ @loyd @flynetworks -/types/webspeechapi/ @saschanaz -/types/websql/ @TeamworkGuy2 -/types/webtorrent/ @niieani @tlaziuk -/types/webvr-api/ @lostfictions -/types/week/ @sindrenm -/types/weighted/ @ccitro -/types/weixin-app/ @taoqf -/types/wellknown/ @yairtawil -/types/whatwg-streams/ @saschanaz -/types/when/ @derekcicerone @Nemo157 -/types/which/ @vvakame -/types/wicg-mediasession/ @jucrouzet -/types/wiiu/ @mzsm -/types/window-or-global/ @vvakame -/types/window-size/ @pmkary -/types/windows-1251/ @RomanGolovanov -/types/windows-service/ @rogierschouten -/types/winjs/v1/ @adamhewitt627 @craigktreasure @xirzec -/types/winjs/v2/ @adamhewitt627 @craigktreasure @xirzec -/types/winjs/ @adamhewitt627 @craigktreasure @xirzec -/types/winreg/ @RX14 @BobBuehler -/types/winrt-uwp/ @saschanaz @taylor224 -/types/winston/ @bonnici @codeanimal @DABH -/types/winston-dynamodb/ @nickiannone -/types/wiring-pi/ @NoHomey -/types/wnumb/ @acoreyj -/types/wolfy87-eventemitter/ @ryiwamoto -/types/wonder-commonlib/ @yyc-git -/types/wonder-frp/ @yyc-git -/types/wonder.js/ @yyc-git -/types/wordcloud/ @joeskeen -/types/words-to-numbers/ @James-Frowen -/types/wrap-ansi/ @kayahr -/types/wreck/ @marcinporebski -/types/wrench/ @soywiz -/types/write-file-atomic/ @BendingBender -/types/write-json-file/ @DenisCarriere -/types/ws/ @loyd @elithrar @mlamp -/types/wu/ @phiresky -/types/wx-js-sdk-dt/ @agasbzj -/types/x-editable/ @sirkirby -/types/xadesjs/ @microshine -/types/xdate/ @yamada28go -/types/xdg-basedir/ @tlaziuk -/types/xhr-mock/ @joscha -/types/xml/ @YuJianrong -/types/xml-parser/ @mhfrantz -/types/xml2js/ @michelsalib @jasonrm @ccurrens @edwardhinkle -/types/xml2json/ @dolanmiu -/types/xmlbuilder/ @wallymathieu -/types/xmldoc/ @Xstoudi @ajsheehan -/types/xmldom/ @tkqubo -/types/xmlpoke/ @garthk -/types/xmltojson/ @traviscrowe -/types/xmpp__jid/ @PJakcson -/types/xregexp/ @Bartvds @jfahrenkrug @sigo -/types/xrm/v7/ @daryllabar -/types/xrm/ @6ix4our @mattngan @markusmauch @daryllabar @clownwilleatme -/types/xsd-schema-validator/ @Goldsmith42 -/types/xsockets/ @pushplay -/types/xterm/ @blink1073 @LucianBuzzo -/types/xxhashjs/ @mDibyo -/types/yallist/ @BendingBender -/types/yandex-maps/ @Delagen -/types/yandex-money-sdk/ @chrootsu -/types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney -/types/yayson/ @Codesleuth -/types/ydn-db/ @yathit @gabrielmaldi -/types/yeoman-generator/ @armorik83 @janslow -/types/yeoman-test/ @ikatyang -/types/yfiles/ @yGuy -/types/yog-bigpipe/ @ssddi456 -/types/yog-log/ @ssddi456 -/types/yog2-kernel/ @ssddi456 -/types/yosay/ @armorik83 -/types/youtube/ @DazWilkin @JoshuaKGoldberg @eliotfallon213 -/types/yui/ @giabao -/types/z-schema/ @pgonzal -/types/zapier-platform-core/ @bradleyayers -/types/zen-observable/ @aicest -/types/zen-push/ @daprahamian -/types/zepto/ @jbaldwin -/types/zeroclipboard/v1/ @ejsmith @niemyjski @balassy @leonyu -/types/zeroclipboard/ @ejsmith @niemyjski @balassy @leonyu -/types/zeromq/ @davemckeown @erikma -/types/zetapush-js/ @ghoullier -/types/zip.js/ @lgrignon -/types/zmq/ @davemckeown -/types/zookeeper/ @xialeistudio -/types/zui/ @yuanxu -/types/zynga-scroller/ @haskellcamargo +/types/abbrev/ @BendingBender +/types/ably/ @ably +/types/abs/ @AyaMorisawa +/types/absolute/ @AyaMorisawa +/types/acc-wizard/ @cyrilschumacher +/types/accept-language-parser/ @kampfgnom +/types/accepts/ @bomret @brikou +/types/accounting/ @gerich-home @chrisleck +/types/ace/ @Diullei +/types/acl/ @tkQubo +/types/acorn/ @RReverser @e-cloud +/types/actioncable/ @zhu1230 +/types/actions-on-google/ @joelhegg +/types/activex-access/ @zspitz +/types/activex-adodb/ @zspitz +/types/activex-dao/ @zspitz +/types/activex-excel/ @zspitz +/types/activex-infopath/ @zspitz +/types/activex-libreoffice/ @zspitz +/types/activex-msforms/ @zspitz +/types/activex-mshtml/ @zspitz +/types/activex-msxml2/ @zspitz +/types/activex-office/ @zspitz +/types/activex-outlook/ @zspitz +/types/activex-powerpoint/ @zspitz +/types/activex-scripting/ @zspitz +/types/activex-stdole/ @zspitz +/types/activex-vbide/ @zspitz +/types/activex-wia/ @zspitz +/types/activex-word/ @zspitz +/types/adal-angular/ @unindented +/types/add-zero/ @Roaders +/types/adm-zip/ @jvilk @abner +/types/adone/ @s0m3on3 @maxveres +/types/aframe/ @devpaul @bertoritger +/types/agenda/ @meirgottlieb +/types/aggregate-error/ @BendingBender +/types/alertify/ @jjeffery +/types/alexa-sdk/ @petebeegle @hoo29 @pascalwhoop @blforce @rk-7 +/types/alexa-voice-service/ @dolanmiu +/types/algebra.js/ @CaselIT +/types/algoliasearch/ @cbaptiste @haroenv @aherve +/types/alt/ @Shearerbeard +/types/amazon-product-api/ @MattiLehtinen @alien35 +/types/amcharts/ @ldrick +/types/amplify/ @joeriks +/types/amplify-deferred/ @joeriks @laurentiustamate94 +/types/amplitude-js/ @Asido +/types/amqp/ @seikho @jonnysparkplugs +/types/amqp-rpc/ @wokim +/types/amqplib/ @mnahkies @abreits @nfantone +/types/analytics-node/ @fongandrew +/types/angular/ @diegovilar @thorn0 @calebstdenis @leonard-thieu +/types/angular-agility/ @rolandzwaga +/types/angular-animate/ @michelsalib @adidahiya @rasch @codyschaaf +/types/angular-block-ui/ @lassebn @sclassen +/types/angular-bootstrap-calendar/ @Odrin +/types/angular-bootstrap-lightbox/ @rolandzwaga +/types/angular-breadcrumb/ @marctalary +/types/angular-clipboard/ @bradfordwagner +/types/angular-cookie/ @borislavjivkov +/types/angular-cookies/ @diegovilar @aciccarello +/types/angular-deferred-bootstrap/ @Ritzlgrmft +/types/angular-dialog-service/ @wcomartin +/types/angular-dynamic-locale/ @stephenlautier +/types/angular-environment/ @terrawheat +/types/angular-es/ @mbutsykin +/types/angular-feature-flags/ @borislavjivkov +/types/angular-file-saver/ @deenairn +/types/angular-file-upload/ @cyrilgandon +/types/angular-formly/ @scatcher +/types/angular-fullscreen/ @julienpa +/types/angular-gettext/ @AkosLukacs +/types/angular-google-analytics/ @cyrilschumacher @Toxantron +/types/angular-gridster/ @jpmnteiro +/types/angular-growl-v2/ @mkp05 +/types/angular-hotkeys/ @jlz27 @reppners @cyrilgandon +/types/angular-http-auth/ @vvakame +/types/angular-httpi/ @Kukks +/types/angular-idle/ @mthamil +/types/angular-jwt/ @rerezz +/types/angular-load/ @david-gang +/types/angular-loading-bar/ @stephenlautier @tyronedougherty +/types/angular-local-storage/ @kenfdev @dona278 +/types/angular-localforage/ @reppners +/types/angular-locker/ @nkovacic +/types/angular-material/ @blbigelow @PeterHajdu @Dona278 @geertjansen @eknowles +/types/angular-media-queries/ @jpmnteiro +/types/angular-meteor/ @pgrm +/types/angular-mocks/ @diegovilar @daltin +/types/angular-modal/ @paullessing +/types/angular-oauth2/ @anteriovieira +/types/angular-pdfjs-viewer/ @bastienmoulia +/types/angular-permission/ @vmishevski +/types/angular-promise-tracker/ @rufusl +/types/angular-q-spread/ @rafw87 +/types/angular-resource/ @diegovilar @miffels +/types/angular-route/ @park9140 +/types/angular-sanitize/ @diegovilar +/types/angular-scenario/ @RomanoLindano +/types/angular-scroll/ @samherrmann +/types/angular-signalr-hub/ @AdamSantaniello +/types/angular-spinner/ @Biegal +/types/angular-storage/ @mdekrey +/types/angular-strap/ @samherrmann @mkannwischer +/types/angular-toastr/ @nkovacic @trodi +/types/angular-toasty/ @muenchdo +/types/angular-tooltips/ @leonard-thieu +/types/angular-touchspin/ @nkovacic +/types/angular-translate/ @michelsalib +/types/angular-ui-bootstrap/ @xt0rted @ry8806 +/types/angular-ui-router/ @michelsalib @matiishyn @mikehaas763 +/types/angular-ui-scroll/ @marknadig +/types/angular-ui-sortable/ @thgreasi +/types/angular-ui-tree/ @CalvinFernandez +/types/angular-websocket/ @nickveys +/types/angular-wizard/ @mjurisic @rwwilden +/types/angular-xeditable/ @jpmnteiro +/types/angular.throttle/ @reppners +/types/angularfire/ @thSoft +/types/angularlocalstorage/ @horiuchi +/types/angulartics/ @bateast2 +/types/animation-frame/ @qinfchen +/types/animejs/ @A-Babin +/types/annyang/ @hisham @theluk +/types/ansi-colors/ @rogierschouten +/types/ansi-regex/ @mvachhar +/types/ansi-styles/ @brynbellomy +/types/ansicolors/ @rogierschouten +/types/any-db/ @rogierschouten +/types/any-db-transaction/ @rogierschouten +/types/anybar/ @khoomeister +/types/anymatch/ @BendingBender +/types/apex.js/ @y13i +/types/aphrodite/ @asvetliakov +/types/api-error-handler/ @tkrotoff +/types/apigee-access/ @CasperSkydt +/types/apollo-codegen/ @bradleyayers +/types/app-root-path/ @shantmarouti +/types/appdmg/ @unindented +/types/appframework/ @kyo-ago +/types/applepayjs/ @martincostello +/types/appletvjs/ @brainded +/types/applicationinsights-js/ @kamilszostak +/types/arbiter/ @arash16 +/types/arcgis-js-api/v3/ @Esri +/types/arcgis-js-api/ @Esri +/types/arcgis-rest-api/ @JeffJacobson +/types/arcgis-to-geojson-utils/ @JeffJacobson +/types/archiver/ @dolanmiu @crevil +/types/archy/ @vvakame +/types/are-we-there-yet/ @brianloveswords +/types/argon2-browser/ @ivangabriele +/types/argparse/ @arcticwaters @tlaziuk +/types/args/ @Slessi +/types/argv/ @hookclaw +/types/arr-union/ @mrmlnc +/types/array-find-index/ @samverschueren +/types/array-foreach/ @skysteve +/types/array-uniq/ @DanielRosenwasser +/types/arrify/ @wanganjun +/types/artillery/ @kmccoan-allocadia +/types/asana/ @tkqubo +/types/ascii2mathml/ @RagibHasin +/types/asenv/ @remisery +/types/asn1js/ @microshine +/types/aspnet-identity-pw/ @jt000 +/types/assert-equal-jsx/ @seryl +/types/assert-plus/ @KostyaTretyak +/types/assertion-error/ @Bartvds +/types/assertsharp/ @brunolm +/types/assets-webpack-plugin/ @kryops +/types/async/ @borisyankov @kern0 @Penryn @fenying @pascalmartin +/types/async-cache/ @BendingBender +/types/async-lock/ @elisee +/types/async-polling/ @Goldsmith42 +/types/async.nexttick/ @pyrho +/types/asynciterator/ @rubensworks +/types/atmosphere.js/ @toedter @Mory1879 +/types/atom/ @GlenCFL @smhxx @lierdakil +/types/atom-keymap/ @GlenCFL +/types/atom-mocha-test-runner/ @GlenCFL +/types/atpl/ @soywiz +/types/audiosprite/ @Perlmint +/types/auth0/ @wbhob @westy92 @amiram +/types/auth0-angular/ @homesar +/types/auth0-js/v7/ @advancedrei +/types/auth0-js/ @adrianchia @mdurrant @peterblazejewicz +/types/auth0-lock/ @carusology @goldcaddy77 +/types/auth0.widget/ @advancedrei +/types/auto-launch/ @rhysd @unindented +/types/auto-sni/ @janwo +/types/autobahn/ @darkl @valepu +/types/autolinker/ @leonyu +/types/autoprefixer/ @odnamrataizem +/types/autosize/ @kingdango @keika299 @NeekSandhu +/types/awesomplete/ @webbiesdk @bmdixon @tbekolay +/types/aws-iot-device-sdk/ @niik @mlamp +/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex @MichaelMarner @daniel-cottone @kostya-misura @coderbyheart +/types/aws-serverless-express/ @threesquared @jcaffey @mattmeye +/types/aws4/ @ajcrites +/types/axel/ @ruslan-molodyko +/types/azure/ @AndrewGaspar @antiveeranna @SomaticIT +/types/azure-mobile-services-client/ @dmorosinotto +/types/azure-sb/ @Azure +/types/b_/ @outring +/types/babel-code-frame/ @mohsen1 +/types/babel-core/ @yortus @marvinhagemeister +/types/babel-generator/ @yortus @johnnyestilles +/types/babel-plugin-react-pug/ @jpap +/types/babel-plugin-syntax-jsx/ @marvinhagemeister +/types/babel-template/ @yortus @marvinhagemeister +/types/babel-traverse/ @yortus @marvinhagemeister +/types/babel-types/ @yortus @baxtersa @marvinhagemeister @bcherny +/types/babel-webpack-plugin/ @j-f1 +/types/babelify/ @TeamworkGuy2 @marvinhagemeister +/types/babylon/ @yortus @marvinhagemeister +/types/babylon-walk/ @czbuchi +/types/babyparse/ @cdiddy77 +/types/backbone/ @borisyankov @nvivo +/types/backbone-associations/ @craigbrett17 +/types/backbone-fetch-cache/ @delphinus35 +/types/backbone-relational/ @eirikhm +/types/backbone.layoutmanager/ @hejiang2000 +/types/backbone.localstorage/ @lgrignon +/types/backbone.marionette/ @zhamid @nvivo @sventschui +/types/backbone.paginator/ @Nyamazing +/types/backbone.radio/ @alphaleonis +/types/backgrid/ @jlujan +/types/backlog-js/ @vvatanabe +/types/backoff/ @BendingBender +/types/baconjs/ @alexander-matsievsky @gekkio +/types/bagpipes/ @micmro +/types/barcode/ @pvomhoff +/types/bardjs/ @TepigMC +/types/base-64/ @dolanmiu +/types/base-x/ @chrootsu +/types/base16/ @alechill +/types/base64-js/ @pe8ter +/types/bases/ @harikv +/types/bash-glob/ @mrmlnc +/types/basic-auth/ @moonpyk @vesse +/types/batch-stream/ @drudge +/types/bazinga-translator/ @alexndlm +/types/bcrypt/ @codeanimal @IOAyman +/types/bcryptjs/ @RafaelKr +/types/beats/ @urish +/types/bech32/ @micksatana +/types/bem-cn/ @selkinvitaly +/types/better-curry/ @pocesar +/types/better-sqlite3/ @Morfent @matrumz +/types/bezier-easing/ @ptlis +/types/bezier-js/ @danmarshall +/types/bgiframe/ @sumegizoltan +/types/big.js/ @nycdotnet @googol +/types/bigi/ @mhegazy +/types/bigint/ @Evgenus +/types/bignum/ @Patman64 +/types/bigscreen/ @dduugg +/types/binary-parser/ @riggs @dolanmiu +/types/bind-ponyfill/ @skysteve +/types/bindings/ @unindented +/types/bingmaps/ @rbrundritt +/types/bintrees/ @CjS77 +/types/bip21/ @stefanhuber +/types/bip38/ @micksatana +/types/bip39/ @micksatana +/types/bit-array/ @mudkipme +/types/bitcoinjs-lib/ @mhegazy @dlebrecht @rbuckton @micksatana @youssefgh +/types/bittorrent-protocol/ @feross @tlaziuk +/types/bitwise-xor/ @rogierschouten +/types/bl/ @Bartvds +/types/blacklist/ @mhegazy +/types/blazy/ @julienpa +/types/blessed/ @brynbellomy @skellock +/types/blissfuljs/ @fskorzec +/types/blob-stream/ @erichillah +/types/blob-to-buffer/ @nrlquaker +/types/blob-util/ @WorldMaker +/types/blocks/ @ksmigiel +/types/bloomfilter/ @slawiko +/types/blue-tape/ @sodatea +/types/bluebird/v1/ @Bartvds +/types/bluebird/v2/ @Bartvds @falsandtru +/types/bluebird/ @lhecker +/types/bluebird-global/ @d-ph +/types/bluebird-retry/ @pvomhoff +/types/blueimp-md5/ @rmartone @mkohlmyr +/types/body-parser/ @santialbo @vilic @dreampulse @blendsdk @tlaziuk +/types/bonjour/ @quentin-ol @octo-sniffle +/types/bookshelf/ @arcticwaters @vesse +/types/boom/v3/ @rogatty +/types/boom/v4/ @rogatty @AJamesPhillips @jineshshah36 +/types/boom/ @rogatty @AJamesPhillips @jineshshah36 @TimonVS +/types/bootbox/ @vbortone @konpikwastaken @kanup @icereed @trodi @stannynuytkens @renjfk +/types/bootpag/ @rdeneau +/types/bootstrap/ @borisyankov +/types/bootstrap-datepicker/ @borisyankov +/types/bootstrap-fileinput/ @CheCoxshall +/types/bootstrap-maxlength/ @danmana +/types/bootstrap-notify/ @niemyjski @mouse0270 @robert-voica +/types/bootstrap-select/ @LKay +/types/bootstrap-slider/ @dbeckwith @leonard-thieu +/types/bootstrap-switch/ @johnmbaughman +/types/bootstrap-table/ @talatbaig +/types/bootstrap-touchspin/ @albinsunnanbo +/types/bootstrap-treeview/ @jbtronics +/types/bootstrap-validator/ @BradyLiles +/types/bootstrap.paginator/ @derikwhittaker +/types/bootstrap.timepicker/ @derikwhittaker @heatherbooker +/types/bootstrap.v3.datetimepicker/v3/ @bayitajesi +/types/bootstrap.v3.datetimepicker/ @katonap +/types/bounce.js/ @cherrry +/types/box2d/ @jbaldwin +/types/brace-expansion/ @BendingBender +/types/braces/ @vemoo +/types/braft-editor/ @me +/types/braintree-web/ @chlela +/types/breeze/ @borisyankov +/types/bricks.js/ @kondi +/types/brorand/ @chrootsu +/types/browser-bunyan/ @PaulLockwood @kryops +/types/browser-fingerprint/ @LKay +/types/browser-harness/ @scriby +/types/browser-pack/ @TeamworkGuy2 +/types/browser-report/ @JTOne123 +/types/browser-resolve/ @marionebl +/types/browser-sync/ @joeskeen +/types/browserify/ @AndrewGaspar @jvilk @leonard-thieu +/types/bs58/ @chrootsu +/types/bson/ @horiuchi @CaselIT +/types/bucks/ @zaneli +/types/buffer-compare/ @chrootsu +/types/buffer-equal/ @Bartvds +/types/buffers/ @rhencke +/types/bufferstream/ @Bartvds +/types/bull/v2/ @bgrieder @JProgrammer +/types/bull/ @bgrieder @JProgrammer @marshall007 @weeco +/types/bump-regex/ @silkentrance +/types/bunnymq/ @cyrilschumacher +/types/bunyan/ @amikhalev +/types/bunyan-blackhole/ @olivr70 +/types/bunyan-bugsnag/ @pasieronen +/types/bunyan-config/ @cyrilschumacher +/types/bunyan-format/ @dex4er +/types/bunyan-prettystream/ @jasonswearingen @enlight +/types/bunyan-winston-adapter/ @stevehipwell +/types/busboy/ @jacobbaskin +/types/business-rules-engine/ @rsamec +/types/bwip-js/ @MugeSo +/types/byline/ @reppners +/types/bytebuffer/ @cappellin +/types/bytes/ @danny8002 +/types/c3/ @mcliment @gerinjacob @denyo +/types/cache-manager/ @GausSim +/types/cal-heatmap/ @RetroChrisB +/types/callsite/ @newclear +/types/callsites/ @BendingBender +/types/calq/ @eirikhm +/types/camelcase/ @samverschueren +/types/camelcase-keys/ @mhegazy +/types/camo/ @lucasmciruzzi +/types/cancan/ @Vincent-Pang +/types/cannon/ @clark-stevenson @Gelio +/types/canvas-gauges/ @Mikhus +/types/canvasjs/ @brutalimp +/types/capitalize/ @frederickfogerty +/types/card-validator/ @ChanceM +/types/case-sensitive-paths-webpack-plugin/ @r3nya +/types/caseless/ @downace +/types/cash/ @akvlko +/types/casperjs/ @jedmao @urielch +/types/cassandra-driver/ @Svjard +/types/catbox/ @jasonswearingen @AJamesPhillips +/types/cbor/ @pushplay +/types/ccap/ @taoqf +/types/chai/v2/ @Bartvds @AGBrown +/types/chai/ @jedmao @Bartvds @AGBrown @olivr70 @mwistrand @joshuakgoldberg @shaunluttin @Naktibalda @micksatana +/types/chai-arrays/ @clementprevot +/types/chai-as-promised/ @jt000 @Kuniwak @leonard-thieu @lazerwalker @mattbishop +/types/chai-datetime/ @cliffburger +/types/chai-dom/ @mattlewis92 +/types/chai-enzyme/ @asvetliakov +/types/chai-fuzzy/ @Bartvds +/types/chai-http/ @Nemo157 @G1itcher @CaselIT +/types/chai-jest-snapshot/ @mattvperry +/types/chai-jquery/ @kazimanzurrashid +/types/chai-json-schema/ @ulrichheiniger +/types/chai-oequal/ @mizunashi-mana +/types/chai-spies/ @kuzn-ilya +/types/chai-string/ @nmalaguti +/types/chai-subset/ @delta62 @AGBrown +/types/chai-webdriverio/ @sherlock1982 +/types/chai-xml/ @jedigo +/types/chance/ @cbowdon @brikou +/types/change-emitter/ @iskandersierra +/types/charm/ @Xananax +/types/chart.js/ @anuti @FabienLavocat @KentarouTakeda @larrybahr @mernen @josefpaij @danmana +/types/chartist/ @mtgibbs @psimonski @clottman +/types/chayns/ @HenningKuehl +/types/check-sum/ @BendingBender +/types/check-types/ @idchlife +/types/checkstyle-formatter/ @mhegazy +/types/checksum/ @rogierschouten +/types/cheerio/ @blittle @wmaurer @umarniz @LiJinyao +/types/chmodr/ @BendingBender +/types/chokidar/ @reppners @felixfbecker @bayssmekanique +/types/chosen-js/ @borisyankov @denisname +/types/chownr/ @BendingBender +/types/chroma-js/v0/ @invliD +/types/chroma-js/ @invliD @mpacholec +/types/chrome/ @matthewkimber @otiai10 @couven92 @rreverser @sreimer15 +/types/circular-json/ @jpevarnek +/types/ckeditor/ @wittwert +/types/clamp-js/ @Hikariii +/types/clamp-js-main/ @sinziananicolae +/types/classnames/ @adidahiya @JKillian @seansfkelley @mradamczyk @marvinhagemeister +/types/cldrjs/ @RamanBut-Husaim @gcastre +/types/clean-css/ @tkrotoff +/types/clean-stack/ @BendingBender +/types/clean-webpack-plugin/ @j-f1 +/types/clear-require/ @dan-j +/types/cleave.js/ @clentfort @jasongi-at-sportsbet +/types/cli/ @kayahr +/types/cli-color/ @ChaosinaCan +/types/cli-spinner/ @janslow +/types/cli-table2/ @mgroenhoff +/types/client-sessions/ @netroy +/types/cliff/ @brynbellomy +/types/clipboard/ @impworks +/types/clipboard-js/ @markwongsk +/types/clipboardy/ @BendingBender +/types/clndr/ @jasperjn +/types/clockpicker/ @jfcere +/types/closure-compiler/ @mprobst +/types/cloud-env/ @Morfent +/types/cloudflare-apps/ @MartynasZilinskas +/types/cls-hooked/ @aleung +/types/clusterize.js/ @Pr1st0n +/types/cmd-shim/ @cspotcode +/types/co-body/ @geoffreak +/types/co-views/ @devlee @geoffreak +/types/code/ @prashaantt +/types/codemirror/ @mihailik @nrbernard @Pr1st0n +/types/codependency/ @morphatic +/types/coffeeify/ @tkQubo +/types/coinbase/ @rogierschouten +/types/coinstring/ @mhegazy +/types/collections/ @scarabedore +/types/color/v0/ @LKay +/types/color/v1/ @LKay +/types/color/ @Airlun +/types/color-convert/ @Airlun +/types/color-name/ @Ailrun +/types/color-string/ @BendingBender @danmarshall +/types/colorbrewer/ @mtraynham +/types/colors/ @Bartvds @staeke +/types/com.darktalker.cordova.screenshot/ @akarienta +/types/combine-source-map/ @TeamworkGuy2 +/types/combined-stream/ @felixge @tlaziuk +/types/combokeys/ @iclanton +/types/cometd/ @derekcicerone +/types/command-line-args/ @CzBuCHi +/types/command-line-commands/ @CzBuCHi +/types/commangular/ @hiraash +/types/comment-json/ @Jason3S +/types/common-tags/ @zuzusik @tzupengwang +/types/commonmark/ @nicojs @leonard-thieu +/types/compare-version/ @jpevarnek +/types/complex/ @AyaMorisawa +/types/component-emitter/ @psnider +/types/compose-function/ @denis-sokolov +/types/compressible/ @BendingBender +/types/compression/ @santialbo +/types/compression-webpack-plugin/ @dublicator +/types/compute-stdev/ @mrmlnc +/types/concat-stream/ @jmarianer +/types/concaveman/ @DenisCarriere +/types/conf/v0/ @SamVerschueren +/types/conf/ @SamVerschueren @BendingBender +/types/confidence/ @jppellerin +/types/config/ @RWander @forrestbice @jndonald3 +/types/configstore/ @ArcticLight +/types/confit/ @ethanresnick +/types/connect/ @SomaticIT +/types/connect-busboy/ @pinguet62 +/types/connect-ensure-login/ @0x6368656174 +/types/connect-flash/ @AndreasGassmann +/types/connect-history-api-fallback/ @douglasduteil +/types/connect-livereload/ @SomaticIT +/types/connect-modrewrite/ @tinganho +/types/connect-mongo/ @Syati +/types/connect-pg-simple/ @pasieronen +/types/connect-redis/ @xstoudi @morcerf +/types/connect-slashes/ @samherrmann +/types/connect-timeout/ @cyrilschumacher +/types/console-stamp/ @ericbyers +/types/consolidate/ @soywiz @theosherry @nicolashenry +/types/consul/ @chrootsu +/types/content-disposition/ @bomret +/types/content-type/ @horiuchi @BendingBender +/types/contentful-resolve-response/ @antonkarsten +/types/contextjs/ @kernhanda +/types/continuation-local-storage/ @rath @heycalmdown @aboveyou00 +/types/convert-hrtime/ @BendingBender +/types/convert-layout/ @xeningem +/types/convert-source-map/ @AndrewGaspar @mgroenhoff @TeamworkGuy2 +/types/convict/ @Nemo157 @vesse @elyscape +/types/cookie/ @pine613 +/types/cookie-parser/ @santialbo @BendingBender +/types/cookie-session/ @borislavjivkov +/types/cookie-signature/ @lith-light-g +/types/cookie_js/ @slawiko +/types/cookies/ @WangZishi @jkeylu @BendingBender +/types/copy-paste/ @SrTobi +/types/copy-text-to-clipboard/ @BendingBender +/types/copy-webpack-plugin/ @flying-sheep +/types/cordova-ionic/ @hendrikmaus +/types/cordova-plugin-app-version/ @Ritzlgrmft +/types/cordova-plugin-background-mode/ @Lordnoname +/types/cordova-plugin-badge/ @timbru31 +/types/cordova-plugin-ble-central/ @gjunge +/types/cordova-plugin-canvascamera/ @lordazzi +/types/cordova-plugin-device-name/ @larrybahr +/types/cordova-plugin-file-opener2/ @cyrilgandon +/types/cordova-plugin-ibeacon/ @Ritzlgrmft +/types/cordova-plugin-insomnia/ @Ritzlgrmft +/types/cordova-plugin-keyboard/ @danmana @jkfb +/types/cordova-plugin-mapsforge/ @rafw87 +/types/cordova-plugin-ms-adal/ @KaiWalter +/types/cordova-plugin-native-keyboard/ @lobo87 +/types/cordova-plugin-ouralabs/ @Justin-Credible +/types/cordova-plugin-qrscanner/ @bitjson @jab +/types/cordova-plugin-spinner/ @Justin-Credible +/types/cordova-plugin-x-socialsharing/ @Ritzlgrmft @larrybahr +/types/cordova-sqlite-storage/ @rafw87 +/types/cordova-universal-links-plugin/ @broder +/types/cordova_app_version_plugin/ @larrybahr +/types/cordovarduino/ @hendrikmaus +/types/core-js/ @rbuckton @mfdeveloper +/types/cote/ @makepost +/types/couchbase/ @maouida +/types/countdown/ @gjuchault +/types/counterpart/ @santiagodoldan +/types/countries-and-timezones/ @zero51 +/types/country-list/ @iRoachie +/types/country-select-js/ @humrochagf +/types/coverup/ @bevalorous +/types/cp-file/ @BendingBender +/types/cpx/ @alan-agius4 +/types/cpy/ @mhegazy @BendingBender +/types/cqrs-domain/ @blissi +/types/cradle/ @panuhorsmalahti +/types/crc/ @YuJianrong +/types/create-error/ @tkrotoff +/types/create-react-class/ @jgoz +/types/createjs/ @evilangelist @gyohk +/types/createjs-lib/ @evilangelist @gyohk +/types/credential/ @phuvo +/types/credit-card-type/ @LKay +/types/cron/ @horiuchi +/types/cropperjs/ @stepancar +/types/croppie/ @connor4312 @dklmuc @sarunint +/types/crossfilter/ @schmuli @iebaker @nordfjord +/types/crossroads/ @diullei +/types/cryptiles/ @awendland +/types/crypto-js/ @misak113 +/types/cryptojs/ @giabao +/types/cson/ @stpettersens +/types/csprng/ @winksaville +/types/csrf/ @markis +/types/css/ @ilich +/types/css-font-loading-module/ @slikts +/types/css-modules/ @NeekSandhu +/types/cssbeautify/ @rictic +/types/csurf/ @horiuchi +/types/csv-parse/ @davidm77 @obi-jan-kenobi +/types/csv-stringify/ @rogierschouten @arjenvanderende +/types/csvrow/ @codeanimal +/types/csvtojson/ @EricByers @wcarson +/types/cucumber/v1/ @abraaoalves @jan-molak @isoung @BendingBender +/types/cucumber/ @abraaoalves @jan-molak @isoung @BendingBender @ErikSchierboom +/types/currency-formatter/ @mhegazy @davidmpaz +/types/custom-error-generator/ @thmiceli +/types/cwise/ @taoqf +/types/cwise-compiler/ @taoqf +/types/cwise-parser/ @taoqf +/types/cybozulabs-md5/ @pine613 +/types/cytoscape/ @phreed @wy193777 @ypconstante +/types/d3/v3/ @gustavderdrache @borisyankov @MatthiasJobst +/types/d3/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-array/ @gustavderdrache @borisyankov @tomwanzek +/types/d3-axis/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-box/ @lk-chen +/types/d3-brush/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-chord/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-collection/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-color/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-contour/ @tomwanzek @Ledragon +/types/d3-dispatch/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-drag/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-dsv/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-ease/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-force/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-format/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-geo/ @Ledragon @tomwanzek @gustavderdrache @borisyankov +/types/d3-hexbin/ @uncovertruth @tomwanzek +/types/d3-hierarchy/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-hsv/ @arrayjam +/types/d3-interpolate/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-path/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-polygon/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-quadtree/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-queue/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-random/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-request/ @Ledragon @gustavderdrache @borisyankov @tomwanzek +/types/d3-sankey/ @tomwanzek @gustavderdrache +/types/d3-scale/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-scale-chromatic/ @Ledragon @gustavderdrache @borisyankov @henriquefm +/types/d3-selection/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-selection-multi/ @gustavderdrache @borisyankov +/types/d3-shape/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-time/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-time-format/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-timer/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-tip/ @brspnnggrt +/types/d3-transition/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-voronoi/ @tomwanzek @gustavderdrache @borisyankov +/types/d3-zoom/ @tomwanzek @gustavderdrache @borisyankov +/types/d3.cloud.layout/ @hansrwindhoff +/types/d3.slider/ @lk-chen +/types/d3kit/ @morphatic +/types/d3pie/ @mc-petry +/types/dagre/ @qinfchen @Frankrike @vilterp @rustedgrail +/types/dagre-d3/ @markwongsk +/types/dagre-layout/ @qinfchen @Frankrike @vilterp +/types/dargs/ @BendingBender +/types/dat-gui/ @gyohk @sonic3d @rroylance +/types/data-driven/ @mrhen +/types/datadog-metrics/ @pushplay +/types/datatables.net/ @Silver-Connection @omidkrad @pragmatrix @CNBoland +/types/datatables.net-buttons/ @Silver-Connection @SammyG4Free @jimhartford +/types/datatables.net-fixedheader/ @szechyjs @Silver-Connection +/types/datatables.net-rowreorder/ @baywet +/types/datatables.net-select/ @szechyjs +/types/date-arithmetic/ @HeeL +/types/date.format.js/ @balrob +/types/dateformat/ @aicest +/types/datejs/ @rupertavery +/types/daterangepicker/ @SirMartin @smasala @nertzy +/types/db-migrate-base/ @nickiannone +/types/db-migrate-pg/ @nickiannone +/types/db.js/ @cgwrench +/types/dc/ @hansrwindhoff @mtraynham @MatthiasJobst +/types/deasync/ @Sicilica +/types/debessmann/ @vkorehov +/types/debounce/ @denis-sokolov +/types/debug/ @swook @galtalmor @zamb3zi +/types/decamelize/ @samverschueren +/types/decay/ @enaeseth +/types/decompress/ @plantain-00 +/types/decorum/ @dflor003 +/types/dedent/ @douglasduteil +/types/deep-assign/ @souldreamer +/types/deep-diff/ @ZauberNerd +/types/deep-equal/ @remojansen @janslow +/types/deep-extend/ @rhysd +/types/deep-freeze/ @Bartvds @aluanhaddad +/types/deep-freeze-es6/ @mattbishop +/types/deep-freeze-strict/ @mhegazy +/types/deepmerge/ @marvinscharle @syy1125 +/types/defaults/ @IbtihelCHNAB +/types/defer-promise/ @niklasf +/types/define-lazy-prop/ @BendingBender +/types/defined/ @BendingBender +/types/deku/ @pocka +/types/del/v2/ @AyaMorisawa +/types/del/ @AyaMorisawa @BendingBender +/types/delaunator/ @DenisCarriere +/types/delay/ @BendingBender +/types/denodeify/ @joaomoreno +/types/deoxxa-content-type/ @pine613 +/types/depcheck/ @ark120202 +/types/depd/ @danny8002 @BendingBender +/types/deployjava/ @cyrilschumacher +/types/destroy/ @BendingBender +/types/destroy-on-hwm/ @BendingBender +/types/detect-browser/ @rogierschouten +/types/detect-hover/ @thomastilkema +/types/detect-indent/v0/ @Bartvds +/types/detect-indent/ @Bartvds @BendingBender +/types/detect-it/ @thomastilkema +/types/detect-newline/ @BendingBender +/types/detect-passive-events/ @thomastilkema +/types/detect-pointer/ @thomastilkema +/types/detect-port/ @lith-light-g +/types/detect-touch-events/ @thomastilkema +/types/df-visible/ @Litee +/types/dhtmlxgantt/ @mkozhukh @chriscamicas +/types/dhtmlxscheduler/ @mkozhukh +/types/di-lite/ @dcrusader +/types/diacritics/ @otociulis +/types/diff/ @vvakame +/types/diff2html/ @rtfpessoa +/types/dir-resolve/ @andy-ms +/types/discontinuous-range/ @OiCMudkips +/types/disposable-email-domains/ @geoffreak +/types/doccookies/ @jonegerton +/types/dockerode/ @seikho @nlaplante @isac322 @lazarusx @meisenzahl +/types/docopt/ @giggio +/types/doctrine/ @rictic +/types/documentdb/ @NoelAbrahams @brettferdosi @ctstone @yifanwu +/types/documentdb-server/ @lith-light-g +/types/documentdb-session/ @DanielRosenwasser +/types/dojo/ @vansimke +/types/dom-inputevent/ @diagramatics +/types/dom4/ @adidahiya @giladgray +/types/domo/ @Steve-Fenton +/types/dompurify/ @bazuzi +/types/domready/ @dotnetnerd +/types/donna/ @vvakame +/types/dookie/ @swanest +/types/dot/ @ZombieHunter +/types/dot-object/ @nkovacic +/types/dot-prop/v2/ @samverschueren +/types/dot-prop/ @samverschueren @BendingBender +/types/dotdir-regex/ @mrmlnc +/types/dotdotdot/ @milanjaros +/types/dotenv/v2/ @jussikinnula @borekb @enaeseth +/types/dotenv/ @jussikinnula @borekb @enaeseth +/types/dotenv-safe/ @krenor +/types/dotfile-regex/ @mrmlnc +/types/dottie/ @domarmstrong +/types/double-ended-queue/ @dsagal +/types/doublearray/ @mzsm +/types/doubleclick-gpt/ @johngeorgewright +/types/download/ @nicojs +/types/downloadjs/ @cwmoo740 +/types/draft-js/ @dmitryrogozhny @eelco @ghotiphud @schwers @michael-yx-wu @willisplummer @smvilar +/types/drag-timetable/ @chinkan +/types/draggabilly/ @jaydubu +/types/dragster/ @zskovacs +/types/dragula/ @pwelter34 @abruzzihraig +/types/dropboxjs/ @Steve-Fenton @xperiments +/types/dropkickjs/ @VorobeY1326 +/types/dropzone/v4/ @nvivo @outring @renuo @Hikariii +/types/dropzone/ @nvivo @outring @renuo @Hikariii @tedbcsgpro +/types/dts-generator/ @mtraynham +/types/duplexer2/ @Goldsmith42 +/types/duplexer3/ @BendingBender +/types/duplexify/ @strax +/types/duplicate-package-checker-webpack-plugin/ @mtraynham +/types/durandal/ @BlueSpire +/types/dustjs-linkedin/ @mdezem +/types/dvtng-jss/ @Ptival +/types/dw-bxslider-4/ @namerci +/types/dwt/v12/ @yushulx +/types/dwt/ @yushulx @jbh +/types/dygraphs/ @danvk +/types/dymo-label-framework/ @thijskuipers +/types/dynatable/ @francoismassart +/types/dynogels/ @SpartanLabs +/types/each/ @misak113 +/types/easeljs/ @evilangelist +/types/easy-api-request/ @DeadAlready +/types/easy-jsend/ @DeadAlready +/types/easy-session/ @DeadAlready +/types/easy-table/ @nikeee +/types/easy-xapi/ @DeadAlready +/types/easy-xapi-utils/ @DeadAlready +/types/ebongarde-root/ @Ebongarde +/types/echarts/ @xieisabug @AntiMoron +/types/ecurve/ @mhegazy +/types/ed25519/ @erikma +/types/egg-mock/ @sheperdwind +/types/egg.js/ @ToastHawaii +/types/egjs__axes/ @naver +/types/egjs__component/ @naver +/types/ej.web.all/ @syncfusion +/types/ejs/ @benliddicott +/types/ejs-locals/ @jt000 +/types/ejson/ @shantanubhadoria +/types/elasticsearch/ @CasperSkydt @bfsmith @ddunkin @pushplay @mlamp @ahmadferdous @SimonSchick +/types/electron-config/ @mrfunkycold @unindented +/types/electron-debug/ @unindented +/types/electron-devtools-installer/ @gamesmaxed +/types/electron-is-dev/ @trodi +/types/electron-json-storage/ @stpettersens @nrlquaker @jbw91 +/types/electron-notifications/ @djpereira +/types/electron-notify/ @djpereira +/types/electron-packager/ @SomaticIT @cortopy +/types/electron-settings/v2/ @leonard-thieu +/types/electron-settings/ @icopp @nrlquaker +/types/electron-spellchecker/ @unindented +/types/electron-store/ @unindented +/types/electron-util/ @kputh +/types/electron-window-state/ @rhysd +/types/electron-winstaller/ @shiftkey @unindented +/types/element-ready/ @BendingBender +/types/element-resize-detector/ @saranshkataria +/types/element-resize-event/ @rogierschouten @plgregoire +/types/elm/ @thSoft +/types/email-templates/ @cyrilschumacher @gurisko @blankstar85 +/types/ember/v1/ @jedmao +/types/ember/ @jedmao @bttf @dwickern @chriskrycho @theroncross @mfeckie +/types/ember-data/ @dwickern @mike-north +/types/ember-feature-flags/ @tansongyang +/types/ember-mocha/ @dwickern +/types/ember-modal-dialog/ @tansongyang +/types/ember-qunit/v2/ @dwickern +/types/ember-qunit/ @dwickern +/types/ember-test-helpers/ @dwickern +/types/ember-testing-helpers/ @chriskrycho +/types/emissary/ @vvakame +/types/emoji-mart/ @Kovensky +/types/emojione/ @dbrgn +/types/empower/ @vvakame +/types/emscripten/ @zakki @periklis +/types/end-of-stream/ @strax +/types/engine.io/ @KentarouTakeda +/types/engine.io-client/ @KentarouTakeda +/types/enhanced-resolve/ @e-cloud @onigoetz +/types/enigma.js/ @konne +/types/ent/ @rogierschouten +/types/entities/ @aliceklipper +/types/env-to-object/ @MugeSo +/types/envify/ @tkQubo +/types/enzyme/ @MarianPalkus @NoHomey @jwbay @huhuanming @MartynasZilinskas @thovden +/types/enzyme-adapter-react-15/ @tkrotoff +/types/enzyme-adapter-react-16/ @tkrotoff +/types/enzyme-to-json/ @joscha +/types/eonasdan-bootstrap-datetimepicker/ @ToastHawaii +/types/epiceditor/ @borisyankov +/types/epilogue/ @micksatana +/types/epub/ @julien-c +/types/eq.js/ @stephenlautier +/types/errorhandler/ @santialbo +/types/es6-collections/ @rbuckton +/types/es6-promisify/ @harryshipton +/types/es6-shim/ @rbuckton +/types/es6-weak-map/ @pine +/types/escape-html/ @elisee +/types/escape-latex/ @olsio +/types/escape-string-regexp/ @kruncher @faergeek +/types/escodegen/ @simondel +/types/eslint-plugin-prettier/ @ikatyang +/types/esprima/v2/ @teppeis @RReverser +/types/esprima/ @teppeis @RReverser @peter-scott +/types/esprima-walk/ @tswaters +/types/espruino/ @stasberkov +/types/esri-leaflet/ @strajuser +/types/esri-leaflet-geocoder/ @BendingBender +/types/estraverse/ @sanex3339 +/types/estree/ @RReverser +/types/etag/ @BendingBender +/types/ethjs-signer/ @doppio +/types/eureka-js-client/ @Schnillz +/types/evaporate/ @kookster @chrisrhoden +/types/event-emitter/ @LKay +/types/event-kit/ @GlenCFL +/types/event-loop-lag/ @rogierschouten +/types/event-stream/ @flcdrg +/types/event-to-promise/ @flying-sheep +/types/events/ @yasupeke +/types/evernote/ @corps +/types/exceljs/ @rogierschouten @alitaheri +/types/execa/ @douglasduteil @BendingBender @borekb @mickdekkers +/types/exit/ @Bartvds +/types/exit-hook/ @BendingBender +/types/exorcist/ @TeamworkGuy2 +/types/expect/ @jmreidy @merrywhether +/types/expect.js/ @teppeis +/types/expectations/ @vvakame +/types/expo/v23/ @KonstantinKai +/types/expo/ @KonstantinKai @martynaskadisa +/types/expr-eval/ @connor4312 +/types/express/ @borisyankov +/types/express-brute/ @cyrilschumacher +/types/express-brute-memcached/ @cyrilschumacher +/types/express-brute-mongo/ @cyrilschumacher +/types/express-brute-redis/ @scottharwell +/types/express-busboy/ @pinguet62 +/types/express-cluster/ @nenadalm +/types/express-debug/ @federicobond +/types/express-domain-middleware/ @hookclaw +/types/express-ejs-layouts/ @erikma +/types/express-enforces-ssl/ @kevinstubbs +/types/express-fileupload/ @Naktibalda +/types/express-flash-2/ @mathsalmi +/types/express-flash-notification/ @Mister4Eyes +/types/express-formidable/ @tdolsen @evanshortiss +/types/express-graphql/ @isman-usoh @nitintutlani @hubel +/types/express-handlebars/ @stpettersens @yhaskell +/types/express-jwt/ @wokim @kacepe @Sl1MBoy +/types/express-less/ @xieyubo +/types/express-minify/ @borislavjivkov +/types/express-mongo-sanitize/ @ericbyers +/types/express-mung/ @cyrilschumacher +/types/express-myconnection/ @Cellule +/types/express-mysql-session/ @Akim95 +/types/express-oauth-server/ @atd-schubert +/types/express-openapi/ @mugeso +/types/express-partials/ @jt000 +/types/express-promise-router/ @wanganjun +/types/express-rate-limit/ @cyrilschumacher @makepost +/types/express-route-fs/ @kripod +/types/express-sanitized/ @cjbarth +/types/express-serve-static-core/ @borisyankov @19majkel94 @kacepe @micksatana +/types/express-session/ @horiuchi @jacobbogers +/types/express-unless/ @wokim +/types/express-winston/ @bricka +/types/extend/ @reppners +/types/extjs/ @brian428 +/types/extract-stack/ @BendingBender +/types/extract-text-webpack-plugin/ @flying-sheep @katyo +/types/extract-zip/ @mizunashi-mana +/types/eyes/ @brynbellomy +/types/f1/ @neolwc +/types/fabric/ @oklemencic @joewashear007 @mrand01 +/types/facebook-js-sdk/ @amritk +/types/facebook-pixel/ @noctishsu +/types/faker/v3/ @Kuniwak +/types/faker/ @bensw @basp @Kuniwak @mattbishop +/types/falcor/ @Quramy +/types/falcor-express/ @Quramy +/types/falcor-http-datasource/ @Quramy +/types/falcor-json-graph/ @Quramy +/types/falcor-router/ @Quramy @cdhgee +/types/famous/ @borisvasilenko +/types/fancy-log/ @pine +/types/fancybox/ @borisyankov +/types/farbtastic/ @EnableSoftware +/types/fast-diff/ @djrenren +/types/fast-levenshtein/ @mizunashi-mana +/types/fast-list/ @BendingBender +/types/fast-stats/ @rogierschouten +/types/fastclick/ @shinnn +/types/favico.js/ @drowse314-dev-ymat +/types/fb/ @JoshStrobl +/types/fbemitter/ @kmxz +/types/featherlight/ @xStrom +/types/feedme/ @codeanimal +/types/feedparser/ @cortopy +/types/fetch-jsonp/ @tkrotoff +/types/fetch-mock/ @asvetliakov @tamird @merrywhether @chrissinclair +/types/fetch.io/ @newraina +/types/ffi/ @loyd +/types/ffmpeg-static/ @iamstevetran +/types/ffprobe-static/ @iamstevetran +/types/fibers/ @soywiz +/types/figures/ @BendingBender +/types/file-exists/ @BendingBender +/types/file-saver/ @cyrilschumacher @DaIgeb @chrismbarr +/types/file-type/ @tcaesvk @BendingBender +/types/file-url/ @coderslagoon +/types/filenamify/ @rokt33r +/types/filesize/ @GiedriusGrabauskas +/types/fill-pdf/ @westy92 +/types/finalhandler/ @chrootsu +/types/finch/ @DavidSichau +/types/find/ @andypyrope +/types/find-up/ @BendingBender +/types/findup-sync/ @Bartvds @ngbrown +/types/fingerprintjs/ @zaneli +/types/fingerprintjs2/ @curtstate +/types/firebase-client/ @fpsscarecrow +/types/firebase-token-generator/ @dotdotcommadot +/types/firebird/ @karak +/types/firefox/ @vvakame +/types/firefox-webext-browser/ @bomjacob +/types/firmata/ @troywweber7 +/types/first-mate/ @GlenCFL +/types/fixed-data-table/ @pepaar @stephenjelfs +/types/fixed-data-table-2/ @ilivit +/types/flat/ @chrootsu +/types/flexslider/ @diullei +/types/flickity/ @clmcgrath @wagich +/types/flight/ @jonathanhedren +/types/flightplan/ @borislavjivkov +/types/flipsnap/ @kubosho @gsino @mayuki +/types/flot/ @burlandm @Anticom @admiralsmaster +/types/flowjs/ @ryan10132 +/types/fluent-ffmpeg/ @tcaesvk @DingWeizhe +/types/flux/ @stkb @GiedriusGrabauskas +/types/fluxxor/ @mrk21 +/types/fm-websync/ @markusmauch +/types/fontfaceobserver/ @RandScullard +/types/fontoxml/ @rolandzwaga +/types/forever-monitor/ @shuntksh +/types/forge-di/ @adamcarr +/types/form-data/ @soywiz @leonyu @BendingBender +/types/form-serializer/ @flqw +/types/form-urlencoded/ @alepee +/types/format-duration/ @Roaders +/types/format-io/ @amitbeck +/types/format-unicorn/ @kruncher +/types/formidable/ @Nemo157 +/types/forwarded/ @BendingBender +/types/fossil-delta/ @endel +/types/foundation/ @borisyankov +/types/fpsmeter/ @alampros +/types/framebus/ @kbukum +/types/freedom/ @jpevarnek +/types/freeport/ @atd-schubert +/types/fresh/ @BendingBender +/types/friendly-errors-webpack-plugin/ @bahlo +/types/frisby/ @johnny4753 +/types/from/ @Bartvds +/types/from2/ @BendingBender +/types/fromjs/ @glenndierckx +/types/fromnow/ @marinewater +/types/fs-cson/ @dex4er +/types/fs-ext/ @OguzhanE +/types/fs-extra/v4/ @alan-agius4 @midknight41 @shiftkey @mees- +/types/fs-extra/ @alan-agius4 @midknight41 @shiftkey @mees- +/types/fs-extra-promise/ @midknight41 @jasonswearingen @HiromiShikata +/types/fs-extra-promise-es6/ @midknight41 @jasonswearingen @geoffreak @HiromiShikata +/types/fs-finder/ @misak113 +/types/fs-mock/ @rogierschouten +/types/fs-plus/ @unindented +/types/fs-promise/ @tarruda +/types/fs-readdir-recursive/ @pscanf +/types/fs-readfile-promise/ @mtsg +/types/fscreen/ @joscha +/types/fsevents/ @BendingBender +/types/ftdomdelegate/ @dotnetnerd +/types/ftp/ @rogierschouten +/types/ftpd/ @rogierschouten +/types/fullname/ @kayahr +/types/fullpage.js/ @jodiwarren +/types/fuse/ @smrq +/types/fusioncharts/ @rohitkr @shivarajkv +/types/fuzzaldrin/ @mhegazy +/types/fuzzaldrin-plus/ @jeancroy @jkillian +/types/fuzzyset/ @lgrignon +/types/fuzzyset.js/ @lgrignon +/types/fxn/ @charrondev +/types/gae.channel.api/ @vvakame +/types/gamequery/ @Laubi +/types/gandi-livedns/ @xstoudi +/types/gapi/ @sgtfrankieboy +/types/gapi.analytics/ @gatsbimantico +/types/gapi.auth2/ @flawless2011 +/types/gapi.calendar/ @tkrotoff +/types/gapi.client/ @Bolisov +/types/gapi.client.acceleratedmobilepageurl/ @Bolisov +/types/gapi.client.adexchangebuyer/ @Bolisov +/types/gapi.client.adexchangebuyer2/ @Bolisov +/types/gapi.client.adexchangeseller/ @Bolisov +/types/gapi.client.adexperiencereport/ @Bolisov +/types/gapi.client.admin/ @Bolisov +/types/gapi.client.adsense/ @Bolisov +/types/gapi.client.adsensehost/ @Bolisov +/types/gapi.client.analytics/ @Bolisov +/types/gapi.client.analyticsreporting/ @Bolisov +/types/gapi.client.androiddeviceprovisioning/ @Bolisov +/types/gapi.client.androidenterprise/ @Bolisov +/types/gapi.client.androidmanagement/ @Bolisov +/types/gapi.client.androidpublisher/ @Bolisov +/types/gapi.client.appengine/ @Bolisov +/types/gapi.client.appsactivity/ @Bolisov +/types/gapi.client.appstate/ @Bolisov +/types/gapi.client.bigquery/ @Bolisov +/types/gapi.client.bigquerydatatransfer/ @Bolisov +/types/gapi.client.blogger/ @Bolisov +/types/gapi.client.books/ @Bolisov +/types/gapi.client.calendar/ @Bolisov +/types/gapi.client.civicinfo/ @Bolisov +/types/gapi.client.classroom/ @Bolisov +/types/gapi.client.cloudbilling/ @Bolisov +/types/gapi.client.cloudbuild/ @Bolisov +/types/gapi.client.clouddebugger/ @Bolisov +/types/gapi.client.clouderrorreporting/ @Bolisov +/types/gapi.client.cloudfunctions/ @Bolisov +/types/gapi.client.cloudiot/ @Bolisov +/types/gapi.client.cloudkms/ @Bolisov +/types/gapi.client.cloudmonitoring/ @Bolisov +/types/gapi.client.cloudresourcemanager/ @Bolisov +/types/gapi.client.cloudtasks/ @Bolisov +/types/gapi.client.cloudtrace/ @Bolisov +/types/gapi.client.clouduseraccounts/ @Bolisov +/types/gapi.client.compute/ @Bolisov +/types/gapi.client.consumersurveys/ @Bolisov +/types/gapi.client.container/ @Bolisov +/types/gapi.client.content/ @Bolisov +/types/gapi.client.customsearch/ @Bolisov +/types/gapi.client.dataflow/ @Bolisov +/types/gapi.client.dataproc/ @Bolisov +/types/gapi.client.datastore/ @Bolisov +/types/gapi.client.deploymentmanager/ @Bolisov +/types/gapi.client.dfareporting/ @Bolisov +/types/gapi.client.discovery/ @Bolisov +/types/gapi.client.dlp/ @Bolisov +/types/gapi.client.dns/ @Bolisov +/types/gapi.client.doubleclickbidmanager/ @Bolisov +/types/gapi.client.doubleclicksearch/ @Bolisov +/types/gapi.client.drive/ @Bolisov +/types/gapi.client.firebasedynamiclinks/ @Bolisov +/types/gapi.client.firebaseremoteconfig/ @Bolisov +/types/gapi.client.firebaserules/ @Bolisov +/types/gapi.client.firestore/ @Bolisov +/types/gapi.client.fitness/ @Bolisov +/types/gapi.client.fusiontables/ @Bolisov +/types/gapi.client.games/ @Bolisov +/types/gapi.client.gamesconfiguration/ @Bolisov +/types/gapi.client.gamesmanagement/ @Bolisov +/types/gapi.client.genomics/ @Bolisov +/types/gapi.client.gmail/ @Bolisov +/types/gapi.client.groupsmigration/ @Bolisov +/types/gapi.client.groupssettings/ @Bolisov +/types/gapi.client.iam/ @Bolisov +/types/gapi.client.identitytoolkit/ @Bolisov +/types/gapi.client.kgsearch/ @Bolisov +/types/gapi.client.language/ @Bolisov +/types/gapi.client.licensing/ @Bolisov +/types/gapi.client.logging/ @Bolisov +/types/gapi.client.manufacturers/ @Bolisov +/types/gapi.client.mirror/ @Bolisov +/types/gapi.client.ml/ @Bolisov +/types/gapi.client.monitoring/ @Bolisov +/types/gapi.client.oauth2/ @Bolisov +/types/gapi.client.oslogin/ @Bolisov +/types/gapi.client.pagespeedonline/ @Bolisov +/types/gapi.client.partners/ @Bolisov +/types/gapi.client.people/ @Bolisov +/types/gapi.client.playcustomapp/ @Bolisov +/types/gapi.client.playmoviespartner/ @Bolisov +/types/gapi.client.plus/ @Bolisov +/types/gapi.client.plusdomains/ @Bolisov +/types/gapi.client.prediction/ @Bolisov +/types/gapi.client.proximitybeacon/ @Bolisov +/types/gapi.client.pubsub/ @Bolisov +/types/gapi.client.qpxexpress/ @Bolisov +/types/gapi.client.reseller/ @Bolisov +/types/gapi.client.resourceviews/ @Bolisov +/types/gapi.client.runtimeconfig/ @Bolisov +/types/gapi.client.safebrowsing/ @Bolisov +/types/gapi.client.script/ @Bolisov +/types/gapi.client.searchconsole/ @Bolisov +/types/gapi.client.servicecontrol/ @Bolisov +/types/gapi.client.servicemanagement/ @Bolisov +/types/gapi.client.serviceuser/ @Bolisov +/types/gapi.client.sheets/ @Bolisov +/types/gapi.client.siteverification/ @Bolisov +/types/gapi.client.slides/ @Bolisov +/types/gapi.client.sourcerepo/ @Bolisov +/types/gapi.client.spanner/ @Bolisov +/types/gapi.client.spectrum/ @Bolisov +/types/gapi.client.speech/ @Bolisov +/types/gapi.client.sqladmin/ @Bolisov +/types/gapi.client.storage/ @Bolisov +/types/gapi.client.storagetransfer/ @Bolisov +/types/gapi.client.streetviewpublish/ @Bolisov +/types/gapi.client.surveys/ @Bolisov +/types/gapi.client.tagmanager/ @Bolisov +/types/gapi.client.taskqueue/ @Bolisov +/types/gapi.client.tasks/ @Bolisov +/types/gapi.client.testing/ @Bolisov +/types/gapi.client.toolresults/ @Bolisov +/types/gapi.client.translate/ @Bolisov +/types/gapi.client.urlshortener/ @Bolisov +/types/gapi.client.vault/ @Bolisov +/types/gapi.client.videointelligence/ @Bolisov +/types/gapi.client.vision/ @Bolisov +/types/gapi.client.webfonts/ @Bolisov +/types/gapi.client.webmasters/ @Bolisov +/types/gapi.client.youtube/ @Bolisov +/types/gapi.client.youtubeanalytics/ @Bolisov +/types/gapi.client.youtubereporting/ @Bolisov +/types/gapi.drive/ @baxtersa +/types/gapi.pagespeedonline/ @sgtfrankieboy +/types/gapi.people/ @tkrotoff +/types/gapi.plus/ @tkrotoff +/types/gapi.translate/ @sgtfrankieboy +/types/gapi.urlshortener/ @sgtfrankieboy +/types/gapi.youtube/ @sgtfrankieboy +/types/gapi.youtubeanalytics/ @sgtfrankieboy +/types/gaussian/ @scttcper +/types/gen-readlines/ @CodeAnimal +/types/generic-functions/ @stpettersens +/types/generic-pool/ @jerray +/types/gently/ @bonnici +/types/geodesy/ @DenisCarriere @HandyG52 @excelulous +/types/geojson/ @cobster @atd-schubert @JeffJacobson +/types/geojson2osm/ @DenisCarriere +/types/geokdbush/ @DenisCarriere +/types/geometry-dom/ @nakakura +/types/geopattern/ @Gaelan +/types/get-node-dimensions/ @vincekovacs +/types/get-stdin/ @DanielRosenwasser +/types/get-stream/ @douglasduteil @BendingBender +/types/getos/ @BendingBender +/types/gettext.js/ @jucrouzet +/types/gifffer/ @gatimus +/types/gijgo/ @atatanasov +/types/giraffe/ @darthapo +/types/git/ @vvakame +/types/git-config/ @stpettersens +/types/git-remote-origin-url/ @janslow +/types/github-username-regex/ @BehindTheMath +/types/gl-matrix/ @mattijskneppers @tatchx @nbabanov @auzmartist @surtr-isaz +/types/gldatepicker/ @qcz +/types/glidejs/ @milanjaros +/types/glob/ @vvakame @voy +/types/glob-base/ @alan-agius4 +/types/glob-expand/ @vvakame +/types/glob-parent/ @mrmlnc +/types/glob-stream/ @Bartvds @mrmlnc +/types/global-tunnel-ng/ @BendingBender +/types/globalize/ @gcastre @afromogli +/types/globalize-compiler/ @iclanton +/types/globby/ @douglasduteil @ikatyang +/types/globule/ @durad +/types/gm/ @ChaosinaCan @maartenvanvliet +/types/go/ @NorthwoodsSoftware +/types/google-adwords-scripts/ @jafaircl +/types/google-apps-script/ @motemen +/types/google-apps-script-oauth2/ @dhayab +/types/google-cloud__datastore/ @beaulac +/types/google-cloud__pubsub/ @pheromonez +/types/google-cloud__storage/ @blove @nbperry +/types/google-earth/ @icholy +/types/google-images/ @dolanmiu +/types/google-libphonenumber/ @leonyu +/types/google-map-react/ @honzabrecka +/types/google-maps/ @DeividasBakanas @GiedriusGrabauskas +/types/google-protobuf/ @marcuslongmuir +/types/google.analytics/ @tyler-murphy +/types/google.feeds/ @RodneyJT +/types/google.fonts/ @danmarshall +/types/google.geolocation/ @vbortone +/types/google.picker/ @grapswiz +/types/google.visualization/ @danludwig @gmoore-sjcorg @danmana @mlcheng @IvanBisultanov @glebm +/types/googlemaps/ @cgwrench @nertzy @xaolas @mrmcnerd @martincostello @svenkreiss +/types/googlemaps.infobubble/ @Dashue +/types/got/ @BendingBender @LinusU +/types/graceful-fs/v2/ @Bartvds +/types/graceful-fs/ @Bartvds @BendingBender +/types/graham_scan/ @hberntsen +/types/graphite-udp/ @EricByers +/types/graphql/ @TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet @IvanGoncharov @DxCx @rportugal +/types/graphql-date/ @enaeseth +/types/graphql-relay/ @arvitaly @nitintutlani @Grelinfo +/types/graphql-type-json/ @schfkt +/types/graphviz/ @mhfrantz +/types/grasp/ @agnoster +/types/gravatar/ @denis-sokolov +/types/gravatar-url/ @ivangabriele +/types/greasemonkey/ @kotas +/types/grecaptcha/v0/ @brentj73 +/types/grecaptcha/ @DethAriel +/types/gregorian-calendar/ @cwalv +/types/gridfs-stream/ @liorm +/types/gridstack/ @PascalSenn @ZoolWay @Sl1MBoy +/types/grunt/ @jeffmay @basarat +/types/gsap/ @codebelt @ProbablePrime +/types/guid/ @maroy1986 +/types/gulp/ @GiedriusGrabauskas +/types/gulp-angular-templatecache/ @amanmahajan7 +/types/gulp-babel/ @AyaMorisawa +/types/gulp-batch/ @alvarollmenezes @vizeke +/types/gulp-bump/ @silkentrance +/types/gulp-cache/ @aravindarun +/types/gulp-cached/ @tomc974 +/types/gulp-changed/ @tomc974 +/types/gulp-cheerio/ @tkQubo +/types/gulp-clean-dest/ @andypyrope +/types/gulp-coffeeify/ @tkQubo +/types/gulp-coffeelint/ @tkQubo +/types/gulp-concat/ @k-kagurazaka +/types/gulp-connect/ @andrewiggins +/types/gulp-copy/ @aravindarun +/types/gulp-csso/ @tkrotoff +/types/gulp-debug/ @tkrotoff +/types/gulp-diff/ @ikatyang +/types/gulp-dtsm/ @AyaMorisawa +/types/gulp-espower/ @tkQubo +/types/gulp-file-include/ @DanielRosenwasser +/types/gulp-filter/ @tkrotoff +/types/gulp-flatten/ @k-kagurazaka +/types/gulp-gzip/ @tkQubo +/types/gulp-help/ @tkQubo +/types/gulp-help-doc/ @Mikhus +/types/gulp-html-replace/ @peterjuras +/types/gulp-htmlmin/ @tkrotoff +/types/gulp-if/ @joeskeen +/types/gulp-inject/ @k-kagurazaka +/types/gulp-insert/ @shantmarouti +/types/gulp-install/ @peterjuras +/types/gulp-jade/ @berwyn +/types/gulp-jasmine/ @andypyrope +/types/gulp-jasmine-browser/ @tkrotoff +/types/gulp-json-editor/ @peterjuras +/types/gulp-jsonminify/ @pine +/types/gulp-jspm/ @peterjuras +/types/gulp-less/ @k-kagurazaka +/types/gulp-load-plugins/ @joeskeen +/types/gulp-minify-css/ @k-kagurazaka +/types/gulp-minify-html/ @tkrotoff +/types/gulp-modernizr/ @remisery +/types/gulp-newer/ @tomc974 +/types/gulp-ng-annotate/ @tkQubo +/types/gulp-nodemon/ @tkQubo +/types/gulp-plumber/ @joeskeen +/types/gulp-protractor/ @tkrotoff +/types/gulp-pug/ @remisery +/types/gulp-remember/ @tomc974 +/types/gulp-rev/ @tkrotoff +/types/gulp-rev-replace/ @tkrotoff +/types/gulp-ruby-sass/ @agnislav +/types/gulp-shell/ @tkqubo +/types/gulp-size/ @tkrotoff @remisery +/types/gulp-sort/ @joeskeen +/types/gulp-strip-debug/ @peterjuras +/types/gulp-svg-sprite/ @tkqubo +/types/gulp-task-listing/ @joeskeen +/types/gulp-tsd/ @k-kagurazaka +/types/gulp-uglify/ @ChristopherHaws @leonard-thieu +/types/gulp-useref/ @tkrotoff +/types/gulp-util/ @jedmao +/types/gulp-watch/ @tkrotoff +/types/gulp-zip/ @dudeofawesome +/types/gzip-js/ @rhysd +/types/gzip-size/v3/ @plantain-00 +/types/gzip-size/ @plantain-00 @jimivdw @andrewiggins +/types/h2o2/ @jasonswearingen @AJamesPhillips +/types/halfred/ @dherges +/types/halogen/ @steller +/types/hammerjs/ @milkisevil @codler +/types/handlebars/ @borisyankov +/types/hapi/v8/ @jasonswearingen +/types/hapi/v12/ @jasonswearingen +/types/hapi/v15/ @jasonswearingen +/types/hapi/ @jasonswearingen @AJamesPhillips +/types/hapi-auth-basic/ @AJamesPhillips @saboya +/types/hapi-auth-jwt2/ @warrenseymour +/types/hapi-decorators/ @kenhowardpdx +/types/har-format/ @micmro +/types/hard-rejection/ @BendingBender +/types/harmony-proxy/ @remojansen +/types/has-ansi/ @BendingBender +/types/hash-file/ @HiromiShikata +/types/hash-stream/ @BendingBender +/types/hasha/ @BendgingBender +/types/hasher/ @flyfishMT +/types/hashids/ @pocesar +/types/hashmap/ @outring +/types/haversine/ @screendriver +/types/he/ @sedwards2009 +/types/headroom/ @hakubo +/types/heap/ @ryan10132 +/types/heapdump/ @weekens +/types/heatmap.js/ @lookuptable @rhys-vdw +/types/hedron/ @dborysov +/types/hellojs/ @PavelPZ @vuorinem +/types/hellosign-embedded/ @xt0rted +/types/helmet/ @cyrilschumacher @EvanHahn @bluehatbrit +/types/heredatalens/ @denyo +/types/heremaps/ @Josh-ES @denyo +/types/heroku-logger/ @kylevogt +/types/hex-rgba/ @r3nya +/types/hexo-bunyan/ @segayuu +/types/hexo-fs/ @segayuu +/types/hexo-log/ @segayuu +/types/highcharts/ @damianog @baltie @AlbertOzimek @hanssens +/types/highcharts-ng/ @scatcher +/types/highland/ @Bartvds @hgwood @iwllyu @alvis +/types/highlight.js/ @nikeee @sourrust @joshuakgoldberg +/types/hiredis/ @titan +/types/history/v2/ @sergey-buturlakin @ngbrown +/types/history/v3/ @sergey-buturlakin @ngbrown @LKay +/types/history/ @sergey-buturlakin @ngbrown @rokoroku +/types/history.js/ @borisyankov @gjunge +/types/hjson/ @crunchie84 +/types/hls.js/ @jgainfort +/types/hoek/ @prashaantt +/types/holderjs/ @renjfk +/types/hooker/ @misak113 +/types/hopscotch/ @pimterry @Aurimas1 +/types/howler/ @xperiments @tdukart @alien35 @nicholashza +/types/hpp/ @kryops +/types/html-entities/ @xstoudi +/types/html-minifier/v1/ @tkrotoff +/types/html-minifier/ @tkrotoff @rikuayanokozy +/types/html-pdf/ @westy92 +/types/html-to-text/ @erykwarren +/types/html-webpack-plugin/ @deevus @bumbleblym @tlaziuk +/types/html-webpack-template/ @bumbleblym +/types/html2canvas/ @rwhepburn @tan9 +/types/htmlbars-inline-precompile/ @chriskrycho +/types/htmlparser2/ @staticfunction @LinusU +/types/htmltojsx/ @basarat +/types/http-assert/ @jkeylu +/types/http-aws-es/ @marcogrcr +/types/http-codes/ @mhegazy +/types/http-context/ @mtraynham +/types/http-errors/ @tkrotoff @BendingBender +/types/http-proxy/ @SomaticIT +/types/http-proxy-agent/ @mrmlnc +/types/http-proxy-middleware/ @zebMcCorkle @BendingBender +/types/http-server/ @plantain-00 +/types/http-status/ @misak113 +/types/http-string-parser/ @pine613 +/types/httperr/ @yortus +/types/hubot/ @dirk +/types/hubspot-pace/ @borislavjivkov +/types/humane/ @jmvrbanac +/types/humanize-plus/ @DenisCarriere +/types/humanparser/ @MichalPodeszwa +/types/humps/ @nikeee +/types/hyco-ws/ @mrcabellom +/types/hyperscript/ @spacejack @jmfirth +/types/hypertext-application-language/ @maks3w +/types/hystrixjs/ @igorsechyn +/types/i18n/ @SomaticIT @FindQ +/types/i18n-js/ @ypresto +/types/i18next/v2/ @mxl @deerawan @GiedriusGrabauskas +/types/i18next/ @mxl @deerawan @GiedriusGrabauskas +/types/i18next-browser-languagedetector/v0/ @cyrilschumacher @GiedriusGrabauskas +/types/i18next-browser-languagedetector/ @cyrilschumacher @GiedriusGrabauskas +/types/i18next-express-middleware/ @cyrilschumacher +/types/i18next-node-fs-backend/ @cyrilschumacher +/types/i18next-sprintf-postprocessor/ @cyrilschumacher +/types/i18next-xhr-backend/ @jamuhl @GiedriusGrabauskas +/types/i2c-bus/ @101100 +/types/iban/ @cyrilschumacher +/types/ibm-mobilefirst/ @nacho4d +/types/ibm_db/ @agov +/types/icepick/ @ngbrown @tobico +/types/icheck/ @qcz +/types/iconv/ @delphinus35 +/types/ids/ @3fd +/types/iframe-resizer/ @arminbaljic +/types/ignite-ui/ @IgniteUI +/types/ignore-styles/ @tai2 +/types/iltorb/ @Alorel +/types/image-size/ @elisee +/types/imagemagick/ @soywiz +/types/imagemagick-native/ @horiuchi +/types/imagemapster/ @delphinus35 +/types/images/ @DingWeizhe +/types/imagesloaded/ @coldacid @apexskier +/types/imap/ @psnider +/types/imap-simple/ @pushplay +/types/imgur-rest-api/ @lukewestby +/types/immutability-helper/ @seansfkelley +/types/impress/ @borisyankov +/types/in-range/ @DanielRosenwasser +/types/incremental-dom/ @basarat @lanthaler @vvakame +/types/indent-string/ @mhegazy +/types/inert/ @nycdotnet @AJamesPhillips +/types/inflected/ @dsci +/types/inflection/ @shiwano +/types/inherits/ @chrootsu +/types/ini/ @marcinporebski +/types/iniparser/ @chrootsu +/types/inline-css/ @philipisapain +/types/inline-style-prefixer/ @ahz @dpetrezselyova +/types/inquirer/ @tkQubo @ppathan @jouderianjr +/types/insert-module-globals/ @leonard-thieu +/types/insight/ @vvakame +/types/integer/ @Morfent +/types/interact.js/ @dduugg @adidahiya @thasner +/types/intercom-web/ @fongandrew @salbahra +/types/intercomjs/ @spencerwi +/types/internal-ip/ @BendingBender +/types/intl/ @RagibHasin +/types/intl-messageformat/ @mhegazy +/types/intl-tel-input/ @fdnhkj @leonard-thieu +/types/into-stream/ @BendingBender +/types/intro.js/ @anahkiasen +/types/invariant/ @bennett000 +/types/inversify-devtools/ @inversify +/types/ion.rangeslider/v1/ @dduugg +/types/ion.rangeslider/ @sixinli +/types/ioredis/ @plantain-00 @chrisleck @aliarham11 @br8h @shaharmor +/types/iota.lib.js/ @fogsh +/types/ip/ @codeanimal +/types/ip-regex/ @unindented +/types/irc/ @phillips1012 +/types/iron/ @simonschick @rafaelsouzaf +/types/is/ @cabralRodrigo +/types/is-absolute-url/ @mhegazy +/types/is-alphanumerical/ @vutran +/types/is-archive/ @mhegazy +/types/is-array/ @pine +/types/is-binary-path/ @DanielRosenwasser +/types/is-compressed/ @mhegazy +/types/is-finite/ @mhegazy +/types/is-glob/ @mrmlnc +/types/is-ip/ @coderslagoon +/types/is-my-json-valid/ @kruncher +/types/is-negated-glob/ @ajafff +/types/is-number/ @harryshipton +/types/is-object/ @wbhob +/types/is-path-cwd/ @DanielRosenwasser +/types/is-path-in-cwd/ @mhegazy +/types/is-promise/ @DanielRosenwasser +/types/is-relative-url/ @mhegazy +/types/is-root/ @mhegazy +/types/is-root-path/ @mhegazy +/types/is-scoped/ @postcrafter +/types/is-stream/ @me +/types/is-svg/ @BendingBender +/types/is-text-path/ @mhegazy +/types/is-url/ @RyotaMurohoshi +/types/is-url-superb/ @kryops +/types/is-windows/ @mizunashi-mana +/types/isbn-utils/ @elhaard +/types/iscroll/ @csrakowski +/types/iso-3166-2/ @sicilica +/types/iso8601-localizer/ @avielfedida +/types/isomorphic-fetch/ @toddlucas +/types/isotope-layout/ @avidenic +/types/istanbul/ @tkrotoff +/types/istanbul-lib-coverage/ @jason0x43 +/types/istanbul-lib-hook/ @jason0x43 +/types/istanbul-lib-instrument/ @jason0x43 +/types/istanbul-lib-report/ @jason0x43 +/types/istanbul-lib-source-maps/ @jason0x43 +/types/istanbul-middleware/ @hookclaw +/types/istanbul-reports/ @jason0x43 +/types/ityped/ @DanielRosenwasser +/types/ix.js/ @Igorbek +/types/jade/ @panuhorsmalahti +/types/jalaali-js/ @alitaheri +/types/japanese-holidays/ @syamatoo +/types/jasmine/ @borisyankov @theodorejb @davidparsson @gmoothart @lukas-zech-software +/types/jasmine-ajax/ @lgrignon +/types/jasmine-data_driven_tests/ @AnthonyMacKinnon +/types/jasmine-enzyme/ @bolatovumar +/types/jasmine-es6-promise-matchers/ @stephenlautier +/types/jasmine-fixture/ @craigbrett17 +/types/jasmine-given/ @shairez +/types/jasmine-jquery/ @gstamac +/types/jasmine-matchers/ @Bartvds +/types/jasmine-node/ @svi3c +/types/jasmine-promise-matchers/ @matthewjh +/types/jasmine_dom_matchers/ @devoto13 +/types/jasminewd2/ @sjelin +/types/java/ @jimlloyd @hrl7 +/types/java-applet/ @cyrilschumacher +/types/javascript-astar/ @ptlis +/types/javascript-bignum/ @sandersn +/types/javascript-obfuscator/ @sanex3339 +/types/javascript-state-machine/ @borisyankov @mdocter @MrBigDog2U @samael65535 @taoqf +/types/jbinary/ @tbureck +/types/jcanvas/ @rogierschouten +/types/jdataview/ @RReverser +/types/jdenticon/ @mtr +/types/jest/v16/ @NoHomey @jwbay +/types/jest/ @NoHomey @jwbay @asvetliakov @alexjoverm @epicallan @ikatyang @wsmd @JamieMason @douglasduteil +/types/jest-diff/ @myabc +/types/jest-docblock/ @ikatyang +/types/jest-get-type/ @myabc +/types/jest-in-case/ @geovanisouza92 +/types/jest-json-schema/ @deadNightTiger +/types/jest-matcher-utils/ @myabc +/types/jest-matchers/ @joscha +/types/jest-validate/ @ikatyang +/types/jfs/ @tlaziuk +/types/jjv/ @Nemo157 +/types/jjve/ @Nemo157 +/types/jmespath/ @pushplay +/types/johnny-five/ @nakakura +/types/joi/v6/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW +/types/joi/v10/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku +/types/joi/ @Bartvds @laurence-myers @cglantschnig @DavidBR-SW @GaelMagnan @ralekna @schfkt @rokoroku @dankraus +/types/joigoose/ @boothwhack +/types/jpeg-js/ @DanielRosenwasser +/types/jpm/ @github-account-because-they-want-it +/types/jqgrid/ @lokeshpeta +/types/jqrangeslider/ @qcz +/types/jquery/v1/ @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @DickvdBrink @King2500 @leonard-thieu +/types/jquery/v2/ @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @DickvdBrink @King2500 @leonard-thieu +/types/jquery/ @leonard-thieu @borisyankov @choffmeister @Steve-Fenton @Diullei @tasoili @jasons-novaleaf @seanski @Guuz @ksummerlin @basarat @nwolverson @derekcicerone @AndrewGaspar @seikichi @benjaminjackman @s093294 @JoshStrobl @johnnyreilly @DickvdBrink @King2500 +/types/jquery-ajax-chain/ @humana-fragilitas +/types/jquery-alertable/ @stever +/types/jquery-backstretch/ @dkulyk +/types/jquery-cropbox/ @PerKastman +/types/jquery-deparam/ @patsissons +/types/jquery-easy-loading/ @delphinus35 +/types/jquery-editable-select/ @baywet +/types/jquery-fullscreen/ @bgrieder +/types/jquery-galleria/ @rimig +/types/jquery-handsontable/ @intelorca +/types/jquery-jcrop/ @joeskeen +/types/jquery-jsonrpcclient/ @Ty3uK +/types/jquery-knob/ @iain8 +/types/jquery-mask-plugin/ @avidenic +/types/jquery-match-height/ @kbytesys +/types/jquery-mockjax/ @laszlojakab @vladeck +/types/jquery-mousewheel/ @xt0rted +/types/jquery-notifier/ @allipierre +/types/jquery-param/ @patsissons +/types/jquery-sortable/ @Seltzer +/types/jquery-steps/ @jblank @nickwph +/types/jquery-timeentry/ @marknadig +/types/jquery-toastmessage-plugin/ @joeskeen +/types/jquery-truncate-html/ @abraaoalves +/types/jquery-urlparam/ @stpettersens +/types/jquery-validation-unobtrusive/ @EnableSoftware +/types/jquery.address/ @martinduparc @mardaneus86 +/types/jquery.are-you-sure/ @jonegerton +/types/jquery.autosize/ @kingdango +/types/jquery.bbq/ @sunetos +/types/jquery.bootstrap.wizard/ @niemyjski @dennisahlin +/types/jquery.cleditor/ @pushplay +/types/jquery.clientsidelogging/ @diullei +/types/jquery.color/ @derekcicerone +/types/jquery.colorbox/ @gjunge +/types/jquery.colorpicker/ @pushplay +/types/jquery.contextmenu/ @nvivo +/types/jquery.cookie/ @RoyGoode @BenLorantfy +/types/jquery.customselect/ @adamcoulombe +/types/jquery.cycle2/ @dnadolny +/types/jquery.dropotron/ @cyrilschumacher +/types/jquery.dynatree/ @fdecampredon +/types/jquery.elang/ @sumegizoltan +/types/jquery.fancytree/ @alphaleonis @abedi-ir @Nitecube +/types/jquery.filtertable/ @totpero +/types/jquery.finger/ @maxackley +/types/jquery.flagstrap/ @felipedgarcia +/types/jquery.fullscreen/ @piraveen +/types/jquery.gridster/ @jbaldwin +/types/jquery.growl/ @yeganemehr +/types/jquery.highlight-bartaz/ @Pro +/types/jquery.jnotify/ @jamescurran +/types/jquery.joyride/ @vbortone +/types/jquery.jsignature/ @pjmagee +/types/jquery.leanmodal/ @FinelySliced +/types/jquery.livestampjs/ @vbortone +/types/jquery.notify/ @evil-shrike +/types/jquery.notifybar/ @zaneli +/types/jquery.noty/ @kingdango @thelfensdrfer +/types/jquery.payment/ @ejsmith @johnrutherford +/types/jquery.pjax/ @lijunle +/types/jquery.placeholder/ @majorsilence @EnableSoftware +/types/jquery.pnotify/ @DavidSichau @FUNExtreme +/types/jquery.postmessage/ @lijunle +/types/jquery.prettyphoto/ @pgaske +/types/jquery.qrcode/ @danmana +/types/jquery.rateit/ @gjunge +/types/jquery.rowgrid/ @vinayak-garg +/types/jquery.scrollto/ @nestalk +/types/jquery.simplemodal/ @ForNeVeR +/types/jquery.simplepagination/ @nvivo +/types/jquery.simulate/ @derekcicerone +/types/jquery.slimscroll/ @Promact +/types/jquery.soap/ @tigerxy +/types/jquery.sortelements/ @tbureck +/types/jquery.superlink/ @niemyjski +/types/jquery.tagsmanager/ @vbortone +/types/jquery.tile/ @zaneli +/types/jquery.timepicker/ @anwarjaved +/types/jquery.timer/ @JoshStrobl +/types/jquery.tinycarousel/ @csrakowski +/types/jquery.tinyscrollbar/ @csrakowski +/types/jquery.tipsy/ @bdukes +/types/jquery.tools/ @joeskeen +/types/jquery.total-storage/ @JeremyCBrooks +/types/jquery.transit/ @MrBigDog2U +/types/jquery.ui.datetimepicker/ @dougajmcdonald +/types/jquery.ui.layout/ @Steve-Fenton @drarmstr +/types/jquery.uniform/ @flyfishMT +/types/jquery.validation/ @fdecampredon @johnnyreilly @avidenic +/types/jquery.watermark/ @anwarjaved +/types/jquerymobile/ @borisyankov +/types/jqueryui/ @borisyankov @johnnyreilly +/types/js-base64/ @DenisCarriere @tlent +/types/js-beautify/ @JoshuaKGoldberg @hansrwindhoff +/types/js-clipper/ @omni360 +/types/js-combinatorics/ @outring +/types/js-cookie/ @theodorejb @BendingBender +/types/js-data-angular/ @reppners +/types/js-fixtures/ @kazimanzurrashid +/types/js-git/ @Bartvds +/types/js-md5/ @mwmccarthy +/types/js-quantities/ @wrummler +/types/js-schema/ @marcinporebski @roblabat +/types/js-search/ @guoyunhe +/types/js-to-java/ @skyitachi +/types/js-url/ @pine613 +/types/js-yaml/ @Bartvds @sclausen +/types/js.spec/ @mattbishop +/types/jsbn/ @Evgenus @al2xed +/types/jschannel/ @yitzchok +/types/jscrollpane/ @qcz +/types/jsdeferred/ @minodisk +/types/jsdom/ @leonard-thieu +/types/jsen/ @vladeck +/types/jsend/ @CaselIT +/types/jsesc/ @Bartvds +/types/jsfl/ @soywiz +/types/jsforce/ @dolanmiu @netes +/types/jshamcrest/ @dharkness +/types/jsmockito/ @shiver-me-timbers +/types/jsnox/ @stkb @DovydasNavickas +/types/json-merge-patch/ @senyaarseniy +/types/json-patch/ @vvakame +/types/json-pointer/ @Bartvds +/types/json-query/ @mtraynham +/types/json-rpc-ws/ @npenin @mlamp +/types/json-schema/ @bcherny @cyrilletuzi +/types/json-socket/ @svi3c +/types/json-stable-stringify/ @mhfrantz +/types/json-stringify-safe/ @BendingBender +/types/json2md/ @MartynasZilinskas +/types/jsonata/ @nick121212 +/types/jsoneditor/ @alejo90 +/types/jsoneditoronline/ @vbortone +/types/jsonfile/ @dbowring +/types/jsonminify/ @no23reason +/types/jsonnet/ @hookclaw +/types/jsonp/ @surenkov +/types/jsonpath/ @horiuchi @ikatyang +/types/jsonrpc-serializer/ @Akim95 +/types/jsonstream/ @Bartvds +/types/jsonwebtoken/ @SomaticIT @danielheim @brikou +/types/jspdf/ @amberjs +/types/jsqrcode/ @lordazzi +/types/jsrender/ @zakki +/types/jsrp/ @harryshipton +/types/jss/ @appsforartists @kof +/types/jssha/ @randombk @SrTobi +/types/jstimezonedetect/ @olamothe +/types/jstorage/ @dflor003 +/types/jstree/ @adaskothebeast +/types/jsts/ @StephaneAlie +/types/jsuite/ @darrenhillconsulting +/types/jsuri/ @coldacid @flqw +/types/jsurl/ @agorshkov23 +/types/jsx-chai/ @nupplaphil +/types/jszip/ @mzeiher @forabi +/types/jug/ @yevt +/types/jui/ @easylogic +/types/jui-core/ @easylogic +/types/jui-grid/ @easylogic +/types/jweixin/ @taoqf @gomydodo +/types/jwplayer/ @martinduparc @kutomer +/types/jws/ @JustinBeckwith +/types/jwt-client/ @timoteoponce +/types/jwt-decode/v1/ @QuatroDevOfficial +/types/jwt-decode/ @GiedriusGrabauskas @madsmadsen +/types/jwt-simple/ @kenfdev @GaelMagnan +/types/kafka-node/ @dansitu @bkim54 @sfrooster @amiram +/types/karma/ @tkrotoff @43081j +/types/karma-chai/ @JayAndCatchFire +/types/karma-chai-sinon/ @vasek17 +/types/karma-coverage/ @tkrotoff +/types/karma-fixture/ @evictor +/types/karma-jasmine/ @michelsalib +/types/karma-webpack/ @mtraynham +/types/katex/ @mrand01 +/types/kcors/ @Xstoudi @izayoiko +/types/kdbush/ @DenisCarriere +/types/kefir/ @AyaMorisawa @HitoriSensei +/types/kendo-ui/ @telerik +/types/keyboardjs/ @vbortone @piranha771 +/types/keygrip/ @jkeylu +/types/keymaster/ @nitram509 +/types/keymirror/ @jfahrenkrug +/types/keypress.js/ @rcchen +/types/keysym/ @harryshipton +/types/keytar/ @miniak @shiftkey @juturu +/types/kik-browser/ @joelday +/types/klaw/v1/ @mceachen +/types/klaw/ @mceachen +/types/klaw-sync/ @shiftkey +/types/knex/ @tkQubo @baronfel @MeLlamoPablo @mastermatt @micksatana +/types/knex-postgis/ @vesse +/types/knockback/ @borisyankov +/types/knockout/ @borisyankov @Igorbek @moonpyk @EnableSoftware @BenjaminEckardt @ffMathy +/types/knockout-amd-helpers/ @DavidSichau +/types/knockout-secure-binding/ @pine613 +/types/knockout-transformations/ @johnnyreilly @Nemo157 +/types/knockout.deferred.updates/ @sgaliano +/types/knockout.editables/ @borisyankov +/types/knockout.es5/ @sgaliano +/types/knockout.kogrid/ @huer12 +/types/knockout.mapper/ @BMeyerKC +/types/knockout.mapping/ @borisyankov @ffMathy +/types/knockout.projections/ @johnnyreilly +/types/knockout.punches/ @johnnyreilly +/types/knockout.rx/ @Igorbek +/types/knockout.validation/ @danludwig +/types/knockout.viewmodel/ @oising +/types/knockstrap/ @adaskothebeast +/types/knuddels-userapps-api/ @Knuddels +/types/ko.plus/ @conficient +/types/koa/ @DavidCai1993 @jkeylu @brikou +/types/koa-basic-auth/ @Tobias4872 +/types/koa-bodyparser/ @hellopao +/types/koa-cache-control/ @pe8ter +/types/koa-compose/ @jkeylu +/types/koa-compress/ @hellopao +/types/koa-conditional-get/ @wingsbob +/types/koa-csrf/ @haskaalo +/types/koa-etag/ @wingsbob +/types/koa-favicon/ @hellopao +/types/koa-generic-session/ @nsimmons @Ragg- +/types/koa-hbs/ @jcbmln @mudkipme +/types/koa-helmet/ @me +/types/koa-joi-router/ @wingsbob +/types/koa-json/ @brooklyndev +/types/koa-json-error/ @mudkipme +/types/koa-logger/ @geoffreak @tlaziuk +/types/koa-logger-winston/ @stevehipwell +/types/koa-morgan/ @vesse +/types/koa-mount/ @amirsaber +/types/koa-passport/ @horiuchi @tlaziuk @brendtumi +/types/koa-pino-logger/ @khell +/types/koa-pug/ @Xstoudi +/types/koa-range/ @strax +/types/koa-redis/ @nsimmons +/types/koa-route/ @migstopheles +/types/koa-router/ @hellopao @schfkt +/types/koa-send/ @pe8ter @tlaziuk +/types/koa-session/ @kerol2r20 +/types/koa-session-minimal/ @longztian +/types/koa-sslify/ @wingsbob +/types/koa-static/ @hellopao @tlaziuk +/types/koa-views/ @brooklyndev +/types/koa-webpack/ @malj +/types/koa-websocket/ @me +/types/koa2-cors/ @xialeistudio +/types/koa__cors/ @Xstoudi @izayoiko @stevehipwell +/types/kolite/ @borisyankov +/types/konami.js/ @mareek +/types/kraken-js/ @darkwebdev +/types/kramed/ @tonicblue +/types/kss/ @giladgray +/types/kue/ @drudge @amiram @pc-jedi +/types/kurento-utils/ @nenadalm +/types/kuromoji/ @mzsm @kgtkr +/types/lab/ @prashaantt +/types/ladda/ @dflor003 @leemicw +/types/lasso/ @darkwebdev +/types/later/ @jasond-s +/types/latinize/ @GiedriusGrabauskas +/types/latlon-geohash/ @rimig +/types/launchpad/ @rictic +/types/lazy.js/ @Bartvds +/types/lazypipe/ @tomc974 +/types/ldapjs/ @cvillemure @peterkooijmans +/types/leadfoot/ @theintern +/types/leaflet/v0/ @rgripper +/types/leaflet/ @alejo90 @atd-schubert +/types/leaflet-areaselect/ @awallat +/types/leaflet-curve/ @onikiienko +/types/leaflet-draw/ @matt-guest @reblace @YunS-Stacy +/types/leaflet-editable/ @dalie +/types/leaflet-fullscreen/ @DenisCarriere +/types/leaflet-geocoder-mapzen/ @leezu +/types/leaflet-gpx/ @soucekv +/types/leaflet-imageoverlay-rotated/ @tkleinke +/types/leaflet-label/ @Nemo157 +/types/leaflet-polylinedecorator/ @soucekv +/types/leaflet-providers/ @BendingBender +/types/leaflet-rotatedmarker/ @robert-prib-polestar +/types/leaflet.awesome-markers/v0/ @Odrin @sebek64 +/types/leaflet.awesome-markers/ @sebek64 +/types/leaflet.fullscreen/ @wcomartin +/types/leaflet.gridlayer.googlemutant/ @ernest-rhinozeros +/types/leaflet.heat/ @onderceylan +/types/leaflet.locatecontrol/ @DenisCarriere +/types/leaflet.markercluster/ @rimig +/types/leaflet.markercluster.layersupport/ @AsamK +/types/leaflet.mouseposition/ @Hanyon +/types/leaflet.pancontrol/ @Brictarus +/types/leaflet.pm/ @tkleinke +/types/leaflet.polylinemeasure/ @RiON69 +/types/leapmotionts/ @logotype +/types/legal-eagle/ @j-f1 +/types/less/ @thasner @pranaygp +/types/less-middleware/ @federicobond +/types/less2sass/ @gatimus +/types/lestate/ @thelambdaparty +/types/level-sublevel/ @basp +/types/leveldown/ @tarruda +/types/levelup/ @blittle @tarruda +/types/leven/ @jmalonzo +/types/levenshtein/ @geoffreak +/types/libpq/ @Lodin +/types/libxmljs/ @fdecampredon +/types/libxslt/ @alejo90 +/types/license-checker/ @rogierschouten @unindented +/types/lil-uuid/ @Pr1st0n +/types/lime-js/ @arthur-xavier +/types/line-by-line/ @etomsen +/types/line-reader/ @stpettersens +/types/linkify-it/ @praxxis +/types/linq4js/ @morrisjdev +/types/lls/ @borislavjivkov +/types/load-json-file/ @SamVerschueren +/types/loader-runner/ @e-cloud +/types/loader-utils/ @Perlmint @TotooriaHyperion +/types/loadware/ @ALyman +/types/lobibox/ @itboy87 +/types/local-dynamo/ @Sicilica +/types/localforage-cordovasqlitedriver/ @thgreasi +/types/localized-countries/ @coderslagoon +/types/localizejs-library/ @salbahra +/types/locate-path/ @me +/types/lockfile/v0/ @Bartvds +/types/lockfile/ @Bartvds @BendingBender +/types/lockr/ @droritos +/types/locutus/ @hookclaw +/types/lodash/v3/ @bczengel @chrootsu +/types/lodash/ @bczengel @chrootsu @stepancar @ericanderson @aj-r @ailrun @e-cloud @thorn0 @jtmthf +/types/lodash-es/ @stephenlautier @e-cloud +/types/lodash-webpack-plugin/ @bumbleblym +/types/lodash.add/ @bczengel @chrootsu @stepancar +/types/lodash.after/ @bczengel @chrootsu @stepancar +/types/lodash.ary/ @bczengel @chrootsu @stepancar +/types/lodash.assign/ @bczengel @chrootsu @stepancar +/types/lodash.assignin/ @bczengel @chrootsu @stepancar +/types/lodash.assigninwith/ @bczengel @chrootsu @stepancar +/types/lodash.assignwith/ @bczengel @chrootsu @stepancar +/types/lodash.at/ @bczengel @chrootsu @stepancar +/types/lodash.attempt/ @bczengel @chrootsu @stepancar +/types/lodash.before/ @bczengel @chrootsu @stepancar +/types/lodash.bind/ @bczengel @chrootsu @stepancar +/types/lodash.bindall/ @bczengel @chrootsu @stepancar +/types/lodash.bindkey/ @bczengel @chrootsu @stepancar +/types/lodash.camelcase/ @bczengel @chrootsu @stepancar +/types/lodash.capitalize/ @bczengel @chrootsu @stepancar +/types/lodash.castarray/ @bczengel @chrootsu @stepancar +/types/lodash.ceil/ @bczengel @chrootsu @stepancar +/types/lodash.chunk/ @bczengel @chrootsu @stepancar +/types/lodash.clamp/ @bczengel @chrootsu @stepancar +/types/lodash.clone/ @bczengel @chrootsu @stepancar +/types/lodash.clonedeep/ @bczengel @chrootsu @stepancar +/types/lodash.clonedeepwith/ @bczengel @chrootsu @stepancar +/types/lodash.clonewith/ @bczengel @chrootsu @stepancar +/types/lodash.compact/ @bczengel @chrootsu @stepancar +/types/lodash.concat/ @bczengel @chrootsu @stepancar +/types/lodash.cond/ @bczengel @chrootsu @stepancar +/types/lodash.constant/ @bczengel @chrootsu @stepancar +/types/lodash.countby/ @bczengel @chrootsu @stepancar +/types/lodash.create/ @bczengel @chrootsu @stepancar +/types/lodash.curry/ @bczengel @chrootsu @stepancar +/types/lodash.curryright/ @bczengel @chrootsu @stepancar +/types/lodash.debounce/ @bczengel @chrootsu @stepancar +/types/lodash.deburr/ @bczengel @chrootsu @stepancar +/types/lodash.defaults/ @bczengel @chrootsu @stepancar +/types/lodash.defaultsdeep/ @bczengel @chrootsu @stepancar +/types/lodash.defer/ @bczengel @chrootsu @stepancar +/types/lodash.delay/ @bczengel @chrootsu @stepancar +/types/lodash.difference/ @bczengel @chrootsu @stepancar +/types/lodash.differenceby/ @bczengel @chrootsu @stepancar +/types/lodash.differencewith/ @bczengel @chrootsu @stepancar +/types/lodash.divide/ @bczengel @chrootsu @stepancar +/types/lodash.drop/ @bczengel @chrootsu @stepancar +/types/lodash.dropright/ @bczengel @chrootsu @stepancar +/types/lodash.droprightwhile/ @bczengel @chrootsu @stepancar +/types/lodash.dropwhile/ @bczengel @chrootsu @stepancar +/types/lodash.endswith/ @bczengel @chrootsu @stepancar +/types/lodash.eq/ @bczengel @chrootsu @stepancar +/types/lodash.escape/ @bczengel @chrootsu @stepancar +/types/lodash.escaperegexp/ @bczengel @chrootsu @stepancar +/types/lodash.every/ @bczengel @chrootsu @stepancar +/types/lodash.fill/ @bczengel @chrootsu @stepancar +/types/lodash.filter/ @bczengel @chrootsu @stepancar +/types/lodash.find/ @bczengel @chrootsu @stepancar +/types/lodash.findindex/ @bczengel @chrootsu @stepancar +/types/lodash.findkey/ @bczengel @chrootsu @stepancar +/types/lodash.findlast/ @bczengel @chrootsu @stepancar +/types/lodash.findlastindex/ @bczengel @chrootsu @stepancar +/types/lodash.findlastkey/ @bczengel @chrootsu @stepancar +/types/lodash.first/ @bczengel @chrootsu @stepancar +/types/lodash.flatmap/ @bczengel @chrootsu @stepancar +/types/lodash.flatmapdeep/ @bczengel @chrootsu @stepancar +/types/lodash.flatmapdepth/ @bczengel @chrootsu @stepancar +/types/lodash.flatten/ @bczengel @chrootsu @stepancar +/types/lodash.flattendeep/ @bczengel @chrootsu @stepancar +/types/lodash.flattendepth/ @bczengel @chrootsu @stepancar +/types/lodash.flip/ @bczengel @chrootsu @stepancar +/types/lodash.floor/ @bczengel @chrootsu @stepancar +/types/lodash.flow/ @bczengel @chrootsu @stepancar +/types/lodash.flowright/ @bczengel @chrootsu @stepancar +/types/lodash.foreach/ @bczengel @chrootsu @stepancar +/types/lodash.foreachright/ @bczengel @chrootsu @stepancar +/types/lodash.forin/ @bczengel @chrootsu @stepancar +/types/lodash.forinright/ @bczengel @chrootsu @stepancar +/types/lodash.forown/ @bczengel @chrootsu @stepancar +/types/lodash.forownright/ @bczengel @chrootsu @stepancar +/types/lodash.frompairs/ @bczengel @chrootsu @stepancar +/types/lodash.functions/ @bczengel @chrootsu @stepancar +/types/lodash.functionsin/ @bczengel @chrootsu @stepancar +/types/lodash.get/ @bczengel @chrootsu @stepancar +/types/lodash.groupby/ @bczengel @chrootsu @stepancar +/types/lodash.gt/ @bczengel @chrootsu @stepancar +/types/lodash.gte/ @bczengel @chrootsu @stepancar +/types/lodash.has/ @bczengel @chrootsu @stepancar +/types/lodash.hasin/ @bczengel @chrootsu @stepancar +/types/lodash.head/ @bczengel @chrootsu @stepancar +/types/lodash.identity/ @bczengel @chrootsu @stepancar +/types/lodash.includes/ @bczengel @chrootsu @stepancar +/types/lodash.indexof/ @bczengel @chrootsu @stepancar +/types/lodash.initial/ @bczengel @chrootsu @stepancar +/types/lodash.inrange/ @bczengel @chrootsu @stepancar +/types/lodash.intersection/ @bczengel @chrootsu @stepancar +/types/lodash.intersectionby/ @bczengel @chrootsu @stepancar +/types/lodash.intersectionwith/ @bczengel @chrootsu @stepancar +/types/lodash.invert/ @bczengel @chrootsu @stepancar +/types/lodash.invertby/ @bczengel @chrootsu @stepancar +/types/lodash.invoke/ @bczengel @chrootsu @stepancar +/types/lodash.invokemap/ @bczengel @chrootsu @stepancar +/types/lodash.isarguments/ @bczengel @chrootsu @stepancar +/types/lodash.isarray/ @bczengel @chrootsu @stepancar +/types/lodash.isarraybuffer/ @bczengel @chrootsu @stepancar +/types/lodash.isarraylike/ @bczengel @chrootsu @stepancar +/types/lodash.isarraylikeobject/ @bczengel @chrootsu @stepancar +/types/lodash.isboolean/ @bczengel @chrootsu @stepancar +/types/lodash.isbuffer/ @bczengel @chrootsu @stepancar +/types/lodash.isdate/ @bczengel @chrootsu @stepancar +/types/lodash.iselement/ @bczengel @chrootsu @stepancar +/types/lodash.isempty/ @bczengel @chrootsu @stepancar +/types/lodash.isequal/ @bczengel @chrootsu @stepancar +/types/lodash.isequalwith/ @bczengel @chrootsu @stepancar +/types/lodash.iserror/ @bczengel @chrootsu @stepancar +/types/lodash.isfinite/ @bczengel @chrootsu @stepancar +/types/lodash.isfunction/ @bczengel @chrootsu @stepancar +/types/lodash.isinteger/ @bczengel @chrootsu @stepancar +/types/lodash.islength/ @bczengel @chrootsu @stepancar +/types/lodash.ismap/ @bczengel @chrootsu @stepancar +/types/lodash.ismatch/ @bczengel @chrootsu @stepancar +/types/lodash.ismatchwith/ @bczengel @chrootsu @stepancar +/types/lodash.isnan/ @bczengel @chrootsu @stepancar +/types/lodash.isnative/ @bczengel @chrootsu @stepancar +/types/lodash.isnil/ @bczengel @chrootsu @stepancar +/types/lodash.isnull/ @bczengel @chrootsu @stepancar +/types/lodash.isnumber/ @bczengel @chrootsu @stepancar +/types/lodash.isobject/ @bczengel @chrootsu @stepancar +/types/lodash.isobjectlike/ @bczengel @chrootsu @stepancar +/types/lodash.isplainobject/ @bczengel @chrootsu @stepancar +/types/lodash.isregexp/ @bczengel @chrootsu @stepancar +/types/lodash.issafeinteger/ @bczengel @chrootsu @stepancar +/types/lodash.isset/ @bczengel @chrootsu @stepancar +/types/lodash.isstring/ @bczengel @chrootsu @stepancar +/types/lodash.issymbol/ @bczengel @chrootsu @stepancar +/types/lodash.istypedarray/ @bczengel @chrootsu @stepancar +/types/lodash.isundefined/ @bczengel @chrootsu @stepancar +/types/lodash.isweakmap/ @bczengel @chrootsu @stepancar +/types/lodash.isweakset/ @bczengel @chrootsu @stepancar +/types/lodash.iteratee/ @bczengel @chrootsu @stepancar +/types/lodash.join/ @bczengel @chrootsu @stepancar +/types/lodash.kebabcase/ @bczengel @chrootsu @stepancar +/types/lodash.keyby/ @bczengel @chrootsu @stepancar +/types/lodash.keys/ @bczengel @chrootsu @stepancar +/types/lodash.keysin/ @bczengel @chrootsu @stepancar +/types/lodash.last/ @bczengel @chrootsu @stepancar +/types/lodash.lastindexof/ @bczengel @chrootsu @stepancar +/types/lodash.lowercase/ @bczengel @chrootsu @stepancar +/types/lodash.lowerfirst/ @bczengel @chrootsu @stepancar +/types/lodash.lt/ @bczengel @chrootsu @stepancar +/types/lodash.lte/ @bczengel @chrootsu @stepancar +/types/lodash.mapkeys/ @bczengel @chrootsu @stepancar +/types/lodash.mapvalues/ @bczengel @chrootsu @stepancar +/types/lodash.matches/ @bczengel @chrootsu @stepancar +/types/lodash.matchesproperty/ @bczengel @chrootsu @stepancar +/types/lodash.max/ @bczengel @chrootsu @stepancar +/types/lodash.maxby/ @bczengel @chrootsu @stepancar +/types/lodash.mean/ @bczengel @chrootsu @stepancar +/types/lodash.meanby/ @bczengel @chrootsu @stepancar +/types/lodash.memoize/ @bczengel @chrootsu @stepancar +/types/lodash.merge/ @bczengel @chrootsu @stepancar +/types/lodash.mergewith/ @bczengel @chrootsu @stepancar +/types/lodash.method/ @bczengel @chrootsu @stepancar +/types/lodash.methodof/ @bczengel @chrootsu @stepancar +/types/lodash.min/ @bczengel @chrootsu @stepancar +/types/lodash.minby/ @bczengel @chrootsu @stepancar +/types/lodash.mixin/ @bczengel @chrootsu @stepancar +/types/lodash.negate/ @bczengel @chrootsu @stepancar +/types/lodash.noop/ @bczengel @chrootsu @stepancar +/types/lodash.now/ @bczengel @chrootsu @stepancar +/types/lodash.nth/ @bczengel @chrootsu @stepancar +/types/lodash.ntharg/ @bczengel @chrootsu @stepancar +/types/lodash.omit/ @bczengel @chrootsu @stepancar +/types/lodash.omitby/ @bczengel @chrootsu @stepancar +/types/lodash.once/ @bczengel @chrootsu @stepancar +/types/lodash.orderby/ @bczengel @chrootsu @stepancar +/types/lodash.over/ @bczengel @chrootsu @stepancar +/types/lodash.overargs/ @bczengel @chrootsu @stepancar +/types/lodash.overevery/ @bczengel @chrootsu @stepancar +/types/lodash.oversome/ @bczengel @chrootsu @stepancar +/types/lodash.pad/ @bczengel @chrootsu @stepancar +/types/lodash.padend/ @bczengel @chrootsu @stepancar +/types/lodash.padstart/ @bczengel @chrootsu @stepancar +/types/lodash.parseint/ @bczengel @chrootsu @stepancar +/types/lodash.partial/ @bczengel @chrootsu @stepancar +/types/lodash.partialright/ @bczengel @chrootsu @stepancar +/types/lodash.partition/ @bczengel @chrootsu @stepancar +/types/lodash.pick/ @bczengel @chrootsu @stepancar +/types/lodash.pickby/ @bczengel @chrootsu @stepancar +/types/lodash.property/ @bczengel @chrootsu @stepancar +/types/lodash.propertyof/ @bczengel @chrootsu @stepancar +/types/lodash.pull/ @bczengel @chrootsu @stepancar +/types/lodash.pullall/ @bczengel @chrootsu @stepancar +/types/lodash.pullallby/ @bczengel @chrootsu @stepancar +/types/lodash.pullallwith/ @bczengel @chrootsu @stepancar +/types/lodash.pullat/ @bczengel @chrootsu @stepancar +/types/lodash.random/ @bczengel @chrootsu @stepancar +/types/lodash.range/ @bczengel @chrootsu @stepancar +/types/lodash.rangeright/ @bczengel @chrootsu @stepancar +/types/lodash.rearg/ @bczengel @chrootsu @stepancar +/types/lodash.reduce/ @bczengel @chrootsu @stepancar +/types/lodash.reduceright/ @bczengel @chrootsu @stepancar +/types/lodash.reject/ @bczengel @chrootsu @stepancar +/types/lodash.remove/ @bczengel @chrootsu @stepancar +/types/lodash.repeat/ @bczengel @chrootsu @stepancar +/types/lodash.replace/ @bczengel @chrootsu @stepancar +/types/lodash.rest/ @bczengel @chrootsu @stepancar +/types/lodash.result/ @bczengel @chrootsu @stepancar +/types/lodash.reverse/ @bczengel @chrootsu @stepancar +/types/lodash.round/ @bczengel @chrootsu @stepancar +/types/lodash.sample/ @bczengel @chrootsu @stepancar +/types/lodash.samplesize/ @bczengel @chrootsu @stepancar +/types/lodash.set/ @bczengel @chrootsu @stepancar +/types/lodash.setwith/ @bczengel @chrootsu @stepancar +/types/lodash.shuffle/ @bczengel @chrootsu @stepancar +/types/lodash.size/ @bczengel @chrootsu @stepancar +/types/lodash.slice/ @bczengel @chrootsu @stepancar +/types/lodash.snakecase/ @bczengel @chrootsu @stepancar +/types/lodash.some/ @bczengel @chrootsu @stepancar +/types/lodash.sortby/ @bczengel @chrootsu @stepancar +/types/lodash.sortedindex/ @bczengel @chrootsu @stepancar +/types/lodash.sortedindexby/ @bczengel @chrootsu @stepancar +/types/lodash.sortedindexof/ @bczengel @chrootsu @stepancar +/types/lodash.sortedlastindex/ @bczengel @chrootsu @stepancar +/types/lodash.sortedlastindexby/ @bczengel @chrootsu @stepancar +/types/lodash.sortedlastindexof/ @bczengel @chrootsu @stepancar +/types/lodash.sorteduniq/ @bczengel @chrootsu @stepancar +/types/lodash.sorteduniqby/ @bczengel @chrootsu @stepancar +/types/lodash.split/ @bczengel @chrootsu @stepancar +/types/lodash.spread/ @bczengel @chrootsu @stepancar +/types/lodash.startcase/ @bczengel @chrootsu @stepancar +/types/lodash.startswith/ @bczengel @chrootsu @stepancar +/types/lodash.subtract/ @bczengel @chrootsu @stepancar +/types/lodash.sum/ @bczengel @chrootsu @stepancar +/types/lodash.sumby/ @bczengel @chrootsu @stepancar +/types/lodash.tail/ @bczengel @chrootsu @stepancar +/types/lodash.take/ @bczengel @chrootsu @stepancar +/types/lodash.takeright/ @bczengel @chrootsu @stepancar +/types/lodash.takerightwhile/ @bczengel @chrootsu @stepancar +/types/lodash.takewhile/ @bczengel @chrootsu @stepancar +/types/lodash.template/ @bczengel @chrootsu @stepancar +/types/lodash.throttle/ @bczengel @chrootsu @stepancar +/types/lodash.times/ @bczengel @chrootsu @stepancar +/types/lodash.toarray/ @bczengel @chrootsu @stepancar +/types/lodash.tofinite/ @bczengel @chrootsu @stepancar +/types/lodash.tointeger/ @bczengel @chrootsu @stepancar +/types/lodash.tolength/ @bczengel @chrootsu @stepancar +/types/lodash.tolower/ @bczengel @chrootsu @stepancar +/types/lodash.tonumber/ @bczengel @chrootsu @stepancar +/types/lodash.topairs/ @bczengel @chrootsu @stepancar +/types/lodash.topairsin/ @bczengel @chrootsu @stepancar +/types/lodash.topath/ @bczengel @chrootsu @stepancar +/types/lodash.toplainobject/ @bczengel @chrootsu @stepancar +/types/lodash.tosafeinteger/ @bczengel @chrootsu @stepancar +/types/lodash.tostring/ @bczengel @chrootsu @stepancar +/types/lodash.toupper/ @bczengel @chrootsu @stepancar +/types/lodash.transform/ @bczengel @chrootsu @stepancar +/types/lodash.trim/ @bczengel @chrootsu @stepancar +/types/lodash.trimend/ @bczengel @chrootsu @stepancar +/types/lodash.trimstart/ @bczengel @chrootsu @stepancar +/types/lodash.truncate/ @bczengel @chrootsu @stepancar +/types/lodash.unary/ @bczengel @chrootsu @stepancar +/types/lodash.unescape/ @bczengel @chrootsu @stepancar +/types/lodash.union/ @bczengel @chrootsu @stepancar +/types/lodash.unionby/ @bczengel @chrootsu @stepancar +/types/lodash.unionwith/ @bczengel @chrootsu @stepancar +/types/lodash.uniq/ @bczengel @chrootsu @stepancar +/types/lodash.uniqby/ @bczengel @chrootsu @stepancar +/types/lodash.uniqueid/ @bczengel @chrootsu @stepancar +/types/lodash.uniqwith/ @bczengel @chrootsu @stepancar +/types/lodash.unset/ @bczengel @chrootsu @stepancar +/types/lodash.unzip/ @bczengel @chrootsu @stepancar +/types/lodash.unzipwith/ @bczengel @chrootsu @stepancar +/types/lodash.update/ @bczengel @chrootsu @stepancar +/types/lodash.updatewith/ @bczengel @chrootsu @stepancar +/types/lodash.uppercase/ @bczengel @chrootsu @stepancar +/types/lodash.upperfirst/ @bczengel @chrootsu @stepancar +/types/lodash.values/ @bczengel @chrootsu @stepancar +/types/lodash.valuesin/ @bczengel @chrootsu @stepancar +/types/lodash.without/ @bczengel @chrootsu @stepancar +/types/lodash.words/ @bczengel @chrootsu @stepancar +/types/lodash.wrap/ @bczengel @chrootsu @stepancar +/types/lodash.xor/ @bczengel @chrootsu @stepancar +/types/lodash.xorby/ @bczengel @chrootsu @stepancar +/types/lodash.xorwith/ @bczengel @chrootsu @stepancar +/types/lodash.zip/ @bczengel @chrootsu @stepancar +/types/lodash.zipobject/ @bczengel @chrootsu @stepancar +/types/lodash.zipobjectdeep/ @bczengel @chrootsu @stepancar +/types/lodash.zipwith/ @bczengel @chrootsu @stepancar +/types/log-symbols/ @BendingBender +/types/log-update/ @BendingBender +/types/logat/ @krvikash35 +/types/logg/ @blittle +/types/loggly/ @rmartone @geoffreak +/types/loglevel/ @Pro @szmeti @screendriver +/types/logrotate-stream/ @rogierschouten +/types/lokijs/ @TeamworkGuy2 +/types/lolex/ @Nemo157 @joshuakgoldberg @rogierschouten +/types/long/ @peterkooijmans +/types/loopback/ @kattsushi @enko @sequoia @drmikecrowe +/types/loopback-boot/ @kattsushi +/types/lorem-ipsum/ @durad +/types/lory.js/ @kubosho @milkisevil +/types/loud-rejection/ @BendingBender +/types/lovefield/ @freshp86 +/types/lowdb/ @typicode @niieani +/types/lowlight/ @NoHomey +/types/lozad/ @plantain-00 +/types/lru-cache/ @Bartvds @BendingBender +/types/lscache/ @Chris-Martinezz +/types/ltx/ @PJakcson +/types/luaparse/ @stpettersens +/types/lunr/v0/ @sebastian-lenz +/types/lunr/ @seantanly +/types/lusca/ @crutchcorn +/types/luxon/ @colbydehart @FourwingsY +/types/lwip/ @AyaMorisawa +/types/lz-string/ @M0ns1gn0r +/types/magic-number/ @stpettersens +/types/magicsuggest/ @leonardochaia +/types/magnet-uri/ @tlaziuk +/types/mailcheck/ @pocesar +/types/maildev/ @cyrilschumacher @zbarbuto +/types/mailgen/ @vothanhkiet @jordanfarrer +/types/mailparser/ @psnider +/types/main-bower-files/ @k-kagurazaka +/types/make-dir/ @ikatyang @BendingBender +/types/maker.js/ @danmarshall +/types/mandrill-api/ @pocesar +/types/map-obj/ @BendingBender +/types/mapbox/ @anahkiasen +/types/mapbox-gl/ @dobrud @patrickr +/types/mapbox__shelf-pack/ @Perlmint +/types/mapnik/ @ipv4sec +/types/mapsjs/ @davismj +/types/mariasql/ @bennett000 +/types/mark.js/ @renjfk +/types/markdown-it/ @rapropos +/types/markdown-it-anchor/ @seryl +/types/markdown-it-container/ @hronex +/types/markdownlint/ @ark120202 +/types/marked/ @worr @BendingBender +/types/marker-animate-unobtrusive/ @viskin +/types/markerclustererplus/ @enanox @mxl +/types/markitup/ @drillbits +/types/maskedinput/ @lokeshpeta +/types/masonry-layout/ @m-a-wilson @warriorrocker +/types/massive/v3/ @swissspidy @clarenceh +/types/massive/ @swissspidy @clarenceh @AmazingTurtle +/types/match-media-mock/ @asvetliakov +/types/material-design-lite/ @bradzacher +/types/material-ui/ @ngbrown @theigor @alitaheri @herrmanno @DaIgeb @allienna @schlesingermatthias @InsidersByte @artyomsv @dan-j @minodisk +/types/material-ui-datatables/ @coding2012 +/types/materialize-css/v0/ @eriklieben @leonyu @SinghSukhdeep @jfcere @scote +/types/materialize-css/ @huww98 +/types/math3d/ @laszlojakab @jimsmart +/types/mathjax/ @rolandzwaga +/types/mathjs/ @siavol +/types/matter-js/ @piranha771 +/types/maxmind/ @geoffreak +/types/mcustomscrollbar/ @flurg +/types/md5/ @arcdev1 @jprogrammer +/types/mdns/ @reppners +/types/mdurl/ @rokt33r +/types/media-typer/ @BendingBender +/types/medium-editor/ @keika299 +/types/mem/ @SamVerschueren +/types/memcached/ @KentarouTakeda +/types/memoizee/ @juanpicado +/types/memory-cache/ @jedigo @thieman +/types/memory-fs/ @e-cloud +/types/memwatch-next/ @cyrilschumacher +/types/meow/ @KnisterPeter +/types/merge-descriptors/ @danny8002 +/types/merge-stream/ @k-kagurazaka @daniel-zazula +/types/merge2/ @tkrotoff @smac89 +/types/mersenne-twister/ @KentarouTakeda +/types/meshblu/ @fnipo +/types/mess/ @Nemo157 +/types/messenger/ @derekcicerone +/types/meteor/ @barbatus @fullflavedave @orefalo @dagatsoin @birkskyum @ardatan @stefanholzapfel +/types/meteor-accounts-phone/ @DAB0mB +/types/meteor-collection-hooks/ @twastvedt +/types/meteor-jboulhous-dev/ @vangorra +/types/meteor-persistent-session/ @vangorra +/types/meteor-prime8consulting-oauth2/ @vangorra +/types/meteor-publish-composite/ @vangorra +/types/meteor-roles/ @vangorra +/types/method-override/ @santialbo +/types/methods/ @cprecioso +/types/metric-suffix/ @davidm77 +/types/mfiles/ @avonwyss +/types/micro/ @kaoDev +/types/micromatch/v2/ @glen-84 +/types/micromatch/ @glen-84 @vemoo +/types/microrouter/ @mathieudutour +/types/microsoft-ajax/ @pjmagee +/types/microsoft-live-connect/ @jvilk +/types/microsoft-sdk-soap/ @markusmauch +/types/microsoftteams/ @WrathOfZombies @jayongg @ydogandjiev +/types/microtime/ @vincekovacs +/types/milkcocoa/ @odangosan +/types/mime/ @jedigo @dhritzkiv +/types/mime-db/ @AJamesPhillips +/types/mime-types/ @Perlmint +/types/mimos/ @AJamesPhillips +/types/mina/ @lhk @mattanja @kant2002 +/types/minimatch/ @vvakame @shantmarouti +/types/minimist/ @Bartvds @Necroskillz @kamranayub +/types/minimist-options/ @ikatyang +/types/minipass/ @BendingBender +/types/mirrorx/ @aaronphy +/types/mithril/ @spacejack @andraaspar @isiahmeadows +/types/mithril-global/ @spacejack @isiahmeadows +/types/mitm/ @alejo90 +/types/mixpanel/ @hjellek @Manduro +/types/mixto/ @vvakame +/types/mkdirp/ @Bartvds @mrmlnc +/types/mkpath/ @optical +/types/mobx-apollo/ @pselden +/types/mocha/ @kazimanzurrashid @otiai10 @jt000 @enlight +/types/mocha-phantomjs/ @ErikSchierboom +/types/mochaccino/ @thomas-p +/types/mock-aws-s3/ @bluehatbrit +/types/mock-fs/ @Nemo157 @tkqubo +/types/mock-knex/ @jessezhang91 +/types/mock-raf/ @djpereira +/types/mock-require/ @gDelgado14 +/types/mockdate/ @brunolm +/types/mockery/ @jt000 +/types/modernizr/ @borisyankov @theodorejb @leonyu @lucax88x @nhardy +/types/modesl/ @neeschit +/types/moji/ @yasupeke +/types/moment-business/ @wonbyte +/types/moment-business-time/ @swist +/types/moment-duration-format/ @SwintDC @TwoStone @leonard-thieu +/types/moment-holiday/ @rwdalpe +/types/moment-jalaali/ @alitaheri +/types/moment-range/ @Burgov @wilgert @franjuan @MartynasZilinskas +/types/moment-round/ @jacobbaskin +/types/moment-strftime2/ @dex4er +/types/moment-timezone/ @michelsalib @alanblins +/types/mongodb/ @CaselIT @alanmarcell @kikar @bitjson @dante-101 @mcortesi +/types/mongoose/ @simonxca @horiuchi @sindrenm @lukasz-zak +/types/mongoose-auto-increment/ @AyaMorisawa +/types/mongoose-deep-populate/ @AyaMorisawa +/types/mongoose-geojson-schema/ @bondz +/types/mongoose-mock/ @jt000 +/types/mongoose-paginate/ @linusbrolin @simonxca +/types/mongoose-promise/ @simonxca +/types/mongoose-seeder/ @Crevil +/types/mongoose-sequence/ @linusbrolin +/types/mongoose-simple-random/ @rsxdalv +/types/mongoose-unique-validator/ @stevehipwell +/types/moo/ @deltaidea @MofX +/types/moonjs/ @DanielRosenwasser +/types/morgan/ @staticfunction @pscanf +/types/morris.js/ @mareek @sindilevich +/types/mousetrap/ @qcz +/types/move-concurrently/ @mgroenhoff +/types/moviedb/ @basarat @0x6368656174 +/types/moxios/ @itoasuka +/types/mpromise/ @sgkim126 +/types/mri/ @shiftkey @j-f1 +/types/ms/ @danny8002 +/types/msgpack-lite/ @endel @efokschaner +/types/msgpack5/ @wokim @heycalmdown +/types/msnodesql/ @borisyankov @SomaticIT +/types/msportalfx-test/ @julioct +/types/mssql/ @jaminfarr @buzinas @mrrichar @elhaard @pkeuter +/types/mu2/ @jedigo +/types/multer/ @jt000 @DavidBR-SW @mxl @hyunseob +/types/multer-gridfs-storage/v1/ @devconcept +/types/multer-gridfs-storage/ @devconcept +/types/multer-s3/ @tcaesvk @galtalmor +/types/multi-typeof/ @mhegazy +/types/multimatch/ @stephenlautier +/types/multiparty/ @kenfdev +/types/multiplexjs/ @KamyarNazeri +/types/multisort/ @CzBuCHi +/types/multistream/ @mrmlnc +/types/murmurhash-js/ @cvle +/types/murmurhash3js/ @dlee-nvisia +/types/musicmetadata/ @Xstoudi +/types/mustache/ @markashleybell +/types/mv/ @nenadalm +/types/mysql/ @wjohnsto @kacepe @kpping +/types/mz/ @ThomasHickman +/types/n3/ @phreed +/types/nano/ @timjacobi @vincekovacs +/types/nanoajax/ @nathancahill +/types/nanomsg/ @titan +/types/nanoscroller/ @zihark17 +/types/nanp/ @karn +/types/nats-hemera/ @vforv +/types/natsort/ @mgroenhoff +/types/natural/ @dmoonfire +/types/natural-sort/ @a-morales +/types/navigation/ @grahammendick +/types/navigation-react/ @grahammendick +/types/navigo/ @aersamkull +/types/nblas/ @erikgerrits +/types/nconf/ @jedigo @jmthibault +/types/ncp/ @bartvds +/types/ndarray/ @pawsong @taoqf +/types/nearley/ @deltaidea @BendingBender +/types/nedb/ @reppners @anthonynichols +/types/nedb-logger/ @thisboyiscrazy +/types/needle/v0/ @bigsan +/types/needle/v1/ @bigsan @nikeee +/types/needle/ @bigsan @nikeee @sindilevich +/types/negotiator/ @BendingBender +/types/neo4j/ @cyrilschumacher +/types/nes/ @NoHomey @saboya +/types/net-keepalive/ @hertzg +/types/netmask/ @mhfrantz +/types/nexpect/ @vvakame +/types/next/ @dru89 @brikou +/types/next-redux-wrapper/ @stevegeek +/types/ng-command/ @stephenlautier +/types/ng-cordova/ @ksachdeva +/types/ng-dialog/ @stephenlautier +/types/ng-facebook/ @Crevil +/types/ng-file-upload/ @johnnyreilly @thewarpaint +/types/ng-flow/ @ryan10132 +/types/ng-grid/ @smithkl42 @rolandzwaga @kentcooper +/types/ng-i18next/ @cyrilschumacher +/types/ng-notify/ @nzamosenchuk +/types/ng-stomp/ @lpotapczuk +/types/ngbootbox/ @stpettersens +/types/ngeohash/ @erkie +/types/ngkookies/ @martinmcwhorter +/types/ngmap/ @nkovacic +/types/ngprogress/ @martinmcwhorter +/types/ngprogress-lite/ @LukeForder +/types/ngreact/ @velveret +/types/ngstorage/ @kubiq +/types/ngtoaster/ @btesser +/types/ngwysiwyg/ @patrick-mackay +/types/nightmare/ @horiuchi @samyang-au +/types/nightwatch/ @rkavalap @schlesiger +/types/noble/ @swook @wind-rider @shantanubhadoria @lukel99 @bioball @keton +/types/nock/ @bonnici @horiuchi @afharo @mastermatt +/types/nodal/ @charrondev +/types/node/v4/ @eps1lon +/types/node/v6/ @WilcoBakker @inlined @eps1lon +/types/node/v7/ @parambirs @tellnes @WilcoBakker @eps1lon +/types/node/v8/ @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @OliverJAsh @eps1lon @Hannes-Magnusson-CK @jkomyno +/types/node/ @parambirs @tellnes @WilcoBakker @octo-sniffle @smac89 @Flarna @mwiktorczyk @wwwy3y3 @DeividasBakanas @kjin @alvis @OliverJAsh @eps1lon @Hannes-Magnusson-CK @jkomyno @ajafff +/types/node-7z/ @erkie +/types/node-array-ext/ @Beng89 +/types/node-cache/ @chrootsu @dthunell @useltmann +/types/node-calendar/ @luzianz +/types/node-cleanup/ @agadar +/types/node-common-errors/ @icopp +/types/node-dir/ @panuhorsmalahti +/types/node-dogstatsd/ @chrisbobo +/types/node-emoji/ @jonestristand @styu +/types/node-fetch/ @torstenwerner +/types/node-fibers/ @caryhaynie +/types/node-forge/ @westy92 @flynetworks @a-k-g @rafal2228 +/types/node-gcm/ @horiuchi +/types/node-geocoder/ @rosek86 +/types/node-getopt/ @kcauchy +/types/node-hid/ @mhegazy @ert78gb +/types/node-horseman/ @apratheek +/types/node-hue-api/ @fjmorel +/types/node-int64/ @x3cion @kevin-greene-ck +/types/node-ipc/ @arvitaly +/types/node-jsfl-runner/ @mrand01 +/types/node-json-db/ @kuzn-ilya +/types/node-mysql-wrapper/ @kataras +/types/node-notifier/ @tkQubo +/types/node-pg-migrate/ @bradleyayers +/types/node-polyglot/ @timjk +/types/node-powershell/ @rodrigoff +/types/node-ral/ @ssddi456 +/types/node-red/ @andersea +/types/node-rsa/ @alitaheri +/types/node-schedule/ @cyrilschumacher @flowpl +/types/node-slack/ @tkQubo +/types/node-snap7/ @heilingbrunner +/types/node-sprite-generator/ @Perlmint +/types/node-static/ @Morfent +/types/node-statsd/ @alexturek @convoyinc +/types/node-telegram-bot-api/ @ammuench @agadar @Dabolus +/types/node-uuid/ @jeffmay +/types/node-validator/ @kengorab +/types/node-vault/ @YuJianrong +/types/node-waves/ @stephenlautier +/types/node-wit/ @julienduf +/types/node-xmpp-client/ @PJakcson +/types/node-xmpp-core/ @PJakcson +/types/node-zookeeper-client/ @plantain-00 @jessezhang91 +/types/node_redis/ @borisyankov +/types/nodegit/ @dolanmiu +/types/nodemailer/v3/ @rogierschouten +/types/nodemailer/ @rogierschouten @dex4er +/types/nodemailer-direct-transport/ @rogierschouten +/types/nodemailer-mailgun-transport/ @otociulis +/types/nodemailer-pickup-transport/ @psnider +/types/nodemailer-ses-transport/ @westy92 +/types/nodemailer-smtp-pool/ @rogierschouten +/types/nodemailer-smtp-transport/ @rogierschouten +/types/nodemailer-stub-transport/ @cyrilschumacher +/types/nodeunit/ @jedigo +/types/noisejs/ @izmhr +/types/nomnom/ @panopticoncentral +/types/nopt/ @jbondc +/types/normalize-package-data/ @jdxcode +/types/normalize-url/ @odin3 @BendingBender +/types/notie/ @mateusdemboski +/types/notify/ @hellochar +/types/notifyjs/ @soundTricker +/types/notifyjs-browser/ @bahman616 +/types/notyf/ @gurov +/types/nouislider/v7/ @acoreyj +/types/nouislider/v8/ @bleuarg +/types/nouislider/ @bleuarg @lagaffe +/types/novnc-core/ @smithkl42 @BendingBender +/types/npm/ @SomaticIT +/types/npm-package-arg/ @mgroenhoff +/types/ns-api/ @Archcry +/types/nslog/ @unindented +/types/nsqjs/ @cezaryrk +/types/number-is-nan/ @mhegazy +/types/number-to-words/ @frederickfogerty +/types/numeral/ @vbortone +/types/numjs/ @taoqf +/types/nunjucks/ @RubenSlabbert +/types/nunjucks-date/ @kruncher +/types/nvd3/ @PjMitchell +/types/nw.gui/ @xperiments +/types/nw.js/ @alirdn +/types/o.js/ @IceOnFire @bradzacher @janhommes @jcchalte +/types/oauth.js/ @nobuoka +/types/oauth2-server/ @vangorra @cirick +/types/oauth2orize/ @wokim @heycalmdown @stevehipwell +/types/obelisk.js/ @bdrupieski +/types/object-assign/ @chbrown +/types/object-diff/ @rogierschouten +/types/object-hash/ @misak113 +/types/object-inspect/ @demurgos +/types/object-map/ @wolfgang42 +/types/object-path/ @pocesar +/types/object-refs/ @3fd +/types/oblo-util/ @Oblosys +/types/oboe/ @optical +/types/observe-js/ @herrmanno +/types/oclazyload/ @rolandzwaga +/types/odata/ @janhommes @jcchalte +/types/ofe/ @Morfent +/types/office-js/ @OfficeDev @LanceEA +/types/offline-js/ @cgwrench +/types/oibackoff/ @geoffreak +/types/oidc-token-manager/ @rosieks +/types/on-finished/ @czechboy0 @BendingBender +/types/on-headers/ @jjeffery @BendingBender +/types/once/ @denis-sokolov @BendingBender +/types/onesignal-cordova-plugin/ @broder +/types/onetime/ @BendingBender +/types/oniguruma/ @smhxx +/types/onoff/ @marcel-ernst +/types/open/ @Bartvds +/types/opener/ @tikurahul +/types/openfin/ @chrisbarker +/types/openjscad/ @danmarshall +/types/openlayers/v2/ @bolhovsky +/types/openlayers/v3/ @osechet @matthiasdailey-ccri +/types/openlayers/ @osechet @wb14123 @ailrun @mylen @iamthechad @danmana +/types/openstack-wrapper/ @sanjaymadane +/types/opentok/ @westy92 @CatGuardian +/types/opentype.js/ @danmarshall +/types/opn/ @shinnn @SomaticIT @tlent +/types/optics-agent/ @crevil +/types/optimist/ @soywiz @chbrown +/types/optimize-css-assets-webpack-plugin/ @odnamrataizem +/types/ora/v0/ @screendriver +/types/ora/ @basarat @screendriver @BendingBender +/types/oracledb/ @Bigous +/types/orchestrator/ @tkQubo @TeamworkGuy2 +/types/orderedmap/ @bradleyayers +/types/orientjs/ @saeedtabrizi +/types/os-homedir/ @mhegazy +/types/os-locale/v1/ @AyaMorisawa @BendingBender +/types/os-locale/ @AyaMorisawa @BendingBender +/types/os-name/ @BendingBender +/types/os-tmpdir/ @mhegazy +/types/osmosis/ @jurajkocan +/types/osmtogeojson/ @tkqubo +/types/osrm/ @DenisCarriere +/types/otplib/ @renjfk +/types/owasp-password-strength-test/ @stephtr +/types/owl.carousel/ @igorissen @KennethanCeyer +/types/owlcarousel/ @dpiatkowski +/types/p-all/ @BendingBender +/types/p-any/ @BendingBender +/types/p-cancelable/ @BendingBender +/types/p-debounce/ @BendingBender +/types/p-defer/ @SamVerschueren +/types/p-do-whilst/ @BendingBender +/types/p-each-series/ @BendingBender +/types/p-event/ @BendingBender +/types/p-every/ @BendingBender +/types/p-lazy/ @BendingBender +/types/p-limit/ @BendingBender +/types/p-locate/ @BendingBender +/types/p-log/ @BendingBender +/types/p-map/ @BendingBender +/types/p-map-series/ @BendingBender +/types/p-one/ @BendingBender +/types/p-props/ @BendingBender +/types/p-queue/ @BendingBender @evanshortiss +/types/p-reduce/ @BendingBender +/types/p-reflect/ @BendingBender +/types/p-retry/ @BendingBender +/types/p-series/ @BendingBender +/types/p-settle/ @natesilva +/types/p-some/ @BendingBender +/types/p-tap/ @BendingBender +/types/p-throttle/ @BendingBender +/types/p-timeout/ @BendingBender +/types/p-try/ @BendingBender +/types/p-wait-for/ @BendingBender +/types/p-whilst/ @BendingBender +/types/p2/ @clark-stevenson +/types/package-json/ @jinwoo +/types/packery/ @piraveen @hanssens +/types/pad/ @mhegazy +/types/paho-mqtt/ @amikhalev +/types/pako/ @cappellin @calebegg +/types/pangu/ @plantain-00 +/types/papaparse/ @torpedro @rainshen49 @jfloff @johnnyreilly +/types/paper/ @clark-stevenson @Xakaloz +/types/paralleljs/ @jbaldwin +/types/parent-package-json/ @sgmccli +/types/parse/ @dpoetzsch @jaeggerr @flavionegrao +/types/parse-git-config/ @leonard-thieu +/types/parse-glob/ @glen-84 +/types/parse-json/ @mrmlnc +/types/parse-link-header/ @zelein +/types/parse-mockdb/ @dpoetzsch +/types/parse-ms/ @Roaders +/types/parse-torrent/ @niieani @tlaziuk +/types/parse-torrent-file/ @tlaziuk +/types/parse-unit/ @Jack-Works +/types/parseurl/ @bomret +/types/parsimmon/ @Bartvds @mizunashi-mana @bcherny @bvanreeven @leonard-thieu +/types/passport/ @horiuchi @enaeseth @theigor @tlaziuk +/types/passport-anonymous/ @0x6368656174 +/types/passport-beam/ @AtlasDev +/types/passport-discord/ @kzay +/types/passport-facebook/ @staticfunction @lucasmacosta +/types/passport-facebook-token/ @rmartone @mrand01 +/types/passport-github/ @yasupeke +/types/passport-github2/ @yasupeke @mthmulders +/types/passport-google-oauth/ @staticfunction +/types/passport-google-oauth2/ @bluehatbrit +/types/passport-http/ @krizalys +/types/passport-http-bearer/ @isman-usoh +/types/passport-local/ @SomaticIT +/types/passport-local-mongoose/ @linusbrolin +/types/passport-oauth2/ @pasieronen +/types/passport-oauth2-client-password/ @akaNightmare +/types/passport-saml/ @cjbarth +/types/passport-steam/ @kzay +/types/passport-strategy/ @liorm +/types/passport-twitter/ @staticfunction +/types/passport-unique-token/ @briman0094 @SomaticIT +/types/password-hash/ @mugeso +/types/password-hash-and-salt/ @alitaheri +/types/path-exists/v1/ @shiwano +/types/path-exists/ @shiwano @BendingBender +/types/path-is-absolute/ @mhegazy +/types/pathfinding/ @BNedry +/types/pathjs/ @lokeshpeta +/types/pathwatcher/ @GlenCFL +/types/pause/ @BendingBender +/types/payment/ @apare +/types/paypal-cordova-plugin/ @Justin-Credible +/types/paypal-rest-sdk/ @trainerbill +/types/pbf/ @cschwarz +/types/pdfjs-dist/ @jbaldwin +/types/pdfkit/ @erichillah +/types/pdfobject/ @nielsboogaard +/types/pebblekitjs/ @makotokw +/types/peer-dial/ @RealTYPICAL +/types/peerjs/ @nakakura +/types/pegjs/ @vvakame @SrTobi @siegebell +/types/pem/ @tony19 @DethAriel +/types/persona/ @Nycto +/types/pet-finder-api/ @me +/types/pg/v6/ @pspeter3 +/types/pg/ @pspeter3 +/types/pg-ears/ @bradleyayers +/types/pg-escape/ @khell +/types/pg-pool/ @aleung +/types/pg-query-stream/ @asmarques +/types/pg-types/ @waratuman +/types/pgwmodal/ @pine613 +/types/phantom/ @horiuchi @llRandom +/types/phantomcss/ @abauzac +/types/phantomjs/ @jedhunsaker @keesey +/types/phoenix/ @mciastek +/types/phone/ @DxCx +/types/phone-formatter/ @westy92 +/types/phonegap/ @borisyankov @DickvdBrink +/types/phonegap-facebook-plugin/ @Justin-Credible +/types/phonegap-nfc/ @michaeldesigaud +/types/phonon/ @kserin +/types/photonui/ @florentpoujol +/types/photoswipe/ @hellochar +/types/physijs/ @gyohk +/types/pi-spi/ @marcel-ernst +/types/pick-weight/ @rsxdalv +/types/pickadate/ @theodorejb @leonard-thieu +/types/picturefill/ @alaz +/types/pidusage/ @cyrilschumacher +/types/pify/ @samverschueren @mad-mike +/types/pigpio/ @manerfan +/types/pikaday/ @MidnightDesign @wake42 +/types/pikaday-time/ @Sayan751 +/types/pinkyswear/ @chances +/types/pino/v3/ @psnider +/types/pino/ @psnider @BendingBender +/types/pino-multi-stream/ @JakeGinnivan +/types/pinterest-sdk/ @adamburmister +/types/pinyin/ @wanganjun +/types/piwik-tracker/ @lbguilherme +/types/pixelmatch/ @iamolegga +/types/pkg-dir/ @NK-WEB-Git +/types/pkijs/ @microshine +/types/platform/ @JakeH +/types/playcanvas/ @Neoflash1979 +/types/playerframework/ @ricardosabino +/types/pleasejs/ @nakakura +/types/plotly.js/ @chrisgervang @martinduparc @frederikaalund @taoqf +/types/plugapi/ @BNedry +/types/plugin-error/ @rogierschouten +/types/plupload/ @patrickbussmann +/types/pluralize/ @ukyo +/types/png-async/ @kanreisa +/types/pngjs/ @jason0x43 +/types/podcast/ @nikeee +/types/podium/ @AJamesPhillips +/types/point-in-polygon/ @dyst5422 @kogai +/types/polylabel/ @DenisCarriere +/types/polyline/ @Kern0 +/types/polymer/ @lgrignon @laco0416 +/types/polymer-ts/ @lgrignon +/types/popcorn/ @grapswiz +/types/portscanner/ @douglasduteil +/types/postal/ @lokeshpeta @myitcv +/types/postmark/ @benbayard +/types/pouch-redux-middleware/ @charrondev +/types/pouchdb/ @AGBrown @geppy @fredgalvao +/types/pouchdb-adapter-fruitdown/ @spaulg @geppy @fredgalvao +/types/pouchdb-adapter-http/ @spaulg @geppy @fredgalvao +/types/pouchdb-adapter-idb/ @spaulg @geppy @fredgalvao +/types/pouchdb-adapter-leveldb/ @spaulg @geppy @fredgalvao +/types/pouchdb-adapter-localstorage/ @spaulg @geppy @fredgalvao +/types/pouchdb-adapter-memory/ @spaulg @geppy @fredgalvao +/types/pouchdb-adapter-node-websql/ @spaulg @geppy @fredgalvao +/types/pouchdb-adapter-websql/ @spaulg @geppy @fredgalvao +/types/pouchdb-browser/ @spaulg @geppy @fredgalvao +/types/pouchdb-core/ @spaulg @trubit @geppy @fredgalvao @TobiasBales +/types/pouchdb-find/ @trubit +/types/pouchdb-http/ @spaulg @geppy @fredgalvao +/types/pouchdb-mapreduce/ @spaulg @geppy @fredgalvao +/types/pouchdb-node/ @spaulg @geppy @fredgalvao +/types/pouchdb-replication/ @trubit +/types/pouchdb-upsert/ @keithdmoore @hotforfeature @apolkingg8 +/types/power-assert/ @vvakame +/types/power-assert-formatter/ @vvakame +/types/precise/ @codeanimal +/types/precond/ @olsio +/types/preloadjs/ @endel +/types/prelude-ls/ @AyaMorisawa +/types/prettier/ @ikatyang +/types/pretty-bytes/ @plantain-00 +/types/pretty-format/ @ikatyang +/types/pretty-ms/ @BendingBender +/types/printf/ @AluisioASG +/types/priorityqueuejs/ @geoffreak +/types/prismjs/ @eriklieben @andrewiggins @mmiszy +/types/private-ip/ @coderslagoon +/types/procfs-stats/ @cyrilschumacher +/types/progress/ @sebastian-lenz +/types/progressbar/ @atd-schubert +/types/progressjs/ @zaneli +/types/proj4/ @DenisCarriere +/types/proj4leaflet/ @BendingBender +/types/project-oxford/ @scsouthw +/types/promise-dag/ @OSjoerdWie +/types/promise-pg/ @coldacid +/types/promise-polyfill/ @skysteve +/types/promise-pool/ @vilic +/types/promise-retry/ @shirakaba +/types/promise.prototype.finally/ @slavik57 @BendingBender +/types/promised-temp/ @rokadias +/types/promisify-node/ @borekb +/types/promisify-supertest/ @aleung +/types/prompt-sync/ @MugeSo +/types/prompt-sync-history/ @MugeSo +/types/promptly/ @danrspencer +/types/prop-types/ @DovydasNavickas +/types/properties-reader/ @Goldsmith42 +/types/prosemirror-collab/ @bradleyayers @davidka @timjb +/types/prosemirror-commands/ @bradleyayers @davidka @timjb +/types/prosemirror-gapcursor/ @bradleyayers @davidka @timjb +/types/prosemirror-history/ @bradleyayers @davidka @timjb +/types/prosemirror-inputrules/ @bradleyayers @davidka @timjb +/types/prosemirror-keymap/ @bradleyayers @davidka @timjb +/types/prosemirror-markdown/ @bradleyayers @davidka @timjb +/types/prosemirror-menu/ @bradleyayers @davidka @timjb +/types/prosemirror-model/ @bradleyayers @davidka @timjb +/types/prosemirror-schema-basic/ @bradleyayers @davidka @timjb +/types/prosemirror-schema-list/ @bradleyayers @davidka @timjb +/types/prosemirror-state/ @bradleyayers @davidka @timjb +/types/prosemirror-tables/ @superchu @eshvedai +/types/prosemirror-transform/ @bradleyayers @davidka @timjb +/types/prosemirror-view/ @bradleyayers @davidka @timjb +/types/protractor-browser-logs/ @rokadias +/types/protractor-helpers/ @johncant +/types/protractor-http-mock/ @Crevil +/types/provinces/ @gatimus +/types/proxy-addr/ @BendingBender +/types/proxyquire/ @jt000 +/types/pty.js/ @enlight +/types/public-ip/ @BendingBender +/types/pubnub/ @bitbankinc @rollymaduk +/types/pubsub-js/ @borisyankov +/types/pug/ @TonyPythoneer @19majkel94 +/types/pulltorefreshjs/ @DanielRosenwasser +/types/pump/ @tlaziuk +/types/pupa/ @nju33 +/types/puppeteer/ @marvinhagemeister @cdeutsch +/types/pure-render-decorator/ @seansfkelley +/types/purl/ @danfma +/types/pusher-js/ @tkqubo +/types/pvutils/ @microshine +/types/python-shell/ @dolanmiu +/types/q/v0/ @bnemetchek @johnnyreilly +/types/q/ @bnemetchek @AndrewGaspar @johnnyreilly @mboudreau +/types/q-io/ @Bartvds +/types/q-retry/ @vilic +/types/qhistory/ @Kovensky +/types/qlik/ @RubenSlabbert @AginicX +/types/qlik-engineapi/ @konne +/types/qlik-visualizationextensions/ @konne +/types/qr-image/ @taoqf +/types/qrcode.react/ @mleko +/types/qs/ @RWander @leonyu @tehbelinda @zyml @artursvonda @CarlosBonetti +/types/qtip2/ @Seltzer @leonard-thieu +/types/query-string/ @SamVerschueren @tkrotoff @huhuanming +/types/quick-lru/ @BendingBender +/types/quill/ @sumitkm @guillaume-ro-fr @43081j +/types/quixote/ @greybax +/types/qunit/v1/ @diullei +/types/qunit/ @waratuman +/types/quoted-printable/ @pushplay +/types/qwest/ @lindsayevans +/types/r-script/ @NaridaL +/types/rabbit.js/ @wokim +/types/radium/ @alexgorbatchev @nupplaphil @asvetliakov @mihe +/types/radius/ @codeanimal +/types/ramda/ @donnut @mdekrey @mrdziuban @sbking @afharo @teves-castro @1M0reBug @hojberg @charlespwd @samsonkeung @angeloocana @raynerd @googol @moshensky +/types/random-js/ @pistacchio +/types/random-seed/ @endel +/types/random-string/ @stpettersens +/types/randomcolor/ @feitzi @BradyLiles +/types/range-parser/ @tlaziuk +/types/rangyinputs/ @ersimont +/types/raphael/ @CheCoxshall +/types/rappid/ @DenEwout +/types/raspi/ @nebrius +/types/raspi-board/ @nebrius +/types/raspi-peripheral/ @nebrius +/types/ratelimiter/ @AyaMorisawa +/types/raty/ @terrawheat +/types/raven/ @scttcper @1999 +/types/raven-for-redux/ @chiubaka +/types/raygun4js/ @xt0rted @BenjaminHarding +/types/rbac-a/ @tlaziuk +/types/rc/ @DanielRosenwasser +/types/rc-select/ @DenisTirilis +/types/rc-slider/ @mantasmarcinkus @mattoni @paustint @j-fro +/types/rc-tree/ @johnnyreilly +/types/rcloader/ @panuhorsmalahti +/types/rdf-data-model/ @rubensworks +/types/rdf-js/ @rubensworks +/types/react/v15/ @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz +/types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @morcerf @tkrotoff @DovydasNavickas @onigoetz @richseviora @theruther4d +/types/react-alert/ @ssyrell +/types/react-alice-carousel/ @endigo +/types/react-app/ @prakarshpandey +/types/react-aria-menubutton/ @forabi @crohlfs +/types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch @rosskevin +/types/react-beautiful-dnd/ @varHarrie @bradleyayers +/types/react-body-classname/ @mhegazy +/types/react-bootstrap/ @walkerburgin @vsiao @danilojrr @Batbold-Gansukh @octatone @chengsieuly @mretolaza @katbusch @vitosamson @LKay @aaronbeall +/types/react-bootstrap-date-picker/ @LKay @ssi-hu-antal-bodnar +/types/react-bootstrap-daterangepicker/ @ianks +/types/react-bootstrap-table/v2/ @flaub @alelode @UJosue10 +/types/react-bootstrap-table/ @flaub @alelode @UJosue10 @dawnmist @Ogglas +/types/react-bootstrap-typeahead/ @Guymestef +/types/react-breadcrumbs/ @KostyaEsmukov +/types/react-breadcrumbs-dynamic/ @mitsuruog +/types/react-broadcast/ @kandros +/types/react-burger-menu/ @radziksh +/types/react-calendar-heatmap/ @9renpoto +/types/react-calendar-timeline/ @radziksh +/types/react-cartographer/ @trevonmckay +/types/react-codemirror/ @velveret @rudi-c +/types/react-collapse/ @Kimahriman +/types/react-color/ @LKay @markspolakovs @mntdn +/types/react-confirm/ @santiagodoldan +/types/react-content-loader/ @alaatm +/types/react-copy-to-clipboard/ @mabels +/types/react-cropper/ @stepancar +/types/react-css-modules/ @KostyaEsmukov @skirsdeda +/types/react-css-transition-replace/ @LKay +/types/react-custom-scrollbars/v3/ @David-LeBlanc-git +/types/react-custom-scrollbars/ @David-LeBlanc-git @kittimiyo +/types/react-data-grid/v1/ @SupernaviX +/types/react-data-grid/ @SupernaviX @KieranPeat @martinnov92 +/types/react-datagrid/ @stephenjelfs +/types/react-date-range/ @Junbong +/types/react-datepicker/ @radziksh @andrewBalekha @smrq @Rogach @royxue +/types/react-daterange-picker/ @uncovertruth @MartynasZilinskas +/types/react-dates/ @Artur-A +/types/react-daum-postcode/ @Sa-ryong +/types/react-dnd-html5-backend/ @oizie +/types/react-dnd-multi-backend/ @dawnmist +/types/react-dnd-test-backend/ @gustavohenke +/types/react-dnd-touch-backend/ @mleko @dawnmist +/types/react-document-title/ @cleverguy25 +/types/react-dom/v15/ @MartynasZilinskas +/types/react-dom/ @MartynasZilinskas @theruther4d +/types/react-dom-factories/ @jgoz +/types/react-dropzone/v2/ @matdube @LynxEyes @goblindegook @benbayard +/types/react-dropzone/v3/ @matdube @LynxEyes @goblindegook @benbayard @LKay +/types/react-dropzone/ @matdube @LynxEyes @goblindegook @benbayard @LKay @codeaid @jurosh +/types/react-easy-chart/ @danzel +/types/react-event-listener/ @asvetliakov +/types/react-fa/ @flaub @patsissons @LKay +/types/react-facebook-login/ @apare @jankarres +/types/react-faux-dom/ @alitaheri @cleverguy25 +/types/react-file-input/ @dmitryrogozhny +/types/react-file-reader-input/ @dmitryrogozhny @alitaheri +/types/react-flatpickr/ @begincalendar +/types/react-flex/ @pushplay +/types/react-flexr/ @pushplay +/types/react-fontawesome/ @timurrustamov @dublicator @vincaslt @gavingregory +/types/react-form/v1/ @cameron-mcateer +/types/react-form/ @cameron-mcateer +/types/react-foundation/ @danielearwicker +/types/react-geosuggest/ @brmenchl +/types/react-google-recaptcha/ @KoalaHuman +/types/react-gravatar/ @invliD +/types/react-grid-layout/ @abirkholz @alitaheri @ZheyangSong @andrewhathaway +/types/react-hamburger-menu/ @grzesie2k +/types/react-helmet/v4/ @evanbb @isman-usoh +/types/react-helmet/ @evanbb @isman-usoh @lith-light-g @sammkj @yuit +/types/react-highlight-words/ @mhegazy +/types/react-highlighter/ @oizie +/types/react-holder/ @isman-usoh +/types/react-hot-loader/ @jacekjagiello +/types/react-hyperscript/ @tock203 +/types/react-i18next/v1/ @KostyaEsmukov +/types/react-i18next/v4/ @GiedriusGrabauskas +/types/react-i18next/ @GiedriusGrabauskas @chnoch +/types/react-icon-base/ @apare @LKay +/types/react-icons/ @apare @johnnyreilly @LKay +/types/react-image-gallery/ @adamwpc +/types/react-imageloader/ @stephenjelfs +/types/react-infinite/ @rhysd +/types/react-infinite-scroller/ @Lapanti @psrebniak +/types/react-input-calendar/ @stepancar +/types/react-input-mask/ @apare +/types/react-intl/v1/ @bgrieder +/types/react-intl/ @bgrieder @cdroulers @gyzerok @tillwolff @LKay @bhouser @kristerkari +/types/react-intl-redux/ @LKay +/types/react-is-deprecated/ @seansfkelley +/types/react-joyride/ @DanielRosenwasser @bendxn +/types/react-json/ @spielc +/types/react-json-pretty/ @LKay +/types/react-json-tree/ @gnestor +/types/react-jsonschema-form/ @iamdanfox @sirreal @iplus26 @KurtPreston +/types/react-lazyload/ @m0a +/types/react-leaflet/ @danzel @davschne @yuit +/types/react-list/ @buptyyf @tomshen +/types/react-loadable/ @Kovensky @odensc +/types/react-loader/ @artfuldev +/types/react-maskedinput/ @LKay @lavoaster @CarlosBonetti +/types/react-mce/ @morphologue +/types/react-mdl/ @bradzacher +/types/react-measure/ @asvetliakov @marcfallows +/types/react-mixin/ @tkqubo +/types/react-modal/ @radziksh @drewnoakes @homburg @ttamminen @hallowatcher @peterblazejewicz +/types/react-monaco-editor/ @jnetterf +/types/react-motion/ @stepancar @asvetliakov +/types/react-motion-slider/ @asvetliakov +/types/react-native/ @alloy @huhuanming @iRoachie @timwangdev @kamal @nelyousfi +/types/react-native-collapsible/ @iRoachie +/types/react-native-communications/ @huhuanming @PaitoAnderson +/types/react-native-datepicker/ @jacobbaskin +/types/react-native-doc-viewer/ @iRoachie +/types/react-native-document-picker/ @plantain-00 +/types/react-native-drawer/ @jnbt +/types/react-native-drawer-layout/ @jmfirth +/types/react-native-fabric/ @josephroque +/types/react-native-fbsdk/ @ifiokjr +/types/react-native-fetch-blob/ @MNBuyskih +/types/react-native-fs/ @pocesar @josephroque +/types/react-native-google-signin/ @j-fro +/types/react-native-keep-awake/ @huhuanming +/types/react-native-linear-gradient/ @j-fro +/types/react-native-material-design-searchbar/ @iRoachie +/types/react-native-material-kit/ @iRoachie @timwangdev +/types/react-native-material-ui/ @iRoachie +/types/react-native-mixpanel/ @r3nya +/types/react-native-modalbox/ @iRoachie +/types/react-native-orientation/ @MoLow +/types/react-native-popup-dialog/ @PaitoAnderson @connectdotz +/types/react-native-push-notification/ @PaitoAnderson +/types/react-native-qrcode/ @plantain-00 +/types/react-native-safari-view/ @mrand01 +/types/react-native-scrollable-tab-view/ @CaiHuan +/types/react-native-sensor-manager/ @SahinVardar +/types/react-native-snap-carousel/ @jnbt +/types/react-native-sortable-grid/ @j-fro +/types/react-native-sortable-list/ @sivolobov +/types/react-native-svg-uri/ @iRoachie +/types/react-native-swiper/ @CaiHuan @huhuanming @mhcgrq +/types/react-native-tab-navigator/ @iRoachie +/types/react-native-tab-view/ @kaoDev +/types/react-native-touch-id/ @huhuanming +/types/react-native-vector-icons/ @iRoachie @timwangdev +/types/react-native-video/ @huhuanming @abrahambotros +/types/react-navigation/ @huhuanming @mhcgrq @fangpenlin @abrahambotros @petejkim @iRoachie @phanalpha @charlesfamu @timwangdev @bang88 @svbutko +/types/react-notification-system/ @GiedriusGrabauskas @DeividasBakanas @LKay @sztobar +/types/react-notification-system-redux/ @LKay +/types/react-numeric-input/ @heatherbooker +/types/react-onclickoutside/v5/ @LKay +/types/react-onclickoutside/ @LKay +/types/react-overlays/ @aaronbeall @vitosamson +/types/react-paginate/ @deevus @wouterhardeman @pegel03 @archy-bold +/types/react-pointable/ @istefo @mdibyo +/types/react-portal/ @shuntksh +/types/react-props-decorators/ @tkqubo +/types/react-recaptcha/ @mhegazy @zzanol +/types/react-redux/ @tkqubo @thasner @kenzierocks @clayne11 @tansongyang @nicholasboll @mdibyo @pdeva +/types/react-redux-i18n/ @clementdevos +/types/react-redux-toastr/ @Smiche @artyomsv @kulmajaba +/types/react-relay/ @graphcool @voxmatt @alloy +/types/react-resolver/ @forabi +/types/react-responsive/v1/ @asvetliakov +/types/react-responsive/ @asvetliakov @alechill @xaviergonz +/types/react-router/v2/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov +/types/react-router/v3/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @ssorallen +/types/react-router/ @sergey-buturlakin @mrk21 @vasek17 @ngbrown @awendland @KostyaEsmukov @johnnyreilly @LKay @DovydasNavickas @tkrotoff @huy-nguyen @grmiade @DaIgeb @egorshulga +/types/react-router-bootstrap/ @vlesierse @LKay @olmobrutall +/types/react-router-config/ @lith-light-g +/types/react-router-dom/ @tkrotoff @huy-nguyen +/types/react-router-native/ @ezintz +/types/react-router-redux/v3/ @isman-usoh @noah79 @rosendi +/types/react-router-redux/v4/ @isman-usoh @noah79 @rosendi @LKay @DovydasNavickas +/types/react-router-redux/ @huy-nguyen @8398a7 +/types/react-s-alert/ @mitsuruog +/types/react-scroll/ @sudoplz @GiedriusGrabauskas +/types/react-scrollbar/ @stephenjelfs +/types/react-select/ @Hesquibet @giladgray @iebaker @skirsdeda @vujevits @devrelm @MartynasZilinskas @onatm @ninjaferret @tehbi4 +/types/react-side-effect/ @remojansen +/types/react-sidebar/ @jeroenvervaeke +/types/react-sketchapp/ @ricokahler +/types/react-slick/ @andrewBalekha @GiedriusGrabauskas @r3nya +/types/react-smooth-scrollbar/ @asvetliakov +/types/react-sortable-hoc/ @NoHomey @charlesrey +/types/react-sortable-pane/ @rhysd +/types/react-sortable-tree/ @wouterhardeman @jzoric +/types/react-spinkit/v1/ @tkqubo @mleko @pelotom +/types/react-spinkit/ @tkqubo @mleko @pelotom @zzanol +/types/react-sticky/ @curtisw0 +/types/react-stripe-elements/ @dan-j @santiagodoldan @sonnysangha +/types/react-svg-pan-zoom/ @huy-nguyen +/types/react-swf/ @stepancar +/types/react-swipe/ @DeividasBakanas +/types/react-swipeable/ @GiedriusGrabauskas @mctep @horiuchi +/types/react-swipeable-views/ @mxl @DeividasBakanas +/types/react-syntax-highlighter/ @NoHomey +/types/react-table/ @royxue @psakalo @Havret +/types/react-tabs/ @danez +/types/react-tag-input/ @Ogglas @jankarres +/types/react-tagcloud/ @wassname +/types/react-tagsinput/ @mykter +/types/react-tap-event-plugin/ @mxl +/types/react-test-renderer/v15/ @arvitaly @lochbrunner @lochbrunner @johnnyreilly +/types/react-test-renderer/ @arvitaly @lochbrunner @johnnyreilly @jgoz +/types/react-tether/ @ryprice +/types/react-textarea-autosize/ @asvetliakov @zry656565 +/types/react-toastr/ @shssoichiro +/types/react-toggle/v2/ @LKay +/types/react-toggle/ @LKay +/types/react-tooltip/ @DeividasBakanas +/types/react-touch/ @grzesie2k +/types/react-tracking/ @alloy +/types/react-transition-group/v1/ @LKay +/types/react-transition-group/ @LKay +/types/react-treeview/ @janslow +/types/react-truncate/ @mattvperry +/types/react-user-tour/ @ccancellieri +/types/react-virtual-keyboard/ @bsurai +/types/react-virtualized/ @kaoDev @guntherjh @wasd171 @szabolcsx @kraenhansen +/types/react-virtualized-select/ @seansfkelley +/types/react-weui/ @tairan +/types/react-widgets/ @rogierschouten @sanyatuning @frodehansen2 +/types/react-widgets-moment/ @dawnmist +/types/react-youtube/ @kgtkr +/types/reactable/ @spielc +/types/reactcss/ @chrisgervang @LKay +/types/reactstrap/v4/ @alihammad @mfal @danilobjr @fabiopaiva +/types/reactstrap/ @alihammad @mfal @danilobjr @fabiopaiva @FaithForHumans @KurtPreston +/types/read/ @timjk +/types/read-chunk/ @crispybee +/types/read-package-tree/ @mgroenhoff +/types/read-pkg/ @jdxcode +/types/read-pkg-up/ @dudeofawesome @jdxcode +/types/readdir-stream/ @Bartvds +/types/readline-sync/ @jonestristand +/types/reapop/ @Barrokgl +/types/recase/ @18steps +/types/recharts/ @mthmulders @rapmue @royxue @ZheyangSong +/types/recompose/ @iskandersierra @mrapogee @clayne11 +/types/reconnectingwebsocket/ @nguarracino +/types/recursive-readdir/v1/ @elisee +/types/recursive-readdir/ @elisee @MicahZoltu +/types/redis/ @soywiz @CodeAnimal @MugeSo @UppaJung @Rokt33r @43081j +/types/redis-errors/ @43081j +/types/redis-mock/ @BendingBender +/types/redis-rate-limiter/ @westy92 +/types/redis-scripto/ @westy92 +/types/redlock/v2/ @chrootsu +/types/redlock/ @chrootsu @BendingBender +/types/redom/ @RauliL +/types/reduce-reducers/ @huy-nguyen +/types/redux-action/ @newraina +/types/redux-action-utils/ @tkqubo +/types/redux-actions/ @jaysoo @alexgorbatchev @alechill +/types/redux-auth-wrapper/v1/ @LKay +/types/redux-auth-wrapper/ @LKay +/types/redux-batched-subscribe/ @mDibyo +/types/redux-debounced/ @seansfkelley +/types/redux-devtools/ @mc-petry +/types/redux-devtools-dock-monitor/ @mc-petry +/types/redux-devtools-log-monitor/ @mc-petry +/types/redux-doghouse/ @BendingBender +/types/redux-first-router/ @Valbrand @viggyfresh @janb87 @corydeppen +/types/redux-first-router-link/ @janb87 +/types/redux-form/v4/ @aikoven +/types/redux-form/v6/ @carsonf @aikoven @LKay @bancek +/types/redux-form/ @carsonf @aikoven @LKay @bancek @alsiola @tehbi4 +/types/redux-immutable/ @oizie @sebald @gavingregory +/types/redux-immutable-state-invariant/ @remojansen @highflying +/types/redux-infinite-scroll/ @silkyfray +/types/redux-injectable-store/ @unindented +/types/redux-localstorage/ @LKay +/types/redux-localstorage-debounce/ @LKay +/types/redux-localstorage-filter/ @LKay +/types/redux-logger/ @arusakov @kgroat +/types/redux-mock-store/ @MarianPalkus +/types/redux-optimistic-ui/ @asvetliakov +/types/redux-pack/ @tansongyang +/types/redux-persist-transform-encrypt/ @LKay +/types/redux-persist-transform-filter/ @LKay +/types/redux-promise/ @molekilla @xStrom +/types/redux-promise-middleware/ @ianks +/types/redux-recycle/ @LKay +/types/redux-router/ @stepancar +/types/redux-storage/ @asvetliakov +/types/redux-storage-engine-jsurl/ @screendriver +/types/redux-storage-engine-localstorage/ @screendriver +/types/redux-ui/ @andyshuxin +/types/ref/ @loyd +/types/ref-array/ @loyd +/types/ref-struct/ @loyd +/types/ref-union/ @loyd +/types/reflux/ @mauricedb +/types/relateurl/ @tkrotoff +/types/relaxed-json/ @18steps +/types/relay-runtime/ @voxmatt @alloy +/types/remote-redux-devtools/ @ColinEberhardt @unindented +/types/remove-markdown/ @RagibHasin +/types/replace-ext/ @DeividasBakanas +/types/request/ @soywiz @bonnici @Bartvds @joeskeen @ccurrens @lookfirst @mastermatt +/types/request-ip/ @mrhen +/types/request-promise/ @cglantschnig @joeskeen @AyaMorisawa +/types/request-promise-native/ @gustavohenke +/types/requestretry/ @EricByers @trainerbill +/types/require-dir/ @weekens +/types/require-directory/ @Igmat +/types/require-from-string/ @ikatyang +/types/requirejs/ @jbaldwin +/types/requirejs-domready/ @lefb766 +/types/resemblejs/ @pimterry +/types/resolve/ @marionebl @ajafff +/types/resolve-from/ @unional +/types/resourcejs/ @shaunluttin +/types/response-time/ @urossmolnik @TonyPythoneer +/types/rest/ @Nemo157 +/types/restangular/ @borisyankov +/types/restful.js/ @tkqubo +/types/restify/v4/ @blittle @stevehipwell +/types/restify/ @blittle @stevehipwell +/types/restify-cookies/ @weekens +/types/restify-cors-middleware/ @dthunell +/types/restify-errors/ @stevehipwell +/types/restify-plugins/ @KostyaTretyak +/types/restler/ @cyrilschumacher +/types/restling/ @loghorn +/types/resumablejs/ @DanielMcAssey +/types/rethinkdb/ @alexgorbatchev +/types/retry/ @krenor +/types/rev-hash/ @ikatyang +/types/revalidate/ @alex3165 +/types/revalidator/ @brewsoftware +/types/reveal/ @robertop87 @Nava2 +/types/rewire/ @borislavjivkov @CaselIT +/types/rfc2047/ @mugifly +/types/rheostat/ @SashaBayan @kourge +/types/rickshaw/ @niemyjski +/types/rimraf/ @soywiz @e-cloud @bash +/types/riot/ @Stubb0rn +/types/riot-api-nodejs/ @zafixlrp +/types/riot-games-api/ @xstoudi +/types/riotcontrol/ @chrootsu +/types/riotjs/ @vvakame +/types/rison/ @impworks +/types/rivets/ @TrevorDev @matjanos +/types/rollup/ @flying-sheep @csvn +/types/rollup-plugin-json/ @asmockler +/types/ronomon__crypto-async/ @BendingBender +/types/rosie/ @abner @subvertallchris +/types/roslib/ @Pro @skycoop +/types/rot-js/ @atiaxi +/types/route-parser/ @ianks @bobbuehler +/types/routie/ @Adilson +/types/royalslider/ @csrakowski +/types/rpio/ @DominikPalo +/types/rrc/ @DeividasBakanas +/types/rrule/ @waratuman +/types/rsmq/ @MugeSo +/types/rsmq-worker/ @MugeSo +/types/rss/ @secondwtq +/types/rsvp/ @chriskrycho +/types/rsync/ @philippstucki +/types/rtree/ @oefirouz +/types/run-sequence/ @k-kagurazaka +/types/rx/ @Igorbek +/types/rx-angular/ @mickdelaney +/types/rx-core/ @Igorbek @mizunashi-mana +/types/rx-core-binding/ @Igorbek +/types/rx-dom/ @oliverw +/types/rx-jquery/ @Igorbek +/types/rx-lite/ @Igorbek +/types/rx-lite-aggregates/ @Igorbek +/types/rx-lite-async/ @zoetrope @Igorbek +/types/rx-lite-backpressure/ @Igorbek +/types/rx-lite-coincidence/ @Igorbek +/types/rx-lite-experimental/ @Igorbek +/types/rx-lite-joinpatterns/ @Igorbek +/types/rx-lite-testing/ @Igorbek +/types/rx-lite-time/ @Igorbek +/types/rx-lite-virtualtime/ @Igorbek +/types/rx.wamp/ @darkl +/types/s3-upload-stream/ @geoffreak +/types/safari-extension/ @luukd +/types/safari-extension-content/ @luukd +/types/safe-compare/ @bevalorous +/types/safe-json-stringify/ @ericbyers +/types/safe-regex/ @mhegazy +/types/sails.io.js/ @arvitaly +/types/saml2-js/ @horiuchi +/types/saml20/ @HackerUndKoch +/types/samlp/ @horiuchi +/types/sammy/ @borisyankov @oising +/types/sanctuary/ @davidchambers @cortopy +/types/sandboxed-module/ @svi3c +/types/sane/ @BendingBender +/types/sanitize-filename/ @Nemo157 +/types/sanitize-html/ @rogierschouten @afshin @BehindTheMath +/types/sap__xsenv/ @mad-mike +/types/sass-graph/ @marvinhagemeister +/types/sat/ @omni360 +/types/satnav/ @DotNetNerd +/types/saywhen/ @SeanSobey +/types/scalike/ @ryoppy +/types/screenfull/ @icholy @lionelb @joelshepherd +/types/screeps/ @MarkoSulamagi @NhanHo @bryanbecker @resir014 @Arcath @apemanzilla +/types/screeps-profiler/ @ramblurr +/types/scriptjs/ @ssttevee +/types/scroll-into-view/ @zivni +/types/scroller/ @haskellcamargo +/types/scrollreveal/ @Davidblkx +/types/scrolltofixed/ @bmdixon +/types/scrypt-async/ @xStrom +/types/scryptsy/ @micksatana +/types/seamless/ @danmana +/types/seamless-immutable/ @alex3165 @xsburg @geirsagberg +/types/seedrandom/ @kernhanda +/types/segment-analytics/ @fongandrew +/types/select2/ @borisyankov +/types/selectables/ @renjfk +/types/selectize/ @adidahiya @naBausch +/types/selenium-webdriver/v2/ @BillArmstrong @Kuniwak @cnishina +/types/selenium-webdriver/ @BillArmstrong @Kuniwak @cnishina @SupernaviX @bendxn +/types/semantic-ui/ @leonard-thieu +/types/semantic-ui-accordion/ @leonard-thieu +/types/semantic-ui-api/ @leonard-thieu +/types/semantic-ui-checkbox/ @leonard-thieu +/types/semantic-ui-dimmer/ @leonard-thieu +/types/semantic-ui-dropdown/ @leonard-thieu +/types/semantic-ui-embed/ @leonard-thieu +/types/semantic-ui-form/ @leonard-thieu +/types/semantic-ui-modal/ @leonard-thieu +/types/semantic-ui-nag/ @leonard-thieu +/types/semantic-ui-popup/ @leonard-thieu +/types/semantic-ui-progress/ @leonard-thieu +/types/semantic-ui-rating/ @leonard-thieu +/types/semantic-ui-search/ @leonard-thieu +/types/semantic-ui-shape/ @leonard-thieu +/types/semantic-ui-sidebar/ @leonard-thieu +/types/semantic-ui-site/ @leonard-thieu +/types/semantic-ui-sticky/ @leonard-thieu +/types/semantic-ui-tab/ @leonard-thieu +/types/semantic-ui-transition/ @leonard-thieu +/types/semantic-ui-visibility/ @leonard-thieu +/types/semaphore/ @mhfrantz @Alorel +/types/semver/ @Bartvds @BendingBender @LucianBuzzo +/types/semver-compare/ @vincekovacs +/types/semver-diff/ @chrismbarr +/types/sencha_touch/ @brian428 +/types/send/ @MikeJerred +/types/seneca/ @psnider +/types/sequelize/v3/ @samuelneff @codeanimal @drinchev @morpheusxaut @torhal +/types/sequelize/ @samuelneff @codeanimal @drinchev @babolivier @kukoo1 @oktapodia @morpheusxaut @TitaneBoy @zjy01 +/types/sequelize-fixtures/ @cschwarz +/types/sequencify/ @npenin +/types/sequester/ @Strate +/types/serialize-javascript/ @lith-light-g +/types/serialport/v4/ @codefoster +/types/serialport/ @codefoster @apearson +/types/serve-favicon/ @urossmolnik +/types/serve-index/ @tkrotoff +/types/serve-static/ @urossmolnik @LinusU +/types/server-destroy/ @gyszalai +/types/session-file-store/ @blendsdk @rokt33r +/types/set-cookie-parser/ @nickp10 +/types/sha1/ @arcdev1 +/types/shallowequal/ @seansfkelley +/types/shapefile/ @DenisCarriere +/types/sharedworker/ @nakakura +/types/sharepoint/ @gandjustas @andrei-markeev @baywet @teroarvola @dennispg +/types/sharp/ @lith-light-g +/types/sheetify/ @toddself +/types/shell-escape/ @nenadalm +/types/shell-quote/ @jason0x43 +/types/shelljs/ @nikeee @voy +/types/shimmer/ @kjin +/types/shipit/ @cyrilschumacher +/types/shipit-utils/ @cyrilschumacher +/types/shopify-buy/ @openminder +/types/shortid/ @stpettersens @despairblue +/types/shot/ @AJamesPhillips +/types/showdown/ @cbowdon @tan9 +/types/shrink-ray/ @forabi +/types/siema/ @Irmiz @0x6368656174 @samnau +/types/siesta/ @bquarmby +/types/sigmajs/ @qinfchen +/types/sigmund/ @BendingBender +/types/signalr/ @borisyankov @keesey @GiedriusGrabauskas +/types/signalr-no-jquery/ @gjoshevski +/types/signals/ @diullei +/types/signature_pad/ @AbubakerB @jrmihalick +/types/simple-assign/ @NoHomey +/types/simple-cw-node/ @vvakame +/types/simple-mock/ @leonyu +/types/simple-oauth2/ @mad-mike +/types/simple-peer/ @tlaziuk +/types/simple-url-cache/ @a-lucas +/types/simple-xml/ @notVitaliy +/types/simplebar/v1/ @gregonnet @leonard-thieu +/types/simplebar/ @leonard-thieu +/types/simplemde/ @Scalesoft +/types/simplesmtp/ @rogierschouten +/types/simplestorage.js/ @axelcostaspena @mxl +/types/sinon/ @mrbigdog2u @rationull @lumaxis @nicojs @43081j +/types/sinon-as-promised/ @igrayson +/types/sinon-chai/ @kazimanzurrashid @jedmao +/types/sinon-chrome/ @pimterry +/types/sinon-express-mock/ @jpchip @tlaziuk +/types/sinon-mongoose/ @stevehipwell +/types/sinon-stub-promise/ @vintem +/types/sinon-test/ @mummybot +/types/sip.js/ @decyrus +/types/sipml/ @chookies +/types/sitemap2/ @shundy +/types/sizzle/ @leonard-thieu +/types/sjcl/ @Evgenus +/types/ski/ @AyaMorisawa +/types/skyway/ @nakakura +/types/slack-node/ @geoffreak +/types/slack-winston/ @BlueHatbRit +/types/slackify-html/ @hypexr +/types/slate-irc/ @elisee +/types/sleep/ @rajarz +/types/slickgrid/ @jbaldwin +/types/slideout/ @ToastHawaii +/types/slimerjs/ @alexwall +/types/slocket/ @BendingBender +/types/slug/ @mhegazy +/types/smart-fox-server/ @ChanceM +/types/smoothscroll-polyfill/ @kryops +/types/smtp-server/v1/ @markisme @Taisiias +/types/smtp-server/ @markisme @Taisiias @dex4er +/types/smtpapi/ @a-morales +/types/snapsvg/ @lhk @mattanja @kant2002 +/types/snazzy-info-window/ @milosd92 +/types/snekfetch/ @DarkerTV +/types/snoowrap/ @vitosamson +/types/snowboy/ @dolanmiu +/types/socket.io/ @progre @divillysausages @florentpoujol @KentarouTakeda @gigi +/types/socket.io-client/ @progre @divillysausages @florentpoujol +/types/socket.io-parser/ @plantain-00 +/types/socket.io-redis/ @nupplaphil +/types/socket.io.users/ @kataras +/types/socketio-wildcard/ @BendingBender +/types/socketty/ @Nax +/types/sockjs/ @pmccloghrylaing +/types/sockjs-client/ @vladev @arusakov @BendingBender @renjfk +/types/solution-center-communicator/ @dami-gg +/types/sort-array/ @mrmlnc +/types/sortablejs/ @Maw-Fox +/types/soundmanager2/ @elton2048 +/types/source-list-map/ @e-cloud +/types/source-map-support/ @Bartvds @jason0x43 +/types/space-pen/ @vvakame +/types/spark-md5/ @bastienmoulia +/types/sparkly/ @BendingBender +/types/sparkpost/v1/ @geoffreak +/types/sparkpost/ @geoffreak @bondz +/types/sparqljs/ @AlexeyMz +/types/spatialite/ @atd-schubert +/types/spdx-correct/ @jinwoo +/types/spdx-satisfies/ @jinwoo +/types/spdy/ @tony19 +/types/speakeasy/ @legendecas @mrOlorin +/types/speakingurl/ @Goldsmith42 +/types/spectacle/ @zmaybury +/types/spectrum/ @M-Zuber +/types/split/ @marcinporebski +/types/split.js/ @icholy +/types/split2/ @mugeso +/types/spotify-api/ @skovmand +/types/spotify-web-playback-sdk/ @Festify +/types/sprintf/ @soywiz @BendingBender +/types/sprintf-js/ @jasonswearingen @BendingBender +/types/sql.js/ @Hozuki +/types/sqlite3/ @nmalaguti @dpyro +/types/sqlstring/ @marvinhagemeister +/types/squirejs/ @bradleyayers +/types/srp/ @Patman64 +/types/ssh-key-decrypt/ @BendingBender +/types/ssh2/ @tkQubo @rbuckton +/types/ssh2-sftp-client/ @igrayson @ascariandrea +/types/ssh2-streams/ @rbuckton +/types/sshpk/ @mabels +/types/stack-mapper/ @rogierschouten +/types/stack-trace/ @exceptionless +/types/stack-utils/ @BendingBender +/types/stacktrace-js/ @exceptionless @pilagod +/types/stale-lru-cache/ @cxcorp +/types/stampit/ @koresar +/types/stamplay-js-sdk/ @ridermansb +/types/stat-mode/ @BendingBender +/types/stats.js/ @gregolai @hberntsen @danvk +/types/statsd-client/ @peterkooijmans @chrisleck +/types/statuses/ @tkrotoff @BendingBender +/types/steam/ @kant2002 +/types/steed/ @Paul-Isache +/types/stemmer/ @will-ockmore +/types/sticky-cluster/ @paustint +/types/stompjs/ @jimic +/types/stoppable/ @EricByers +/types/storejs/ @vbortone @harry0000 +/types/storybook__addon-actions/ @joscha +/types/storybook__addon-backgrounds/ @hyunseob +/types/storybook__addon-info/ @mkornblum @fyrkant +/types/storybook__addon-knobs/ @joscha @martynaskadisa +/types/storybook__addon-links/ @joscha +/types/storybook__addon-notes/ @joscha +/types/storybook__addon-options/ @joscha +/types/storybook__react/ @joscha @wapgear +/types/stream-buffers/ @Jason3S +/types/stream-meter/ @mugeso +/types/stream-series/ @k-kagurazaka +/types/stream-to-array/v0/ @Bartvds +/types/stream-to-array/ @Bartvds @BendingBender +/types/streaming-json-stringify/ @BendingBender +/types/streamjs/ @erosb +/types/strftime/ @cyrilschumacher +/types/string/ @basp +/types/string-hash/ @ethanrubio +/types/string-similarity/ @ragtime +/types/string-template/ @TonyPythoneer +/types/string_score/ @marcinporebski +/types/stringify-object/ @khoomeister +/types/strip-ansi/ @mhegazy +/types/strip-bom/ @mhegazy +/types/strip-json-comments/ @dmoonfire +/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU @brannon @kkamperschroer @starhoshi +/types/stripe-checkout/ @cgwrench +/types/stripe-v2/ @ejsmith @amritk @adamcmiel @jleider @galuszkak +/types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak +/types/strong-cluster-control/ @shuntksh +/types/strophe/ @DavidKDeutsch +/types/styled-jsx/ @R1ZZU +/types/stylelint/ @alan-agius4 +/types/stylelint-webpack-plugin/ @bahlo +/types/stylus/ @SomaticIT +/types/subsume/ @BendingBender +/types/succinct/ @EnableSoftware +/types/sudo-block/ @BendingBender +/types/suitescript/ @darrenhillconsulting +/types/sumo-logger/ @forabi +/types/superagent/v2/ @varju @NicoZelaya @mxl +/types/superagent/ @NicoZelaya @mxl @paplorinc +/types/superagent-no-cache/ @mxl +/types/superagent-prefix/ @mxl +/types/supercluster/ @DenisCarriere +/types/supertest/ @varju +/types/supertest-as-promised/ @tkrotoff +/types/supports-color/ @mgroenhoff +/types/svg-injector/ @poke +/types/svg-parser/ @mrmlnc +/types/svg-sprite/ @tkqubo +/types/svg2png/ @hansrwindhoff @sccgithub +/types/svg4everybody/ @BendingBender +/types/svgjs.draggable/ @LiFeleSs +/types/svgjs.resize/ @jkevingutierrez +/types/svgo/ @bradleyayers +/types/swag/ @shiwano +/types/swagger-express-middleware/ @alexandreroba +/types/swagger-express-mw/ @micmro +/types/swagger-hapi/ @micmro +/types/swagger-jsdoc/ @drGrove +/types/swagger-node-runner/ @micmro +/types/swagger-parser/ @Tobias4872 @EricHenry +/types/swagger-restify-mw/ @micmro +/types/swagger-sails-hook/ @micmro +/types/swagger-schema-official/ @mohsen1 @bsouthga @nimerritt +/types/swagger-tools/ @bricka +/types/swaggerize-express/ @mugeso @nickmorton +/types/swfobject/ @rou +/types/swiftclick/ @Laurence-C +/types/swig/ @CodeAnimal @soywiz +/types/swig-email-templates/ @mrhen @micksatana +/types/swipe/ @kant2002 +/types/swiper/ @sgaliano @lucax88x +/types/swipeview/ @borisyankov +/types/switchery/ @bgrieder @claylaut +/types/swiz/ @jedigo +/types/sylvester/ @StephaneAlie +/types/synaptic/ @ToastHawaii @austincummings +/types/systeminformation/ @PixelcrabAT +/types/systemjs/ @ludohenin @NathanWalker @GiedriusGrabauskas @aluanhaddad +/types/table/ @evanshortiss @mrmlnc +/types/tabris-plugin-firebase/ @eclipsesource +/types/tabtab/ @vojtechhabarta +/types/tabulator/ @euginio +/types/tapable/ @e-cloud +/types/tape/ @Bartvds @sodatea @DennisSchwartz @mikehenrty +/types/tar/ @SomaticIT @connor4312 +/types/tcp-ping/ @stegano +/types/tedious/ @rogierschouten @cjthompson +/types/tedious-connection-pool/ @sandorfr +/types/telebot/ @mariotsi +/types/temp/ @DanielRosenwasser +/types/temp-write/ @BendingBender +/types/tempfile/ @SamVerschueren @BendingBender +/types/tempy/ @douglasduteil +/types/terminal-menu/ @aravindarun +/types/testingbot-api/ @timbru31 +/types/tether/ @adidahiya +/types/tether-drop/ @adidahiya +/types/tether-shepherd/ @mtgibbs +/types/text-buffer/ @GlenCFL +/types/text-encoding/ @pine613 +/types/text-encoding-utf-8/ @trxcllnt +/types/three/ @gyohk @florentpoujol @SereznoKot @omni360 @ivoisbelongtous @piranha771 @qszhusightp @nakakura @s093294 @Pro @efokschaner @PsychoSTS @dhritzkiv +/types/thrift/ @kamek-pf @kevin-greene-ck @jessezhang91 +/types/throng/ @cyrilschumacher @tatethurston +/types/throttle/ @BendingBender +/types/throttle-debounce/ @czbuchi +/types/through/ @AndrewGaspar +/types/through2/v0/ @Bartvds @jedmao +/types/through2/ @Bartvds @jedmao @valotas @TeamworkGuy2 +/types/through2-map/ @LucasHill +/types/tile-reduce/ @DenisCarriere +/types/tilebelt/ @DenisCarriere +/types/time-span/ @BendingBender @mdvorscak +/types/timelinejs/ @rolandzwaga +/types/timelinejs3/ @MikeMatusz +/types/timer-machine/ @dolanmiu +/types/timezone-js/ @bonnici +/types/tinder/ @pingec +/types/tinycolor2/ @M-Zuber @geertjansen @nvh +/types/tinycopy/ @vvatanabe +/types/tinymce/ @martinduparc @ipoul +/types/titanium/ @cyounkins +/types/title/ @fa7ad +/types/tldjs/ @geoffreak +/types/tmp/ @optical @Perlmint +/types/to-absolute-glob/ @ajafff +/types/to-camel-case/ @j-f1 +/types/to-markdown/ @SuperPaintman +/types/to-title-case-gouch/ @stpettersens +/types/toastr/ @borisyankov +/types/tocktimer/ @evanshortiss +/types/tooltipster/ @stephenlautier @pjmagee @VorobeY1326 @leonard-thieu @janhi @joeskeen +/types/topojson/ @ricardo-mello @chenzhutian +/types/torrent-stream/ @xstoudi +/types/touch/ @mizunashi-mana @BendingBender +/types/touch-events/ @kevinb7 +/types/tough-cookie/ @leonard-thieu @LiJinyao +/types/traceback/ @misak113 +/types/tracking/ @pimterry +/types/transducers-js/ @colinkahn @dphilipson @NaridaL +/types/transducers.js/ @dphilipson +/types/trash/ @matthew-matvei +/types/traverse/ @newclear +/types/traverson/ @marcinporebski +/types/trayballoon/ @korve +/types/tress/ @sindilevich +/types/trim/ @skysteve +/types/trunk8/ @niemyjski +/types/tspromise/ @soywiz +/types/tunnel/ @BendingBender +/types/tus-js-client/ @kevhiggins +/types/tv4/ @Bartvds @psnider +/types/tween.js/ @Amos47 @sunetos @jzarnikov @alexburner +/types/tweenjs/ @evilangelist +/types/tweezer.js/ @praxxis +/types/twig/ @soywiz @enko +/types/twilio/ @nickiannone @ashleybrener +/types/twit/ @Volox @lostfictions +/types/twitter/ @chitoku-k +/types/twitter-stream-channels/ @adrianbardan +/types/twitter-text/ @rhysd +/types/twix/ @j3ko +/types/type-check/ @hansrwindhoff +/types/type-detect/ @Bartvds +/types/type-is/ @BendingBender +/types/type-name/ @armorik83 +/types/typeahead/ @igochkov @gjunge +/types/typedarray-pool/ @pawsong +/types/typescript-deferred/ @DirtyHairy +/types/tz-format/ @samverschueren +/types/ua-parser-js/ @superduper @legendecas @MeLlamoPablo +/types/uglify-js/ @tkrotoff +/types/uglifycss/ @blendsdk +/types/ui-grid/ @btesser @joeskeen +/types/ui-router-extras/ @mputters @marcel-k @LaserUnicorns +/types/ui-select/ @nkovacic +/types/uid-safe/ @geoffreak +/types/uikit/ @giovannicandido @s0x +/types/uinput/ @Fidge123 +/types/ultra-strftime/ @dex4er +/types/umbraco/ @DeCareSystemsIreland +/types/umd/ @TeamworkGuy2 +/types/umzug/ @drinchev @mlamp +/types/underscore/ @borisyankov @jbaldwin @ccurrens @clottman +/types/underscore-ko/ @MagicMau +/types/underscore.string/ @rygine +/types/undertaker/ @tkqubo @GiedriusGrabauskas +/types/undertaker-registry/ @GiedriusGrabauskas +/types/uniq/ @hansrwindhoff +/types/uniqid/ @idchlife +/types/unique-hash-stream/ @BendingBender +/types/unique-random/ @Kuniwak +/types/unist/ @bizen241 +/types/unity-webapi/ @jmvrbanac +/types/universal-analytics/ @Bartvds @DarkerTV +/types/universal-router/ @jtmthf +/types/unorm/ @chbrown +/types/untildify/ @BendingBender +/types/unused-filename/ @BendingBender +/types/unzip/ @coding2012 +/types/update-notifier/ @vvakame @nchen63 +/types/uppercamelcase/ @plantain-00 +/types/urbanairship-cordova/ @Justin-Credible +/types/uri-templates/ @Bartvds +/types/urijs/ @RodneyJT @xt0rted +/types/uritemplate/ @teyc @rubensworks +/types/url-assembler/ @wolfgang42 +/types/url-join/ @rogierschouten @devrelm +/types/url-metadata/ @mrkmg +/types/url-parse/ @ChernenkoPaul +/types/url-regex/ @unindented +/types/url-search-params/ @nick121212 +/types/url-template/ @marcinporebski +/types/urlrouter/ @soywiz +/types/urlsafe-base64/ @tkrotoff +/types/usage/ @pvomhoff +/types/usb/ @underscorebrody +/types/user-home/ @mhegazy +/types/useragent/ @geoffreak +/types/username/ @kayahr +/types/utf8/ @zelein +/types/util-deprecate/ @BendingBender +/types/util.promisify/ @adamvoss +/types/utils-merge/ @chrootsu +/types/uuid/ @iamolivinius @felipeochoa @cjbarth +/types/uuid-1345/ @mugeso +/types/uuid-js/ @mhegazy +/types/uuid-validate/ @HiromiShikata +/types/uws/ @plantain-00 +/types/valdr/ @ilbertz +/types/valdr-message/ @ilbertz +/types/valerie/ @conficient +/types/vali-date/ @SamVerschueren +/types/valid-url/ @stevehipwell +/types/validator/ @tgfjt @chrootsu @IOAyman @louy @kacepe @deptno +/types/validatorjs/ @LKay @danmana +/types/vanilla-modal/ @samnau +/types/vanilla-tilt/ @BrunnerLivio +/types/vary/ @BendingBender +/types/vast-client/ @jgainfort +/types/vec3/ @xstoudi +/types/vectorious/ @erikgerrits +/types/vega/ @pelotom +/types/velocity-animate/ @smrq +/types/verror/ @svi3c @max4t +/types/vertx3-eventbus-client/ @oddeirik +/types/vex-js/ @gdcohan +/types/vexflow/ @rquiring @sebastianhaas @bohoffi +/types/vfile/ @bizen241 @rokt33r +/types/victory/ @asvetliakov @snerks @Havret +/types/video.js/ @vbortone @scleriot @SWBennett06 @IgelCampus +/types/viewability-helper/ @lironzluf +/types/viewerjs/ @lrh3321 +/types/viewporter/ @borisyankov +/types/vimeo/ @DazWilkin +/types/vimeo__player/ @denisyilmaz +/types/vinyl/v0/ @jedmao +/types/vinyl/ @vvakame @jedmao @thorn0 +/types/vinyl-buffer/ @tkQubo +/types/vinyl-fs/ @vvakame @remisery +/types/vinyl-paths/ @tkQubo +/types/virtual-dom/ @chbrown +/types/virtual-keyboard/ @bsurai +/types/vis/ @MichaelBitard @macleodbroad-wf @adripanico @seveves @kaktus40 @mmaitre314 @supercargo @takato1314 +/types/vision/ @jasonswearingen @AJamesPhillips +/types/vitalsigns/ @cyrilschumacher +/types/vivus/ @DanielRosenwasser @lekhmanrus +/types/vkbeautify/ @sch3lp +/types/voca/ @pine +/types/voronoi-diagram/ @michaelneu +/types/vortex-web-client/ @Pro +/types/voximplant-websdk/ @aylarov +/types/vue-resource/ @kaorun343 +/types/vue-scrollto/ @vincekovacs +/types/vuex-i18n/ @jaeggerr +/types/w2ui/ @Ptival +/types/w3c-generic-sensor/ @kenchris +/types/w3c-image-capture/ @cosium +/types/w3c-screen-orientation/ @kenchris +/types/w3c-web-usb/ @larsgk +/types/waitme/ @totpero +/types/wake_on_lan/ @SrTobi +/types/wallabyjs/ @andrewconnell +/types/wallpaper/ @BendingBender +/types/wampy/ @KSDaemon +/types/warning/ @cvle +/types/watch/ @soywiz @Perlmint +/types/watchify/ @TeamworkGuy2 +/types/watchpack/ @e-cloud +/types/waterline/ @arvitaly +/types/watson-developer-cloud/ @waldo000000 @Naktibalda +/types/waypoints/ @dominikbulaj @Koloto +/types/wcwidth/ @rokt33r +/types/weak/ @int0h +/types/weapp-api/ @vargeek +/types/web-animations-js/ @kritollm +/types/web-bluetooth/ @urish +/types/webappsec-credential-management/ @iainmcgin +/types/webassembly-js-api/ @periklis +/types/webcl/ @NCARalph +/types/webcomponents.js/ @adidahiya +/types/webcrypto/ @iislucas +/types/webdriverio/ @nmalaguti @timbru31 @fsmedberg-tc @tanvirislam06 +/types/webfontloader/ @doskallemaskin +/types/webgl-ext/ @zenmumbler +/types/webgl2/ @nkemnitz +/types/webix/ @mkozhukh +/types/webmidi/ @lostfictions +/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @ahmed-taj @alan-agius4 +/types/webpack-bundle-analyzer/ @kryops +/types/webpack-chain/ @eirikurn @psachs21 +/types/webpack-chunk-hash/ @mtraynham +/types/webpack-cleanup-plugin/ @malj +/types/webpack-dev-middleware/v1/ @bumbleblym @reduckted +/types/webpack-dev-middleware/ @bumbleblym @reduckted +/types/webpack-dev-server/ @maestroh @daveparslow @ZheyangSong @alan-agius4 +/types/webpack-dotenv-plugin/ @kryops +/types/webpack-env/ @use-strict @rhonsby +/types/webpack-fail-plugin/ @deevus +/types/webpack-hot-middleware/ @bumbleblym @icylace +/types/webpack-manifest-plugin/ @r3nya +/types/webpack-merge/v0/ @deevus +/types/webpack-merge/ @deevus @mtraynham +/types/webpack-node-externals/ @mtraynham +/types/webpack-notifier/ @bumbleblym +/types/webpack-sources/ @e-cloud @chriseppstein +/types/webpack-stream/ @iclanton @bumbleblym +/types/webpack-validator/ @deevus +/types/webrtc/ @nakakura +/types/websocket/ @loyd @flynetworks @zhaoleimxd +/types/webspeechapi/ @saschanaz +/types/websql/ @TeamworkGuy2 +/types/webtorrent/ @niieani @tlaziuk +/types/webvr-api/ @lostfictions +/types/week/ @sindrenm +/types/weighted/ @ccitro +/types/weixin-app/ @taoqf +/types/wellknown/ @yairtawil +/types/whatwg-streams/ @saschanaz +/types/wheel/ @BTOdell +/types/when/ @derekcicerone @Nemo157 +/types/which/ @vvakame @cspotcode +/types/wicg-mediasession/ @jucrouzet +/types/wiiu/ @mzsm +/types/window-or-global/ @vvakame +/types/window-size/ @pmkary +/types/windows-1251/ @RomanGolovanov +/types/windows-service/ @rogierschouten +/types/winjs/v1/ @adamhewitt627 @craigktreasure @xirzec +/types/winjs/v2/ @adamhewitt627 @craigktreasure @xirzec +/types/winjs/ @adamhewitt627 @craigktreasure @xirzec +/types/winreg/ @RX14 @BobBuehler +/types/winrt-uwp/ @saschanaz @taylor224 +/types/winston/ @bonnici @codeanimal @DABH +/types/winston-dynamodb/ @nickiannone +/types/wiring-pi/ @NoHomey +/types/wnumb/ @acoreyj +/types/wonder.js/ @yyc-git +/types/word-list-json/ @dovidm +/types/wordcloud/ @joeskeen +/types/words-to-numbers/ @James-Frowen +/types/wrap-ansi/ @kayahr +/types/wreck/ @marcinporebski +/types/wrench/ @soywiz +/types/write-file-atomic/ @BendingBender +/types/write-json-file/ @DenisCarriere +/types/ws/ @loyd @elithrar @mlamp +/types/wtfnode/ @dex4er +/types/wu/ @phiresky +/types/wx-js-sdk-dt/ @agasbzj +/types/x-editable/ @sirkirby +/types/x-ray/ @mtraynham +/types/x-ray-crawler/ @mtraynham +/types/xdate/ @yamada28go +/types/xdg-basedir/ @tlaziuk +/types/xhr-mock/ @joscha +/types/xml/ @YuJianrong +/types/xml-parser/ @mhfrantz +/types/xml2js/ @michelsalib @jasonrm @ccurrens @edwardhinkle @BehindTheMath +/types/xml2json/ @dolanmiu +/types/xmlbuilder/ @wallymathieu +/types/xmldoc/ @Xstoudi @ajsheehan +/types/xmldom/ @tkqubo +/types/xmlpoke/ @garthk +/types/xmltojson/ @traviscrowe +/types/xmpp__jid/ @PJakcson +/types/xregexp/ @Bartvds @jfahrenkrug @sigo +/types/xrm/v7/ @daryllabar +/types/xrm/v8/ @6ix4our @mattngan @markusmauch @daryllabar @clownwilleatme @mariusagur +/types/xrm/ @6ix4our @mattngan @markusmauch @daryllabar @clownwilleatme @scottdurow +/types/xsd-schema-validator/ @Goldsmith42 +/types/xsockets/ @pushplay +/types/xterm/ @blink1073 @LucianBuzzo +/types/xxhashjs/ @mDibyo +/types/yallist/ @BendingBender +/types/yandex-maps/ @Delagen +/types/yandex-money-sdk/ @chrootsu +/types/yargs/v8/ @poelstra @mizunashi-mana @pushplay @jeffkenney +/types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC +/types/yayson/ @Codesleuth +/types/ydn-db/ @yathit @gabrielmaldi +/types/yeoman-generator/ @armorik83 @janslow @ikatyang +/types/yeoman-test/ @ikatyang +/types/yfiles/ @yGuy +/types/yog-bigpipe/ @ssddi456 +/types/yog-log/ @ssddi456 +/types/yog2-kernel/ @ssddi456 +/types/yosay/ @armorik83 +/types/youtube/ @DazWilkin @JoshuaKGoldberg @eliotfallon213 +/types/youtube-dl/ @bsurai +/types/yui/ @giabao +/types/yup/ @dhardtke @vtserman +/types/z-schema/ @pgonzal +/types/zapier-platform-core/ @bradleyayers +/types/zen-observable/ @aicest +/types/zen-push/ @daprahamian +/types/zenscroll/ @HamedFathi +/types/zepto/ @jbaldwin +/types/zeroclipboard/v1/ @ejsmith @niemyjski @balassy @leonyu +/types/zeroclipboard/ @ejsmith @niemyjski @balassy @leonyu +/types/zeromq/ @davemckeown @erikma +/types/zip.js/ @lgrignon +/types/zipcodes/ @headdetect +/types/zmq/ @davemckeown +/types/zookeeper/ @xialeistudio +/types/zui/ @yuanxu +/types/zxcvbn/ @mtraynham diff --git a/README.md b/README.md index 7e543c937a..854cae7e40 100644 --- a/README.md +++ b/README.md @@ -313,6 +313,18 @@ When `dts-gen` is used to scaffold a scoped package, the `paths` property has to GitHub doesn't [support](http://stackoverflow.com/questions/5646174/how-to-make-github-follow-directory-history-after-renames) file history for renamed files. Use [`git log --follow`](https://www.git-scm.com/docs/git-log) instead. +#### Should I add an empty namespace to a package that doesn't export a module to use ES6 style imports? + +Some packages, like [chai-http](https://github.com/chaijs/chai-http), export a function. + +Importing this module with an ES6 style import in the form `import * as foo from "foo";` leads to the error: + +> error TS2497: Module 'foo' resolves to a non-module entity and cannot be imported using this construct + +This error can be suppressed by merging the function declaration with an empty namespace of the same name, but this practice is discouraged. +This is a commonly cited [Stack Overflow answer](https://stackoverflow.com/questions/39415661/what-does-resolves-to-a-non-module-entity-and-cannot-be-imported-using-this) regarding this matter. + +It is more appropriate to import the module using the `import foo = require("foo");` syntax, or to use a default import like `import foo from "foo";` if using the `--allowSyntheticDefaultImports` flag if your module runtime supports an interop scheme for non-ECMAScript modules as such. ## License diff --git a/notNeededPackages.json b/notNeededPackages.json index 02607322dd..fd7868f2ae 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -6,6 +6,12 @@ "sourceRepoURL": "https://github.com/betterwaysystems/packer", "asOfVersion": "1.1.3" }, + { + "libraryName": "Ably Realtime and Rest client library", + "typingsPackageName": "ably", + "sourceRepoURL": "https://www.ably.io/", + "asOfVersion": "1.0.0" + }, { "libraryName": "ag-grid", "typingsPackageName": "ag-grid", @@ -42,24 +48,54 @@ "sourceRepoURL": "https://github.com/doxout/anydb-sql", "asOfVersion": "0.6.46" }, + { + "libraryName": "anydb-sql-migrations", + "typingsPackageName": "anydb-sql-migrations", + "sourceRepoURL": "https://github.com/spion/anydb-sql-migrations", + "asOfVersion": "2.1.1" + }, { "libraryName": "apn", "typingsPackageName": "apn", "sourceRepoURL": "https://github.com/node-apn/node-apn", "asOfVersion": "2.1.2" }, + { + "libraryName": "Application Insights", + "typingsPackageName": "applicationinsights", + "sourceRepoURL": "https://github.com/Microsoft/ApplicationInsights-node.js", + "asOfVersion": "0.20.0" + }, { "libraryName": "Argon2", "typingsPackageName": "argon2", "sourceRepoURL": "https://github.com/ranisalt/node-argon2", "asOfVersion": "0.15.0" }, + { + "libraryName": "artyom.js", + "typingsPackageName": "artyom.js", + "sourceRepoURL": "https://github.com/sdkcarlos/artyom.js", + "asOfVersion": "1.0.6" + }, { "libraryName": "askmethat-rating", "typingsPackageName": "askmethat-rating", "sourceRepoURL": "https://github.com/AlexTeixeira/Askmethat-Rating", "asOfVersion": "0.4.0" }, + { + "libraryName": "assertion-error", + "typingsPackageName": "assertion-error", + "sourceRepoURL": "https://github.com/chaijs/assertion-error", + "asOfVersion": "1.1.0" + }, + { + "libraryName": "asyncblock", + "typingsPackageName": "asyncblock", + "sourceRepoURL": "https://github.com/scriby/asyncblock", + "asOfVersion": "2.2.11" + }, { "libraryName": "aurelia-knockout", "typingsPackageName": "aurelia-knockout", @@ -114,12 +150,30 @@ "sourceRepoURL": "https://github.com/brianloveswords/base64url", "asOfVersion": "2.0.0" }, + { + "libraryName": "better-scroll", + "typingsPackageName": "better-scroll", + "sourceRepoURL": "https://github.com/ustbhuangyi/better-scroll", + "asOfVersion": "1.5.0" + }, { "libraryName": "BigInteger.js", "typingsPackageName": "big-integer", "sourceRepoURL": "https://github.com/peterolson/BigInteger.js", "asOfVersion": "0.0.31" }, + { + "libraryName": "bignumber.js", + "typingsPackageName": "bignumber.js", + "sourceRepoURL": "https://github.com/MikeMcl/bignumber.js/", + "asOfVersion": "5.0.0" + }, + { + "libraryName": "botvs", + "typingsPackageName": "botvs", + "sourceRepoURL": "https://www.botvs.com/", + "asOfVersion": "1.0.0" + }, { "libraryName": "Bowser", "typingsPackageName": "bowser", @@ -132,6 +186,12 @@ "sourceRepoURL": "https://github.com/bugsnag/bugsnag-js", "asOfVersion": "3.1.0" }, + { + "libraryName": "CacheFactory", + "typingsPackageName": "cachefactory", + "sourceRepoURL": "https://github.com/jmdobry/CacheFactory", + "asOfVersion": "3.0.0" + }, { "libraryName": "camel-case", "typingsPackageName": "camel-case", @@ -168,12 +228,132 @@ "sourceRepoURL": "https://github.com/tj/commander.js", "asOfVersion": "2.12.2" }, + { + "libraryName": "confirmdialog", + "typingsPackageName": "confirmdialog", + "sourceRepoURL": "https://github.com/allipierre/Type-definitions-for-jquery-confirm/tree/master/types/confirmDialog-js", + "asOfVersion": "1.0.0" + }, { "libraryName": "constant-case", "typingsPackageName": "constant-case", "sourceRepoURL": "https://github.com/blakeembrey/constant-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "cordova-plugin-battery-status", + "typingsPackageName": "cordova-plugin-battery-status", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-battery-status", + "asOfVersion": "1.2.3" + }, + { + "libraryName": "cordova-plugin-camera", + "typingsPackageName": "cordova-plugin-camera", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-camera", + "asOfVersion": "2.4.0" + }, + { + "libraryName": "cordova-plugin-contacts", + "typingsPackageName": "cordova-plugin-contacts", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-contacts", + "asOfVersion": "2.3.0" + }, + { + "libraryName": "cordova-plugin-device", + "typingsPackageName": "cordova-plugin-device", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device", + "asOfVersion": "1.1.5" + }, + { + "libraryName": "cordova-plugin-device-motion", + "typingsPackageName": "cordova-plugin-device-motion", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-motion", + "asOfVersion": "1.2.4" + }, + { + "libraryName": "Apache Cordova Device Orientation plugin", + "typingsPackageName": "cordova-plugin-device-orientation", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-device-orientation", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "cordova-plugin-dialogs", + "typingsPackageName": "cordova-plugin-dialogs", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-dialogs", + "asOfVersion": "1.3.2" + }, + { + "libraryName": "Apache Cordova File System plugin", + "typingsPackageName": "cordova-plugin-file", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-file", + "asOfVersion": "4.3.2" + }, + { + "libraryName": "cordova-plugin-file-transfer", + "typingsPackageName": "cordova-plugin-file-transfer", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-file-transfer", + "asOfVersion": "1.6.2" + }, + { + "libraryName": "cordova-plugin-globalization", + "typingsPackageName": "cordova-plugin-globalization", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-globalization", + "asOfVersion": "1.0.6" + }, + { + "libraryName": "cordova-plugin-inappbrowser", + "typingsPackageName": "cordova-plugin-inappbrowser", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-inappbrowser", + "asOfVersion": "2.0.0" + }, + { + "libraryName": "cordova-plugin-media", + "typingsPackageName": "cordova-plugin-media", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-media", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "cordova-plugin-media-capture", + "typingsPackageName": "cordova-plugin-media-capture", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-media-capture", + "asOfVersion": "1.4.2" + }, + { + "libraryName": "cordova-plugin-network-information", + "typingsPackageName": "cordova-plugin-network-information", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-network-information", + "asOfVersion": "1.3.2" + }, + { + "libraryName": "cordova-plugin-splashscreen", + "typingsPackageName": "cordova-plugin-splashscreen", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-splashscreen", + "asOfVersion": "4.0.2" + }, + { + "libraryName": "Apache Cordova StatusBar plugin", + "typingsPackageName": "cordova-plugin-statusbar", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-statusbar", + "asOfVersion": "2.2.2" + }, + { + "libraryName": "Apache Cordova Vibration plugin", + "typingsPackageName": "cordova-plugin-vibration", + "sourceRepoURL": "https://github.com/apache/cordova-plugin-vibration", + "asOfVersion": "2.1.4" + }, + { + "libraryName": "cordova.plugins.diagnostic", + "typingsPackageName": "cordova.plugins.diagnostic", + "sourceRepoURL": "https://github.com/dpa99c/cordova-diagnostic-plugin", + "asOfVersion": "3.7.0" + }, + { + "libraryName": "core-decorators.js", + "typingsPackageName": "core-decorators", + "sourceRepoURL": "https://github.com/jayphelps/core-decorators.js", + "asOfVersion": "0.20.0" + }, { "libraryName": "cypress", "typingsPackageName": "cypress", @@ -222,12 +402,36 @@ "sourceRepoURL": "https://github.com/dvajs/dva", "asOfVersion": "1.1.0" }, + { + "libraryName": "easy-x-headers", + "typingsPackageName": "easy-x-headers", + "sourceRepoURL": "https://github.com/DeadAlready/easy-x-headers", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "easy-xapi-supertest", + "typingsPackageName": "easy-xapi-supertest", + "sourceRepoURL": "https://github.com/DeadAlready/easy-xapi-supertest", + "asOfVersion": "1.0.0" + }, + { + "libraryName": "EasyStar.js", + "typingsPackageName": "easystarjs", + "sourceRepoURL": "http://easystarjs.com/", + "asOfVersion": "0.3.1" + }, { "libraryName": "ecmarkup", "typingsPackageName": "ecmarkup", "sourceRepoURL": "https://github.com/bterlson/ecmarkup", "asOfVersion": "3.4.0" }, + { + "libraryName": "Egg", + "typingsPackageName": "egg", + "sourceRepoURL": "https://github.com/eggjs/egg", + "asOfVersion": "1.5.0" + }, { "libraryName": "electron", "typingsPackageName": "electron", @@ -240,12 +444,36 @@ "sourceRepoURL": "https://github.com/loopline-systems/electron-builder", "asOfVersion": "2.8.0" }, + { + "libraryName": "email-addresses", + "typingsPackageName": "email-addresses", + "sourceRepoURL": "https://github.com/jackbowman/email-addresses", + "asOfVersion": "3.0.0" + }, + { + "libraryName": "email-validator", + "typingsPackageName": "email-validator", + "sourceRepoURL": "https://github.com/Sembiance/email-validator", + "asOfVersion": "1.0.6" + }, { "libraryName": "error-stack-parser", "typingsPackageName": "error-stack-parser", "sourceRepoURL": "https://github.com/stacktracejs/error-stack-parser", "asOfVersion": "2.0.0" }, + { + "libraryName": "es6-error", + "typingsPackageName": "es6-error", + "sourceRepoURL": "https://github.com/bjyoungblood/es6-error", + "asOfVersion": "4.0.2" + }, + { + "libraryName": "es6-promise", + "typingsPackageName": "es6-promise", + "sourceRepoURL": "https://github.com/jakearchibald/ES6-Promise", + "asOfVersion": "3.3.0" + }, { "libraryName": "eventemitter2", "typingsPackageName": "eventemitter2", @@ -258,6 +486,12 @@ "sourceRepoURL": "https://github.com/primus/eventemitter3", "asOfVersion": "2.0.2" }, + { + "libraryName": "expr-eval", + "typingsPackageName": "expr-eval", + "sourceRepoURL": "https://github.com/silentmatt/expr-eval", + "asOfVersion": "1.1.0" + }, { "libraryName": "express-validator", "typingsPackageName": "express-validator", @@ -294,6 +528,12 @@ "sourceRepoURL": "http://fineuploader.com/", "asOfVersion": "5.14.0" }, + { + "libraryName": "Firebase API", + "typingsPackageName": "firebase", + "sourceRepoURL": "https://www.firebase.com/docs/javascript/firebase", + "asOfVersion": "3.2.1" + }, { "libraryName": "flatpickr", "typingsPackageName": "flatpickr", @@ -306,24 +546,78 @@ "sourceRepoURL": "https://github.com/acdlite/flux-standard-action", "asOfVersion": "1.1.0" }, + { + "libraryName": "Foundation Sites", + "typingsPackageName": "foundation-sites", + "sourceRepoURL": "http://foundation.zurb.com/", + "asOfVersion": "6.4.3" + }, + { + "libraryName": "FullCalendar", + "typingsPackageName": "fullcalendar", + "sourceRepoURL": "http://arshaw.com/fullcalendar/", + "asOfVersion": "3.8.0" + }, { "libraryName": "gaea-model", "typingsPackageName": "gaea-model", "sourceRepoURL": "https://github.com/ascoders/gaea-model", "asOfVersion": "0.0.0" }, + { + "libraryName": "geolib", + "typingsPackageName": "geolib", + "sourceRepoURL": "https://github.com/manuelbieh/Geolib", + "asOfVersion": "2.0.23" + }, { "libraryName": "github", "typingsPackageName": "github", "sourceRepoURL": "https://github.com/mikedeboer/node-github", "asOfVersion": "7.1.0" }, + { + "libraryName": "graphene-pk11", + "typingsPackageName": "graphene-pk11", + "sourceRepoURL": "https://github.com/PeculiarVentures/graphene", + "asOfVersion": "2.0.31" + }, + { + "libraryName": "griddle-react", + "typingsPackageName": "griddle-react", + "sourceRepoURL": "https://github.com/griddlegriddle/griddle", + "asOfVersion": "1.3.0" + }, + { + "libraryName": "gulp-tslint", + "typingsPackageName": "gulp-tslint", + "sourceRepoURL": "https://github.com/panuhorsmalahti/gulp-tslint", + "asOfVersion": "4.2.0" + }, + { + "libraryName": "gulp-typedoc", + "typingsPackageName": "gulp-typedoc", + "sourceRepoURL": "https://github.com/rogierschouten/gulp-typedoc", + "asOfVersion": "2.2.0" + }, { "libraryName": "gulp-typescript", "typingsPackageName": "gulp-typescript", "sourceRepoURL": "https://github.com/ivogabe/gulp-typescript", "asOfVersion": "2.13.0" }, + { + "libraryName": "handsontable", + "typingsPackageName": "handsontable", + "sourceRepoURL": "https://handsontable.com/", + "asOfVersion": "0.35.0" + }, + { + "libraryName": "homeworks", + "typingsPackageName": "homeworks", + "sourceRepoURL": "https://github.com/IGAWorksDev/homeworks/", + "asOfVersion": "1.0.19" + }, { "libraryName": "http-status-codes", "typingsPackageName": "http-status-codes", @@ -336,6 +630,12 @@ "sourceRepoURL": "https://github.com/ashtuchkin/iconv-lite", "asOfVersion": "0.4.14" }, + { + "libraryName": "immutability-helper", + "typingsPackageName": "immutability-helper", + "sourceRepoURL": "https://github.com/kolodny/immutability-helper", + "asOfVersion": "2.6.3" + }, { "libraryName": "Facebook's Immutable", "typingsPackageName": "immutable", @@ -390,18 +690,42 @@ "sourceRepoURL": "https://github.com/blakeembrey/is-lower-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "is-plain-object", + "typingsPackageName": "is-plain-object", + "sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object", + "asOfVersion": "2.0.4" + }, { "libraryName": "is-upper-case", "typingsPackageName": "is-upper-case", "sourceRepoURL": "https://github.com/blakeembrey/is-upper-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "jasmine-expect", + "typingsPackageName": "jasmine-expect", + "sourceRepoURL": "https://github.com/JamieMason/Jasmine-Matchers", + "asOfVersion": "3.8.1" + }, { "libraryName": "jimp", "typingsPackageName": "jimp", "sourceRepoURL": "https://github.com/oliver-moran/jimp#readme", "asOfVersion": "0.2.28" }, + { + "libraryName": "joData", + "typingsPackageName": "jodata", + "sourceRepoURL": "https://github.com/mccow002/joData", + "asOfVersion": "1.0.13" + }, + { + "libraryName": "JointJS", + "typingsPackageName": "jointjs", + "sourceRepoURL": "http://www.jointjs.com/", + "asOfVersion": "2.0.0" + }, { "libraryName": "jpush-react-native", "typingsPackageName": "jpush-react-native", @@ -420,6 +744,12 @@ "sourceRepoURL": "https://github.com/js-data/js-data", "asOfVersion": "3.0.0" }, + { + "libraryName": "JSData Http Adapter", + "typingsPackageName": "js-data-http", + "sourceRepoURL": "https://github.com/js-data/js-data-http", + "asOfVersion": "3.0.0" + }, { "libraryName": "JSNLog", "typingsPackageName": "jsnlog", @@ -456,6 +786,12 @@ "sourceRepoURL": "https://github.com/ErikSchierboom/knockout-pre-rendered", "asOfVersion": "0.7.1" }, + { + "libraryName": "koa-jwt", + "typingsPackageName": "koa-jwt", + "sourceRepoURL": "https://github.com/koajs/jwt", + "asOfVersion": "3.3.0" + }, { "libraryName": "lambda-phi", "typingsPackageName": "lambda-phi", @@ -480,6 +816,12 @@ "sourceRepoURL": "https://linqjs.codeplex.com/", "asOfVersion": "2.2.33" }, + { + "libraryName": "Linq4JS", + "typingsPackageName": "linq4js", + "sourceRepoURL": "https://github.com/morrisjdev/Linq4JS", + "asOfVersion": "2.1.8" + }, { "libraryName": "LinqSharp", "typingsPackageName": "linqsharp", @@ -492,12 +834,24 @@ "sourceRepoURL": "https://github.com/localForage/localForage", "asOfVersion": "0.0.34" }, + { + "libraryName": "localforage-cordovasqlitedriver", + "typingsPackageName": "localforage-cordovasqlitedriver", + "sourceRepoURL": "https://github.com/thgreasi/localForage-cordovaSQLiteDriver", + "asOfVersion": "1.5.0" + }, { "libraryName": "lodash-decorators", "typingsPackageName": "lodash-decorators", "sourceRepoURL": "https://github.com/steelsojka/lodash-decorators", "asOfVersion": "4.0.0" }, + { + "libraryName": "log4javascript", + "typingsPackageName": "log4javascript", + "sourceRepoURL": "http://log4javascript.org/", + "asOfVersion": "1.4.15" + }, { "libraryName": "log4js", "typingsPackageName": "log4js", @@ -528,6 +882,24 @@ "sourceRepoURL": "http://www.mendix.com", "asOfVersion": "0.8.1" }, + { + "libraryName": "metisMenu", + "typingsPackageName": "metismenu", + "sourceRepoURL": "https://github.com/onokumus/metisMenu", + "asOfVersion": "2.7.1" + }, + { + "libraryName": "microgears", + "typingsPackageName": "microgears", + "sourceRepoURL": "https://github.com/marcusdb/microgears", + "asOfVersion": "4.0.5" + }, + { + "libraryName": "mobile-detect", + "typingsPackageName": "mobile-detect", + "sourceRepoURL": "http://hgoebl.github.io/mobile-detect.js/", + "asOfVersion": "1.3.4" + }, { "libraryName": "mobservable", "typingsPackageName": "mobservable", @@ -546,6 +918,12 @@ "sourceRepoURL": "https://github.com/moment/moment", "asOfVersion": "2.13.0" }, + { + "libraryName": "Monk", + "typingsPackageName": "monk", + "sourceRepoURL": "https://github.com/LearnBoost/monk.git", + "asOfVersion": "6.0.0" + }, { "libraryName": "MQTT", "typingsPackageName": "mqtt", @@ -558,6 +936,18 @@ "sourceRepoURL": "https://github.com/esvit/ng-table", "asOfVersion": "2.0.1" }, + { + "libraryName": "node-pg-migrate", + "typingsPackageName": "node-pg-migrate", + "sourceRepoURL": "https://github.com/theoephraim/node-pg-migrate#readme", + "asOfVersion": "2.15.0" + }, + { + "libraryName": "node-waves", + "typingsPackageName": "node-waves", + "sourceRepoURL": "http://fian.my.id/Waves", + "asOfVersion": "0.7.6" + }, { "libraryName": "Normalizr", "typingsPackageName": "normalizr", @@ -594,6 +984,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/pascal-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "passport-client-cert", + "typingsPackageName": "passport-client-cert", + "sourceRepoURL": "https://github.com/ripjar/passport-client-cert", + "asOfVersion": "2.1.0" + }, { "libraryName": "path-case", "typingsPackageName": "path-case", @@ -606,6 +1002,12 @@ "sourceRepoURL": "https://github.com/pillarjs/path-to-regexp", "asOfVersion": "1.7.0" }, + { + "libraryName": "perfect-scrollbar", + "typingsPackageName": "perfect-scrollbar", + "sourceRepoURL": "https://github.com/noraesae/perfect-scrollbar", + "asOfVersion": "1.3.0" + }, { "libraryName": "pg-connection-string", "typingsPackageName": "pg-connection-string", @@ -660,6 +1062,12 @@ "sourceRepoURL": "https://github.com/zeh/prando", "asOfVersion": "1.0.0" }, + { + "libraryName": "ProtoBuf.js", + "typingsPackageName": "protobufjs", + "sourceRepoURL": "https://github.com/dcodeIO/ProtoBuf.js", + "asOfVersion": "6.0.0" + }, { "libraryName": "Protractor", "typingsPackageName": "protractor", @@ -672,6 +1080,12 @@ "sourceRepoURL": "https://github.com/qiniu/nodejs-sdk", "asOfVersion": "7.0.1" }, + { + "libraryName": "qrcode-generator", + "typingsPackageName": "qrcode-generator", + "sourceRepoURL": "https://github.com/kazuhikoarase/qrcode-generator", + "asOfVersion": "1.0.6" + }, { "libraryName": "Raven JS", "typingsPackageName": "raven-js", @@ -684,24 +1098,54 @@ "sourceRepoURL": "https://github.com/stream-utils/raw-body", "asOfVersion": "2.3.0" }, + { + "libraryName": "react-chartjs-2", + "typingsPackageName": "react-chartjs-2", + "sourceRepoURL": "https://github.com/gor181/react-chartjs-2", + "asOfVersion": "2.5.7" + }, { "libraryName": "react-day-picker", "typingsPackageName": "react-day-picker", "sourceRepoURL": "https://github.com/gpbl/react-day-picker", "asOfVersion": "5.3.0" }, + { + "libraryName": "react-flip-move", + "typingsPackageName": "react-flip-move", + "sourceRepoURL": "https://github.com/joshwcomeau/react-flip-move", + "asOfVersion": "2.9.12" + }, + { + "libraryName": "react-ga", + "typingsPackageName": "react-ga", + "sourceRepoURL": "https://github.com/react-ga/react-ga", + "asOfVersion": "2.3.0" + }, { "libraryName": "react-native-elements", "typingsPackageName": "react-native-elements", "sourceRepoURL": "https://github.com/react-native-training/react-native-elements", "asOfVersion": "0.18.0" }, + { + "libraryName": "react-native-goby", + "typingsPackageName": "react-native-goby", + "sourceRepoURL": "https://gitlab.com/MessageDream/react-native-goby", + "asOfVersion": "0.0.5" + }, { "libraryName": "react-native-google-analytics-bridge", "typingsPackageName": "react-native-google-analytics-bridge", "sourceRepoURL": "https://github.com/idehub/react-native-google-analytics-bridge", "asOfVersion": "5.3.3" }, + { + "libraryName": "react-native-modal", + "typingsPackageName": "react-native-modal", + "sourceRepoURL": "https://github.com/react-native-community/react-native-modal", + "asOfVersion": "4.1.1" + }, { "libraryName": "react-split-pane", "typingsPackageName": "react-split-pane", @@ -756,12 +1200,24 @@ "sourceRepoURL": "https://github.com/redux-saga/redux-saga", "asOfVersion": "0.10.5" }, + { + "libraryName": "redux-saga-routines", + "typingsPackageName": "redux-saga-routines", + "sourceRepoURL": "https://github.com/afitiskin/redux-saga-routines#readme", + "asOfVersion": "2.1.0" + }, { "libraryName": "Redux Thunk", "typingsPackageName": "redux-thunk", "sourceRepoURL": "https://github.com/gaearon/redux-thunk", "asOfVersion": "2.1.0" }, + { + "libraryName": "reflect-metadata", + "typingsPackageName": "reflect-metadata", + "sourceRepoURL": "https://github.com/rbuckton/ReflectDecorators", + "asOfVersion": "0.1.0" + }, { "libraryName": "reselect", "typingsPackageName": "reselect", @@ -774,6 +1230,12 @@ "sourceRepoURL": "https://github.com/EnoF/rest-io", "asOfVersion": "4.1.0" }, + { + "libraryName": "rollup", + "typingsPackageName": "rollup", + "sourceRepoURL": "https://github.com/rollup/rollup", + "asOfVersion": "0.54.0" + }, { "libraryName": "route-recognizer", "typingsPackageName": "route-recognizer", @@ -786,6 +1248,12 @@ "sourceRepoURL": "https://github.com/router5/router5", "asOfVersion": "5.0.0" }, + { + "libraryName": "rvo2", + "typingsPackageName": "rvo2", + "sourceRepoURL": "https://github.com/TNOCS/rvo2", + "asOfVersion": "1.1.0" + }, { "libraryName": "samchon", "typingsPackageName": "samchon", @@ -822,24 +1290,60 @@ "sourceRepoURL": "https://github.com/blakeembrey/sentence-case", "asOfVersion": "1.1.3" }, + { + "libraryName": "sharp-timer", + "typingsPackageName": "sharp-timer", + "sourceRepoURL": "https://github.com/afractal/SharpTimer", + "asOfVersion": "0.1.3" + }, { "libraryName": "Shopify Prime", "typingsPackageName": "shopify-prime", "sourceRepoURL": "https://github.com/nozzlegear/shopify-prime", "asOfVersion": "2.0.0" }, + { + "libraryName": "should.js", + "typingsPackageName": "should", + "sourceRepoURL": "https://github.com/shouldjs/should.js", + "asOfVersion": "13.0.0" + }, { "libraryName": "SimpleSignal", "typingsPackageName": "simplesignal", "sourceRepoURL": "https://github.com/zeh/simplesignal", "asOfVersion": "1.0.0" }, + { + "libraryName": "smooth-scrollbar", + "typingsPackageName": "smooth-scrollbar", + "sourceRepoURL": "https://github.com/idiotWu/smooth-scrollbar", + "asOfVersion": "8.2.5" + }, + { + "libraryName": "Smoothie Charts", + "typingsPackageName": "smoothie", + "sourceRepoURL": "https://github.com/joewalnes/smoothie", + "asOfVersion": "1.29.1" + }, { "libraryName": "snake-case", "typingsPackageName": "snake-case", "sourceRepoURL": "https://github.com/blakeembrey/snake-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "soap", + "typingsPackageName": "soap", + "sourceRepoURL": "https://www.npmjs.com/package/soap", + "asOfVersion": "0.21.0" + }, + { + "libraryName": "source-map", + "typingsPackageName": "source-map", + "sourceRepoURL": "https://github.com/mozilla/source-map", + "asOfVersion": "0.5.7" + }, { "libraryName": "Spin.js", "typingsPackageName": "spin.js", @@ -852,6 +1356,12 @@ "sourceRepoURL": "https://github.com/JMPerez/spotify-web-api-js", "asOfVersion": "0.21.0" }, + { + "libraryName": "ServiceStack Utils", + "typingsPackageName": "ss-utils", + "sourceRepoURL": "https://servicestack.net/", + "asOfVersion": "0.1.5" + }, { "libraryName": "striptags", "typingsPackageName": "striptags", @@ -864,6 +1374,18 @@ "sourceRepoURL": "https://github.com/andrewplummer/Sugar", "asOfVersion": "2.0.2" }, + { + "libraryName": "survey-knockout", + "typingsPackageName": "survey-knockout", + "sourceRepoURL": "http://surveyjs.org/", + "asOfVersion": "0.10.0" + }, + { + "libraryName": "svg-pan-zoom", + "typingsPackageName": "svg-pan-zoom", + "sourceRepoURL": "https://github.com/ariutta/svg-pan-zoom", + "asOfVersion": "3.4.0" + }, { "libraryName": "svg.js", "typingsPackageName": "svg.js", @@ -876,6 +1398,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/swap-case", "asOfVersion": "1.1.2" }, + { + "libraryName": "SweetAlert", + "typingsPackageName": "sweetalert", + "sourceRepoURL": "https://github.com/t4t5/sweetalert/", + "asOfVersion": "2.0.4" + }, { "libraryName": "Tabris.js", "typingsPackageName": "tabris", @@ -930,6 +1458,12 @@ "sourceRepoURL": "https://github.com/dpa99c/phonegap-istablet", "asOfVersion": "1.1.3" }, + { + "libraryName": "uk.co.workingedge.phonegap.plugin.launchnavigator", + "typingsPackageName": "uk.co.workingedge.phonegap.plugin.launchnavigator", + "sourceRepoURL": "https://github.com/dpa99c/phonegap-launch-navigator", + "asOfVersion": "4.0.0" + }, { "libraryName": "upper-case", "typingsPackageName": "upper-case", @@ -942,6 +1476,12 @@ "sourceRepoURL": "https://github.com/blakeembrey/upper-case-first", "asOfVersion": "1.1.2" }, + { + "libraryName": "UUID.js", + "typingsPackageName": "uuidjs", + "sourceRepoURL": "https://github.com/LiosK/UUID.js", + "asOfVersion": "3.6.0" + }, { "libraryName": "Validate.js", "typingsPackageName": "validate.js", @@ -960,6 +1500,12 @@ "sourceRepoURL": "https://github.com/vuejs/vue", "asOfVersion": "2.0.0" }, + { + "libraryName": "vue-i18n", + "typingsPackageName": "vue-i18n", + "sourceRepoURL": "https://github.com/kazupon/vue-i18n", + "asOfVersion": "7.0.0" + }, { "libraryName": "vue-router", "typingsPackageName": "vue-router", @@ -972,12 +1518,54 @@ "sourceRepoURL": "https://github.com/tgdwyer/WebCola", "asOfVersion": "3.2.0" }, + { + "libraryName": "webgme", + "typingsPackageName": "webgme", + "sourceRepoURL": "https://webgme.org", + "asOfVersion": "2.11.0" + }, + { + "libraryName": "Webix UI", + "typingsPackageName": "webix", + "sourceRepoURL": "http://webix.com", + "asOfVersion": "5.1.1" + }, + { + "libraryName": "wolfy87-eventemitter", + "typingsPackageName": "wolfy87-eventemitter", + "sourceRepoURL": "https://github.com/Wolfy87/EventEmitter", + "asOfVersion": "5.2.0" + }, + { + "libraryName": "wonder-commonlib", + "typingsPackageName": "wonder-commonlib", + "sourceRepoURL": "https://github.com/yyc-git/Wonder-CommonLib", + "asOfVersion": "0.1.12" + }, + { + "libraryName": "wonder-frp", + "typingsPackageName": "wonder-frp", + "sourceRepoURL": "https://github.com/yyc-git/Wonder-FRP", + "asOfVersion": "0.1.25" + }, { "libraryName": "x2js", "typingsPackageName": "x2js", "sourceRepoURL": "https://code.google.com/p/x2js/", "asOfVersion": "3.1.0" }, + { + "libraryName": "xadesjs", + "typingsPackageName": "xadesjs", + "sourceRepoURL": "https://github.com/PeculiarVentures/xadesjs", + "asOfVersion": "2.0.2" + }, + { + "libraryName": "xhr-mock", + "typingsPackageName": "xhr-mock", + "sourceRepoURL": "https://github.com/jameslnewell/xhr-mock#readme", + "asOfVersion": "2.0.0" + }, { "libraryName": "xlsx", "typingsPackageName": "xlsx", @@ -996,6 +1584,12 @@ "sourceRepoURL": "github.com/node-xmpp/node-xmpp/", "asOfVersion": "1.2.0" }, + { + "libraryName": "xterm.js", + "typingsPackageName": "xterm", + "sourceRepoURL": "https://github.com/sourcelair/xterm.js/", + "asOfVersion": "3.0.0" + }, { "libraryName": "zetapush-js", "typingsPackageName": "zetapush-js", diff --git a/types/ably/ably-tests.ts b/types/ably/ably-tests.ts deleted file mode 100644 index bc50d03ce6..0000000000 --- a/types/ably/ably-tests.ts +++ /dev/null @@ -1,253 +0,0 @@ -import * as Ably from 'ably'; - -declare const console: { log(message: any): void }; - -const ApiKey = 'appId.keyId:secret'; -const client = new Ably.Realtime(ApiKey); -const restClient = new Ably.Rest(ApiKey); - -// Connection -// Successful connection: - -client.connection.on('connected', () => { - // successful connection -}); - -// Failed connection: - -client.connection.on('failed', () => { - // failed connection -}); - -// Subscribing to a channel - -const channel = client.channels.get('test'); -channel.subscribe(message => { - message.name; // 'greeting' - message.data; // 'Hello World!' -}); - -// Only certain events: - -channel.subscribe('myEvent', message => { - message.name; // 'myEvent' - message.data; // 'myData' -}); - -// Publishing to a channel - -// Publish a single message with name and data -channel.publish('greeting', 'Hello World!'); - -// Optionally, you can use a callback to be notified of success or failure -channel.publish('greeting', 'Hello World!', err => { - if (err) { - console.log('publish failed with error ' + err); - } else { - console.log('publish succeeded'); - } -}); - -// Publish several messages at once -channel.publish([{name: 'greeting', data: 'Hello World!'}], () => { }); - -// Querying the History - -channel.history((err, messagesPage) => { - messagesPage.items; // array of Message - messagesPage.items[0].data; // payload for first message - messagesPage.items.length; // number of messages in the current page of history - messagesPage.hasNext(); // true if there are further pages - messagesPage.isLast(); // true if this page is the last page - messagesPage.next(nextPage => { nextPage; }); // retrieves the next page as PaginatedResult -}); - -// Can optionally take an options param, see https://www.ably.io/documentation/rest-api/#message-history -channel.history({ start: Date.now() - 10000, end: Date.now(), limit: 100, direction: 'forwards'}, (err, messagesPage) => { - console.log(messagesPage.items.length); -}); - -// Presence on a channel -// Getting presence: - -channel.presence.get(presenceSet => { - presenceSet; // array of PresenceMessages -}); - -// Note that presence#get on a realtime channel does not return a PaginatedResult, as the library maintains a local copy of the presence set. - -// Entering (and leaving) the presence set: - -channel.presence.enter('my status', err => { - // now I am entered -}); - -channel.presence.update('new status', err => { - // my presence data is updated -}); - -channel.presence.leave(null, err => { - // I've left the presence set -}); - -channel.presence.enterClient('myClientId', 'status', err => { -}); - -// and similiarly, updateClient and leaveClient -// Querying the Presence History - -channel.presence.history((err, messagesPage) => { // PaginatedResult - messagesPage.items; // array of PresenceMessage - messagesPage.items[0].data; // payload for first message - messagesPage.items.length; // number of messages in the current page of history - messagesPage.hasNext(); // true if there are further pages - messagesPage.isLast(); // true if this page is the last page - messagesPage.next(nextPage => { }); // retrieves the next page as PaginatedResult -}); - -// Can optionally take an options param, see https://www.ably.io/documentation/rest-api/#message-history -channel.history({ start: Date.now() - 10000, end: Date.now(), limit: 100, direction: 'forwards' }, (err, messagesPage) => {}); - -// Symmetrical end-to-end encrypted payloads on a channel - -// When a 128 bit or 256 bit key is provided to the library, the data attributes of all messages are encrypted and decrypted automatically using that key. -// The secret key is never transmitted to Ably. See https://www.ably.io/documentation/realtime/encryption - -// Generate a random 256-bit key for demonstration purposes (in -// practice you need to create one and distribute it to clients yourselves) -Ably.Realtime.Crypto.generateRandomKey((err, key) => { - const channel = client.channels.get('channelName', { cipher: { key } }); - - channel.subscribe(message => { - message.name; // 'name is not encrypted' - message.data; // 'sensitive data is encrypted' - }); - - channel.publish('name is not encrypted', 'sensitive data is encrypted'); -}); - -// You can also change the key on an existing channel using setOptions (which takes a callback which is called after the new encryption settings have taken effect): - -channel.setOptions({cipher: {key: ''}}, () => { - // New encryption settings are in effect -}); - -// Using the REST API - -const restChannel = restClient.channels.get('test'); - -// Publishing to a channel - -// Publish a single message with name and data -restChannel.publish('greeting', 'Hello World!'); - -// Optionally, you can use a callback to be notified of success or failure -restChannel.publish('greeting', 'Hello World!', err => { - if (err) { - console.log('publish failed with error ' + err); - } else { - console.log('publish succeeded'); - } -}); - -// Publish several messages at once -restChannel.publish([{name: 'greeting', data: 'Hello World!'}], () => {}); - -// Querying the History - -restChannel.history((err, messagesPage) => { - messagesPage; // PaginatedResult - messagesPage.items; // array of Message - messagesPage.items[0].data; // payload for first message - messagesPage.items.length; // number of messages in the current page of history - messagesPage.hasNext(); // true if there are further pages - messagesPage.isLast(); // true if this page is the last page - messagesPage.next(nextPage => {}); // retrieves the next page as PaginatedResult -}); - -// Can optionally take an options param, see https://www.ably.io/documentation/rest-api/#message-history -restChannel.history({ start: Date.now() - 10000, end: Date.now(), limit: 100, direction: 'forwards' }, (err, messagesPage) => {}); - -// Presence on a channel - -restChannel.presence.get((err, presencePage) => { // PaginatedResult - presencePage.items; // array of PresenceMessage - presencePage.items[0].data; // payload for first message - presencePage.items.length; // number of messages in the current page of members - presencePage.hasNext(); // true if there are further pages - presencePage.isLast(); // true if this page is the last page - presencePage.next(nextPage => {}); // retrieves the next page as PaginatedResult -}); - -// Querying the Presence History - -restChannel.presence.history((err, messagesPage) => { // PaginatedResult - messagesPage.items; // array of PresenceMessage - messagesPage.items[0].data; // payload for first message - messagesPage.items.length; // number of messages in the current page of history - messagesPage.hasNext(); // true if there are further pages - messagesPage.isLast(); // true if this page is the last page - messagesPage.next(nextPage => { }); // retrieves the next page as PaginatedResult -}); - -// Can optionally take an options param, see https://www.ably.io/documentation/rest-api/#message-history -restChannel.history({ start: Date.now() - 10000, end: Date.now(), limit: 100, direction: 'forwards' }, (err, messagesPage) => {}); - -// Generate Token and Token Request -// See https://www.ably.io/documentation/general/authentication for an explanation of Ably's authentication mechanism. - -// Requesting a token: - -client.auth.requestToken((err, tokenDetails) => { - // tokenDetails is instance of TokenDetails - // see https://www.ably.io/documentation/rest/authentication/#token-details for its properties - - // Now we have the token, we can send it to someone who can instantiate a client with it: - const clientUsingToken = new Ably.Realtime(tokenDetails.token); -}); - -// requestToken can take two optional params -// tokenParams: https://www.ably.io/documentation/rest/authentication/#token-params -// authOptions: https://www.ably.io/documentation/rest/authentication/#auth-options -client.auth.requestToken({}, {}, (err, tokenDetails) => { }); - -// Creating a token request (for example, on a server in response to a request by a client using the authCallback or authUrl mechanisms): - -client.auth.createTokenRequest((err, tokenRequest) => { - // now send the tokenRequest back to the client, which will - // use it to request a token and connect to Ably -}); - -// createTokenRequest can take two optional params -// tokenParams: https://www.ably.io/documentation/rest/authentication/#token-params -// authOptions: https://www.ably.io/documentation/rest/authentication/#auth-options -client.auth.createTokenRequest({}, {}, (err, tokenRequest) => { }); - -// Fetching your application's stats - -client.stats({ limit: 50 }, (err, statsPage) => { // statsPage as PaginatedResult - statsPage.items; // array of Stats - statsPage.items[0].inbound.rest.messages.count; // total messages published over REST - statsPage.items.length; // number of stats in the current page of history - statsPage.hasNext(); // true if there are wrther pages - statsPage.isLast(); // true if this page is the last page - statsPage.next((nextPage) => {}); // retrieves the next page as PaginatedResult -}); - -// Fetching the Ably service time - -client.time({}, (err, time) => {}); // time is in ms since epoch - -// Getting decoded Message objects from JSON -const messages = Ably.Realtime.Message.fromEncodedArray([{ id: 'foo' }]); -console.log(messages[0].id); - -const message = Ably.Rest.Message.fromEncoded({ id: 'foo' }); -console.log(message.id); - -// Getting decoded PresenceMessage objects from JSON -const presenceMessages = Ably.Realtime.PresenceMessage.fromEncodedArray([{ id: 'foo' }]); -console.log(presenceMessages[0].action); - -const presenceMessage = Ably.Rest.PresenceMessage.fromEncoded({ id: 'foo' }); -console.log(presenceMessage.action); diff --git a/types/ably/index.d.ts b/types/ably/index.d.ts deleted file mode 100644 index 3a150257ba..0000000000 --- a/types/ably/index.d.ts +++ /dev/null @@ -1,473 +0,0 @@ -// Type definitions for Ably Realtime and Rest client library 0.9 -// Project: https://www.ably.io/ -// Definitions by: Ably -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -export namespace ablyLib { - namespace ChannelState { - type INITIALIZED = 'initialized'; - type ATTACHING = 'attaching'; - type ATTACHED = "attached"; - type DETACHING = "detaching"; - type DETACHED = "detached"; - type SUSPENDED = "suspended"; - type FAILED = "failed"; - } - type ChannelState = ChannelState.FAILED | ChannelState.INITIALIZED | ChannelState.SUSPENDED | ChannelState.ATTACHED | ChannelState.ATTACHING | ChannelState.DETACHED | ChannelState.DETACHING; - - namespace ConnectionState { - type INITIALIZED = "initialized"; - type CONNECTING = "connecting"; - type CONNECTED = "connected"; - type DISCONNECTED = "disconnected"; - type SUSPENDED = "suspended"; - type CLOSING = "closing"; - type CLOSED = "closed"; - type FAILED = "failed"; - } - type ConnectionState = ConnectionState.INITIALIZED | ConnectionState.CONNECTED | ConnectionState.CONNECTING | ConnectionState.DISCONNECTED | - ConnectionState.SUSPENDED | ConnectionState.CLOSED | ConnectionState.CLOSING | ConnectionState.FAILED; - - namespace ConnectionEvent { - type INITIALIZED = "initialized"; - type CONNECTING = "connecting"; - type CONNECTED = "connected"; - type DISCONNECTED = "disconnected"; - type SUSPENDED = "suspended"; - type CLOSING = "closing"; - type CLOSED = "closed"; - type FAILED = "failed"; - type UPDATE = "update"; - } - type ConnectionEvent = ConnectionEvent.INITIALIZED | ConnectionEvent.CONNECTED | ConnectionEvent.CONNECTING | ConnectionEvent.DISCONNECTED | - ConnectionEvent.SUSPENDED | ConnectionEvent.CLOSED | ConnectionEvent.CLOSING | ConnectionEvent.FAILED | ConnectionEvent.UPDATE; - - namespace PresenceAction { - type ABSENT = "absent"; - type PRESENT = "present"; - type ENTER = "enter"; - type LEAVE = "leave"; - type UPDATE = "update"; - } - type PresenceAction = PresenceAction.ABSENT | PresenceAction.PRESENT | PresenceAction.ENTER | PresenceAction.LEAVE | PresenceAction.UPDATE; - - namespace StatsIntervalGranularity { - type MINUTE = "minute"; - type HOUR = "hour"; - type DAY = "day"; - type MONTH = "month"; - } - type StatsIntervalGranularity = StatsIntervalGranularity.MINUTE | StatsIntervalGranularity.HOUR | StatsIntervalGranularity.DAY | StatsIntervalGranularity.MONTH; - - namespace HTTPMethods { - type POST = "POST"; - type GET = "GET"; - } - type HTTPMethods = HTTPMethods.GET | HTTPMethods.POST; - - // Interfaces - interface ClientOptions extends AuthOptions { - /** - * When true will automatically connect to Ably when library is instanced. This is true by default - */ - autoConnect?: boolean; - - /** - * Optional clientId that can be used to specify the identity for this client. In most cases - * it is preferable to instead specift a clientId in the token issued to this client. - */ - clientId?: string; - - defaultTokenParams?: TokenParams; - - /** - * When true, messages published on channels by this client will be echoed back to this client. - * This is true by default - */ - echoMessages?: boolean; - - /** - * Use this only if you have been provided a dedicated environment by Ably - */ - environment?: string; - - /** - * Logger configuration - */ - log?: LogInfo; - port?: number; - - /** - * When true, messages will be queued whilst the connection is disconnected. True by default. - */ - queueMessages?: boolean; - - restHost?: string; - realtimeHost?: string; - fallbackHosts?: string[]; - - /** - * Can be used to explicitly recover a connection. - * See https://www.ably.io/documentation/realtime/connection#connection-state-recovery - */ - recover?: standardCallback | string; - - /** - * Use a non-secure connection connection. By default, a TLS connection is used to connect to Ably - */ - tls?: boolean; - tlsPort?: number; - - /** - * When true, the more efficient MsgPack binary encoding is used. - * When false, JSON text encoding is used. - */ - useBinaryProtocol?: boolean; - } - - interface AuthOptions { - /** - * A function which is called when a new token is required. - * The role of the callback is to either generate a signed TokenRequest which may then be submitted automatically - * by the library to the Ably REST API requestToken; or to provide a valid token in as a TokenDetails object. - */ - authCallback?(data: TokenParams, callback: (error: ErrorInfo | string, tokenRequestOrDetails: TokenDetails | TokenRequest | string) => void): void; - authHeaders?: { [index: string]: string }; - authMethod?: HTTPMethods; - authParams?: { [index: string]: string }; - - /** - * A URL that the library may use to obtain a token string (in plain text format), or a signed TokenRequest or TokenDetails (in JSON format). - */ - authUrl?: string; - key?: string; - queryTime?: boolean; - token?: TokenDetails | string; - tokenDetails?: TokenDetails; - useTokenAuth?: boolean; - } - - interface TokenParams { - capability?: string; - clientId?: string; - nonce?: string; - timestamp?: number; - ttl?: number; - } - - interface CipherParams { - algorithm: string; - key: any; - keyLength: number; - mode: string; - } - - interface ErrorInfo { - code: number; - message: string; - statusCode: number; - } - - interface StatsMessageCount { - count: number; - data: number; - } - - interface StatsMessageTypes { - all: StatsMessageCount; - messages: StatsMessageCount; - presence: StatsMessageCount; - } - - interface StatsRequestCount { - failed: number; - refused: number; - succeeded: number; - } - - interface StatsResourceCount { - mean: number; - min: number; - opened: number; - peak: number; - refused: number; - } - - interface StatsConnectionTypes { - all: StatsResourceCount; - plain: StatsResourceCount; - tls: StatsResourceCount; - } - - interface StatsMessageTraffic { - all: StatsMessageTypes; - realtime: StatsMessageTypes; - rest: StatsMessageTypes; - webhook: StatsMessageTypes; - } - - interface TokenDetails { - capability: string; - clientId?: string; - expires: number; - issued: number; - token: string; - } - - interface TokenRequest { - capability: string; - clientId?: string; - keyName: string; - mac: string; - nonce: string; - timestamp: number; - ttl?: number; - } - - interface ChannelOptions { - cipher: any; - } - - interface RestPresenceHistoryParams { - start?: number; - end?: number; - direction?: string; - limit?: number; - } - - interface RestPresenceParams { - limit?: number; - clientId?: string; - connectionId?: string; - } - - interface RealtimePresenceParams { - waitForSync?: boolean; - clientId?: string; - connectionId?: string; - } - - interface RealtimePresenceHistoryParams { - start?: number; - end?: number; - direction?: string; - limit?: number; - untilAttach?: boolean; - } - - interface LogInfo { - /** - * A number controlling the verbosity of the output. Valid values are: 0 (no logs), 1 (errors only), - * 2 (errors plus connection and channel state changes), 3 (high-level debug output), and 4 (full debug output). - */ - level?: number; - - /** - * A function to handle each line of log output. If handler is not specified, console.log is used. - */ - handler?(...args: any[]): void; - } - - interface ChannelEvent { - state: ChannelState; - } - - interface ChannelStateChange { - current: ChannelState; - previous: ChannelState; - reason?: ErrorInfo; - resumed: boolean; - } - - interface ConnectionStateChange { - current: ConnectionState; - previous: ConnectionState; - reason?: ErrorInfo; - retryIn?: number; - } - - // Common Listeners - type paginatedResultCallback = (error: ErrorInfo, results: PaginatedResult) => void; - type standardCallback = (error: ErrorInfo, results: any) => void; - type messageCallback = (message: T) => void; - type errorCallback = (error: ErrorInfo) => void; - type channelEventCallback = (channelEvent: ChannelEvent, changeStateChange: ChannelStateChange) => void; - type connectionEventCallback = (connectionEvent: ConnectionEvent, connectionStateChange: ConnectionStateChange) => void; - type timeCallback = (error: ErrorInfo, time: number) => void; - type realtimePresenceGetCallback = (error: ErrorInfo, messages: PresenceMessage[]) => void; - type tokenDetailsCallback = (error: ErrorInfo, Results: TokenDetails) => void; - type tokenRequestCallback = (error: ErrorInfo, Results: TokenRequest) => void; - type fromEncoded = (JsonObject: any, channelOptions?: ChannelOptions) => T; - type fromEncodedArray = (JsonArray: any[], channelOptions?: ChannelOptions) => T[]; - - // Internal Classes - class EventEmitter { - on: (eventOrCallback: string | T, callback?: T) => void; - once: (eventOrCallback: string | T, callback?: T) => void; - off: (eventOrCallback?: string | T, callback?: T) => void; - } - - // Classes - class Auth { - clientId: string; - authorize: (tokenParams?: TokenParams | tokenDetailsCallback, authOptions?: AuthOptions | tokenDetailsCallback, callback?: tokenDetailsCallback) => void; - createTokenRequest: (tokenParams?: TokenParams | tokenRequestCallback, authOptions?: AuthOptions | tokenRequestCallback, callback?: tokenRequestCallback) => void; - requestToken: (TokenParams?: TokenParams | tokenDetailsCallback, authOptions?: AuthOptions | tokenDetailsCallback, callback?: tokenDetailsCallback) => void; - } - - class Presence { - get: (params: RestPresenceParams | paginatedResultCallback, callback?: paginatedResultCallback) => void; - history: (params: RestPresenceHistoryParams | paginatedResultCallback, callback?: paginatedResultCallback) => void; - } - - class RealtimePresence { - syncComplete: () => boolean; - get: (Params: realtimePresenceGetCallback | RealtimePresenceParams, callback?: realtimePresenceGetCallback) => void; - history: (ParamsOrCallback: RealtimePresenceHistoryParams | paginatedResultCallback, callback?: paginatedResultCallback) => void; - subscribe: (presenceOrCallback: PresenceAction | messageCallback, listener?: messageCallback) => void; - unsubscribe: (presence?: PresenceAction, listener?: messageCallback) => void; - enter: (data?: errorCallback | any, callback?: errorCallback) => void; - update: (data?: errorCallback | any, callback?: errorCallback) => void; - leave: (data?: errorCallback | any, callback?: errorCallback) => void; - enterClient: (clientId: string, data?: errorCallback | any, callback?: errorCallback) => void; - updateClient: (clientId: string, data?: errorCallback | any, callback?: errorCallback) => void; - leaveClient: (clientId: string, data?: errorCallback | any, callback?: errorCallback) => void; - } - - class Channel { - name: string; - presence: Presence; - history: (paramsOrCallback?: RestPresenceHistoryParams | paginatedResultCallback, callback?: paginatedResultCallback) => void; - publish: (messagesOrName: any, messagedataOrCallback?: errorCallback | any, callback?: errorCallback) => void; - } - - class RealtimeChannel extends EventEmitter { - name: string; - errorReason: ErrorInfo; - state: ChannelState; - presence: RealtimePresence; - attach: (callback?: standardCallback) => void; - detach: (callback?: standardCallback) => void; - history: (paramsOrCallback?: RealtimePresenceHistoryParams | paginatedResultCallback, callback?: paginatedResultCallback) => void; - subscribe: (eventOrCallback: messageCallback | string, listener?: messageCallback) => void; - unsubscribe: (eventOrCallback?: messageCallback | string, listener?: messageCallback) => void; - publish: (messagesOrName: any, messageDataOrCallback?: errorCallback | any, callback?: errorCallback) => void; - setOptions: (options: any, callback?: errorCallback) => void; - } - - class Channels { - get: (name: string, channelOptions?: ChannelOptions) => T; - release: (name: string) => void; - } - - class Message { - constructor(); - static fromEncoded: fromEncoded; - static fromEncodedArray: fromEncodedArray; - clientId: string; - connectionId: string; - data: any; - encoding: string; - extras: any; - id: string; - name: string; - timestamp: number; - } - - interface MessageStatic { - fromEncoded: fromEncoded; - fromEncodedArray: fromEncodedArray; - } - - class PresenceMessage { - constructor(); - static fromEncoded: fromEncoded; - static fromEncodedArray: fromEncodedArray; - action: PresenceAction; - clientId: string; - connectionId: string; - data: any; - encoding: string; - id: string; - timestamp: number; - } - - interface PresenceMessageStatic { - fromEncoded: fromEncoded; - fromEncodedArray: fromEncodedArray; - } - - interface Crypto { - generateRandomKey(callback: (error: ErrorInfo, key: string) => void): void; - } - - class Connection extends EventEmitter { - errorReason: ErrorInfo; - id: string; - key: string; - recoveryKey: string; - serial: number; - state: ConnectionState; - close: () => void; - connect: () => void; - ping: (callback?: (error: ErrorInfo, responseTime: number) => void) => void; - } - - class Stats { - all: StatsMessageTypes; - apiRequests: StatsRequestCount; - channels: StatsResourceCount; - connections: StatsConnectionTypes; - inbound: StatsMessageTraffic; - intervalId: string; - outbound: StatsMessageTraffic; - persisted: StatsMessageTypes; - tokenRequests: StatsRequestCount; - } - - class PaginatedResult { - items: T[]; - first: (results: paginatedResultCallback) => void; - next: (results: paginatedResultCallback) => void; - current: (results: paginatedResultCallback) => void; - hasNext: () => boolean; - isLast: () => boolean; - } - - class HttpPaginatedResponse extends PaginatedResult { - items: string[]; - statusCode: number; - success: boolean; - errorCode: number; - errorMessage: string; - headers: any; - } -} - -export class Rest { - constructor(options: ablyLib.ClientOptions | string); - static Crypto: ablyLib.Crypto; - static Message: ablyLib.MessageStatic; - static PresenceMessage: ablyLib.PresenceMessageStatic; - auth: ablyLib.Auth; - channels: ablyLib.Channels; - request: (method: string, path: string, params?: any, body?: any[] | any, headers?: any, callback?: (error: ablyLib.ErrorInfo, response: ablyLib.HttpPaginatedResponse) => void) => void; - stats: (paramsOrCallback?: ablyLib.paginatedResultCallback | any, callback?: ablyLib.paginatedResultCallback) => void; - time: (paramsOrCallback?: ablyLib.timeCallback | any, callback?: ablyLib.timeCallback) => void; -} - -export class Realtime { - constructor(options: ablyLib.ClientOptions | string); - static Crypto: ablyLib.Crypto; - static Message: ablyLib.MessageStatic; - static PresenceMessage: ablyLib.PresenceMessageStatic; - auth: ablyLib.Auth; - channels: ablyLib.Channels; - clientId: string; - connection: ablyLib.Connection; - request: (method: string, path: string, params?: any, body?: any[] | any, headers?: any, callback?: (error: ablyLib.ErrorInfo, response: ablyLib.HttpPaginatedResponse) => void) => void; - stats: (paramsOrCallback?: ablyLib.paginatedResultCallback | any, callback?: ablyLib.paginatedResultCallback) => void; - close: () => void; - connect: () => void; - time: (paramsOrCallback?: ablyLib.timeCallback | any, callback?: ablyLib.timeCallback) => void; -} diff --git a/types/ably/tslint.json b/types/ably/tslint.json deleted file mode 100644 index d9d49e375e..0000000000 --- a/types/ably/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-any-union": false - } -} diff --git a/types/actions-on-google/actions-sdk-app.d.ts b/types/actions-on-google/actions-sdk-app.d.ts index 09a4fbe0ad..afa422fad3 100644 --- a/types/actions-on-google/actions-sdk-app.d.ts +++ b/types/actions-on-google/actions-sdk-app.d.ts @@ -224,18 +224,24 @@ export class ActionsSdkApp extends AssistantApp { getSelectedOption(): string; /** - * Asks to collect user's input; all user's queries need to be sent to - * the app. - * {@link https://developers.google.com/actions/policies/general-policies#user_experience|The guidelines when prompting the user for a response must be followed at all times}. + * Asks to collect user's input; all user's queries need to be sent to the app. + * {@link https://developers.google.com/actions/policies/general-policies#user_experience| + * The guidelines when prompting the user for a response must be followed at all times}. * * @example * const app = new ActionsSdkApp({request: request, response: response}); * + * const noInputs = [ + * `I didn't hear a number`, + * `If you're still there, what's the number?`, + * 'What is the number?' + * ]; + * * function mainIntent (app) { - * const inputPrompt = app.buildInputPrompt(true, 'Hi! ' + - * 'I can read out an ordinal like ' + - * '123. Say a number.', - * ['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'What is the number?']); + * const ssml = 'Hi! ' + + * 'I can read out an ordinal like ' + + * '123. Say a number.'; + * const inputPrompt = app.buildInputPrompt(true, ssml, noInputs); * app.ask(inputPrompt); * } * @@ -243,9 +249,9 @@ export class ActionsSdkApp extends AssistantApp { * if (app.getRawInput() === 'bye') { * app.tell('Goodbye!'); * } else { - * const inputPrompt = app.buildInputPrompt(true, 'You said, ' + - * app.getRawInput() + '', - * ['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'What is the number?']); + * const ssml = 'You said, ' + + * app.getRawInput() + ''; + * const inputPrompt = app.buildInputPrompt(true, ssml, noInputs); * app.ask(inputPrompt); * } * } @@ -272,7 +278,7 @@ export class ActionsSdkApp extends AssistantApp { * const app = new ActionsSdkApp({request, response}); * * function welcomeIntent (app) { - * app.askWithlist('Which of these looks good?', + * app.askWithList('Which of these looks good?', * app.buildList('List title') * .addItems([ * app.buildOptionItem(SELECTION_KEY_ONE, @@ -356,11 +362,17 @@ export class ActionsSdkApp extends AssistantApp { * @example * const app = new ActionsSdkApp({request: request, response: response}); * + * const noInputs = [ + * `I didn't hear a number`, + * `If you're still there, what's the number?`, + * 'What is the number?' + * ]; + * * function mainIntent (app) { - * const inputPrompt = app.buildInputPrompt(true, 'Hi! ' + - * 'I can read out an ordinal like ' + - * '123. Say a number.', - * ['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'What is the number?']); + * const ssml = 'Hi! ' + + * 'I can read out an ordinal like ' + + * '123. Say a number.'; + * const inputPrompt = app.buildInputPrompt(true, ssml, noInputs); * app.ask(inputPrompt); * } * @@ -368,9 +380,9 @@ export class ActionsSdkApp extends AssistantApp { * if (app.getRawInput() === 'bye') { * app.tell('Goodbye!'); * } else { - * const inputPrompt = app.buildInputPrompt(true, 'You said, ' + - * app.getRawInput() + '', - * ['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'What is the number?']); + * const ssml = 'You said, ' + + * app.getRawInput() + ''; + * const inputPrompt = app.buildInputPrompt(true, ssml, noInputs); * app.ask(inputPrompt); * } * } @@ -390,7 +402,7 @@ export class ActionsSdkApp extends AssistantApp { /** * Builds the {@link https://developers.google.com/actions/reference/conversation#InputPrompt|InputPrompt object} - * from initial prompt and no-input prompts. + * from initial prompt and no-input prompts. * * The App needs one initial prompt to start the conversation. If there is no user response, * the App re-opens the mic and renders the no-input prompts three times diff --git a/types/actions-on-google/assistant-app.d.ts b/types/actions-on-google/assistant-app.d.ts index caed5cf6cb..d835915259 100644 --- a/types/actions-on-google/assistant-app.d.ts +++ b/types/actions-on-google/assistant-app.d.ts @@ -1,9 +1,15 @@ import * as express from 'express'; -import { BasicCard, Carousel, List, OptionItem, RichResponse } from './response-builder'; +import { BasicCard, Carousel, ImageDisplays, List, OptionItem, RichResponse } from './response-builder'; import { ActionPaymentTransactionConfig, Cart, GooglePaymentTransactionConfig, LineItem, Location, Order, OrderUpdate, TransactionDecision, TransactionValues } from './transactions'; +// +// Note: These enums are exported due to limitations with Typescript and this +// library. If you try to import and access them they'll end up null at runtime. +// Either access them through an AssistantApp instance or AssistantApp.prototype. +// + /** * List of standard intents that the app provides. * @actionssdk @@ -36,9 +42,9 @@ export enum StandardIntents { CANCEL, /** App fires NEW_SURFACE intent when requesting handoff to a new surface from user. */ NEW_SURFACE, - /** App fires REGISTER_UPDATE intent when requesting the user to register for proactive updates. */ + /** App fires REGISTER_UPDATE intent when requesting user to register for proactive updates. */ REGISTER_UPDATE, - /** App receives CONFIGURE_UPDATES intent to indicate a custom REGISTER_UPDATE intent should be sent. */ + /** App receives CONFIGURE_UPDATES intent to indicate a REGISTER_UPDATE intent should be sent. */ CONFIGURE_UPDATES } @@ -257,8 +263,8 @@ export interface UserName { * User's permissioned device location. */ export interface DeviceLocation { - /** {latitude, longitude}. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */ - coordinates: object; + /** Coordinates: {latitude, longitude}. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */ + coordinates: Coordinates; /** Full, formatted street address. Requested with SupportedPermissions.DEVICE_PRECISE_LOCATION. */ address: string; /** Zip code. Requested with SupportedPermissions.DEVICE_COARSE_LOCATION. */ @@ -267,13 +273,26 @@ export interface DeviceLocation { city: string; } +/** + * Coordinates containing latitude and longitude + */ +export interface Coordinates { + /** Latitude coordinate. */ + latitude: number; + /** Longitude coordinate. */ + longitude: number; +} + /** * User object. */ export interface User { /** Random string ID for Google user. */ userId: string; - /** User name information. Null if not requested with {@link AssistantApp#askForPermission|askForPermission(SupportedPermissions.NAME)}. */ + /** + * User name information. Null if not requested with + * {@link AssistantApp#askForPermission|askForPermission(SupportedPermissions.NAME)}. + */ userName: UserName; /** Unique Oauth2 token. Only available with account linking. */ accessToken: string; @@ -303,7 +322,7 @@ export interface Surface { */ export interface Capability { /** Name of the capability. */ - name: string; + name: SurfaceCapabilities; } /** @@ -408,6 +427,11 @@ export class AssistantApp { */ readonly SignInStatus: typeof SignInStatus; + /** + * Values related to supporting {@link ImageDisplays}. + */ + readonly ImageDisplays: typeof ImageDisplays; + /** * Values related to supporting {@link Transactions}. */ @@ -430,11 +454,17 @@ export class AssistantApp { * // Actions SDK * const app = new ActionsSdkApp({request: request, response: response}); * + * const noInputs = [ + * `I didn't hear a number`, + * `If you're still there, what's the number?`, + * 'What is the number?' + * ]; + * * function mainIntent (app) { - * const inputPrompt = app.buildInputPrompt(true, 'Hi! ' + - * 'I can read out an ordinal like ' + - * '123. Say a number.', - * ['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'What is the number?']); + * const ssml = 'Hi! ' + + * 'I can read out an ordinal like ' + + * '123. Say a number.'; + * const inputPrompt = app.buildInputPrompt(true, ssml, noInputs); * app.ask(inputPrompt); * } * @@ -442,9 +472,9 @@ export class AssistantApp { * if (app.getRawInput() === 'bye') { * app.tell('Goodbye!'); * } else { - * const inputPrompt = app.buildInputPrompt(true, 'You said, ' + - * app.getRawInput() + '', - * ['I didn\'t hear a number', 'If you\'re still there, what\'s the number?', 'What is the number?']); + * const ssml = 'You said, ' + + * app.getRawInput() + ''; + * const inputPrompt = app.buildInputPrompt(true, ssml, noInputs); * app.ask(inputPrompt); * } * } @@ -479,6 +509,87 @@ export class AssistantApp { */ handleRequest(handler: ((app: AssistantApp) => any) | (Map any>)): void; + /** + * Asynchronously handles the incoming Assistant request using a handler or Map of handlers. + * Each handler can be a function callback or Promise. + * + * @example + * // Actions SDK + * const app = new ActionsSdkApp({request: request, response: response}); + * + * const noInputs = [ + * `I didn't hear a number`, + * `If you're still there, what's the number?`, + * 'What is the number?' + * ]; + * + * function mainIntent (app) { + * const ssml = 'Hi! ' + + * 'I can read out an ordinal like ' + + * '123. Say a number.'; + * const inputPrompt = app.buildInputPrompt(true, ssml, noInputs); + * app.ask(inputPrompt); + * } + * + * function rawInput (app) { + * if (app.getRawInput() === 'bye') { + * app.tell('Goodbye!'); + * } else { + * const ssml = 'You said, ' + + * app.getRawInput() + ''; + * const inputPrompt = app.buildInputPrompt(true, ssml, noInputs); + * app.ask(inputPrompt); + * } + * } + * + * const actionMap = new Map(); + * actionMap.set(app.StandardIntents.MAIN, mainIntent); + * actionMap.set(app.StandardIntents.TEXT, rawInput); + * + * app.handleRequestAsync(actionMap) + * .then( + * (result) => { + * // handle the result + * }) + * .catch( + * (reason) => { + * // handle an error + * }); + * + * // Dialogflow + * const app = new DialogflowApp({request: req, response: res}); + * const NAME_ACTION = 'make_name'; + * const COLOR_ARGUMENT = 'color'; + * const NUMBER_ARGUMENT = 'number'; + * + * function makeName (app) { + * const number = app.getArgument(NUMBER_ARGUMENT); + * const color = app.getArgument(COLOR_ARGUMENT); + * app.tell('Alright, your silly name is ' + + * color + ' ' + number + + * '! I hope you like it. See you next time.'); + * } + * + * const actionMap = new Map(); + * actionMap.set(NAME_ACTION, makeName); + * + * app.handleRequestAsync(actionMap) + * .then( + * (result) => { + * // handle the result + * }) + * .catch( + * (reason) => { + * // handle an error + * }); + * + * @param handler The handler (or Map of handlers) for the request. + * @return Promise to resolve the result of the handler that was invoked. + * @actionssdk + * @dialogflow + */ + handleRequestAsync(handler: ((app: AssistantApp) => any) | (Map any>)): Promise; + /** * Equivalent to {@link AssistantApp#askForPermission|askForPermission}, * but allows you to prompt the user for more than one permission at once. @@ -528,8 +639,8 @@ export class AssistantApp { * which comes from AssistantApp.SupportedPermissions. * @param dialogState JSON object the app uses to hold dialog state that * will be circulated back by Assistant. Used in {@link ActionsSdkApp}. - * @return A response is sent to Assistant to ask for the user's permission; for any - * invalid input, we return null. + * @return A response is sent to Assistant to ask for the user's permission. + * For any invalid input, we return null. * @actionssdk * @dialogflow */ @@ -580,8 +691,8 @@ export class AssistantApp { * {@link AssistantApp#getArgument}. * @param dialogState JSON object the app uses to hold dialog state that * will be circulated back by Assistant. Used in {@link ActionsSdkApp}. - * @return A response is sent to Assistant to ask for the user's permission; for any - * invalid input, we return null. + * @return A response is sent to Assistant to ask for the user's permission. + * For any invalid input, we return null. * @actionssdk * @dialogflow */ @@ -679,13 +790,15 @@ export class AssistantApp { * I'll just need to get your name from Google, is that OK?'. * * Once the user accepts or denies the request, the Assistant will fire another intent: - * assistant.intent.action.PERMISSION with a boolean argument: AssistantApp.BuiltInArgNames.PERMISSION_GRANTED + * app.StandardIntents.PERMISSION with a boolean argument: app.BuiltInArgNames.PERMISSION_GRANTED * and, if granted, the information that you requested. * * Read more: * - * * {@link https://developers.google.com/actions/reference/conversation#ExpectedIntent|Supported Permissions} - * * Check if the permission has been granted with {@link AssistantApp#isPermissionGranted|isPermissionsGranted} + * * {@link https://developers.google.com/actions/reference/conversation#ExpectedIntent| + * Supported Permissions} + * * Check if the permission has been granted with + * {@link AssistantApp#isPermissionGranted|isPermissionsGranted} * * {@link AssistantApp#getDeviceLocation|getDeviceLocation} * * {@link AssistantApp#getUserName|getUserName} * @@ -896,6 +1009,7 @@ export class AssistantApp { * are set in the {@link https://console.actions.google.com|Actions Console}. * Retrieve the access token in subsequent intents using * app.getUser().accessToken. + * Works only for en-* locales. * * @example * const app = new DialogflowApp({ request, response }); @@ -930,6 +1044,7 @@ export class AssistantApp { /** * Requests the user to switch to another surface during the conversation. + * Works only for en-* locales. * * @example * const app = new DialogflowApp({ request, response }); @@ -1126,41 +1241,6 @@ export class AssistantApp { */ getInputType(): number | string; - /** - * Get the argument value by name from the current intent. - * If the argument is included in originalRequest, and is not a text argument, - * the entire argument object is returned. - * - * Note: If incoming request is using an API version under 2 (e.g. 'v1'), - * the argument object will be in Proto2 format (snake_case, etc). - * - * @example - * const app = new DialogflowApp({request: request, response: response}); - * const WELCOME_INTENT = 'input.welcome'; - * const NUMBER_INTENT = 'input.number'; - * - * function welcomeIntent (app) { - * app.ask('Welcome to action snippets! Say a number.'); - * } - * - * function numberIntent (app) { - * const number = app.getArgument(NUMBER_ARGUMENT); - * app.tell('You said ' + number); - * } - * - * const actionMap = new Map(); - * actionMap.set(WELCOME_INTENT, welcomeIntent); - * actionMap.set(NUMBER_INTENT, numberIntent); - * app.handleRequest(actionMap); - * - * @param argName Name of the argument. - * @return Argument value matching argName - * or null if no matching argument. - * @dialogflow - * @actionssdk - */ - getArgumentCommon(argName: string): object; - /** * Gets transactability of user. Only use after calling * askForTransactionRequirements. Null if no result given. @@ -1258,7 +1338,7 @@ export class AssistantApp { * @dialogflow * @actionssdk */ - getSurfaceCapabilities(): string[]; + getSurfaceCapabilities(): SurfaceCapabilities[]; /** * Returns the set of other available surfaces for the user. diff --git a/types/actions-on-google/dialogflow-app.d.ts b/types/actions-on-google/dialogflow-app.d.ts index ab768241c2..4eeda87e06 100644 --- a/types/actions-on-google/dialogflow-app.d.ts +++ b/types/actions-on-google/dialogflow-app.d.ts @@ -36,7 +36,8 @@ export interface DialogflowAppOptions { } /** - * This is the class that handles the communication with Dialogflow's fulfillment API. + * This is the class that handles the communication with Dialogflow's fulfillment API v1. + * Doesn't currently support Dialogflow's fulfillment API v2. */ export class DialogflowApp extends AssistantApp { /** diff --git a/types/actions-on-google/index.d.ts b/types/actions-on-google/index.d.ts index 378604411f..23a2c1483d 100644 --- a/types/actions-on-google/index.d.ts +++ b/types/actions-on-google/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for actions-on-google 1.6 +// Type definitions for actions-on-google 1.7 // Project: https://github.com/actions-on-google/actions-on-google-nodejs // Definitions by: Joel Hegg // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped diff --git a/types/actions-on-google/response-builder.d.ts b/types/actions-on-google/response-builder.d.ts index 5b6e3d7522..4ebb9b3007 100644 --- a/types/actions-on-google/response-builder.d.ts +++ b/types/actions-on-google/response-builder.d.ts @@ -4,6 +4,27 @@ import { OrderUpdate } from './transactions'; +/** + * List of possible options to display the image in a BasicCard. + * When the aspect ratio of an image is not the same as the surface, + * this attribute changes how the image is displayed in the card. + */ +export enum ImageDisplays { + /** + * Pads the gaps between the image and image frame with a blurred copy of the + * same image. + */ + DEFAULT, + /** + * Fill the gap between the image and image container with white bars. + */ + WHITE, + /** + * Image is centered and resized so the image fits perfectly in the container. + */ + CROPPED +} + /** * Simple Response type. */ @@ -74,19 +95,19 @@ export interface StructuredResponse { orderUpdate: OrderUpdate; } -export interface RichResponseItemBasicCard { +export interface ItemBasicCard { basicCard: BasicCard; } -export interface RichResponseItemSimpleResponse { +export interface ItemSimpleResponse { simpleResponse: SimpleResponse; } -export interface RichResponseItemStructuredResponse { +export interface ItemStructuredResponse { structuredResponse: StructuredResponse; } -export type RichResponseItem = RichResponseItemBasicCard | RichResponseItemSimpleResponse | RichResponseItemStructuredResponse; +export type RichResponseItem = ItemBasicCard | ItemSimpleResponse | ItemStructuredResponse; /** * Class for initializing and constructing Rich Responses with chainable interface. @@ -150,7 +171,8 @@ export class RichResponse { isValidSuggestionText(suggestionText: string): boolean; /** - * Sets the suggestion link for this rich response. + * Sets the suggestion link for this rich response. The destination site must be verified + * (https://developers.google.com/actions/console/brand-verification). * * @param destinationName Name of the link out destination. * @param suggestionUrl - String URL to open when suggestion is used. @@ -240,6 +262,16 @@ export class BasicCard { */ setImage(url: string, accessibilityText: string, width?: number, height?: number): BasicCard; + /** + * Sets the display options for the image in this Basic Card. + * Use one of the image display constants. If none is chosen, + * ImageDisplays.DEFAULT will be enforced. + * + * @param option The option for displaying the image. + * @return Returns current constructed BasicCard. + */ + setImageDisplay(option: ImageDisplays): BasicCard; + /** * Adds a button below card. * @@ -402,3 +434,10 @@ export class OptionItem { * @return True if text contains SSML, false otherwise. */ export function isSsml(text: string): boolean; + +/** + * Check if given text contains SSML, allowing for whitespace padding. + * @param text Text to check. + * @return True if text contains possibly whitespace padded SSML, false otherwise. + */ +export function isPaddedSsml(text: string): boolean; diff --git a/types/actions-on-google/transactions.d.ts b/types/actions-on-google/transactions.d.ts index b4a4285fe9..59e6cd9b37 100644 --- a/types/actions-on-google/transactions.d.ts +++ b/types/actions-on-google/transactions.d.ts @@ -10,7 +10,7 @@ import { Image } from './response-builder'; */ export interface Price { /** One of Transaction.PriceType. */ - type: PriceType; + type: TransactionValues.PriceType; amount: { /** Currency code of price. */ currencyCode: string; @@ -26,7 +26,7 @@ export interface Price { */ export interface RejectionInfo { /** One of Transaction.ReasonType. */ - type: ReasonType; + type: TransactionValues.ReasonType; /** Reason for the order rejection. */ reason: string; } @@ -79,7 +79,7 @@ export interface ActionPaymentTransactionConfig { /** True if delivery address is required for the transaction. */ deliveryAddressRequired: boolean; /** One of Transactions.PaymentType. */ - type: PaymentType; + type: TransactionValues.PaymentType; /** The name of the instrument displayed on receipt. For example, for card payment, could be "VISA-1234". */ displayName: string; customerInfoOptions?: CustomerInfoOptions; @@ -95,9 +95,11 @@ export interface GooglePaymentTransactionConfig { /** Tokenization parameters provided by payment gateway. */ tokenizationParameters: object; /** List of accepted card networks. Must be any number of Transactions.CardNetwork. */ - cardNetworks: CardNetwork[]; + cardNetworks: TransactionValues.CardNetwork[]; /** True if prepaid cards are not allowed for transaction. */ prepaidCardDisallowed: boolean; + /** The type of tokenization. Default is {@see TransactionValues.PaymentMethodTokenizationType.PAYMENT_GATEWAY}. */ + tokenizationType: string; customerInfoOptions?: CustomerInfoOptions; } @@ -130,10 +132,10 @@ export interface Location { */ export interface TransactionDecision { /** One of Transactions.ConfirmationDecision. */ - userDecision: TransactionUserDecision; + userDecision: TransactionValues.TransactionUserDecision; checkResult: { /** One of Transactions.ResultType. */ - resultType: ResultType; + resultType: TransactionValues.ResultType; }; order: { /** The proposed order used in the transaction decision. */ @@ -162,490 +164,438 @@ export interface TransactionDecision { /** * Values related to supporting transactions */ -export const TransactionValues: { - /** List of transaction card networks available when paying with Google. */ - readonly CardNetwork: typeof CardNetwork; +export namespace TransactionValues { + /** + * List of transaction card networks available when paying with Google. + */ + enum CardNetwork { + /** + * Unspecified. + */ + UNSPECIFIED, + /** + * American Express. + */ + AMEX, + /** + * Discover. + */ + DISCOVER, + /** + * Master Card. + */ + MASTERCARD, + /** + * Visa. + */ + VISA, + /** + * JCB. + */ + JCB + } + /** * List of possible item types. * @deprecated Use {@link TransactionValues.LineItemType} instead. */ - readonly ItemType: typeof LineItemType; - /** List of possible item types. */ - readonly LineItemType: typeof LineItemType; - /** List of price types. */ - readonly PriceType: typeof PriceType; - /** List of possible item types. */ - readonly PaymentType: typeof PaymentType; - /** List of customer information properties that can be requested. */ - readonly CustomerInfoProperties: typeof CustomerInfoProperties; + // tslint:disable-next-line: strict-export-declare-modifiers + export import ItemType = LineItemType; + + /** + * List of possible item types. + */ + enum LineItemType { + /** + * Unspecified. + */ + UNSPECIFIED, + /** + * Regular. + */ + REGULAR, + /** + * Tax. + */ + TAX, + /** + * Discount + */ + DISCOUNT, + /** + * Gratuity + */ + GRATUITY, + /** + * Delivery + */ + DELIVERY, + /** + * Subtotal + */ + SUBTOTAL, + /** + * Fee. For everything else, there's fee. + */ + FEE + } + + /** + * List of price types. + */ + enum PriceType { + /** + * Unknown. + */ + UNKNOWN, + /** + * Estimate. + */ + ESTIMATE, + /** + * Actual. + */ + ACTUAL + } + + /** + * List of possible item types. + */ + enum PaymentType { + /** + * Unspecified. + */ + UNSPECIFIED, + /** + * Payment card. + */ + PAYMENT_CARD, + /** + * Bank. + */ + BANK, + /** + * Loyalty program. + */ + LOYALTY_PROGRAM, + /** + * On order fulfillment, such as cash on delivery. + */ + ON_FULFILLMENT, + /** + * Gift card. + */ + GIFT_CARD + } + + /** + * List of customer information properties that can be requested. + */ + enum CustomerInfoProperties { + CUSTOMER_INFO_PROPERTY_UNSPECIFIED, + EMAIL + } + /** * List of possible order confirmation user decisions * @deprecated Use {@link TransactionValues.TransactionUserDecision} instead. */ - readonly ConfirmationDecision: typeof TransactionUserDecision; - /** List of possible order confirmation user decisions */ - readonly TransactionUserDecision: typeof TransactionUserDecision; - /** List of possible order states. */ - readonly OrderState: typeof OrderState; + // tslint:disable-next-line: strict-export-declare-modifiers + export import ConfirmationDecision = TransactionUserDecision; + + /** + * List of possible order confirmation user decisions + */ + enum TransactionUserDecision { + /** + * Unspecified user decision. + */ + UNKNOWN_USER_DECISION, + /** + * Order was approved by user. + */ + ACCEPTED, + /** + * Order was declined by user. + */ + REJECTED, + /** + * Order was not declined, but the delivery address was updated during + * confirmation. + */ + DELIVERY_ADDRESS_UPDATED, + /** + * Order was not declined, but the cart was updated during confirmation. + */ + CART_CHANGE_REQUESTED + } + + /** + * List of possible order states. + */ + enum OrderState { + /** + * Order was created at the integrator's system. + */ + CREATED, + /** + * Order was rejected. + */ + REJECTED, + /** + * Order was confirmed by integrator and is active. + */ + CONFIRMED, + /** + * User cancelled the order. + */ + CANCELLED, + /** + * Order is being delivered. + */ + IN_TRANSIT, + /** + * User performed a return. + */ + RETURNED, + /** + * User received what was ordered. + */ + FULFILLED + } + /** * List of possible actions to take on the order. * @deprecated Use {@link TransactionValues.ActionType} instead. */ - readonly OrderAction: typeof ActionType; - /** List of possible actions to take on the order. */ - readonly ActionType: typeof ActionType; + // tslint:disable-next-line: strict-export-declare-modifiers + export import OrderAction = ActionType; + + /** + * List of possible actions to take on the order. + */ + enum ActionType { + /** + * Unknown action. + */ + UNKNOWN, + /** + * View details. + */ + VIEW_DETAILS, + /** + * Modify order. + */ + MODIFY, + /** + * Cancel order. + */ + CANCEL, + /** + * Return order. + */ + RETURN, + /** + * Exchange order. + */ + EXCHANGE, + /** + * Email. + */ + EMAIL, + /** + * Call. + */ + CALL, + /** + * Reorder. + */ + REORDER, + /** + * Review. + */ + REVIEW, + /** + * Customer Service. + */ + CUSTOMER_SERVICE + } + /** * List of possible types of order rejection. * @deprecated Use {@link TransactionValues.ReasonType} instead. */ - readonly RejectionType: typeof ReasonType; - /** List of possible types of order rejection. */ - readonly ReasonType: typeof ReasonType; - /** List of possible order state objects. */ - readonly OrderStateInfo: typeof OrderStateInfo; - /** List of possible order transaction requirements check result types. */ - readonly ResultType: typeof ResultType; - /** List of possible user decisions to give delivery address. */ - readonly DeliveryAddressDecision: typeof DeliveryAddressUserDecision; - /** List of possible user decisions to give delivery address. */ - readonly DeliveryAddressUserDecision: typeof DeliveryAddressUserDecision; + // tslint:disable-next-line: strict-export-declare-modifiers + export import RejectionType = ReasonType; + + /** + * List of possible types of order rejection. + */ + enum ReasonType { + /** + * Unknown + */ + UNKNOWN, + /** + * Payment was declined. + */ + PAYMENT_DECLINED + } + + /** + * List of possible order state objects. + */ + enum OrderStateInfo { + /** + * Information about order rejection. Used with {@link RejectionInfo}. + */ + REJECTION, + /** + * Information about order receipt. Used with {@link ReceiptInfo}. + */ + RECEIPT, + /** + * Information about order cancellation. Used with {@link CancellationInfo}. + */ + CANCELLATION, + /** + * Information about in-transit order. Used with {@link TransitInfo}. + */ + IN_TRANSIT, + /** + * Information about order fulfillment. Used with {@link FulfillmentInfo}. + */ + FULFILLMENT, + /** + * Information about order return. Used with {@link ReturnInfo}. + */ + RETURN + } + + /** + * List of possible order transaction requirements check result types. + */ + enum ResultType { + /** + * Unspecified. + */ + UNSPECIFIED, + /** + * OK to continue transaction. + */ + OK, + /** + * User is expected to take action, e.g. enable payments, to continue + * transaction. + */ + USER_ACTION_REQUIRED, + /** + * Transactions are not supported on current device/surface. + */ + ASSISTANT_SURFACE_NOT_SUPPORTED, + /** + * Transactions are not supported for current region/country. + */ + REGION_NOT_SUPPORTED + } + + /** + * List of possible user decisions to give delivery address. + * @deprecated Use {@link TransactionValues.DeliveryAddressUserDecision} instead. + */ + // tslint:disable-next-line: strict-export-declare-modifiers + export import DeliveryAddressDecision = DeliveryAddressUserDecision; + + /** + * List of possible user decisions to give delivery address. + */ + enum DeliveryAddressUserDecision { + /** + * Unknown. + */ + UNKNOWN, + /** + * User granted delivery address. + */ + ACCEPTED, + /** + * User denied to give delivery address. + */ + REJECTED + } + /** * List of possible order location types. * @deprecated Use {@link TransactionValues.OrderLocationType} instead. */ - readonly LocationType: typeof OrderLocationType; - /** List of possible order location types. */ - readonly OrderLocationType: typeof OrderLocationType; - /** List of possible order time types. */ - readonly TimeType: typeof TimeType; - /** List of possible tokenization types for the payment method */ - readonly PaymentMethodTokenizationType: typeof PaymentMethodTokenizationType; -}; + // tslint:disable-next-line: strict-export-declare-modifiers + export import LocationType = OrderLocationType; -/** - * List of transaction card networks available when paying with Google. - */ -export enum CardNetwork { /** - * Unspecified. + * List of possible order location types. */ - UNSPECIFIED, - /** - * American Express. - */ - AMEX, - /** - * Discover. - */ - DISCOVER, - /** - * Master Card. - */ - MASTERCARD, - /** - * Visa. - */ - VISA, - /** - * JCB. - */ - JCB -} + enum OrderLocationType { + /** + * Unknown. + */ + UNKNOWN, + /** + * Delivery location for an order. + */ + DELIVERY, + /** + * Business location of order provider. + */ + BUSINESS, + /** + * Origin of the order. + */ + ORIGIN, + /** + * Destination of the order. + */ + DESTINATION, + /** + * Pick up location of the order. + */ + PICK_UP + } -/** - * List of possible item types. - * @deprecated Use {@link TransactionValues.LineItemType} instead. - */ -export type ItemType = LineItemType; + /** + * List of possible order time types. + */ + enum TimeType { + /** + * Unknown. + */ + UNKNOWN, + /** + * Date of delivery for the order. + */ + DELIVERY_DATE, + /** + * Estimated Time of Arrival for order. + */ + ETA, + /** + * Reservation time. + */ + RESERVATION_SLOT + } -/** - * List of possible item types. - */ -export enum LineItemType { /** - * Unspecified. - */ - UNSPECIFIED, - /** - * Regular. - */ - REGULAR, - /** - * Tax. - */ - TAX, - /** - * Discount - */ - DISCOUNT, - /** - * Gratuity - */ - GRATUITY, - /** - * Delivery - */ - DELIVERY, - /** - * Subtotal - */ - SUBTOTAL, - /** - * Fee. For everything else, there's fee. - */ - FEE -} - -/** - * List of price types. - */ -export enum PriceType { - /** - * Unknown. - */ - UNKNOWN, - /** - * Estimate. - */ - ESTIMATE, - /** - * Actual. - */ - ACTUAL -} - -/** - * List of possible item types. - */ -export enum PaymentType { - /** - * Unspecified. - */ - UNSPECIFIED, - /** - * Payment card. - */ - PAYMENT_CARD, - /** - * Bank. - */ - BANK, - /** - * Loyalty program. - */ - LOYALTY_PROGRAM, - /** - * On order fulfillment, such as cash on delivery. - */ - ON_FULFILLMENT, - /** - * Gift card. - */ - GIFT_CARD -} - -/** - * List of customer information properties that can be requested. - */ -export enum CustomerInfoProperties { - CUSTOMER_INFO_PROPERTY_UNSPECIFIED, - EMAIL -} - -/** - * List of possible order confirmation user decisions - * @deprecated Use {@link TransactionValues.TransactionUserDecision} instead. - */ -export type ConfirmationDecision = TransactionUserDecision; - -/** - * List of possible order confirmation user decisions - */ -export enum TransactionUserDecision { - /** - * Unspecified user decision. - */ - UNKNOWN_USER_DECISION, - /** - * Order was approved by user. - */ - ACCEPTED, - /** - * Order was declined by user. - */ - REJECTED, - /** - * Order was not declined, but the delivery address was updated during - * confirmation. - */ - DELIVERY_ADDRESS_UPDATED, - /** - * Order was not declined, but the cart was updated during confirmation. - */ - CART_CHANGE_REQUESTED -} - -/** - * List of possible order states. - */ -export enum OrderState { - /** - * Order was created at the integrator's system. - */ - CREATED, - /** - * Order was rejected. - */ - REJECTED, - /** - * Order was confirmed by integrator and is active. - */ - CONFIRMED, - /** - * User cancelled the order. - */ - CANCELLED, - /** - * Order is being delivered. - */ - IN_TRANSIT, - /** - * User performed a return. - */ - RETURNED, - /** - * User received what was ordered. - */ - FULFILLED -} - -/** - * List of possible actions to take on the order. - * @deprecated Use {@link TransactionValues.ActionType} instead. - */ -export type OrderAction = ActionType; - -/** - * List of possible actions to take on the order. - */ -export enum ActionType { - /** - * Unknown action. - */ - UNKNOWN, - /** - * View details. - */ - VIEW_DETAILS, - /** - * Modify order. - */ - MODIFY, - /** - * Cancel order. - */ - CANCEL, - /** - * Return order. - */ - RETURN, - /** - * Exchange order. - */ - EXCHANGE, - /** - * Email. - */ - EMAIL, - /** - * Call. - */ - CALL, - /** - * Reorder. - */ - REORDER, - /** - * Review. - */ - REVIEW, - /** - * Customer Service. - */ - CUSTOMER_SERVICE -} - -/** - * List of possible types of order rejection. - * @deprecated Use {@link TransactionValues.ReasonType} instead. - */ -export type RejectionType = ReasonType; - -/** - * List of possible types of order rejection. - */ -export enum ReasonType { - /** - * Unknown - */ - UNKNOWN, - /** - * Payment was declined. - */ - PAYMENT_DECLINED -} - -/** - * List of possible order state objects. - */ -export enum OrderStateInfo { - /** - * Information about order rejection. Used with {@link RejectionInfo}. - */ - REJECTION, - /** - * Information about order receipt. Used with {@link ReceiptInfo}. - */ - RECEIPT, - /** - * Information about order cancellation. Used with {@link CancellationInfo}. - */ - CANCELLATION, - /** - * Information about in-transit order. Used with {@link TransitInfo}. - */ - IN_TRANSIT, - /** - * Information about order fulfillment. Used with {@link FulfillmentInfo}. - */ - FULFILLMENT, - /** - * Information about order return. Used with {@link ReturnInfo}. - */ - RETURN -} - -/** - * List of possible order transaction requirements check result types. - */ -export enum ResultType { - /** - * Unspecified. - */ - UNSPECIFIED, - /** - * OK to continue transaction. - */ - OK, - /** - * User is expected to take action, e.g. enable payments, to continue - * transaction. - */ - USER_ACTION_REQUIRED, - /** - * Transactions are not supported on current device/surface. - */ - ASSISTANT_SURFACE_NOT_SUPPORTED, - /** - * Transactions are not supported for current region/country. - */ - REGION_NOT_SUPPORTED -} - -/** - * List of possible user decisions to give delivery address. - * @deprecated Use {@link TransactionValues.DeliveryAddressUserDecision} instead. - */ -export type DeliveryAddressDecision = DeliveryAddressUserDecision; - -/** - * List of possible user decisions to give delivery address. - */ -export enum DeliveryAddressUserDecision { - /** - * Unknown. - */ - UNKNOWN, - /** - * User granted delivery address. - */ - ACCEPTED, - /** - * User denied to give delivery address. - */ - REJECTED -} - -/** - * List of possible order location types. - * @deprecated Use {@link TransactionValues.OrderLocationType} instead. - */ -export type LocationType = OrderLocationType; - -/** - * List of possible order location types. - */ -export enum OrderLocationType { - /** - * Unknown. - */ - UNKNOWN, - /** - * Delivery location for an order. - */ - DELIVERY, - /** - * Business location of order provider. - */ - BUSINESS, - /** - * Origin of the order. - */ - ORIGIN, - /** - * Destination of the order. - */ - DESTINATION, - /** - * Pick up location of the order. - */ - PICK_UP -} - -/** - * List of possible order time types. - */ -export enum TimeType { - /** - * Unknown. - */ - UNKNOWN, - /** - * Date of delivery for the order. - */ - DELIVERY_DATE, - /** - * Estimated Time of Arrival for order. - */ - ETA, - /** - * Reservation time. - */ - RESERVATION_SLOT -} - -/** - * List of possible tokenization types for the payment method - */ -export enum PaymentMethodTokenizationType { - /** - * Unspecified tokenization type. - */ - UNSPECIFIED_TOKENIZATION_TYPE, - /** - * Use external payment gateway tokenization API to tokenize selected payment method. - */ - PAYMENT_GATEWAY + * List of possible tokenization types for the payment method + */ + enum PaymentMethodTokenizationType { + /** + * Unspecified tokenization type. + */ + UNSPECIFIED_TOKENIZATION_TYPE, + /** + * Use external payment gateway tokenization API to tokenize selected payment method. + */ + PAYMENT_GATEWAY + } } /** @@ -740,7 +690,7 @@ export class Order { * @param nanos Partial unit count of price. * @return Returns current constructed Order. */ - setTotalPrice(priceType: PriceType, currencyCode: string, units: number, nanos?: number): Order; + setTotalPrice(priceType: TransactionValues.PriceType, currencyCode: string, units: number, nanos?: number): Order; /** * Adds an associated location to the order. Up to 2 locations can be added. @@ -749,7 +699,7 @@ export class Order { * @param location Location to add. * @return Returns current constructed Order. */ - addLocation(type: OrderLocationType, location: Location): Order; + addLocation(type: TransactionValues.OrderLocationType, location: Location): Order; /** * Sets an associated time to the order. @@ -759,7 +709,7 @@ export class Order { * of time value. Could be date, datetime, or duration. * @return Returns current constructed Order. */ - setTime(type: TimeType, time: string): Order; + setTime(type: TransactionValues.TimeType, time: string): Order; } /** @@ -872,7 +822,7 @@ export class LineItem { /** * Type of the item. One of TransactionValues.LineItemType. */ - type?: LineItemType; + type?: TransactionValues.LineItemType; /** * Quantity of the item. @@ -919,7 +869,7 @@ export class LineItem { * @param nanos Partial unit count of price. * @return Returns current constructed LineItem. */ - setPrice(priceType: PriceType, currencyCode: string, units: number, nanos?: number): LineItem; + setPrice(priceType: TransactionValues.PriceType, currencyCode: string, units: number, nanos?: number): LineItem; /** * Set the type of the item. @@ -927,7 +877,7 @@ export class LineItem { * @param type Type of the item. One of TransactionValues.LineItemType. * @return Returns current constructed LineItem. */ - setType(type: LineItemType): LineItem; + setType(type: TransactionValues.LineItemType): LineItem; /** * Set the quantity of the item. @@ -1030,7 +980,7 @@ export class OrderUpdate { * @param label Label for the order state. * @return Returns current constructed OrderUpdate. */ - setOrderState(state: OrderState, label: string): OrderUpdate; + setOrderState(state: TransactionValues.OrderState, label: string): OrderUpdate; /** * Set the update time of the order. @@ -1059,7 +1009,7 @@ export class OrderUpdate { * @param nanos Partial unit count of price. * @return Returns current constructed OrderUpdate. */ - setTotalPrice(priceType: PriceType, currencyCode: string, units: number, nanos?: number): OrderUpdate; + setTotalPrice(priceType: TransactionValues.PriceType, currencyCode: string, units: number, nanos?: number): OrderUpdate; /** * Adds an actionable item for the user to manage the order. @@ -1069,7 +1019,7 @@ export class OrderUpdate { * @param url URL to open when button is clicked. * @return Returns current constructed OrderUpdate. */ - addOrderManagementAction(type: ActionType, label: string, url: string): OrderUpdate; + addOrderManagementAction(type: TransactionValues.ActionType, label: string, url: string): OrderUpdate; /** * Adds a single price update for a particular line item in the order. @@ -1084,7 +1034,7 @@ export class OrderUpdate { * addLineItemStateUpdate. * @return Returns current constructed OrderUpdate. */ - addLineItemPriceUpdate(itemId: string, priceType: PriceType, currencyCode: string, units: number, nanos?: number, reason?: string): OrderUpdate; + addLineItemPriceUpdate(itemId: string, priceType: TransactionValues.PriceType, currencyCode: string, units: number, nanos?: number, reason?: string): OrderUpdate; /** * Adds a single state update for a particular line item in the order. @@ -1096,7 +1046,7 @@ export class OrderUpdate { * any reason given in addLineitemPriceUpdate. * @return Returns current constructed OrderUpdate. */ - addLineItemStateUpdate(itemId: string, state: OrderState, label: string, reason?: string): OrderUpdate; + addLineItemStateUpdate(itemId: string, state: TransactionValues.OrderState, label: string, reason?: string): OrderUpdate; /** * Sets some extra information about the order. Takes an order update info diff --git a/types/activex-access/tslint.json b/types/activex-access/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-access/tslint.json +++ b/types/activex-access/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-adodb/tslint.json b/types/activex-adodb/tslint.json index 2750cc0197..3224b40b8b 100644 --- a/types/activex-adodb/tslint.json +++ b/types/activex-adodb/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + "no-const-enum": false + } +} diff --git a/types/activex-dao/tslint.json b/types/activex-dao/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-dao/tslint.json +++ b/types/activex-dao/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-excel/tslint.json b/types/activex-excel/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-excel/tslint.json +++ b/types/activex-excel/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-infopath/tslint.json b/types/activex-infopath/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-infopath/tslint.json +++ b/types/activex-infopath/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-libreoffice/tslint.json b/types/activex-libreoffice/tslint.json index 8e56cb082c..37a3c27489 100644 --- a/types/activex-libreoffice/tslint.json +++ b/types/activex-libreoffice/tslint.json @@ -1,8 +1,8 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false], "ban-types": false, + "no-const-enum": false, "no-redundant-jsdoc": false, "no-redundant-jsdoc-2": false, "no-unnecessary-qualifier": false diff --git a/types/activex-msforms/tslint.json b/types/activex-msforms/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-msforms/tslint.json +++ b/types/activex-msforms/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-mshtml/tslint.json b/types/activex-mshtml/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-mshtml/tslint.json +++ b/types/activex-mshtml/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-msxml2/tslint.json b/types/activex-msxml2/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-msxml2/tslint.json +++ b/types/activex-msxml2/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-office/tslint.json b/types/activex-office/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-office/tslint.json +++ b/types/activex-office/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-outlook/tslint.json b/types/activex-outlook/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-outlook/tslint.json +++ b/types/activex-outlook/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-powerpoint/tslint.json b/types/activex-powerpoint/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-powerpoint/tslint.json +++ b/types/activex-powerpoint/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-scripting/tslint.json b/types/activex-scripting/tslint.json index 2750cc0197..3224b40b8b 100644 --- a/types/activex-scripting/tslint.json +++ b/types/activex-scripting/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + "no-const-enum": false + } +} diff --git a/types/activex-stdole/tslint.json b/types/activex-stdole/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-stdole/tslint.json +++ b/types/activex-stdole/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-vbide/tslint.json b/types/activex-vbide/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-vbide/tslint.json +++ b/types/activex-vbide/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/activex-wia/tslint.json b/types/activex-wia/tslint.json index 2750cc0197..3224b40b8b 100644 --- a/types/activex-wia/tslint.json +++ b/types/activex-wia/tslint.json @@ -1 +1,6 @@ -{ "extends": "dtslint/dt.json" } \ No newline at end of file +{ + "extends": "dtslint/dt.json", + "rules": { + "no-const-enum": false + } +} diff --git a/types/activex-word/tslint.json b/types/activex-word/tslint.json index 4ac54521fe..3224b40b8b 100644 --- a/types/activex-word/tslint.json +++ b/types/activex-word/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "interface-name": [false] + "no-const-enum": false } -} \ No newline at end of file +} diff --git a/types/adal-angular/adal-angular-tests.ts b/types/adal-angular/adal-angular-tests.ts new file mode 100644 index 0000000000..272591d56e --- /dev/null +++ b/types/adal-angular/adal-angular-tests.ts @@ -0,0 +1,84 @@ +import AuthenticationContext, { + AuthenticationContextOptions, + TokenCallback, + UserCallback +} from "adal-angular"; + +const onLogin: TokenCallback = (errorDescription, idToken, error) => { + if (error) { + console.error(errorDescription, error); + return; + } + if (config.popUp) { + authenticationContext.getUser(onUser); + } +}; + +const onToken: TokenCallback = (errorDesc, token, error) => { + if (error) { + console.error(error); + return; + } + console.log('Making request with token:', token); +}; + +const onUser: UserCallback = (error, user) => { + if (error) { + console.error(error); + return; + } + acquireAnAccessToken(); +}; + +const acquireAnAccessToken = () => { + const resourceId = "https://graph.microsoft.net"; + authenticationContext.acquireToken( + resourceId, + (errorDesc, token, error) => { + if (error) { + if (config.popUp) { + authenticationContext.acquireTokenPopup( + resourceId, + null, + null, + onToken + ); + } else { + authenticationContext.acquireTokenRedirect( + resourceId, + null, + null + ); + } + } else { + onToken(errorDesc, token, error); + } + } + ); +}; + +const config: AuthenticationContextOptions = { + clientId: "7cee0f68-5051-41f6-9e45-80463d21d65d", + redirectUri: "http://localhost:16969/", + instance: "https://login.microsoftonline.com/", + tenant: "contoso.onmicrosoft.com", + extraQueryParameter: "nux=1", + correlationId: "123", + popUp: true, + cacheLocation: "localStorage", + callback: onLogin +}; + +const authenticationContext = new AuthenticationContext(config); + +if (authenticationContext.isCallback(window.location.hash)) { + authenticationContext.handleWindowCallback(); +} else if (authenticationContext.getCachedUser() == null) { + authenticationContext.login(); +} else { + acquireAnAccessToken(); +} + +setTimeout(() => { + authenticationContext.logOut(); +}, 60000); diff --git a/types/adal-angular/index.d.ts b/types/adal-angular/index.d.ts new file mode 100644 index 0000000000..00dc813ee8 --- /dev/null +++ b/types/adal-angular/index.d.ts @@ -0,0 +1,277 @@ +// Type definitions for adal-angular 1.0 +// Project: https://github.com/AzureAD/azure-activedirectory-library-for-js#readme +// Definitions by: Daniel Perez Alvarez +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export enum LoggingLevel { + ERROR = 0, + WARNING = 1, + INFO = 2, + VERBOSE = 3 +} + +export type RequestType = "LOGIN" | "RENEW_TOKEN" | "UNKNOWN"; + +export type ResponseType = "id_token token" | "token"; + +export interface RequestInfo { + /** + * Object comprising of fields such as id_token/error, session_state, state, e.t.c. + */ + parameters: any; + /** + * Request type. + */ + requestType: RequestType; + /** + * Whether state is valid. + */ + stateMatch: boolean; + /** + * Unique guid used to match the response with the request. + */ + stateResponse: string; + /** + * Whether `requestType` contains `id_token`, `access_token` or error. + */ + valid: boolean; +} + +export interface UserInfo { + /** + * Username assigned from UPN or email. + */ + userName: string; + /** + * Properties parsed from `id_token`. + */ + profile: any; +} + +export type TokenCallback = ( + errorDesc: string | null, + token: string, + error: any +) => void; + +export type UserCallback = (errorDesc: string | null, user: UserInfo) => void; + +export interface AuthenticationContextOptions { + /** + * Client ID assigned to your app by Azure Active Directory. + */ + clientId: string; + /** + * Endpoint at which you expect to receive tokens.Defaults to `window.location.href`. + */ + redirectUri: string; + /** + * Azure Active Directory instance. Defaults to `https://login.microsoftonline.com/`. + */ + instance?: string; + /** + * Your target tenant. Defaults to `common`. + */ + tenant?: string; + /** + * Query parameters to add to the authentication request. + */ + extraQueryParameter?: string; + /** + * Unique identifier used to map the request with the response. Defaults to RFC4122 version 4 guid (128 bits). + */ + correlationId?: string; + /** + * User defined function of handling the navigation to Azure AD authorization endpoint in case of login. + */ + displayCall?: (url: string) => void; + /** + * Set this to true to enable login in a popup winodow instead of a full redirect. Defaults to `false`. + */ + popUp?: boolean; + /** + * Set this to the resource to request on login. Defaults to `clientId`. + */ + loginResource?: string; + /** + * Set this to redirect the user to a custom login page. + */ + localLoginUrl?: string; + /** + * Redirects to start page after login. Defaults to `true`. + */ + navigateToLoginRequestUrl?: boolean; + /** + * Set this to redirect the user to a custom logout page. + */ + logOutUri?: string; + /** + * Redirects the user to postLogoutRedirectUri after logout. Defaults to `redirectUri`. + */ + postLogoutRedirectUri?: string; + /** + * Sets browser storage to either 'localStorage' or sessionStorage'. Defaults to `sessionStorage`. + */ + cacheLocation?: "localStorage" | "sessionStorage"; + /** + * Array of keywords or URIs. Adal will attach a token to outgoing requests that have these keywords or URIs. + */ + endpoints?: { [resource: string]: string }; + /** + * Array of keywords or URIs. Adal will not attach a token to outgoing requests that have these keywords or URIs. + */ + anonymousEndpoints?: string[]; + /** + * If the cached token is about to be expired in the expireOffsetSeconds (in seconds), Adal will renew the token instead of using the cached token. Defaults to 300 seconds. + */ + expireOffsetSeconds?: number; + /** + * The number of milliseconds of inactivity before a token renewal response from AAD should be considered timed out. Defaults to 6 seconds. + */ + loadFrameTimeout?: number; + /** + * Callback to be invoked when a token is acquired. + */ + callback?: TokenCallback; +} + +export default class AuthenticationContext { + constructor(options: AuthenticationContextOptions); + /** + * Initiates the login process by redirecting the user to Azure AD authorization endpoint. + */ + login(): void; + /** + * Returns whether a login is in progress. + */ + loginInProgress(): boolean; + /** + * Gets token for the specified resource from the cache. + * @param resource A URI that identifies the resource for which the token is requested. + */ + getCachedToken(resource: string): string; + /** + * If user object exists, returns it. Else creates a new user object by decoding `id_token` from the cache. + */ + getCachedUser(): UserInfo; + /** + * Adds the passed callback to the array of callbacks for the specified resource. + * @param resource A URI that identifies the resource for which the token is requested. + * @param expectedState A unique identifier (guid). + * @param callback The callback provided by the caller. It will be called with token or error. + */ + registerCallback( + expectedState: string, + resource: string, + callback: TokenCallback + ): void; + /** + * Acquires token from the cache if it is not expired. Otherwise sends request to AAD to obtain a new token. + * @param resource Resource URI identifying the target resource. + * @param callback The callback provided by the caller. It will be called with token or error. + */ + acquireToken(resource: string, callback: TokenCallback): void; + /** + * Acquires token (interactive flow using a popup window) by sending request to AAD to obtain a new token. + * @param resource Resource URI identifying the target resource. + * @param extraQueryParameters Query parameters to add to the authentication request. + * @param claims Claims to add to the authentication request. + * @param callback The callback provided by the caller. It will be called with token or error. + */ + acquireTokenPopup( + resource: string, + extraQueryParameters: string | null | undefined, + claims: string | null | undefined, + callback: TokenCallback + ): void; + /** + * Acquires token (interactive flow using a redirect) by sending request to AAD to obtain a new token. In this case the callback passed in the authentication request constructor will be called. + * @param resource Resource URI identifying the target resource. + * @param extraQueryParameters Query parameters to add to the authentication request. + * @param claims Claims to add to the authentication request. + */ + acquireTokenRedirect( + resource: string, + extraQueryParameters?: string | null, + claims?: string | null + ): void; + /** + * Redirects the browser to Azure AD authorization endpoint. + * @param urlNavigate URL of the authorization endpoint. + */ + promptUser(urlNavigate: string): void; + /** + * Clears cache items. + */ + clearCache(): void; + /** + * Clears cache items for a given resource. + * @param resource Resource URI identifying the target resource. + */ + clearCacheForResource(resource: string): void; + /** + * Redirects user to logout endpoint. After logout, it will redirect to `postLogoutRedirectUri` if added as a property on the config object. + */ + logOut(): void; + /** + * Calls the passed in callback with the user object or error message related to the user. + * @param callback The callback provided by the caller. It will be called with user or error. + */ + getUser(callback: UserCallback): void; + /** + * Checks if the URL fragment contains access token, id token or error description. + * @param hash Hash passed from redirect page. + */ + isCallback(hash: string): boolean; + /** + * Gets login error. + */ + getLoginError(): string; + /** + * Creates a request info object from the URL fragment and returns it. + */ + getRequestInfo(hash: string): RequestInfo; + /** + * Saves token or error received in the response from AAD in the cache. In case of `id_token`, it also creates the user object. + */ + saveTokenFromHash(requestInfo: RequestInfo): void; + /** + * Gets resource for given endpoint if mapping is provided with config. + * @param endpoint Resource URI identifying the target resource. + */ + getResourceForEndpoint(resource: string): string; + /** + * This method must be called for processing the response received from AAD. It extracts the hash, processes the token or error, saves it in the cache and calls the callbacks with the result. + * @param hash Hash fragment of URL. Defaults to `window.location.hash`. + */ + handleWindowCallback(hash?: string): void; + + /** + * Checks the logging Level, constructs the log message and logs it. Users need to implement/override this method to turn on logging. + * @param level Level can be set 0, 1, 2 and 3 which turns on 'error', 'warning', 'info' or 'verbose' level logging respectively. + * @param message Message to log. + * @param error Error to log. + */ + log(level: LoggingLevel, message: string, error: any): void; + /** + * Logs messages when logging level is set to 0. + * @param message Message to log. + * @param error Error to log. + */ + error(message: string, error: any): void; + /** + * Logs messages when logging level is set to 1. + * @param message Message to log. + */ + warn(message: string): void; + /** + * Logs messages when logging level is set to 2. + * @param message Message to log. + */ + info(message: string): void; + /** + * Logs messages when logging level is set to 3. + * @param message Message to log. + */ + verbose(message: string): void; +} diff --git a/types/egg/tsconfig.json b/types/adal-angular/tsconfig.json similarity index 90% rename from types/egg/tsconfig.json rename to types/adal-angular/tsconfig.json index 3c2ca61db1..9052e3fc04 100644 --- a/types/egg/tsconfig.json +++ b/types/adal-angular/tsconfig.json @@ -1,8 +1,8 @@ { "compilerOptions": { "module": "commonjs", - "target": "es2017", "lib": [ + "dom", "es6" ], "noImplicitAny": true, @@ -19,6 +19,6 @@ }, "files": [ "index.d.ts", - "egg-tests.ts" + "adal-angular-tests.ts" ] } \ No newline at end of file diff --git a/types/better-scroll/tslint.json b/types/adal-angular/tslint.json similarity index 100% rename from types/better-scroll/tslint.json rename to types/adal-angular/tslint.json diff --git a/types/adal/adal-angular.d.ts b/types/adal/adal-angular.d.ts deleted file mode 100644 index 28d9682f19..0000000000 --- a/types/adal/adal-angular.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -// Type definitions for ADAL.JS 1.0.8 -// Project: https://github.com/AzureAD/azure-activedirectory-library-for-js -// Definitions by: mmaitre314 -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - -/// - -declare namespace adal { - - interface AdalAuthenticationServiceProvider { - init(configOptions: Config, httpProvider: angular.IHttpProvider): void; - } - - interface UserInfo { - isAuthenticated: boolean, - userName: string, - loginError: string, - profile: any - } - - interface AdalAuthenticationService { - - config: Config; - userInfo: UserInfo, - - login(): void; - loginInProgress(): boolean; - logOut(): void; - getCachedToken(resource: string): string; - acquireToken(resource: string): angular.IPromise; - getUser(): angular.IPromise; - getResourceForEndpoint(endpoint: string): string, - clearCache(): void; - clearCacheForResource(resource: string): void; - info(message: string): void; - verbose(message: string): void; - } - -} \ No newline at end of file diff --git a/types/adal/index.d.ts b/types/adal/index.d.ts deleted file mode 100644 index a51933b734..0000000000 --- a/types/adal/index.d.ts +++ /dev/null @@ -1,179 +0,0 @@ -// Type definitions for ADAL.JS 1.0.14 -// Project: https://github.com/AzureAD/azure-activedirectory-library-for-js -// Definitions by: mmaitre314 -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -declare var AuthenticationContext: adal.AuthenticationContextStatic; -declare var Logging: adal.Logging; - -declare module 'adal' { - export const AuthenticationContext: adal.AuthenticationContextStatic; - export const Logging: adal.Logging; -} - -declare namespace adal { - - interface Config { - tenant?: string; - clientId: string; - redirectUri?: string; - instance?: string; - endpoints?: any; // If you need to send CORS api requests. - popUp?: boolean; - localLoginUrl?: string; - displayCall?: (urlNavigate: string) => any; - postLogoutRedirectUri?: string; // redirect url after succesful logout operation - cacheLocation?: string; - anonymousEndpoints?: string[]; - expireOffsetSeconds?: number; - correlationId?: string; - loginResource?: string; - resource?: string; - extraQueryParameter?: string; - navigateToLoginRequestUrl?: boolean; - logOutUri?: string; - isAngular?: boolean; - } - - interface User { - userName: string; - profile: any; - } - - interface RequestInfo { - valid: boolean; - parameters: any; - stateMatch: boolean; - stateResponse: string; - requestType: string; - } - - interface Logging { - log: (message: string) => void; - level: LoggingLevel; - } - - enum LoggingLevel { - ERROR = 0, - WARNING = 1, - INFO = 2, - VERBOSE = 3 - } - - interface AuthenticationContextStatic { - new (config: Config): AuthenticationContext; - } - - interface AuthenticationContext { - - instance: string; - config: Config; - - /** - * Gets initial Idtoken for the app backend - * Saves the resulting Idtoken in localStorage. - */ - login(): void; - - /** - * Indicates whether login is in progress now or not. - */ - loginInProgress(): boolean; - - /** - * Gets token for the specified resource from local storage cache - * @param {string} resource A URI that identifies the resource for which the token is valid. - * @returns {string} token if exists and not expired or null - */ - getCachedToken(resource: string): string; - - /** - * Retrieves and parse idToken from localstorage - * @returns {User} user object - */ - getCachedUser(): User; - - registerCallback(expectedState: string, resource: string, callback: (message: string, token: string) => any): void; - - /** - * Acquire token from cache if not expired and available. Acquires token from iframe if expired. - * @param {string} resource ResourceUri identifying the target resource - * @param {requestCallback} callback - */ - acquireToken(resource: string, callback: (message: string, token: string) => any): void; - - /** - * Redirect the Browser to Azure AD Authorization endpoint - * @param {string} urlNavigate The authorization request url - */ - promptUser(urlNavigate: string): void; - - /** - * Clear cache items. - */ - clearCache(): void; - - /** - * Clear cache items for a resource. - */ - clearCacheForResource(resource: string): void; - - /** - * Logout user will redirect page to logout endpoint. - * After logout, it will redirect to post_logout page if provided. - */ - logOut(): void; - - /** - * Gets a user profile - * @param {requestCallback} callback - The callback that handles the response. - */ - getUser(callback: (message: string, user?: User) => any): void; - - /** - * Checks if hash contains access token or id token or error_description - * @param {string} hash - Hash passed from redirect page - * @returns {Boolean} - */ - isCallback(hash: string): boolean; - - /** - * Gets login error - * @returns {string} error message related to login - */ - getLoginError(): string; - - /** - * Gets requestInfo from given hash. - * @returns {RequestInfo} for appropriate hash. - */ - getRequestInfo(hash: string): RequestInfo; - - /** - * Saves token from hash that is received from redirect. - */ - saveTokenFromHash(requestInfo: RequestInfo): void; - - /** - * Gets resource for given endpoint if mapping is provided with config. - * @param {string} endpoint - API endpoint - * @returns {string} resource for this API endpoint - */ - getResourceForEndpoint(endpoint: string): string; - - /** - * Handles redirection after login operation. - * Gets access token from url and saves token to the (local/session) storage - * or saves error in case unsuccessful login. - */ - handleWindowCallback(): void; - - log(level: number, message: string, error: any): void; - error(message: string, error: any): void; - warn(message: string): void; - info(message: string): void; - verbose(message: string): void; - } - -} diff --git a/types/adal/test/angular.ts b/types/adal/test/angular.ts deleted file mode 100644 index 64ab64c898..0000000000 --- a/types/adal/test/angular.ts +++ /dev/null @@ -1,46 +0,0 @@ - - -// Code samples from: -// - https://github.com/AzureAD/azure-activedirectory-library-for-js -// - https://github.com/Azure-Samples/active-directory-angularjs-singlepageapp - -// Variable provided by AngularJS -var $httpProvider: angular.IHttpProvider = null; -var adalAuthenticationServiceProvider: adal.AdalAuthenticationServiceProvider = null; -var adalAuthenticationService: adal.AdalAuthenticationService = null; - -var endpoints = { - "https://yourhost/api": "b6a68585-5287-45b2-ba82-383ba1f60932", -}; -adalAuthenticationServiceProvider.init({ - tenant: "52d4b072-9470-49fb-8721-bc3a1c9912a1", - clientId: "e9a5a8b6-8af7-4719-9821-0deef255f68e", - endpoints: endpoints - }, - $httpProvider -); - -adalAuthenticationServiceProvider.init({ - clientId: "e9a5a8b6-8af7-4719-9821-0deef255f68e" - }, - $httpProvider -); - -adalAuthenticationServiceProvider.init( - { - clientId: 'cb68f72f...', - cacheLocation: 'localStorage' - }, - $httpProvider // pass http provider to inject request interceptor to attach tokens -); - -adalAuthenticationServiceProvider.init({ - tenant: 'Enter your tenant name here e.g. contoso.onmicrosoft.com', - clientId: 'Enter your client ID here e.g. e9a5a8b6-8af7-4719-9821-0deef255f68e', - extraQueryParameter: 'nux=1' - }, - $httpProvider -); - -adalAuthenticationService.login(); -adalAuthenticationService.logOut(); diff --git a/types/adal/test/index.ts b/types/adal/test/index.ts deleted file mode 100644 index 32a6715222..0000000000 --- a/types/adal/test/index.ts +++ /dev/null @@ -1,24 +0,0 @@ - - -var endpoints = { - "https://yourhost/api": "b6a68585-5287-45b2-ba82-383ba1f60932", -}; - -var config : adal.Config = { - tenant: "52d4b072-9470-49fb-8721-bc3a1c9912a1", // Optional by default, it sends common - clientId: "e9a5a8b6-8af7-4719-9821-0deef255f68e", // Required - endpoints: endpoints // If you need to send CORS api requests. -}; - -var auth = new AuthenticationContext(config); - -Logging.log = (message: string) => { - console.log(message); -} - -Logging.level = 4; - -auth.info("Logging message"); - -var userName: string = auth.getCachedUser().userName;var postLogoutRedirectUrl = auth.config.postLogoutRedirectUri; -var isValidRequest = auth.getRequestInfo('hash').valid; \ No newline at end of file diff --git a/types/adal/tsconfig.json b/types/adal/tsconfig.json deleted file mode 100644 index a024918b3a..0000000000 --- a/types/adal/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "adal-angular.d.ts", - "test/index.ts", - "test/angular.ts" - ] -} \ No newline at end of file diff --git a/types/adone/glosses/collections.d.ts b/types/adone/glosses/collections.d.ts index cba89c3cf2..178921136d 100644 --- a/types/adone/glosses/collections.d.ts +++ b/types/adone/glosses/collections.d.ts @@ -1652,6 +1652,7 @@ declare namespace adone { * Ends the stream */ end(chunk?: Buffer): void; + end(chunk?: () => void): void; /** * Returns the byte at the specified index diff --git a/types/alexa-sdk/index.d.ts b/types/alexa-sdk/index.d.ts index 02def0b4d6..56278df11c 100644 --- a/types/alexa-sdk/index.d.ts +++ b/types/alexa-sdk/index.d.ts @@ -1,14 +1,15 @@ -// Type definitions for Alexa SDK for Node.js 1.0 +// Type definitions for Alexa SDK for Node.js 1.1 // Project: https://github.com/alexa/alexa-skills-kit-sdk-for-nodejs // Definitions by: Pete Beegle // Huw // pascalwhoop // Ben // rk-7 +// Alex Malcoci // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 -export function handler(event: RequestBody, context: Context, callback?: (err: any, response: any) => void): AlexaObject; +export function handler(event: RequestBody, context: Context, callback?: (err: any, response: any) => void): AlexaObject; export function CreateStateHandler(state: string, obj: any): any; export let StateString: string; export type ConfirmationStatuses = "NONE" | "DENIED" | "CONFIRMED"; @@ -23,6 +24,8 @@ export type CardType = "Standard" | "Simple" | "LinkAccount" | "AskForPermission export type HintType = "PlainText"; export type DirectiveTypes = "AudioPlayer.Play" | "AudioPlayer.Stop" | "AudioPlayer.ClearQueue" | "Display.RenderTemplate" | "Hint" | "VideoApp.Launch"; export type TextContentType = "PlainText" | "RichText"; +export type MediaErrorType = "MEDIA_ERROR_UNKNOWN" | "MEDIA_ERROR_INVALID_REQUEST" | "MEDIA_ERROR_SERVICE_UNAVAILABLE" | "MEDIA_ERROR_INTERNAL_SERVER_ERROR" | "MEDIA_ERROR_INTERNAL_DEVICE_ERROR"; +export type SystemErrorType = "INVALID_RESPONSE" | "DEVICE_COMMUNICATION_ERROR" | "INTERNAL_ERROR"; //#region Types export interface CardImage { @@ -84,7 +87,7 @@ export interface Template { listItems?: ListItem[]; } -export interface AlexaObject extends Handler { +export interface AlexaObject extends Handler { _event: any; _context: any; _callback: any; @@ -98,11 +101,11 @@ export interface AlexaObject extends Handler { execute: () => void; } -export interface Handlers { +export interface Handlers { [intent: string]: (this: Handler) => void; } -export interface Handler { +export interface Handler { on: any; emit(event: string, ...args: any[]): boolean; emitWithState: any; @@ -141,7 +144,7 @@ export interface System { apiEndpoint: string; application: Application; device: any; - user: any; + user: SessionUser; } export interface AudioPlayer { token: string; @@ -151,10 +154,32 @@ export interface AudioPlayer { */ playerActivity: AudioPlayerActivity; } -export interface RequestBody { + +export interface Display { + token: string; +} + +export interface Device { + deviceId: string; + supportedInterfaces: DeviceInterfaces; +} + +export interface DeviceInterfaces { + AudioPlayer: any; + Display: any; +} + +export interface RequestContext { + AudioPlayer?: AudioPlayer; + Display?: Display; + System: System; +} + +export interface RequestBody { version: string; session: Session; request: T; + context: RequestContext; } export interface Session { @@ -187,8 +212,94 @@ export interface SessionEndedRequest extends Request { reason?: string; } +export interface AudioPlayerPlaybackRequest extends Request { + token: string; + offsetInMilliseconds: number; +} + +export interface AudioPlayerPlaybackFailedRequest extends Request { + token: string; + error: MediaError; + currentPlaybackState: AudioPlayer; +} + +export interface MediaError { + type: MediaErrorType; + message: string; +} + +export interface SystemExceptionEncounteredRequest extends Request { + error: SystemError; + cause: ErrorCause; +} + +export interface SystemError { + type: SystemErrorType; + message: string; +} + +export interface ErrorCause { + requestId: string; +} + +export interface SkillAccountRequest extends Request { + body: SkillAccountBody; +} + +export interface SkillAccountBody { + accessToken: string; +} + +export interface SkillPermissionRequest extends Request { + body: SkillPermissionBody; +} + +export interface SkillPermissionBody { + acceptedPermissions: PermissionScope[]; +} + +export interface PermissionScope { + scope: string; +} + +export interface ListEventRequest extends Request { + body: ListEventBody; +} + +export interface ListEventBody { + listId: string; + listItemIds?: string[]; +} + export interface Request { - type: "LaunchRequest" | "IntentRequest" | "SessionEndedRequest"; + type: "LaunchRequest" + | "IntentRequest" + | "SessionEndedRequest" + + | "System.ExceptionEncountered" + + | "AudioPlayer.PlaybackStarted" + | "AudioPlayer.PlaybackFinished" + | "AudioPlayer.PlaybackStopped" + | "AudioPlayer.PlaybackNearlyFinished" + + | "PlaybackController.NextCommandIssued" + | "PlaybackController.PauseCommandIssued" + | "PlaybackController.PlayCommandIssued" + | "PlaybackController.PreviousCommandIssued" + + | "AlexaSkillEvent.SkillAccountLinked" + | "AlexaSkillEvent.SkillEnabled" + | "AlexaSkillEvent.SkillDisabled" + | "AlexaSkillEvent.SkillPermissionAccepted" + | "AlexaSkillEvent.SkillPermissionChanged" + + | "AlexaHouseholdListEvent.ListCreated" + | "AlexaHouseholdListEvent.ListUpdated" + | "AlexaHouseholdListEvent.ListDeleted" + | "AlexaHouseholdListEvent.ItemsCreated" + | "AlexaHouseholdListEvent.ItemsUpdated" + | "AlexaHouseholdListEvent.ItemsDeleted"; requestId: string; timestamp: string; locale?: string; @@ -296,7 +407,7 @@ export interface ListItemObject { /** * item version (Positive integer) */ - version?: number | string; + version: number; /** * created time (ISO 8601 time format with time zone) */ @@ -348,6 +459,38 @@ export interface ListObject { * Items that belong to this list. */ items: ListItemObject[]; + + next?: ListLinks; +} + +export interface ListLinks { + next: string; +} + +export interface ListCollection { + lists: ListObject[]; +} + +export interface CreateListParams { + name: string; + state: "active"; +} + +export interface UpdateListParams { + name: string; + state: ListObjectState; + version: number; +} + +export interface CreateListItemParams { + value: string; + status: ListItemObjectStatus; +} + +export interface UpdateListItemParams { + value: string; + status: ListItemObjectStatus; + version: number; } //#endregion @@ -545,7 +688,7 @@ export namespace templateBuilders { //#region services export namespace services { - interface ApiClient { + class ApiClient { /** * Make a POST API call to the specified uri with headers and optional body * @param uri http(s?) endpoint to call @@ -582,7 +725,7 @@ export namespace services { * Create an instance of DeviceAddressService * @param [apiClient=new ApiClient()] ApiClient */ - constructor(apiClient: ApiClient); + constructor(apiClient?: ApiClient); /** * Get full address information from Alexa Device Address API @@ -607,7 +750,7 @@ export namespace services { * Creates an instance of DirectiveService. * @param [apiClient=new ApiClient()] ApiClient */ - constructor(apiClient: ApiClient); + constructor(apiClient?: ApiClient); /** * Send the specified directiveObj to Alexa directive service @@ -624,7 +767,7 @@ export namespace services { * Create an instance of ListManagementService * @param apiClient apiClient */ - constructor(apiClient: ApiClient); + constructor(apiClient?: ApiClient); /** * Set apiEndpoint address, default is "https://api.amazonalexa.com" @@ -642,80 +785,80 @@ export namespace services { /** * Retrieve the metadata for all customer lists, including the customer's default lists * @param token bearer token for list management permission - * @returns Promise + * @returns Promise */ - getListsMetadata(token: string): Promise; + getListsMetadata(token: string): Promise; /** * Create a custom list. The new list name must be different than any existing list name - * @param listObject listObject + * @param params params * @param token bearer token for list management permission - * @returns Promise + * @returns Promise */ - createList(listObject: ListObject, token: string): Promise; + createList(params: CreateListParams, token: string): Promise; /** * Retrieve list metadata including the items in the list with requested status * @param listId unique Id associated with the list * @param itemStatus itemsStatus can be either "active" or "completed" * @param token bearer token for list management permission - * @returns Promise + * @returns Promise */ - getList(listId: string, itemStatus: ListItemObjectStatus, token: string): Promise; + getList(listId: string, itemStatus: ListItemObjectStatus, token: string): Promise; /** * Update a custom list. Only the list name or state can be updated * @param listId unique Id associated with the list - * @param listObject listObject + * @param params params * @param token bearer token for list management permission * @returns Promise */ - updateList(listId: string, listObject: ListObject, token: string): Promise; + updateList(listId: string, params: UpdateListParams, token: string): Promise; /** * Delete a custom list * @param listId unique Id associated with the list * @param token bearer token for list management permission - * @returns Promise + * @returns Promise */ - deleteList(listId: string, token: string): Promise; + deleteList(listId: string, token: string): Promise; /** * Create an item in an active list or in a default list * @param listId unique Id associated with the list - * @param listItemObject listItemObject + * @param params params * @param token bearer token for list management permission - * @returns Promise + * @returns Promise */ - createListItem(listId: string, listItemObject: ListItemObject, token: string): Promise; + createListItem(listId: string, params: CreateListItemParams, token: string): Promise; /** * Retrieve single item within any list by listId and itemId * @param listId unique Id associated with the list * @param itemId unique Id associated with the item * @param token bearer token for list management permission - * @returns Promise + * @returns Promise */ - getListItem(listId: string, itemId: string, token: string): Promise; + getListItem(listId: string, itemId: string, token: string): Promise; /** * Update an item value or item status * @param listId unique Id associated with the list * @param itemId unique Id associated with the item - * @param listItemObject listItemObject + * @param params params * @param token bearer token for list management permission - * @returns Promise + * @returns Promise */ - updateListItem(listId: string, itemId: string, listItemObject: ListItemObject, token: string): Promise; + updateListItem(listId: string, itemId: string, params: UpdateListItemParams, token: string): Promise; /** * Delete an item in the specified list * @param listId unique Id associated with the list * @param itemId unique Id associated with the item * @param token bearer token for list management permission - * @returns Promise + * @returns Promise */ - deleteListItem(listId: string, itemId: string, token: string): Promise; + deleteListItem(listId: string, itemId: string, token: string): Promise; } } //#endregion diff --git a/types/algoliasearch/index.d.ts b/types/algoliasearch/index.d.ts index 49e66d2b59..5c7026d70e 100644 --- a/types/algoliasearch/index.d.ts +++ b/types/algoliasearch/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for algoliasearch-client-js 3.24.6 +// Type definitions for algoliasearch-client-js 3.24.8 // Project: https://github.com/algolia/algoliasearch-client-js // Definitions by: Baptiste Coquelle // Haroen Viaene @@ -192,14 +192,14 @@ declare namespace algoliasearch { * @param cb(err, res) * https://github.com/algolia/algoliasearch-client-js#custom-batch---batch */ - batch(action: AlgoliaAction, cb: (err: Error, res: any) => void): void; + batch(action: AlgoliaAction[], cb: (err: Error, res: any) => void): void; /** * Perform multiple operations with one API call to reduce latency * @param action * return {Promise} * https://github.com/algolia/algoliasearch-client-js#custom-batch---batch */ - batch(action: AlgoliaAction): Promise; + batch(action: AlgoliaAction[]): Promise; /** * Lists global API Keys * @param cb(err, res) @@ -376,7 +376,7 @@ declare namespace algoliasearch { * @param cb(err, res) * https://github.com/algolia/algoliasearch-client-js#add-objects---addobjects */ - addObjects(objects: [{}], cb: (err: Error, res: any) => void): void; + addObjects(objects: {}[], cb: (err: Error, res: any) => void): void; /** * Add or replace a specific object * @param object @@ -405,7 +405,7 @@ declare namespace algoliasearch { * https://github.com/algolia/algoliasearch-client-js#update-objects---saveobjects */ partialUpdateObjects( - objects: [{}], + objects: {}[], cb: (err: Error, res: any) => void ): void; /** @@ -701,7 +701,7 @@ declare namespace algoliasearch { * return {Promise} * https://github.com/algolia/algoliasearch-client-js#add-objects---addobjects */ - addObjects(objects: [{}]): Promise; + addObjects(objects: {}[]): Promise; /** * Add or replace a specific object * @param object @@ -729,7 +729,7 @@ declare namespace algoliasearch { * return {Promise} * https://github.com/algolia/algoliasearch-client-js#update-objects---saveobjects */ - partialUpdateObjects(objects: [{}]): Promise; + partialUpdateObjects(objects: {}[]): Promise; /** * Delete a specific object * @param objectID @@ -1387,6 +1387,12 @@ Interface describing options available for gettings the logs * https://github.com/algolia/algoliasearch-client-js#unretrievableattributes */ unretrievableAttributes?: string[]; + /** + * List of attributes you want to use for textual search + * default: [] + * https://github.com/algolia/algoliasearch-client-js#searchableattributes + */ + searchableAttributes?: string[]; /** * A string that contains the list of attributes you want to retrieve in order to minimize the size of the JSON answer * default: * @@ -1602,7 +1608,7 @@ Interface describing options available for gettings the logs * default: [] * https://github.com/algolia/algoliasearch-client-js#altcorrections */ - altCorrections?: [{}]; + altCorrections?: {}[]; /** * Configure the precision of the proximity ranking criterion * default: 1 diff --git a/types/amcharts/AmAngularGauge.d.ts b/types/amcharts/AmAngularGauge.d.ts new file mode 100644 index 0000000000..d4199f83cd --- /dev/null +++ b/types/amcharts/AmAngularGauge.d.ts @@ -0,0 +1,629 @@ +import AmBalloon from "./AmBalloon"; +import AmChart from "./AmChart"; +import AmLegend from "./AmLegend"; +import ExportSettings from "./ExportSettings"; +import GaugeArrow from "./GaugeArrow"; +import GaugeAxis from "./GaugeAxis"; +import Label from "./Label"; +import Title from "./Title"; + +/** + * AmAngularGauge Extension for AmChart to create gauge charts. + */ +export default class AmAngularGauge extends AmChart { + /** + * When enabled, chart adds aria-label attributes to columns, bullets or map objects. + * You can control values of these labels using properties like accessibleLabel of AmGraph. + * Note, not all screen readers support these tags. + * We tested this mostly with NVDA Screen reader. + * WAI-ARIA is now official W3 standard, so in future more readers will handle this well. + * We will be improving accessibility on our charts, so we would be glad to hear your feedback. + * @default true + */ + accessible: boolean; + + /** + * Description which will be added to node of SVG element. + * Most of the screen readers will read this description. + */ + accessibleDescription: string; + + /** + * Description which is added to of a SVG element. Some of the screen readers will read this description. + */ + accessibleTitle: string; + + /** + * Specifies, if class names should be added to chart elements. + * @default false + */ + addClassNames: boolean; + + /** + * Uses the whole space of the canvas to draw the gauge. + * @default true + */ + adjustSize: boolean; + + /** + * Array of Labels. Example of label object, with all possible properties: + * { + * "x": 20, + * "y": 20, + * "text": "this is label", + * "align": "left", + * "size": 12, + * "color": "#CC0000", + * "alpha": 1, + * "rotation": 0, + * "bold": true, + * "url": "http://www.amcharts.com" + * } + * @default [] + */ + allLabels: [Label]; + + /** + * Array of arrows. + */ + arrows: [GaugeArrow]; + + /** + * If you set it to true the chart will automatically monitor changes of display style of chart’s container + * (or any of it’s parents) and will render chart correctly if it is changed from none to block. + * We recommend setting it to true if you change this style at a run time, as it affects performance a bit. + * @default false + */ + autoDisplay: boolean; + + /** + * Set this to false if you don't want chart to resize itself whenever its parent container size changes. + * @default true + */ + autoResize: boolean; + + /** + * If you set it to true and your chart div (or any of the parent div) has css scale applied, + * the chart will position mouse at a correct position. + * Default value is false because this operation consumes some CPU and quite a + * few people are using css transfroms. + * @default false + */ + autoTransform: boolean; + + /** + * Array of axes. + * @default [GaugeAxis] + */ + axes: [GaugeAxis]; + + /** + * Opacity of background. Set it to >0 value if you want backgroundColor to work. + * However we recommend changing div's background-color style for changing background color. + * @default 0 + */ + backgroundAlpha: number; + + /** + * Background color. You should set backgroundAlpha to >0 value in order background to be visible. + * We recommend setting background color directly on a chart's DIV instead of using this property. + * @default #FFFFFF + */ + backgroundColor: string; + + /** + * The chart creates AmBalloon class itself. + * If you want to customize balloon, get balloon instance using this property, + * and then change balloon's properties. + * @default AmBalloon + */ + balloon: AmBalloon; + + /** + * Opacity of chart's border. Value range is 0 - 1. + * @default 0 + */ + borderAlpha: number; + + /** + * Color of chart's border. You should set borderAlpha >0 in order border to be visible. + * We recommend setting border color directly on a chart's DIV instead of using this property. + * @default #000000 + */ + borderColor: string; + + /** + * This prefix is added to all class names which are added to all visual elements of a chart + * in case addClassNames is set to true. + * @default amcharts + */ + classNamePrefix: string; + + /** + * In case you use gauge to create a clock, set this to true. + * @default false + */ + clockWiseOnly: boolean; + + /** + * Text color. + * @default #000000 + */ + color: string; + + /** + * Non-commercial version only. Specifies position of link to amCharts site. + * Allowed values are: top-left, top-right, bottom-left and bottom-right. + * @default 'top - left' + */ + creditsPosition: string; + + /** + * A config object for Data Loader plugin. Please refer to the following page for more information. + */ + dataLoader: object; + + /** + * Array of data objects, for example: + * [ + * {country:"US", value:524}, + * {country:"UK", value:624}, + * {country:"Lithuania", value:824} + * ] + * You can have any number of fields and use any field names. + * In case of AmMap, data provider should be MapData object. + * The data set data. + * Important: if you are using date/time-based category axis, the data points needs to come pre-ordered + * in ascending order. Data with incorrect order might result in visual and functional glitches on the chart. + */ + dataProvider: [object]; + + /** + * Decimal separator. + * @default "." + */ + decimalSeparator: string; + + /** + * Using this property you can add any additional information to SVG, like SVG filters or clip paths. + * The structure of this object should be identical to XML structure of a object you are adding, + * only in JSON format. + */ + defs: object; + + /** + * Export config. Specifies how export to image/data export/print/annotate menu will look and behave. + * You can find a lot of examples in amcharts/plugins/export folder. More details can be found here. + */ + export: ExportSettings; + + /** + * Gauge face opacity. + * @default 0 + */ + faceAlpha: number; + + /** + * Gauge face border opacity. + * @default 0 + */ + faceBorderAlpha: number; + + /** + * Gauge face border color. + * @default #555555 + */ + faceBorderColor: string; + + /** + * Gauge face border width. + * @default 1 + */ + faceBorderWidth: number; + + /** + * Gauge face color, requires faceAlpha > 0 + * @default #FAFAFA + */ + faceColor: string; + + /** + * Gauge face image-pattern. + * Example: {"url":"../amcharts/patterns/black/pattern1.png", "width":4, "height":4} + * fontFamily String Verdana Font family. + * fontSize Number 11 Font size. + */ + facePattern: object; + + /** + * Gauge's horizontal position in pixel, origin is the center. Centered by default. + */ + gaugeX: number; + + /** + * Gauge's vertical position in pixel, origin is the center. Centered by default. + */ + gaugeY: number; + + /** + * If you set this to true, the lines of the chart will be distorted and will produce hand-drawn effect. + * Try to adjust chart.handDrawScatter and chart.handDrawThickness properties for a more scattered result. + * @default false + */ + handDrawn: boolean; + + /** + * Defines by how many pixels hand-drawn line (when handDrawn is set to true) will fluctuate. + * @default 2 + */ + handDrawScatter: number; + + /** + * Defines by how many pixels line thickness will fluctuate (when handDrawn is set to true). + * @default 1 + */ + handDrawThickness: number; + + /** + * Time, in milliseconds after which balloon is hidden if the user rolls-out of the object. + * Might be useful for AmMap to avoid balloon flickering while moving mouse over the areas. + * Note, this is not duration of fade-out. Duration of fade-out is set in AmBalloon class. + * @default 150 + */ + hideBalloonTime: number; + + /** + * Allows changing language easily. + * Note, you should include language js file from amcharts/lang or ammap/lang folder and then use + * variable name used in this file, like chart.language = "de"; Note, for maps this works differently - + * you use language only for country names, as there are no other strings in the maps application. + */ + language: string; + + /** + * Legend of a chart. + */ + legend: AmLegend; + + /** + * Read-only. Reference to the div of the legend. + */ + legendDiv: HTMLElement; + + /** + * You can add listeners of events using this property. + * Example: listeners = [{"event":"dataUpdated", "method":handleEvent}]; + * @default [Object] + */ + listeners: [object]; + + /** + * Bottom spacing between chart and container. + * @default 10 + */ + marginBottom: number; + + /** + * Left-hand spacing between chart and container. + * @default 10 + */ + marginLeft: number; + + /** + * Right-hand spacing between chart and container. + * @default 10 + */ + marginRight: number; + + /** + * Top spacing between chart and container. + * @default 10 + */ + marginTop: number; + + /** + * Minimum radius of a gauge. + * @default 10 + */ + minRadius: number; + + /** + * This setting affects touch-screen devices only. + * If a chart is on a page, and panEventsEnabled are set to true, the page won't move if + * the user touches the chart first. If a chart is big enough and occupies all the screen of your touch device, + * the user won’t be able to move the page at all. + * If you think that selecting/panning the chart or moving/pinching the map is a primary purpose of your users, + * you should set panEventsEnabled to true, otherwise - false. + * @default true + */ + panEventsEnabled: boolean; + + /** + * Specifies absolute or relative path to amCharts files, i.e."amcharts/". (where all.js files are located) + * If relative URLs are used, they will be relative to the current web page, displaying the chart. + * You can also set path globally, using global JavaScript variable AmCharts_path.If this variable is set, + * and "path" is not set in chart config, the chart will assume the path from the global variable. + * This allows setting amCharts path globally. + * I.e.: + * let AmCharts_path = "/libs/amcharts/"; + * "path" parameter will be used by the charts to locate it's files, like images, plugins or patterns. + * @default 'amcharts/' + */ + path: string; + + /** + * Specifies path to the folder where images like resize grips, lens and similar are. + * IMPORTANT: Since V3.14.12, you should use "path" to point to amCharts directory instead. + * The "pathToImages" will be automatically set and does not need to be in the chart config, + * unless you keep your images separately from other amCharts files. + */ + pathToImages: string; + + /** + * Precision of percent values. -1 means percent values won't be rounded at all and show as they are. + * @default 2 + */ + percentPrecision: number; + + /** + * Precision of values. -1 means values won't be rounded at all and show as they are. + * @default -1 + */ + precision: number; + + /** + * Prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc. + * Prefixes are used on value axes and in the legend. + * To enable prefixes, set usePrefixes property to true. + * @default [ + * {"number": 1e+3, "prefix": "k"}, + * {"number": 1e+6, "prefix": "M"}, + * {"number": 1e+9, "prefix": "G"}, + * {"number": 1e+12, "prefix": "T"}, + * {"number": 1e+15, "prefix": "P"}, + * {"number": 1e+18, "prefix": "E"}, + * {"number": 1e+21, "prefix": "Z"}, + * {"number": 1e+24, "prefix": "Y"} + * ] + */ + prefixesOfBigNumbers: [{ number: number; prefix: string }]; + + /** + * Prefixes which are used to make small numbers shorter: 2μ instead of 0.000002, etc. + * Prefixes are used on value axes and in the legend. + * To enable prefixes, set usePrefixes property to true. + * @default [ + * {"number": 1e-24, "prefix": "y"}, + * {"number": 1e-21, "prefix": "z"}, + * {"number": 1e-18, "prefix": "a"}, + * {"number": 1e-15, "prefix": "f"}, + * {"number": 1e-12, "prefix": "p"}, + * {"number": 1e-9, "prefix": "n"}, + * {"number": 1e-6, "prefix": "μ"}, + * {"number": 1e-3, "prefix": "m"} + * ] + */ + prefixesOfSmallNumbers: [{ number: number; prefix: string }]; + + /** + * If processTimeout is > 0, 1000 data items will be parsed at a time, + * then the chart will make pause and continue parsing data until it finishes. + * @default 1000 + */ + processCount: number; + + /** + * If you set it to 1 millisecond or some bigger value, chart will be built in chunks instead of all at once. + * This is useful if you work with a lot of data and the initial build of the chart takes a lot of time, + * which freezes the whole web application by not allowing other processes to do their + * job while the chart is busy. + * @default 0 + */ + processTimeout: number; + + /** + * A config object for Responsive plugin. Please refer to the following page for more information. + */ + responsive: object; + + /** + * Duration of arrow animation. + * @default 1 + */ + startDuration: number; + + /** + * Transition effect of the arrows, possible effects: easeOutSine, easeInSine, elastic, bounce. + * @default easeInSine + */ + startEffect: string; + + /** + * Charts will use SVG icons (some are loaded from images folder and some are drawn inline) + * if browser supports SVG. his makes icons look good on retina displays on all resolutions. + * @default true + */ + svgIcons: boolean; + + /** + * Charts which require gestures like swipe (charts with scrollbar/cursor) or pinch (maps) used to prevent + * regular page scrolling and could result page to stick to the same spot if the chart occupied whole screen. + * Now, in order these gestures to start working user has to touch the chart/maps once. + * Regular touch events like touching on the bar/slice/map area do not require the first tap and will + * show balloons and perform other tasks as usual. + * If you have a map or chart which occupies full screen and your page does not require scrolling, + * set tapToActivate to false – this will bring old behavior back. + * @default true + */ + tapToActivate: boolean; + + /** + * Theme of a chart. Config files of themes can be found in amcharts/themes/ folder. + * More info about using themes. + * @default none + */ + theme: string; + + /** + * Thousands separator. + * @default , + */ + thousandsSeparator: string; + + /** + * Array of Title objects. + * @default [] + */ + titles: [Title]; + + /** + * If you set it to 200 (milliseconds) or so, the chart will fire clickGraphItem or clickSlice (AmSlicedChart) + * or clickMapObject only if user holds his/her finger for 0.2 seconds (200 ms) on the + * column/bullet/slice/map object. + * @default 0 + */ + touchClickDuration: number; + + /** + * Type of a chart. Required when creating chart using JSON. + * Possible types are: serial, pie, xy, radar, funnel, gauge, map, gantt, stock. + */ + type: string; + + /** + * If true, prefixes will be used for big and small numbers. + * You can set arrays of prefixes via prefixesOfSmallNumbers and prefixesOfBigNumbers properties. + * @default false + */ + usePrefixes: boolean; + + /** + * Read-only. Indicates current version of a script. + */ + version: string; + + /** + * Adds arrow to the chart. + */ + addArrow(arrow: GaugeArrow): void; + + /** + * Adds axis to angular gauge. + */ + addAxis(axis: GaugeAxis): void; + + /** + * Adds a label on a chart. You can use it for labeling axes, adding chart title, + * etc. x and y coordinates can be set in number, percent, or a number with ! in front of it - + * coordinate will be calculated from right or bottom instead of left or top. + */ + addLabel( + x: number, + y: number, + text: string, + align: string, + size: number, + color: string, + rotation: number, + alpha: number, + bold: boolean, + url: string, + ): void; + + /** + * Adds a legend to the chart. By default, you don't need to create div for your legend, + * however if you want it to be positioned in some different way, + * you can create div anywhere you want and pass id or reference to your div as a second parameter. + * NOTE: This method will not work on StockPanel. + */ + addLegend(legend: AmLegend, legendDivId?: string): void; + /** + * Adds a legend to the chart. + * By default, you don't need to create div for your legend, + * however if you want it to be positioned in some different way, + * you can create div anywhere you want and pass id or reference to your div as a second parameter. + * NOTE: This method will not work on StockPanel. + * @param legend - The legend. + * @param legendDiv - Legend div (optional). + */ + addLegend(legend: AmLegend, legendDiv: HTMLElement): void; + + /** + * Adds event listener to the object. + */ + addListener( + type: string, + handler: ( + e: { + type: string; + chart: AmChart; + }, + ) => void, + ): void; + + /** + * Adds title to the top of the chart. Pie, Radar positions are updated so that they won't overlap. + * Plot area of Serial/XY chart is also updated unless autoMargins property is set to false. + * You can add any number of titles - each of them will be placed in a new line. + * To remove titles, simply clear titles array: chart.titles = []; and call chart.validateNow() method. + */ + addTitle(text: string, size: number, color: string, alpha: number, bold: boolean): void; + + /** + * Clears the chart area, intervals, etc. + */ + clear(): void; + + /** + * Removes all labels added to the chart. + */ + clearLabels(): void; + + /** + * Use this method to force the chart to resize to it's current container size. + */ + invalidateSize(): void; + + /** + * This method allows to create charts with a single config. + */ + makeChart(container: string, config: any, delay: number): AmChart; + + /** + * Removes arrow from the chart. + */ + removeArrow(arrow: GaugeArrow): void; + + /** + * Removes axis from the chart. + */ + removeAxis(axis: GaugeAxis): void; + + /** + * Removes chart's legend. + */ + removeLegend(): void; + + /** + * Removes event listener from chart object. + */ + removeListener(chart: AmChart, type: string, handler: any): void; + + /** + * This method should be called after data in your data provider changed or a new array was set to dataProvider. + * After calling this method the chart will parse data and redraw. + */ + validateData(): void; + + /** + * This method should be called after you changed one or more properties of any class. + * The chart will redraw after this method is called. + * Both attributes, validateData and skipEvents are optional (false by default). + */ + validateNow(): void; + + /** + * Adds chart to the specified DIV. + */ + write(container: string | HTMLDivElement): void; +} diff --git a/types/amcharts/AmBalloon.d.ts b/types/amcharts/AmBalloon.d.ts new file mode 100644 index 0000000000..1549b72a18 --- /dev/null +++ b/types/amcharts/AmBalloon.d.ts @@ -0,0 +1,107 @@ +/** + * AmBalloon is the class which generates balloons (datatips). + * Balloon follows the mouse when you roll-over the pie slice/line bullet/column/etc, chart indicator of + * serial charts displays value balloons and category balloon. + * Balloon instance is created by the chart automatically and can be accessed via "balloon" property of AmChart. + * Chart shows/hides and sets position for every balloon automatically, + * so all you need to do is to change balloon appearance, if you want to. + * @example + * let chart = new AmCharts.AmSerialChart(); + * // get balloon intance + * let balloon = chart.balloon; + * // set properties + * balloon.adjustBorderColor = true; + * balloon.color = "#000000"; + * balloon.cornerRadius = 5; + * balloon.fillColor = "#FFFFFF"; + */ +export default class AmBalloon { + /** + * If this is set to true, border color instead of background color will be changed + * when user rolls-over the slice, graph, etc. + */ + adjustBorderColor: boolean; + /** + * Balloon border opacity. Value range is 0 - 1. + * @default 1 + */ + borderAlpha: number; + /** + * Balloon border color. #FFFFFF + */ + borderColor: string; + /** + * Balloon border thickness. + * @default 2 + */ + borderThickness: number; + /** + * Color of text in the balloon. #FFFFFF + */ + color: string; + /** + * Balloon corner radius. + * @default 6 + */ + cornerRadius: number; + /** + * Balloon background opacity. + * @default 1 + */ + fillAlpha: number; + /** + * Balloon background color. Usually balloon background color is set by the chart. + * Only if "adjustBorderColor" is "true" this color will be used. + * @default "#CC0000" + */ + fillColor: string; + /** + * Size of text in the balloon. Chart's fontSize is used by default. + */ + fontSize: string; + /** + * Horizontal padding of the balloon. + * @default 8 + */ + horizontalPadding: number; + /** + * The width of the pointer (arrow) "root". Only used if cornerRadius is 0. + * @default 10 + */ + pointerWidth: number; + /** + * If cornerRadius of a balloon is >0, showBullet is set to true for value balloons when ChartCursor is used. + * If you don't want the bullet near the balloon, set it to false: chart.balloon.showBullet = false + */ + showBullet: boolean; + /** + * Text alignment, possible values "left", "middle" and "right" middle + */ + textAlign: string; + /** + * Color of the text shadow. #000000 + */ + textShadowColor: string; + /** + * Vertical padding of the balloon. + * @default 5 + */ + verticalPadding: number; + /** + * Hides balloon. + */ + hide(): void; + /** + * Defines a square within which the balloon should appear. + * Bounds are set by chart class, you don't need to call this method yourself. + */ + setBounds(left: number, top: number, right: number, bottom: number): void; + /** + * Sets coordinates the balloon should point to. + */ + setPosition(x: number, y: number): void; + /** + * Specifies the text which should be displayed. + */ + show(value: string): void; +} diff --git a/types/amcharts/AmChart.d.ts b/types/amcharts/AmChart.d.ts new file mode 100644 index 0000000000..927d054369 --- /dev/null +++ b/types/amcharts/AmChart.d.ts @@ -0,0 +1,358 @@ +import AmBalloon from "./AmBalloon"; +import AmLegend from "./AmLegend"; +import ExportSettings from "./ExportSettings"; +import Label from "./Label"; +import Title from "./Title"; + +/** + * AmChart is a base class of all charts. It can not be instantiated explicitly. + * AmCoordinateChart, AmPieChart and AmMap extend AmChart class. + */ +export default class AmChart { + /** + * used when constructing a chart with a theme + */ + constructor(theme?: any); + /** + * Specifies, if class names should be added to chart elements. + */ + addClassNames: boolean; + /** + * Array of Labels. Example of label object, with all possible properties: + * { + * "x": 20, + * "y": 20, + * "text": "this is label", + * "align": "left", + * "size": 12, + * "color": "#CC0000", + * "alpha": 1, + * "rotation": 0, + * "bold": true, + * "url": "http://www.amcharts.com" + * } + */ + allLabels: Label[]; + /** + * Set this to false if you don't want chart to resize itself whenever its parent container size changes. + */ + autoResize: boolean; + /** + * Opacity of background. Set it to >0 value if you want backgroundColor to work. + * However we recommend changing div's background-color style for changing background color. + */ + backgroundAlpha: number; + /** + * Background color. You should set backgroundAlpha to >0 value in order background to be visible. + * We recommend setting background color directly on a chart's DIV instead of using this property. + * @default "#FFFFFF" + */ + backgroundColor: string; + /** + * The chart creates AmBalloon class itself. + * If you want to customize balloon, get balloon instance using this property, + * and then change balloon's properties. + */ + balloon: AmBalloon; + /** + * Opacity of chart's border. Value range is 0 - 1. + */ + borderAlpha: number; + /** + * Color of chart's border. You should set borderAlpha >0 in order border to be visible. + * We recommend setting border color directly on a chart's DIV instead of using this property. + * @default #000000 + */ + borderColor: string; + /** + * This prefix is added to all class names which are added to all visual elements of a chart + * in case addClassNames is set to true. + */ + classNamePrefix: string; + /** + * Text color. #000000 + */ + color: string; + /** + * Non-commercial version only. Specifies position of link to amCharts site. + * Allowed values are: top-left, top-right, bottom-left and bottom-right. + * @default 'top-left' + */ + creditsPosition: string; + /** + * Array of data objects, for example: + * [{country:"US", value:524}, {country:"UK", value:624}, {country:"Lithuania", value:824}]. + * You can have any number of fields and use any field names. + * In case of AmMap, data provider should be MapData object. + */ + dataProvider: any[]; + /** + * Decimal separator. + * @default "." + */ + decimalSeparator: string; + /** + * Using this property you can add any additional information to SVG, like SVG filters or clip paths. + * The structure of this object should be identical to XML structure of a object you are adding, + * only in JSON format. + */ + defs: any; + /** + * Export config. Specifies how export to image/data export/print/annotate menu will look and behave. + * You can find a lot of examples in amcharts/plugins/export folder. + */ + export: ExportSettings; + /** + * Font family. Verdana + */ + fontFamily: string; + /** + * Font size. + * @default 11 + */ + fontSize: string; + /** + * If you set this to true, the lines of the chart will be distorted and will produce hand-drawn effect. + * Try to adjust chart.handDrawScatter and chart.handDrawThickness properties for a more scattered result. + * @default false + */ + handDrawn: boolean; + /** + * Defines by how many pixels hand-drawn line (when handDrawn is set to true) will fluctuate. + * @default 2 + */ + handDrawScatter: number; + /** + * Defines by how many pixels line thickness will fluctuate (when handDrawn is set to true). + * @default 1 + */ + handDrawThickness: number; + /** + * Time, in milliseconds after which balloon is hidden if the user rolls-out of the object. + * Might be useful for AmMap to avoid balloon flickering while moving mouse over the areas. + * Note, this is not duration of fade-out. Duration of fade-out is set in AmBalloon class. + * @default 150 + */ + hideBalloonTime: number; + /** + * Legend of a chart. + */ + legend: AmLegend; + /** + * Reference to the div of the legend. + */ + legendDiv: HTMLElement; + /** + * You can add listeners of events using this property. Example: + * listeners = [{"event":"dataUpdated", "method":handleEvent}]; + */ + listerns: object[]; + /** + * This setting affects touch-screen devices only. + * If a chart is on a page, and panEventsEnabled are set to true, the page won't move + * if the user touches the chart first. + * If a chart is big enough and occupies all the screen of your touch device, + * the user won’t be able to move the page at all. That's why the default value is "false". + * If you think that selecting/panning the chart or moving/pinching the map is a primary purpose of your users, + * you should set panEventsEnabled to true. + */ + panEventsEnabled: boolean; + /** + * Specifies absolute or relative path to amCharts files, i.e. "amcharts/". (where all .js files are located) + * If relative URLs are used, they will be relative to the current web page, displaying the chart. + * You can also set path globally, using global JavaScript variable AmCharts_path. + * If this variable is set, and "path" is not set in chart config, the chart will assume the path from the + * global variable. This allows setting amCharts path globally. I.e.: + * let AmCharts_path = "/libs/amcharts/"; + * "path" parameter will be used by the charts to locate it's files, like images, plugins or patterns. + */ + path: string; + /** + * Specifies path to the folder where images like resize grips, lens and similar are. + * IMPORTANT: Since V3.14.12, you should use "path" to point to amCharts directory instead. + * The "pathToImages" will be automatically set and does not need to be in the chart config, + * unless you keep your images separately from other amCharts files. + */ + pathToImages: string; + /** + * Precision of percent values. -1 means percent values won't be rounded at all and show as they are. + * @default 2 + */ + percentPrecision: number; + /** + * Precision of values. -1 means values won't be rounded at all and show as they are. + * @default 1 + */ + precision: number; + /** + * Prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc. + * Prefixes are used on value axes and in the legend. + * To enable prefixes, set usePrefixes property to true. + * [ + * {number:1e+3,prefix:"k"}, + * {number:1e+6,prefix:"M"}, + * {number:1e+9,prefix:"G"}, + * {number:1e+12,prefix:"T"}, + * {number:1e+15,prefix:"P"}, + * {number:1e+18,prefix:"E"}, + * {number:1e+21,prefix:"Z"}, + * {number:1e+24,prefix:"Y"} + * ] + */ + prefixesOfBigNumbers: any[]; + /** + * Prefixes which are used to make small numbers shorter: 2μ instead of 0.000002, etc. + * Prefixes are used on value axes and in the legend. + * To enable prefixes, set usePrefixes property to true. + * [ + * {number:1e-24, prefix:"y"}, + * {number:1e-21, prefix:"z"}, + * {number:1e-18, prefix:"a"}, + * {number:1e-15, prefix:"f"}, + * {number:1e-12, prefix:"p"}, + * {number:1e-9, prefix:"n"}, + * {number:1e-6, prefix:"μ"}, + * {number:1e-3, prefix:"m"} + * ] + */ + prefixesOfSmallNumbers: any[]; + /** + * Theme of a chart. Config files of themes can be found in amcharts/themes/ folder. + * More info about using themes. + */ + theme: string; + /** + * Thousands separator. + * @default "." + */ + thousandsSeparator: string; + /** + * Array of Title objects. + */ + titles: Title[]; + /** + * Type of a chart. Required when creating chart using JSON. + * Possible types are: serial, pie, xy, radar, funnel, gauge, map, stock. + */ + type: string; + /** + * If true, prefixes will be used for big and small numbers. + * You can set arrays of prefixes via prefixesOfSmallNumbers and prefixesOfBigNumbers properties. + */ + usePrefixes: boolean; + /** + * Read-only. Indicates current version of a script. + */ + version: string; + /** + * Adds a label on a chart. + * You can use it for labeling axes, adding chart title, etc. x and y coordinates can be set in + * number, percent, or a number with ! in front of it - + * coordinate will be calculated from right or bottom instead of left or top. + * x - horizontal coordinate + * y - vertical coordinate + * text - label's text + * align - alignment (left/right/center) + * size - text size + * color - text color + * rotation - angle of rotation + * alpha - label alpha + * bold - specifies if text is bold (true/false), + * url - url + */ + addLabel( + x: number | string, + y: number | string, + text: string, + align: string, + size?: number, + color?: string, + rotation?: number, + alpha?: number, + bold?: boolean, + url?: string, + ): any; + /** + * Adds a legend to the chart. + * By default, you don't need to create div for your legend, + * however if you want it to be positioned in some different way, + * you can create div anywhere you want and pass id or reference to your div as a second parameter. + * (NOTE: This method will not work on StockPanel.) + * @param legend - The legend. + * @param legendDivId - Id of the legend div (optional). + */ + addLegend(legend: AmLegend, legendDivId?: string): void; + /** + * Adds a legend to the chart. + * By default, you don't need to create div for your legend, + * however if you want it to be positioned in some different way, + * you can create div anywhere you want and pass id or reference to your div as a second parameter. + * (NOTE: This method will not work on StockPanel.) + * @param legend - The legend. + * @param legendDiv - Legend div (optional). + */ + addLegend(legend: AmLegend, legendDiv: HTMLElement): void; + + /** + * Adds title to the top of the chart. Pie, Radar positions are updated so that they won't overlap. + * Plot area of Serial/XY chart is also updated unless autoMargins property is set to false. + * You can add any number of titles - each of them will be placed in a new line. + * To remove titles, simply clear titles array: chart.titles = []; and call chart.validateNow() method. + * text - text of a title size - font size color - title color alpha - title opacity bold - + * boolean value indicating if title should be bold. + */ + addTitle(text: string, size: number, color: string, alpha: number, bold: boolean): void; + /** + * Clears the chart area, intervals, etc. + */ + clear(): void; + /** + * Removes all labels added to the chart. + */ + clearLabels(): void; + /** + * Use this method to force the chart to resize to it's current container size. + */ + invalidateSize(): void; + /** + * Removes chart's legend. + */ + removeLegend(): void; + /** + * This method should be called after data in your data provider changed or a new array was set to dataProvider. + * After calling this method the chart will parse data and redraw. + */ + validateData(): void; + /** + * This method should be called after you changed one or more properties of any class. + * The chart will redraw after this method is called. + */ + validateNow(): void; + + /** + * Adds chart to the specified DIV. + */ + write(container: string | HTMLDivElement): void; + + /** + * Adds event listener of the type "dataUpdated" or "init" to the object. + * @param type "dataUpdated" or "init". + * @param handler + * If the type is "dataUpdated". + * Dispatched when chart is build for the first time or after validateData() method was called. + * If the type is "init". Dispatched when chart is build for the first time. + */ + addListener( + type: string, + handler: ( + e: { + type: string; // Either "dataUpdated" or "init". + chart: AmChart; + }, + ) => void, + ): void; + /** + * Removes event listener from chart object. + */ + removeListener(chart: AmChart, type: string, handler: any): void; +} diff --git a/types/amcharts/AmCoordinateChart.d.ts b/types/amcharts/AmCoordinateChart.d.ts new file mode 100644 index 0000000000..6fea3b7209 --- /dev/null +++ b/types/amcharts/AmCoordinateChart.d.ts @@ -0,0 +1,151 @@ +import AmChart from "./AmChart"; +import AmGraph from "./AmGraph"; +import GraphDataItem from "./GraphDataItem"; +import Guide from "./Guide"; +import ValueAxis from "./ValueAxis"; + +/** + * AmCoordinateChart is a base class of AmRectangularChart. It can not be instantiated explicitly. + */ +export default class AmCoordinateChart extends AmChart { + /** + * Array, holding processed chart's data. + */ + chartData: object[]; + /** + * Specifies the colors of the graphs if the lineColor of a graph is not set. + * It there are more graphs then colors in this array, the chart picks random color. + * @default ['#FF6600','#FCD202','#B0DE09','#0D8ECF','#2A0CD0','#CD0D74','#CC0000','#00CC00', + * '#0000CC','#DDDDDD','#999999','#333333','#990000'] + */ + colors: string[]; + /** + * The array of graphs belonging to this chart. + * To add/remove graph use addGraph/removeGraph methods instead of adding/removing graphs directly to array. + */ + graphs: AmGraph[]; + /** + * Specifies if grid should be drawn above the graphs or below. Will not work properly with 3D charts. + * @default false + */ + gridAboveGraphs: boolean; + /** + * Instead of adding guides to the axes, you can push all of them to this array. + * In case guide has category or date defined, it will automatically will be assigned to the category axis. + * Otherwise to first value axis, unless you specify a different valueAxis for the guide. + */ + guides: Guide[]; + /** + * Specifies whether the animation should be sequenced or all objects should appear at once. + * @default true + */ + sequencedAnimation: boolean; + /** + * The initial opacity of the column/line. + * If you set startDuration to a value higher than 0, the columns/lines will fade in from startAlpha. + * Value range is 0 - 1. + * @default 1 + */ + startAlpha: number; + /** + * Duration of the animation, in seconds. + */ + startDuration: number; + /** + * Animation effect. + * Possible values are ">", "<", elastic" and "bounce". + * @default "elastic" + */ + startEffect: string; + /** + * Target of url. + * @default this + */ + urlTarget: any; + /** + * The array of value axes. + * To add/remove value axis use addValueAxis/removeValueAxis methods instead of + * adding/removing axes directly to array. + * Chart creates one value axis automatically, so if you need only one value axis, you don't need to create it. + */ + valueAxes: any[]; + /** + * Adds a graph to the chart. + */ + addGraph(graph: AmGraph): void; + /** + * Adds value axis to the chart. + * One value axis is created automatically, so if you don't want to change anything or add more value axes, + * you don't need to add it. + */ + addValueAxis(axis: ValueAxis): void; + /** + * You can trigger the animation of the chart. + */ + animateAgain(): void; + /** + * AmGraph Returns graph by id. + */ + getGraphById(graphId: string): AmGraph; + /** + * Returns value axis by id. + */ + getValueAxisById(axisId: string): ValueAxis; + /** + * Hide the graph (if it is visible). + * Usually this method is called from the Legend, when you click on the legend marker. + */ + hideGraph(graph: AmGraph): void; + /** + * Hide value balloon of a graph. + * Usually this method is called from the Legend, when you click on the legend text. + */ + hideGraphsBalloon(graph: AmGraph): void; + /** + * Highlight the graph. Usually this method is called from the Legend, when you roll-over the legend entry. + */ + highlightGraph(graph: AmGraph): void; + /** + * Removes graph from the chart. + */ + removeGraph(graph: AmGraph): void; + /** + * Removes value axis from the chart. + * When you remove value axis, all graphs assigned to this axis are also removed. + */ + removeValueAxis(axis: ValueAxis): void; + /** + * Show the graph (if it is hidden). + * Usually this method is called from the Legend, when you click on the legend marker. + */ + showGraph(graph: AmGraph): void; + /** + * Show value balloon of a graph. + * Usually this method is called from the Legend, when you click on the legend text. + */ + showGraphsBalloon(graph: AmGraph): void; + /** + * UnhighlightGraph the graph. + * Usually this method is called from the Legend, when you roll-out the legend entry. + */ + unhighlightGraph(graph: AmGraph): void; + /** + * Adds event listener of the type "clickGraphItem" or "doubleClickGraphItem" or + * "rightClickGraphItem" or "rollOutGraphItem" or "rollOverGraphItem" to the object. + * @param type Either "clickGraphItem" or "doubleClickGraphItem" or "rightClickGraphItem" + * or "rollOutGraphItem" or "rollOverGraphItem". + * @param handler Dispatched when user clicks on the data item (column/bullet) + */ + addListener( + type: string, + handler: ( + e: { + type: string; + graph: AmGraph; + item: GraphDataItem; + index: number; + chart: AmChart; + }, + ) => void, + ): void; +} diff --git a/types/amcharts/AmGraph.d.ts b/types/amcharts/AmGraph.d.ts new file mode 100644 index 0000000000..170806637b --- /dev/null +++ b/types/amcharts/AmGraph.d.ts @@ -0,0 +1,652 @@ +import AmBalloon from "./AmBalloon"; +import GraphDataItem from "./GraphDataItem"; +import ValueAxis from "./ValueAxis"; + +/** + * AmGraph class displays all types of graphs - line, column, step line, smoothed line, ohlc and candlestick. + * @example + * let chart = new AmCharts.AmSerialChart(); + * let graph = new AmCharts.AmGraph(); + * graph.valueField = 'value'; + * graph.type = 'column'; + * graph.fillAlphas = 1; + * chart.addGraph(graph); + */ +export default class AmGraph { + /** + * Text which screen readers will read if user rolls-over the bullet/column or sets focus using tab key + * (this is possible only if tabIndex property of AmGraph is set to some number). + * Text is added as aria-label tag. Note - not all screen readers and browsers support this. + * @default "[[title]] [[category]] [[value]]" + */ + accessibleLabel: string; + /** + * Name of the alpha field in your dataProvider. + */ + alphaField: string; + /** + * If you set this to true before chart is drawn, the animation of this graph won't be played. + * @default false + */ + animationPlayed: boolean; + /** + * Allows customizing graphs balloons individually (only when ChartCursor is used). + * Note: the balloon object is not created automatically, you should create it before setting properties + */ + balloon: AmBalloon; + /** + * Value balloon color. Will use graph or data item color if not set. + */ + balloonColor: string; + /** + * If you set some function, the graph will call it and pass GraphDataItem and AmGraph objects to it. + * This function should return a string which will be displayed in a balloon. + */ + balloonFunction(graphDataItem: GraphDataItem, amGraph: AmGraph): string; + /** + * Balloon text. + * You can use tags like + * [[value]], + * [[description]], + * [[percents]], + * [[open]], + * [[category]] + * or any other field name from your data provider. HTML tags can also be used. + * @default [[value]] + */ + balloonText: string; + /** + * Specifies if the line graph should be placed behind column graphs + * @default false + */ + behindColumns: boolean; + /** + * Type of the bullets. + * Possible values are: + * "none", "round", "square", "triangleUp", "triangleDown", "triangleLeft", "triangleRight", + * "bubble", "diamond", "xError", "yError" and "custom". + * @default "none" + */ + bullet: string; + /** + * Opacity of bullets. Value range is 0 - 1. + * @default 1 + */ + bulletAlpha: number; + /** + * bulletAxis value is used when you are building error chart. + * Error chart is a regular serial or XY chart with bullet type set to "xError" or "yError". + * The graph should know which axis should be used to determine the size of this bullet - + * that's when bulletAxis should be set. Besides that, you should also set graph.errorField. + * You can also use other bullet types with this feature too. + * For example, if you set bulletAxis for XY chart, the size of a bullet will change as you zoom the chart. + */ + bulletAxis: ValueAxis; + /** + * Bullet border opacity. + * @default 0 + */ + bulletBorderAlpha: number; + /** + * Bullet border color. Will use lineColor if not set. + */ + bulletBorderColor: string; + /** + * Bullet border thickness. + * @default 2 + */ + bulletBorderThickness: number; + /** + * Bullet color. Will use lineColor if not set. + */ + bulletColor: string; + /** + * Name of the bullet field in your dataProvider. + */ + bulletField: string; + /** + * Useful for touch devices - if you set it to 20 or so, the bullets of a graph will have + * invisible circle around the actual bullet (bullets should still be enabled), + * which will be easier to touch (bullets usually are smaller and hard to hit). + */ + bulletHitAreaSize: number; + /** + * Bullet offset. Distance from the actual data point to the bullet. + * Can be used to place custom bullets above the columns. + * @default 0 + */ + bulletOffset: number; + /** + * Bullet size. + * @default 8 + */ + bulletSize: number; + /** + * Name of the bullet size field in your dataProvider. + */ + bulletSizeField: string; + /** + * If this field is set and addClassNames is enabled, the chart will look for a class name string in + * data using this setting and apply additional class names to elements of the particular data points, + * such as bullets. + */ + classNameField: string; + /** + * Name of the close field (used by candlesticks and ohlc) in your dataProvider. + */ + closeField: string; + /** + * In case you want to place this graph's columns in front of other columns, set this to false. + * In case "true", the columns will be clustered next to each other. + * NOTE: clustering works only for graphs of type "column". + * @default true + */ + clustered: boolean; + /** + * Color of value labels. Will use chart's color if not set. + */ + color: string; + /** + * Name of the color field in your dataProvider. + */ + colorField: string; + /** + * You can use this property with non-stacked column graphs and specify order of columns of each category + * (starting from 0). + * Important: this feature does not work in stacked columns scenarios as well as with graph + * toggling enabled in legend. + */ + columnIndexField: string; + /** + * You can specify custom column width for each graph individually. + * Value range is 0 - 1 (we set relative width, not pixel width here). + */ + columnWidth: number; + /** + * Specifies whether to connect data points if data is missing. The default value is true. + * This feature does not work with XY chart. + * @default true + */ + connect: boolean; + /** + * Corner radius of column. It can be set both in pixels or in percents. + * The chart's depth and angle styles must be set to 0. The default value is 0. + * Note, cornerRadiusTop will be applied for all corners of the column, + * JavaScript charts do not have a possibility to set separate corner radius for top and bottom. + * As we want all the property names to be the same both on JS and Flex, we didn't change this too. + * @default 0 + */ + cornerRadiusTop: number; + /** + * If bulletsEnabled of ChartCurosor is true, a bullet on each graph follows the cursor. + * You can set opacity of each graphs bullet. In case you want to disable these bullets for a certain graph, + * set opacity to 0. + * @default 1 + */ + cursorBulletAlpha: number; + /** + * Path to the image of custom bullet. + */ + customBullet: string; + /** + * Name of the custom bullet field in your dataProvider. + */ + customBulletField: string; + /** + * Path to the image for legend marker. + */ + customMarker: string; + /** + * Dash length. If you set it to a value greater than 0, the graph line (or columns border) will be dashed. + * @default 0 + */ + dashLength: number; + /** + * Name of the dash length field in your dataProvider. + * This property adds a possibility to change graphs’ line from solid to dashed on any data point. + * You can also make columns border dashed using this setting. Note, this won't work with smoothedLineGraph. + */ + dashLengthField: string; + /** + * Used to format balloons if value axis is date-based. + * @default "MMM DD, YYYY" + */ + dateFormat: string; + /** + * Name of the description field in your dataProvider. + */ + descriptionField: string; + /** + * Name of error value field in your data provider. + */ + errorField: string; + /** + * Opacity of fill. Plural form is used to keep the same property names as our Flex charts'. + * Flex charts can accept array of numbers to generate gradients. + * Although you can set array here, only first value of this array will be used. + * @default 0 + */ + fillAlphas: number; + /** + * Fill color. Will use lineColor if not set. You can also set array of colors here. + */ + fillColors: string; + /** + * Name of the fill colors field in your dataProvider. + * This property adds a possibility to change line graphs’ fill color on any data point to create highlighted + * sections of the graph. Works only with AmSerialChart. + */ + fillColorsField: string; + /** + * XY chart only. If you set this property to id or reference of your X or Y axis, and the fillAlphas is > 0, + * the area between graph and axis will be filled with color, like in this demo. + */ + fillToAxis: ValueAxis; + /** + * You can set another graph here and if fillAlpha is >0, the area from this graph to fillToGraph will be filled + * (instead of filling the area to the X axis). + * This feature is not supported by smoothedLine graphs and Radar chart. + */ + fillToGraph: AmGraph; + /** + * Column width in pixels. + * If you set this property, columns will be of a fixed width and won't adjust to the available space. + */ + fixedColumnWidth: number; + /** + * Size of value labels text. Will use chart's fontSize if not set. + */ + fontSize: number; + /** + * If this is set `true`, the graph will always break the line if the distance in time between + * two adjacent data points is bigger than `gapPeriod x minPeriod`, even if `connect` is set to `true`. + * @default false + */ + forceGap: boolean; + /** + * Name of the gap field in your dataProvider. + * You can force graph to show gap at a desired data point using this feature. + * This feature does not work with XY chart. + */ + gapField: string; + /** + * Using this property you can specify when graph should display gap - + * if the time difference between data points is bigger than duration of minPeriod * gapPeriod, + * and connect property of a graph is set to false, graph will display gap. + * @default 1.1 + */ + gapPeriod: number; + /** + * Orientation of the gradient fills (only for "column" graph type). + * Possible values are "vertical" and "horizontal". + * @default "vertical" + */ + gradientOrientation: string; + /** + * Specifies whether the graph is hidden. + * Do not use this to show/hide the graph, use hideGraph(graph) and showGraph(graph) methods instead. + * @default false + */ + hidden: boolean; + /** + * If there are more data points than hideBulletsCount, the bullets will not be shown. + * 0 means the bullets will always be visible. + * @default 0 + */ + hideBulletsCount: number; + /** + * Name of the high field (used by candlesticks and ohlc) in your dataProvider. + */ + highField: string; + /** + * Unique id of a graph. + * It is not required to set one, unless you want to use this graph for as your scrollbar's graph and need + * to indicate which graph should be used. + */ + id: string; + /** + * Whether to include this graph when calculating min and max value of the axis. + * @default true + */ + includeInMinMax: boolean; + /** + * Data label text anchor. + * @default "auto" + */ + labelAnchor: string; + /** + * Name of label color field in data provider. + */ + labelColorField: string; + /** + * You can use it to format labels of data items in any way you want. + * Graph will call this function and pass reference to GraphDataItem and formatted text as attributes. + * This function should return string which will be displayed as label. + */ + labelFunction(value: number, valueText: string, valueAxis: ValueAxis): string; + labelFunction(valueText: string, data: Date, valueAxis: ValueAxis): string; + /** + * Offset of data label. + * @default 0 + */ + labelOffset: number; + /** + * Position of value label. Possible values are: "bottom", "top", "right", "left", "inside", "middle". + * Sometimes position is changed by the chart, depending on a graph type, rotation, etc. + * @default "top" + */ + labelPosition: string; + /** + * Rotation of a data label. + * @default 0 + */ + labelRotation: number; + /** + * Value label text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[category]]. + */ + labelText: string; + /** + * Legend marker opacity. Will use lineAlpha if not set. Value range is 0 - 1. + */ + legendAlpha: number; + /** + * Legend marker color. Will use lineColor if not set. + */ + legendColor: string; + /** + * It is called and the following attributes are passed: + * dataItem, formattedText, periodValues, periodPercentValues + * It should return hex color code which will be used for legend marker. + */ + legendColorFunction: object; + /** + * The text which will be displayed in the value portion of the legend when user is not hovering above + * any data point. The tags should be made out of two parts - the name of a field + * (value / open / close / high / low) + * and the value of the period you want to be show - + * open / close / high / low / sum / average / count. + * For example: [[value.sum]] + * means that sum of all data points of value field in the selected period will be displayed. + */ + legendPeriodValueText: string; + /** + * Legend value text. + * You can use tags like [[value]], [[description]], [[percents]], [[open]], [[category]] + * You can also use custom fields from your dataProvider. If not set, uses Legend's valueText. + */ + legendValueText: string; + /** + * Opacity of the line (or column border). Value range is 0 - 1. + * @default 1 + */ + lineAlpha: number; + /** + * Color of the line (or column border). + * If you do not set any, the color from AmCoordinateChart.colors array will be used for each subsequent graph. + */ + lineColor: string; + /** + * Name of the line color field in your dataProvider. + * This property adds a possibility to change graphs’ line color on any data point to create highlighted + * sections of the graph. Works only with AmSerialChart. + */ + lineColorField: string; + /** + * Specifies thickness of the graph line (or column border). + * @default 1 + */ + lineThickness: number; + /** + * Name of the low field (used by candlesticks and ohlc) in your dataProvider. + */ + lowField: string; + /** + * Legend marker type. You can set legend marker (key) type for individual graphs. + * Possible values are: + * square, circle, diamond, triangleUp, triangleDown, triangleLeft, triangleDown, bubble, line, none. + */ + markerType: string; + /** + * Specifies size of the bullet which value is the biggest (XY chart). + * @default 50 + */ + maxBulletSize: number; + /** + * Specifies minimum size of the bullet (XY chart). + * @default 4 + */ + minBulletSize: number; + /** + * It is useful if you have really lots of data points. + * Based on this property the graph will omit some of the lines + * (if the distance between points is less that minDistance, in pixels). + * This will not affect the bullets or indicator in anyway, so the user will not see any difference + * (unless you set minValue to a bigger value, let say 5), + * but will increase performance as less lines will be drawn. + * By setting value to a bigger number you can also make your lines look less jagged. + * @default 1 + */ + minDistance: number; + /** + * If you use different colors for your negative values, a graph below zero line is filled with negativeColor. + * With this property you can define a different base value at which + * colors should be changed to negative colors. + * @default 0 + */ + negativeBase: number; + /** + * Fill opacity of negative part of the graph. Will use fillAlphas if not set. + */ + negativeFillAlphas: number; + /** + * Fill color of negative part of the graph. Will use fillColors if not set. + */ + negativeFillColors: string; + /** + * Opacity of the negative portion of the line (or column border). Value range is 0 - 1. + * @default 1 + */ + negativeLineAlpha: number; + /** + * Color of the line (or column) when the values are negative. + * In case the graph type is "candlestick" or "ohlc", "negativeLineColor" is used + * when close value is less then open value. + */ + negativeLineColor: string; + /** + * If you set it to true, column chart will begin new stack. + * This allows having Clustered and Stacked column/bar chart. + * @default false + */ + newStack: boolean; + /** + * In case you want to have a step line graph without risers, you should set this to true. + * @default false + */ + noStepRisers: boolean; + /** + * Name of the open field (used by floating columns, candlesticks and ohlc) in your dataProvider. + */ + openField: string; + /** + * Value of pattern should be object with url, width, height of an image, optionally it might have x, y, randomX + * and randomY values. + * For example: {"url":"../amcharts/patterns/black/pattern1.png", "width":4, "height":4}. + * If you want to have individual patterns for each column, define patterns in data provider and set + * graph.patternField property. Check amcharts/patterns folder for some patterns. + * You can create your own patterns and use them. Note, x, y, randomX and randomY properties won't work + * with IE8 and older. 3D bar/Pie charts won't work properly with patterns. + */ + pattern: object; + /** + * Field name in your data provider which holds pattern information. + * Value of pattern should be object with url, width, height of an image, + * optionally it might have x, y, randomX and randomY values. + * For example: {"url":"../amcharts/patterns/black/pattern1.png", "width":4, "height":4}. + * Check amcharts/patterns folder for some patterns. You can create your own patterns and use them. + * Note, x, y, randomX and randomY properties won't work with IE8 and older. + * 3D bar/Pie charts won't work properly with patterns. + */ + patternField: string; + /** + * This property can be used by step graphs - you can set how many periods one horizontal line should span. + * @default 1 + */ + periodSpan: number; + /** + * Specifies where data points should be placed - + * on the beginning of the period (day, hour, etc) or in the middle + * (only when parseDates property of categoryAxis is set to true). + * This setting affects Serial chart only. Possible values are "start", "middle" and "end" + * @default "middle" + */ + pointPosition: string; + /** + * Precision of values. Will use chart's precision if not set any. + */ + precision: number; + /** + * If this is set to true, candlesticks will be colored in a different manner - + * if current close is less than current open, the candlestick will be empty, otherwise - filled with color. + * If previous close is less than current close, the candlestick will use positive color, + * otherwise - negative color. + * @default false + */ + proCandlesticks: boolean; + /** + * Gantt chart only. Contains unmodified segment object from data provider. + */ + segmentData: object; + /** + * If graph's type is column and labelText is set, graph hides labels which do not fit into the column's + * space or go outside plot area. If you don't want these labels to be hidden, set this to true. + * @default false + */ + showAllValueLabels: boolean; + /** + * Specifies whether the value balloon of this graph is shown when mouse is over data item or chart's + * indicator is over some series. + * @default true + */ + showBalloon: boolean; + /** + * Specifies graphs value at which cursor is showed. This is only important for candlestick and ohlc charts, + * also if column chart has "open" value. + * Possible values are: "open", "close", "high", "low". + * "top" and "bottom" values will glue the balloon to top/bottom of the plot area. + * @default "close" + */ + showBalloonAt: string; + /** + * Works with candlestick graph type, you can set it to open, close, high, low. + * If you set it to high, the events will be shown at the tip of the high line. + * @default "close" + */ + showBulletsAt: string; + /** + * If you want mouse pointer to change to hand when hovering the graph, set this property to true. + * @default false + */ + showHandOnHover: boolean; + /** + * It can only be used together with topRadius (when columns look like cylinders). + * If you set it to true, the cylinder will be lowered down so that the center of it's bottom circle would be + * right on category axis. + * @default false + */ + showOnAxis: boolean; + /** + * If the value axis of this graph has stack types like "regular" or "100%" + * You can exclude this graph from stacking. + * @default true + */ + stackable: boolean; + /** + * Step graph only. Specifies to which direction step should be drawn. + * @default "right" + */ + stepDirection: string; + /** + * If you set it to false, the graph will not be hidden when user clicks on legend entry. + * @default true + */ + switchable: boolean; + /** + * In case you set it to some number, the chart will set focus on bullet/column (starting from first) + * when user clicks tab key. When a focus is set, screen readers like NVDA Screen reader will read label + * which is set using accessibleLabel property of AmGraph. Note, not all browsers and readers support this. + */ + tabIndex: number; + /** + * Graph title. + */ + title: string; + /** + * If you set this to 1, columns will become cylinders (must set depth3D and angle properties of a chart to >0 + * values in order this to be visible). you can make columns look like cones (set topRadius to 0) + * or even like some glasses (set to bigger than 1). We strongly recommend setting grid opacity to 0 + * in order this to look good. + */ + topRadius: number; + /** + * Type of the graph. + * Possible values are: "line", "column", "step", "smoothedLine", "candlestick", "ohlc". + * XY and Radar charts can only display "line" type graphs. + * @default "line" + */ + type: string; + /** + * Name of the url field in your dataProvider. + */ + urlField: string; + /** + * Target to open URLs in, i.e. _blank, _top, etc. + */ + urlTarget: string; + /** + * If set to true, the bullet border will take the same color as graph line. + * @default false + */ + useLineColorForBulletBorder: boolean; + /** + * If negativeLineColor and/or negativeFillColors are set and useNegativeColorIfDown is set to true + * (default is false), the line, step and column graphs will use these colors for lines, + * bullets or columns if previous value is bigger than current value. In case you set openField for the graph, + * the graph will compare current value with openField value instead of comparing to previous value. + * @default false + */ + useNegativeColorIfDown: boolean; + /** + * Specifies which value axis the graph will use. Will use the first value axis if not set. + * You can use reference to the real ValueAxis object or set value axis id. + * @default ValueAxis + */ + valueAxis: ValueAxis; + /** + * Name of the value field in your dataProvider. + */ + valueField: string; + /** + * Specifies whether this graph should be shown in the Legend. + * @default true + */ + visibleInLegend: boolean; + /** + * XY chart only. A horizontal value axis object to attach graph to. + * @default ValueAxis + */ + xAxis: ValueAxis; + /** + * XY chart only. Name of the x field in your dataProvider. + */ + xField: string; + /** + * XY chart only. A vertical value axis object to attach graph to. + * @default ValueAxis + */ + yAxis: ValueAxis; + /** + * XY chart only. Name of the y field in your dataProvider. + */ + yField: string; +} diff --git a/types/amcharts/AmLegend.d.ts b/types/amcharts/AmLegend.d.ts new file mode 100644 index 0000000000..0802fa32f3 --- /dev/null +++ b/types/amcharts/AmLegend.d.ts @@ -0,0 +1,247 @@ +import AmChart from "./AmChart"; + +/** + * AmLegend is the class that displays legend of the chart. + * Legend to the chart should be added using chart.addLegend(legend) method. + * @example + * let chart = new AmCharts.AmSerialChart(); + * let legend = new AmCharts.AmLegend(); + * chart.addLegend(legend); + */ +export default class AmLegend { + /** + * Alignment of legend entries. Possible values are: "left", "center", "right". left + */ + align: string; + /** + * Used if chart is Serial or XY. + * In case true, margins of the legend are adjusted and made equal to chart's margins. + * @default true + */ + autoMargins: boolean; + /** + * Opacity of legend's background. Value range is 0 - 1 + */ + backgroundAlpha: number; + /** + * Background color. You should set backgroundAlpha to >0 vallue in order background to be visible. + * @default "#FFFFFF" + */ + backgroundColor: string; + /** + * Opacity of chart's border. Value range is 0 - 1. + */ + borderAlpha: number; + /** + * Color of legend's border. You should set borderAlpha >0 in order border to be visible. + * @default "#000000" + */ + borderColor: string; + /** + * In case legend position is set to "absolute", you can set distance from bottom of the chart, in pixels. + */ + bottom: number; + /** + * Text color. Will use chart's color if not set. + */ + color: string; + /** + * This can be used by AmMap only. + * You can pass array of objects with title, color, markerType values, for example: + * [{title: "One", color: "#3366CC"},{title: "Two", color: "#FFCC33"}] + */ + data: any[]; + /** + * Specifies if each of legend entry should be equal to the most wide entry. + * Won't look good if legend has more than one line. + * @default true + */ + equalWidths: boolean; + /** + * Font size. Will use chart's font size if not set. + */ + fontSize: string; + /** + * Horizontal space between legend item and left/right border. + */ + horizontalGap: number; + /** + * The text which will be displayed in the legend. + * Tag [[title]] will be replaced with the title of the graph. [[title]] + */ + labelText: string; + /** + * In case legend position is set to "absolute", you can set distance from left side of the chart, in pixels. + */ + left: number; + /** + * Bottom margin. + */ + marginBottom: number; + /** + * Left margin. + * This property will be ignored if chart is Serial or XY + * and autoMargins property of the legend is true (default). + * @default 20 + */ + marginLeft: number; + /** + * Right margin. + * This property will be ignored if chart is Serial or XY + * and autoMargins property of the legend is true (default). + * @default 20 + */ + marginRight: number; + /** + * Top margin. + */ + marginTop: number; + /** + * Marker border opacity 1. + */ + markerBorderAlpha: number; + /** + * Marker border color. If not set, will use the same color as marker. + */ + markerBorderColor: string; + /** + * Thickness of the legend border. + * The default value (0) means the line will be a "hairline" (1 px). + * In case marker type is line, this style will be used for line thickness. + * @default 1 + */ + markerBorderThickness: number; + /** + * The color of the disabled marker (when the graph is hidden). #AAB3B3 + */ + markerDisabledColor: string; + /** + * Space between legend marker and legend text, in pixels. + * @default 5 + */ + markerLabelGap: number; + /** + * Size of the legend marker (key). + * @default 16 + */ + markerSize: number; + /** + * Shape of the legend marker (key). + * Possible values are: + * "square", "circle", "line", "dashedLine", "triangleUp", "triangleDown", "bubble", "none". square + */ + markerType: string; + /** + * Maximum number of columns in the legend. + * If Legend's position is set to "right" or "left", maxColumns is automatically set to 1. + */ + maxColumns: number; + /** + * Position of a legend. Possible values are: "bottom", "top", "left", "right" and "absolute". + * In case "absolute", you should set left and top properties too. (this setting is ignored in Stock charts). + * In case legend is used with AmMap, position is set to "absolute" automatically. bottom + */ + position: string; + /** + * Specifies whether legend entries should be placed in reversed order. + */ + reversedOrder: boolean; + /** + * In case legend position is set to "absolute", you can set distance from right side of the chart, in pixels. + */ + right: number; + /** + * Legend item text color on roll-over. #CC0000 + */ + rollOverColor: string; + /** + * When you roll-over the legend entry, all other graphs can reduce their opacity, + * so that the graph you rolled-over would be distinguished. This style specifies the opacity of the graphs. + * @default 1 + */ + rollOverGraphAlpha: number; + /** + * You can use this property to turn all the legend entries off. + * @default true + */ + showEntries: boolean; + /** + * Horizontal space between legend items, in pixels. + * @default 10 + */ + spacing: number; + /** + * Whether showing/hiding of graphs by clicking on the legend marker is enabled or not. + * In case legend is used with AmMap, this is set to false automatically. + * @default true + */ + switchable: boolean; + /** + * Legend switch color. #FFFFFF + */ + switchColor: string; + /** + * Legend switch type (in case the legend is switchable). Possible values are "x" and "v". x + */ + switchType: string; + /** + * If true, clicking on the text will show/hide balloon of the graph. + * Otherwise it will show/hide graph/slice, if switchable is set to true. + */ + 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 graph’s 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 + */ + valueAlign: string; + /** + * The text which will be displayed in the value portion of the legend. + * You can use tags like + * [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]]. [[value]] + */ + valueText: string; + /** + * Width of the value text. + * @default 80 + */ + valueWidth: number; + /** + * Vertical space between legend items also between legend border and first and last legend row. + * @default: 10 + */ + verticalGap: number; + /** + * Adds event listener of the type "clickLabel" or "clickMarker" or "hideItem" to the object. + * @param type Either "clickLabel" or "clickMarker" or "hideItem". + * @param handler The event handler. + */ + addListener( + type: string, + handler: ( + e: { + type: string; + dataItem: object; + chart: AmChart; + }, + ) => void, + ): void; + + /** + * Removes event listener from chart object. + */ + removeListener(chart: AmChart, type: string, handler: any): void; +} diff --git a/types/amcharts/AmPieChart.d.ts b/types/amcharts/AmPieChart.d.ts new file mode 100644 index 0000000000..0db5e23ee5 --- /dev/null +++ b/types/amcharts/AmPieChart.d.ts @@ -0,0 +1,314 @@ +import AmChart from "./AmChart"; +import Slice from "./Slice"; + +/** + * AmPieChart class creates pie/donut chart. + * In order to display pie chart you need to set at least these three properties + * dataProvider, titleField and valueField. + * @example + * let chartData = [{title:"Pie I have eaten",value:70},{title:"Pie I haven\'t eaten",value:30}]; + * let chart = new AmCharts.AmPieChart(); + * chart.valueField = "value"; + * chart.titleField = "title"; + * chart.dataProvider = chartData; + * chart.write("chartdiv"); + */ +export default class AmPieChart extends AmChart { + /** + * Name of the field in chart's dataProvider which holds slice's alpha. + */ + alphaField: string; + /** + * Pie lean angle (for 3D effect). Valid range is 0 - 90. + */ + angle: number; + /** + * Balloon text. The following tags can be used: + * [[value]], [[title]], [[percents]], [[description]]. [[title]]: [[percents]]% ([[value]])\n[[description]] + */ + balloonText: string; + /** + * Read-only. Array of Slice objects. + */ + chartData: any[]; + /** + * Name of the field in chart's dataProvider which holds slice's color. + */ + colorField: string; + /** + * Specifies the colors of the slices, if the slice color is not set. + * If there are more slices than colors in this array, the chart picks random color. + * [ + * "#FF0F00", "#FF6600", "#FF9E01", "#FCD202", "#F8FF01", "#B0DE09", "#04D215", "#0D8ECF", + * "#0D52D1", "#2A0CD0", "#8A0CCF", "#CD0D74", "#754DEB", "#DDDDDD", "#999999", "#333333", + * "#000000", "#57032A", "#CA9726", "#990000", "#4B0C25" + * ] + */ + colors: any[]; + /** + * Depth of the pie (for 3D effect). + */ + depth3D: number; + /** + * Name of the field in chart's dataProvider which holds a string with description. + */ + descriptionField: string; + /** + * Example: [-0.2,0.2]. Will make slices to be filled with color gradients. + */ + gradientRatio: number[]; + /** + * Opacity of the group slice. Value range is 0 - 1. + * @default 1 + */ + groupedAlpha: number; + /** + * Color of the group slice. The default value is not set - + * this means the next available color from "colors" array will be used. + */ + groupedColor: string; + /** + * Description of the group slice. + */ + groupedDescription: string; + /** + * If this is set to true, the group slice will be pulled out when the chart loads. + */ + groupedPulled: boolean; + /** + * Title of the group slice. Other + */ + groupedTitle: string; + /** + * If there is more than one slice whose percentage of the pie is less than this number, + * those slices will be grouped together into one slice. + * This is the "other" slice. It will always be the last slice in a pie. + */ + groupPercent: number; + /** + * Slices with percent less then hideLabelsPercent won't display labels. + * This is useful to avoid cluttering up the chart, if you have a lot of small slices. + * 0 means all labels will be shown. + */ + hideLabelsPercent: number; + /** + * Opacity of a hovered slice. Value range is 0 - 1. + * @default 1 + */ + hoverAlpha: number; + /** + * Inner radius of the pie, in pixels or percents. + */ + innerRadius: any; + /** + * The distance between the label and the slice, in pixels. + * You can use negative values to put the label on the slice. + * @default 30 + */ + labelRadius: number; + /** + * Name of the field in dataProvider which specifies the length of a tick. + * Note, the chart will not try to arrange labels automatically if this property is set. + */ + labelRadiusField: string; + /** + * Specifies whether data labels are visible. + * @default true + */ + labelsEnabled: boolean; + /** + * Label text. The following tags can be used: + * [[value]], [[title]], [[percents]], [[description]]. [[title]]: [[percents]]% + */ + labelText: string; + /** + * Label tick opacity. Value range is 0 - 1. 0.2 + */ + labelTickAlpha: number; + /** + * Label tick color. #000000 + */ + labelTickColor: string; + /** + * Bottom margin of the chart. + * @default 5 + */ + marginBottom: number; + /** + * Left margin of the chart. + */ + marginLeft: number; + /** + * Right margin of the chart. + */ + marginRight: number; + /** + * Top margin of the chart. + * @default 5 + */ + marginTop: number; + /** + * Minimum radius of the pie, in pixels. + * @default 10 + */ + minRadius: number; + /** + * Pie outline opacity. Value range is 0 - 1. + */ + outlineAlpha: number; + /** + * Pie outline color. #FFFFFF + */ + outlineColor: string; + /** + * Pie outline thickness. + * @default 1 + */ + outlineThickness: number; + /** + * Opacity of the slices. You can set the opacity of individual slice too. + * @default 1 + */ + pieAlpha: number; + /** + * Color of the first slice. All the other will be colored with darker or brighter colors. + */ + pieBaseColor: string; + /** + * Lightness increase of each subsequent slice. This is only useful if pieBaseColor is set. + * Use negative values for darker colors. Value range is from -255 to 255. + * @default 30 + */ + pieBrightnessStep: number; + /** + * You can set fixed position of a pie center, in pixels or in percents. + */ + pieX: any; + /** + * You can set fixed position of a pie center, in pixels or in percents. + */ + pieY: any; + /** + * Name of the field in chart's dataProvider which holds a boolean value + * telling the chart whether this slice must be pulled or not. + */ + pulledField: string; + /** + * Pull out duration, in seconds. + * @default 1 + */ + pullOutDuration: number; + /** + * Pull out effect. Possible values are ">", "<", elastic" and "bounce". bounce + */ + pullOutEffect: string; + /** + * If this is set to true, only one slice can be pulled out at a time. + * If the viewer clicks on a slice, any other pulled-out slice will be pulled in. + */ + pullOutOnlyOne: boolean; + /** + * Pull out radius, in pixels or percents 0.2 + */ + pullOutRadius: any; + /** + * Radius of a pie, in pixels or percents. By default, radius is calculated automatically. + */ + radius: any; + /** + * Specifies whether the animation should be sequenced or all slices should appear at once. + */ + sequencedAnimation: boolean; + /** + * Initial opacity of all slices. If you set startDuration higher than 0, slices will fade in from startAlpha. + * @default 1 + */ + startAlpha: number; + /** + * Angle of the first slice, in degrees. This will work properly only if "depth3D" is set to 0. + * If "depth3D" is greater than 0, then there can be two angles only: 90 and 270. Value range is 0-360. + * @default 90 + */ + startAngle: number; + /** + * Duration of the animation, in seconds. + * @default 1 + */ + startDuration: number; + /** + * Animation effect. Possible values are ">", "<", "elastic" and "bounce". bounce + */ + startEffect: string; + /** + * Radius of the positions from which the slices will fly in. + * @default 5 + */ + startRadius: any; + /** + * Name of the field in chart's dataProvider which holds slice's title. + */ + titleField: string; + /** + * Name of the field in chart's dataProvider + * which holds url which would be accessed if the user clicks on a slice. + */ + urlField: string; + /** + * If url is specified for a slice, it will be opened when user clicks on it. + * urlTarget specifies target of this url. Use _blank if you want url to be opened in a new window. _self + */ + urlTarget: string; + /** + * Name of the field in chart's dataProvider which holds slice's value. + */ + valueField: string; + /** + * Name of the field in chart's dataProvider which holds boolean variable + * defining whether this data item should have an entry in the legend. + */ + visibleInLegendField: string; + /** + * You can trigger the animation of the pie chart. + */ + animateAgain(): void; + /** + * You can trigger the click on a slice from outside. index - the number of a slice or Slice object. + */ + clickSlice(index: number): void; + /** + * Hides slice. index - the number of a slice or Slice object. + */ + hideSlice(index: number): void; + /** + * You can simulate roll-out of a slice from outside. index - the number of a slice or Slice object. + */ + rollOutSlice(index: number): void; + /** + * You can simulate roll-over a slice from outside. index - the number of a slice or Slice object. + */ + rollOverSlice(index: number): void; + /** + * Shows slice. index - the number of a slice or Slice object. + */ + showSlice(index: number): void; + /** + * Adds event listener of the type "clickSlice" or "pullInSlice" or "pullOutSlice" to the object. + * @param type Always "clickSlice" or "pullInSlice" or "pullOutSlice". + * @param handler + * If the type is "clickSlice", dispatched when user clicks on a slice. + * If the type is "pullInSlice", dispatched when user clicks on a slice and the slice is pulled-in. + * If the type is "pullOutSlice", dispatched when user clicks on a slice and the slice is pulled-out. + * If the type is "rollOutSlice", dispatched when user rolls-out of the slice. + * If the type is "rollOverSlice", dispatched when user rolls-over the slice. + */ + addListener( + type: string, + handler: ( + e: { + type: string; // Always "rollOverSlice". + dataItem: Slice; + chart: AmChart; + }, + ) => void, + ): void; +} diff --git a/types/amcharts/AmRadarChart.d.ts b/types/amcharts/AmRadarChart.d.ts new file mode 100644 index 0000000000..908178452d --- /dev/null +++ b/types/amcharts/AmRadarChart.d.ts @@ -0,0 +1,60 @@ +import AmCoordinateChart from "./AmCoordinateChart"; + +/** + * AmRadarChart is the class you have to use for radar and polar chart types. + * @example + * let chart; + * let chartData = [ + * {country:"Czech Republic",litres:156.90}, + * {country:"Ireland",litres:131.10}, + * {country:"Germany",litres:115.80}, + * {country:"Australia",litres:109.90}, + * {country:"Austria",litres:108.30}, + * {country:"UK",litres:99.00} + * ]; + * + * window.onload = function() { + * chart = new AmCharts.AmRadarChart(); + * chart.dataProvider = chartData; + * chart.categoryField = "country"; + * chart.startDuration = 2; + * + * let valueAxis = new AmCharts.ValueAxis(); + * valueAxis.axisAlpha = 0.15; + * valueAxis.minimum = 0; + * valueAxis.dashLength = 3; + * valueAxis.axisTitleOffset = 20; + * valueAxis.gridCount = 5; + * chart.addValueAxis(valueAxis); + * + * let graph = new AmCharts.AmGraph(); + * graph.valueField = "litres"; + * graph.bullet = "round"; + * graph.balloonText = "[[value]] litres of beer per year" + * chart.addGraph(graph); + * + * chart.write("chartdiv"); + * }; + */ +export default class AmRadarChart extends AmCoordinateChart { + /** + * Bottom margin of the chart. + */ + marginBottom: number; + /** + * Left margin of the chart. + */ + marginLeft: number; + /** + * Right margin of the chart. + */ + marginRight: number; + /** + * Top margin of the chart. + */ + marginTop: number; + /** + * Radius of a radar. 0.35 + */ + radius: any; +} diff --git a/types/amcharts/AmRectangularChart.d.ts b/types/amcharts/AmRectangularChart.d.ts new file mode 100644 index 0000000000..60e7443762 --- /dev/null +++ b/types/amcharts/AmRectangularChart.d.ts @@ -0,0 +1,171 @@ +import AmCoordinateChart from "./AmCoordinateChart"; +import ChartCursor from "./ChartCursor"; +import ChartScrollbar from "./ChartScrollbar"; +import TrendLine from "./TrendLine"; + +/** + * AmRectangularChart is a base class of AmSerialChart and AmXYChart. It can not be instantiated explicitly. + */ +export default class AmRectangularChart extends AmCoordinateChart { + /** + * The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). + * @default 0 + */ + angle: number; + /** + * Space left from axis labels/title to the chart's outside border, if autoMargins set to true. + * @default 10 + */ + autoMarginOffset: number; + /** + * Specifies if margins of a chart should be calculated automatically so that labels of axes would fit. + * The chart will adjust only margins with axes. + * Other margins will use values set with marginRight, marginTop, marginLeft and marginBottom properties. + * @default true + */ + autoMargins: boolean; + /** + * Cursor of a chart. + */ + chartCursor: ChartCursor; + /** + * Chart scrollbar. + */ + chartScrollbar: ChartScrollbar; + /** + * The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0). + * @default 0 + */ + depth3D: number; + /** + * Number of pixels between the container's bottom border and plot area. + * This space can be used for bottom axis' values. + * If autoMargin is true and bottom side has axis, this property is ignored. + * @default 20 + */ + marginBottom: number; + /** + * Number of pixels between the container's left border and plot area. + * This space can be used for left axis' values. + * If autoMargin is true and left side has axis, this property is ignored. + * @default 20 + */ + marginLeft: number; + /** + * Number of pixels between the container's right border and plot area. + * This space can be used for Right axis' values. + * If autoMargin is true and right side has axis, this property is ignored. + * @default 20 + */ + marginRight: number; + /** + * Flag which should be set to false if you need margins to be recalculated on next chart.validateNow() call. + * @default false + */ + marginsUpdated: boolean; + /** + * Number of pixels between the container's top border and plot area. + * This space can be used for top axis' values. + * If autoMargin is true and top side has axis, this property is ignored. + * @default 20 + */ + marginTop: number; + /** + * The opacity of plot area's border. Value range is 0 - 1. + * @default 0 + */ + plotAreaBorderAlpha: number; + /** + * The color of the plot area's border. + * Note, the it is invisible by default, as plotAreaBorderAlpha default value is 0. + * Set it to a value higher than 0 to make it visible. + * @default '#000000' + */ + plotAreaBorderColor: string; + /** + * Opacity of plot area. Plural form is used to keep the same property names as our Flex charts'. + * Flex charts can accept array of numbers to generate gradients. + * Although you can set array here, only first value of this array will be used. + * @default 0 + */ + plotAreaFillAlphas: number; + /** + * You can set both one color if you need a solid color or array of colors to generate gradients, for example: + * ["#000000", "#0000CC"] + * @default '#FFFFFF' + */ + plotAreaFillColors: any; + /** + * If you are using gradients to fill the plot area, you can use this property to set gradient angle. + * The only allowed values are horizontal and vertical: 0, 90, 180, 270. + * @default 0 + */ + plotAreaGradientAngle: number; + /** + * Array of trend lines added to a chart. + * You can add trend lines to a chart using this array or access already existing trend lines + */ + trendLines: TrendLine[]; + /** + * Opacity of zoom-out button background. + * @default 0 + */ + zoomOutButtonAlpha: number; + /** + * Zoom-out button background color. + * @default '#e5e5e5' + */ + zoomOutButtonColor: string; + /** + * Name of zoom-out button image. In the images folder there is another lens image, called lensWhite.png. + * You might want to have white lens when background is dark. Or you can simply use your own image. + * @default lens.png + */ + zoomOutButtonImage: string; + /** + * Size of zoom-out button image + * @default: 17 + */ + zoomOutButtonImageSize: number; + /** + * Padding around the text and image. + * @default: 8 + */ + zoomOutButtonPadding: number; + /** + * Opacity of zoom-out button background when mouse is over it. + * @default: 1 + */ + zoomOutButtonRollOverAlpha: number; + /** + * Text in the zoom-out button. Show all + */ + zoomOutText: string; + + /** + * Adds a ChartCursor object to a chart + */ + addChartCursor(cursor: ChartCursor): void; + /** + * Adds a ChartScrollbar to a chart + */ + addChartScrollbar(scrollbar: ChartScrollbar): void; + /** + * Adds a TrendLine to a chart. + * You should call chart.validateNow() after this method is called in order the trend line to be visible. + */ + addTrendLine(trendLine: TrendLine): void; + /** + * Removes cursor from the chart + */ + removeChartCursor(): void; + /** + * Removes scrollbar from the chart + */ + removeChartScrollbar(): void; + /** + * Removes a trend line from a chart. + * You should call chart.validateNow() in order the changes to be visible. + */ + removeTrendLine(trendLine: TrendLine): void; +} diff --git a/types/amcharts/AmSerialChart.d.ts b/types/amcharts/AmSerialChart.d.ts new file mode 100644 index 0000000000..422bb78b3f --- /dev/null +++ b/types/amcharts/AmSerialChart.d.ts @@ -0,0 +1,130 @@ +import AmRectangularChart from "./AmRectangularChart"; +import CategoryAxis from "./CategoryAxis"; + +/** + * AmSerialChart is the class you have to use for majority of chart types. + * The supported chart types are: line, area, column, bar, step line, smoothed line, candlestick and OHLC. + * The chart can be rotated by 90 degrees so the column chart becomes bar chart. + * The chart supports simple and logarithmic scales, it can have multiple value axes. + * The chart can place data points at equal intervals or can parse dates and place data points + * at irregular intervals. + * @example + * let chartData = [{title:"sample 1",value:130},{title:"sample 2",value:26}]; + * + * let chart = new AmCharts.AmSerialChart(); + * chart.categoryField = "title"; + * chart.dataProvider = chartData; + * + * let graph = new AmCharts.AmGraph(); + * graph.valueField = "value"; + * graph.type = "column"; + * graph.fillAlphas = 1; + * chart.addGraph(graph); + * + * chart.write("chartdiv"); + */ +export default class AmSerialChart extends AmRectangularChart { + /** + * Date format of the graph balloon (if chart parses dates and you don't use chartCursor). + * @default 'MMM DD, YYYY' + */ + balloonDateFormat: string; + /** + * Read-only. Chart creates category axis itself. + * If you want to change some properties, you should get this axis from the chart and + * set properties to this object. + */ + categoryAxis: CategoryAxis; + /** + * Category field name tells the chart the name of the field in your dataProvider object + * which will be used for category axis values. + */ + categoryField: string; + /** + * The gap in pixels between two columns of the same category. + * @default 5 + */ + columnSpacing: number; + /** + * Space between 3D stacked columns. + * @default 0 + */ + columnSpacing3D: number; + /** + * Relative width of columns. Value range is 0 - 1. + * @default 0.8 + */ + columnWidth: number; + /** + * Read-only. If category axis parses dates endDate indicates date to which the chart is currently displayed. + */ + endDate: Date; + /** + * Read-only. Category index to which the chart is currently displayed. + */ + endIndex: number; + /** + * Maximum number of series allowed to select. + */ + maxSelectedSeries: number; + /** + * The longest time span allowed to select (in milliseconds) for example + * 259200000 will limit selection to 3 days. + */ + maxSelectedTime: number; + /** + * The shortest time span allowed to select (in milliseconds) for example + * 1000 will limit selection to 1 second. + * @default 0 + */ + minSelectedTime: number; + /** + * Specifies if scrolling of a chart with mouse wheel is enabled. + * If you press shift while rotating mouse wheel, the chart will zoom-in/out. + */ + mouseWheelScrollEnabled: boolean; + /** + * Specifies if zooming of a chart with mouse wheel is enabled. + * If you press shift while rotating mouse wheel, the chart will scroll. + */ + mouseWheelZoomEnabled: boolean; + /** + * If you set this to true, the chart will be rotated by 90 degrees (the columns will become bars). + */ + rotate: boolean; + /** + * Read-only. + * If category axis parses dates startDate indicates date from which the chart is currently displayed. + */ + startDate: Date; + /** + * Read-only. Category index from which the chart is currently displayed. + */ + startIndex: number; + /** + * Specifies if chart should zoom-out when data is updated. + * @default true + */ + zoomOutOnDataUpdate: boolean; + + /** + * Number Returns index of the specified category value. + */ + getCategoryIndexByValue(value: number): void; + /** + * Zooms out, charts shows all available data. + */ + zoomOut(): void; + /** + * Zooms the chart by the value of the category axis. + */ + zoomToCategoryValues(start: Date, end: Date): void; + /** + * Zooms the chart from one date to another. + */ + zoomToDates(start: Date, end: Date): void; + /** + * Zooms the chart by the index of the category. + */ + zoomToIndexes(start: Date, end: Date): void; +} diff --git a/types/amcharts/AmStockChart.d.ts b/types/amcharts/AmStockChart.d.ts new file mode 100644 index 0000000000..b4deec4f1c --- /dev/null +++ b/types/amcharts/AmStockChart.d.ts @@ -0,0 +1,198 @@ +import AmBalloon from "./AmBalloon"; +import AmChart from "./AmChart"; +import AmSerialChart from "./AmSerialChart"; +import CategoryAxesSettings from "./CategoryAxesSettings"; +import ChartCursorSettings from "./ChartCursorSettings"; +import ChartScrollbarSettings from "./ChartScrollbarSettings"; +import DataSet from "./DataSet"; +import DataSetSelector from "./DataSetSelector"; +import LegendSettings from "./LegendSettings"; +import PanelsSettings from "./PanelSettings"; +import PeriodSelector from "./PeriodSelector"; +import StockEvent from "./StockEvent"; +import StockGraph from "./StockGraph"; +import StockPanel from "./StockPanel"; +import ValueAxesSettings from "./ValueAxesSettings"; + +/** + * AmStockChart is a main class Stock chart. + */ +export default class AmStockChart { + /** + * Specifies if animation was already played. + * Animation is only played once, when chart is rendered for the first time. + * If you want the animation to be repeated, set this property to false. + */ + animationPlayed: boolean; + /** + * Balloon object. + */ + balloon: AmBalloon; + /** + * Settings for category axes. + */ + categoryAxesSettings: CategoryAxesSettings; + /** + * Indicates if the chart is created. + */ + chartCreated: boolean; + /** + * Chart cursor settings. + */ + chartCursorSettings: ChartCursorSettings; + /** + * Chart scrollbar settings. + */ + chartScrollbarSettings: ChartScrollbarSettings; + /** + * Array of colors used by data sets if no color was set explicitly on data set itself. + * [ + * #FF6600, "#FCD202", "#B0DE09", "#0D8ECF", "#2A0CD0", "#CD0D74", "#CC0000", + * "#00CC00", "#0000CC", "#DDDDDD", "#999999", "#333333", "#990000" + * ] + */ + colors: any[]; + /** + * Array of data sets selected for comparing. + */ + comparedDataSets: any[]; + /** + * Array of DataSets. + */ + dataSets: any[]; + /** + * DataSetSelector object. + * You can add it if you have more than one data set and want users to be able to select/compare them. + */ + dataSetSelector: DataSetSelector; + /** + * Current end date of the selected period, get only. + * To set start/end dates, use stockChart.zoom(startDate, endDate) method. + */ + endDate: Date; + /** + * Defines on which day week starts. 0 - Sunday, 1 - Monday.. + * @default 1 + */ + firstDayOfWeek: number; + /** + * If set to true the scope of the data view will be set to the end after data update. + */ + glueToTheEnd: boolean; + /** + * Legend settings. + */ + legendSettings: LegendSettings; + /** + * Data set selected as main. + */ + mainDataSet: DataSet; + /** + * Array of StockPanels (charts). + */ + panels: any[]; + /** + * Settings for stock panels. + */ + panelsSettings: PanelsSettings; + /** + * Period selector object. + * You can add it if you want user's to be able to enter date ranges or + * zoom chart with predefined period buttons. + */ + periodSelector: PeriodSelector; + /** + * Scrollbar's chart object, get only. + */ + scrollbarChart: AmSerialChart; + /** + * Current start date of the selected period, get only. + * To set start/end dates, use stockChart.zoom(startDate, endDate) method. + */ + startDate: Date; + /** + * Settings for stock events. + */ + stockEventsSettings: any; + /** + * Settings for value axes. + */ + valueAxesSettings: ValueAxesSettings; + /** + * read-only. Indicates current version of a script. + */ + version: string; + /** + * Specifies whether the chart should zoom-out when main data set is changed. + */ + zoomOutOnDataSetChange: boolean; + + /** + * Adds panel to the stock chart. Requires stockChart.validateNow() method to be called after this action. + */ + addPanel(panel: StockPanel): void; + /** + * Adds panel to the stock chart at a specified index. + * Requires stockChart.validateNow() method to be called after this action. + */ + addPanelAt(panel: StockPanel, index: number): void; + /** + * Destroys chart, all timeouts and listeners. + */ + clear(): void; + /** + * Hides event bullets. + */ + hideStockEvents(): void; + /** + * Removes panel from the stock chart. Requires stockChart.validateNow() method to be called after this action. + */ + removePanel(panel: StockPanel): void; + /** + * Shows event bullets. + */ + showStockEvents(): void; + /** + * Method which should be called after data was changed. + */ + validateData(): void; + /** + * Method which forces the stock chart to rebuild. Should be called after properties are changed. + */ + validateNow(): void; + /** + * Zooms chart to specified dates. startDate, endDate - Date objects. + */ + zoom(startDate: Date, endDate: Date): void; + /** + * Zooms out the chart. + */ + zoomOut(): void; + /** + * Adds event listener. + * @param type - One of + * "buildStarted", "clickStockEvent", "dataUpdated", "init", "panelRemoved", "rendered", "rollOutStockEvent", + * "rollOverStockEvent", "zoomed". + * @param handler - The event handler. + */ + addListener( + type: string, + handler: ( + e: { + chart: AmStockChart; + date?: Date; + endDate?: Date; + eventObject?: StockEvent; + graph?: StockGraph; + panel?: StockPanel; + period?: string; + startDate?: Date; + type: string; + }, + ) => void, + ): void; + /** + * Removes event listener from chart object. + */ + removeListener(chart: AmChart, type: string, handler: any): void; +} diff --git a/types/amcharts/AmXYChart.d.ts b/types/amcharts/AmXYChart.d.ts new file mode 100644 index 0000000000..04b61e7d86 --- /dev/null +++ b/types/amcharts/AmXYChart.d.ts @@ -0,0 +1,68 @@ +import AmRectangularChart from "./AmRectangularChart"; + +/** + * AmXYChart is the class you have to use for XY/Bubble/Scatter chart types. + * The chart supports simple and logarithmic scales, it can have multiple value axes. + * @example + * let chartData = [ + * {x:10, y:14, value:59}, + * {x:5, y:3, value:50}, + * {x:-10, y:-3, value:19}, + * {x:-6, y:5, value:65}, + * {x:15, y:-4, value:92}, + * {x:13, y:1, value:8}, + * {x:1, y:6, value:35} + * ]; + * + * let chart = new AmCharts.AmXYChart(); + * chart.pathToImages = "../../amcharts/javascript/images/"; + * chart.dataProvider = chartData; + * chart.marginLeft = 35; + * chart.startDuration = 1.5; + * + * let xAxis = new AmCharts.ValueAxis(); + * xAxis.position = "left"; + * xAxis.autoGridCount = true; + * chart.addValueAxis(xAxis); + * + * let yAxis = new AmCharts.ValueAxis(); + * yAxis.position = "bottom"; + * yAxis.autoGridCount = true; + * chart.addValueAxis(yAxis); + * + * let graph = new AmCharts.AmGraph(); + * graph.valueField = "value"; + * graph.xField = "x"; + * graph.yField = "y"; + * graph.lineAlpha = 0; + * graph.bullet = "round"; + * chart.addGraph(graph); + * + * let chartCursor = new AmCharts.ChartCursor(); + * chart.addChartCursor(chartCursor); + * + * let chartScrollbar = new AmCharts.ChartScrollbar(); + * chartScrollbar.hideResizeGrips = false; + * chart.addChartScrollbar(chartScrollbar); + * + * chart.write("chartdiv); + */ +export default class AmXYChart extends AmRectangularChart { + /** + * Specifies if Scrollbar of X axis (horizontal) should be hidden. + */ + hideXScrollbar: boolean; + /** + * Specifies if Scrollbar of Y axis (vertical) should be hidden. + */ + hideYScrollbar: boolean; + /** + * Maximum zoom factor of the chart. + * @default 20 + */ + maxZoomFactor: number; + /** + * Zooms out, charts shows all available data. + */ + zoomOut(): void; +} diff --git a/types/amcharts/AreasSettings.d.ts b/types/amcharts/AreasSettings.d.ts new file mode 100644 index 0000000000..88b309558a --- /dev/null +++ b/types/amcharts/AreasSettings.d.ts @@ -0,0 +1,92 @@ +/** + * AreasSettings is a class which holds common settings of all MapArea objects. + */ +export default class AreasSettings { + /** + * Opacity of areas. + * @default 1 + */ + alpha: number; + /** + * Specifies if the areas should be zoomed-in when user clicks on them, event if zoom properties are not set. + */ + autoZoom: boolean; + /** + * Text which is displayed in a roll-over balloon. You can use the following tags: + * [[title]], [[description]], [[value]] and [[percent]] [[title]] + */ + balloonText: string; + /** + * Color of the areas. + * @default "#FFCC00" + */ + color: string; + /** + * Color of area with highest value. + * Colors for areas with values less then highest will be colored with intermediate colors + * between color and colorSolid. + * Use colorSteps property of AmMap to change the number of intermediate colors. + * @default "#990000" + */ + colorSolid: string; + /** + * Height of a description window. + */ + descriptionWindowHeight: number; + /** + * Width of a description window. + * @default 250 + */ + descriptionWindowWidth: number; + /** + * X position of a description window. + */ + descriptionWindowX: number; + /** + * Y position of a description window. + */ + descriptionWindowY: number; + /** + * Opacity of area's outline. + * @default 1 + */ + outlineAlpha: number; + /** + * Color of area's outline. #FFFFFF + */ + outlineColor: string; + /** + * Thickness of area's outline. 0.5 + */ + outlineThickness: number; + /** + * Color of area when user rolls-over it. undefined + */ + rollOverColor: string; + /** + * Color of area's outline when user rolls-over it. #CC0000 + */ + rollOverOutlineColor: string; + /** + * Color of area which is currently selected. #CC0000 + */ + selectedColor: string; + /** + * Opacity of all areas which are in the map svg file, but not listed as areas in DataSet. + * @default 1 + */ + unlistedAreasAlpha: number; + /** + * Color of all areas which are in the map svg file, but not listed as areas in DataSet. #DDDDDD + */ + unlistedAreasColor: string; + /** + * Opacity of all areas' outline which are in the map svg file, but not listed as areas in DataSet. + * @default 1 + */ + unlistedAreasOutlineAlpha: number; + /** + * Color of all areas' outline which are in the map svg file, but not listed as areas in DataSet. #FFFFFF + */ + unlistedAreasOutlineColor: string; +} diff --git a/types/amcharts/AxisBase.d.ts b/types/amcharts/AxisBase.d.ts new file mode 100644 index 0000000000..67fd0dd333 --- /dev/null +++ b/types/amcharts/AxisBase.d.ts @@ -0,0 +1,148 @@ +import Guide from "./Guide"; + +/** + * AxisBase is the base class for ValueAxis and CategoryAxis. It can not be instantiated explicitly. + */ +export default class AxisBase { + /** + * Specifies whether number of gridCount is specified automatically, acoarding to the axis size. + * @default true + */ + autoGridCount: boolean; + /** + * Axis opacity. Value range is 0 - 1. + * @default 1 + */ + axisAlpha: number; + /** + * Axis color. #000000 + */ + axisColor: string; + /** + * Thickness of the axis. + * @default 1 + */ + axisThickness: number; + /** + * Color of axis value labels. Will use chart's color if not set. + */ + color: string; + /** + * Length of a dash. 0 means line is not dashed. + */ + dashLength: number; + /** + * Fill opacity. Every second space between grid lines can be filled with color. + * Set fillAlpha to a value greater than 0 to see the fills. + */ + fillAlpha: number; + /** + * Fill color. Every second space between grid lines can be filled with color. + * Set fillAlpha to a value greater than 0 to see the fills. + * @default "#FFFFFF" + */ + fillColor: string; + /** + * Size of value labels text. Will use chart's fontSize if not set. + */ + fontSize: string; + /** + * Opacity of grid lines. 0.2 + */ + gridAlpha: number; + /** + * Color of grid lines. #000000 + */ + gridColor: string; + /** + * Number of grid lines. In case this is value axis, or your categoryAxis parses dates, + * the number is approximate. The default value is 5. If you set autoGridCount to true, + * this property is ignored. + * @default 5 + */ + gridCount: number; + /** + * Thickness of grid lines. + * @default 1 + */ + gridThickness: number; + /** + * The array of guides belonging to this axis. + */ + guides: any[]; + /** + * If autoMargins of a chart is set to true, but you want this axis not to be measured when calculating margin, + * set ignoreAxisWidth to true. + */ + ignoreAxisWidth: boolean; + /** + * Specifies whether values should be placed inside or outside plot area. + */ + inside: boolean; + /** + * Frequency at which labels should be placed. Doesn't work for CategoryAxis if parseDates is set to true. + * @default 1 + */ + labelFrequency: number; + /** + * Rotation angle of a label. Only horizontal axis' values can be rotated. + * If you set this for vertical axis, the setting will be ignored. + */ + labelRotation: number; + /** + * Specifies whether axis displays category axis' labels and value axis' values. + * @default true + */ + labelsEnabled: boolean; + /** + * The distance of the axis to the plot area, in pixels. Negative values can also be used. + */ + offset: number; + /** + * Possible values are: "top", "bottom", "left", "right". + * If axis is vertical, default position is "left". + * If axis is horizontal, default position is "bottom". + */ + position: string; + /** + * Whether to show first axis label or not. + * @default true + */ + showFirstLabel: boolean; + /** + * Whether to show last axis label or not. + * @default true + */ + showLastLabel: boolean; + /** + * Length of the tick marks. + * @default 5 + */ + tickLength: number; + /** + * Title of the axis. + */ + title: string; + /** + * Specifies if title should be bold or not. + * @default true + */ + titleBold: boolean; + /** + * Color of axis title. Will use text color of chart if not set any. + */ + titleColor: string; + /** + * Font size of axis title. Will use font size of chart plus two pixels if not set any. + */ + titlefontSize: string; + + /** + * Adds guide to the axis. + */ + addGuide(guide: Guide): void; + /** + * Removes guide from the axis. + */ + removeGuide(guide: Guide): void; +} diff --git a/types/amcharts/CategoryAxesSettings.d.ts b/types/amcharts/CategoryAxesSettings.d.ts new file mode 100644 index 0000000000..f1ff10bda4 --- /dev/null +++ b/types/amcharts/CategoryAxesSettings.d.ts @@ -0,0 +1,135 @@ +/** + * CategoryAxesSettings settings set's settings common for all CategoryAxes of StockPanels. + * If you change a property after the chart is initialized, you should call stockChart.validateNow() method in + * order for it to work. If there is no default value specified, default value of CategoryAxis class will be used. + */ +export default class CategoryAxesSettings { + /** + * Specifies whether number of gridCount is specified automatically, according to the axis size. + * @default true + */ + autoGridCount: boolean; + /** + * Axis opacity. + */ + axisAlpha: number; + /** + * Axis color. + */ + axisColor: string; + /** + * Height of category axes. Set it to 0 if you set inside property to true. + * @default 28 + */ + axisHeight: number; + /** + * Thickness of the axis. + */ + axisThickness: number; + /** + * Text color. + */ + color: string; + /** + * Length of a dash. + */ + dashLength: number; + /** + * Date formats of different periods. + * Possible period values: + * fff - milliseconds, + * ss - seconds, + * mm - minutes, + * hh - hours, + * DD - days, + * MM - months, + * WW - weeks, + * YYYY - years + * Check this page for date formatting strings. + */ + dateFormats: any[]; + /** + * If you want data points to be placed at equal intervals (omiting dates with no data), + * set equalSpacing to true. + */ + equalSpacing: boolean; + /** + * Fill opacity. Every second space between grid lines can be filled with fillColor. + */ + fillAlpha: number; + /** + * Fill color. Every second space between grid lines can be filled with color. + * Set fillAlpha to a value greater than 0 to see the fills. + */ + fillColor: string; + /** + * Text size. + */ + fontSize: string; + /** + * Opacity of grid lines. + */ + gridAlpha: number; + /** + * Color of grid lines. + */ + gridColor: string; + /** + * Approximate number of grid lines. + * You should set autoGridCount to false in order this property not to be ignored. + * @default 10 + */ + gridCount: number; + /** + * Thickness of grid lines. + */ + gridThickness: number; + /** + * Periods to which data will be gruoped in case there are more data items in + * the selected period than specified in maxSeries property. + * ["ss", "10ss", "30ss", "mm", "10mm", "30mm", "hh", "DD", "WW", "MM", "YYYY"] + */ + groupToPeriods: any[]; + /** + * Specifies whether values should be placed inside or outside of plot area. + */ + inside: boolean; + /** + * Rotation angle of a label. + */ + labelRotation: number; + /** + * Maximum series shown at a time. + * In case there are more data points in the selection than maxSeries, + * the chart will group data to longer periods, for example - you have 250 days in the selection, + * and maxSeries is 150 - the chart will group data to weeks. + * @default 150 + */ + maxSeries: number; + /** + * Specifies the shortest period of your data. + * fff - millisecond, + * ss - second, + * mm - minute, + * hh - hour, + * DD - day, + * MM - month, + * YYYY - year + * @default "DD" + */ + minPeriod: string; + /** + * top or "bottom". + */ + position: string; + /** + * Specifies whether the graph should start on axis or not. + * In case you display columns, it is recommended to set this to false. + * startOnAxis can be set to true only if equalSpacing is set to true. + */ + startOnAxis: boolean; + /** + * Tick length. + */ + tickLength: number; +} diff --git a/types/amcharts/CategoryAxis.d.ts b/types/amcharts/CategoryAxis.d.ts new file mode 100644 index 0000000000..18510f0257 --- /dev/null +++ b/types/amcharts/CategoryAxis.d.ts @@ -0,0 +1,106 @@ +import AxisBase from "./AxisBase"; + +export default class CategoryAxis extends AxisBase { + /** + * When parse dates is on for the category axis, the chart will try to highlight the beginning of the periods, + * like month, in bold. Set this to false to disable the functionality. + * @default true + */ + boldPeriodBeginning: boolean; + /** + * Date formats of different periods. Possible period values: + * fff - milliseconds, ss - seconds, mm - minutes, hh - hours, DD - days, MM - months, WW - weeks, YYYY - years. + * Check this page for date formatting strings. + * [ + * {period:'fff',format:'JJ:NN:SS'}, + * {period:'ss',format:'JJ:NN:SS'}, + * {period:'mm',format:'JJ:NN'}, + * {period:'hh',format:'JJ:NN'}, + * {period:'DD',format:'MMM DD'}, + * {period:'WW',format:'MMM DD'}, + * {period:'MM',format:'MMM'}, + * {period:'YYYY',format:'YYYY'} + * ] + */ + dateFormats: any[]; + /** + * In case your category axis values are Date objects and parseDates is set to true, + * the chart will parse dates and will place your data points at irregular intervals. + * However if you want dates to be parsed (displayed on the axis, baloons, etc), + * but data points to be placed at equal intervals (omiting dates with no data), set equalSpacing to true. + */ + equalSpacing: boolean; + /** + * Field in data provider which specifies if the category value should always be shown. + * For example: categoryAxis.forceShowField = "forceShow"; + * Field in data provider which specifies if the category value should always be shown. + * For example: categoryAxis.forceShowField = "forceShow"; + * And in data: + * {category:"one", forceShow:true, value:100} + * Note, this works only when parseDates is set to false. + */ + forceShowField: string; + /** + * 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. + * @default "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. + * @default "DD" + */ + minPeriod: string; + /** + * In case your category axis values are Date objects, set this to true. + * In this case the chart will parse dates and will place your data points at irregular intervals. + * If you want dates to be parsed, but data points to be placed at equal intervals, + * set both parseDates and equalSpacing to true. + */ + parseDates: boolean; + /** + * 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. + */ + categoryToCoordinate(category: string): void; + /** + * date - Date object Returns Date of the coordinate, in case parseDates is set to true and + * equalSpacing is set to false. + */ + coordinateToDate(coordinate: number): void; + /** + * Number Returns coordinate of the date, in case parseDates is set to true. + * If parseDates is false, use categoryToCoordinate method. + */ + dateToCoordinate(date: Date): void; + /** + * Number Returns index of the category which is most close to specified coordinate. + */ + xToIndex(x: number): void; +} diff --git a/types/amcharts/ChartCursor.d.ts b/types/amcharts/ChartCursor.d.ts new file mode 100644 index 0000000000..f2523c150b --- /dev/null +++ b/types/amcharts/ChartCursor.d.ts @@ -0,0 +1,149 @@ +import AmChart from "./AmChart"; +import AmGraph from "./AmGraph"; + +/** + * ChartCursor is a class which displays a cursor which follows the mouse. + * In case of Serial chart it also shows value and category balloons. + * @example + * let chart = new AmCharts.AmSerialChart(); + * let chartCursor = new AmCharts.ChartCursor(); + * chart.addChartCursor(chartCursor); + */ +export default class ChartCursor { + /** + * Specifies if bullet for each graph will follow the cursor. + */ + bulletsEnabled: boolean; + /** + * Size of bullets, following the cursor. + * @default 8 + */ + bulletSize: number; + /** + * Opacity of the category balloon. + * @default 1 + */ + categoryBalloonAlpha: number; + /** + * Color of the category balloon. cursorColor is used if not set. + */ + categoryBalloonColor: string; + /** + * Category balloon date format (used only if category axis parses dates). + * Check this page for instructions on how to format dates. MMM DD, YYYY + */ + categoryBalloonDateFormat: string; + /** + * Specifies whether category balloon is enabled. + * @default true + */ + categoryBalloonEnabled: boolean; + /** + * Text color. #FFFFFF + */ + color: string; + /** + * Opacity of the cursor line. 1 + */ + cursorAlpha: number; + /** + * Color of the cursor line. #CC0000 + */ + cursorColor: string; + /** + * Specifies where the cursor line should be placed - on the beginning of the period (day, hour, etc) or + * in the middle (only when parseDates property of categoryAxis is set to true). + * If you want the cursor to follow mouse and not to glue to the nearest data point, set "mouse" here. + * Possible values are: "start", "middle", "mouse". + */ + cursorPosition: string; + /** + * Specifies whether cursor is enabled. + * @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. + */ + pan: boolean; + /** + * Opacity of the selection. + */ + selectionAlpha: number; + /** + * Specifies if cursor should only mark selected area but not zoom-in after user releases mouse button. + */ + selectWithoutZooming: boolean; + /** + * Specifies whether value balloons are enabled. + * In case they are not, the balloons might be displayed anyway, when the user rolls-over the column or bullet. + * @default true + */ + valueBalloonsEnabled: boolean; + /** + * Specifies if the user can zoom-in the chart. + * If pan is set to true, zoomable is switched to false automatically. + * @default true + */ + zoomable: boolean; + /** + * Indicates if currently user is selecting some chart area to zoom-in. + */ + zooming: boolean; + + /** + * Hides cursor. + */ + hideCursor(): void; + /** + * You can force cursor to appear at specified cateogry or date. + */ + showCursorAt(category: string | Date): void; + /** + * Adds event listener. + * @param type One of "changed", "draw", "moved", "onHideCursor", "onShowCursor", "panning", + * "selected", "zoomed", "zoomStarted". + * @param handler The event handler. + */ + addListener( + type: string, + handler: ( + e: { + chart: AmChart; + delta2X?: number; + delta2Y?: number; + deltaX?: number; + deltaY?: number; + end?: number; + finalX?: number; + finalY?: number; + index?: number; + initialX?: number; + initialY?: number; + mostCloseGraph?: AmGraph; + start?: number; + target?: ChartCursor; + type: string; + x?: number; + y?: number; + zooming?: boolean; + }, + ) => void, + ): void; + + /** + * Removes event listener from chart object. + */ + removeListener(chart: AmChart, type: string, handler: any): void; +} diff --git a/types/amcharts/ChartCursorSettings.d.ts b/types/amcharts/ChartCursorSettings.d.ts new file mode 100644 index 0000000000..b8664acc3c --- /dev/null +++ b/types/amcharts/ChartCursorSettings.d.ts @@ -0,0 +1,81 @@ +/** + * ChartCursorSettings settings set's settings for chart cursor. + * If you change a property after the chart is initialized, you should call stockChart.validateNow() method + * in order for it to work. If there is no default value specified, default value of ChartCursor class will be used. + */ +export default class ChartCursorSettings { + /** + * Specifies if bullet for each graph will follow the cursor. + */ + bulletsEnabled: boolean; + /** + * Size of bullets, following the cursor. + */ + bulletSize: number; + /** + * Opacity of the category balloon. + */ + categoryBalloonAlpha: number; + /** + * Color of the category balloon. + */ + categoryBalloonColor: string; + /** + * Array of date format objects. Date format object must have "period" and "format" items. + * Available periods are: + * fff - millisecond, + * ss - second, + * mm - minute, + * hh - hour, + * DD - date, + * WW - week, + * MM - month, + * YYYY - year + * [ + * {period:"YYYY", format:"YYYY"}, + * {period:"MM", format:"MMM, YYYY"}, + * {period:"WW", format:"MMM DD, YYYY"}, + * {period:"DD", format:"MMM DD, YYYY"}, + * {period:"hh", format:"JJ:NN"}, + * {period:"mm", format:"JJ:NN"}, + * {period:"ss", format:"JJ:NN:SS"}, + * {period:"fff", format:"JJ:NN:SS"} + * ] + */ + categoryBalloonDateFormats: any[]; + /** + * Specifies whether category balloon is enabled. + */ + categoryBalloonEnabled: boolean; + /** + * Opacity of the cursor line. + */ + cursorAlpha: number; + /** + * Color of the cursor line. + */ + cursorColor: string; + /** + * Possible values: "start", "middle" and "mouse". + */ + cursorPosition: string; + /** + * Set this to "false" if you don't want chart cursor to appear in your charts. + * @default true + */ + enabled: boolean; + /** + * If this is set to true, the user will be able to pan the chart instead of zooming. + */ + pan: boolean; + /** + * Specifies whether value balloons are enabled. + * In case they are not, the balloons might be displayed anyway, when the user rolls-over the column or bullet. + */ + valueBalloonsEnabled: boolean; + /** + * Specifies if the user can zoom-in the chart. + * If pan is set to true, zoomable is switched to false automatically. + */ + zoomable: boolean; +} diff --git a/types/amcharts/ChartScrollbar.d.ts b/types/amcharts/ChartScrollbar.d.ts new file mode 100644 index 0000000000..217d6763d9 --- /dev/null +++ b/types/amcharts/ChartScrollbar.d.ts @@ -0,0 +1,121 @@ +import AmGraph from "./AmGraph"; +import CategoryAxis from "./CategoryAxis"; + +/** + * ChartScrollbar class displays chart scrollbar. Supported by AmSerialChart and AmXYChart. + * @example + * let chart = new AmCharts.AmSerialChart(); + * let chartScrollbar = new AmCharts.ChartScrollbar(); + * chart.addChartScrollbar(chartScrollbar); + */ +export default class ChartScrollbar { + /** + * Specifies whether number of gridCount is specified automatically, acoarding to the axis size. + */ + autoGridCount: boolean; + /** + * Background opacity. + * @default 1 + */ + backgroundAlpha: number; + /** + * Background color of the scrollbar. + * @default #D4D4D4 + */ + backgroundColor: string; + /** + * Read-only. Category axis of the scrollbar. + */ + categoryAxis: CategoryAxis; + /** + * Text color. Will use chart's color if not set. + */ + color: string; + /** + * Specifies which graph will be displayed in the scrollbar. Only Serial chart's scrollbar can display a graph. + */ + graph: AmGraph; + /** + * Graph fill opacity. Value range is 0 - 1. 0.1 + */ + graphFillAlpha: number; + /** + * Graph fill color. #000000 + */ + graphFillColor: string; + /** + * Graph line opacity. Value range is 0 - 1. + */ + graphLineAlpha: number; + /** + * Graph line color. #000000 + */ + graphLineColor: string; + /** + * By default the graph type is the same as the original graph's type, + * however in case of "candlestick" or "ohlc" you might want to show line graph in the scrollbar. + * Possible values are: "line", "column", "step", "smoothedLine", "candlestick", "ohlc". + */ + graphType: string; + /** + * Grid opacity. Value range is 0 - 1. 0.7 + */ + gridAlpha: number; + /** + * Grid color. #FFFFFF + */ + gridColor: string; + /** + * The number of grid lines. + */ + gridCount: number; + /** + * Specifies whether resize grips are hidden when mouse is away from the scrollbar. + */ + hideResizeGrips: boolean; + /** + * Specifies whether scrollbar has a resize feature. + * @default true + */ + resizeEnabled: boolean; + /** + * Height (width, if chart is rotated) of a scrollbar. + * @default 20 + */ + scrollbarHeight: number; + /** + * Duration of scrolling, when the user clicks on scrollbar's background, in seconds. + * @default 2 + */ + scrollDuration: number; + /** + * Selected backround opacity. + * @default 1 + */ + selectedBackgroundAlpha: number; + /** + * Selected background color. #EFEFEF + */ + selectedBackgroundColor: string; + /** + * Selected graph's fill opacity. Value range is 0 - 1. 0.5 + */ + selectedGraphFillAlpha: number; + /** + * Selected graph's fill color. #000000 + */ + selectedGraphFillColor: string; + /** + * Selected graph's line opacity. Value range is 0 - 1. + */ + selectedGraphLineAlpha: number; + /** + * Selected graph's line color. #000000 + */ + selectedGraphLineColor: string; + /** + * Specifies if the chart should be updated while dragging/resizing the scrollbar or only at the moment + * when user releases mouse button. + */ + updateOnReleaseOnly: boolean; +} diff --git a/types/amcharts/ChartScrollbarSettings.d.ts b/types/amcharts/ChartScrollbarSettings.d.ts new file mode 100644 index 0000000000..a481792ea6 --- /dev/null +++ b/types/amcharts/ChartScrollbarSettings.d.ts @@ -0,0 +1,117 @@ +import AmGraph from "./AmGraph"; + +/** + * ChartScrollbarSettings settings set's settings for chart scrollbar. + * If you change a property after the chart is initialized, you should call stockChart.validateNow() method in + * order for it to work. If there is no default value specified, default value of ChartScrollbar class will be used. + */ +export default class ChartScrollbarSettings { + /** + * Specifies whether number of gridCount is specified automatically, according to the axis size. + * @default true + */ + autoGridCount: boolean; + /** + * Background opacity. + */ + backgroundAlpha: number; + /** + * Background color of the scrollbar. + */ + backgroundColor: string; + /** + * Text color. + */ + color: string; + /** + * Set false if you don't need scrollbar. + * @default true + */ + enabled: boolean; + /** + * Font size. + */ + fontSize: string; + /** + * Specifies which graph will be displayed in the scrollbar. + */ + graph: AmGraph; + /** + * Graph fill opacity. + */ + graphFillAlpha: number; + /** + * Graph fill color. + */ + graphFillColor: string; + /** + * Graph line opacity. + */ + graphLineAlpha: number; + /** + * Graph line color. + */ + graphLineColor: string; + /** + * Type of chart scrollbar's graph. + * By default the graph type is the same as the original graph's type, however in case of "candlestick" or + * "ohlc" you might want to show line graph in the scrollbar. + * Possible values are: line, column, step, smoothedLine, candlestick, ohlc. + */ + graphType: string; + /** + * Grid opacity. + */ + gridAlpha: number; + /** + * Grid color. + */ + gridColor: string; + /** + * Grid count. You should set autoGridCount to false in order this property to work. + */ + gridCount: number; + /** + * Height of scrollbar, in pixels. + * @default 40 + */ + height: number; + /** + * Specifies whether resize grips are hidden when mouse is away from the scrollbar. + */ + hideResizeGrips: boolean; + /** + * Duration of scrolling, when the user clicks on scrollbar's background, in seconds. + */ + scrollDuration: number; + /** + * Selected background opacity. + */ + selectedBackgroundAlpha: number; + /** + * Selected background color. + */ + selectedBackgroundColor: string; + /** + * Selected graph'sfill opacity. + */ + selectedGraphFillAlpha: number; + /** + * Selected graph'sfill color. + */ + selectedGraphFillColor: string; + /** + * Selected graph'sline opacity. + */ + selectedGraphLineAlpha: number; + /** + * Selected graph's line color. + */ + selectedGraphLineColor: string; + /** + * Specifies if the chart should be updated while dragging/resizing the scrollbar or only at the moment when + * user releases mouse button. Usefull when working with large data sets. + * @default true + */ + updateOnReleaseOnly: boolean; +} diff --git a/types/amcharts/DataSet.d.ts b/types/amcharts/DataSet.d.ts new file mode 100644 index 0000000000..a5a9690662 --- /dev/null +++ b/types/amcharts/DataSet.d.ts @@ -0,0 +1,50 @@ +import StockEvent from "./StockEvent"; + +/** + * DataSet is objects which holds all information about data. + */ +export default class DataSet { + /** + * Category field name in your dataProvider. + */ + categoryField: string; + /** + * Color of the data set. One of colors from AmStockChart.colors array will be used if not set. + */ + color: string; + /** + * Whether this data set is selected for comparing. + * If you change this property, you should call stockChart.validateData() method + * in order the changes to be applied. + */ + compared: boolean; + /** + * Data provider of the data set. + */ + dataProvider: any[]; + /** + * Array of field mappings. Field mapping is an object with fromField and toField properties. + * fromField is a name of your value field in dataProvider. + * toField might be chosen freely, it will be used to set value/open/close/high/low fields for the StockGraph. + * Example: {fromField:"val1", toField:"value"}. + */ + fieldMappings: any[]; + /** + * Specifies whether this data set should be visible in "compare to" list. + * @default true + */ + showInCompare: boolean; + /** + * Specifies whether this data set should be visible in "select" dropdown. + * @default true + */ + showInSelect: boolean; + /** + * Array of StockEvent objects. + */ + stockEvents: StockEvent[]; + /** + * DataSet title. + */ + title: string; +} diff --git a/types/amcharts/DataSetSelector.d.ts b/types/amcharts/DataSetSelector.d.ts new file mode 100644 index 0000000000..8dfb1ed905 --- /dev/null +++ b/types/amcharts/DataSetSelector.d.ts @@ -0,0 +1,33 @@ +/** + * DataSetSelector is a tool for selecting data set's as main and for comparing with main data set. + */ +export default class DataSetSelector { + /** + * Text displayed in the "compare to" combobox (when position is "top" or "bottom"). Select... + */ + comboBoxSelectText: string; + /** + * Text displayed near "compare to" list. Compare to: + */ + compareText: string; + /** + * The maximum height of the Compare to field in pixels. + * @default 150 + */ + listHeight: number; + /** + * Possible values: "right", "left", "top", "bottom". "top" and "bottom" positions has a limitation - + * only one data set can be selected for comparing. + * @default "left" + */ + position: string; + /** + * Text displayed near "Select" dropDown. Select: + */ + selectText: string; + /** + * Width of a Data set selector, when position is "left" or "right". + * @default 180 + */ + width: number; +} diff --git a/types/amcharts/ExportSettings.d.ts b/types/amcharts/ExportSettings.d.ts new file mode 100644 index 0000000000..f4422cfed2 --- /dev/null +++ b/types/amcharts/ExportSettings.d.ts @@ -0,0 +1,11 @@ +/** + * Seems like this is meant: https://github.com/amcharts/export + */ +export default class ExportSettings { + enabled: boolean; + libs: object; + menu: object; + config: any; + capture(config: any, callback: () => void): any; + toJPG(config: any, callback: (config: any) => void): any; +} diff --git a/types/amcharts/GaugeArrow.d.ts b/types/amcharts/GaugeArrow.d.ts new file mode 100644 index 0000000000..59d82e576f --- /dev/null +++ b/types/amcharts/GaugeArrow.d.ts @@ -0,0 +1,92 @@ +import GaugeAxis from "./GaugeAxis"; + +export default class GaugeArrow { + /** + * Opacity of an arrow. + * @default 1 + */ + alpha: number; + + /** + * Axis of the arrow. You can use reference to the axis or id of the axis. + * If you don't set any axis, the first axis of a chart will be used. + * @default GaugeAxis + */ + axis: GaugeAxis; + + /** + * Opacity of arrow border. + * @default 1 + */ + borderAlpha: number; + + /** + * In case you need the arrow to rotate only clock-wise, set this property to true. + * @default false + */ + clockWiseOnly: boolean; + + /** + * Color of an arrow. + * @default #000000 + */ + color: string; + + /** + * Unique id of an arrow. + */ + id: string; + + /** + * Inner radius of an arrow. + * @default 0 + */ + innerRadius: any; + + /** + * Opacity of a nail, holding the arrow. + * @default 1 + */ + nailAlpha: number; + + /** + * Opacity of nail border. + * @default 0 + */ + nailBorderAlpha: number; + + /** + * Thickness of nail border. + * @default 1 + */ + nailBorderThickness: number; + + /** + * Radius of a nail, holding the arrow. + * @default 8 + */ + nailRadius: number; + + /** + * Radius of an arrow. + * @default '90%' + */ + radius: any; + + /** + * Width of arrow root. + * @default 8 + */ + startWidth: number; + + /** + * Value to which the arrow should point at. + */ + value: number; + + /** + * Sets value for the arrow. + * Arrow will animate to this value if you do it after chart is written to it's container. + */ + setValue(value: number): void; +} diff --git a/types/amcharts/GaugeAxis.d.ts b/types/amcharts/GaugeAxis.d.ts new file mode 100644 index 0000000000..e9bcf979e4 --- /dev/null +++ b/types/amcharts/GaugeAxis.d.ts @@ -0,0 +1,312 @@ +import AmChart from "./AmChart"; +import GaugeBand from "./GaugeBand"; + +export default class GaugeAxis { + /** + * Axis opacity. + * @default 1 + */ + axisAlpha: number; + + /** + * Axis color. + * @default #000000 + */ + axisColor: string; + + /** + * Thickness of the axis outline. + * @default 1 + */ + axisThickness: number; + + /** + * Opacity of band fills. + * @default 1 + */ + bandAlpha: number; + + /** + * Example: [-0.2, 0, -0.2]. Will make bands to be filled with color gradients. + * Negative value means the color will be darker than the original, + * and positive number means the color will be lighter. + * @default [] + */ + bandGradientRatio: [number]; + + /** + * Opacity of band outlines. + * @default 0 + */ + bandOutlineAlpha: number; + + /** + * Color of band outlines. + * @default #000000 + */ + bandOutlineColor: string; + + /** + * Thickness of band outlines. + * @default 0 + */ + bandOutlineThickness: number; + + /** + * Array of bands - GaugeBand objects. Bands are used to draw color fills between specified values. + */ + bands: [GaugeBand]; + + /** + * Text displayed below the axis center. + */ + bottomText: string; + + /** + * Specifies if text should be bold. + * @default true + */ + bottomTextBold: boolean; + + /** + * Bottom text color. + */ + bottomTextColor: string; + + /** + * Font size of bottom text. + */ + bottomTextFontSize: number; + + /** + * Y offset of bottom text. + * @default 0 + */ + bottomTextYOffset: number; + + /** + * X position of the axis, relative to the center of the gauge. + * @default '0%' + */ + centerX: any; + + /** + * Y position of the axis, relative to the center of the gauge. + * @default '0%' + */ + centerY: any; + + /** + * Specifies labels color of the axis. + */ + color: string; + + /** + * Axis end angle. Valid values are from - 180 to 180. + * @default 120 + */ + endAngle: number; + + /** + * Axis end (max) value + */ + endValue: number; + + /** + * Font size for axis labels. + */ + fontSize: number; + + /** + * Number of grid lines. Note, GaugeAxis doesn't adjust gridCount, + * so you should check your values and choose a proper gridCount which would result grids at round numbers. + * @default 5 + */ + gridCount: number; + + /** + * Specifies if grid should be drawn inside or outside the axis. + * @default true + */ + gridInside: boolean; + + /** + * Unique id of an axis. + */ + id: any; + + /** + * Specifies if labels should be placed inside or outside the axis. + * @default true + */ + inside: boolean; + + /** + * Frequency of labels. + * @default 1 + */ + labelFrequency: number; + + /** + * You can use this function to format axis labels. + * This function is called and value is passed as a attribute: labelFunction(value); + */ + labelFunction: (value: number) => string; + + /** + * Distance from axis to the labels. + * @default 15 + */ + labelOffset: number; + + /** + * Specifies if labels on the axis should be shown. + * @default true + */ + labelsEnabled: boolean; + + /** + * You can add listeners of events using this property. + * Example: listeners = [{"event":"clickBand", "method":handleClick}]; + */ + listeners: object[]; + + /** + * Interval, at which minor ticks should be placed. + */ + minorTickInterval: number; + + /** + * Length of a minor tick. + * @default 5 + */ + minorTickLength: number; + + /** + * Axis radius. + * @default '95%' + */ + radius: any; + + /** + * Specifies if the first label should be shown. + * @default true + */ + showFirstLabel: boolean; + + /** + * Specifies if the last label should be shown. + * @default true + */ + showLastLabel: boolean; + + /** + * Axis start angle. Valid values are from - 180 to 180. + * @default -120 + */ + startAngle: number; + + /** + * Axis start (min) value. + * @default 0 + */ + startValue: number; + + /** + * Opacity of axis ticks. + * @default 1 + */ + tickAlpha: number; + + /** + * Color of axis ticks. + * @default #555555 + */ + tickColor: string; + + /** + * Length of a major tick. + * @default 10 + */ + tickLength: number; + + /** + * Tick thickness. + * @default 1 + */ + tickThickness: number; + + /** + * Text displayed above the axis center. + */ + topText: string; + + /** + * Specifies if text should be bold. + * @default true + */ + topTextBold: boolean; + + /** + * Color of top text. + */ + topTextColor: string; + + /** + * Font size of top text. + */ + topTextFontSize: number; + + /** + * Y offset of top text. + * @default 0 + */ + topTextYOffset: number; + + /** + * A string which can be placed next to axis labels. + */ + unit: string; + + /** + * Position of the unit. + * @default right + */ + unitPosition: string; + + /** + * Specifies if small and big numbers should use prefixes to make them more readable. + * @default false + */ + usePrefixes: boolean; + + /** + * Interval, at which ticks with values should be placed. + */ + valueInterval: number; + + /** + * Adds event listener to the object. + */ + addListener(type: string, handler: any): void; + + /** + * Removes event listener from chart object. + */ + removeListener(chart: AmChart, type: string, handler: any): void; + + /** + * Sets bottom text. + */ + setBottomText(text: string): void; + + /** + * Sets top text. + */ + setTopText(textstring: string): void; + + /** + * Returns angle of the value. + */ + value2angle(value: number): void; +} diff --git a/types/amcharts/GaugeBand.d.ts b/types/amcharts/GaugeBand.d.ts new file mode 100644 index 0000000000..dcbb9c6ddf --- /dev/null +++ b/types/amcharts/GaugeBand.d.ts @@ -0,0 +1,65 @@ +export default class GaugeBand { + /** + * Opacity of band fill. Will use axis.bandAlpha if not set any. + */ + alpha: number; + + /** + * When rolled-over, band will display balloon if you set some text for this property. + */ + balloonText: string; + + /** + * Color of a band. + */ + color: string; + + /** + * End value of a fill. + */ + endValue: number; + + /** + * Example: [-0.2, 0, -0.2]. Will make bands to be filled with color gradients. + * Negative value means the color will be darker than the original, + * and positive number means the color will be lighter. + * @default [] + */ + gradientRatio: [number]; + + /** + * Unique id of a band. + */ + id: string; + + /** + * Inner radius of a band. If not set any, the band will end with the end of minor ticks. + * Set 0 if you want the band to be drawn to the axis center. + */ + innerRadius: any; + + /** + * Band radius. If not set any, the band will start with the axis outline. + */ + radius: any; + + /** + * Start value of a fill. + */ + startValue: number; + + /** + * Gauge band can be clickable and can lead to some page. + */ + url: string; + + /** + * Sets end value for the band. + */ + setEndValue(value: number): void; + + /** + * Sets start value for the band. + */ + setStartValue(value: number): void; +} diff --git a/types/amcharts/GraphDataItem.d.ts b/types/amcharts/GraphDataItem.d.ts new file mode 100644 index 0000000000..94df08ad67 --- /dev/null +++ b/types/amcharts/GraphDataItem.d.ts @@ -0,0 +1,70 @@ +import SerialDataItem from "./SerialDataItem"; + +/** + * GraphDataItem holds all the information about the graph's data item. + * When working with a chart, you do not create GraphDataItem objects or change it's properties directly. + * GraphDataItem is passed to you by events when user interacts with data item on the chart. + * The list of properties below will help you to extract data item's value/coordinate/etc. + */ +export default class GraphDataItem { + /** + * Opacity of the data item. + */ + alpha: number; + /** + * Bullet type. + */ + bullet: string; + /** + * Bullet size. + */ + bulletSize: number; + /** + * Category value. + */ + category: string; + /** + * Color of the data item. + */ + color: string; + /** + * Custom bullet (path to file name). + */ + customBullet: string; + /** + * Original object from data provider. + */ + dataContext: object; + /** + * Description. + */ + description: string; + /** + * Array of colors of the data item, used by column and candlestick chart only. + */ + fillColors: any[]; + /** + * Object which holds percents when recalculateToPercents is set to true. + */ + percents: object; + /** + * SerialDataItem of this graphDataItem + */ + serialDataItem: SerialDataItem; + /** + * url + */ + url: string; + /** + * Object which holds values of the data item (value, open, close, low, high). + */ + values: object; + /** + * x coordinate of the data item. + */ + x: number; + /** + * y coordinate of the data item. + */ + y: number; +} diff --git a/types/amcharts/Guide.d.ts b/types/amcharts/Guide.d.ts new file mode 100644 index 0000000000..51d8c4443b --- /dev/null +++ b/types/amcharts/Guide.d.ts @@ -0,0 +1,123 @@ +import ValueAxis from "./ValueAxis"; + +/** + * Guides are straight vertical or horizontal lines or areas supported by AmSerialChart, AmXYChart and AmRadarChart. + * You can have guides both on value and category axes. + * To add/remove a guide to an axis, use axis.addGuide(guide)/axis.removeGuide(guide) methods. + * If you do not set properties such as dashLength, lineAlpha, lineColor, etc - values of the axis are used. + */ +export default class Guide { + /** + * If you set it to true, the guide will be displayed above the graphs. + */ + above: boolean; + /** + * Radar chart only. Specifies angle at which guide should start. Affects only fills, not lines. + */ + angle: number; + /** + * Baloon fill color. + */ + balloonColor: string; + /** + * The text which will be displayed if the user rolls-over the guide. + */ + balloonText: string; + /** + * Specifies if label should be bold or not. + */ + boldLabel: boolean; + /** + * Category of the guide (in case the guide is for category axis). + */ + category: string; + /** + * Dash length. + */ + dashLength: number; + /** + * Date of the guide (in case the guide is for category axis and parseDates is set to true). + */ + date: Date; + /** + * Works if a guide is added to CategoryAxis and this axis is non-date-based. + * If you set it to true, the guide will start (or be placed, if it's not a fill) on the + * beginning of the category cell and will end at the end of toCategory cell. + */ + expand: boolean; + /** + * Fill opacity. Value range is 0 - 1. + */ + fillAlpha: number; + /** + * Fill color. + */ + fillColor: string; + /** + * Font size of guide label. + */ + fontSize: string; + /** + * Unique id of a Guide. You don't need to set it, unless you want to. + */ + id: string; + /** + * Specifies whether label should be placed inside or outside plot area. + */ + inside: boolean; + /** + * The label which will be displayed near the guide. + */ + label: string; + /** + * Rotation angle of a guide label. + */ + labelRotation: number; + /** + * Line opacity. + */ + lineAlpha: number; + /** + * Line color. + */ + lineColor: string; + /** + * Line thickness. + */ + lineThickness: number; + /** + * Position of guide label. Possible values are "left" or "right" for horizontal axis + * and "top" or "bottom" for vertical axis. + */ + position: string; + /** + * Tick length. + */ + tickLength: number; + /** + * Radar chart only. Specifies angle at which guide should end. Affects only fills, not lines. + */ + toAngle: number; + /** + * To category of the guide (in case the guide is for category axis). + */ + toCategory: string; + /** + * To date of the guide (in case the guide is for category axis and parseDates is set to true). + * If you have both date and toDate, the space between these two dates can be filled with color. + */ + toDate: Date; + /** + * To value of the guide (in case the guide is for value axis). + */ + toValue: number; + /** + * Value of the guide (in case the guide is for value axis). + */ + value: number; + /** + * Value axis of a guide. As you can add guides directly to the chart, + * you might need to specify which which value axis should be used. + */ + valueAxis: ValueAxis; +} diff --git a/types/amcharts/ImagesSettings.d.ts b/types/amcharts/ImagesSettings.d.ts new file mode 100644 index 0000000000..ab4759536d --- /dev/null +++ b/types/amcharts/ImagesSettings.d.ts @@ -0,0 +1,97 @@ +/** + * ImagesSettings is a class which holds common settings of all MapImage objects. + */ +export default class ImagesSettings { + /** + * Opacity of the image. + * @default 1 + */ + alpha: number; + /** + * Text which is displayed in a roll-over balloon. You can use the following tags: + * [[title]], [[description]], [[value]] and [[percent]]. [[title]] + */ + balloonText: string; + /** + * Specifies if the image's center should be placed in the provided coordinates. + * If false, top-left corner will be at provided coordinates. + * @default true + */ + centered: boolean; + /** + * Color of image. + * This will affect only predefined images (with "type" property set) and images with svgPath set. + * This property won't affect bitmap images and loaded SVG images. + * @default "#000000" + */ + color: string; + /** + * Height of a description window. + */ + descriptionWindowHeight: number; + /** + * Width of a description window. + * @default 250 + */ + descriptionWindowWidth: number; + /** + * X position of a description window. + */ + descriptionWindowX: number; + /** + * Y position of a description window. + */ + descriptionWindowY: number; + /** + * Label color. #000000 + */ + labelColor: string; + /** + * Font size of a label. + * @default 11 + */ + labelfontSize: string; + /** + * Position of the label. Allowed values are: left, right, top, bottom and middle. right + */ + labelPosition: string; + /** + * Label roll-over color. #00CC00 + */ + labelRollOverColor: string; + /** + * Opacity of image outline. + * This will affect only predefined images (with "type" property set) and images with svgPath set. + * This property won't affect bitmap images and loaded SVG images. + */ + outlineAlpha: number; + /** + * Color of image outline. + * This will affect only predefined images (with "type" property set) and images with svgPath set. + * This property won't affect bitmap images and loaded SVG images. + */ + outlineColor: string; + /** + * Thickness of image outline. + * This will affect only predefined images (with "type" property set) and images with svgPath set. + * This property won't affect bitmap images and loaded SVG images. + * @default 1 + */ + outlineThickness: number; + /** + * Color of image when hovered. + * This will affect only predefined images (with "type" property set) and images with svgPath set. + * This property won't affect bitmap images and loaded SVG images. + */ + rollOverColor: string; + /** + * Scale of the image when hovered. Use value like 1.5 - 2 to enlarge image when user rolls-over it. + * @default 1 + */ + rollOverScale: number; + /** + * Scale of the image if it is selected. Use value like 1.5 - 2 to enlarge selected image. + * @default 1 + */ + selectedScale: number; +} diff --git a/types/amcharts/Label.d.ts b/types/amcharts/Label.d.ts new file mode 100644 index 0000000000..a539c76d88 --- /dev/null +++ b/types/amcharts/Label.d.ts @@ -0,0 +1,49 @@ +/** + * Creates a label on the chart which can be placed anywhere, multiple can be assigned. + */ +export default class Label { + /** + * @Default 'left' + */ + align: string; + /** + * @Default 1 + */ + alpha: number; + /** + * Specifies if label is bold or not. + */ + bold: boolean; + /** + * Color of a label + */ + color: string; + /** + * Unique id of a Label. You don't need to set it, unless you want to. + */ + id: string; + /** + * Rotation angle. + */ + rotation: number; + /** + * Text size + */ + size: number; + /** + * Text of a label + */ + text: string; + /** + * URL which will be access if user clicks on a label. + */ + url: string; + /** + * X position of a label. + */ + x: number | string; + /** + * y position of a label. + */ + y: number | string; +} diff --git a/types/amcharts/LegendSettings.d.ts b/types/amcharts/LegendSettings.d.ts new file mode 100644 index 0000000000..94b73bd430 --- /dev/null +++ b/types/amcharts/LegendSettings.d.ts @@ -0,0 +1,114 @@ +/** + * Common settings of legends. + * If you change a property after the chart is initialized, you should call stockChart.validateNow() method + * in order for it to work. If there is no default value specified, default value of StockLegend class will be used. + */ +export default class LegendSettings { + /** + * Alignment of legend entries. Possible values are: "left", "right" and "center". + */ + align: string; + /** + * Specifies if each legend entry should take the same space as the longest legend entry. + */ + equalWidths: boolean; + /** + * Horizontal space between legend item and left/right border. + */ + horizontalGap: number; + /** + * The text which will be displayed in the legend. Tag [[title]] will be replaced with the title of the graph. + */ + labelText: string; + /** + * Space below the last row of the legend, in pixels. + */ + marginBottom: number; + /** + * Space above the first row of the legend, in pixels. + */ + marginTop: number; + /** + * Opacity of marker border. + */ + markerBorderAlpha: number; + /** + * Marker border color. + */ + markerBorderColor: string; + /** + * Thickness of the legend border. + */ + markerBorderThickness: number; + /** + * The color of the disabled marker (when the graph is hidden). + */ + markerDisabledColor: string; + /** + * Space between legend marker and legend text, in pixels. + */ + markerLabelGap: number; + /** + * Size of the legend marker (key). + */ + markerSize: number; + /** + * Shape of the legend marker (key). + * Possible values are: + * "square", "circle", "line", "dashedLine", "triangleUp", "triangleDown", "bubble", "none". + */ + markerType: string; + /** + * Specifies whether legend entries should be placed in reversed order. + */ + reversedOrder: boolean; + /** + * Legend item text color on roll-over. + */ + rollOverColor: string; + /** + * When you roll-over the legend entry, all other graphs can reduce their opacity, + * so that the graph you rolled-over would be distinguished. This property specifies the opacity of the graphs. + */ + rollOverGraphAlpha: number; + /** + * Whether showing/hiding of graphs by clicking on the legend marker is enabled or not. + */ + switchable: boolean; + /** + * Legend switch color. + */ + switchColor: string; + /** + * Legend switch type (in case the legend is switchable). Possible values are: "x" and "v". + */ + switchType: string; + /** + * Specifies whether the legend text is clickable or not. + * Clicking on legend text can show/hide value balloons if they are enabled. + */ + textClickEnabled: boolean; + /** + * Specifies if legend labels should be use same color as corresponding markers. + */ + useMarkerColorForLabels: boolean; + /** + * The text which will be displayed in the value portion of the legend when graph is comparable and + * at least one dataSet is selected for comparing. + * You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]]. + */ + valueTextComparing: string; + /** + * The text which will be displayed in the value portion of the legend. + * You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]]. + */ + valueTextRegular: string; + /** + * Width of the value text. Increase this value if your values do not fit in the allocated space. + */ + valueWidth: number; + /** + * Vertical space between legend items, in pixels. + */ + verticalGap: number; +} diff --git a/types/amcharts/PanelSettings.d.ts b/types/amcharts/PanelSettings.d.ts new file mode 100644 index 0000000000..471e146d62 --- /dev/null +++ b/types/amcharts/PanelSettings.d.ts @@ -0,0 +1,145 @@ +/** + * PanelsSettings settings set's settings for all StockPanels. + * If you change a property after the chart is initialized, + * you should call stockChart.validateNow() method in order for it to work. + * If there is no default value specified, default value of StockPanel class will be used. + */ +export default class PanelsSettings { + /** + * The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). + */ + angle: number; + /** + * Opacity of panel background. Possible values are 1 and 0. Values like 0.5 will not make it half-transparent. + */ + backgroundAlpha: number; + /** + * Background color of panels. Set backgroundAlpha to > 0 value in order to make background visible. + * @default "#FFFFFF" + */ + backgroundColor: string; + /** + * The gap in pixels between two columns of the same category. + */ + columnSpacing: number; + /** + * Relative width of columns. Valid values 0 - 1. + */ + columnWidth: number; + /** + * The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0). + */ + depth3D: number; + /** + * Font family. + */ + fontFamily: string; + /** + * Font size. + */ + fontSize: string; + /** + * Number of pixels between the container's bottom border and plot area. + * @default 1 + */ + marginBottom: number; + /** + * Number of pixels between the container's left border and plot area. + * If your left valueAxis values ar not placed inside the plot area, + * you should set marginLeft to 80 or some close value. + */ + marginLeft: number; + /** + * Number of pixels between the container's left border and plot area. + * If your right valueAxis values ar not placed inside the plot area, + * you should set marginRight to 80 or some close value. + */ + marginRight: number; + /** + * Number of pixels between the container's top border and plot area. + */ + marginTop: number; + /** + * Gap between panels. + * @default 8 + */ + panelSpacing: number; + /** + * This setting affects touch-screen devices only. + * If a chart is on a page, and panEventsEnabled are set to true, + * the page won't move if the user touches the chart first. + * If a chart is big enough and occupies all the screen of your touch device, + * the user won’t be able to move the page at all. That's why the default value is "false". + * If you think that selecting or or panning the chart is a primary purpose of your chart users, + * you should set panEventsEnabled to true. + */ + panEventsEnabled: boolean; + /** + * The opacity of plot area's border. + */ + plotAreaBorderAlpha: number; + /** + * The color of the plot area's border. + */ + plotAreaBorderColor: string; + /** + * Opacity of plot area fill. + */ + plotAreaFillAlphas: number; + /** + * Specifies the colors used to tint the background gradient fill of the plot area. String or Array of Strings + */ + plotAreaFillColors: any; + /** + * Prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc. + * Prefixes are used on value axes and in the legend. + * To enable prefixes, set usePrefixes property to true. + * [ + * {number:1e+3,prefix:"k"}, + * {number:1e+6,prefix:"M"}, + * {number:1e+9,prefix:"G"}, + * {number:1e+12,prefix:"T"}, + * {number:1e+15,prefix:"P"}, + * {number:1e+18,prefix:"E"}, + * {number:1e+21,prefix:"Z"}, + * {number:1e+24,prefix:"Y"} + * ] + */ + prefixesOfBigNumbers: any[]; + /** + * Prefixes which are used to make small numbers shorter: 2μ instead of 0.000002, etc. + * Prefixes are used on value axes and in the legend. To enable prefixes, set usePrefixes property to true. + * [ + * {number:1e-24, prefix:"y"}, + * {number:1e-21, prefix:"z"}, + * {number:1e-18, prefix:"a"}, + * {number:1e-15, prefix:"f"}, + * {number:1e-12, prefix:"p"}, + * {number:1e-9, prefix:"n"}, + * {number:1e-6, prefix:"μ"}, + * {number:1e-3, prefix:"m"} + * ] + */ + prefixesOfSmallNumbers: any[]; + /** + * Specifies whether the animation should be sequenced or all objects should appear at once. + */ + sequencedAnimation: boolean; + /** + * The initial opacity of the column/line. + * If you set startDuration to a value higher than 0, the columns/lines will fade in from startAlpha. + */ + startAlpha: number; + /** + * Duration of the animation, in seconds. + */ + startDuration: number; + /** + * Possible values are: "linear", "<", ">" "<>", "elastic", "bounce". + */ + startEffect: string; + /** + * If true, prefixes will be used for big and small numbers. + */ + usePrefixes: boolean; +} diff --git a/types/amcharts/PeriodSelector.d.ts b/types/amcharts/PeriodSelector.d.ts new file mode 100644 index 0000000000..672fa0ba5b --- /dev/null +++ b/types/amcharts/PeriodSelector.d.ts @@ -0,0 +1,88 @@ +import AmChart from "./AmChart"; + +export default class PeriodSelector { + /** + * Date format of date input fields. + * Check [[http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/formatters/DateFormatter.html + * @default "DD-MM-YYYY" + */ + dateFormat: string; + /** + * Text displayed next to "from" date input field. From: + */ + fromText: string; + /** + * Specifies if period buttons with date range bigger than available data should be hidden. + * @default true + */ + hideOutOfScopePeriods: boolean; + /** + * Specifies whether period selector displays "from" and "to" date input fields. + * @default true + */ + inputFieldsEnabled: boolean; + /** + * Width of date input fields, in pixels. Works only if period selector is horizontal. + * @default 100 + */ + inputFieldWidth: number; + /** + * Array of predefined period objects. Period object has 4 properties - period, count, label and selected. + * Possible period values are: + * "ss" - seconds, + * "mm" - minutes, + * "hh" - hours, + * "DD" - days, + * "MM" - months, + * "YYYY" - years. + * Property "count" specifies how many periods this button will select. + * "label" will be displayed on a button. + * "selected" is a boolean which specifies if this button is selected when chart is initialized or not. + * Example: {period:"DD", count:10, label:"10 days", selected:false}. + */ + periods: any[]; + /** + * Text displayed next to predefined period buttons. Zoom: + */ + periodsText: string; + /** + * Possible values: "right", "left", "top", "bottom". bottom + */ + position: string; + /** + * Specifies whether predefined period buttons should select a period from the beginning or the end of the data. + */ + selectFromStart: boolean; + /** + * Text displayed next to "to" date input field. To: + */ + toText: string; + /** + * Width of a period selector, when position is "left" or "right". + * @default 180 + */ + width: number; + + /** + * Adds event listener to the object. + * @param handler - Dispatched when dates in period selector input fields are changed or + * user clicks on one of the predefined period buttons. + */ + addListener( + type: string, + handler: ( + e: { + type: string; + startDate: Date; + endDate: Date; + predefinedPeriod: string; + count: number; + }, + ) => void, + ): void; + + /** + * Removes event listener from chart object. + */ + removeListener(chart: AmChart, type: string, handler: any): void; +} diff --git a/types/amcharts/SerialDataItem.d.ts b/types/amcharts/SerialDataItem.d.ts new file mode 100644 index 0000000000..cd549a9791 --- /dev/null +++ b/types/amcharts/SerialDataItem.d.ts @@ -0,0 +1,26 @@ +/** + * SerialDataItem holds all the information about each series. + * When working with a chart, you do not create SerialDataItem objects or change it's properties directly. + * Consider properties of a SerialDataItem read-only - change values in chart's data provider if you need to. + * When serial chart parses dataProvider, it generates "chartData" array. + * Objects of this array are SerialDataItem objects. + */ +export default class SerialDataItem { + /** + * You can access each GraphDataItem using this object. + * The data structure is: graphDataItem = serialDataItem.axes[axisId].graphs[graphId]. + */ + axes: object; + /** + * category value. String if parseDates is false, Date if true. + */ + category: any; + /** + * Timestamp of a series date. Avalable only if parseDates property of CategoryAxis is set to true. + */ + time: number; + /** + * Coordinate (horizontal or vertical, depends on chart's rotate property) of the series. + */ + x: number; +} diff --git a/types/amcharts/Slice.d.ts b/types/amcharts/Slice.d.ts new file mode 100644 index 0000000000..a63cda4ebc --- /dev/null +++ b/types/amcharts/Slice.d.ts @@ -0,0 +1,52 @@ +/** + * Slice is an item of AmPieChart's chartData Array and holds all the information about the slice. + * When working with a pie chart, you do not create slices or change it's properties directly, + * instead you set array of data using dataProvider property. + * Consider properties of a Slice read-only - change values in chart's data provider if you need to. + */ +export default class Slice { + /** + * Opacity of a slice. + */ + alpha: number; + /** + * Color of a slice. + */ + color: string; + /** + * Original object from data provider. + */ + dataContext: object; + /** + * Slice description. + */ + description: string; + /** + * Specifies whether the slice is hidden + */ + hidden: boolean; + /** + * Percent value of a slice. + */ + percents: number; + /** + * Specifies whether the slice is pulled or not. + */ + pulled: boolean; + /** + * Slice title + */ + title: string; + /** + * Url of a slice + */ + url: string; + /** + * Value of a slice + */ + value: number; + /** + * specifies whether this slice has a legend entry + */ + visibleInLegend: boolean; +} diff --git a/types/amcharts/StockEvent.d.ts b/types/amcharts/StockEvent.d.ts new file mode 100644 index 0000000000..13b6b53fb5 --- /dev/null +++ b/types/amcharts/StockEvent.d.ts @@ -0,0 +1,69 @@ +import StockGraph from "./StockGraph"; + +/** + * StockEvent is object which holds information about event(bullet). + * Values from StockEventsSettings will be used if not set. + * Stock event bullet's size depends on it's graphs fontSize. + * When user rolls - over, clicks or rolls - out of the event bullet, AmStockChart dispatches events. + */ +export default class StockEvent { + /** + * Opacity of bullet background. + * @default 1 + */ + backgroundAlpha: number; + /** + * Color of bullet background. #DADADA + */ + backgroundColor: string; + /** + * Opacity of bullet border. + * @default 1 + */ + borderAlpha: number; + /** + * Bullet border color. #888888 + */ + borderColor: string; + /** + * The color of the event text. #000000 + */ + color: string; + /** + * Date of an event. Must be Date object, not a string. + */ + date: Date; + /** + * graph on which event will be displayed. + */ + graph: StockGraph; + /** + * Roll-over background color. #CC0000 + */ + rollOverColor: string; + /** + * Specifies if the event should be displayed on category axis + */ + showOnAxis: boolean; + /** + * Letter which will be displayed on the event. Not all types can display letters. + * "text" type can display longer texts. + */ + text: string; + /** + * Type of bullet. + * Possible values are: + * "flag", "sign", "pin", "triangleUp", "triangleDown", "triangleLeft", "triangleRight", "text", + * "arrowUp", "arrowDown" + * @default "sign" + */ + type: string; + /** + * A URL to go to when user clicks the event. + */ + url: string; + /** + * target of url, "_blank" for example. + */ + urlTarget: string; +} diff --git a/types/amcharts/StockGraph.d.ts b/types/amcharts/StockGraph.d.ts new file mode 100644 index 0000000000..e8bd53cc16 --- /dev/null +++ b/types/amcharts/StockGraph.d.ts @@ -0,0 +1,74 @@ +import AmGraph from "./AmGraph"; + +export default class StockGraph extends AmGraph { + /** + * Specifies whether this graph will be compared if some data set is selected for comparing. + */ + comparable: boolean; + /** + * Specifies a field to be used to generate comparing graph. + * Note, this field is not the one used in your dataProvider, but toField from FieldMapping object. + */ + compareField: string; + /** + * Balloon color of comparing graph. + */ + compareGraphBalloonColor: string; + /** + * Balloon text of comparing graph. + */ + compareGraphBalloonText: string; + /** + * Bullet of comparing graph. + * Possible values are: "square", "round", "line", "triangleUp", "triangleDown", "dashedLine", "bubble". + */ + compareGraphBullet: string; + /** + * Bullet size of comparing graph. + */ + compareGraphBulletSize: number; + /** + * Corner radius of comparing graph (if type is "column"). + */ + compareGraphCornerRadiusTop: number; + /** + * Dash length of compare graph. + */ + compareGraphDashLength: number; + /** + * Fill alpha of comparing graph. + */ + compareGraphFillAlphas: number; + /** + * Fill color of comparing graph. + */ + compareGraphFillColors: string; + /** + * Opacity of comparing graph line. + */ + compareGraphLineAlpha: number; + /** + * Thickness of compare graph. + */ + compareGraphLineThickness: number; + /** + * Type of comparing graph. Possible values are: "line", "column", "step", "smoothedLine." line + */ + compareGraphType: string; + /** + * Specifies if compare graph is visible in legend. + * @default true + */ + compareGraphVisibleInLegend: boolean; + /** + * When data is grouped to periods, the graph must know which period value should be used. + * Possible values are: "Open", "Low", "High", "Close", "Average" and "Sum". + * @default "Close" + */ + periodValue: string; + /** + * Specifies whether data set color should be used as this graph's lineColor. + * @default true + */ + useDataSetColors: boolean; +} diff --git a/types/amcharts/StockLegend.d.ts b/types/amcharts/StockLegend.d.ts new file mode 100644 index 0000000000..ae765b98e3 --- /dev/null +++ b/types/amcharts/StockLegend.d.ts @@ -0,0 +1,23 @@ +import AmLegend from "./AmLegend"; + +/** + * StockLegend is a legend of StockPanel. + */ +export default class StockLegend extends AmLegend { + /** + * The text which will be displayed in the value portion of the legend when graph is comparable and + * at least one dataSet is selected for comparing. + * You can use tags like + * [[value]], [[open]], [[high]], [[low]], [[close]], [[percents.value/open/close/low/high]], + * [[description]] + * @default [[percents.value]]% + */ + valueTextComparing: string; + /** + * The text which will be displayed in the value portion of the legend. + * You can use tags like + * [[value]], [[open]], [[high]], [[low]], [[close]],[[percents]], [[description]] + * @default [[value]] + */ + valueTextRegular: string; +} diff --git a/types/amcharts/StockPanel.d.ts b/types/amcharts/StockPanel.d.ts new file mode 100644 index 0000000000..817c7a1f7a --- /dev/null +++ b/types/amcharts/StockPanel.d.ts @@ -0,0 +1,85 @@ +import AmSerialChart from "./AmSerialChart"; +import StockGraph from "./StockGraph"; +import StockLegend from "./StockLegend"; +import ValueAxis from "./ValueAxis"; + +/** + * StockPanel class creates stock panels (charts). AmStockChart can have multiple Stock panels. + */ +export default class StockPanel extends AmSerialChart { + /** + * Specifies whether x button will be displayed near the panel. This button allows turning panel off. + */ + allowTurningOff: boolean; + /** + * If true, drawing icons will be displayed in top-right corner. + */ + drawingIconsEnabled: boolean; + /** + * Specifies on which value axis user can draw trend lines. + * Set drawingIconsEnabled to true if you want drawing icons to be visible. + * First value axis will be used if not set here. + */ + drawOnAxis: ValueAxis; + /** + * Specifies if all trend lines should be erased when erase button is clicked. + * If false, trend lines can be erased one by one. + */ + eraseAll: boolean; + /** + * Size of trend line drawing icons. + * If you change this size, you should update icon images if you want them to look properly. + * @default 18 + */ + iconSize: number; + /** + * Relative height of panel. Possible values 0 - 100. + */ + percentHeight: number; + /** + * Specifies when values should be recalculated to percents. + * Possible values are: "never", "always", "whenComparing". + * @default "whenComparing" + */ + recalculateToPercents: string; + /** + * Specifies whether this panel will show category axis. + * @default true + */ + showCategoryAxis: boolean; + stockGraphs: StockGraph[]; + /** + * Stock chart legend. + */ + stockLegend: StockLegend; + /** + * Title of a panel. Note, StockLegend should be added in order title to be displayed. + */ + title: string; + /** + * Trend line opacity. + * @default 1 + */ + trendLineAlpha: number; + /** + * Trend line color. #00CC00 + */ + trendLineColor: string; + /** + * Trend line dash length. + */ + trendLineDashLength: number; + /** + * Trend line thickness. + * @default 2 + */ + trendLineThickness: number; + /** + * Adds a graph to the panel. + */ + addStockGraph(graph: StockGraph): void; + /** + * Removes graph from the panel. + */ + removeStockGraph(graph: StockGraph): void; +} diff --git a/types/amcharts/Title.d.ts b/types/amcharts/Title.d.ts new file mode 100644 index 0000000000..2508ff303a --- /dev/null +++ b/types/amcharts/Title.d.ts @@ -0,0 +1,27 @@ +export default class Title { + /** + * @default 1 + */ + alpha: number; + /** + * Specifies if the tile is bold or not. + * @default false + */ + bold: boolean; + /** + * Text color of a title. + */ + color: string; + /** + * Unique id of a Title. You don't need to set it, unless you want to. + */ + id: string; + /** + * Text size + */ + size: number; + /** + * Text of a label + */ + text: string; +} diff --git a/types/amcharts/TrendLine.d.ts b/types/amcharts/TrendLine.d.ts new file mode 100644 index 0000000000..150f3b8071 --- /dev/null +++ b/types/amcharts/TrendLine.d.ts @@ -0,0 +1,15 @@ +/** + * Trend lines are straight lines indicating trends, might also be used for some different purposes. + * Can be used by Serial and XY charts. + * To add/remove trend line, use chart.addTrendLine(trendLine)/chart.removeTrendLine(trendLine) methods + * or simply pass array of trend lines: chart.trendLines = [trendLine1, trendLine2]. + * @example + * let trendLine = new AmCharts.TrendLine(); + * trendLine.initialDate = new Date(2012, 0, 2, 12); // 12 is hour - to start trend line in the middle of the day + * trendLine.finalDate = new Date(2012, 0, 11, 12); + * trendLine.initialValue = 10; + * trendLine.finalValue = 19; + * trendLine.lineColor = "#CC0000"; + * chart.addTrendLine(trendLine); + */ +export default class TrendLine { } diff --git a/types/amcharts/ValueAxesSettings.d.ts b/types/amcharts/ValueAxesSettings.d.ts new file mode 100644 index 0000000000..1b7676b7d7 --- /dev/null +++ b/types/amcharts/ValueAxesSettings.d.ts @@ -0,0 +1,126 @@ +/** + * ValueAxesSettings settings sets settings for all ValueAxes. + * If you change a property after the chart is initialized, + * you should call stockChart.validateNow() method in order for it to work. + * If there is no default value specified, default value of ValueAxis class will be used. + */ +export default class ValueAxesSettings { + /** + * Specifies whether number for gridCount is specified automatically, according to the axis size. + * @default true + */ + autoGridCount: boolean; + /** + * Axis opacity. + */ + axisAlpha: number; + /** + * Axis color. + */ + axisColor: string; + /** + * Thickness of the axis. + */ + axisThickness: number; + /** + * Label color. + */ + color: string; + /** + * Length of a dash. By default, the grid line is not dashed. + */ + dashLength: number; + /** + * Fill opacity. Every second space between grid lines can be filled with color. + */ + fillAlpha: number; + /** + * Fill color. Every second space between grid lines can be filled with color. + * Set fillAlpha to a value greater than 0 to see the fills. + */ + fillColor: string; + /** + * Opacity of grid lines. + */ + gridAlpha: number; + /** + * Color of grid lines. + */ + gridColor: string; + /** + * Approximate number of grid lines. autoGridCount should be set to false, + * otherwise this property will be ignored. + */ + gridCount: number; + /** + * Thickness of grid lines. + */ + gridThickness: number; + /** + * Specifies whether guide values should be included when calculating min and max of the axis. + */ + includeGuidesInMinMax: boolean; + /** + * If true, the axis will include hidden graphs when calculating min and max values. + */ + includeHidden: boolean; + /** + * Specifies whether values should be placed inside or outside plot area. + * In case you set this to false, you'll have to adjust marginLeft or marginRight in + * [[PanelsSettings]] in order labels to be visible. + * @default true + */ + inside: boolean; + /** + * Specifies whether values on axis can only be integers or both integers and doubles. + */ + integersOnly: boolean; + /** + * Frequency at which labels should be placed. + */ + labelFrequency: number; + /** + * Specifies whether value labels are displayed. + */ + labelsEnabled: boolean; + /** + * Set to true if value axis is logarithmic, false otherwise. + */ + logarithmic: boolean; + /** + * The distance of the axis to the plot area, in pixels. Useful if you have more then one axis on the same side. + */ + offset: number; + /** + * Position of the value axis. Possible values are "left" and "right". + */ + position: string; + /** + * Set to true if value axis is reversed (smaller values on top), false otherwise. + */ + reversed: boolean; + /** + * Specifies if first label of value axis should be displayed. + */ + showFirstLabel: boolean; + /** + * Specifies if last label of value axis should be displayed. + */ + showLastLabel: boolean; + /** + * Stacking mode of the axis. Possible values are: "none", "regular", "100%", "3d". + */ + stackType: string; + /** + * Tick length. + */ + tickLength: number; + /** + * Unit which will be added to the value label. + */ + unit: string; + /** + * Position of the unit. Possible values are "left" or "right". + */ + unitPosition: string; +} diff --git a/types/amcharts/ValueAxis.d.ts b/types/amcharts/ValueAxis.d.ts new file mode 100644 index 0000000000..dd9832d750 --- /dev/null +++ b/types/amcharts/ValueAxis.d.ts @@ -0,0 +1,250 @@ +import AmChart from "./AmChart"; +import AxisBase from "./AxisBase"; +import Guide from "./Guide"; + +/** + * ValueAxis is the class which displays value axis for the chart. The chart can have any number of value axes. + * For Serial chart one value axis is created automatically. + * For XY Chart two value axes (horizontal and vertical) are created automatically. + */ +export default class ValueAxis extends AxisBase { + /** + * Radar chart only. Specifies distance from axis to the axis title (category) 10 + */ + axisTitleOffset: number; + /** + * Read-only. Coordinate of the base value. + */ + baseCoord: number; + /** + * Specifies base value of the axis. + */ + baseValue: number; + /** + * If your values represents time units, and you want value axis labels to be formatted as duration, + * you have to set the duration unit. Possible values are: "ss", "mm", "hh" and "DD". + */ + duration: string; + /** + * If duration property is set, you can specify what string should be displayed next to day, + * hour, minute and second. + * {DD:"d. ", hh:":", mm:":",ss:""} + */ + durationUnits: { DD: string; hh: string; mm: string; ss: string }; + /** + * Radar chart only. Possible values are: "polygons" and "circles". Set "circles" for polar charts. + * @default "polygons" + */ + gridType: string; + /** + * Unique id of value axis. It is not required to set it, unless you need to tell the graph which exact + * value axis it should use. + */ + id: string; + /** + * Specifies whether guide values should be included when calculating min and max of the axis. + */ + includeGuidesInMinMax: boolean; + /** + * If true, the axis will include hidden graphs when calculating min and max values. + */ + includeHidden: boolean; + /** + * Specifies whether values on axis can only be integers or both integers and doubles. + */ + integersOnly: boolean; + /** + * You can use this function to format Value axis labels. + * This function is called and these parameters are passed: labelFunction(value, valueText, valueAxis); + * Where value is numeric value, valueText is formatted string and valueAxis is a reference to valueAxis object. + * If axis type is "date", labelFunction will pass different arguments: + * labelFunction(valueText, date, valueAxis) + * Your function should return string. + */ + labelFunction(value: number, valueText: string, valueAxis: ValueAxis): string; + labelFunction(valueText: string, data: Date, valueAxis: ValueAxis): string; + /** + * Specifies if this value axis' scale should be logarithmic. + */ + logarithmic: boolean; + /** + * Read-only. Maximum value of the axis. + */ + max: number; + /** + * If you don't want max value to be calculated by the chart, set it using this property. + * This value might still be adjusted so that it would be possible to draw grid at rounded intervals. + */ + maximum: number; + /** + * If your value axis is date-based, you can specify maximum date of the axis. + * Can be set as date object, timestamp number or string if dataDateFormat is set. + */ + maximumData: Date; + /** + * Read-only. Minimum value of the axis. + */ + min: number; + /** + * If you don't want min value to be calculated by the chart, set it using this property. + * This value might still be adjusted so that it would be possible to draw grid at rounded intervals. + */ + minimum: number; + /** + * If your value axis is date-based, you can specify minimum date of the axis. + * Can be set as date object, timestamp number or string if dataDateFormat is set. + */ + minimumDate: Date; + /** + * If set value axis scale (min and max numbers) will be multiplied by it. + * I.e. if set to 1.2 the scope of values will increase by 20%. + */ + minMaxMultiplier: number; + /** + * Works with radar charts only. + * If you set it to “middle”, labels and data points will be placed in the middle between axes. + */ + pointPosition: string; + /** + * Possible values are: "top", "bottom", "left", "right". + * If axis is vertical, default position is "left". If axis is horizontal, default position is "bottom". + */ + position: string; + /** + * Precision (number of decimals) of values. + */ + precision: number; + /** + * Radar chart only. Specifies if categories (axes' titles) should be displayed near axes) + * @default true + */ + radarCategoriesEnabled: boolean; + /** + * pecifies if graphs's values should be recalculated to percents. + */ + recalculateToPercents: boolean; + /** + * Specifies if value axis should be reversed (smaller values on top). + */ + reversed: boolean; + /** + * Stacking mode of the axis. + * Possible values are: "none", "regular", "100%", "3d". + * Note, only graphs of one type will be stacked. + * @default "none" + */ + stackType: string; + /** + * Read-only. Value difference between two grid lines. + */ + step: number; + /** + * If you set minimum and maximum for your axis, chart adjusts them so that grid would start and end on the + * beginning and end of plot area and grid would be at equal intervals. + * If you set strictMinMax to true, the chart will not adjust minimum and maximum of value axis. + */ + strictMinMax: boolean; + /** + * In case you synchronize one value axis with another, you need to set the synchronization multiplier. + * Use synchronizeWithAxis method to set with which axis it should be synced. + */ + synchronizationMultiplier: number; + /** + * One value axis can be synchronized with another value axis. + * You can use both reference to your axis or id of the axis here. + * You should set synchronizationMultiplyer in order for this to work. + */ + synchronizeWith: ValueAxis; + /** + * If this value axis is stacked and has columns, setting valueAxis.totalText = "[[total]]" will make it + * to display total value above the most-top column. + */ + totalText: string; + /** + * Color of total text. + */ + totalTextColor: string; + /** + * Distance from data point to total text. + */ + totalTextOffset: number; + /** + * This allows you to have logarithmic value axis and have zero values in the data. + * You must set it to >0 value in order to work. + */ + treatZeroAs: number; + /** + * Type of value axis. + * If your values in data provider are dates and you want this axis to show dates instead of numbers, + * set it to "date". + */ + type: string; + /** + * Unit which will be added to the value label. + */ + unit: string; + /** + * Position of the unit. Possible values are "left" and "right". right + */ + unitPosition: string; + /** + * If true, prefixes will be used for big and small numbers. + * You can set arrays of prefixes directly to the chart object + * via prefixesOfSmallNumbers and prefixesOfBigNumbers. + */ + usePrefixes: boolean; + /** + * If true, values will always be formatted using scientific notation (5e+8, 5e-8...) + * Otherwise only values bigger then 1e+21 and smaller then 1e-7 will be displayed in scientific notation. + */ + useScientificNotation: boolean; + + /** + * Adds guide to the axis. + */ + addGuide(guide: Guide): void; + /** + * Number, - value of coordinate. Returns value of the coordinate. coordinate - y or x coordinate, in pixels. + */ + coordinateToValue(coordinate: number): void; + /** + * Number - coordinate Returns coordinate of the value in pixels. value - Number + */ + getCoordinate(value: number): void; + /** + * Removes guide from the axis. + */ + removeGuide(guide: Guide): void; + + /** + * One value axis can be synchronized with another value axis. + * You should set synchronizationMultiplyer in order for this to work. + */ + synchronizeWithAxis(axis: ValueAxis): void; + /** + * XY Chart only. Zooms-in the axis to the provided values. + */ + zoomToValues(startValue: number, endValue: number): void; + + /** + * Adds event listener. + * @param type One of "axisChanged", "axisZoomed", "logarithmicAxisFailed". + * @param handler The event handler. + */ + addListener( + type: string, + handler: ( + e: { + type: string; + startValue?: Date; + endValue?: Date; + chart: AmChart; + }, + ) => void, + ): void; + + /** + * Removes event listener from chart object. + */ + removeListener(chart: AmChart, type: string, handler: any): void; +} diff --git a/types/amcharts/amcharts-tests.ts b/types/amcharts/amcharts-tests.ts index 067643b1ce..7dedc76ead 100644 --- a/types/amcharts/amcharts-tests.ts +++ b/types/amcharts/amcharts-tests.ts @@ -1,7 +1,76 @@ import { AmCharts } from "amcharts"; -// TODO: provide much more tests +const theme = AmCharts.themes.light; -const gauge = new AmCharts.AmAngularGauge({ - theme: "light" +// Global namespace settings. +AmCharts.useUTC = false; +AmCharts.theme = theme; + +// "JSON"-style API. +const chart = AmCharts.makeChart("chartdiv", { + type: "gauge", + arrows: [ + { + value: 130 + } + ], + titles: [ + { + text: "Speedometer", + size: 15 + } + ], + axes: [ + { + bottomText: "0 km/h", + endValue: 220, + valueInterval: 10, + bands: [ + { + color: "#00CC00", + endValue: 90, + startValue: 0 + }, + { + color: "#ffac29", + endValue: 130, + startValue: 90 + }, + { + color: "#ea3838", + endValue: 220, + startValue: 130, + innerRadius: "95%" + } + ] + } + ] }); + +// Object based API. +const amAngularGauge = new AmCharts.AmAngularGauge(theme); +const amBalloon = new AmCharts.AmBalloon(); +const amChart = new AmCharts.AmChart(theme); +const amCoordinateChart = new AmCharts.AmCoordinateChart(theme); +const amGraph = new AmCharts.AmGraph(); +const amLegend = new AmCharts.AmLegend(); +const amPieChart = new AmCharts.AmPieChart(theme); +const amRadarChart = new AmCharts.AmRadarChart(theme); +const amRectangularChart = new AmCharts.AmRectangularChart(theme); +const amSerialChart = new AmCharts.AmSerialChart(theme); +const amXYChart = new AmCharts.AmXYChart(theme); +const axisBase = new AmCharts.AxisBase(); +const categoryBase = new AmCharts.CategoryAxis(); +const chartCursor = new AmCharts.ChartCursor(); +const chartScrollbar = new AmCharts.ChartScrollbar(); +const gaugeArrow = new AmCharts.GaugeArrow(); +const gaugeAxis = new AmCharts.GaugeAxis(); +const gaugeBand = new AmCharts.GaugeBand(); +const graphDataItem = new AmCharts.GraphDataItem(); +const guid = new AmCharts.Guide(); +const label = new AmCharts.Label(); +const serialDateItem = new AmCharts.SerialDataItem(); +const slice = new AmCharts.Slice(); +const title = new AmCharts.Title(); +const trendLine = new AmCharts.TrendLine(); +const valueAxis = new AmCharts.ValueAxis(); diff --git a/types/amcharts/index.d.ts b/types/amcharts/index.d.ts index 37351b0d1a..759e22e942 100644 --- a/types/amcharts/index.d.ts +++ b/types/amcharts/index.d.ts @@ -1,42 +1,104 @@ // Type definitions for amCharts 3.21 // Project: http://www.amcharts.com/ -// Definitions by: aleksey-bykov -// ldrick +// Definitions by: ldrick // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 -/// AmCharts object (it's not a class) is create automatically when amcharts.js or amstock.js file is included in a web page. +import _AmAngularGauge from "./AmAngularGauge"; +import _AmBalloon from "./AmBalloon"; +import _AmChart from "./AmChart"; +import _AmCoordinateChart from "./AmCoordinateChart"; +// import _AmFunnelChart from "./AmFunnelChart"; +// import _AmGanttChart from "./AmGanttChart"; +import _AmGraph from "./AmGraph"; +import _AmLegend from "./AmLegend"; +import _AmPieChart from "./AmPieChart"; +import _AmRadarChart from "./AmRadarChart"; +import _AmRectangularChart from "./AmRectangularChart"; +import _AmSerialChart from "./AmSerialChart"; +// import _AmSlicedChart from "./AmSlicedChart"; +import _AmXYChart from "./AmXYChart"; +import _AxisBase from "./AxisBase"; +import _CategoryAxis from "./CategoryAxis"; +import _ChartCursor from "./ChartCursor"; +import _ChartScrollbar from "./ChartScrollbar"; +import _GaugeArrow from "./GaugeArrow"; +import _GaugeAxis from "./GaugeAxis"; +import _GaugeBand from "./GaugeBand"; +import _GraphDataItem from "./GraphDataItem"; +import _Guide from "./Guide"; +// import _Image from "./Image"; +import _Label from "./Label"; +import _SerialDataItem from "./SerialDataItem"; +import _Slice from "./Slice"; +import _Title from "./Title"; +import _TrendLine from "./TrendLine"; +import _ValueAxis from "./ValueAxis"; + +/** + * AmCharts namespace is create automatically when amcharts.js or amstock.js file is included. + */ export namespace AmCharts { - /** Set it to true if you have base href set for your page. This will fix rendering problems in Firefox caused by base href. */ + /** + * Set it to true if you have base href set for your page. + * This will fix rendering problems in Firefox caused by base href. + */ let baseHref: boolean; - /** Array of day names, used when formatting dates (if categoryAxis.parseDates is set to true) ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] */ + /** + * Array of day names, used when formatting dates (if categoryAxis.parseDates is set to true) + * ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'] + */ let dayNames: string[]; - /** Array of month names, used when formatting dates (if categoryAxis.parseDates is set to true) ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'] */ + /** + * Array of month names, used when formatting dates (if categoryAxis.parseDates is set to true) + * [ + * 'January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', + * 'September', 'October', 'November','December' + * ] + */ let monthNames: string[]; - /** Array of short versions of day names, used when formatting dates (if categoryAxis.parseDates is set to true) ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] */ + /** + * Array of short versions of day names, used when formatting dates (if categoryAxis.parseDates is set to true) + * ['Sun', 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat'] + */ let shortDayNames: string[]; - /** Array of short versions of month names, used when formatting dates (if categoryAxis.parseDates is set to true) ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] */ + /** + * Array of short versions of month names, used when formatting dates (if categoryAxis.parseDates is set to true) + * ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'] + */ let shortMonthNames: string[]; - /** Set it to true if you want UTC time to be used instead of local time. */ + /** + * Set it to true if you want UTC time to be used instead of local time. + */ let useUTC: boolean; - /** Object with themes */ + /** + * Set global used AmCharts theme. + */ + let theme: any; + + /** + * Object with existing themes. + */ let themes: any; - /** Clears all the charts on page, removes listeners and intervals. */ + /** + * Clears all the charts on page, removes listeners and intervals. + */ function clear(): void; - /** Handle ready event */ - function ready(f: Function): void; - - /** Create chart by params. */ + /** + * Create chart by params. + */ function makeChart(selector: string, params: any, delay?: number): AmChart; - /** Set a method to be called before initializing the chart. + /** + * Set a method to be called before initializing the chart. * When the method is called, the chart instance is passed as an attribute. * You can use this feature to preprocess chart data or do some other things you need * before initializing the chart. @@ -44,3432 +106,36 @@ export namespace AmCharts { * @param types - Which chart types should call this method. Defaults to all * if none is passed. */ - function addInitHandler(handler: Function, types: string[]): any; - - /** AmPieChart class creates pie/donut chart. In order to display pie chart you need to set at least three properties - dataProvider, titleField and valueField. - @example - let chartData = [{title:"Pie I have eaten",value:70},{title:"Pie I haven\'t eaten",value:30}]; - let chart = new AmCharts.AmPieChart(); - chart.valueField = "value"; - chart.titleField = "title"; - chart.dataProvider = chartData; - chart.write("chartdiv"); - */ - class AmPieChart extends AmChart { - /** Name of the field in chart's dataProvider which holds slice's alpha. */ - alphaField: string; - /** Pie lean angle (for 3D effect). Valid range is 0 - 90. */ - angle: number; - /** Balloon text. The following tags can be used: [[value]], [[title]], [[percents]], [[description]]. [[title]]: [[percents]]% ([[value]])\n[[description]] */ - balloonText: string; - /** Read-only. Array of Slice objects. */ - chartData: any[]; - /** Name of the field in chart's dataProvider which holds slice's color. */ - colorField: string; - /** Specifies the colors of the slices, if the slice color is not set. If there are more slices than colors in this array, the chart picks random color. ["#FF0F00", "#FF6600", "#FF9E01", "#FCD202", "#F8FF01", "#B0DE09", "#04D215", "#0D8ECF", "#0D52D1", "#2A0CD0", "#8A0CCF", "#CD0D74", "#754DEB", "#DDDDDD", "#999999", "#333333", "#000000", "#57032A", "#CA9726", "#990000", "#4B0C25"] */ - colors: any[]; - /** Depth of the pie (for 3D effect). */ - depth3D: number; - /** Name of the field in chart's dataProvider which holds a string with description. */ - descriptionField: string; - /** Example: [-0.2,0.2]. Will make slices to be filled with color gradients. */ - gradientRatio: number[]; - /** Opacity of the group slice. Value range is 0 - 1. - @default 1 - */ - groupedAlpha: number; - /** Color of the group slice. The default value is not set - this means the next available color from "colors" array will be used. */ - groupedColor: string; - /** Description of the group slice. */ - groupedDescription: string; - /** If this is set to true, the group slice will be pulled out when the chart loads. */ - groupedPulled: boolean; - /** Title of the group slice. Other */ - groupedTitle: string; - /** If there is more than one slice whose percentage of the pie is less than this number, those slices will be grouped together into one slice. This is the "other" slice. It will always be the last slice in a pie. */ - groupPercent: number; - /** Slices with percent less then hideLabelsPercent won't display labels This is useful to avoid cluttering up the chart, if you have a lot of small slices. 0 means all labels will be shown. */ - hideLabelsPercent: number; - /** Opacity of a hovered slice. Value range is 0 - 1. - @default 1 - */ - hoverAlpha: number; - /** Inner radius of the pie, in pixels or percents. */ - innerRadius: any; - /** The distance between the label and the slice, in pixels. You can use negative values to put the label on the slice. - @default 30 - */ - labelRadius: number; - /** Name of the field in dataProvider which specifies the length of a tick. Note, the chart will not try to arrange labels automatically if this property is set. */ - labelRadiusField: string; - /** Specifies whether data labels are visible. - @default true - */ - labelsEnabled: boolean; - /** Label text. The following tags can be used: [[value]], [[title]], [[percents]], [[description]]. [[title]]: [[percents]]% */ - labelText: string; - /** Label tick opacity. Value range is 0 - 1. 0.2 */ - labelTickAlpha: number; - /** Label tick color. #000000 */ - labelTickColor: string; - /** Bottom margin of the chart. - @default 5 - */ - marginBottom: number; - /** Left margin of the chart. */ - marginLeft: number; - /** Right margin of the chart. */ - marginRight: number; - /** Top margin of the chart. - @default 5 - */ - marginTop: number; - /** Minimum radius of the pie, in pixels. - @default 10 - */ - minRadius: number; - /** Pie outline opacity. Value range is 0 - 1. */ - outlineAlpha: number; - /** Pie outline color. #FFFFFF */ - outlineColor: string; - /** Pie outline thickness. - @default 1 - */ - outlineThickness: number; - /** Opacity of the slices. You can set the opacity of individual slice too. - @default 1 - */ - pieAlpha: number; - /** Color of the first slice. All the other will be colored with darker or brighter colors. */ - pieBaseColor: string; - /** Lightness increase of each subsequent slice. This is only useful if pieBaseColor is set. Use negative values for darker colors. Value range is from -255 to 255. - @default 30*/ - pieBrightnessStep: number; - /** You can set fixed position of a pie center, in pixels or in percents. */ - pieX: any; - /** You can set fixed position of a pie center, in pixels or in percents. */ - pieY: any; - /** Name of the field in chart's dataProvider which holds a boolean value telling the chart whether this slice must be pulled or not. */ - pulledField: string; - /** Pull out duration, in seconds. - @default 1 - */ - pullOutDuration: number; - /** Pull out effect. Possible values are ">", "<", elastic" and "bounce". bounce */ - pullOutEffect: string; - /** If this is set to true, only one slice can be pulled out at a time. If the viewer clicks on a slice, any other pulled-out slice will be pulled in. */ - pullOutOnlyOne: boolean; - /** Pull out radius, in pixels or percents 0.2 */ - pullOutRadius: any; - /** Radius of a pie, in pixels or percents. By default, radius is calculated automatically. */ - radius: any; - /** Specifies whether the animation should be sequenced or all slices should appear at once. */ - sequencedAnimation: boolean; - /** Initial opacity of all slices. If you set startDuration higher than 0, slices will fade in from startAlpha. - @default 1 - */ - startAlpha: number; - /** Angle of the first slice, in degrees. This will work properly only if "depth3D" is set to 0. If "depth3D" is greater than 0, then there can be two angles only: 90 and 270. Value range is 0-360. - @default 90 - */ - startAngle: number; - /** Duration of the animation, in seconds. - @default 1 - */ - startDuration: number; - /** Animation effect. Possible values are ">", "<", "elastic" and "bounce". bounce */ - startEffect: string; - /** Radius of the positions from which the slices will fly in. - default 5 - */ - startRadius: any; - /** Name of the field in chart's dataProvider which holds slice's title. */ - titleField: string; - /** Name of the field in chart's dataProvider which holds url which would be accessed if the user clicks on a slice. */ - urlField: string; - /** If url is specified for a slice, it will be opened when user clicks on it. urlTarget specifies target of this url. Use _blank if you want url to be opened in a new window. _self */ - urlTarget: string; - /** Name of the field in chart's dataProvider which holds slice's value. */ - valueField: string; - /** Name of the field in chart's dataProvider which holds boolean variable defining whether this data item should have an entry in the legend. */ - visibleInLegendField: string; - - /** You can trigger the animation of the pie chart. */ - animateAgain(): void; - /** You can trigger the click on a slice from outside. index - the number of a slice or Slice object. */ - clickSlice(index: number): void; - /** Hides slice. index - the number of a slice or Slice object. */ - hideSlice(index: number): void; - /** You can simulate roll-out of a slice from outside. index - the number of a slice or Slice object. */ - rollOutSlice(index: number): void; - /** You can simulate roll-over a slice from outside. index - the number of a slice or Slice object. */ - rollOverSlice(index: number): void; - /** Shows slice. index - the number of a slice or Slice object. */ - showSlice(index: number): void; - - /** Adds event listener of the type "clickSlice" or "pullInSlice" or "pullOutSlice" to the object. - @param type Always "clickSlice" or "pullInSlice" or "pullOutSlice". - @param handler - If the type is "clickSlice", dispatched when user clicks on a slice. - If the type is "pullInSlice", dispatched when user clicks on a slice and the slice is pulled-in. - If the type is "pullOutSlice", dispatched when user clicks on a slice and the slice is pulled-out. - If the type is "rollOutSlice", dispatched when user rolls-out of the slice. - If the type is "rollOverSlice", dispatched when user rolls-over the slice. - */ - addListener(type: string, handler: (e: {/** Always "rollOverSlice". */ - type: string; dataItem: Slice; chart: AmChart; - }) => void): void; - } - - /** AmRadarChart is the class you have to use for radar and polar chart types. - @example - let chart; - let chartData = [ - {country:"Czech Republic",litres:156.90}, - {country:"Ireland",litres:131.10}, - {country:"Germany",litres:115.80}, - {country:"Australia",litres:109.90}, - {country:"Austria",litres:108.30}, - {country:"UK",litres:99.00} - ]; - - window.onload = function() { - chart = new AmCharts.AmRadarChart(); - chart.dataProvider = chartData; - chart.categoryField = "country"; - chart.startDuration = 2; - - let valueAxis = new AmCharts.ValueAxis(); - valueAxis.axisAlpha = 0.15; - valueAxis.minimum = 0; - valueAxis.dashLength = 3; - valueAxis.axisTitleOffset = 20; - valueAxis.gridCount = 5; - chart.addValueAxis(valueAxis); - - let graph = new AmCharts.AmGraph(); - graph.valueField = "litres"; - graph.bullet = "round"; - graph.balloonText = "[[value]] litres of beer per year" - chart.addGraph(graph); - - chart.write("chartdiv"); - } - */ - class AmRadarChart extends AmCoordinateChart { - /** Bottom margin of the chart. */ - marginBottom: number; - /** Left margin of the chart. */ - marginLeft: number; - /** Right margin of the chart. */ - marginRight: number; - /** Top margin of the chart. */ - marginTop: number; - /** Radius of a radar. 0.35 */ - radius: any; - } - - /** AmXYChart is the class you have to use for XY/Bubble/Scatter chart types. The chart supports simple and logarithmic scales, it can have multiple value axes. - @example - let chartData = [ - {x:10, y:14, value:59}, - {x:5, y:3, value:50}, - {x:-10, y:-3, value:19}, - {x:-6, y:5, value:65}, - {x:15, y:-4, value:92}, - {x:13, y:1, value:8}, - {x:1, y:6, value:35} - ]; - - let chart = new AmCharts.AmXYChart(); - chart.pathToImages = "../../amcharts/javascript/images/"; - chart.dataProvider = chartData; - chart.marginLeft = 35; - chart.startDuration = 1.5; - - let xAxis = new AmCharts.ValueAxis(); - xAxis.position = "left"; - xAxis.autoGridCount = true; - chart.addValueAxis(xAxis); - - let yAxis = new AmCharts.ValueAxis(); - yAxis.position = "bottom"; - yAxis.autoGridCount = true; - chart.addValueAxis(yAxis); - - let graph = new AmCharts.AmGraph(); - graph.valueField = "value"; - graph.xField = "x"; - graph.yField = "y"; - graph.lineAlpha = 0; - graph.bullet = "round"; - chart.addGraph(graph); - - let chartCursor = new AmCharts.ChartCursor(); - chart.addChartCursor(chartCursor); - - let chartScrollbar = new AmCharts.ChartScrollbar(); - chartScrollbar.hideResizeGrips = false; - chart.addChartScrollbar(chartScrollbar); - - chart.write("chartdiv); - */ - class AmXYChart extends AmRectangularChart { - /** Specifies if Scrollbar of X axis (horizontal) should be hidden. */ - hideXScrollbar: boolean; - /** Specifies if Scrollbar of Y axis (vertical) should be hidden. */ - hideYScrollbar: boolean; - /** Maximum zoom factor of the chart. - @default 20 - */ - maxZoomFactor: number; - /** Zooms out, charts shows all available data.*/ - zoomOut(): void; - } - /** Guides are straight vertical or horizontal lines or areas supported by AmSerialChart, AmXYChart and AmRadarChart. You can have guides both on value and category axes. To add/remove a guide to an axis, use axis.addGuide(guide)/axis.removeGuide(guide) methods. - -If you do not set properties such as dashLength, lineAlpha, lineColor, etc - values of the axis are used.*/ - class Guide { - /** If you set it to true, the guide will be displayed above the graphs. */ - above: boolean; - /** Radar chart only. Specifies angle at which guide should start. Affects only fills, not lines. */ - angle: number; - /** Baloon fill color. */ - balloonColor: string; - /** The text which will be displayed if the user rolls-over the guide. */ - balloonText: string; - /** Specifies if label should be bold or not. */ - boldLabel: boolean; - /** Category of the guide (in case the guide is for category axis). */ - category: string; - /** Dash length. */ - dashLength: number; - /** Date of the guide (in case the guide is for category axis and parseDates is set to true). */ - date: Date; - /** Works if a guide is added to CategoryAxis and this axis is non-date-based. If you set it to true, the guide will start (or be placed, if it's not a fill) on the beginning of the category cell and will end at the end of toCategory cell. */ - expand: boolean; - /** Fill opacity. Value range is 0 - 1. */ - fillAlpha: number; - /** Fill color. */ - fillColor: string; - /** Font size of guide label. */ - fontSize: string; - /** Unique id of a Guide. You don't need to set it, unless you want to. */ - id: string; - /** Specifies whether label should be placed inside or outside plot area. */ - inside: boolean; - /** The label which will be displayed near the guide. */ - label: string; - /** Rotation angle of a guide label. */ - labelRotation: number; - /** Line opacity. */ - lineAlpha: number; - /** Line color. */ - lineColor: string; - /** Line thickness. */ - lineThickness: number; - /** Position of guide label. Possible values are "left" or "right" for horizontal axis and "top" or "bottom" for vertical axis. */ - position: string; - /** Tick length. */ - tickLength: number; - /** Radar chart only. Specifies angle at which guide should end. Affects only fills, not lines. */ - toAngle: number; - /** To category of the guide (in case the guide is for category axis). */ - toCategory: string; - /** To date of the guide (in case the guide is for category axis and parseDates is set to true) If you have both date and toDate, the space between these two dates can be filled with color. */ - toDate: Date; - /** To value of the guide (in case the guide is for value axis). */ - toValue: number; - /** Value of the guide (in case the guide is for value axis). */ - value: number; - /** Value axis of a guide. As you can add guides directly to the chart, you might need to specify which which value axis should be used. */ - valueAxis: ValueAxis; - } - /** ImagesSettings is a class which holds common settings of all MapImage objects. */ - class ImagesSettings { - /** Opacity of the image. - @default 1 - */ - alpha: number; - /** Text which is displayed in a roll-over balloon. You can use the following tags: [[title]], [[description]], [[value]] and [[percent]]. [[title]] */ - balloonText: string; - /** Specifies if the image's center should be placed in the provided coordinates. If false, top-left corner will be at provided coordinates. - @default true - */ - centered: boolean; - /** Color of image. This will affect only predefined images (with "type" property set) and images with svgPath set. This property won't affect bitmap images and loaded SVG images. #000000 */ - color: string; - /** Height of a description window. */ - descriptionWindowHeight: number; - /** Width of a description window. - @default 250 - */ - descriptionWindowWidth: number; - /** X position of a description window. */ - descriptionWindowX: number; - /** Y position of a description window. */ - descriptionWindowY: number; - /** Label color. #000000 */ - labelColor: string; - /** Font size of a label. - @default 11 - */ - labelfontSize: string; - /** Position of the label. Allowed values are: left, right, top, bottom and middle. right */ - labelPosition: string; - /** Label roll-over color. #00CC00 */ - labelRollOverColor: string; - /** Opacity of image outline. This will affect only predefined images (with "type" property set) and images with svgPath set. This property won't affect bitmap images and loaded SVG images. */ - outlineAlpha: number; - /** Color of image outline. This will affect only predefined images (with "type" property set) and images with svgPath set. This property won't affect bitmap images and loaded SVG images. */ - outlineColor: string; - /** Thickness of image outline. This will affect only predefined images (with "type" property set) and images with svgPath set. This property won't affect bitmap images and loaded SVG images. - @default 1 - */ - outlineThickness: number; - /** Color of image when hovered. This will affect only predefined images (with "type" property set) and images with svgPath set. This property won't affect bitmap images and loaded SVG images. */ - rollOverColor: string; - /** Scale of the image when hovered. Use value like 1.5 - 2 to enlarge image when user rolls-over it. - @default 1 - */ - rollOverScale: number; - /** Scale of the image if it is selected. Use value like 1.5 - 2 to enlarge selected image. - @default 1 - */ - selectedScale: number; - } - - /** AreasSettings is a class which holds common settings of all MapArea objects. */ - class AreasSettings { - /** Opacity of areas. - @default 1 - */ - alpha: number; - /** Specifies if the areas should be zoomed-in when user clicks on them, event if zoom properties are not set. */ - autoZoom: boolean; - /** Text which is displayed in a roll-over balloon. You can use the following tags: [[title]], [[description]], [[value]] and [[percent]] [[title]] */ - balloonText: string; - /** Color of the areas. #FFCC00 */ - color: string; - /** Color of area with highest value. Colors for areas with values less then highest will be colored with intermediate colors between color and colorSolid. Use colorSteps property of AmMap to change the number of intermediate colors. #990000 */ - colorSolid: string; - /** Height of a description window. */ - descriptionWindowHeight: number; - /** Width of a description window. - @default 250 - */ - descriptionWindowWidth: number; - /** X position of a description window. */ - descriptionWindowX: number; - /** Y position of a description window. */ - descriptionWindowY: number; - /** Opacity of area's outline. - @default 1 - */ - outlineAlpha: number; - /** Color of area's outline. #FFFFFF */ - outlineColor: string; - /** Thickness of area's outline. 0.5 */ - outlineThickness: number; - /** Color of area when user rolls-over it. undefined */ - rollOverColor: string; - /** Color of area's outline when user rolls-over it. #CC0000 */ - rollOverOutlineColor: string; - /** Color of area which is currently selected. #CC0000 */ - selectedColor: string; - /** Opacity of all areas which are in the map svg file, but not listed as areas in DataSet. - @default 1 - */ - unlistedAreasAlpha: number; - /** Color of all areas which are in the map svg file, but not listed as areas in DataSet. #DDDDDD */ - unlistedAreasColor: string; - /** Opacity of all areas' outline which are in the map svg file, but not listed as areas in DataSet. - @default 1 - */ - unlistedAreasOutlineAlpha: number; - /** Color of all areas' outline which are in the map svg file, but not listed as areas in DataSet. #FFFFFF */ - unlistedAreasOutlineColor: string; - } - - /** Slice is an item of AmPieChart's chartData Array and holds all the information about the slice. When working with a pie chart, you do not create slices or change it's properties directly, instead you set array of data using dataProvider property. Consider properties of a Slice read-only - change values in chart's data provider if you need to. */ - class Slice { - /** Opacity of a slice. */ - alpha: number; - /** Color of a slice. */ - color: string; - /** Original object from data provider. */ - dataContext: Object; - /** Slice description. */ - description: string; - /** Specifies whether the slice is hidden */ - hidden: boolean; - /** Percent value of a slice. */ - percents: number; - /** Specifies whether the slice is pulled or not. */ - pulled: boolean; - /** Slice title */ - title: string; - /** Url of a slice */ - url: string; - /** Value of a slice */ - value: number; - /** specifies whether this slice has a legend entry */ - visibleInLegend: boolean; - } - - /** AmStockChart is a main class Stock chart. */ - class AmStockChart { - /** Specifies if animation was already played. Animation is only played once, when chart is rendered for the first time. If you want the animation to be repeated, set this property to false. */ - animationPlayed: boolean; - /** Balloon object. */ - balloon: AmBalloon; - /** Settings for category axes. */ - categoryAxesSettings: CategoryAxesSettings; - /** Indicates if the chart is created. */ - chartCreated: boolean; - /** Chart cursor settings. */ - chartCursorSettings: ChartCursorSettings; - /** Chart scrollbar settings. */ - chartScrollbarSettings: ChartScrollbarSettings; - /** Array of colors used by data sets if no color was set explicitly on data set itself. #FF6600, "#FCD202", "#B0DE09", "#0D8ECF", "#2A0CD0", "#CD0D74", "#CC0000", "#00CC00", "#0000CC", "#DDDDDD", "#999999", "#333333", "#990000" */ - colors: any[]; - /** Array of data sets selected for comparing. */ - comparedDataSets: any[]; - /** Array of DataSets. */ - dataSets: any[]; - /** DataSetSelector object. You can add it if you have more than one data set and want users to be able to select/compare them. */ - dataSetSelector: DataSetSelector; - /** Current end date of the selected period, get only. To set start/end dates, use stockChart.zoom(startDate, endDate) method. */ - endDate: Date; - /** Defines on which day week starts. 0 - Sunday, 1 - Monday.. - @default 1 */ - firstDayOfWeek: number; - /** If set to true the scope of the data view will be set to the end after data update. */ - glueToTheEnd: boolean; - /** Legend settings. */ - legendSettings: LegendSettings; - /** Data set selected as main. */ - mainDataSet: DataSet; - /** Array of StockPanels (charts). */ - panels: any[]; - /** Settings for stock panels. */ - panelsSettings: PanelsSettings; - /** Period selector object. You can add it if you want user's to be able to enter date ranges or zoom chart with predefined period buttons. */ - periodSelector: PeriodSelector; - /** Scrollbar's chart object, get only. */ - scrollbarChart: AmSerialChart; - /** Current start date of the selected period, get only. To set start/end dates, use stockChart.zoom(startDate, endDate) method. */ - startDate: Date; - /** Settings for stock events. */ - stockEventsSettings: any; - /** Settings for value axes. */ - valueAxesSettings: ValueAxesSettings; - /** read-only. Indicates current version of a script. */ - version: string; - /** Specifies whether the chart should zoom-out when main data set is changed. */ - zoomOutOnDataSetChange: boolean; - - /** Adds panel to the stock chart. Requires stockChart.validateNow() method to be called after this action. */ - addPanel(panel: StockPanel): void; - /** Adds panel to the stock chart at a specified index. Requires stockChart.validateNow() method to be called after this action. */ - addPanelAt(panel: StockPanel, index: number): void; - /** Destroys chart, all timeouts and listeners. */ - clear(): void; - /** Hides event bullets. */ - hideStockEvents(): void; - /** Removes panel from the stock chart. Requires stockChart.validateNow() method to be called after this action. */ - removePanel(panel: StockPanel): void; - /** Shows event bullets. */ - showStockEvents(): void; - /** Method which should be called after data was changed. */ - validateData(): void; - /** Method which forces the stock chart to rebuild. Should be called after properties are changed. */ - validateNow(): void; - /** Zooms chart to specified dates. startDate, endDate - Date objects. */ - zoom(startDate: Date, endDate: Date): void; - /** Zooms out the chart. */ - zoomOut(): void; - - /** Adds event listener of the type "dataUpdated" or "init" or "rendered" to the object. - @param type Always "dataUpdated" or "init" or "rendered". - @param handler - If the type is "dataUpdated", dispatched when the chart was updated with new data. - If the type is "init", dispatched when the chart is initialized for the first time. In case you want it to fire again after validateNow() method is called, set chart.chartCreated = false. - If the type is "rendered", dispatched each when chart is rendered. - */ - addListener(type: string, handler: (e: { - /** Either "dataUpdated" or "init". */ - type: string; - chart: AmStockChart; - }) => void): void; - - /** Adds event listener of the type "rollOutStockEvent" or "rollOverStockEvent" or "clickStockEvent" to the object. - @param type // Either "rollOutStockEvent" or "rollOverStockEvent" or "clickStockEvent". - @param handler - If the type is "rollOutStockEvent", dispatched when the user rolls-out of the Stock event (bullet). - If the type is "rollOverStockEvent", dispatched when the user rolls-over of the Stock event (bullet). - If the type is "clickStockEvent", dispatched when the user clicks on the Stock event (bullet). - */ - - addListener(type: string, handler: (e: { - /** Always "rollOverStockEvent". */ - type: string; - eventObject: any; - graph: AmGraph; - date: Date; - chart: AmStockChart; - }) => void): void; - - /** Adds event listener of the type "zoomed" to the object. - @param type Always "zoomed". - @param handler Dispatched when the chart is zoomed (even for the first time, when chart is initialized).*/ - addListener(type: string, handler: (e: { - /** Always "zoomed". */ - type: string; - startDate: Date; - endDate: Date; - period: string; - chart: AmStockChart; - }) => void): void; - - /** Adds event listener of the type "panelRemoved" to the object. - @param type Always "panelRemoved". - @param handler Dispatched when the StockPanel is removed.*/ - addListener(type: string, handler: (e: { - /** Always "panelRemoved". */ - - type: string; - panel: StockPanel; - chart: AmStockChart; - }) => void): void; - - /** Removes event listener from chart object. */ - removeListener(chart: AmChart, type: string, handler: any): void; - } - - /** ValueAxesSettings settings set 's settings for all ValueAxes. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of ValueAxis class will be used. */ - class ValueAxesSettings { - /** Specifies whether number for gridCount is specified automatically, according to the axis size. - @default true - */ - autoGridCount: boolean; - /** Axis opacity. */ - axisAlpha: number; - /** Axis color. */ - axisColor: string; - /** Thickness of the axis. */ - axisThickness: number; - /** Label color. */ - color: string; - /** Length of a dash. By default, the grid line is not dashed. */ - dashLength: number; - /** Fill opacity. Every second space between grid lines can be filled with color. */ - fillAlpha: number; - /** Fill color. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills. */ - fillColor: string; - /** Opacity of grid lines. */ - gridAlpha: number; - /** Color of grid lines. */ - gridColor: string; - /** Approximate number of grid lines. autoGridCount should be set to false, otherwise this property will be ignored. */ - gridCount: number; - /** Thickness of grid lines. */ - gridThickness: number; - /** Specifies whether guide values should be included when calculating min and max of the axis. */ - includeGuidesInMinMax: boolean; - /** If true, the axis will include hidden graphs when calculating min and max values. */ - includeHidden: boolean; - /** Specifies whether values should be placed inside or outside plot area. In case you set this to false, you'll have to adjust marginLeft or marginRight in [[PanelsSettings]] in order labels to be visible. - @default true - */ - inside: boolean; - /** Specifies whether values on axis can only be integers or both integers and doubles. */ - integersOnly: boolean; - /** Frequency at which labels should be placed. */ - labelFrequency: number; - /** Specifies whether value labels are displayed. */ - labelsEnabled: boolean; - /** Set to true if value axis is logarithmic, false otherwise. */ - logarithmic: boolean; - /** The distance of the axis to the plot area, in pixels. Useful if you have more then one axis on the same side. */ - offset: number; - /** Position of the value axis. Possible values are "left" and "right". */ - position: string; - /** Set to true if value axis is reversed (smaller values on top), false otherwise. */ - reversed: boolean; - /** Specifies if first label of value axis should be displayed. */ - showFirstLabel: boolean; - /** Specifies if last label of value axis should be displayed. */ - showLastLabel: boolean; - /** Stacking mode of the axis. Possible values are: "none", "regular", "100%", "3d". */ - stackType: string; - /** Tick length. */ - tickLength: number; - /** Unit which will be added to the value label. */ - unit: string; - /** Position of the unit. Possible values are "left" or "right". */ - unitPosition: string; - } - - /** AmLegend is the class that displays legend of the chart. Legend to the chart should be added using chart.addLegend(legend) method. - @example - let chart = new AmCharts.AmSerialChart(); - let legend = new AmCharts.AmLegend(); - chart.addLegend(legend); - */ - class AmLegend { - /** Alignment of legend entries. Possible values are: "left", "center", "right". left */ - align: string; - /** Used if chart is Serial or XY. In case true, margins of the legend are adjusted and made equal to chart's margins. - @default true - */ - autoMargins: boolean; - /** Opacity of legend's background. Value range is 0 - 1 */ - backgroundAlpha: number; - /** Background color. You should set backgroundAlpha to >0 vallue in order background to be visible. #FFFFFF */ - backgroundColor: string; - /** Opacity of chart's border. Value range is 0 - 1. */ - borderAlpha: number; - /** Color of legend's border. You should set borderAlpha >0 in order border to be visible. #000000 */ - borderColor: string; - /** In case legend position is set to "absolute", you can set distance from bottom of the chart, in pixels. */ - bottom: number; - /** Text color. Will use chart's color if not set. */ - color: string; - /** This can be used by AmMap only. You can pass array of objects with title, color, markerType values, for example: [{title: "One", color: "#3366CC"},{title: "Two", color: "#FFCC33"}] */ - data: any[]; - /** Specifies if each of legend entry should be equal to the most wide entry. Won't look good if legend has more than one line. - @default true - */ - equalWidths: boolean; - /** Font size. Will use chart's font size if not set. */ - fontSize: string; - /** Horizontal space between legend item and left/right border. */ - horizontalGap: number; - /** The text which will be displayed in the legend. Tag [[title]] will be replaced with the title of the graph. [[title]] */ - labelText: string; - /** In case legend position is set to "absolute", you can set distance from left side of the chart, in pixels. */ - left: number; - /** Bottom margin. */ - marginBottom: number; - /** Left margin. This property will be ignored if chart is Serial or XY and autoMargins property of the legend is true (default). - @default 20 - */ - marginLeft: number; - /** Right margin. This property will be ignored if chart is Serial or XY and autoMargins property of the legend is true (default). - @default 20 - */ - marginRight: number; - /** Top margin. */ - marginTop: number; - /** Marker border opacity 1. */ - markerBorderAlpha: number; - /** Marker border color. If not set, will use the same color as marker. */ - markerBorderColor: string; - /** Thickness of the legend border. The default value (0) means the line will be a "hairline" (1 px). In case marker type is line, this style will be used for line thickness. - @default 1 - */ - markerBorderThickness: number; - /** The color of the disabled marker (when the graph is hidden). #AAB3B3 */ - markerDisabledColor: string; - /** Space between legend marker and legend text, in pixels. - @default 5 - */ - markerLabelGap: number; - /** Size of the legend marker (key). - @default 16 - */ - markerSize: number; - /** Shape of the legend marker (key). Possible values are: "square", "circle", "line", "dashedLine", "triangleUp", "triangleDown", "bubble", "none". square */ - markerType: string; - /** Maximum number of columns in the legend. If Legend's position is set to "right" or "left", maxColumns is automatically set to 1. */ - maxColumns: number; - /** Position of a legend. Possible values are: "bottom", "top", "left", "right" and "absolute". In case "absolute", you should set left and top properties too. (this setting is ignored in Stock charts). In case legend is used with AmMap, position is set to "absolute" automatically. bottom */ - position: string; - /** Specifies whether legend entries should be placed in reversed order. */ - reversedOrder: boolean; - /** In case legend position is set to "absolute", you can set distance from right side of the chart, in pixels. */ - right: number; - /** Legend item text color on roll-over. #CC0000 */ - rollOverColor: string; - /** When you roll-over the legend entry, all other graphs can reduce their opacity, so that the graph you rolled-over would be distinguished. This style specifies the opacity of the graphs. - @default 1 - */ - rollOverGraphAlpha: number; - /** You can use this property to turn all the legend entries off. - @default true - */ - showEntries: boolean; - /** Horizontal space between legend items, in pixels. - @default 10 - */ - spacing: number; - /** Whether showing/hiding of graphs by clicking on the legend marker is enabled or not. In case legend is used with AmMap, this is set to false automatically. - @default true - */ - switchable: boolean; - /** Legend switch color. #FFFFFF */ - switchColor: string; - /** Legend switch type (in case the legend is switchable). Possible values are "x" and "v". x */ - switchType: string; - /** If true, clicking on the text will show/hide balloon of the graph. Otherwise it will show/hide graph/slice, if switchable is set to true. */ - 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 graph’s 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 */ - valueAlign: string; - /** The text which will be displayed in the value portion of the legend. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]]. [[value]] */ - valueText: string; - /** Width of the value text. - @default 80 - */ - valueWidth: number; - /** Vertical space between legend items also between legend border and first and last legend row. 10 */ - verticalGap: number; - /** Adds event listener of the type "clickLabel" or "clickMarker" or "hideItem" to the object. - @param type Either "clickLabel" or "clickMarker" or "hideItem". - @param handler - If the type is "clickLabel", dispatched when legend label is clicked. - If the type is "clickMarker", dispatched when legend marker is clicked. - If the type is "hideItem", dispatched when user clicks on a legend item marker and hides corresponding object. - If the type is "rollOutItem", dispatched when user rolls-out of the legend item label (or whole item, if switchable is set to false). - If the type if "rollOverItem", dispatched when user rolls-over the legend item label (or whole item, if switchable is set to false). - If the type is "rollOutMarker", dispatched when user clicks out of a legend item marker and shows corresponding object. - If the type if "rollOverMarker", dispatched when user clicks on a legend item marker and shows corresponding object. - */ - - /** - * Adds event listener of the type "showItem" to the object. - * @param type Always "showItem". - * @param handler The event handler. - */ - addListener(type: string, handler: (e: {/** Always "showItem". */ - type: string; dataItem: Object; chart: AmChart; - }) => void): void; - - /** Removes event listener from chart object. */ - removeListener(chart: AmChart, type: string, handler: any): void; - } - - /** StockLegend is a legend of StockPanel. */ - class StockLegend extends AmLegend { - /** The text which will be displayed in the value portion of the legend when graph is comparable and at least one dataSet is selected for comparing. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents.value/open/close/low/high]], [[description]]. [[percents.value]]% */ - valueTextComparing: string; - /** The text which will be displayed in the value portion of the legend. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]]. [[value]] */ - valueTextRegular: string; - } - - /** StockPanel class creates stock panels (charts). AmStockChart can have multiple Stock panels. */ - class StockPanel extends AmSerialChart { - /** Specifies whether x button will be displayed near the panel. This button allows turning panel off. */ - allowTurningOff: boolean; - /** If true, drawing icons will be displayed in top-right corner. */ - drawingIconsEnabled: boolean; - /** Specifies on which value axis user can draw trend lines. Set drawingIconsEnabled to true if you want drawing icons to be visible. First value axis will be used if not set here. */ - drawOnAxis: ValueAxis; - /** Specifies if all trend lines should be erased when erase button is clicked. If false, trend lines can be erased one by one. */ - eraseAll: boolean; - /** Size of trend line drawing icons. If you change this size, you should update icon images if you want them to look properly. - @default 18 - */ - iconSize: number; - /** Relative height of panel. Possible values 0 - 100. */ - percentHeight: number; - /** Specifies when values should be recalculated to percents. Possible values are: "never", "always", "whenComparing". whenComparing */ - recalculateToPercents: string; - /** Specifies whether this panel will show category axis. - @default true - */ - showCategoryAxis: boolean; - stockGraphs: StockGraph[]; - /** Stock chart legend. */ - stockLegend: StockLegend; - /** Title of a panel. Note, StockLegend should be added in order title to be displayed. */ - title: string; - /** Trend line opacity. - @default 1 - */ - trendLineAlpha: number; - /** Trend line color. #00CC00 */ - trendLineColor: string; - /** Trend line dash length. */ - trendLineDashLength: number; - /** Trend line thickness. - @default 2 - */ - trendLineThickness: number; - /** Adds a graph to the panel. */ - addStockGraph(graph: StockGraph): void; - /** Removes graph from the panel. */ - removeStockGraph(graph: StockGraph): void; - } - - /** AmChart is a base class of all charts. It can not be instantiated explicitly. AmCoordinateChart, AmPieChart and AmMap extend AmChart class. */ - class AmChart { - /** used when constructing a chart with a theme */ - constructor(theme?: any); - /** Specifies, if class names should be added to chart elements. */ - addClassNames: boolean; - /** Array of Labels. Example of label object, with all possible properties: -{"x": 20, "y": 20, "text": "this is label", "align": "left", "size": 12, "color": "#CC0000", "alpha": 1, "rotation": 0, "bold": true, "url": "http://www.amcharts.com"} */ - allLabels: Label[]; - /** Set this to false if you don't want chart to resize itself whenever its parent container size changes. */ - autoResize: boolean; - /** Opacity of background. Set it to >0 value if you want backgroundColor to work. However we recommend changing div's background-color style for changing background color. */ - backgroundAlpha: number; - /** Background color. You should set backgroundAlpha to >0 value in order background to be visible. We recommend setting background color directly on a chart's DIV instead of using this property. #FFFFFF */ - backgroundColor: string; - /** The chart creates AmBalloon class itself. If you want to customize balloon, get balloon instance using this property, and then change balloon's properties. AmBalloon */ - balloon: AmBalloon; - /** Opacity of chart's border. Value range is 0 - 1. */ - borderAlpha: number; - /** Color of chart's border. You should set borderAlpha >0 in order border to be visible. We recommend setting border color directly on a chart's DIV instead of using this property. #000000 */ - borderColor: string; - /** This prefix is added to all class names which are added to all visual elements of a chart in case addClassNames is set to true. */ - classNamePrefix: string; - /** Text color. #000000 */ - color: string; - /** Non-commercial version only. Specifies position of link to amCharts site. Allowed values are: top-left, top-right, bottom-left and bottom-right. - @default 'top-left' - */ - creditsPosition: string; - /** Array of data objects, for example: [{country:"US", value:524},{country:"UK", value:624},{country:"Lithuania", value:824}]. You can have any number of fields and use any field names. In case of AmMap, data provider should be MapData object. */ - dataProvider: any[]; - /** Decimal separator. - @Default . */ - decimalSeparator: string; - /** Using this property you can add any additional information to SVG, like SVG filters or clip paths. The structure of this object should be identical to XML structure of a object you are adding, only in JSON format. */ - defs: any; - /** Export config. Specifies how export to image/data export/print/annotate menu will look and behave. You can find a lot of examples in amcharts/plugins/export folder. */ - export: ExportSettings; - /** Font family. Verdana */ - fontFamily: string; - /** Font size. - @default 11 - */ - fontSize: string; - /** If you set this to true, the lines of the chart will be distorted and will produce hand-drawn effect. Try to adjust chart.handDrawScatter and chart.handDrawThickness properties for a more scattered result. - @Default false - */ - handDrawn: boolean; - /** Defines by how many pixels hand-drawn line (when handDrawn is set to true) will fluctuate. - @Default 2 - */ - handDrawScatter: number; - /** Defines by how many pixels line thickness will fluctuate (when handDrawn is set to true). - @Default 1 - */ - handDrawThickness: number; - /** Time, in milliseconds after which balloon is hidden if the user rolls-out of the object. Might be useful for AmMap to avoid balloon flickering while moving mouse over the areas. Note, this is not duration of fade-out. Duration of fade-out is set in AmBalloon class. - @Default 150 - */ - hideBalloonTime: number; - /** Legend of a chart. */ - legend: AmLegend; - /** Reference to the div of the legend. */ - legendDiv: HTMLElement; - /** You can add listeners of events using this property. Example: listeners = [{"event":"dataUpdated", "method":handleEvent}]; */ - listerns: Object[]; - /** This setting affects touch-screen devices only. If a chart is on a page, and panEventsEnabled are set to true, the page won't move if the user touches the chart first. If a chart is big enough and occupies all the screen of your touch device, the user won’t be able to move the page at all. That's why the default value is "false". If you think that selecting/panning the chart or moving/pinching the map is a primary purpose of your users, you should set panEventsEnabled to true. */ - panEventsEnabled: boolean; - /** Specifies absolute or relative path to amCharts files, i.e. "amcharts/". (where all .js files are located) - If relative URLs are used, they will be relative to the current web page, displaying the chart. - You can also set path globally, using global JavaScript variable AmCharts_path. If this variable is set, and "path" is not set in chart config, the chart will assume the path from the global variable. This allows setting amCharts path globally. I.e.: - let AmCharts_path = "/libs/amcharts/"; - "path" parameter will be used by the charts to locate it's files, like images, plugins or patterns.*/ - path: string; - /** Specifies path to the folder where images like resize grips, lens and similar are. - IMPORTANT: Since V3.14.12, you should use "path" to point to amCharts directory instead. The "pathToImages" will be automatically set and does not need to be in the chart config, unless you keep your images separately from other amCharts files. */ - pathToImages: string; - /** Precision of percent values. -1 means percent values won't be rounded at all and show as they are. - @default 2 - */ - percentPrecision: number; - /** Precision of values. -1 means values won't be rounded at all and show as they are. - @Default 1*/ - precision: number; - /** Prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc. Prefixes are used on value axes and in the legend. To enable prefixes, set usePrefixes property to true. [{number:1e+3,prefix:"k"},{number:1e+6,prefix:"M"},{number:1e+9,prefix:"G"},{number:1e+12,prefix:"T"},{number:1e+15,prefix:"P"},{number:1e+18,prefix:"E"},{number:1e+21,prefix:"Z"},{number:1e+24,prefix:"Y"}] */ - prefixesOfBigNumbers: any[]; - /** Prefixes which are used to make small numbers shorter: 2μ instead of 0.000002, etc. Prefixes are used on value axes and in the legend. To enable prefixes, set usePrefixes property to true. [{number:1e-24, prefix:"y"},{number:1e-21, prefix:"z"},{number:1e-18, prefix:"a"},{number:1e-15, prefix:"f"},{number:1e-12, prefix:"p"},{number:1e-9, prefix:"n"},{number:1e-6, prefix:"μ"},{number:1e-3, prefix:"m"}] */ - prefixesOfSmallNumbers: any[]; - /** Theme of a chart. Config files of themes can be found in amcharts/themes/ folder. More info about using themes. */ - theme: string; - /** Thousands separator. - @default . - */ - thousandsSeparator: string; - /** Array of Title objects. */ - titles: Title[]; - /** Type of a chart. Required when creating chart using JSON. Possible types are: serial, pie, xy, radar, funnel, gauge, map, stock. */ - type: string; - /** If true, prefixes will be used for big and small numbers. You can set arrays of prefixes via prefixesOfSmallNumbers and prefixesOfBigNumbers properties. */ - usePrefixes: boolean; - /** Read-only. Indicates current version of a script. */ - version: string; - /** Adds a label on a chart. - You can use it for labeling axes, adding chart title, etc. x and y coordinates can be set in number, percent, or a number with ! in front of it - coordinate will be calculated from right or bottom instead of left or top. - x - horizontal coordinate - y - vertical coordinate - text - label's text - align - alignment (left/right/center) - size - text size - color - text color - rotation - angle of rotation - alpha - label alpha - bold - specifies if text is bold (true/false), - url - url - */ - addLabel(x: number | string, y: number | string, text: string, align: string, size?: number, color?: string, rotation?: number, alpha?: number, bold?: boolean, url?: string): any; - /** - * Adds a legend to the chart. - * By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. - * (NOTE: This method will not work on StockPanel.) - * @param legend - The legend. - * @param legendDivId - Id of the legend div (optional). - */ - addLegend(legend: AmLegend, legendDivId?: string): void; - /** - * Adds a legend to the chart. - * By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. - * (NOTE: This method will not work on StockPanel.) - * @param legend - The legend. - * @param legendDiv - Legend div (optional). - */ - addLegend(legend: AmLegend, legendDiv: HTMLElement): void; - - /** Adds title to the top of the chart. Pie, Radar positions are updated so that they won't overlap. Plot area of Serial/XY chart is also updated unless autoMargins property is set to false. You can add any number of titles - each of them will be placed in a new line. To remove titles, simply clear titles array: chart.titles = []; and call chart.validateNow() method. text - text of a title size - font size color - title color alpha - title opacity bold - boolean value indicating if title should be bold. */ - addTitle(text: string, size: number, color: string, alpha: number, bold: boolean): void; - /** Clears the chart area, intervals, etc. */ - clear(): void; - /** Removes all labels added to the chart. */ - clearLabels(): void; - /** Use this method to force the chart to resize to it's current container size. */ - invalidateSize(): void; - /** Removes chart's legend. */ - removeLegend(): void; - /** This method should be called after data in your data provider changed or a new array was set to dataProvider. After calling this method the chart will parse data and redraw. */ - validateData(): void; - /** This method should be called after you changed one or more properties of any class. The chart will redraw after this method is called. */ - validateNow(): void; - - /** Adds chart to the specified DIV. - @param container DIV object which will hold the chart. */ - write(container: HTMLElement): void; - /** Adds chart to the specified DIV. - @param container Id of a DIV which will hold the chart. */ - write(container: string): void; - - /** Adds event listener of the type "dataUpdated" or "init" to the object. - @param type "dataUpdated" or "init". - @param handler - If the type is "dataUpdated". - Dispatched when chart is build for the first time or after validateData() method was called. - If the type is "init". - Dispatched when chart is build for the first time. - */ - addListener(type: string, handler: (e: { - /** Either "dataUpdated" or "init". */ - type: string; - chart: AmChart; - }) => void): void; - /** Removes event listener from chart object. */ - removeListener(chart: AmChart, type: string, handler: any): void; - } - - /** AmCoordinateChart is a base class of AmRectangularChart. It can not be instantiated explicitly. */ - - class AmCoordinateChart extends AmChart { - /** Read-only. Array, holding processed chart's data. */ - chartData: Object[]; - /** Specifies the colors of the graphs if the lineColor of a graph is not set. - It there are more graphs then colors in this array, the chart picks random color. - @default ['#FF6600', '#FCD202', '#B0DE09', '#0D8ECF', '#2A0CD0', '#CD0D74', '#CC0000', '#00CC00', '#0000CC', '#DDDDDD', '#999999', '#333333', '#990000'] */ - colors: string[]; - /** The array of graphs belonging to this chart. - To add/remove graph use addGraph/removeGraph methods instead of adding/removing graphs directly to array. - */ - graphs: AmGraph[]; - /** Specifies if grid should be drawn above the graphs or below. Will not work properly with 3D charts. - @default false - */ - gridAboveGraphs: boolean; - /** Instead of adding guides to the axes, you can push all of them to this array. In case guide has category or date defined, it will automatically will be assigned to the category axis. Otherwise to first value axis, unless you specify a different valueAxis for the guide. */ - guides: Guide[]; - /** Specifies whether the animation should be sequenced or all objects should appear at once. - @default true - */ - sequencedAnimation: boolean; - /** The initial opacity of the column/line. - If you set startDuration to a value higher than 0, the columns/lines will fade in from startAlpha. - Value range is 0 - 1. - @default 1 - */ - startAlpha: number; - /** Duration of the animation, in seconds. */ - startDuration: number; - /** Animation effect. - Possible values are ">", "<", elastic" and "bounce". - @default "elastic" - */ - startEffect: string; - /** Target of url. - @default this - */ - urlTarget: any; - /** The array of value axes. - To add/remove value axis use addValueAxis/removeValueAxis methods instead of adding/removing axes directly to array. - Chart creates one value axis automatically, so if you need only one value axis, you don't need to create it. - */ - valueAxes: any[]; - /** Adds a graph to the chart. - */ - addGraph(graph: AmGraph): void; - /** Adds a legend to the chart. By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. (NOTE: This method will not work on StockPanel.) */ - /** Adds value axis to the chart. - One value axis is created automatically, so if you don't want to change anything or add more value axes, you don't need to add it. - */ - addValueAxis(axis: ValueAxis): void; - /** You can trigger the animation of the chart. */ - animateAgain(): void; - - /** AmGraph Returns graph by id. */ - getGraphById(graphId: string): AmGraph; - - /** Returns value axis by id.*/ - getValueAxisById(axisId: string): ValueAxis; - - /** Hide the graph (if it is visible). Usually this method is called from the Legend, when you click on the legend marker. - */ - hideGraph(graph: AmGraph): void; - - /** Hide value balloon of a graph. Usually this method is called from the Legend, when you click on the legend text.*/ - hideGraphsBalloon(graph: AmGraph): void; - - /** Highlight the graph. Usually this method is called from the Legend, when you roll-over the legend entry.*/ - highlightGraph(graph: AmGraph): void; - - /** Removes graph from the chart.*/ - removeGraph(graph: AmGraph): void; - - /** Removes value axis from the chart. When you remove value axis, all graphs assigned to this axis are also removed. */ - removeValueAxis(axis: ValueAxis): void; - - /** Show the graph (if it is hidden). Usually this method is called from the Legend, when you click on the legend marker.*/ - showGraph(graph: AmGraph): void; - - /** Show value balloon of a graph. Usually this method is called from the Legend, when you click on the legend text.*/ - showGraphsBalloon(graph: AmGraph): void; - - /** UnhighlightGraph the graph. Usually this method is called from the Legend, when you roll-out the legend entry.*/ - unhighlightGraph(graph: AmGraph): void; - /** Adds event listener of the type "clickGraphItem" or "doubleClickGraphItem" or "rightClickGraphItem" or "rollOutGraphItem" or "rollOverGraphItem" to the object. - @param type Either "clickGraphItem" or "doubleClickGraphItem" or "rightClickGraphItem" or "rollOutGraphItem" or "rollOverGraphItem". - @param handler Dispatched when user clicks on the data item (column/bullet) - */ - addListener(type: string, handler: (e: { - /** Either "clickGraphItem" or "doubleClickGraphItem" or "rightClickGraphItem" or "rollOutGraphItem" or "rollOverGraphItem". */ - type: string; - graph: AmGraph; - item: GraphDataItem; - index: number; - chart: AmChart; - }) => void): void; - } - - /** GraphDataItem holds all the information about the graph's data item. When working with a chart, you do not create GraphDataItem objects or change it's properties directly. GraphDataItem is passed to you by events when user interacts with data item on the chart. The list of properties below will help you to extract data item's value/coordinate/etc. */ - class GraphDataItem { - /** Opacity of the data item. */ - alpha: number; - /** Bullet type. */ - bullet: string; - /** Bullet size. */ - bulletSize: number; - /** Category value. */ - category: string; - /** Color of the data item. */ - color: string; - /** Custom bullet (path to file name). */ - customBullet: string; - /** Original object from data provider. */ - dataContext: Object; - /** Description. */ - description: string; - /** Array of colors of the data item, used by column and candlestick chart only. */ - fillColors: any[]; - /** Object which holds percents when recalculateToPercents is set to true. */ - percents: Object; - /** SerialDataItem of this graphDataItem */ - serialDataItem: SerialDataItem; - /** url */ - url: string; - /** Object which holds values of the data item (value, open, close, low, high). */ - values: Object; - /** x coordinate of the data item. */ - x: number; - /** y coordinate of the data item. */ - y: number; - } - - /** SerialDataItem holds all the information about each series. When working with a chart, you do not create SerialDataItem objects or change it's properties directly. Consider properties of a SerialDataItem read-only - change values in chart's data provider if you need to. When serial chart parses dataProvider, it generates "chartData" array. Objects of this array are SerialDataItem objects. */ - class SerialDataItem { - /** You can access each GraphDataItem using this object. The data structure is: graphDataItem = serialDataItem.axes[axisId].graphs[graphId]. */ - axes: Object; - /** category value. String if parseDates is false, Date if true. */ - category: any; - /** Timestamp of a series date. Avalable only if parseDates property of CategoryAxis is set to true. */ - time: number; - /** Coordinate (horizontal or vertical, depends on chart's rotate property) of the series. */ - x: number; - } - - class CategoryAxis extends AxisBase { - /** When parse dates is on for the category axis, the chart will try to highlight the beginning of the periods, like month, in bold. Set this to false to disable the functionality. - @default true - */ - boldPeriodBeginning: boolean; - - /** Date formats of different periods. Possible period values: fff - milliseconds, ss - seconds, mm - minutes, hh - hours, DD - days, MM - months, WW - weeks, YYYY - years. Check this page for date formatting strings. [{period:'fff',format:'JJ:NN:SS'},{period:'ss',format:'JJ:NN:SS'},{period:'mm',format:'JJ:NN'},{period:'hh',format:'JJ:NN'},{period:'DD',format:'MMM DD'},{period:'WW',format:'MMM DD'},{period:'MM',format:'MMM'},{period:'YYYY',format:'YYYY'}] */ - dateFormats: any[]; - - /** In case your category axis values are Date objects and parseDates is set to true, the chart will parse dates and will place your data points at irregular intervals. However if you want dates to be parsed (displayed on the axis, baloons, etc), but data points to be placed at equal intervals (omiting dates with no data), set equalSpacing to true. */ - equalSpacing: boolean; - - /** Field in data provider which specifies if the category value should always be shown. For example: categoryAxis.forceShowField = "forceShow"; Field in data provider which specifies if the category value should always be shown. For example: categoryAxis.forceShowField = "forceShow"; - And in data: - {category:"one", forceShow:true, value:100} - Note, this works only when parseDates is set to false.*/ - forceShowField: string; - - /** 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; - - /** In case your category axis values are Date objects, set this to true. In this case the chart will parse dates and will place your data points at irregular intervals. If you want dates to be parsed, but data points to be placed at equal intervals, set both parseDates and equalSpacing to true. */ - parseDates: boolean; - - /** 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): void; - - /** date - Date object Returns Date of the coordinate, in case parseDates is set to true and equalSpacing is set to false. coordinate - Number */ - coordinateToDate(coordinate: number): void; - - /** Number Returns coordinate of the date, in case parseDates is set to true. if parseDates is false, use categoryToCoordinate method. date - Date object */ - dateToCoordinate(date: Date): void; - - /** Number Returns index of the category which is most close to specified coordinate. x - coordinate */ - xToIndex(x: number): void; - } - - /** ChartScrollbar class displays chart scrollbar. Supported by AmSerialChart and AmXYChart. - @example - let chart = new AmCharts.AmSerialChart(); - let chartScrollbar = new AmCharts.ChartScrollbar(); - chart.addChartScrollbar(chartScrollbar); - */ - class ChartScrollbar { - /** Specifies whether number of gridCount is specified automatically, acoarding to the axis size. */ - autoGridCount: boolean; - /** Background opacity. - @default 1 - */ - backgroundAlpha: number; - /** Background color of the scrollbar. - @default #D4D4D4 - */ - backgroundColor: string; - /** Read-only. Category axis of the scrollbar. */ - categoryAxis: CategoryAxis; - /** Text color. Will use chart's color if not set. */ - color: string; - /** Specifies which graph will be displayed in the scrollbar. Only Serial chart's scrollbar can display a graph. */ - graph: AmGraph; - /** Graph fill opacity. Value range is 0 - 1. 0.1 */ - graphFillAlpha: number; - /** Graph fill color. #000000 */ - graphFillColor: string; - /** Graph line opacity. Value range is 0 - 1. */ - graphLineAlpha: number; - /** Graph line color. #000000 */ - graphLineColor: string; - /** by default the graph type is the same as the original graph's type, however in case of candlestick or ohlc you might want to show line graph in the scrollbar. Possible values are: "line", "column", "step", "smoothedLine", "candlestick", "ohlc". */ - graphType: string; - /** Grid opacity. Value range is 0 - 1. 0.7 */ - gridAlpha: number; - /** Grid color. #FFFFFF */ - gridColor: string; - /** The number of grid lines. */ - gridCount: number; - /** Specifies whether resize grips are hidden when mouse is away from the scrollbar. */ - hideResizeGrips: boolean; - /** Specifies whether scrollbar has a resize feature. - @default true - */ - resizeEnabled: boolean; - /** Height (width, if chart is rotated) of a scrollbar. 20 */ - scrollbarHeight: number; - /** Duration of scrolling, when the user clicks on scrollbar's background, in seconds. - @default 2 - 3*/ - scrollDuration: number; - /** Selected backround opacity. - @default 1 - */ - selectedBackgroundAlpha: number; - /** Selected background color. #EFEFEF */ - selectedBackgroundColor: string; - /** Selected graph's fill opacity. Value range is 0 - 1. 0.5 */ - selectedGraphFillAlpha: number; - /** Selected graph's fill color. #000000 */ - selectedGraphFillColor: string; - /** Selected graph's line opacity. Value range is 0 - 1. */ - selectedGraphLineAlpha: number; - /** Selected graph's line color. #000000 */ - selectedGraphLineColor: string; - /** Specifies if the chart should be updated while dragging/resizing the scrollbar or only at the moment when user releases mouse button. */ - updateOnReleaseOnly: boolean; - } - - /** AmRectangularChart is a base class of AmSerialChart and AmXYChart. It can not be instantiated explicitly.*/ - class AmRectangularChart extends AmCoordinateChart { - /** The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). - @default 0 - */ - angle: number; - /** Space left from axis labels/title to the chart's outside border, if autoMargins set to true. - @default 10 - */ - autoMarginOffset: number; - /** Specifies if margins of a chart should be calculated automatically so that labels of axes would fit. The chart will adjust only margins with axes. Other margins will use values set with marginRight, marginTop, marginLeft and marginBottom properties. - @default true - */ - autoMargins: boolean; - /** Cursor of a chart. */ - chartCursor: ChartCursor; - /** Chart scrollbar. */ - chartScrollbar: ChartScrollbar; - /** The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0). - @default 0*/ - depth3D: number; - /** Number of pixels between the container's bottom border and plot area. This space can be used for bottom axis' values. If autoMargin is true and bottom side has axis, this property is ignored. - @default 20 - */ - marginBottom: number; - /** Number of pixels between the container's left border and plot area. This space can be used for left axis' values. If autoMargin is true and left side has axis, this property is ignored. - @default 20 - */ - marginLeft: number; - /** Number of pixels between the container's right border and plot area. This space can be used for Right axis' values. If autoMargin is true and right side has axis, this property is ignored. - @default 20 - */ - marginRight: number; - /** Flag which should be set to false if you need margins to be recalculated on next chart.validateNow() call. - @default false - */ - marginsUpdated: boolean; - /** Number of pixels between the container's top border and plot area. This space can be used for top axis' values. If autoMargin is true and top side has axis, this property is ignored. - @default 20 - */ - marginTop: number; - /** The opacity of plot area's border. Value range is 0 - 1. - @default 0 - */ - plotAreaBorderAlpha: number; - /** The color of the plot area's border. Note, the it is invisible by default, as plotAreaBorderAlpha default value is 0. Set it to a value higher than 0 to make it visible. - @default '#000000'*/ - plotAreaBorderColor: string; - /** Opacity of plot area. Plural form is used to keep the same property names as our Flex charts'. Flex charts can accept array of numbers to generate gradients. Although you can set array here, only first value of this array will be used. - @default 0 - */ - plotAreaFillAlphas: number; - /** You can set both one color if you need a solid color or array of colors to generate gradients, for example: ["#000000", "#0000CC"] - @default '#FFFFFF' - */ - plotAreaFillColors: any; - /** If you are using gradients to fill the plot area, you can use this property to set gradient angle. The only allowed values are horizontal and vertical: 0, 90, 180, 270. - @default 0 - */ - plotAreaGradientAngle: number; - /** Array of trend lines added to a chart. You can add trend lines to a chart using this array or access already existing trend lines */ - trendLines: TrendLine[]; - /** Opacity of zoom-out button background. - @default 0 - */ - zoomOutButtonAlpha: number; - /** Zoom-out button background color. - @default '#e5e5e5' - */ - zoomOutButtonColor: string; - /** Name of zoom-out button image. In the images folder there is another lens image, called lensWhite.png. You might want to have white lens when background is dark. Or you can simply use your own image. - @default lens.png - */ - zoomOutButtonImage: string; - /** Size of zoom-out button image - @default: 17 - */ - zoomOutButtonImageSize: number; - /** Padding around the text and image. - @default: 8 - */ - zoomOutButtonPadding: number; - /** Opacity of zoom-out button background when mouse is over it. - @default: 1 - */ - zoomOutButtonRollOverAlpha: number; - /** Text in the zoom-out button. Show all */ - zoomOutText: string; - - /** Adds a ChartCursor object to a chart */ - addChartCursor(cursor: ChartCursor): void; - /** Adds a ChartScrollbar to a chart */ - addChartScrollbar(scrollbar: ChartScrollbar): void; - /** Adds a TrendLine to a chart. - You should call chart.validateNow() after this method is called in order the trend line to be visible. */ - addTrendLine(trendLine: TrendLine): void; - /** Removes cursor from the chart */ - removeChartCursor(): void; - /** Removes scrollbar from the chart */ - removeChartScrollbar(): void; - /** Removes a trend line from a chart. - You should call chart.validateNow() in order the changes to be visible. */ - removeTrendLine(trendLine: TrendLine): void; - } - - /* Trend lines are straight lines indicating trends, might also be used for some different purposes. Can be used by Serial and XY charts. To add/remove trend line, use chart.addTrendLine(trendLine)/chart.removeTrendLine(trendLine) methods or simply pass array of trend lines: chart.trendLines = [trendLine1, trendLine2]. - @example - let trendLine = new AmCharts.TrendLine(); - trendLine.initialDate = new Date(2012, 0, 2, 12); // 12 is hour - to start trend line in the middle of the day - trendLine.finalDate = new Date(2012, 0, 11, 12); - trendLine.initialValue = 10; - trendLine.finalValue = 19; - trendLine.lineColor = "#CC0000"; - chart.addTrendLine(trendLine); - */ - class TrendLine { } - - /** ChartCursor is a class which displays a cursor which follows the mouse. In case of Serial chart it also shows value and category balloons. - @example - let chart = new AmCharts.AmSerialChart(); - let chartCursor = new AmCharts.ChartCursor(); - chart.addChartCursor(chartCursor); - */ - class ChartCursor { - /** Specifies if bullet for each graph will follow the cursor. */ - bulletsEnabled: boolean; - /** Size of bullets, following the cursor. - @default 8 - */ - bulletSize: number; - /** Opacity of the category balloon. - @default 1 - */ - categoryBalloonAlpha: number; - /** Color of the category balloon. cursorColor is used if not set. */ - categoryBalloonColor: string; - /** Category balloon date format (used only if category axis parses dates). Check this page for instructions on how to format dates. MMM DD, YYYY */ - categoryBalloonDateFormat: string; - /** Specifies whether category balloon is enabled. - @default true - */ - categoryBalloonEnabled: boolean; - /** Text color. #FFFFFF */ - color: string; - /** Opacity of the cursor line. 1 */ - cursorAlpha: number; - /** Color of the cursor line. #CC0000 */ - cursorColor: string; - /** Specifies where the cursor line should be placed - on the beginning of the period (day, hour, etc) or in the middle (only when parseDates property of categoryAxis is set to true). If you want the cursor to follow mouse and not to glue to the nearest data point, set "mouse" here. Possible values are: "start", "middle", "mouse". */ - cursorPosition: string; - /** Specifies whether cursor is enabled. - @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. */ - pan: boolean; - /** Opacity of the selection. */ - selectionAlpha: number; - /** Specifies if cursor should only mark selected area but not zoom-in after user releases mouse button. */ - selectWithoutZooming: boolean; - /** Specifies whether value balloons are enabled. In case they are not, the balloons might be displayed anyway, when the user rolls-over the column or bullet. - @default true - */ - valueBalloonsEnabled: boolean; - /** Specifies if the user can zoom-in the chart. If pan is set to true, zoomable is switched to false automatically. - @default true - */ - zoomable: boolean; - /** Indicates if currently user is selecting some chart area to zoom-in. */ - zooming: boolean; - - /** Hides cursor. */ - hideCursor(): void; - /** You can force cursor to appear at specified cateogry or date. */ - showCursorAt(category: string | Date): void; - /** Adds event listener of the type "changed" to the object. - @param type Always "changed". - @param handler Dispatched when cursor position is changed. "index" is a series index over which chart cursors currently is. "zooming" specifies if user is currently zooming (is selecting) the chart. mostCloseGraph property is set only when oneBalloonOnly is set to true.*/ - addListener(type: string, handler: (e: {/** Always "changed". */ - type: string; index: number; zooming: boolean; mostCloseGraph: AmGraph; chart: AmChart; - }) => void): void; - /** Adds event listener of the type "onHideCursor" to the object. - @param type Always "onHideCursor". - @param handler Dispatched when cursor is hidden.*/ - addListener(type: string, handler: (e: {/** Always "onHideCursor". */ - type: string; chart: AmChart; - }) => void): void; - /** Adds event listener of the type "selected" or "zoomed" to the object. - @param type "selected" or "zoomed". - @param handler - If the type is "selected". Dispatched if selectWithoutZooming is set to true and when user selects some period. start and end are indices or timestamp (when categoryAxis.parseDates is true) of selection start/end. - If the type is "zoomed". Dispatched when user zooms to some period. start and end are indices or timestamp (when categoryAxis.parseDates is true) of selection start/end. - */ - addListener(type: string, handler: (e: {/** Always "zoomed". */ - type: string; index: number; zooming: boolean; chart: AmChart; - }) => void): void; - - /** Removes event listener from chart object. */ - removeListener(chart: AmChart, type: string, handler: any): void; - } - - /** AmSerialChart is the class you have to use for majority of chart types. The supported chart types are: line, area, column, bar, step line, smoothed line, candlestick and OHLC. The chart can be rotated by 90 degrees so the column chart becomes bar chart. The chart supports simple and logarithmic scales, it can have multiple value axes. The chart can place data points at equal intervals or can parse dates and place data points at irregular intervals. - @example - let chartData = [{title:"sample 1",value:130},{title:"sample 2",value:26}]; - - let chart = new AmCharts.AmSerialChart(); - chart.categoryField = "title"; - chart.dataProvider = chartData; - - let graph = new AmCharts.AmGraph(); - graph.valueField = "value"; - graph.type = "column"; - graph.fillAlphas = 1; - chart.addGraph(graph); - - chart.write("chartdiv"); - */ - class AmSerialChart extends AmRectangularChart { - /** Date format of the graph balloon (if chart parses dates and you don't use chartCursor). - @default 'MMM DD, YYYY' - */ - balloonDateFormat: string; - /** Read-only. Chart creates category axis itself. If you want to change some properties, you should get this axis from the chart and set properties to this object. */ - categoryAxis: CategoryAxis; - /** Category field name tells the chart the name of the field in your dataProvider object which will be used for category axis values. */ - categoryField: string; - /** The gap in pixels between two columns of the same category. - @default 5 - */ - columnSpacing: number; - /** Space between 3D stacked columns. - @default 0 - */ - columnSpacing3D: number; - /** Relative width of columns. Value range is 0 - 1. - @default 0.8 - */ - columnWidth: number; - /** Read-only. If category axis parses dates endDate indicates date to which the chart is currently displayed. */ - endDate: Date; - /** Read-only. Category index to which the chart is currently displayed. */ - endIndex: number; - /** Maximum number of series allowed to select. */ - maxSelectedSeries: number; - /** The longest time span allowed to select (in milliseconds) for example, 259200000 will limit selection to 3 days. */ - maxSelectedTime: number; - /** The shortest time span allowed to select (in milliseconds) for example, 1000 will limit selection to 1 second. - @default 0 - */ - minSelectedTime: number; - /** Specifies if scrolling of a chart with mouse wheel is enabled. If you press shift while rotating mouse wheel, the chart will zoom-in/out. */ - mouseWheelScrollEnabled: boolean; - /** Specifies if zooming of a chart with mouse wheel is enabled. If you press shift while rotating mouse wheel, the chart will scroll. */ - mouseWheelZoomEnabled: boolean; - /** If you set this to true, the chart will be rotated by 90 degrees (the columns will become bars). */ - rotate: boolean; - /** Read-only. If category axis parses dates startDate indicates date from which the chart is currently displayed. */ - startDate: Date; - /** Read-only. Category index from which the chart is currently displayed. */ - startIndex: number; - /** Specifies if chart should zoom-out when data is updated. - @default true - */ - zoomOutOnDataUpdate: boolean; - - /** Number Returns index of the specified category value. value - series (category value) which index you want to find. */ - getCategoryIndexByValue(value: number): void; - /** Zooms out, charts shows all available data. */ - zoomOut(): void; - /** Zooms the chart by the value of the category axis. start - category value, String \\ end - category value, String */ - zoomToCategoryValues(start: Date, end: Date): void; - /** Zooms the chart from one date to another. start - start date, Date object \\ end - end date, Date object */ - zoomToDates(start: Date, end: Date): void; - /** Zooms the chart by the index of the category. start - start index, Number \\ end - end index, Number */ - zoomToIndexes(start: Date, end: Date): void; - } - - // AmAngularGauge Extension for AmChart to create gauge charts. - class AmAngularGauge extends AmChart { - /** When enabled, chart adds aria-label attributes to columns, bullets or map objects. You can control values of these labels using properties like accessibleLabel of AmGraph. Note, not all screen readers support these tags. We tested this mostly with NVDA Screen reader. WAI-ARIA is now official W3 standard, so in future more readers will handle this well. We will be improving accessibility on our charts, so we would be glad to hear your feedback. - @default true - */ - accessible: boolean; - - /** Description which will be added to node of SVG element. Most of the screen readers will read this description. */ - accessibleDescription: string; - - /** Description which is added to of a SVG element. Some of the screen readers will read this description. */ - accessibleTitle: string; - - /** Specifies, if class names should be added to chart elements. - @default false - */ - addClassNames: boolean; - - /** Uses the whole space of the canvas to draw the gauge. - @default true - */ - adjustSize: boolean; - - /** Array of Labels. Example of label object, with all possible properties: - {"x": 20, "y": 20, "text": "this is label", "align": "left", "size": 12, "color": "#CC0000", "alpha": 1, "rotation": 0, "bold": true, "url": "http://www.amcharts.com"} - @default [] - */ - allLabels: [Label]; - - /** Array of arrows. */ - arrows: [GaugeArrow]; - - /** If you set it to true the chart will automatically monitor changes of display style of chart’s container (or any of it’s parents) and will render chart correctly if it is changed from none to block. We recommend setting it to true if you change this style at a run time, as it affects performance a bit. - @default false - */ - autoDisplay: boolean; - - /** Set this to false if you don't want chart to resize itself whenever its parent container size changes. - @default true - */ - autoResize: boolean; - - /** If you set it to true and your chart div (or any of the parent div) has css scale applied, the chart will position mouse at a correct position. Default value is false because this operation consumes some CPU and quite a few people are using css transfroms. - @default false - */ - autoTransform: boolean; - - /** Array of axes. - @default [GaugeAxis] - */ - axes: [GaugeAxis]; - - /** Opacity of background. Set it to >0 value if you want backgroundColor to work. However we recommend changing div's background-color style for changing background color. - @default 0 - */ - backgroundAlpha: number; - - /** Background color. You should set backgroundAlpha to >0 value in order background to be visible. We recommend setting background color directly on a chart's DIV instead of using this property. - @default #FFFFFF - */ - backgroundColor: string; - - /** The chart creates AmBalloon class itself. If you want to customize balloon, get balloon instance using this property, and then change balloon's properties. - @default AmBalloon - */ - balloon: AmBalloon; - - /** Opacity of chart's border. Value range is 0 - 1. - @default 0 - */ - borderAlpha: number; - - /** Color of chart's border. You should set borderAlpha >0 in order border to be visible. We recommend setting border color directly on a chart's DIV instead of using this property. - @default #000000 - */ - borderColor: string; - - /** This prefix is added to all class names which are added to all visual elements of a chart in case addClassNames is set to true. - @default amcharts - */ - classNamePrefix: string; - - /** In case you use gauge to create a clock, set this to true. - @default false - */ - clockWiseOnly: boolean; - - /** Text color. - @default #000000 - */ - color: string; - - /** Non-commercial version only. Specifies position of link to amCharts site. Allowed values are: top-left, top-right, bottom-left and bottom-right. - @default 'top - left' - */ - creditsPosition: string; - - /** A config object for Data Loader plugin. Please refer to the following page for more information. */ - dataLoader: Object; - - /** Array of data objects, for example: [{country:"US", value:524},{country:"UK", value:624},{country:"Lithuania", value:824}]. You can have any number of fields and use any field names. In case of AmMap, data provider should be MapData object. - - The data set data. - - Important: if you are using date/time-based category axis, the data points needs to come pre-ordered in ascending order. Data with incorrect order might result in visual and functional glitches on the chart. */ - dataProvider: [Object]; - - /** Decimal separator. - @default . - */ - decimalSeparator: string; - - /** Using this property you can add any additional information to SVG, like SVG filters or clip paths. The structure of this object should be identical to XML structure of a object you are adding, only in JSON format. */ - defs: Object; - - /** Export config. Specifies how export to image/data export/print/annotate menu will look and behave. You can find a lot of examples in amcharts/plugins/export folder. More details can be found here. */ - export: ExportSettings; - - /** Gauge face opacity. - @default 0 - */ - faceAlpha: number; - - /** Gauge face border opacity. - @default 0 - */ - faceBorderAlpha: number; - - /** Gauge face border color. - @default #555555 - */ - faceBorderColor: string; - - /** Gauge face border width. - @default 1 - */ - faceBorderWidth: number; - - /** Gauge face color, requires faceAlpha > 0 - @default #FAFAFA - */ - faceColor: string; - - /** Gauge face image-pattern. - Example: {"url":"../amcharts/patterns/black/pattern1.png", "width":4, "height":4} - fontFamily String Verdana Font family. - fontSize Number 11 Font size. */ - facePattern: Object; - - /** Gauge's horizontal position in pixel, origin is the center. Centered by default. */ - gaugeX: number; - - /** Gauge's vertical position in pixel, origin is the center. Centered by default. */ - gaugeY: number; - - /** If you set this to true, the lines of the chart will be distorted and will produce hand-drawn effect. Try to adjust chart.handDrawScatter and chart.handDrawThickness properties for a more scattered result. - @default false - */ - handDrawn: boolean; - - /** Defines by how many pixels hand-drawn line (when handDrawn is set to true) will fluctuate. - @default 2 - */ - handDrawScatter: number; - - /** Defines by how many pixels line thickness will fluctuate (when handDrawn is set to true). - @default 1 - */ - handDrawThickness: number; - - /** Time, in milliseconds after which balloon is hidden if the user rolls-out of the object. Might be useful for AmMap to avoid balloon flickering while moving mouse over the areas. Note, this is not duration of fade-out. Duration of fade-out is set in AmBalloon class. - @default 150 - */ - hideBalloonTime: number; - - /** Allows changing language easily. Note, you should include language js file from amcharts/lang or ammap/lang folder and then use variable name used in this file, like chart.language = "de"; Note, for maps this works differently - you use language only for country names, as there are no other strings in the maps application. */ - language: string; - - /** Legend of a chart. */ - legend: AmLegend; - - /** Read-only. Reference to the div of the legend. */ - legendDiv: HTMLElement; - - /** You can add listeners of events using this property. Example: listeners = [{"event":"dataUpdated", "method":handleEvent}]; - @default [Object] - */ - listeners: [Object]; - - /** Bottom spacing between chart and container. - @default 10 - */ - marginBottom: number; - - /** Left-hand spacing between chart and container. - @default 10 - */ - marginLeft: number; - - /** Right-hand spacing between chart and container. - @default 10 - */ - marginRight: number; - - /** Top spacing between chart and container. - @default 10 - */ - marginTop: number; - - /** Minimum radius of a gauge. - @default 10 - */ - minRadius: number; - - /** This setting affects touch-screen devices only. If a chart is on a page, and panEventsEnabled are set to true, the page won't move if the user touches the chart first. If a chart is big enough and occupies all the screen of your touch device, the user won’t be able to move the page at all. If you think that selecting/panning the chart or moving/pinching the map is a primary purpose of your users, you should set panEventsEnabled to true, otherwise - false. - @default true - */ - panEventsEnabled: boolean; - - /** Specifies absolute or relative path to amCharts files, i.e."amcharts/". (where all.js files are located) - If relative URLs are used, they will be relative to the current web page, displaying the chart. - You can also set path globally, using global JavaScript variable AmCharts_path.If this variable is set, and "path" is not set in chart config, the chart will assume the path from the global variable.This allows setting amCharts path globally.I.e.: - let AmCharts_path = "/libs/amcharts/"; - "path" parameter will be used by the charts to locate it's files, like images, plugins or patterns. - @default 'amcharts/' - */ - path: string; - - /** Specifies path to the folder where images like resize grips, lens and similar are. - - IMPORTANT: Since V3.14.12, you should use "path" to point to amCharts directory instead. The "pathToImages" will be automatically set and does not need to be in the chart config, unless you keep your images separately from other amCharts files. */ - pathToImages: string; - - /** Precision of percent values. -1 means percent values won't be rounded at all and show as they are. - @default 2 - */ - percentPrecision: number; - - /** Precision of values. -1 means values won't be rounded at all and show as they are. - @default -1 - */ - precision: number; - - /**Prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc.Prefixes are used on value axes and in the legend.To enable prefixes, set usePrefixes property to true. - @default [{ "number": 1e+3, "prefix": "k" }, { "number": 1e+6, "prefix": "M" }, { "number": 1e+9, "prefix": "G" }, { "number": 1e+12, "prefix": "T" }, { "number": 1e+15, "prefix": "P" }, { "number": 1e+18, "prefix": "E" }, { "number": 1e+21, "prefix": "Z" }, { "number": 1e+24, "prefix": "Y" }] - */ - prefixesOfBigNumbers: [Object]; - - /** Prefixes which are used to make small numbers shorter: 2μ instead of 0.000002, etc.Prefixes are used on value axes and in the legend.To enable prefixes, set usePrefixes property to true. - @default [{ "number": 1e-24, "prefix": "y" }, { "number": 1e-21, "prefix": "z" }, { "number": 1e-18, "prefix": "a" }, { "number": 1e-15, "prefix": "f" }, { "number": 1e-12, "prefix": "p" }, { "number": 1e-9, "prefix": "n" }, { "number": 1e-6, "prefix": "μ" }, { "number": 1e-3, "prefix": "m" }] - */ - prefixesOfSmallNumbers: [Object]; - - /** If processTimeout is > 0, 1000 data items will be parsed at a time, then the chart will make pause and continue parsing data until it finishes. - @default 1000 - */ - processCount: number; - - /** If you set it to 1 millisecond or some bigger value, chart will be built in chunks instead of all at once. This is useful if you work with a lot of data and the initial build of the chart takes a lot of time, which freezes the whole web application by not allowing other processes to do their job while the chart is busy. - @default 0 - */ - processTimeout: number; - - /** A config object for Responsive plugin. Please refer to the following page for more information. */ - responsive: Object; - - /** Duration of arrow animation. - @default 1 - */ - startDuration: number; - - /** Transition effect of the arrows, possible effects: easeOutSine, easeInSine, elastic, bounce. - @default easeInSine - */ - startEffect: string; - - /** Charts will use SVG icons (some are loaded from images folder and some are drawn inline) if browser supports SVG. his makes icons look good on retina displays on all resolutions. - @default true - */ - svgIcons: boolean; - - /** Charts which require gestures like swipe (charts with scrollbar/cursor) or pinch (maps) used to prevent regular page scrolling and could result page to stick to the same spot if the chart occupied whole screen. Now, in order these gestures to start working user has to touch the chart/maps once. Regular touch events like touching on the bar/slice/map area do not require the first tap and will show balloons and perform other tasks as usual. If you have a map or chart which occupies full screen and your page does not require scrolling, set tapToActivate to false – this will bring old behavior back. - @default true - */ - tapToActivate: boolean; - - /** Theme of a chart. Config files of themes can be found in amcharts/themes/ folder. More info about using themes. - @default none - */ - theme: string; - - /** Thousands separator. - @default , - */ - thousandsSeparator: string; - - /** Array of Title objects. - @default [] - */ - titles: [Title]; - - /** If you set it to 200 (milliseconds) or so, the chart will fire clickGraphItem or clickSlice (AmSlicedChart) or clickMapObject only if user holds his/her finger for 0.2 seconds (200 ms) on the column/bullet/slice/map object. - @default 0 - */ - touchClickDuration: number; - - /** Type of a chart. Required when creating chart using JSON. Possible types are: serial, pie, xy, radar, funnel, gauge, map, gantt, stock. */ - type: string; - - /** If true, prefixes will be used for big and small numbers.You can set arrays of prefixes via prefixesOfSmallNumbers and prefixesOfBigNumbers properties. - @default false - */ - usePrefixes: boolean; - - /** Read-only. Indicates current version of a script. */ - version: string; - - /** Adds arrow to the chart. */ - addArrow(arrow: GaugeArrow): void; - - /** Adds axis to angular gauge. */ - addAxis(axis: GaugeAxis): void; - - /** Adds a label on a chart. You can use it for labeling axes, adding chart title, etc. x and y coordinates can be set in number, percent, or a number with ! in front of it - coordinate will be calculated from right or bottom instead of left or top. */ - addLabel(x: number, y: number, text: string, align: string, size: number, color: string, rotation: number, alpha: number, bold: boolean, url: string): void; - - /** Adds a legend to the chart. By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. (NOTE: This method will not work on StockPanel.) */ - addLegend(legend: AmLegend, legendDivId?: string): void; - /** - * Adds a legend to the chart. - * By default, you don't need to create div for your legend, however if you want it to be positioned in some different way, you can create div anywhere you want and pass id or reference to your div as a second parameter. - * (NOTE: This method will not work on StockPanel.) - * @param legend - The legend. - * @param legendDiv - Legend div (optional). - */ - addLegend(legend: AmLegend, legendDiv: HTMLElement): void; - - /** Adds event listener to the object. */ - addListener(type: string, handler: Function): void; - - /** Adds title to the top of the chart. Pie, Radar positions are updated so that they won't overlap. Plot area of Serial/XY chart is also updated unless autoMargins property is set to false. You can add any number of titles - each of them will be placed in a new line. To remove titles, simply clear titles array: chart.titles = []; and call chart.validateNow() method. */ - addTitle(text: string, size: number, color: string, alpha: number, bold: boolean): void; - - /** Clears the chart area, intervals, etc. */ - clear(): void; - - /** Removes all labels added to the chart. */ - clearLabels(): void; - - /** Use this method to force the chart to resize to it's current container size. */ - invalidateSize(): void; - - /** This method allows to create charts with a single config. */ - makeChart(container: string, config: any, delay: number): AmChart; - - /** Removes arrow from the chart. */ - removeArrow(arrow: GaugeArrow): void; - - /** Removes axis from the chart. */ - removeAxis(axis: GaugeAxis): void; - - /** Removes chart's legend. */ - removeLegend(): void; - - /** Removes event listener from chart object. */ - removeListener(chart: AmChart, type: string, handler: any): void; - - /** This method should be called after data in your data provider changed or a new array was set to dataProvider. After calling this method the chart will parse data and redraw. */ - validateData(): void; - - /** This method should be called after you changed one or more properties of any class. The chart will redraw after this method is called.Both attributes, validateData and skipEvents are optional (false by default). */ - validateNow(): void; - - /** Adds chart to the specified DIV. - @param container DIV object which will hold the chart. */ - write(container: HTMLElement): void; - /** Adds chart to the specified DIV. - @param container Id of a DIV which will hold the chart. */ - write(container: string): void; - } - - class GaugeArrow { - /** Opacity of an arrow. - @default 1 - */ - alpha: number; - - /** Axis of the arrow. You can use reference to the axis or id of the axis. If you don't set any axis, the first axis of a chart will be used. - @default GaugeAxis - */ - axis: GaugeAxis; - - /** Opacity of arrow border. - @default 1 - */ - borderAlpha: number; - - /** In case you need the arrow to rotate only clock-wise, set this property to true. - @default false - */ - clockWiseOnly: boolean; - - /** Color of an arrow. - @default #000000 - */ - color: string; - - /** Unique id of an arrow. */ - id: string; - - /** Inner radius of an arrow. - @default 0 - */ - innerRadius: any; - - /** Opacity of a nail, holding the arrow. - @default 1 - */ - nailAlpha: number; - - /** Opacity of nail border. - @default 0 - */ - nailBorderAlpha: number; - - /** Thickness of nail border. - @default 1 - */ - nailBorderThickness: number; - - /** Radius of a nail, holding the arrow. - @default 8 - */ - nailRadius: number; - - /** Radius of an arrow. - @default '90%' - */ - radius: any; - - /** Width of arrow root. - @default 8 - */ - startWidth: number; - - /** Value to which the arrow should point at. */ - value: number; - - /** Sets value for the arrow. Arrow will animate to this value if you do it after chart is written to it's container. */ - setValue(value: number): void; - } - - class GaugeAxis { - /** Axis opacity. - @default 1 - */ - axisAlpha: number; - - /** Axis color. - @default #000000 - */ - axisColor: string; - - /** Thickness of the axis outline. - @default 1 - */ - axisThickness: number; - - /** Opacity of band fills. - @default 1 - */ - bandAlpha: number; - - /** Example: [-0.2, 0, -0.2]. Will make bands to be filled with color gradients. Negative value means the color will be darker than the original, and positive number means the color will be lighter. - @default [] - */ - bandGradientRatio: [number]; - - /** Opacity of band outlines. - @default 0 - */ - bandOutlineAlpha: number; - - /** Color of band outlines. - @default #000000 - */ - bandOutlineColor: string; - - /** Thickness of band outlines. - @default 0 - */ - bandOutlineThickness: number; - - /** Array of bands - GaugeBand objects. Bands are used to draw color fills between specified values. */ - bands: [GaugeBand]; - - /** Text displayed below the axis center. */ - bottomText: string; - - /** Specifies if text should be bold. - @default true - */ - bottomTextBold: boolean; - - /** Bottom text color. */ - bottomTextColor: string; - - /** Font size of bottom text. */ - bottomTextFontSize: number; - - /** Y offset of bottom text. - @default 0 - */ - bottomTextYOffset: number; - - /** X position of the axis, relative to the center of the gauge. - @default '0%' - */ - centerX: any; - - /** Y position of the axis, relative to the center of the gauge. - @default '0%' - */ - centerY: any; - - /** Specifies labels color of the axis. */ - color: string; - - /** Axis end angle. Valid values are from - 180 to 180. - @default 120 - */ - endAngle: number; - - /** Axis end (max) value */ - endValue: number; - - /** Font size for axis labels. */ - fontSize: number; - - /** Number of grid lines. Note, GaugeAxis doesn't adjust gridCount, so you should check your values and choose a proper gridCount which would result grids at round numbers. - @default 5 - */ - gridCount: number; - - /** Specifies if grid should be drawn inside or outside the axis. - @default true - */ - gridInside: boolean; - - /** Unique id of an axis. */ - id: any; - - /** Specifies if labels should be placed inside or outside the axis. - @default true - */ - inside: boolean; - - /** Frequency of labels. - @default 1 - */ - labelFrequency: number; - - /** You can use this function to format axis labels. This function is called and value is passed as a attribute: labelFunction(value); */ - labelFunction: Function; - - /** Distance from axis to the labels. - @default 15 - */ - labelOffset: number; - - /** Specifies if labels on the axis should be shown. - @default true - */ - labelsEnabled: boolean; - - /** You can add listeners of events using this property. Example: listeners = [{"event":"clickBand", "method":handleClick}]; */ - listeners: Object[]; - - /** Interval, at which minor ticks should be placed. */ - minorTickInterval: number; - - /** Length of a minor tick. - @default 5 - */ - minorTickLength: number; - - /** Axis radius. - @default '95%' - */ - radius: any; - - /** Specifies if the first label should be shown. - @default true - */ - showFirstLabel: boolean; - - /** Specifies if the last label should be shown. - @default true - */ - showLastLabel: boolean; - - /** Axis start angle. Valid values are from - 180 to 180. - @default -120 - */ - startAngle: number; - - /** Axis start (min) value. - @default 0 - */ - startValue: number; - - /** Opacity of axis ticks. - @default 1 - */ - tickAlpha: number; - - /** Color of axis ticks. - @default #555555 - */ - tickColor: string; - - /** Length of a major tick. - @default 10 - */ - tickLength: number; - - /** Tick thickness. - @default 1 - */ - tickThickness: number; - - /** Text displayed above the axis center. */ - topText: string; - - /** Specifies if text should be bold. - @default true - */ - topTextBold: boolean; - - /** Color of top text. */ - topTextColor: string; - - /** Font size of top text. */ - topTextFontSize: number; - - /** Y offset of top text. - @default 0 - */ - topTextYOffset: number; - - /** A string which can be placed next to axis labels. */ - unit: string; - - /** Position of the unit. - @default right - */ - unitPosition: string; - - /** Specifies if small and big numbers should use prefixes to make them more readable. - @default false - */ - usePrefixes: boolean; - - /** Interval, at which ticks with values should be placed. */ - valueInterval: number; - - /** Adds event listener to the object. */ - addListener(type: string, handler: any): void; - - /** Removes event listener from chart object. */ - removeListener(chart: AmChart, type: string, handler: any): void; - - /** Sets bottom text. */ - setBottomText(text: string): void; - - /** Sets top text. */ - setTopText(textstring: string): void; - - /** Returns angle of the value. */ - value2angle(value: number): void; - } - - class GaugeBand { - /** Opacity of band fill. Will use axis.bandAlpha if not set any. */ - alpha: number; - - /** When rolled-over, band will display balloon if you set some text for this property. */ - balloonText: string; - - /** Color of a band. */ - color: string; - - /** End value of a fill. */ - endValue: number; - - /** Example: [-0.2, 0, -0.2]. Will make bands to be filled with color gradients. Negative value means the color will be darker than the original, and positive number means the color will be lighter. - @default [] - */ - gradientRatio: [number]; - - /** Unique id of a band. */ - id: string; - - /** Inner radius of a band. If not set any, the band will end with the end of minor ticks. Set 0 if you want the band to be drawn to the axis center. */ - innerRadius: any; - - /** Band radius. If not set any, the band will start with the axis outline. */ - radius: any; - - /** Start value of a fill. */ - startValue: number; - - /** Gauge band can be clickable and can lead to some page. */ - url: string; - - /** Sets end value for the band. */ - setEndValue(value: number): void; - - /** Sets start value for the band. */ - setStartValue(value: number): void; - } - - class PeriodSelector { - /** Date format of date input fields. Check [[http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/formatters/DateFormatter.html DD-MM-YYYY */ - dateFormat: string; - /** Text displayed next to "from" date input field. From: */ - fromText: string; - /** Specifies if period buttons with date range bigger than available data should be hidden. - @default true - */ - hideOutOfScopePeriods: boolean; - /** Specifies whether period selector displays "from" and "to" date input fields. - @default true - */ - inputFieldsEnabled: boolean; - /** Width of date input fields, in pixels. Works only if period selector is horizontal. - @default 100 - */ - inputFieldWidth: number; - /** Array of predefined period objects. Period object has 4 properties - period, count, label and selected. Possible period values are: "ss" - seconds, "mm" - minutes, "hh" - hours, "DD" - days, "MM" - months and "YYYY" - years. property "count" specifies how many periods this button will select. "label" will be displayed on a button and "selected" is a boolean which specifies if this button is selected when chart is initialized or not. Example: {period:"DD", count:10, label:"10 days", selected:false}. */ - periods: any[]; - /** Text displayed next to predefined period buttons. Zoom: */ - periodsText: string; - /** Possible values: "right", "left", "top", "bottom". bottom */ - position: string; - /** Specifies whether predefined period buttons should select a period from the beginning or the end of the data. */ - selectFromStart: boolean; - /** Text displayed next to "to" date input field. To: */ - toText: string; - /** Width of a period selector, when position is "left" or "right". - @default 180 - */ - width: number; - - /** Adds event listener to the object. - . -@param handler - Dispatched when dates in period selector input fields are changed or user clicks on one of the predefined period buttons. */ - - addListener(type: string, handler: (e: { - /** Always: "changed" */ - - type: string; - startDate: Date; - endDate: Date; - predefinedPeriod: string; - count: number; - }) => void): void; - - /** Removes event listener from chart object. */ - removeListener(chart: AmChart, type: string, handler: any): void; - } - - /** PanelsSettings settings set's settings for all StockPanels. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of StockPanel class will be used. */ - - class PanelsSettings { - /** The angle of the 3D part of plot area. This creates a 3D effect (if the "depth3D" is > 0). */ - angle: number; - /** Opacity of panel background. Possible values are 1 and 0. Values like 0.5 will not make it half-transparent. */ - backgroundAlpha: number; - /** Background color of panels. Set backgroundAlpha to > 0 value in order to make background visible. #FFFFFF */ - backgroundColor: string; - /** The gap in pixels between two columns of the same category. */ - columnSpacing: number; - /** Relative width of columns. Valid values 0 - 1. */ - columnWidth: number; - /** The depth of the 3D part of plot area. This creates a 3D effect (if the "angle" is > 0). */ - depth3D: number; - /** Font family. */ - fontFamily: string; - /** Font size. */ - fontSize: string; - /** Number of pixels between the container's bottom border and plot area. - @default 1 - */ - marginBottom: number; - /** Number of pixels between the container's left border and plot area. If your left valueAxis values ar not placed inside the plot area, you should set marginLeft to 80 or some close value. */ - marginLeft: number; - /** Number of pixels between the container's left border and plot area. If your right valueAxis values ar not placed inside the plot area, you should set marginRight to 80 or some close value. */ - marginRight: number; - /** Number of pixels between the container's top border and plot area. */ - marginTop: number; - /** Gap between panels. - @default 8 - */ - panelSpacing: number; - /** This setting affects touch-screen devices only. If a chart is on a page, and panEventsEnabled are set to true, the page won't move if the user touches the chart first. If a chart is big enough and occupies all the screen of your touch device, the user won’t be able to move the page at all. That's why the default value is "false". If you think that selecting or or panning the chart is a primary purpose of your chart users, you should set panEventsEnabled to true. */ - panEventsEnabled: boolean; - /** The opacity of plot area's border. */ - plotAreaBorderAlpha: number; - /** The color of the plot area's border. */ - plotAreaBorderColor: string; - /** Opacity of plot area fill. */ - plotAreaFillAlphas: number; - /** Specifies the colors used to tint the background gradient fill of the plot area. String or Array of Strings */ - plotAreaFillColors: any; - /** Prefixes which are used to make big numbers shorter: 2M instead of 2000000, etc. Prefixes are used on value axes and in the legend. To enable prefixes, set usePrefixes property to true. [{number:1e+3,prefix:"k"},{number:1e+6,prefix:"M"},{number:1e+9,prefix:"G"},{number:1e+12,prefix:"T"},{number:1e+15,prefix:"P"},{number:1e+18,prefix:"E"},{number:1e+21,prefix:"Z"},{number:1e+24,prefix:"Y"}] */ - prefixesOfBigNumbers: any[]; - /** Prefixes which are used to make small numbers shorter: 2μ instead of 0.000002, etc. Prefixes are used on value axes and in the legend. To enable prefixes, set usePrefixes property to true. [{number:1e-24, prefix:"y"},{number:1e-21, prefix:"z"},{number:1e-18, prefix:"a"},{number:1e-15, prefix:"f"},{number:1e-12, prefix:"p"},{number:1e-9, prefix:"n"},{number:1e-6, prefix:"μ"},{number:1e-3, prefix:"m"}] */ - prefixesOfSmallNumbers: any[]; - /** Specifies whether the animation should be sequenced or all objects should appear at once. */ - sequencedAnimation: boolean; - /** The initial opacity of the column/line. If you set startDuration to a value higher than 0, the columns/lines will fade in from startAlpha. */ - startAlpha: number; - /** Duration of the animation, in seconds. */ - startDuration: number; - /** Possible values are: "linear", "<", ">" "<>", "elastic", "bounce". */ - startEffect: string; - /** If true, prefixes will be used for big and small numbers. */ - usePrefixes: boolean; - } - - /** DataSet is objects which holds all information about data. */ - - class DataSet { - /** Category field name in your dataProvider. */ - categoryField: string; - /** Color of the data set. One of colors from AmStockChart.colors array will be used if not set. */ - color: string; - /** Whether this data set is selected for comparing. If you change this property, you should call stockChart.validateData() method in order the changes to be applied. */ - compared: boolean; - /** Data provider of the data set. */ - dataProvider: any[]; - /** Array of field mappings. Field mapping is an object with fromField and toField properties. fromField is a name of your value field in dataProvider. toField might be chosen freely, it will be used to set value/open/close/high/low fields for the StockGraph. Example: {fromField:"val1", toField:"value"}. */ - fieldMappings: any[]; - /** Specifies whether this data set should be visible in "compare to" list. - @default true - */ - showInCompare: boolean; - /** Specifies whether this data set should be visible in "select" dropdown. - @default true - */ - showInSelect: boolean; - /** Array of StockEvent objects. */ - stockEvents: StockEvent[]; - /** DataSet title. */ - title: string; - } - - class StockGraph extends AmGraph { - /** Specifies whether this graph will be compared if some data set is selected for comparing. */ - comparable: boolean; - /** Specifies a field to be used to generate comparing graph. Note, this field is not the one used in your dataProvider, but toField from FieldMapping object. */ - compareField: string; - /** Balloon color of comparing graph. */ - compareGraphBalloonColor: string; - /** Balloon text of comparing graph. */ - compareGraphBalloonText: string; - /** Bullet of comparing graph. Possible values are: "square", "round", "line", "triangleUp", "triangleDown", "dashedLine", "bubble". */ - compareGraphBullet: string; - /** Bullet size of comparing graph. */ - compareGraphBulletSize: number; - /** Corner radius of comparing graph (if type is "column"). */ - compareGraphCornerRadiusTop: number; - /** Dash length of compare graph. */ - compareGraphDashLength: number; - /** Fill alpha of comparing graph. */ - compareGraphFillAlphas: number; - /** Fill color of comparing graph. */ - compareGraphFillColors: string; - /** Opacity of comparing graph line. */ - compareGraphLineAlpha: number; - /** Thickness of compare graph. */ - compareGraphLineThickness: number; - /** Type of comparing graph. Possible values are: "line", "column", "step", "smoothedLine." line */ - compareGraphType: string; - /** Specifies if compare graph is visible in legend. - @default true - */ - compareGraphVisibleInLegend: boolean; - /** When data is grouped to periods, the graph must know which period value should be used. Possible values are: "Open", "Low", "High", "Close", "Average" and "Sum". Close */ - periodValue: string; - /** Specifies whether data set color should be used as this graph's lineColor. - @default true - */ - useDataSetColors: boolean; - } - - /** StockEvent is object which holds information about event(bullet).Values from StockEventsSettings will be used if not set.Stock event bullet's size depends on it's graphs fontSize.When user rolls - over, clicks or rolls - out of the event bullet, AmStockChart dispatches events.*/ - class StockEvent { - /** Opacity of bullet background. - @default 1 - */ - backgroundAlpha: number; - /** Color of bullet background. #DADADA */ - backgroundColor: string; - /** Opacity of bullet border. - @default 1 - */ - borderAlpha: number; - /** Bullet border color. #888888 */ - borderColor: string; - /** The color of the event text. #000000 */ - color: string; - /** Date of an event. Must be Date object, not a string. */ - date: Date; - /** graph on which event will be displayed. */ - graph: StockGraph; - /** Roll-over background color. #CC0000 */ - rollOverColor: string; - /** Specifies if the event should be displayed on category axis */ - showOnAxis: boolean; - /** Letter which will be displayed on the event. Not all types can display letters. "text" type can display longer texts. */ - text: string; - /** Type of bullet. Possible values are: "flag", "sign", "pin", "triangleUp", "triangleDown", "triangleLeft", "triangleRight", "text", "arrowUp", "arrowDown". sign */ - type: string; - /** A URL to go to when user clicks the event. */ - url: string; - /** target of url, "_blank" for example. */ - urlTarget: string; - } - - /** Creates a label on the chart which can be placed anywhere, multiple can be assigned. */ - class Label { - /** @Default 'left' */ - align: string; - /** @Default 1 */ - alpha: number; - /** Specifies if label is bold or not. */ - bold: boolean; - /** Color of a label */ - color: string; - /** Unique id of a Label. You don't need to set it, unless you want to. */ - id: string; - /** Rotation angle. */ - rotation: number; - /** Text size */ - size: number; - /** Text of a label */ - text: string; - /** URL which will be access if user clicks on a label. */ - url: string; - /** X position of a label. */ - x: number | string; - /** y position of a label. */ - y: number | string; - } - /** Common settings of legends. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of StockLegend class will be used. */ - class LegendSettings { - /** Alignment of legend entries. Possible values are: "left", "right" and "center". */ - align: string; - /** Specifies if each legend entry should take the same space as the longest legend entry. */ - equalWidths: boolean; - /** Horizontal space between legend item and left/right border. */ - horizontalGap: number; - /** The text which will be displayed in the legend. Tag [[title]] will be replaced with the title of the graph. */ - labelText: string; - /** Space below the last row of the legend, in pixels. */ - marginBottom: number; - /** Space above the first row of the legend, in pixels. */ - marginTop: number; - /** Opacity of marker border. */ - markerBorderAlpha: number; - /** Marker border color. */ - markerBorderColor: string; - /** Thickness of the legend border. */ - markerBorderThickness: number; - /** The color of the disabled marker (when the graph is hidden). */ - markerDisabledColor: string; - /** Space between legend marker and legend text, in pixels. */ - markerLabelGap: number; - /** Size of the legend marker (key). */ - markerSize: number; - /** Shape of the legend marker (key). Possible values are: "square", "circle", "line", "dashedLine", "triangleUp", "triangleDown", "bubble", "none". */ - markerType: string; - /** Specifies whether legend entries should be placed in reversed order. */ - reversedOrder: boolean; - /** Legend item text color on roll-over. */ - rollOverColor: string; - /** When you roll-over the legend entry, all other graphs can reduce their opacity, so that the graph you rolled-over would be distinguished. This property specifies the opacity of the graphs. */ - rollOverGraphAlpha: number; - /** Whether showing/hiding of graphs by clicking on the legend marker is enabled or not. */ - switchable: boolean; - /** Legend switch color. */ - switchColor: string; - /** Legend switch type (in case the legend is switchable). Possible values are: "x" and "v". */ - switchType: string; - /** Specifies whether the legend text is clickable or not. Clicking on legend text can show/hide value balloons if they are enabled. */ - textClickEnabled: boolean; - /** Specifies if legend labels should be use same color as corresponding markers. */ - useMarkerColorForLabels: boolean; - /** The text which will be displayed in the value portion of the legend when graph is comparable and at least one dataSet is selected for comparing. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]]. */ - valueTextComparing: string; - /** The text which will be displayed in the value portion of the legend. You can use tags like [[value]], [[open]], [[high]], [[low]], [[close]], [[percents]], [[description]]. */ - valueTextRegular: string; - /** Width of the value text. Increase this value if your values do not fit in the allocated space. */ - valueWidth: number; - /** Vertical space between legend items, in pixels. */ - verticalGap: number; - } - - /** DataSetSelector is a tool for selecting data set's as main and for comparing with main data set. */ - class DataSetSelector { - /** Text displayed in the "compare to" combobox (when position is "top" or "bottom"). Select... */ - comboBoxSelectText: string; - /** Text displayed near "compare to" list. Compare to: */ - compareText: string; - /** The maximum height of the Compare to field in pixels. - @default 150 - */ - listHeight: number; - /** Possible values: "right", "left", "top", "bottom". "top" and "bottom" positions has a limitation - only one data set can be selected for comparing. left */ - position: string; - /** Text displayed near "Select" dropDown. Select: */ - selectText: string; - /** Width of a Data set selector, when position is "left" or "right". - @default 180 - */ - width: number; - } - - /** AmBalloon is the class which generates balloons (datatips). Balloon follows the mouse when you roll-over the pie slice/line bullet/column/etc, chart indicator of serial charts displays value balloons and category balloon. Balloon instance is created by the chart automatically and can be accessed via "balloon" property of AmChart. Chart shows/hides and sets position for every balloon automatically, so all you need to do is to change balloon appearance, if you want to. - @example - let chart = new AmCharts.AmSerialChart(); - // get balloon intance - let balloon = chart.balloon; - // set properties - balloon.adjustBorderColor = true; - balloon.color = "#000000"; - balloon.cornerRadius = 5; - balloon.fillColor = "#FFFFFF"; - */ - class AmBalloon { - /** If this is set to true, border color instead of background color will be changed when user rolls-over the slice, graph, etc. */ - adjustBorderColor: boolean; - /** Balloon border opacity. Value range is 0 - 1. - @default 1 - */ - borderAlpha: number; - /** Balloon border color. #FFFFFF */ - borderColor: string; - /** Balloon border thickness. - @default 2 - */ - borderThickness: number; - /** Color of text in the balloon. #FFFFFF */ - color: string; - /** Balloon corner radius. - @default 6 - */ - cornerRadius: number; - /** Balloon background opacity. - @default 1 - */ - fillAlpha: number; - /** Balloon background color. Usually balloon background color is set by the chart. Only if "adjustBorderColor" is "true" this color will be used. #CC0000 */ - fillColor: string; - /** Size of text in the balloon. Chart's fontSize is used by default. */ - fontSize: string; - /** Horizontal padding of the balloon. - @default 8 - 3*/ - horizontalPadding: number; - /** The width of the pointer (arrow) "root". Only used if cornerRadius is 0. - @default 10 - */ - pointerWidth: number; - /** If cornerRadius of a balloon is >0, showBullet is set to true for value balloons when ChartCursor is used. If you don't want the bullet near the balloon, set it to false: chart.balloon.showBullet = false */ - showBullet: boolean; - /** Text alignment, possible values "left", "middle" and "right" middle */ - textAlign: string; - /** Color of the text shadow. #000000 */ - textShadowColor: string; - /** Vertical padding of the balloon. - @default 5 - */ - verticalPadding: number; - /** Hides balloon. */ - hide(): void; - /** Defines a square within which the balloon should appear. Bounds are set by chart class, you don't need to call this method yourself. */ - setBounds(left: number, top: number, right: number, bottom: number): void; - /** Sets coordinates the balloon should point to. */ - setPosition(x: number, y: number): void; - /** Specifies the text which should be displayed. */ - show(value: string): void; - } - - /** CategoryAxesSettings settings set's settings common for all CategoryAxes of StockPanels. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of CategoryAxis class will be used. */ - class CategoryAxesSettings { - /** Specifies whether number of gridCount is specified automatically, according to the axis size. - @default true - */ - autoGridCount: boolean; - /** Axis opacity. */ - axisAlpha: number; - /** Axis color. */ - axisColor: string; - /** Height of category axes. Set it to 0 if you set inside property to true. - @default 28 - */ - axisHeight: number; - /** Thickness of the axis. */ - axisThickness: number; - /** Text color. */ - color: string; - /** Length of a dash. */ - dashLength: number; - /** Date formats of different periods. Possible period values: fff - milliseconds, ss - seconds, mm - minutes, hh - hours, DD - days, MM - months, WW - weeks, YYYY - years. Check this page for date formatting strings. */ - dateFormats: any[]; - /** If you want data points to be placed at equal intervals (omiting dates with no data), set equalSpacing to true. */ - equalSpacing: boolean; - /** Fill opacity. Every second space between grid lines can be filled with fillColor. */ - fillAlpha: number; - /** Fill color. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills. */ - fillColor: string; - /** Text size. */ - fontSize: string; - /** Opacity of grid lines. */ - gridAlpha: number; - /** Color of grid lines. */ - gridColor: string; - /** Approximate number of grid lines. You should set autoGridCount to false in order this property not to be ignored. - @default 10 - */ - gridCount: number; - /** Thickness of grid lines. */ - gridThickness: number; - /** Periods to which data will be gruoped in case there are more data items in the selected period than specified in maxSeries property. ["ss", "10ss", "30ss", "mm", "10mm", "30mm", "hh", "DD", "WW", "MM", "YYYY"] */ - groupToPeriods: any[]; - /** Specifies whether values should be placed inside or outside of plot area. */ - inside: boolean; - /** Rotation angle of a label. */ - labelRotation: number; - /** Maximum series shown at a time. In case there are more data points in the selection than maxSeries, the chart will group data to longer periods, for example - you have 250 days in the selection, and maxSeries is 150 - the chart will group data to weeks. - @default 150 - */ - maxSeries: number; - /** Specifies the shortest period of your data. fff - millisecond, ss - second, mm - minute, hh - hour, DD - day, MM - month, YYYY - year. DD */ - minPeriod: string; - /** top or "bottom". */ - position: string; - /** Specifies whether the graph should start on axis or not. In case you display columns, it is recommended to set this to false. startOnAxis can be set to true only if equalSpacing is set to true. */ - startOnAxis: boolean; - /** Tick length. */ - tickLength: number; - } - - /** ChartCursorSettings settings set's settings for chart cursor. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of ChartCursor class will be used. */ - class ChartCursorSettings { - /** Specifies if bullet for each graph will follow the cursor. */ - bulletsEnabled: boolean; - /** Size of bullets, following the cursor. */ - bulletSize: number; - /** Opacity of the category balloon. */ - categoryBalloonAlpha: number; - /** Color of the category balloon. */ - categoryBalloonColor: string; - /** Array of date format objects. Date format object must have "period" and "format" items. Available periods are: fff - millisecond, ss - second, mm - minute, hh - hour, DD - date, WW - week, MM - month, YYYY - year. [{period:"YYYY", format:"YYYY"}, {period:"MM", format:"MMM, YYYY"}, {period:"WW", format:"MMM DD, YYYY"}, {period:"DD", format:"MMM DD, YYYY"}, {period:"hh", format:"JJ:NN"}, {period:"mm", format:"JJ:NN"}, {period:"ss", format:"JJ:NN:SS"}, {period:"fff", format:"JJ:NN:SS"}] */ - categoryBalloonDateFormats: any[]; - /** Specifies whether category balloon is enabled. */ - categoryBalloonEnabled: boolean; - /** Opacity of the cursor line. */ - cursorAlpha: number; - /** Color of the cursor line. */ - cursorColor: string; - /** Possible values: "start", "middle" and "mouse". */ - cursorPosition: string; - /** Set this to "false" if you don't want chart cursor to appear in your charts. - @default true - */ - enabled: boolean; - /** If this is set to true, the user will be able to pan the chart instead of zooming. */ - pan: boolean; - /** Specifies whether value balloons are enabled. In case they are not, the balloons might be displayed anyway, when the user rolls-over the column or bullet. */ - valueBalloonsEnabled: boolean; - /** Specifies if the user can zoom-in the chart. If pan is set to true, zoomable is switched to false automatically. */ - zoomable: boolean; - } - - /* ChartScrollbarSettings settings set's settings for chart scrollbar. If you change a property after the chart is initialized, you should call stockChart.validateNow() method in order for it to work. If there is no default value specified, default value of ChartScrollbar class will be used.*/ - class ChartScrollbarSettings { - /** Specifies whether number of gridCount is specified automatically, according to the axis size. - @default true - */ - autoGridCount: boolean; - /** Background opacity. */ - backgroundAlpha: number; - /** Background color of the scrollbar. */ - backgroundColor: string; - /** Text color. */ - color: string; - /** Set false if you don't need scrollbar. - @default true - */ - enabled: boolean; - /** Font size. */ - fontSize: string; - /** Specifies which graph will be displayed in the scrollbar. */ - graph: AmGraph; - /** Graph fill opacity. */ - graphFillAlpha: number; - /** Graph fill color. */ - graphFillColor: string; - /** Graph line opacity. */ - graphLineAlpha: number; - /** Graph line color. */ - graphLineColor: string; - /** Type of chart scrollbar's graph. By default the graph type is the same as the original graph's type, however in case of candlestick or ohlc you might want to show line graph in the scrollbar. Possible values are: line, column, step, smoothedLine, candlestick, ohlc. */ - graphType: string; - /** Grid opacity. */ - gridAlpha: number; - /** Grid color. */ - gridColor: string; - /** Grid count. You should set autoGridCount to false in order this property to work. */ - gridCount: number; - /** Height of scrollbar, in pixels. - @default 40 - */ - height: number; - /** Specifies whether resize grips are hidden when mouse is away from the scrollbar. */ - hideResizeGrips: boolean; - /** Duration of scrolling, when the user clicks on scrollbar's background, in seconds. */ - scrollDuration: number; - /** Selected background opacity. */ - selectedBackgroundAlpha: number; - /** Selected background color. */ - selectedBackgroundColor: string; - /** Selected graph'sfill opacity. */ - selectedGraphFillAlpha: number; - /** Selected graph'sfill color. */ - selectedGraphFillColor: string; - /** Selected graph'sline opacity. */ - selectedGraphLineAlpha: number; - /** Selected graph's line color. */ - selectedGraphLineColor: string; - /** Specifies if the chart should be updated while dragging/resizing the scrollbar or only at the moment when user releases mouse button. Usefull when working with large data sets. - @default true - */ - updateOnReleaseOnly: boolean; - } - - /** AmGraph class displays all types of graphs - line, column, step line, smoothed line, ohlc and candlestick. - @example - let chart = new AmCharts.AmSerialChart(); - let graph = new AmCharts.AmGraph(); - graph.valueField = 'value'; - graph.type = 'column'; - graph.fillAlphas = 1; - chart.addGraph(graph); - */ - class AmGraph { - /** Text which screen readers will read if user rolls-over the bullet/column or sets focus using tab key (this is possible only if tabIndex property of AmGraph is set to some number). Text is added as aria-label tag. Note - not all screen readers and browsers support this. - @default "[[title]] [[category]] [[value]]" - */ - accessibleLabel: string; - /** Name of the alpha field in your dataProvider. */ - alphaField: string; - /** If you set this to true before chart is drawn, the animation of this graph won't be played. - @default false - */ - animationPlayed: boolean; - /** Allows customizing graphs balloons individually (only when ChartCursor is used). Note: the balloon object is not created automatically, you should create it before setting properties */ - balloon: AmBalloon; - /** Value balloon color. Will use graph or data item color if not set. */ - balloonColor: string; - /** If you set some function, the graph will call it and pass GraphDataItem and AmGraph objects to it. This function should return a string which will be displayed in a balloon. */ - balloonFunction(graphDataItem: GraphDataItem, amGraph: AmGraph): string; - /** Balloon text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[category]] or any other field name from your data provider. HTML tags can also be used. - @default [[value]] - */ - balloonText: string; - /** Specifies if the line graph should be placed behind column graphs - @default false - */ - behindColumns: boolean; - /** Type of the bullets. Possible values are: "none", "round", "square", "triangleUp", "triangleDown", "triangleLeft", "triangleRight", "bubble", "diamond", "xError", "yError" and "custom". - @default "none" - */ - bullet: string; - /** Opacity of bullets. Value range is 0 - 1. - @default 1 - */ - bulletAlpha: number; - /** bulletAxis value is used when you are building error chart. Error chart is a regular serial or XY chart with bullet type set to "xError" or "yError". The graph should know which axis should be used to determine the size of this bullet - that's when bulletAxis should be set. Besides that, you should also set graph.errorField. You can also use other bullet types with this feature too. For example, if you set bulletAxis for XY chart, the size of a bullet will change as you zoom the chart. */ - bulletAxis: ValueAxis; - /** Bullet border opacity. - @default 0 - */ - bulletBorderAlpha: number; - /** Bullet border color. Will use lineColor if not set. */ - bulletBorderColor: string; - /** Bullet border thickness. - @default 2 - */ - bulletBorderThickness: number; - /** Bullet color. Will use lineColor if not set. */ - bulletColor: string; - /** Name of the bullet field in your dataProvider. */ - bulletField: string; - /** Useful for touch devices - if you set it to 20 or so, the bullets of a graph will have invisible circle around the actual bullet (bullets should still be enabled), which will be easier to touch (bullets usually are smaller and hard to hit). */ - bulletHitAreaSize: number; - /** Bullet offset. Distance from the actual data point to the bullet. Can be used to place custom bullets above the columns. - @default 0 - */ - bulletOffset: number; - /** Bullet size. - @default 8 - */ - bulletSize: number; - /** Name of the bullet size field in your dataProvider. */ - bulletSizeField: string; - /** If this field is set and addClassNames is enabled, the chart will look for a class name string in data using this setting and apply additional class names to elements of the particular data points, such as bullets. */ - classNameField: string; - /** Name of the close field (used by candlesticks and ohlc) in your dataProvider. */ - closeField: string; - /** In case you want to place this graph's columns in front of other columns, set this to false. In case "true", the columns will be clustered next to each other. - - NOTE: clustering works only for graphs of type "column". - @default true - */ - clustered: boolean; - /** Color of value labels. Will use chart's color if not set. */ - color: string; - /** Name of the color field in your dataProvider. */ - colorField: string; - /** You can use this property with non-stacked column graphs and specify order of columns of each category (starting from 0). Important: this feature does not work in stacked columns scenarios as well as with graph toggling enabled in legend. */ - columnIndexField: string; - /** You can specify custom column width for each graph individually. Value range is 0 - 1 (we set relative width, not pixel width here). */ - columnWidth: number; - /** Specifies whether to connect data points if data is missing. The default value is true. This feature does not work with XY chart. - @default true - */ - connect: boolean; - /** Corner radius of column. It can be set both in pixels or in percents. The chart's depth and angle styles must be set to 0. The default value is 0. Note, cornerRadiusTop will be applied for all corners of the column, JavaScript charts do not have a possibility to set separate corner radius for top and bottom. As we want all the property names to be the same both on JS and Flex, we didn't change this too. - @default 0 - */ - cornerRadiusTop: number; - /** If bulletsEnabled of ChartCurosor is true, a bullet on each graph follows the cursor. You can set opacity of each graphs bullet. In case you want to disable these bullets for a certain graph, set opacity to 0. - @default 1 - */ - cursorBulletAlpha: number; - /** Path to the image of custom bullet. */ - customBullet: string; - /** Name of the custom bullet field in your dataProvider. */ - customBulletField: string; - /** Path to the image for legend marker. */ - customMarker: string; - /** Dash length. If you set it to a value greater than 0, the graph line (or columns border) will be dashed. - @default 0 - */ - dashLength: number; - /** Name of the dash length field in your dataProvider. This property adds a possibility to change graphs’ line from solid to dashed on any data point. You can also make columns border dashed using this setting. Note, this won't work with smoothedLineGraph. */ - dashLengthField: string; - /** Used to format balloons if value axis is date-based. - @default "MMM DD, YYYY" - */ - dateFormat: string; - /** Name of the description field in your dataProvider. */ - descriptionField: string; - /** Name of error value field in your data provider. */ - errorField: string; - /** Opacity of fill. Plural form is used to keep the same property names as our Flex charts'. Flex charts can accept array of numbers to generate gradients. Although you can set array here, only first value of this array will be used. - @default 0 - */ - fillAlphas: number; - /** Fill color. Will use lineColor if not set. You can also set array of colors here. */ - fillColors: string; - /** Name of the fill colors field in your dataProvider. This property adds a possibility to change line graphs’ fill color on any data point to create highlighted sections of the graph. Works only with AmSerialChart. */ - fillColorsField: string; - /** XY chart only. If you set this property to id or reference of your X or Y axis, and the fillAlphas is > 0, the area between graph and axis will be filled with color, like in this demo. */ - fillToAxis: ValueAxis; - /** You can set another graph here and if fillAlpha is >0, the area from this graph to fillToGraph will be filled (instead of filling the area to the X axis). This feature is not supported by smoothedLine graphs and Radar chart. */ - fillToGraph: AmGraph; - /** Column width in pixels. If you set this property, columns will be of a fixed width and won't adjust to the available space. */ - fixedColumnWidth: number; - /** Size of value labels text. Will use chart's fontSize if not set. */ - fontSize: number; - /** If this is set `true`, the graph will always break the line if the distance in time between two adjacent data points is bigger than `gapPeriod x minPeriod`, even if `connect` is set to `true`. - @default false - */ - forceGap: boolean; - /** Name of the gap field in your dataProvider. You can force graph to show gap at a desired data point using this feature. This feature does not work with XY chart. */ - gapField: string; - /** Using this property you can specify when graph should display gap - if the time difference between data points is bigger than duration of minPeriod * gapPeriod, and connect property of a graph is set to false, graph will display gap. - @default 1.1 - */ - gapPeriod: number; - /** Orientation of the gradient fills (only for "column" graph type). Possible values are "vertical" and "horizontal". - @default "vertical" - */ - gradientOrientation: string; - /** Specifies whether the graph is hidden. Do not use this to show/hide the graph, use hideGraph(graph) and showGraph(graph) methods instead. - @default false - */ - hidden: boolean; - /** If there are more data points than hideBulletsCount, the bullets will not be shown. 0 means the bullets will always be visible. - @default 0 - */ - hideBulletsCount: number; - /** Name of the high field (used by candlesticks and ohlc) in your dataProvider. */ - highField: string; - /** Unique id of a graph. It is not required to set one, unless you want to use this graph for as your scrollbar's graph and need to indicate which graph should be used. */ - id: string; - /** Whether to include this graph when calculating min and max value of the axis. - @default true - */ - includeInMinMax: boolean; - /** Data label text anchor. - @default "auto" - */ - labelAnchor: string; - /** Name of label color field in data provider. */ - labelColorField: string; - /** You can use it to format labels of data items in any way you want. Graph will call this function and pass reference to GraphDataItem and formatted text as attributes. This function should return string which will be displayed as label. */ - labelFunction(value: number, valueText: string, valueAxis: ValueAxis): string; - labelFunction(valueText: string, data: Date, valueAxis: ValueAxis): string; - /** Offset of data label. - @default 0 - */ - labelOffset: number; - /** Position of value label. Possible values are: "bottom", "top", "right", "left", "inside", "middle". Sometimes position is changed by the chart, depending on a graph type, rotation, etc. - @default "top" - */ - labelPosition: string; - /** Rotation of a data label. - @default 0 - */ - labelRotation: number; - /** Value label text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[category]]. */ - labelText: string; - /** Legend marker opacity. Will use lineAlpha if not set. Value range is 0 - 1. */ - legendAlpha: number; - /** Legend marker color. Will use lineColor if not set. */ - legendColor: string; - /** It is called and the following attributes are passed: dataItem, formattedText, periodValues, periodPercentValues. It should return hex color code which will be used for legend marker. */ - legendColorFunction: Object; - /** The text which will be displayed in the value portion of the legend when user is not hovering above any data point. The tags should be made out of two parts - the name of a field (value / open / close / high / low) and the value of the period you want to be show - open / close / high / low / sum / average / count. For example: [[value.sum]] means that sum of all data points of value field in the selected period will be displayed. */ - legendPeriodValueText: string; - /** Legend value text. You can use tags like [[value]], [[description]], [[percents]], [[open]], [[category]] You can also use custom fields from your dataProvider. If not set, uses Legend's valueText. */ - legendValueText: string; - /** Opacity of the line (or column border). Value range is 0 - 1. - @default 1 - */ - lineAlpha: number; - /** Color of the line (or column border). If you do not set any, the color from AmCoordinateChart.colors array will be used for each subsequent graph. */ - lineColor: string; - /** Name of the line color field in your dataProvider. This property adds a possibility to change graphs’ line color on any data point to create highlighted sections of the graph. Works only with AmSerialChart. */ - lineColorField: string; - /** Specifies thickness of the graph line (or column border). - @default 1 - */ - lineThickness: number; - /** Name of the low field (used by candlesticks and ohlc) in your dataProvider. */ - lowField: string; - /** Legend marker type. You can set legend marker (key) type for individual graphs. Possible values are: square, circle, diamond, triangleUp, triangleDown, triangleLeft, triangleDown, bubble, line, none. */ - markerType: string; - /** Specifies size of the bullet which value is the biggest (XY chart). - @default 50 - */ - maxBulletSize: number; - /** Specifies minimum size of the bullet (XY chart). - @default 4 - */ - minBulletSize: number; - /** It is useful if you have really lots of data points. Based on this property the graph will omit some of the lines (if the distance between points is less that minDistance, in pixels). This will not affect the bullets or indicator in anyway, so the user will not see any difference (unless you set minValue to a bigger value, let say 5), but will increase performance as less lines will be drawn. By setting value to a bigger number you can also make your lines look less jagged. - @default 1 - */ - minDistance: number; - /** If you use different colors for your negative values, a graph below zero line is filled with negativeColor. With this property you can define a different base value at which colors should be changed to negative colors. - @default 0 - */ - negativeBase: number; - /** Fill opacity of negative part of the graph. Will use fillAlphas if not set. */ - negativeFillAlphas: number; - /** Fill color of negative part of the graph. Will use fillColors if not set. */ - negativeFillColors: string; - /** Opacity of the negative portion of the line (or column border). Value range is 0 - 1. - @default 1 - */ - negativeLineAlpha: number; - /** Color of the line (or column) when the values are negative. In case the graph type is candlestick or ohlc, negativeLineColor is used when close value is less then open value. */ - negativeLineColor: string; - /** If you set it to true, column chart will begin new stack. This allows having Clustered and Stacked column/bar chart. - @default false - */ - newStack: boolean; - /** In case you want to have a step line graph without risers, you should set this to true. - @default false - */ - noStepRisers: boolean; - /** Name of the open field (used by floating columns, candlesticks and ohlc) in your dataProvider. */ - openField: string; - /** Value of pattern should be object with url, width, height of an image, optionally it might have x, y, randomX and randomY values. For example: {"url":"../amcharts/patterns/black/pattern1.png", "width":4, "height":4}. If you want to have individual patterns for each column, define patterns in data provider and set graph.patternField property. Check amcharts/patterns folder for some patterns. You can create your own patterns and use them. Note, x, y, randomX and randomY properties won't work with IE8 and older. 3D bar/Pie charts won't work properly with patterns. */ - pattern: Object; - /** Field name in your data provider which holds pattern information. Value of pattern should be object with url, width, height of an image, optionally it might have x, y, randomX and randomY values. For example: {"url":"../amcharts/patterns/black/pattern1.png", "width":4, "height":4}. Check amcharts/patterns folder for some patterns. You can create your own patterns and use them. Note, x, y, randomX and randomY properties won't work with IE8 and older. 3D bar/Pie charts won't work properly with patterns. */ - patternField: string; - /** This property can be used by step graphs - you can set how many periods one horizontal line should span. - @default 1 - */ - periodSpan: number; - /** Specifies where data points should be placed - on the beginning of the period (day, hour, etc) or in the middle (only when parseDates property of categoryAxis is set to true). This setting affects Serial chart only. Possible values are "start", "middle" and "end" - @default "middle" - */ - pointPosition: string; - /** Precision of values. Will use chart's precision if not set any. */ - precision: number; - /** If this is set to true, candlesticks will be colored in a different manner - if current close is less than current open, the candlestick will be empty, otherwise - filled with color. If previous close is less than current close, the candlestick will use positive color, otherwise - negative color. - @default false - */ - proCandlesticks: boolean; - /** Gantt chart only. Contains unmodified segment object from data provider. */ - segmentData: Object; - /** If graph's type is column and labelText is set, graph hides labels which do not fit into the column's space or go outside plot area. If you don't want these labels to be hidden, set this to true. - @default false - */ - showAllValueLabels: boolean; - /** Specifies whether the value balloon of this graph is shown when mouse is over data item or chart's indicator is over some series. - @default true - */ - showBalloon: boolean; - /** Specifies graphs value at which cursor is showed. This is only important for candlestick and ohlc charts, also if column chart has "open" value. Possible values are: "open", "close", "high", "low". "top" and "bottom" values will glue the balloon to top/bottom of the plot area. - @default "close" - */ - showBalloonAt: string; - /** Works with candlestick graph type, you can set it to open, close, high, low. If you set it to high, the events will be shown at the tip of the high line. - @default "close" - */ - showBulletsAt: string; - /** If you want mouse pointer to change to hand when hovering the graph, set this property to true. - @default false - */ - showHandOnHover: boolean; - /** It can only be used together with topRadius (when columns look like cylinders). If you set it to true, the cylinder will be lowered down so that the center of it's bottom circle would be right on category axis. - @default false - */ - showOnAxis: boolean; - /** If the value axis of this graph has stack types like "regular" or "100%" You can exclude this graph from stacking. - @default true - */ - stackable: boolean; - /** Step graph only. Specifies to which direction step should be drawn. - @default "right" - */ - stepDirection: string; - /** If you set it to false, the graph will not be hidden when user clicks on legend entry. - @default true - */ - switchable: boolean; - /** In case you set it to some number, the chart will set focus on bullet/column (starting from first) when user clicks tab key. When a focus is set, screen readers like NVDA Screen reader will read label which is set using accessibleLabel property of AmGraph. Note, not all browsers and readers support this. */ - tabIndex: number; - /** Graph title. */ - title: string; - /** If you set this to 1, columns will become cylinders (must set depth3D and angle properties of a chart to >0 values in order this to be visible). you can make columns look like cones (set topRadius to 0) or even like some glasses (set to bigger than 1). We strongly recommend setting grid opacity to 0 in order this to look good. */ - topRadius: number; - /** Type of the graph. Possible values are: "line", "column", "step", "smoothedLine", "candlestick", "ohlc". XY and Radar charts can only display "line" type graphs. - @default "line" - */ - type: string; - /** Name of the url field in your dataProvider. */ - urlField: string; - /** Target to open URLs in, i.e. _blank, _top, etc. */ - urlTarget: string; - /** If set to true, the bullet border will take the same color as graph line. - @default false - */ - useLineColorForBulletBorder: boolean; - /** If negativeLineColor and/or negativeFillColors are set and useNegativeColorIfDown is set to true (default is false), the line, step and column graphs will use these colors for lines, bullets or columns if previous value is bigger than current value. In case you set openField for the graph, the graph will compare current value with openField value instead of comparing to previous value. Here is a demo. - @default false - */ - useNegativeColorIfDown: boolean; - /** Specifies which value axis the graph will use. Will use the first value axis if not set. You can use reference to the real ValueAxis object or set value axis id. - @default ValueAxis - */ - valueAxis: ValueAxis; - /** Name of the value field in your dataProvider. */ - valueField: string; - /** Specifies whether this graph should be shown in the Legend. - @default true - */ - visibleInLegend: boolean; - /** XY chart only. A horizontal value axis object to attach graph to. - @default ValueAxis - */ - xAxis: ValueAxis; - /** XY chart only. Name of the x field in your dataProvider. */ - xField: string; - /** XY chart only. A vertical value axis object to attach graph to. - @default ValueAxis - */ - yAxis: ValueAxis; - /** XY chart only. Name of the y field in your dataProvider. */ - yField: string; - } - - /** AxisBase is the base class for ValueAxis and CategoryAxis. It can not be instantiated explicitly. */ - class AxisBase { - /** Specifies whether number of gridCount is specified automatically, acoarding to the axis size. - @default true - */ - autoGridCount: boolean; - /** Axis opacity. Value range is 0 - 1. - @default 1 - */ - axisAlpha: number; - /** Axis color. #000000 */ - axisColor: string; - /** Thickness of the axis. - @default 1 - */ - axisThickness: number; - /** Color of axis value labels. Will use chart's color if not set. */ - color: string; - /** Length of a dash. 0 means line is not dashed. */ - dashLength: number; - /** Fill opacity. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills. */ - fillAlpha: number; - /** Fill color. Every second space between grid lines can be filled with color. Set fillAlpha to a value greater than 0 to see the fills. #FFFFFF */ - fillColor: string; - /** Size of value labels text. Will use chart's fontSize if not set. */ - fontSize: string; - /** Opacity of grid lines. 0.2 */ - gridAlpha: number; - /** Color of grid lines. #000000 */ - gridColor: string; - /** Number of grid lines. In case this is value axis, or your categoryAxis parses dates, the number is approximate. The default value is 5. If you set autoGridCount to true, this property is ignored. - @default 5 - */ - gridCount: number; - /** Thickness of grid lines. - @default 1 - */ - gridThickness: number; - /** The array of guides belonging to this axis. */ - guides: any[]; - /** If autoMargins of a chart is set to true, but you want this axis not to be measured when calculating margin, set ignoreAxisWidth to true. */ - ignoreAxisWidth: boolean; - /** Specifies whether values should be placed inside or outside plot area. */ - inside: boolean; - /** Frequency at which labels should be placed. Doesn't work for CategoryAxis if parseDates is set to true. - @default 1 - */ - labelFrequency: number; - /** Rotation angle of a label. Only horizontal axis' values can be rotated. If you set this for vertical axis, the setting will be ignored. */ - labelRotation: number; - /** Specifies whether axis displays category axis' labels and value axis' values. - @default true - */ - labelsEnabled: boolean; - /** The distance of the axis to the plot area, in pixels. Negative values can also be used. */ - offset: number; - /** Possible values are: "top", "bottom", "left", "right". If axis is vertical, default position is "left". If axis is horizontal, default position is "bottom". */ - position: string; - /** Whether to show first axis label or not. - @default true - */ - showFirstLabel: boolean; - /** Whether to show last axis label or not. - @default true - */ - showLastLabel: boolean; - /** Length of the tick marks. - @default 5 - */ - tickLength: number; - /** Title of the axis. */ - title: string; - /** Specifies if title should be bold or not. - @default true - */ - titleBold: boolean; - /** Color of axis title. Will use text color of chart if not set any. */ - titleColor: string; - /** Font size of axis title. Will use font size of chart plus two pixels if not set any. */ - titlefontSize: string; - - /** Adds guide to the axis. */ - addGuide(guide: Guide): void; - /** Removes guide from the axis. */ - removeGuide(guide: Guide): void; - } - - /** ValueAxis is the class which displays value axis for the chart. The chart can have any number of value axes. For Serial chart one value axis is created automatically. For XY Chart two value axes (horizontal and vertical) are created automatically. */ - class ValueAxis extends AxisBase { - /** Radar chart only. Specifies distance from axis to the axis title (category) 10 */ - axisTitleOffset: number; - /** Read-only. Coordinate of the base value. */ - baseCoord: number; - /** Specifies base value of the axis. */ - baseValue: number; - /** If your values represents time units, and you want value axis labels to be formatted as duration, you have to set the duration unit. Possible values are: "ss", "mm", "hh" and "DD". */ - duration: string; - /** If duration property is set, you can specify what string should be displayed next to day, hour, minute and second. {DD:"d. ", hh:":", mm:":",ss:""} */ - durationUnits: Object; - /** Radar chart only. Possible values are: "polygons" and "circles". Set "circles" for polar charts. polygons */ - gridType: string; - /** Unique id of value axis. It is not required to set it, unless you need to tell the graph which exact value axis it should use. */ - id: string; - /** Specifies whether guide values should be included when calculating min and max of the axis. */ - includeGuidesInMinMax: boolean; - /** If true, the axis will include hidden graphs when calculating min and max values. */ - includeHidden: boolean; - /** Specifies whether values on axis can only be integers or both integers and doubles. */ - integersOnly: boolean; - /** You can use this function to format Value axis labels. This function is called and these parameters are passed: labelFunction(value, valueText, valueAxis); -Where value is numeric value, valueText is formatted string and valueAxis is a reference to valueAxis object. - -If axis type is "date", labelFunction will pass different arguments: -labelFunction(valueText, date, valueAxis) - -Your function should return string.*/ - labelFunction(value: number, valueText: string, valueAxis: ValueAxis): string; - labelFunction(valueText: string, data: Date, valueAxis: ValueAxis): string; - /** Specifies if this value axis' scale should be logarithmic. */ - logarithmic: boolean; - /** Read-only. Maximum value of the axis. */ - max: number; - /** If you don't want max value to be calculated by the chart, set it using this property. This value might still be adjusted so that it would be possible to draw grid at rounded intervals. */ - maximum: number; - /** If your value axis is date-based, you can specify maximum date of the axis. Can be set as date object, timestamp number or string if dataDateFormat is set. */ - maximumData: Date; - /** Read-only. Minimum value of the axis. */ - min: number; - /** If you don't want min value to be calculated by the chart, set it using this property. This value might still be adjusted so that it would be possible to draw grid at rounded intervals. */ - minimum: number; - /** If your value axis is date-based, you can specify minimum date of the axis. Can be set as date object, timestamp number or string if dataDateFormat is set. */ - minimumDate: Date; - /** If set value axis scale (min and max numbers) will be multiplied by it. I.e. if set to 1.2 the scope of values will increase by 20%. */ - minMaxMultiplier: number; - /** Works with radar charts only. If you set it to “middle”, labels and data points will be placed in the middle between axes. */ - pointPosition: string; - /** Possible values are: "top", "bottom", "left", "right". If axis is vertical, default position is "left". If axis is horizontal, default position is "bottom". */ - position: string; - /** Precision (number of decimals) of values. */ - precision: number; - /** Radar chart only. Specifies if categories (axes' titles) should be displayed near axes) - @default true - */ - radarCategoriesEnabled: boolean; - /** pecifies if graphs's values should be recalculated to percents. */ - recalculateToPercents: boolean; - /** Specifies if value axis should be reversed (smaller values on top). */ - reversed: boolean; - /** Stacking mode of the axis. Possible values are: "none", "regular", "100%", "3d". none Note, only graphs of one type will be stacked. */ - stackType: string; - /** Read-only. Value difference between two grid lines. */ - step: number; - /** If you set minimum and maximum for your axis, chart adjusts them so that grid would start and end on the beginning and end of plot area and grid would be at equal intervals. If you set strictMinMax to true, the chart will not adjust minimum and maximum of value axis. */ - strictMinMax: boolean; - /** In case you synchronize one value axis with another, you need to set the synchronization multiplier. Use synchronizeWithAxis method to set with which axis it should be synced. */ - synchronizationMultiplier: number; - /** One value axis can be synchronized with another value axis. You can use both reference to your axis or id of the axis here. You should set synchronizationMultiplyer in order for this to work. */ - synchronizeWith: ValueAxis; - /** If this value axis is stacked and has columns, setting valueAxis.totalText = "[[total]]" will make it to display total value above the most-top column. */ - totalText: string; - /** Color of total text. */ - totalTextColor: string; - /** Distance from data point to total text. */ - totalTextOffset: number; - /** This allows you to have logarithmic value axis and have zero values in the data. You must set it to >0 value in order to work. */ - treatZeroAs: number; - /** Type of value axis. If your values in data provider are dates and you want this axis to show dates instead of numbers, set it to "date". */ - type: string; - /** Unit which will be added to the value label. */ - unit: string; - /** Position of the unit. Possible values are "left" and "right". right */ - unitPosition: string; - /** If true, prefixes will be used for big and small numbers. You can set arrays of prefixes directly to the chart object via prefixesOfSmallNumbers and prefixesOfBigNumbers. */ - usePrefixes: boolean; - /** If true, values will always be formatted using scientific notation (5e+8, 5e-8...) Otherwise only values bigger then 1e+21 and smaller then 1e-7 will be displayed in scientific notation. */ - useScientificNotation: boolean; - - /** Adds guide to the axis. */ - addGuide(guide: Guide): void; - /** Number, - value of coordinate. Returns value of the coordinate. coordinate - y or x coordinate, in pixels. */ - coordinateToValue(coordinate: number): void; - /** Number - coordinate Returns coordinate of the value in pixels. value - Number */ - getCoordinate(value: number): void; - /** Removes guide from the axis.*/ - removeGuide(guide: Guide): void; - - /** One value axis can be synchronized with another value axis. You should set synchronizationMultiplyer in order for this to work. */ - synchronizeWithAxis(axis: ValueAxis): void; - /** XY Chart only. Zooms-in the axis to the provided values. */ - zoomToValues(startValue: number, endValue: number): void; - - /** Adds event listener of the type "axisZoomed" to the object. - @param type Always "axisZoomed". - @param handler XY chart only. Dispatched when axis is zoomed.*/ - addListener(type: string, handler: (e: { - /** Always "axisZoomed". */ - type: string; startValue: Date; endValue: Date; chart: AmChart; - }) => void): void; - /** Adds event listener of the type "logarithmicAxisFailed" to the object. - @param type Always "logarithmicAxisFailed". - @param handler Dispatched when valueAxis is logarithmic and values equal or less then zero were found in data.*/ - addListener(type: string, handler: (e: { - /** Always "logarithmicAxisFailed". */ - type: string; chart: AmChart; - }) => void): void; - - /** Removes event listener from chart object. */ - removeListener(chart: AmChart, type: string, handler: any): void; - } - - class Title { - /** @default 1 */ - alpha: number; - /** Specifies if the tile is bold or not. - @default false*/ - bold: boolean; - /** Text color of a title. */ - color: string; - /** Unique id of a Title. You don't need to set it, unless you want to. */ - id: string; - /** Text size */ - size: number; - /** Text of a label */ - text: string; - } - class ExportSettings { - enabled: boolean; - libs: Object; - menu: Object; - config: any; - capture(config: any, callback: () => void): any; - toJPG(config: any, callback: (config: any) => void): any; - } + function addInitHandler(handler: () => {}, types?: string[]): any; + + class AmAngularGauge extends _AmAngularGauge { } + class AmBalloon extends _AmBalloon { } + class AmChart extends _AmChart { } + class AmCoordinateChart extends _AmCoordinateChart { } + // class AmFunnelChart extends _AmFunnelChart { } + // class AmGanttChart extends _AmGanttChart { } + class AmGraph extends _AmGraph { } + class AmLegend extends _AmLegend { } + class AmPieChart extends _AmPieChart { } + class AmRadarChart extends _AmRadarChart { } + class AmRectangularChart extends _AmRectangularChart { } + class AmSerialChart extends _AmSerialChart { } + // class AmSlicedChart extends _AmSlicedChart { } + class AmXYChart extends _AmXYChart { } + class AxisBase extends _AxisBase { } + class CategoryAxis extends _CategoryAxis { } + class ChartCursor extends _ChartCursor { } + class ChartScrollbar extends _ChartScrollbar { } + class GaugeArrow extends _GaugeArrow { } + class GaugeAxis extends _GaugeAxis { } + class GaugeBand extends _GaugeBand { } + class GraphDataItem extends _GraphDataItem { } + class Guide extends _Guide { } + // class Image extends _Image { } + class Label extends _Label { } + class SerialDataItem extends _SerialDataItem { } + class Slice extends _Slice { } + class Title extends _Title { } + class TrendLine extends _TrendLine { } + class ValueAxis extends _ValueAxis { } } diff --git a/types/amcharts/tsconfig.json b/types/amcharts/tsconfig.json index 9f1b8f25e3..1d07459b73 100644 --- a/types/amcharts/tsconfig.json +++ b/types/amcharts/tsconfig.json @@ -19,6 +19,49 @@ }, "files": [ "index.d.ts", + "AmAngularGauge.d.ts", + "AmBalloon.d.ts", + "AmChart.d.ts", + "AmCoordinateChart.d.ts", + "AmGraph.d.ts", + "AmLegend.d.ts", + "AmPieChart.d.ts", + "AmRadarChart.d.ts", + "AmRectangularChart.d.ts", + "AmSerialChart.d.ts", + "AmStockChart.d.ts", + "AmXYChart.d.ts", + "AreasSettings.d.ts", + "AxisBase.d.ts", + "CategoryAxesSettings.d.ts", + "CategoryAxis.d.ts", + "ChartCursor.d.ts", + "ChartCursorSettings.d.ts", + "ChartScrollbar.d.ts", + "ChartScrollbarSettings.d.ts", + "DataSet.d.ts", + "DataSetSelector.d.ts", + "ExportSettings.d.ts", + "GaugeArrow.d.ts", + "GaugeAxis.d.ts", + "GaugeBand.d.ts", + "GraphDataItem.d.ts", + "Guide.d.ts", + "ImagesSettings.d.ts", + "Label.d.ts", + "LegendSettings.d.ts", + "PanelSettings.d.ts", + "PeriodSelector.d.ts", + "SerialDataItem.d.ts", + "Slice.d.ts", + "StockEvent.d.ts", + "StockGraph.d.ts", + "StockLegend.d.ts", + "StockPanel.d.ts", + "Title.d.ts", + "TrendLine.d.ts", + "ValueAxesSettings.d.ts", + "ValueAxis.d.ts", "amcharts-tests.ts" ] } \ No newline at end of file diff --git a/types/amcharts/tslint.json b/types/amcharts/tslint.json index 3ed772907a..96b5837fb6 100644 --- a/types/amcharts/tslint.json +++ b/types/amcharts/tslint.json @@ -1,9 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "ban-types": false, - "jsdoc-format": false, - "max-line-length": false, - "unified-signatures": false + "max-line-length": [true, 120] } -} +} \ No newline at end of file diff --git a/types/amqplib/callback_api.d.ts b/types/amqplib/callback_api.d.ts index 60ff8cf622..9fca3972e4 100644 --- a/types/amqplib/callback_api.d.ts +++ b/types/amqplib/callback_api.d.ts @@ -54,6 +54,19 @@ export interface ConfirmChannel extends Channel { waitForConfirms(callback?: (err: any) => void): void; } +export const credentials: { + external(): { + mechanism: string; + response(): Buffer; + }; + plain(username: string, password: string): { + mechanism: string; + response(): Buffer; + username: string; + password: string; + }; +}; + export function connect(callback: (err: any, connection: Connection) => void): void; export function connect(url: string, callback: (err: any, connection: Connection) => void): void; export function connect(url: string, socketOptions: any, callback: (err: any, connection: Connection) => void): void; diff --git a/types/amqplib/index.d.ts b/types/amqplib/index.d.ts index 2d5cb3ba99..25b0ef04e9 100644 --- a/types/amqplib/index.d.ts +++ b/types/amqplib/index.d.ts @@ -63,4 +63,17 @@ export interface ConfirmChannel extends Channel { waitForConfirms(): Promise; } +export const credentials: { + external(): { + mechanism: string; + response(): Buffer; + }; + plain(username: string, password: string): { + mechanism: string; + response(): Buffer; + username: string; + password: string; + }; +}; + export function connect(url: string | Options.Connect, socketOptions?: any): Promise; diff --git a/types/angular-dynamic-locale/angular-dynamic-locale-tests.ts b/types/angular-dynamic-locale/angular-dynamic-locale-tests.ts index 1e30aafd94..962219d465 100644 --- a/types/angular-dynamic-locale/angular-dynamic-locale-tests.ts +++ b/types/angular-dynamic-locale/angular-dynamic-locale-tests.ts @@ -5,6 +5,7 @@ app.config((localStorageServiceProvider: angular.dynamicLocale.tmhDynamicLocaleP localStorageServiceProvider .localeLocationPattern("app/config/locales/") .useCookieStorage(); + localStorageServiceProvider.defaultLocale('en'); }); class LocaleTestController { diff --git a/types/angular-dynamic-locale/index.d.ts b/types/angular-dynamic-locale/index.d.ts index 1aa14d4c3b..e68c037fa3 100644 --- a/types/angular-dynamic-locale/index.d.ts +++ b/types/angular-dynamic-locale/index.d.ts @@ -17,6 +17,7 @@ declare module 'angular' { } interface tmhDynamicLocaleProvider extends angular.IServiceProvider { + defaultLocale(locale: string): void; localeLocationPattern(location: string): tmhDynamicLocaleProvider; localeLocationPattern(): string; storageKey(storageKey: string): void; diff --git a/types/angular-locker/angular-locker-tests.ts b/types/angular-locker/angular-locker-tests.ts index 368dd1d308..7bb27d68e1 100644 --- a/types/angular-locker/angular-locker-tests.ts +++ b/types/angular-locker/angular-locker-tests.ts @@ -131,7 +131,7 @@ angular $scope['foo']; // = undefined locker.get('foo'); // = undefined - if (! locker.supported()) { + if (! locker.supported('session')) { // load a polyfill? } }]); diff --git a/types/angular-locker/index.d.ts b/types/angular-locker/index.d.ts index 0fd1d0a472..37bc041ec1 100644 --- a/types/angular-locker/index.d.ts +++ b/types/angular-locker/index.d.ts @@ -140,7 +140,7 @@ declare module 'angular' { * * @param {String} driver The driver to check support with */ - supported(): boolean; + supported(driver: string): boolean; /** * Unbind a storage key from a $scope property * diff --git a/types/angular-material/angular-material-tests.ts b/types/angular-material/angular-material-tests.ts index ac4a1386cd..8d6955c697 100644 --- a/types/angular-material/angular-material-tests.ts +++ b/types/angular-material/angular-material-tests.ts @@ -196,7 +196,7 @@ myApp.controller('DialogController', ($scope: TestScope, $mdDialog: ng.material. }); class IconDirective implements ng.IDirective { - private $mdIcon: ng.material.IIcon; + private readonly $mdIcon: ng.material.IIcon; constructor($mdIcon: ng.material.IIcon) { this.$mdIcon = $mdIcon; } diff --git a/types/angular-scroll/angular-scroll-tests.ts b/types/angular-scroll/angular-scroll-tests.ts index fbc1c01642..84491706bc 100644 --- a/types/angular-scroll/angular-scroll-tests.ts +++ b/types/angular-scroll/angular-scroll-tests.ts @@ -50,11 +50,11 @@ namespace TestApp { var horixontalPosition: number = $document.duScrollLeft(); } - private invertedEasingFn = (x: number): number => { + private readonly invertedEasingFn = (x: number): number => { return 1 - x; } - private onScrollCompleted = (): void => { + private readonly onScrollCompleted = (): void => { console.log('Done scrolling'); } } diff --git a/types/angular-signalr-hub/angular-signalr-hub-tests.ts b/types/angular-signalr-hub/angular-signalr-hub-tests.ts index 14d202e171..62ea189787 100644 --- a/types/angular-signalr-hub/angular-signalr-hub-tests.ts +++ b/types/angular-signalr-hub/angular-signalr-hub-tests.ts @@ -1,6 +1,6 @@ class EmployeesFactory { static $inject = ['$rootScope', 'Hub', '$timeout']; - private hub: ngSignalr.Hub; + private readonly hub: ngSignalr.Hub; public all: Array; constructor($rootScope: ng.IRootScopeService, Hub: ngSignalr.HubFactory, $timeout: ng.ITimeoutService) { diff --git a/types/angular-ui-router/angular-ui-router-tests.ts b/types/angular-ui-router/angular-ui-router-tests.ts index 406e94a1eb..889e92bfc9 100644 --- a/types/angular-ui-router/angular-ui-router-tests.ts +++ b/types/angular-ui-router/angular-ui-router-tests.ts @@ -137,10 +137,10 @@ class UrlLocatorTestService implements IUrlLocatorTestService { static $inject = ["$http", "$rootScope", "$urlRouter", "$state"]; constructor( - private $http: ng.IHttpService, - private $rootScope: ng.IRootScopeService, - private $urlRouter: ng.ui.IUrlRouterService, - private $state: ng.ui.IStateService + private readonly $http: ng.IHttpService, + private readonly $rootScope: ng.IRootScopeService, + private readonly $urlRouter: ng.ui.IUrlRouterService, + private readonly $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: {}) => diff --git a/types/angular/angular-tests.ts b/types/angular/angular-tests.ts index 15d4d6a137..795e74a058 100644 --- a/types/angular/angular-tests.ts +++ b/types/angular/angular-tests.ts @@ -161,7 +161,7 @@ namespace My.Namespace { } class TestProvider implements ng.IServiceProvider { - constructor(private $scope: ng.IScope) {} + constructor(private readonly $scope: ng.IScope) {} $get() {} } diff --git a/types/angular/index.d.ts b/types/angular/index.d.ts index f3b64e2136..efbabaa302 100644 --- a/types/angular/index.d.ts +++ b/types/angular/index.d.ts @@ -159,7 +159,7 @@ declare namespace angular { module( name: string, requires?: string[], - configFn?: Function): IModule; + configFn?: Injectable): IModule; noop(...args: any[]): void; reloadWithDebugInfo(): void; @@ -388,6 +388,7 @@ declare namespace angular { $setUntouched(): void; $rollbackViewValue(): void; $commitViewValue(): void; + $processModelValue(): void; $isEmpty(value: any): boolean; $overrideModelOptions(options: INgModelOptions): void; diff --git a/types/angularfire/index.d.ts b/types/angularfire/index.d.ts index de1482b0e3..a339e89bc5 100644 --- a/types/angularfire/index.d.ts +++ b/types/angularfire/index.d.ts @@ -112,7 +112,7 @@ interface AngularFireObject extends AngularFireSimpleObject { * @param {object} scope * @param {string} varName * @returns a promise which resolves to an unbind method after data is set in scope - */ + */ $bindTo(scope: ng.IScope, varName: string): ng.IPromise; /** @@ -125,7 +125,7 @@ interface AngularFireObject extends AngularFireSimpleObject { * @param {Function} cb * @param {Object} [context] * @returns {Function} invoke to stop observing events - */ + */ $watch(callback: Function, context?: any): Function; /** diff --git a/types/angularfire/package.json b/types/angularfire/package.json new file mode 100644 index 0000000000..3cf0b2f8bd --- /dev/null +++ b/types/angularfire/package.json @@ -0,0 +1,6 @@ +{ + "private": true, + "dependencies": { + "@types/firebase": "^2.4.1" + } +} diff --git a/types/angularlocalstorage/angularlocalstorage-tests.ts b/types/angularlocalstorage/angularlocalstorage-tests.ts index 22d71f8b5d..df50c6694a 100644 --- a/types/angularlocalstorage/angularlocalstorage-tests.ts +++ b/types/angularlocalstorage/angularlocalstorage-tests.ts @@ -3,7 +3,7 @@ interface TestScope extends ng.IScope { } class TestController { - constructor(private $scope: TestScope, private storage: ng.localStorage.ILocalStorageService) { + constructor(private readonly $scope: TestScope, private readonly storage: ng.localStorage.ILocalStorageService) { storage.bind($scope, 'varName'); storage.bind($scope,'varName', { defaultValue: 'randomValue123', storeName: 'customStoreKey' }); $scope.viewType = 'ANYTHING'; diff --git a/types/ansi-colors/ansi-colors-tests.ts b/types/ansi-colors/ansi-colors-tests.ts new file mode 100644 index 0000000000..9a9afc43f4 --- /dev/null +++ b/types/ansi-colors/ansi-colors-tests.ts @@ -0,0 +1,30 @@ +import * as colors from 'ansi-colors'; + +let s: string; + +s = colors.bgblack("hello"); +s = colors.bgblue("hello"); +s = colors.bgcyan("hello"); +s = colors.bggreen("hello"); +s = colors.bgmagenta("hello"); +s = colors.bgred("hello"); +s = colors.bgwhite("hello"); +s = colors.bgyellow("hello"); +s = colors.black("hello"); +s = colors.blue("hello"); +s = colors.bold("hello"); +s = colors.cyan("hello"); +s = colors.dim("hello"); +s = colors.gray("hello"); +s = colors.green("hello"); +s = colors.grey("hello"); +s = colors.hidden("hello"); +s = colors.inverse("hello"); +s = colors.italic("hello"); +s = colors.magenta("hello"); +s = colors.red("hello"); +s = colors.reset("hello"); +s = colors.strikethrough("hello"); +s = colors.underline("hello"); +s = colors.white("hello"); +s = colors.yellow("hello"); diff --git a/types/ansi-colors/index.d.ts b/types/ansi-colors/index.d.ts new file mode 100644 index 0000000000..092c4c1f2b --- /dev/null +++ b/types/ansi-colors/index.d.ts @@ -0,0 +1,31 @@ +// Type definitions for ansi-colors 1.0 +// Project: https://github.com/doowb/ansi-colors +// Definitions by: Rogier Schouten +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function bgblack(s: string): string; +export function bgblue(s: string): string; +export function bgcyan(s: string): string; +export function bggreen(s: string): string; +export function bgmagenta(s: string): string; +export function bgred(s: string): string; +export function bgwhite(s: string): string; +export function bgyellow(s: string): string; +export function black(s: string): string; +export function blue(s: string): string; +export function bold(s: string): string; +export function cyan(s: string): string; +export function dim(s: string): string; +export function gray(s: string): string; +export function green(s: string): string; +export function grey(s: string): string; +export function hidden(s: string): string; +export function inverse(s: string): string; +export function italic(s: string): string; +export function magenta(s: string): string; +export function red(s: string): string; +export function reset(s: string): string; +export function strikethrough(s: string): string; +export function underline(s: string): string; +export function white(s: string): string; +export function yellow(s: string): string; diff --git a/types/ansi-colors/tsconfig.json b/types/ansi-colors/tsconfig.json new file mode 100644 index 0000000000..8a0f980cbc --- /dev/null +++ b/types/ansi-colors/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "ansi-colors-tests.ts" + ] +} diff --git a/types/bignumber.js/tslint.json b/types/ansi-colors/tslint.json similarity index 100% rename from types/bignumber.js/tslint.json rename to types/ansi-colors/tslint.json diff --git a/types/anydb-sql-migrations/anydb-sql-migrations-tests.ts b/types/anydb-sql-migrations/anydb-sql-migrations-tests.ts deleted file mode 100644 index ed79ace368..0000000000 --- a/types/anydb-sql-migrations/anydb-sql-migrations-tests.ts +++ /dev/null @@ -1,15 +0,0 @@ -import anydbsql = require('anydb-sql'); -import { Table, Column } from 'anydb-sql' -import migrator = require('anydb-sql-migrations'); - -function do_not_run() { - - var db = anydbsql({ - url: 'postgres://user:pass@host:port/database', - connections: { min: 2, max: 20 } - }); - - migrator - .create(db, '/path/to/migrations/dir') - .run(); -} diff --git a/types/anydb-sql-migrations/index.d.ts b/types/anydb-sql-migrations/index.d.ts deleted file mode 100644 index f6e12ed752..0000000000 --- a/types/anydb-sql-migrations/index.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Type definitions for anydb-sql-migrations -// Project: https://github.com/spion/anydb-sql-migrations -// Definitions by: Gorgi Kosev -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import Promise = require('bluebird'); -import { Column, Table, Transaction, AnydbSql } from 'anydb-sql'; -export interface Migration { - version: string; -} -export interface MigrationsTable extends Table { - version: Column; -} -export interface MigFn { - (tx: Transaction): Promise; -} -export interface MigrationTask { - up: MigFn; - down: MigFn; - name: string; -} -export declare function create(db: AnydbSql, tasks: string | MigrationTask[]): { - run: () => Promise; - migrateTo: (target?: string) => Promise; - check: (f: (m: { - type: string; - items: MigrationTask[]; - }) => any) => Promise; -}; diff --git a/types/applicationinsights/applicationinsights-tests.ts b/types/applicationinsights/applicationinsights-tests.ts deleted file mode 100644 index 00c303eff4..0000000000 --- a/types/applicationinsights/applicationinsights-tests.ts +++ /dev/null @@ -1,30 +0,0 @@ -import * as appInsights from "applicationinsights"; - -// basic use -appInsights.setup("").start(); - -// basic use with auto-collection configuration -appInsights.setup("") - .setAutoCollectRequests(false) - .setAutoCollectPerformance(false) - .setAutoCollectExceptions(false) - // no telemetry will be sent until .start() is called - // this prevents any of the auto-collectors from initializing - .enableVerboseLogging() - .start(); - -appInsights.client.trackEvent("custom event", {customProperty: "custom property value"}); -appInsights.client.trackException(new Error("handled exceptions can be logged with this method")); -appInsights.client.trackMetric("custom metric", 3); -appInsights.client.trackTrace("trace message"); -appInsights.client.trackDependency("dependency name", "commandName", 500, true); - -// assign common properties to all telemetry -appInsights.client.commonProperties = { - environment: "dev" -}; - -// send any pending data and log the response -appInsights.client.sendPendingData(function (response) { - console.log(response); -}); diff --git a/types/applicationinsights/index.d.ts b/types/applicationinsights/index.d.ts deleted file mode 100644 index 471089a96f..0000000000 --- a/types/applicationinsights/index.d.ts +++ /dev/null @@ -1,490 +0,0 @@ -// Type definitions for Application Insights v0.15.12 -// Project: https://github.com/Microsoft/ApplicationInsights-node.js -// Definitions by: Scott Southwood -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface AutoCollectConsole { - constructor(client: Client): AutoCollectConsole; - enable(isEnabled: boolean): void; - isInitialized(): boolean; -} - -interface AutoCollectExceptions { - constructor(client:Client): AutoCollectExceptions; - isInitialized(): boolean; - enable(isEnabled:boolean): void; -} - -interface AutoCollectPerformance { - constructor(client: Client): AutoCollectPerformance; - enable(isEnabled: boolean): void; - isInitialized(): boolean; -} - -interface AutoCollectRequests { - constructor(client: Client): AutoCollectRequests; - enable(isEnabled: boolean): void; - isInitialized(): boolean; -} - - -declare namespace ContractsModule { - enum DataPointType { - Measurement = 0, - Aggregation = 1, - } - enum DependencyKind { - SQL = 0, - Http = 1, - Other = 2, - } - enum DependencySourceType { - Undefined = 0, - Aic = 1, - Apmc = 2, - } - enum SessionState { - Start = 0, - End = 1, - } - enum SeverityLevel { - Verbose = 0, - Information = 1, - Warning = 2, - Error = 3, - Critical = 4, - } - interface ContextTagKeys { - applicationVersion: string; - applicationBuild: string; - deviceId: string; - deviceIp: string; - deviceLanguage: string; - deviceLocale: string; - deviceModel: string; - deviceNetwork: string; - deviceOEMName: string; - deviceOS: string; - deviceOSVersion: string; - deviceRoleInstance: string; - deviceRoleName: string; - deviceScreenResolution: string; - deviceType: string; - deviceMachineName: string; - locationIp: string; - operationId: string; - operationName: string; - operationParentId: string; - operationRootId: string; - operationSyntheticSource: string; - operationIsSynthetic: string; - sessionId: string; - sessionIsFirst: string; - sessionIsNew: string; - userAccountAcquisitionDate: string; - userAccountId: string; - userAgent: string; - userId: string; - userStoreRegion: string; - sampleRate: string; - internalSdkVersion: string; - internalAgentVersion: string; - constructor(): ContextTagKeys; - } - interface Domain { - ver: number; - properties: any; - constructor(): Domain; - } - interface Data { - baseType: string; - baseData: TDomain; - constructor(): Data; - } - interface Envelope { - ver: number; - name: string; - time: string; - sampleRate: number; - seq: string; - iKey: string; - flags: number; - deviceId: string; - os: string; - osVer: string; - appId: string; - appVer: string; - userId: string; - tags: { - [key: string]: string; - }; - data: Data; - constructor(): Envelope; - } - interface EventData extends ContractsModule.Domain { - ver: number; - name: string; - properties: any; - measurements: any; - constructor(): EventData; - } - interface MessageData extends ContractsModule.Domain { - ver: number; - message: string; - severityLevel: ContractsModule.SeverityLevel; - properties: any; - constructor(): MessageData; - } - interface ExceptionData extends ContractsModule.Domain { - ver: number; - handledAt: string; - exceptions: ExceptionDetails[]; - severityLevel: ContractsModule.SeverityLevel; - problemId: string; - crashThreadId: number; - properties: any; - measurements: any; - constructor(): ExceptionData; - } - interface StackFrame { - level: number; - method: string; - assembly: string; - fileName: string; - line: number; - constructor(): StackFrame; - } - interface ExceptionDetails { - id: number; - outerId: number; - typeName: string; - message: string; - hasFullStack: boolean; - stack: string; - parsedStack: StackFrame[]; - constructor(): ExceptionDetails; - } - interface DataPoint { - name: string; - kind: ContractsModule.DataPointType; - value: number; - count: number; - min: number; - max: number; - stdDev: number; - constructor(): DataPoint; - } - interface MetricData extends ContractsModule.Domain { - ver: number; - metrics: DataPoint[]; - properties: any; - constructor(): MetricData; - } - interface PageViewData extends ContractsModule.EventData { - ver: number; - url: string; - name: string; - duration: string; - properties: any; - measurements: any; - constructor(): PageViewData; - } - interface PageViewPerfData extends ContractsModule.PageViewData { - ver: number; - url: string; - perfTotal: string; - name: string; - duration: string; - networkConnect: string; - sentRequest: string; - receivedResponse: string; - domProcessing: string; - properties: any; - measurements: any; - constructor(): PageViewPerfData; - } - interface RemoteDependencyData extends ContractsModule.Domain { - ver: number; - name: string; - kind: ContractsModule.DataPointType; - value: number; - count: number; - min: number; - max: number; - stdDev: number; - dependencyKind: ContractsModule.DependencyKind; - success: boolean; - async: boolean; - dependencySource: ContractsModule.DependencySourceType; - commandName: string; - dependencyTypeName: string; - properties: any; - constructor(): RemoteDependencyData; - } - interface AjaxCallData extends ContractsModule.PageViewData { - ver: number; - url: string; - ajaxUrl: string; - name: string; - duration: string; - requestSize: number; - responseSize: number; - timeToFirstByte: string; - timeToLastByte: string; - callbackDuration: string; - responseCode: string; - success: boolean; - properties: any; - measurements: any; - constructor(): AjaxCallData; - } - interface RequestData extends ContractsModule.Domain { - ver: number; - id: string; - name: string; - startTime: string; - duration: string; - responseCode: string; - success: boolean; - httpMethod: string; - url: string; - properties: any; - measurements: any; - constructor(): RequestData; - } - interface SessionStateData extends ContractsModule.Domain { - ver: number; - state: ContractsModule.SessionState; - constructor(): SessionStateData; - } - interface PerformanceCounterData extends ContractsModule.Domain { - ver: number; - categoryName: string; - counterName: string; - instanceName: string; - kind: DataPointType; - count: number; - min: number; - max: number; - stdDev: number; - value: number; - properties: any; - constructor(): PerformanceCounterData; - } -} - - -interface Channel { - constructor(isDisabled: () => boolean, getBatchSize: () => number, getBatchIntervalMs: () => number, sender: Sender): Channel; - /** - * Add a telemetry item to the send buffer - */ - send(envelope: ContractsModule.Envelope): void; - handleCrash(envelope: ContractsModule.Envelope): void; - /** - * Immediately send buffered data - */ - triggerSend(isNodeCrashing?: boolean): void; -} - -interface Client { - config: Config; - context: Context; - commonProperties: { - [key: string]: string; - }; - channel: Channel; - /** - * Constructs a new client of the client - * @param iKey the instrumentation key to use (read from environment variable if not specified) - */ - constructor(iKey?: string): Client; - /** - * Log a user action or other occurrence. - * @param name A string to identify this event in the portal. - * @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty. - * @param measurements map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty. - */ - trackEvent(name: string, properties?: { - [key: string]: string; - }, measurements?: { - [key: string]: number; - }): void; - /** - * Log a trace message - * @param message A string to identify this event in the portal. - * @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty. - */ - trackTrace(message: string, severityLevel?: ContractsModule.SeverityLevel, properties?: { - [key: string]: string; - }): void; - /** - * Log an exception you have caught. - * @param exception An Error from a catch clause, or the string error message. - * @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty. - * @param measurements map[string, number] - metrics associated with this event, displayed in Metrics Explorer on the portal. Defaults to empty. - */ - trackException(exception: Error, properties?: { - [key: string]: string; - }): void; - /** - * Log a numeric value that is not associated with a specific event. Typically used to send regular reports of performance indicators. - * To send a single measurement, use just the first two parameters. If you take measurements very frequently, you can reduce the - * telemetry bandwidth by aggregating multiple measurements and sending the resulting average at intervals. - * @param name A string that identifies the metric. - * @param value The value of the metric - * @param count the number of samples used to get this value - * @param min the min sample for this set - * @param max the max sample for this set - * @param stdDev the standard deviation of the set - */ - trackMetric(name: string, value: number, count?:number, min?: number, max?: number, stdDev?: number, properties?: { - [key: string]: string; - }): void; - - /** - * Log an incoming http request to your server. The request data will be tracked during the response "finish" event if it is successful or the request "error" - * event if it fails. The request duration is automatically calculated as the timespan between when the trackRequest method was called, and when the response "finish" - * or request "error" events were fired. - * @param request The http.IncomingMessage object to track - * @param response The http.ServerResponse object for this request - * @param properties map[string, string] - additional data used to filter requests in the portal. Defaults to empty. - */ - trackRequest(request: any /* http.IncomingMessage */, response: any /* http.ServerResponse */, properties?: { - [key: string]: string; - }): void; - - /** - * Log an incoming http request to your server. The request data is tracked synchronously rather than waiting for the response "finish"" or request "error"" events. - * Use this if you need your request telemetry to respect custom app insights operation and user context (for example if you set any appInsights.client.context.tags). - * @param request The http.IncomingMessage object to track - * @param response The http.ServerResponse object for this request - * @param ellapsedMilliseconds The duration for this request. Defaults to 0. - * @param properties map[string, string] - additional data used to filter requests in the portal. Defaults to empty. - * @param error An error that was returned for this request if it was unsuccessful. Defaults to null. - */ - trackRequestSync(request: any /*http.IncomingMessage */, response: any /*http.ServerResponse */, ellapsedMilliseconds?: number, properties?: { - [key: string]: string;}, error?: any) : void; - - /** - * Log information about a dependency of your app. Typically used to track the time database calls or outgoing http requests take from your server. - * @param name The name of the dependency (i.e. "myDatabse") - * @param commandname The name of the command executed on the dependency - * @param elapsedTimeMs The amount of time in ms that the dependency took to return the result - * @param success True if the dependency succeeded, false otherwise - * @param dependencyTypeName The type of the dependency (i.e. "SQL" "HTTP"). Defaults to empty. - * @param properties map[string, string] - additional data used to filter events and metrics in the portal. Defaults to empty. - * @param dependencyKind ContractsModule.DependencyKind of this dependency. Defaults to Other. - * @param async True if the dependency was executed asynchronously, false otherwise. Defaults to false - * @param dependencySource ContractsModule.DependencySourceType of this dependency. Defaults to Undefined. - */ - trackDependency(name: string, commandName: string, elapsedTimeMs: number, success: boolean, dependencyTypeName?: string, properties?: {}, dependencyKind?: any, async?: boolean, dependencySource?: number): void; - /** - * Immediately send all queued telemetry. - */ - sendPendingData(callback?: (response: string) => void): void; - getEnvelope(data: ContractsModule.Data, tagOverrides?: { - [key: string]: string; - }): ContractsModule.Envelope; - /** - * Generic track method for all telemetry types - * @param data the telemetry to send - * @param tagOverrides the context tags to use for this telemetry which overwrite default context values - */ - track(data: ContractsModule.Data, tagOverrides?: { - [key: string]: string; - }): void; -} - -interface Config { - instrumentationKey: string; - sessionRenewalMs: number; - sessionExpirationMs: number; - endpointUrl: string; - maxBatchSize: number; - maxBatchIntervalMs: number; - disableAppInsights: boolean; - constructor(instrumentationKey?: string): Config; -} - -interface Context { - keys: ContractsModule.ContextTagKeys; - tags: { - [key: string]: string; - }; - constructor(packageJsonPath?: string): Context; -} - -interface Sender { - constructor(getUrl: () => string, onSuccess?: (response: string) => void, onError?: (error: Error) => void): Sender; - send(payload: any/* Buffer */): void; - saveOnCrash(payload: string): void; - /** - * enable caching events locally on error - */ - enableCacheOnError(): void; - /** - * disable caching events locally on error - */ - disableCacheOnError(): void; -} - -/** - * The singleton meta interface for the default client of the client. This interface is used to setup/start and configure - * the auto-collection behavior of the application insights module. - */ -interface ApplicationInsights { - client: Client; - /** - * Initializes a client with the given instrumentation key, if this is not specified, the value will be - * read from the environment variable APPINSIGHTS_INSTRUMENTATIONKEY - * @returns {ApplicationInsights/Client} a new client - */ - getClient(instrumentationKey?: string): Client; - /** - * Initializes the default client of the client and sets the default configuration - * @param instrumentationKey the instrumentation key to use. Optional, if this is not specified, the value will be - * read from the environment variable APPINSIGHTS_INSTRUMENTATIONKEY - * @returns {ApplicationInsights} this interface - */ - setup(instrumentationKey?: string): ApplicationInsights; - /** - * Starts automatic collection of telemetry. Prior to calling start no telemetry will be collected - * @returns {ApplicationInsights} this interface - */ - start(): ApplicationInsights; - /** - * Sets the state of console tracking (enabled by default) - * @param value if true console activity will be sent to Application Insights - * @returns {ApplicationInsights} this interface - */ - setAutoCollectConsole(value: boolean): ApplicationInsights; - /** - * Sets the state of exception tracking (enabled by default) - * @param value if true uncaught exceptions will be sent to Application Insights - * @returns {ApplicationInsights} this interface - */ - setAutoCollectExceptions(value: boolean): ApplicationInsights; - /** - * Sets the state of performance tracking (enabled by default) - * @param value if true performance counters will be collected every second and sent to Application Insights - * @returns {ApplicationInsights} this interface - */ - setAutoCollectPerformance(value: boolean): ApplicationInsights; - /** - * Sets the state of request tracking (enabled by default) - * @param value if true requests will be sent to Application Insights - * @returns {ApplicationInsights} this interface - */ - setAutoCollectRequests(value: boolean): ApplicationInsights; - /** - * Enables verbose debug logging - * @returns {ApplicationInsights} this interface - */ - enableVerboseLogging(): ApplicationInsights; -} - -declare module "applicationinsights" { - const applicationinsights: ApplicationInsights; - export = applicationinsights; -} diff --git a/types/aqb/aqb-tests.ts b/types/aqb/aqb-tests.ts new file mode 100644 index 0000000000..5e186126fe --- /dev/null +++ b/types/aqb/aqb-tests.ts @@ -0,0 +1,151 @@ +import QB = require("aqb"); + +/* + * Most of these tests are taken directly from the examples + * in the aqbjs Github documentation. + * + * https://github.com/arangodb/aqbjs + */ + +/* + * section aqb.js + * https://github.com/arangodb/aqbjs#auto-casting-raw-data + */ +const doc = { + aString: "hello", + aDate: new Date(), + aNumber: 23, + anArray: [1, 2, 3, "potato"] +}; + +QB(doc); +QB.for('x').in('1..5').return('x'); +QB.insert(QB(doc)).into('my_collection'); + +/* + * section aqb.js + * https://github.com/arangodb/aqbjs#aql-types + */ +QB.bool(true); +QB.num("12"); +QB.int("1"); +QB.str(23); +QB.list([ 1 , 2 , 3 , 4 , 5]); +QB.obj({'some.name': 'value'}); +QB.ref("users"); + +/* + * section aqb.js + * https://github.com/arangodb/aqbjs#aql-expressions + */ +QB.range(1 , 5); +QB.get("property"); +QB.ref("user").get("property"); +QB.expr(QB.for('x').in('1..5').return('x').toAQL()); + +/* + * section aqb.js + * https://github.com/arangodb/aqbjs#aql-operations + */ +QB.and("a", "b"); +QB.ref("a").and("b"); +QB.or("a" , "b"); +QB.ref("a").or("b"); +QB.add("a" , "b"); +QB.ref("a").add("b"); +QB.plus("a" , "b"); +QB.ref("a").plus("b"); +QB.sub("a" , "b"); +QB.ref("a").sub("b"); +QB.minus("a" , "b"); +QB.ref("a").minus("b"); +QB.mul("a" , "b"); +QB.ref("a").mul("b"); +QB.times("a" , "b"); +QB.ref("a").times("b"); +QB.div("a" , "b"); +QB.ref("a").div("b"); +QB.mod("a", "b"); +QB.ref("a").mod("b"); +QB.eq("a" , "b"); +QB.ref("a").eq("b"); +QB.neq("a", "b"); +QB.ref("a").neq("b"); +QB.gt("a" , "b"); +QB.ref("a").gt("b"); +QB.gte("a" , "b"); +QB.ref("a").gte("b"); +QB.lt("a" , "b"); +QB.ref("a").lt("b"); +QB.lte("a" , "b"); +QB.ref("a").lte("b"); +QB.in("a" , "b"); +QB.ref("a").in("b"); +QB.not("a"); +QB.ref("a").not(); +QB.notIn("a" , "b"); +QB.ref("a").notIn("b"); +QB.neg("a"); +QB.ref("a").neg(); +QB.if("x" , "y" , "z"); +QB.ref("x").then("y").else("z"); +QB.fn('MY::USER::FUNC')(1, 2, 3); +QB.fn('hello')(); + +/* + * section aqb.js + * https://github.com/arangodb/aqbjs#aql-statements + */ +QB.for('doc').in('my_collection'); +QB.for('doc').in('my_collection').let('foo' , 23); +QB.for('doc').in('my_collection').let('foo' , 23); +// QB.for('doc').in('my_collection').let({a: 1, b: 2, c: 3}); +QB.for('doc').in('my_collection').return('x'); +QB.for('doc').in('my_collection').return({x: 'x'}); +QB.for('doc').in('my_collection').returnDistinct('x'); +QB.for('doc').in('my_collection').filter(QB.eq('a', 'b')); +QB.for('doc').in('my_collection').collectWithCountInto('x'); +QB.for('doc').in('my_collection').collect('x', 'y'); +// QB.for('doc').in('my_collection').collect({x: 'a', y: 'b'}); +QB.for('doc').in('my_collection').collect('x' , 'y').withCountInto('z'); +QB.for('doc').in('my_collection').collect('x' , 'y').into('z').keep('a' , 'b'); +QB.for('doc').in('my_collection').collect('x' , 'y').into('z' , 'Z'); +QB.for('doc').in('my_collection').collect('x' , 'y').into('z'); +QB.for('doc').in('my_collection').collect('x' , 'y').into('z').options('opts'); +QB.for('doc').in('my_collection').collect('x' , 'y').options('opts'); +QB.for('doc').in('my_collection').collect('x' , 'y').keep('a' , 'b'); +QB.for('doc').in('my_collection').collect('x' , 'y').sort('x', 'DESC', 'y', 'ASC'); +QB.for('doc').in('my_collection').collect('x' , 'y').limit(20); +QB.for('doc').in('my_collection').collect('x' , 'y').limit(20 , 20); +QB.for('doc').in('my_collection').remove('x'); +QB.for('doc').in('my_collection').remove('x').in('y'); +QB.for('doc').in('my_collection').remove('x').in('y').returnOld('a'); +QB.for('doc').in('my_collection').remove('x').in('y').options('opts'); +QB.upsert('x').insert('y').replace('z').in('c'); +QB.upsert('x').insert('y').replace('z').in('c').options('opts'); +QB.upsert('x').insert('y').update('z').in('c'); +QB.upsert('x').insert('y').update('z').in('c').options('opts'); +QB.insert('x').into('y'); +QB.insert('x').into('y').options('opts'); +QB.insert('x').into('y').returnNew('z'); +QB.update('x').in('y'); +QB.update('x').into('y'); +QB.update('x').with('y').in('z'); +QB.update('x').with('y').into('z'); +QB.update('x').with('y').into('z').options('opts'); +QB.update('x').in('y').options('opts'); +QB.update('x').with('y').into('z').returnNew('v'); +QB.update('x').with('y').into('z').returnOld('v'); +QB.update('x').in('y').options('opts').returnNew('v'); +QB.update('x').in('y').options('opts').returnOld('v'); + +QB.replace('x').in('y'); +QB.replace('x').into('y'); +QB.replace('x').with('y').in('z'); +QB.replace('x').with('y').into('z'); +QB.replace('x').with('y').into('z').options('opts'); +QB.replace('x').in('y').options('opts'); +QB.replace('x').with('y').into('z').returnNew('v'); +QB.replace('x').with('y').into('z').returnOld('v'); +QB.replace('x').in('y').options('opts').returnNew('v'); +QB.replace('x').in('y').options('opts').returnOld('v'); diff --git a/types/aqb/index.d.ts b/types/aqb/index.d.ts new file mode 100644 index 0000000000..eb529e9c97 --- /dev/null +++ b/types/aqb/index.d.ts @@ -0,0 +1,1105 @@ +// Type definitions for aqbjs 2.1 +// Project: https://github.com/arangodb/aqbjs +// Definitions by: Athenkosi Mase +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 +interface AqlError extends Error { + new(message: string): Error; + name: string; +} +interface Operation extends Expression { + new(): Expression; +} +interface BinaryOperation extends Operation { + new(operator: string, value1: any, value2: any): Operation; + toAQL(): string; + _operator: string; +} +interface UnaryOperation extends Expression { + new(operator: string, value: any): Expression; + toAQL(): string; + _operator: string; +} +interface SimpleReference extends Expression { + new(value: string): Expression; + toAQL(): string; + re: RegExp; + _value: string; +} +interface RawExpression extends Expression { + new(value: any): Expression; + toAQL(): string; +} +interface BooleanLiteral extends Expression { + new(value: any): Expression; + toAQL(): string; + _value: boolean; +} +interface NumberLiteral extends Expression { + new(value: any): Expression; + toAQL(): string; + re: RegExp; +} +interface IntegerLiteral extends Expression { + new(value: any): Expression; + toAQL(): string; + _value: number; +} +interface StringLiteral extends Expression { + new(value: any): Expression; + toAQL(): string; +} +interface ListLiteral extends Expression { + new(...value: any[]): Expression; + toAQL(): string; +} +interface ObjectLiteral extends Expression { + new(value: any): Expression; + toAQL(): string; + _value: object; +} +interface NAryOperation extends Operation { + new(operator: string, values: any[]): Operation; + toAQL(): string; + _operator: string; + _values: Expression[]; +} +interface RangeExpression extends Expression { + new(start: any, end?: any): Expression; + toAQL(): string; + _start: number; + _end: number; + re: RegExp; +} +interface PropertyAccess extends Expression { + new(obj: any, keys: any[]): Expression; + toAQL(): string; + _obj: Expression; + _keys: Expression[]; +} +interface TernaryOperation extends Operation { + new(operator1: string, operator2: string, value1: Expression, value2: any, value3: any): Operation; + toAQL(): string; + _operator1: string; + _operator2: string; +} +interface NullLiteral extends Expression { + new(value: any): Expression; + toAQL(): string; +} +interface Keyword extends Expression { + new(value: any): Expression; + toAQL(): string; + _value: string; + re: RegExp; +} +interface Identifier extends Expression { + new(value: any): Expression; + toAQL(): string; + _value: string; +} +interface FunctionCall extends Expression { + new(functionName: string, ...args: any[]): Expression; + toAQL(): string; + _re: RegExp; + _functionName: string; + _args: any[]; +} +interface ForExpression extends PartialStatement { + new(prev: PartialStatement, varname: any, expr: any): PartialStatement; + toAQL(): string; + _varname: Identifier; +} +interface FilterExpression extends PartialStatement { + new(prev: PartialStatement, expr: any): PartialStatement; + toAQL(): string; +} +interface Definitions { + new(...dfns: any[]): any; + toAQL(): string; + _dfns: any[]; +} +interface LetExpression extends PartialStatement { + new(prev: PartialStatement, ...dfns: any[]): PartialStatement; + toAQL(): string; + _prev: PartialStatement; + _dfns: Definitions; +} +interface CollectExpression extends PartialStatement { + new(prev: PartialStatement, dfns: any[], varname: any, intoExpr: any, keepNames: any[], options: any): PartialStatement; + toAQL(): string; + into(...newVarname: any[]): CollectExpression; + keep(...x: any[]): any; + _keep: Identifier[]; + options(newOpts: any): any; + _options: ObjectLiteral; + withCountInto(newVarname: any): CollectWithCountIntoExpression; +} +interface CollectWithCountIntoExpression extends PartialStatement { + new(prev: PartialStatement, dfns: any[], varname: any, options: any): PartialStatement; + toAQL(): string; + options(newOpts: any): any; +} +interface SortExpression extends PartialStatement { + new(prev: PartialStatement, ...args: any[]): PartialStatement; + toAQL(): string; + keywords: string[]; + _args: Keyword[]; +} +interface LimitExpression extends PartialStatement { + new(prev: PartialStatement, offset: any, count?: any): PartialStatement; + toAQL(): string; +} +interface ReturnExpression extends Expression { + new(prev: LetExpression, value: any, distinct: boolean): Expression; + toAQL(): string; + _prev: LetExpression; + _distinct: boolean; +} +interface RemoveExpression extends PartialStatement { + new(prev: PartialStatement, expr: any, collection: any, options: any): PartialStatement; + returnOld(x: any): ReturnExpression; + toAQL(): string; + options(newOpts: any): RemoveExpression; +} +interface UpsertExpression extends PartialStatement { + new(prev: PartialStatement, upsertExpr: any, insertExpr: any, replace: boolean, updateOrReplaceExpr: any, collection: any, options: any): PartialStatement; + returnNew(x: any): ReturnExpression; + returnOld(x: any): ReturnExpression; + toAQL(): string; + _updateOrReplace: string; + options(newOpts: any): UpsertExpression; +} +interface InsertExpression extends PartialStatement { + new(prev: PartialStatement, expr: any, collection: any, options: any): PartialStatement; + returnNew(x: any): ReturnExpression; + toAQL(): string; + options(newOpts: any): InsertExpression; +} +interface UpdateExpression extends PartialStatement { + new(prev: PartialStatement, expr: any, withExpr: any, collection: any, options: any): PartialStatement; + returnNew(x: any): ReturnExpression; + returnOld(x: any): ReturnExpression; + toAQL(): string; + options(newOpts: any): UpdateExpression; +} +interface ReplaceExpression extends PartialStatement { + new(prev: PartialStatement, expr: any, withExpr: any, collection: any, options: any): PartialStatement; + returnNew(x: any): ReturnExpression; + returnOld(x: any): ReturnExpression; + toAQL(): string; + options(newOpts: any): ReplaceExpression; +} +interface Expression extends PartialStatement { + /** + * Equality + * + * Creates an equality comparison from the given values. + * + * qb.eq(a, b): (a == b) + * OR: + * qbValue.eq(b): (a == b) + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * + * qb.ref('x').eq('y'): (x == y) + * + * + */ + eq(x: any, y?: any): BinaryOperation; + /** + * Inequality + * + * Creates an inequality comparison from the given values. + * + * qb.neq(a, b): (a != b) + * OR: + * qbValue.neq(b): (a != b) + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * + * qb.ref('x').neq('y'): (x != y) + * + */ + neq(x: any, y?: any): BinaryOperation; + /** + * Greater Than + * + * Creates a greater-than comparison from the given values. + * + * qb.gt(a, b): (a > b) + * OR + * qbValue.gt(b): (a > b) + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * + * qb.ref('x').gt('y'): (x > y) + * + * + */ + gt(x: any, y?: any): BinaryOperation; + /** + * Greater Than Or Equal To + * + * Creates a greater-than-or-equal-to comparison from the given values. + * + * qb.gte(a, b): (a >= b) + * OR + * qbValue.gte(b): (a >= b) + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * + * qb.ref('x').gte('y'): (x >= y) + * + * + */ + gte(x: any, y?: any): BinaryOperation; + /** + * Less Than + * + * Creates a less-than comparison from the given values. + * + * qb.lt(a, b): (a < b) + * OR + * qbValue.lt(b): (a < b) + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * + * qb.ref('x').lt('y'): (x < y) + * + */ + lt(x: any, y?: any): BinaryOperation; + /** + * Less Than Or Equal To + * + * Creates a less-than-or-equal-to comparison from the given values. + * + * qb.lte(a, b): (a <= b) + * OR + * qbValue.lte(b): (a <= b) + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * + * qb.ref('x').lte('y'): (x <= y) + * + */ + lte(x: any, y?: any): BinaryOperation; + /** + * Contains + * + * Creates an "in" comparison from the given values. + * + * qb.in(a, b): (a in b) + * OR: + * qbValue.in(b): (a in b) + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * qb.ref('x').in('y'): (x in y) + */ + in(...x: any[]): BinaryOperation; + /** + * Negation + * + * Creates a negation from the given value. + * + * qb.not(a) => !(a) + * OR: + * qbValue.not() => !(a) + * + * If the value is not already an value, it will be converted automatically. + * + * Examples + * + * qb.not('x') => !(x) + */ + not(x?: any): UnaryOperation; + /** + * Negative Value + * + * Creates a negative value expression from the given value. + * + * qb.neg(a) => -(a) + * OR: + * qbValue.neg() => -(a) + * + * If the value is not already an AQL value, it will be converted automatically. + * + * Examples + * + * qb.neg('x') => -(x) + */ + neg(x?: any): UnaryOperation; + /** + * Negated Contains + * + * Creates a "not in" comparison from the given values. + * + * qb.notIn(a, b): (a not in b) + * OR: + * qbValue.notIn(b): (a not in b) + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * + * qb.ref('x').notIn('y'): (x not in y) + */ + notIn(...x: any[]): BinaryOperation; + /** + * Boolean And + * + * Creates an "and" operation from the given values. + * + * qb.and(a, b) =>(a && b) + * OR: + * aqlValue.and(b) =>(a && b) + * + * If the values are not already AQL values, they will be converted automatically. + * This declare function can take any number of arguments. + * + * Examples + * + * qb.ref('x').and('y') =>(x && y) + */ + and(...x: any[]): NAryOperation; + /** + * Boolean Or + * + * Creates an "or" operation from the given values. + * + * qb.or(a, b): (a || b) + * OR: + * Value.or(b): (a || b) + * + * If the values are not already values, they will be converted automatically. + * + * This declare function can take any number of arguments. + */ + or(...x: any[]): NAryOperation; + /** + * Addition + * + * Creates an addition operation from the given values. + * + * qb.add(a, b): (a + b) + * OR: + * Value.add(b): (a + b) + * + * If the values are not already values, they will be converted automatically. + * This declare function can take any number of arguments. + * + * Alias: qb.plus(a, b) + * + * Examples + * + * qb.ref('x').plus('y'): (x + y) + */ + add(...x: any[]): NAryOperation; + plus(...x: any[]): NAryOperation; + /** + * Subtraction + * + * Creates a subtraction operation from the given values. + * + * qb.sub(a, b): (a - b) + * OR: + * Value.sub(b): (a - b) + * + * If the values are not already values, they will be converted automatically. + * This declare function can take any number of arguments. + * + * Alias: qb.minus(a, b) + * + * Examples + * + * qb.ref('x').minus('y'): (x - y) + */ + sub(...x: any[]): NAryOperation; + minus(...x: any[]): NAryOperation; + /** + * Multiplication + * + * Creates a multiplication operation from the given values. + * + * qb.mul(a, b): (a * b) + * OR: + * Value.mul(b): (a * b) + * + * If the values are not already values, they will be converted automatically. + * This declare function can take any number of arguments. + * + * Alias: qb.times(a, b) + * + * Examples + * + * qb.ref('x').times('y'): (x * y) + */ + mul(...x: any[]): NAryOperation; + times(...x: any[]): NAryOperation; + /** + * Division + * + * Creates a division operation from the given values. + * + * qb.div(a, b): (a / b) + * OR: + * Value.div(b): (a / b) + * + * If the values are not already values, they will be converted automatically. + * This declare function can take any number of arguments. + * + * Examples + * qb.ref('x').div('y'): (x / y) + */ + div(...x: any[]): NAryOperation; + /** + * Modulus + * + * Creates a modulus operation from the given values. + * + * qb.mod(a, b): (a % b) + * OR: + * Value.mod(b): (a % b) + * + * If the values are not already values, they will be converted automatically. + * This declare function can take any number of arguments. + * + * Examples + * qb.ref('x').mod('y'): (x % y) + */ + mod(...x: any[]): NAryOperation; + /** + * Range + * + * Creates a range expression from the given values. + * + * qb.range(value1, value2): value1..value2 + * + * OR: + * + * Value.range(value2): value1..value2 + * + * If the values are not already values, they will be converted automatically. + * Alias: qb.to(value1, value2) + * + * Examples + * + * qb(2).to(5): 2..5 + * + */ + range(...value: number[]): RangeExpression; + /** + * Property Access + * + * Creates a property access expression from the given values. + * + * qb.get(obj, key): obj[key] + * OR: + * Obj.get(key): obj[key] + * + * If the values are not already values, they will be converted automatically. + * + * Examples + * qb.ref('x').get('y'): x[y]` + * + */ + get(value: any): PropertyAccess; + /** + * Ternary(if / else) + * + * Creates a ternary expression from the given values. + * + * qb.if(condition, thenDo, elseDo): (condition ? thenDo: elseDo) + * OR: + * qbValue.then(thenDo).else(elseDo): (condition ? thenDo: elseDo) + * + * If the values are not already values, they will be converted automatically. + * + * Alias: qbValue.then(thenDo).otherwise(elseDo) + * + * Examples + * qb.ref('x').then('y').else('z'): (x ? y: z) + * + */ + then(value: any): ThenRet; +} +interface ThenRet { + else(y: any): TernaryOperation; + else_: TernaryOperation; + otherwise(y: any): TernaryOperation; +} +interface ForRet { + in(expr: any): ForExpression; + in_: ForRet["in"]; +} +/** + * PartialStatement + * + * In addition to the methods documented above, the query builder provides all methods of PartialStatement objects. + * Statement objects have a method toAQL() which returns their representation as a JavaScript string. + * + * Examples + * + * qb.for('doc').in('my_collection').return('doc._key').toAQL() + * // => FOR doc IN my_collection RETURN doc._key + */ +interface PartialStatement { + /** + * FOR expression IN collection + * + * PartialStatement::for(expression).in(collection): PartialStatement + * + * Examples + * + * _.for('doc').in('my_collection'): FOR doc IN my_collection + * + */ + for(varname: any): ForRet; + /** + * FILTER expression + * + * PartialStatement::filter(expression): PartialStatement + * + * Examples + * + * _.filter(qb.eq('a', 'b')): FILTER a == b + * + */ + filter(varname: any): FilterExpression; + /** + * LET varname = expression + * + * PartialStatement::let(varname, expression): PartialStatement + * + * Examples + * + * _.let('foo', 23): LET foo = 23 + * + * LET var1 = expr1, var2 = expr2, …, varn = exprn + * + * PartialStatement::let(definitions): PartialStatement + * + */ + let(varname: {}, expr: any): LetExpression; + /** + * COLLECT + * + * COLLECT WITH COUNT INTO varname + * PartialStatement::collectWithCountInto(varname): CollectExpression + * + * Examples + * + * _.collectWithCountInto('x'): COLLECT WITH COUNT INTO x COLLECT varname = expression + * PartialStatement::collect(varname, expression): CollectExpression + * + * _.collect('x', 'y'): COLLECT x = y COLLECT var1 = expr1, var2 = expr2, …, varn = exprn + * PartialStatement::collect(definitions): CollectExpression + * + * _.collect({x: 'a', y: 'b'}): COLLECT x = a, y = b WITH COUNT INTO varname + * CollectExpression::withCountInto(varname): CollectExpression + * + * _.withCountInto('x'): WITH COUNT INTO x INTO varname + * CollectExpression::into(varname): CollectExpression + * + * _.into('z'): INTO z KEEP ...vars + * CollectExpression::keep(...vars): CollectExpression + * + * _.into('z').keep('a', 'b'): INTO z KEEP a, b INTO varname = expression + * CollectExpression::into(varname, expression): CollectExpression + * + * _.into('x', 'y'): INTO x = y OPTIONS options + * CollectExpression::options(options): CollectExpression + * + * _.options('opts'): OPTIONS opts + * + */ + collect(varname: any, expr: any): CollectExpression; + /** + * COLLECT + * + * COLLECT WITH COUNT INTO varname + * PartialStatement::collectWithCountInto(varname): CollectExpression + * + * Examples + * + * _.collectWithCountInto('x'): COLLECT WITH COUNT INTO x COLLECT varname = expression + * PartialStatement::collect(varname, expression): CollectExpression + * + * _.collect('x', 'y'): COLLECT x = y COLLECT var1 = expr1, var2 = expr2, …, varn = exprn + * PartialStatement::collect(definitions): CollectExpression + * + * _.collect({x: 'a', y: 'b'}): COLLECT x = a, y = b WITH COUNT INTO varname + * CollectExpression::withCountInto(varname): CollectExpression + * + * _.withCountInto('x'): WITH COUNT INTO x INTO varname + * CollectExpression::into(varname): CollectExpression + * + * _.into('z'): INTO z KEEP ...vars + * CollectExpression::keep(...vars): CollectExpression + * + * _.into('z').keep('a', 'b'): INTO z KEEP a, b INTO varname = expression + * CollectExpression::into(varname, expression): CollectExpression + * + * _.into('x', 'y'): INTO x = y OPTIONS options + * CollectExpression::options(options): CollectExpression + * + * _.options('opts'): OPTIONS opts + * + */ + collectWithCountInto(varname: any): CollectWithCountIntoExpression; + /** + * SORT ...args + * + * PartialStatement::sort(...args): PartialStatement + * + * Examples + * + * _.sort('x', 'DESC', 'y', 'ASC'): SORT x DESC, y ASC + * + */ + sort(...args: any[]): SortExpression; + /** + * LIMIT offset, count + * + * PartialStatement::limit([offset,] count): PartialStatement + * + * Examples + * + * _.limit(20): LIMIT 20 + * + * _.limit(20, 20): LIMIT 20, 20 + * + */ + limit(offset: any, count?: any): LimitExpression; + /** + * RETURN expression + * + * PartialStatement::return(expression): ReturnExpression + * + * Examples + * + * _.return('x'): RETURN x + * _.return({x: 'x'}): RETURN {x: x} + * + */ + return(x: any): ReturnExpression; + /** + * RETURN DISTINCT expression + * + * PartialStatement::returnDistinct(expression): ReturnExpression + * + * Examples + * + * _.returnDistinct('x'): RETURN DISTINCT x + * + */ + returnDistinct(x: any): ReturnExpression; + /** + * REMOVE + * + * REMOVE expression IN collection + * PartialStatement::remove(expression).in(collection): RemoveExpression + * + * Alias: remove(expression).into(collection) + * + * Examples + * + * _.remove('x').in('y'): REMOVE x IN y LET varname = OLD RETURN varname + * RemoveExpression::returnOld(varname): ReturnExpression + * + * _.returnOld('z'): LET z = OLD RETURN z OPTIONS options + * RemoveExpression::options(options): RemoveExpression + * + * _.options('opts'): OPTIONS opts + * + */ + remove(expr: any): RemoveRet; + /** + * UPSERT + * + * UPSERT expression1 INSERT expression2 REPLACE expression3 IN collection + * PartialStatement::upsert(expression1).insert(expression2).replace(expression3).in(collection): UpsertExpression + * + * Alias: ….into(collection) + * + * Examples + * + * _.upsert('x').insert('y').replace('z').in('c'): UPSERT x INSERT y REPLACE z IN c + * + * UPSERT expression1 INSERT expression2 UPDATE expression3 IN collection + * PartialStatement::upsert(expression1).insert(expression2).update(expression3).in(collection): UpsertExpression + * + * Alias: ….into(collection) + * + * _.upsert('x').insert('y').update('z').in('c'): UPSERT x INSERT y UPDATE z IN c OPTIONS options + * UpsertExpression::options(options): UpsertExpression + * + * _.options('opts'): OPTIONS opts + * + */ + upsert(expr: any): UpsertRet; + /** + * INSERT + * + * INSERT expression INTO collection + * PartialStatement::insert(expression).into(collection): InsertExpression + * + * Alias: insert(expression).in(collection) + * + * Examples + * + * _.insert('x').into('y'): INSERT x INTO y OPTIONS options + * InsertExpression::options(options): InsertExpression + * + * _.options('opts'): OPTIONS opts LET varname = NEW RETURN varname + * InsertExpression::returnNew(varname): ReturnExpression + * + * _.returnNew('z'): LET z = NEW RETURN z + * + */ + insert(expr: any): InsertRet; + /** + * UPDATE + * + * UPDATE expression IN collection + * PartialStatement::update(expression).in(collection): UpdateExpression + * + * Alias: update(expression).into(collection) + * + * Examples + * + * _.update('x').in('y'): UPDATE x IN y + * + * UPDATE expression1 WITH expression2 IN collection + * PartialStatement::update(expression1).with(expression2).in(collection): UpdateExpression + * + * Alias: update(expression1).with(expression2).into(collection) + * + * _.update('x').with('y').in('z'): UPDATE x WITH y IN z OPTIONS options + * UpdateExpression::options(options): UpdateExpression + * + * _.options('opts'): OPTIONS opts LET varname = NEW RETURN varname + * UpdateExpression::returnNew(varname): ReturnExpression + * + * _.returnNew('z'): LET z = NEW RETURN z LET varname = OLD RETURN varname + * UpdateExpression::returnOld(varname): ReturnExpression + * + * _.returnOld('z'): LET z = OLD RETURN z + * + */ + update(expr: any): UpdateRetWithRet; + /** + * REPLACE + * + * REPLACE expression IN collection + * PartialStatement::replace(expression).in(collection): ReplaceExpression + * + * Alias: replace(expression).into(collection) + * + * Examples + * + * _.replace('x').in('y'): REPLACE x IN y REPLACE expression1 WITH expression2 IN collection + * PartialStatement::replace(expression1).with(expression2).in(collection): ReplaceExpression + * + * Alias: replace(expression1).with(expression2).into(collection) + * + * _.replace('x').with('y').in('z'): REPLACE x WITH y IN z OPTIONS options + * ReplaceExpression::options(options): ReplaceExpression + * + * _.options('opts'): OPTIONS opts LET varname = NEW RETURN varname + * ReplaceExpression::returnOld(varname): ReturnExpression + * + * _.returnNew('z'): LET z = NEW RETURN z LET varname = OLD RETURN varname + * ReplaceExpression::returnNew(varname): ReturnExpression + * + * _.returnOld('z'): LET z = OLD RETURN z + * + */ + replace(expr: any): ReplaceRetWithRet; +} +interface RemoveRet { + into(collection: any): RemoveExpression; + in: RemoveRet["into"]; + in_: RemoveRet["into"]; +} +interface UpsertRet { + insert(insertExpr: any): UpsertRetInsertRet; +} +interface UpsertRetInsertRet { + update(updateOrReplaceExpr: any): UpsertRetInsertRetUpdateRet; + replace: UpsertRetInsertRet["update"]; +} +interface UpsertRetInsertRetUpdateRet { + into(inCollection: any): UpsertExpression; + in: UpsertRetInsertRetUpdateRet["into"]; + in_: UpsertRetInsertRetUpdateRet["into"]; +} +interface InsertRet { + into(collection: any): InsertExpression; + in: InsertRet["into"]; + in_: InsertRet["into"]; +} +interface UpdateRetWithRet { + into(collection: any): UpdateExpression; + in: UpdateRetWithRet["into"]; + in_: UpdateRetWithRet["into"]; +} +interface ReplaceRetWithRet { + into(collection: any): ReplaceExpression; + in: ReplaceRetWithRet["into"]; + in_: ReplaceRetWithRet["into"]; +} +interface RemoveRet { + into(collection: any): RemoveExpression; + in: RemoveRet["into"]; + in_: RemoveRet["into"]; +} +interface UpsertRet { + insert(insertExpr: any): UpsertRetInsertRet; +} +interface UpsertRetInsertRet { + update(updateOrReplaceExpr: any): UpsertRetInsertRetUpdateRet; + replace: UpsertRetInsertRet["update"]; +} +interface UpsertRetInsertRetUpdateRet { + into(inCollection: any): UpsertExpression; + in: UpsertRetInsertRetUpdateRet["into"]; + in_: UpsertRetInsertRetUpdateRet["into"]; +} +interface InsertRet { + into(collection: any): InsertExpression; + in: InsertRet["into"]; + in_: InsertRet["into"]; +} +interface UpdateRetWithRet { + into(collection: any): UpdateExpression; + with(collection: any): UpdateRetWithRet; + in: UpdateRetWithRet["into"]; + in_: UpdateRetWithRet["into"]; +} +interface ReplaceRetWithRet { + into(collection: any): ReplaceExpression; + with(collection: any): ReplaceRetWithRet; + in: ReplaceRetWithRet["into"]; + in_: ReplaceRetWithRet["into"]; +} +declare function toArray(self: Expression, ...args: any[]): any[]; +declare function isQuotedString(str: string): boolean; +declare function wrapAQL(expr: Keyword): string; +declare function isValidNumber(number: number): boolean; +declare function castNumber(number: any): NumberLiteral; +declare function castBoolean(bool: any): BooleanLiteral; +declare function castString(str: any): SimpleReference | Identifier | RangeExpression | StringLiteral | Expression | PartialStatement | NullLiteral; +declare function castObject(obj: any): ObjectLiteral | ListLiteral | Identifier; +declare function autoCastToken(token: any): Expression | PartialStatement | NullLiteral; +/** + * AQLfunctions + * + * If raw JavaScript values are passed to statements, they will be wrapped in a matching declare function automatically. + * JavaScript strings wrapped in quotation marks will be wrapped in strings, all other JavaScript strings will be wrapped as simple references(see ref) + * and throw an Error if they are not well-formed. + */ +interface AQLfunctions extends Expression { + /** + * Boolean + * + * Wraps the given value as an Boolean literal. + * + * qb.bool(value) + * + * If the value is truthy, it will be converted to the Boolean true, otherwise it will be converted to the Boolean false. + * If the value is already an Boolean, its own value will be wrapped instead. + * + */ + bool(value: any): BooleanLiteral; + /** + * Number + * + * Wraps the given value as an Number literal. + * + * qb.num(value) + * + * If the value is not a JavaScript Number, it will be converted first. + * If the value does not represent a finite number, an Error will be thrown. + * If the value is already an Number or Integer, its own value will be wrapped instead. + * + */ + num(value: any): NumberLiteral; + /** + * Integer + * + * Wraps the given value as an Integer literal. + * + * qb.int(value) + * + * If the value is not a JavaScript Number, it will be converted first. + * If the value does not represent a finite integer, an Error will be thrown. + * If the value is already an Number or Integer, its own value will be wrapped instead. + * + */ + int(value: any): IntegerLiteral; + /** + * String + * + * Wraps the given value as an String literal. + * + * qb.str(value) + * + * If the value is not a JavaScript String, it will be converted first. + * If the value is a quoted string, it will be treated as a string literal. + * If the value is an object with a toAQL method, the result of calling that method will be wrapped instead. + * + * Examples + * + * 23 => "23" + * + * "some string" => "some string" + * + * '"some string"' => "\"some string\"" + * + */ + str(value: any): StringLiteral; + /** + * List + * + * Wraps the given value as an List(Array) literal. + * + * qb.list(value) + * + * If the value is not a JavaScript Array, an Error will be thrown. + * If the value is already an List, its own value will be wrapped instead. + * Any list elements that are not already values will be converted automatically. + * + */ + list(value: any[]): ListLiteral; + /** + * Object + * + * Wraps the given value as an Object literal. + * + * qb.obj(value) + * + * If the value is not a JavaScript Object, an Error will be thrown. + * If the value is already an Object, its own value will be wrapped instead. + * Any property values that are not already values will be converted automatically. + * Any keys that are quoted strings will be treated as string literals. + * Any keys that start with the character ":" will be treated as dynamic properties and must be well-formed simple references. + * Any other keys that need escaping will be quoted if necessary. + * If you need to pass in raw JavaScript objects that shouldn't be converted according to these rules, you can use the qb declare function directly instead. + * + * Examples + * + * qb.obj({'some.name': 'value'}): {"some.name": value} + * + * qb.obj({hello: world}): {hello: world} + * + * qb.obj({'"hello"': world}): {"hello": world} + * + * qb.obj({':dynamic': 'props'}): {[dynamic]: props} + * + * qb.obj({': invalid': 'key'}): throws an error(invalid is not a well-formed reference) + * + */ + obj(obj: object): ObjectLiteral; + /** + * Simple Reference + * + * Wraps a given value in an Simple Reference. + * + * qb.ref(value) + * + * If the value is not a JavaScript string or not a well-formed simple reference, an Error will be thrown. + * If the value is an ArangoCollection, its name property will be used instead. + * If the value is already an Simple Reference, its value is wrapped instead. + * + * Examples + * + * Valid values: + * + * foo + * + * foo.bar + * + * foo[*].bar + * + * foo.bar.QUX + * + * _foo._bar._qux + * + * foo1.bar2 + * + * `foo`.bar + * + * foo.`bar` + * + * Invalid values: + * + * 1foo + * + * föö + * + * foo bar + * + * foo[bar] + * + */ + ref(value: string): SimpleReference; + expr(value: any): RawExpression; + /** + * Ternary(if / else) + * + * Creates a ternary expression from the given values. + * + * qb.if(condition, thenDo, elseDo): (condition ? thenDo: elseDo) + * OR: + * qbValue.then(thenDo).else(elseDo): (condition ? thenDo: elseDo) + * + * If the values are not already values, they will be converted automatically. + * + * Alias: qbValue.then(thenDo).otherwise(elseDo) + * + * Examples + * qb.ref('x').then('y').else('z'): (x ? y: z) + * + */ + if(cond: any, then: any, otherwise: any): Expression | number; + /** + * declare Function Call + * + * Creates a functon call for the given name and arguments. + * + * qb.fn(name)(...args) + * + * If the values are not already values, they will be converted automatically. + * For built-in AQLfunctions, methods with the relevant declare function name are already provided by the query builder. + * + * Examples + * + * qb.fn('MY::USER::FUNC')(1, 2, 3): MY::USER::FUNC(1, 2, 3) + * + * qb.fn('hello')(): hello() + * + * qb.RANDOM(): RANDOM() + * + * qb.FLOOR(qb.div(5, 2)): FLOOR((5 / 2)) + * + */ + fn(functionName: string): (...arity: any[]) => FunctionCall; +} +type QBfunc = (obj: any) => AQLfunctions; +declare const QB: AQLfunctions & QBfunc; +export = QB; diff --git a/types/linq4js/tsconfig.json b/types/aqb/tsconfig.json similarity index 88% rename from types/linq4js/tsconfig.json rename to types/aqb/tsconfig.json index 3479566f16..44cb0d912f 100644 --- a/types/linq4js/tsconfig.json +++ b/types/aqb/tsconfig.json @@ -1,24 +1,24 @@ { - "files": [ - "index.d.ts", - "linq4js-tests.ts" - ], "compilerOptions": { + "target": "es6", "module": "commonjs", + "lib": [ + "es2015" + ], "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": true, "strictFunctionTypes": true, - "target": "es6", "baseUrl": "../", "typeRoots": [ "../" ], "types": [], - "lib": [ - "es6" - ], "noEmit": true, "forceConsistentCasingInFileNames": true - } + }, + "files": [ + "index.d.ts", + "aqb-tests.ts" + ] } \ No newline at end of file diff --git a/types/griddle-react/tslint.json b/types/aqb/tslint.json similarity index 100% rename from types/griddle-react/tslint.json rename to types/aqb/tslint.json diff --git a/types/arcgis-js-api/v3/index.d.ts b/types/arcgis-js-api/v3/index.d.ts index de4328a957..391dfb6e0a 100644 --- a/types/arcgis-js-api/v3/index.d.ts +++ b/types/arcgis-js-api/v3/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for ArcGIS API for JavaScript 3.22 +// Type definitions for ArcGIS API for JavaScript 3.23 // Project: https://developers.arcgis.com/javascript/3/ // Definitions by: Esri // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -110,7 +110,10 @@ declare module "esri" { resourceInfo?: any; /** When true, the layer's attribution is displayed on the map. */ showAttribution?: boolean; - /** By default, images are exported in MIME format, and the image is streamed to the client. */ + /** + * By default, images are exported in MIME format, and the image is streamed to the client. + * @deprecated + */ useMapImage?: boolean; /** When true, the layer will update its content based on the map's time extent. */ useMapTime?: boolean; @@ -478,6 +481,10 @@ declare module "esri" { zoomOptions?: any; } export interface ColorPickerOptions { + /** Indicates whether the widget displays collapsed. */ + collapsed?: boolean; + /** Indicates whether the widget can be collapsed. */ + collapsible?: boolean; /** The selected color. */ color: Color; /** The row size of the palette. */ @@ -1830,8 +1837,10 @@ declare module "esri" { whereFields: any; } export interface QueryTaskOptions { - /** Specify the geodatabase version to display. */ + /** The geodatabase version to display. */ gdbVersion?: string; + /** The dynamic layer or table source. */ + source?: LayerSource; } export interface RasterLayerOptions { /** Sets the layer's draw mode. */ @@ -2150,9 +2159,15 @@ declare module "esri" { export interface SymbolStylerOptions { /** Added at v. */ portal?: string | any; - /** Self response of Portal used as symbol provider. */ + /** + * Self response of Portal used as symbol provider. + * @deprecated + */ portalSelf?: any; - /** URL to Portal used as symbol provider. */ + /** + * URL to Portal used as symbol provider. + * @deprecated + */ portalUrl?: string; } export interface TemplatePickerOptions { @@ -3852,6 +3867,10 @@ declare module "esri/dijit/ColorPicker" { /** A widget to assist choosing a color from a color palette. */ class ColorPicker { + /** Indicates whether the widget displays collapsed. */ + collapsed: boolean; + /** Indicates whether the widget is collapsible. */ + collapsible: boolean; /** The selected color. */ color: Color; /** The set of available color options. */ @@ -3921,7 +3940,10 @@ declare module "esri/dijit/Directions" { * @param srcNodeRef Reference or id of a HTML element that this dijit is rendered into. */ constructor(options: esri.DirectionsOptions, srcNodeRef: Node | string); - /** Deprecated at v3.13. */ + /** + * Deprecated at v3.13. + * @deprecated + */ activate(): void; /** * Add a stop to the directions widget at the specified index location. @@ -3942,7 +3964,10 @@ declare module "esri/dijit/Directions" { centerAtSegmentStart(index: number): void; /** Remove the route directions from the directions list. */ clearDirections(): void; - /** Deprecated at v3.13. */ + /** + * Deprecated at v3.13. + * @deprecated + */ deactivate(): void; /** Destroy the Directions widget. */ destroy(): void; @@ -4106,7 +4131,10 @@ declare module "esri/dijit/FeatureTable" { featureLayer: FeatureLayer; /** An array of objects representing field information. */ fieldInfos: any[]; - /** Reference to the dGrid. */ + /** + * Reference to the dGrid. + * @deprecated + */ grid: any; /** Reference to the 'Options' drop-down menu. */ gridMenu: any; @@ -8158,9 +8186,9 @@ declare module "esri/geometry/geometryEngine" { */ nearestVertices(geometry: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): any[]; /** - * Creates offset version of the input geometry. + * The offset operation creates a geometry that is a constant planar distance from an input polyline or polygon. * @param geometry The geometries to offset. - * @param offsetDistance The offset distance for the Geometries. + * @param offsetDistance The planar distance to offset from the input geometry. * @param offsetUnit Measurement unit for the offset. * @param joinType The join type. * @param bevelRatio Applicable to MITER, bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is beveled. @@ -8401,9 +8429,9 @@ declare module "esri/geometry/geometryEngineAsync" { */ nearestVertices(geometry: Geometry, inputPoint: Point, searchRadius: number, maxVertexCountToReturn: number): any; /** - * Creates offset version of the input geometry. + * The offset operation creates a geometry that is a constant planar distance from an input polyline or polygon. * @param geometry The geometries to offset. - * @param offsetDistance The offset distance for the Geometries. + * @param offsetDistance The planar distance to offset from the input geometry. * @param offsetUnit Measurement unit for the offset. * @param joinType The join type. * @param bevelRatio Applicable to MITER, bevelRatio is multiplied by the offset distance and the result determines how far a mitered offset intersection can be located before it is beveled. @@ -8583,6 +8611,7 @@ declare module "esri/geometry/screenUtils" { * @param width The current width of the map in screen units. * @param height The current height of the map in screen units. * @param screenPoint The screenPoint to convert from screen to map units. + * @deprecated */ toMapPoint(extent: Extent, width: number, height: number, screenPoint: ScreenPoint): Point; /** @@ -8599,6 +8628,7 @@ declare module "esri/geometry/screenUtils" { * @param width The current width of the map in screen units. * @param height The current height of the map in screen units. * @param mapPoint The point to convert from map to screen units. + * @deprecated */ toScreenPoint(extent: Extent, width: number, height: number, mapPoint: Point): ScreenPoint; }; @@ -8691,14 +8721,14 @@ declare module "esri/graphic" { clone(): Graphic; /** Draws the graphic. */ draw(): Graphic; - /** - * Returns the graphics summarized by the given aggregate graphic in a clustering or feature reduction visualization. - * @param aggregateGraphic A graphic representing the aggregation (or reduction) of several individual graphics in a layer. - */ - getChildGraphics(aggregateGraphic: Graphic): Graphic[]; + /** Returns the graphics summarized by an aggregate graphic in a clustering or feature reduction visualization. */ + getChildGraphics(): Graphic[]; /** Returns the content string based on attributes and infoTemplate values. */ getContent(): string; - /** Returns the dojo/gfx/shape.Shape of the Esri graphic. */ + /** + * Returns the dojo/gfx/shape.Shape of the Esri graphic. + * @deprecated + */ getDojoShape(): any; /** Returns the info template associated with the graphic. */ getInfoTemplate(): InfoTemplate; @@ -8880,7 +8910,10 @@ declare module "esri/layers/ArcGISDynamicMapServiceLayer" { timeInfo: TimeInfo; /** Default units of the layer as defined by the service. */ units: string; - /** When true, the image is saved to the server, and a JSON formatted response is sent to the client with the URL location of the image. */ + /** + * When true, the image is saved to the server, and a JSON formatted response is sent to the client with the URL location of the image. + * @deprecated + */ useMapImage: boolean; /** The version of ArcGIS Server where the map service is published. */ version: number; @@ -10836,7 +10869,10 @@ declare module "esri/layers/RasterDataSource" { declare module "esri/layers/RasterFunction" { /** Specifies the processing to be done to the image service. */ class RasterFunction { - /** Deprecated at v3.10, use functionArguments instead. */ + /** + * Deprecated at v3.10, use functionArguments instead. + * @deprecated + */ arguments: any; /** The arguments for the raster function. */ functionArguments: any; @@ -12326,7 +12362,10 @@ declare module "esri/opsdashboard/ExtensionBase" { portalHelperServices: any; /** Read-only: The URL to the ArcGIS.com site or in-house portal that you are currently signed in to. */ portalUrl: string; - /** Get the collection of data sources from the host application. */ + /** + * Get the collection of data sources from the host application. + * @deprecated + */ getDataSourceProxies(): any; /** * Get the data source corresponding to the data source id from the host application. @@ -12954,7 +12993,10 @@ declare module "esri/renderers/ClassBreaksRenderer" { attributeField: string; /** To symbolize polygon features with graduated symbols, use backgroundFillSymbol to specify a simple fill symbol to represent polygon features, and use marker symbols of varying sizes in class breaks to indicate the quantity. */ backgroundFillSymbol: FillSymbol; - /** Deprecated at v2.0, use infos instead. */ + /** + * Deprecated at v2.0, use infos instead. + * @deprecated + */ breaks: any[]; /** The classification method used to generate class breaks. */ classificationMethod: string; @@ -13136,13 +13178,25 @@ declare module "esri/renderers/Renderer" { /** The base class for the renderers - SimpleRenderer, ClassBreaksRenderer, UniqueValueRenderer, DotDensityRenderer, ScaleDependentRenderer, TemporalRenderer, HeatmapRenderer, and VectorFieldRenderer used with a GraphicsLayer and FeatureLayer. */ class Renderer { - /** Deprecated. */ + /** + * Deprecated. + * @deprecated + */ colorInfo: any; - /** Deprecated. */ + /** + * Deprecated. + * @deprecated + */ opacityInfo: any; - /** Deprecated. */ + /** + * Deprecated. + * @deprecated + */ rotationInfo: any; - /** Deprecated. */ + /** + * Deprecated. + * @deprecated + */ sizeInfo: any; /** This property allows you to define how to render values in a layer. */ visualVariables: any[]; @@ -13185,21 +13239,25 @@ declare module "esri/renderers/Renderer" { /** * Deprecated. * @param info An info object that defines the color. + * @deprecated */ setColorInfo(info: any): Renderer; /** * Deprecated. * @param info The info parameter is an object with the same properties as opacityInfo. + * @deprecated */ setOpacityInfo(info: any): Renderer; /** * Deprecated. * @param info An object with the same properties as rotationInfo. + * @deprecated */ setRotationInfo(info: any): Renderer; /** * Deprecated. * @param info An object with the same properties as sizeInfo. + * @deprecated */ setSizeInfo(info: any): Renderer; /** @@ -13417,7 +13475,10 @@ declare module "esri/renderers/UniqueValueRenderer" { valueExpression: string; /** The title identifying and describing the associated Arcade expression as defined in the valueExpression property. */ valueExpressionTitle: string; - /** Deprecated at v2.0, use infos instead. */ + /** + * Deprecated at v2.0, use infos instead. + * @deprecated + */ values: string[]; /** * Creates a new UniqueValueRenderer object. @@ -13588,6 +13649,20 @@ declare module "esri/request" { export = request; } +declare module "esri/support/expressionUtils" { + /** A utility module that allows you to enable geometry operations referenced inside Arcade expressions. */ + var expressionUtils: { + /** Loads all geometry operations for use in any Arcade expression within the given application. */ + enableGeometryOperations(): any; + /** + * Indicates if the given Arcade expression contains one or more geometry operations. + * @param expression The Arcade expression to evaluate for the presence of one or more geometry operations. + */ + hasGeometryOperations(expression: string): boolean; + }; + export = expressionUtils; +} + declare module "esri/symbols/CartographicLineSymbol" { import SimpleLineSymbol = require("esri/symbols/SimpleLineSymbol"); import Color = require("esri/Color"); @@ -13718,7 +13793,10 @@ declare module "esri/symbols/Font" { size: number; /** Text style. */ style: string; - /** Text variant. */ + /** + * Text variant (deprecated). + * @deprecated + */ variant: string; /** Text weight. */ weight: string; @@ -13759,8 +13837,9 @@ declare module "esri/symbols/Font" { */ setStyle(style: string): Font; /** - * Sets the font variant. + * Sets the font variant (deprecated). * @param variant Font variant. + * @deprecated */ setVariant(variant: string): Font; /** @@ -14018,6 +14097,8 @@ declare module "esri/symbols/SimpleLineSymbol" { static STYLE_SHORTDOT: any; /** The line is solid. */ static STYLE_SOLID: any; + /** Indicates marker symbols present at the beginning and/or end of a SimpleLineSymbol. */ + marker: any; /** The line style. */ style: string; /** Creates a new empty SimpleLineSymbol object. */ @@ -14034,6 +14115,11 @@ declare module "esri/symbols/SimpleLineSymbol" { * @param json JSON object representing the SimpleLineSymbol. */ constructor(json: Object); + /** + * Sets marker symbols at the beginning and/or end of a SimpleLineSymbol. + * @param options The options defining the marker style and placement. + */ + setMarker(options: any): void; /** * Sets the line symbol style. * @param style Line style. @@ -14143,11 +14229,17 @@ declare module "esri/symbols/TextSymbol" { static DECORATION_OVERLINE: any; /** Text is underlined. */ static DECORATION_UNDERLINE: any; - /** The text alignment in relation to the point. */ + /** + * The text alignment in relation to the point. + * @deprecated + */ align: string; /** Text angle. */ angle: number; - /** The decoration on the text. */ + /** + * The decoration on the text. + * @deprecated + */ decoration: string; /** Font for displaying text. */ font: Font; @@ -14189,6 +14281,7 @@ declare module "esri/symbols/TextSymbol" { /** * Sets the alignment of the text. * @param align The text alignment. + * @deprecated */ setAlign(align: string): TextSymbol; /** @@ -14199,6 +14292,7 @@ declare module "esri/symbols/TextSymbol" { /** * Sets the decoration for the text. * @param decoration The decoration on the text. + * @deprecated */ setDecoration(decoration: string): TextSymbol; /** @@ -15038,7 +15132,7 @@ declare module "esri/tasks/GeometryService" { */ lengths(lengthsParameter: LengthsParameters, callback?: Function, errback?: Function): any; /** - * Constructs the offset of the input geometries. + * Constructs the offset of the input geometries based on a planar distance. * @param params Set the geometries to offset, distance and units. * @param callback The function to call when the method has completed. * @param errback An error object is returned if an error occurs during task execution. @@ -15150,7 +15244,10 @@ declare module "esri/tasks/Geoprocessor" { /** Represents a GP Task resource exposed by the ArcGIS Server REST API. */ class Geoprocessor { - /** Deprecated at v2.0, use outSpatialReference instead. */ + /** + * Deprecated at v2.0, use outSpatialReference instead. + * @deprecated + */ outputSpatialReference: SpatialReference; /** The spatial reference of the output geometries. */ outSpatialReference: SpatialReference; @@ -15219,6 +15316,7 @@ declare module "esri/tasks/Geoprocessor" { /** * Deprecated at v2.0, use setOutSpatialReference instead. * @param spatialReference The well-known ID of a spatial reference. + * @deprecated */ setOutputSpatialReference(spatialReference: SpatialReference): void; /** @@ -15680,7 +15778,7 @@ declare module "esri/tasks/OffsetParameters" { bevelRatio: number; /** The array of geometries to be offset. */ geometries: Geometry[]; - /** Specifies the distance for constructing an offset based on the input geometries. */ + /** Specifies the planar distance for constructing an offset based on the input geometries. */ offsetDistance: number; /** Options that determine how the ends intersect. */ offsetHow: string; @@ -15806,12 +15904,17 @@ declare module "esri/tasks/ProjectParameters" { declare module "esri/tasks/QueryTask" { import esri = require("esri"); + import LayerSource = require("esri/layers/LayerSource"); import Query = require("esri/tasks/query"); import RelationshipQuery = require("esri/tasks/RelationshipQuery"); import FeatureSet = require("esri/tasks/FeatureSet"); /** Executes a query operation on a layer resource of a map service exposed by the ArcGIS Server REST API. */ class QueryTask { + /** The geodatabase version to display. */ + gdbVersion: string; + /** The dynamic layer or table source. */ + source: LayerSource; /** URL to the ArcGIS Server REST resource that represents a map service layer. */ url: string; /** diff --git a/types/archiver/archiver-tests.ts b/types/archiver/archiver-tests.ts index 536afd68c9..fc2e481330 100644 --- a/types/archiver/archiver-tests.ts +++ b/types/archiver/archiver-tests.ts @@ -30,12 +30,16 @@ archiver.abort(); archiver.pipe(writeStream); archiver.append(readStream, { name: 'archiver.d.ts' }); +archiver.append(readStream, { date: '05/05/1991' }); +archiver.append(readStream, { date: new Date() }); +archiver.append(readStream, { mode: 1 }); +archiver.append(readStream, { mode: 1, stats: new fs.Stats() }); archiver.append(readStream, {name: 'archiver.d.ts'}) .append(readStream, {name: 'archiver.d.ts'}); archiver.directory('./path', './someOtherPath'); -archiver.directory('./', "", {}); +archiver.directory('./', '', {}); archiver.directory('./', false, { name: 'test' }); archiver.directory('./', false, (entry: Archiver.EntryData) => { entry.name = "foobar"; diff --git a/types/archiver/index.d.ts b/types/archiver/index.d.ts index 8cf6eb1e92..df15f9ff65 100644 --- a/types/archiver/index.d.ts +++ b/types/archiver/index.d.ts @@ -1,8 +1,9 @@ -// Type definitions for archiver 2.0 +// Type definitions for archiver 2.1 // Project: https://github.com/archiverjs/node-archiver // Definitions by: Esri , Dolan Miu , Crevil // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +import * as fs from 'fs'; import * as stream from 'stream'; import * as glob from 'glob'; import { ZlibOptions } from 'zlib'; @@ -18,7 +19,9 @@ declare namespace archiver { interface EntryData { name?: string; prefix?: string; - stats?: string; + stats?: fs.Stats; + date?: Date | string; + mode?: number; } /** A function that lets you either opt out of including an entry (by returning false), or modify the contents of an entry as it is added (by returning an EntryData) */ diff --git a/types/artyom.js/artyom.js-tests.ts b/types/artyom.js/artyom.js-tests.ts deleted file mode 100644 index d301c9a6f4..0000000000 --- a/types/artyom.js/artyom.js-tests.ts +++ /dev/null @@ -1,32 +0,0 @@ -import artyomjs = require('artyom.js'); - -// Get an unique ArtyomJS instance -const artyom = artyomjs.ArtyomBuilder.getInstance(); - -// Add a command (not smart) -artyom.addCommands({ - description: 'Test command', - indexes: ['hello', 'hi'], - action: (i: number) => { - console.log('hello action'); - } -}); - -// Add a smart command -artyom.addCommands({ - description: 'Test command 2', - smart: true, - indexes: ['test *'], - action: (i: number, wildcard: string) => { - console.log('wildcard: ', wildcard); - } -}); - -// Get the browser voices -artyom.getVoices(); - -// Get all supported languages for Artyom -artyom.getLanguage(); - -// Get the artyom.js version -artyom.getVersion(); diff --git a/types/artyom.js/index.d.ts b/types/artyom.js/index.d.ts deleted file mode 100644 index 76479b9631..0000000000 --- a/types/artyom.js/index.d.ts +++ /dev/null @@ -1,473 +0,0 @@ -// Type definitions for artyom.js 1.0 -// Project: https://github.com/sdkcarlos/artyom.js -// Definitions by: Sema García (José Manuel García) -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/** - * Extension of Window interface - */ -interface ArtyomWindow extends Window { - webkitSpeechRecognition: any; - SpeechRecognition: any; - SpeechSynthesisUtterance: any; -} - -interface SpeechRecognition extends EventTarget { - grammars: SpeechGrammarList; - lang: string; - continuous: boolean; - interimResults: boolean; - maxAlternatives: number; - serviceURI: string; - start(): void; - stop(): void; - abort(): void; - onaudiostart(ev: Event): any; - onsoundstart(ev: Event): any; - onspeechstart(ev: Event): any; - onspeechend(ev: Event): any; - onsoundend(ev: Event): any; - onresult(ev: SpeechRecognitionEvent): any; - onnomatch(ev: SpeechRecognitionEvent): any; - onerror(ev: SpeechRecognitionError): any; - onstart(ev: Event): any; - onend(ev: Event): any; -} - -interface SpeechRecognitionStatic { - prototype: SpeechRecognition; - new (): SpeechRecognition; -} - -declare var SpeechRecognition: SpeechRecognitionStatic; -declare var webkitSpeechRecognition: SpeechRecognitionStatic; - -interface SpeechRecognitionError extends Event { - error: string; - message: string; -} - -interface SpeechRecognitionAlternative { - transcript: string; - confidence: number; -} - -interface SpeechRecognitionResult { - length: number; - item(index: number): SpeechRecognitionAlternative; - [index: number]: SpeechRecognitionAlternative; - isFinal: boolean; -} - -interface SpeechRecognitionResultList { - length: number; - item(index: number): SpeechRecognitionResult; - [index: number]: SpeechRecognitionResult; -} - -interface SpeechRecognitionEvent extends Event { - resultIndex: number; - results: SpeechRecognitionResultList; - interpretation: any; - emma: Document; -} - -interface SpeechGrammar { - src: string; - weight: number; -} - -interface SpeechGrammarStatic { - prototype: SpeechGrammar; - new (): SpeechGrammar; -} - -declare var SpeechGrammar: SpeechGrammarStatic; -declare var webkitSpeechGrammar: SpeechGrammarStatic; - -interface SpeechGrammarList { - length: number; - item(index: number): SpeechGrammar; - [index: number]: SpeechGrammar; - addFromURI(src: string, weight: number): void; - addFromString(string: string, weight: number): void; -} - -interface SpeechGrammarListStatic { - prototype: SpeechGrammarList; - new (): SpeechGrammarList; -} - -declare var SpeechGrammarList: SpeechGrammarListStatic; -declare var webkitSpeechGrammarList: SpeechGrammarListStatic; - -interface SpeechSynthesis extends EventTarget { - pending: boolean; - speaking: boolean; - paused: boolean; - - onvoiceschanged(ev: Event): any; - speak(utterance: SpeechSynthesisUtterance): void; - cancel(): void; - pause(): void; - resume(): void; - getVoices(): SpeechSynthesisVoice[]; -} - -interface SpeechSynthesisGetter { - speechSynthesis: SpeechSynthesis; -} - -declare var speechSynthesis: SpeechSynthesis; - -interface SpeechSynthesisUtterance extends EventTarget { - text: string; - lang: string; - voice: SpeechSynthesisVoice; - volume: number; - rate: number; - pitch: number; - - onstart(ev: SpeechSynthesisEvent): any; - onend(ev: SpeechSynthesisEvent): any; - onerror(ev: SpeechSynthesisErrorEvent): any; - onpause(ev: SpeechSynthesisEvent): any; - onresume(ev: SpeechSynthesisEvent): any; - onmark(ev: SpeechSynthesisEvent): any; - onboundary(ev: SpeechSynthesisEvent): any; -} - -interface SpeechSynthesisUtteranceStatic { - prototype: SpeechSynthesisUtterance; - new (text?: string): SpeechSynthesisUtterance; -} - -declare var SpeechSynthesisUtterance: SpeechSynthesisUtteranceStatic; - -interface SpeechSynthesisEvent extends Event { - utterance: SpeechSynthesisUtterance; - charIndex: number; - elapsedTime: number; - name: string; -} - -interface SpeechSynthesisErrorEvent extends SpeechSynthesisEvent { - error: string; -} - -interface SpeechSynthesisVoice { - voiceURI: string; - name: string; - lang: string; - localService: boolean; - default: boolean; -} - -declare namespace Artyom { - interface ArtyomDevice { - isChrome(): boolean; - isMobile(): boolean; - } - - interface ArtyomBrowserVoiceObject { - default: boolean; - lang: string; - localService: false; - name: string; - voiceURI: string; - } - - interface ArtyomConfigProperties { - /** Set the default language of artyom with this property */ - lang?: string; - recognizing?: boolean; - /** Choose if should listen one command and then stops, or listening forever */ - continuous?: boolean; - /** Moderates the speed with which Artyom talks (0 ~ 1) */ - speed?: number; - /** Adjust the volume of the voice of artyom */ - volume?: number; - /** If listen is equal to true the voice recognition will be started otherwise this property can be ignored */ - listen: boolean; - /** Recognition mode: normal, quick, remote */ - mode?: string; - /** Displays all the grammars recognized in the console */ - debug: boolean; - helpers?: { - redirectRecognizedTextOutput: any; - remoteProcessorHandler: any; - lastSay: any; - }; - /** Set a keyword that allows your command to be executed immediately when you say this word (Useful in noisy environments) */ - executionKeyword?: string; - /** Set a keyword that allows to enable the command recognition automatically if this word is recognized while artyom is paused (artyom.dontObey) */ - obeyKeyword?: string; - speaking?: boolean; - obeying?: boolean; - soundex?: boolean; - } - - interface ArtyomCommand { - /** Triggers of the command */ - indexes: string[]; - /** Logic to execute when the command is triggered */ - action(i: number, wildcard?: string, full?: string): void; - /** Description of the command */ - description?: string; - /** Flag to specify is a command is either normal or smart */ - smart?: boolean; - } - - interface ArtyomFlags { - restartRecognition: boolean; - } - - interface ArtyomRecognizer { - lang: string; - continuous: boolean; - interimResults: boolean; - start(): void; - stop(): void; - onstart(): void; - onresult(event: any): void; - onerror(event: any): void; - onend(): void; - } - - interface ArtyomJS { - /** - * Contains some basic information that artyom needs to know as the type of device and browser - * @see http://ourcodeworld.com/projects/projects-documentation/6/read-doc/artyom-device/artyom-js - */ - device: ArtyomDevice; - - /** - * Object which provides the speech interface, and set some of its attributes and event handlers - */ - artyomWSR: ArtyomRecognizer; - - /** - * Artyom can return inmediately the voices available in your browser. - * @see http://ourcodeworld.com/projects/projects-documentation/14/read-doc/artyom-getvoices/artyom-js - */ - getVoices(): SpeechSynthesisVoice[]; - - /** - * Returns an array with all the available commands for artyom. - * @see http://ourcodeworld.com/projects/projects-documentation/10/read-doc/artyom-getavailablecommands/artyom-js - */ - getAvailableCommands(): ArtyomCommand[]; - - /** - * Set up artyom for the application. This function will set the default language used by artyom - * or notice the user if artyom is not supported in the actual browser. - * @see http://ourcodeworld.com/projects/projects-documentation/15/read-doc/artyom-initialize/artyom-js - */ - initialize(config: ArtyomConfigProperties): boolean; - - /** - * Force artyom to stop listen even if is in continuos mode. - * @see http://ourcodeworld.com/projects/projects-documentation/9/read-doc/artyom-fatality/artyom-js - */ - fatality(): boolean; - - /** - * Add dinamically commands to artyom using. You can even add commands while artyom is active. - * @see http://ourcodeworld.com/projects/projects-documentation/4/read-doc/artyom-addcommands/artyom-js - */ - addCommands(newCommand: ArtyomCommand | ArtyomCommand[]): boolean; - - /** - * Remove the commands of artyom with indexes that matches with the given text. - * @see http://ourcodeworld.com/projects/projects-documentation/19/read-doc/artyom-removecommands/artyom-js - */ - removeCommands(identifier: string): number[]; - - /** - * Removes all the added commands of artyom. - * @see http://ourcodeworld.com/projects/projects-documentation/7/read-doc/artyom-emptycommands/artyom-js - */ - emptyCommands(): ArtyomCommand[]; - - /** - * Stops the actual and pendings messages that artyom have to say. - * @see http://ourcodeworld.com/projects/projects-documentation/23/read-doc/artyom-shutup/artyom-js - */ - shutUp(): void; - - /** - * Returns an object with the actual properties of artyom. - * @see http://ourcodeworld.com/projects/projects-documentation/12/read-doc/artyom-getproperties/artyom-js - */ - getProperties(): ArtyomConfigProperties; - - /** - * Create a listener when an artyom action is called. - * @see http://ourcodeworld.com/projects/projects-documentation/24/read-doc/artyom-when/artyom-js - */ - when(event: any, action: any): any; - - /** - * Returns the code language of artyom according to initialize function. - * @see http://ourcodeworld.com/projects/projects-documentation/11/read-doc/artyom-getlanguage/artyom-js - * @returns Language - */ - getLanguage(): string; - - /** - * Talks a text according to the given parameters (private function). - * @param text Text to be spoken - * @param actualChunk Number of chunk of the - */ - artyomTalk(text: any, actualChunk: any, totalChunks: any, callbacks: any): any; - - /** - * Splits a string into an array of strings with a limited size (chunk_length). - * @param input text to split into chunks - * @param chunk_length limit of characters in every chunk - */ - splitStringByChunks(input: any, chunk_length: any): string[]; - - /** - * Process the given text into chunks and execute the private function artyom_talk. - * @param message Text to be spoken - * @see http://ourcodeworld.com/projects/projects-documentation/20/read-doc/artyom-say/artyom-js - */ - say(message: any, callbacks: any): void; - - /** - * Repeats the last sentence that artyom said. Useful in noisy environments. - * @param returnObject If set to true, an object with the text and the timestamp when was executed will be returned. - * @see http://ourcodeworld.com/projects/projects-documentation/25/read-doc/artyom-repeatlastsay/artyom-js - */ - repeatLastSay(returnObject: any): void; - - /** - * Verify if the browser supports speechSynthesis. - * @see http://ourcodeworld.com/projects/projects-documentation/40/read-doc/artyom-speechsupported/artyom-js - */ - speechSupported(): boolean; - - /** - * Verify if the browser supports webkitSpeechRecognition. - * @see http://ourcodeworld.com/projects/projects-documentation/39/read-doc/artyom-recognizingsupported/artyom-js - */ - recognizingSupported(): boolean; - - /** - * Simulate a voice command via JS. - * @see http://ourcodeworld.com/projects/projects-documentation/22/read-doc/artyom-simulateinstruction/artyom-js - */ - simulateInstruction(sentence: string): boolean; - - /** - * Returns an object with data of the matched element. - * @returns . There is a result field when the function should return a boolean value. - */ - artyomExecute(voiceCommand: string): any; - - /** - * Displays a message in the console if the artyom propery DEBUG is set to true. - * @param error The error to be debugged - * @param traceLevel Error level: { error | warn | info } - * @see http://ourcodeworld.com/projects/projects-documentation/38/read-doc/artyom-debug/artyom-js - */ - debug(stringEvent: string, traceLevel: string): void; - - /** - * Allows to retrieve the recognized spoken text of artyom and do something with it everytime something is recognized. - */ - redirectRecognizedTextOutput(action: () => void): boolean; - - /** - * Says a random quote and returns it's object. - */ - sayRandom(data: any): any; - - /** - * Artyom provide an easy way to create a dictation for your user. Just create an instance and start and stop when you want. - */ - newDictation(settings: any): any; - - /** - * A voice prompt will be executed. - */ - newPrompt(config: any): any; - - /** - * Artyom awaits for orders when this function is executed. If artyom gets a first parameter the instance will be stopped. - */ - artyomHey(): any; - - /** - * This function will return the webkitSpeechRecognition object used by artyom retrieve it only to debug on it or get some - * values, do not make changes directly. - */ - getNativeApi(): any; - - /** - * This function returns a boolean according to the SpeechRecognition status if artyom is listening, will return true. - * Note: This is not a feature of SpeechRecognition, therefore this value hangs on the fiability of the onStart and onEnd - * events of the SpeechRecognition - */ - isRecognizing(): boolean; - - /** - * This function returns a boolean according to the speechSynthesis status if artyom is speaking, will return true. - * Note: This is not a feature of speechSynthesis, therefore this value hangs on the fiability of the onStart and onEnd - * events of the speechSynthesis. - */ - isSpeaking(): boolean; - - /** - * The SpeechSynthesisUtterance objects are stored in the artyom_garbage_collector variable to prevent the wrong behaviour - * of artyom.say. Use this method to clear all spoken SpeechSynthesisUtterance unused objects. - */ - clearGarbageCollection(): any; - - /** - * Returns the SpeechSynthesisUtterance garbageobjects. - */ - getGarbageCollection(): any; - - /** - * Pause the processing of commands. Artyom still listening in the background and it can be resumed after a couple of seconds. - */ - dontObey(): any; - - /** - * Allow artyom to obey commands again. - */ - obey(): any; - - /** - * A boolean to check if artyom is obeying commands or not. - */ - isObeying(): boolean; - - /** - * Process the recognized text if artyom is active in remote mode. - */ - remoteProcessorService(action: any): any; - - /** - * Returns a string with the actual version of Artyom script. - */ - getVersion(): string; - - /** - * Add commands like an artisan. If you use artyom for simple - * tasks then probably you don't like to write a lot to achieve it. - * Use the artisan syntax to write less, but with the same accuracy. - * @disclaimer Not a promise-based implementation, just syntax. - */ - on(indexes: any, smart: any): any; - } - - class ArtyomBuilder { - static getInstance(): ArtyomJS; - } -} - -export = Artyom; -export as namespace Artyom; diff --git a/types/artyom.js/tslint.json b/types/artyom.js/tslint.json deleted file mode 100644 index 5d72d122bf..0000000000 --- a/types/artyom.js/tslint.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - // TODOs - "export-just-namespace": false, - "no-unnecessary-class": false - } -} diff --git a/types/assertion-error/assertion-error-tests.ts b/types/assertion-error/assertion-error-tests.ts deleted file mode 100644 index 96eb520f1c..0000000000 --- a/types/assertion-error/assertion-error-tests.ts +++ /dev/null @@ -1,14 +0,0 @@ - -import AssertionError = require('assertion-error'); - -var e: AssertionError; -var str: string; - -function foo () { - -} - -e = new AssertionError(str); -e = new AssertionError(str, {a:1, b:2}); -e = new AssertionError(str, {a:1, b:2}, foo); - diff --git a/types/assertion-error/index.d.ts b/types/assertion-error/index.d.ts deleted file mode 100644 index 8663df799d..0000000000 --- a/types/assertion-error/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -// Type definitions for assertion-error 1.0.0 -// Project: https://github.com/chaijs/assertion-error -// Definitions by: Bart van der Schoor -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - -declare class AssertionError implements Error { - constructor(message: string, props?: any, ssf?: Function); - name: string; - message: string; - showDiff: boolean; - stack: string; -} -export = AssertionError; diff --git a/types/async-retry/async-retry-tests.ts b/types/async-retry/async-retry-tests.ts new file mode 100644 index 0000000000..29c90b36c8 --- /dev/null +++ b/types/async-retry/async-retry-tests.ts @@ -0,0 +1,20 @@ +import { Options, RetryFunction, retry } from 'async-retry'; + +const o: Options = { + retries: 1, + factor: 2, + minTimeout: 3, + maxTimeout: 4, + randomize: true, + onRetry: (e: Error) => 42 +}; + +retry( + bail => 'hello', + { retries: 3 } +); + +retry( + bail => Promise.resolve(42), + { retries: 3 } +); diff --git a/types/async-retry/index.d.ts b/types/async-retry/index.d.ts new file mode 100644 index 0000000000..38d0d8aeec --- /dev/null +++ b/types/async-retry/index.d.ts @@ -0,0 +1,17 @@ +// Type definitions for async-retry 1.1 +// Project: https://github.com/zeit/async-retry#readme +// Definitions by: Albert Wu +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +export function retry(fn: RetryFunction, opts: Options): Promise; + +export interface Options { + retries?: number; + factor?: number; + minTimeout?: number; + maxTimeout?: number; + randomize?: boolean; + onRetry?: (e: Error) => any; +} + +export type RetryFunction = (bail: (e: Error) => A, attempt: number) => A|Promise; diff --git a/types/async-retry/tsconfig.json b/types/async-retry/tsconfig.json new file mode 100644 index 0000000000..8bdf98656d --- /dev/null +++ b/types/async-retry/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true, + "strictFunctionTypes": true + }, + "files": [ + "index.d.ts", + "async-retry-tests.ts" + ] +} diff --git a/types/confirmdialog/tslint.json b/types/async-retry/tslint.json similarity index 100% rename from types/confirmdialog/tslint.json rename to types/async-retry/tslint.json diff --git a/types/async/index.d.ts b/types/async/index.d.ts index 604e2c0525..17fecb467b 100644 --- a/types/async/index.d.ts +++ b/types/async/index.d.ts @@ -169,6 +169,8 @@ export const allLimit: typeof everyLimit; export function concat(arr: T[] | IterableIterator, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; export function concat(arr: Dictionary, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export function concatLimit(arr: T[] | IterableIterator, limit: number, iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; +export function concatLimit(arr: Dictionary, limit: number,iterator: AsyncResultIterator, callback?: AsyncResultArrayCallback): void; export const concatSeries: typeof concat; // Control Flow diff --git a/types/asyncblock/asyncblock-tests.ts b/types/asyncblock/asyncblock-tests.ts deleted file mode 100644 index d93c9fc07a..0000000000 --- a/types/asyncblock/asyncblock-tests.ts +++ /dev/null @@ -1,189 +0,0 @@ - -/// - -import asyncblock = require('asyncblock'); -import fs = require('fs'); - - -// Sleeping in series -asyncblock((flow: asyncblock.IFlow) => { - console.time('time'); - - setTimeout(flow.add(), 1000); - flow.wait(); //Wait for the first setTimeout to finish - - setTimeout(flow.add(), 2000); - flow.wait(); //Wait for the second setTimeout to finish - - console.timeEnd('time'); //3 seconds -}); - -// Trapping results -asyncblock((flow) => { - var path1 = '', path2 = ''; - //Start two parallel file reads - fs.readFile(path1, 'utf8', flow.set('contents1')); - fs.readFile(path2, 'utf8', flow.set('contents2')); - - //Print the concatenation of the results when both reads are finished - console.log(flow.get('contents1') + flow.get('contents2')); - - var paths: string[] = []; - //Wait for a large number of tasks - for(var i = 0; i < 100; i++){ - //Add each task in parallel with i as the key - fs.readFile(paths[i], 'utf8', flow.add(i)); - } - - //Wait for all the tasks to finish. Results is an object of the form {key1: value1, key2: value2, ...} - var results = flow.wait(); - - var path = ''; - //One-liner syntax for waiting on a single task - var contents = flow.sync( fs.readFile(path, 'utf8', flow.callback()) ); - - //See overview & API docs for more extensive description of techniques -}); - -// Error handling -var asyncTask = (callback: (err: any) => void) => { - asyncblock((flow) => { - flow.errorCallback = callback; //Setting the errorCallback is the easiest way to perform error handling. If erroCallback isn't set, and an error occurs, it will be thrown instead of returned to the callback - - var path = ''; - fs.readFile(path, 'utf8', flow.add()); //If readFile encountered an error, it would automatically get passed to the callback - var contents = flow.wait(); - - console.log(contents); //If an error occured above, this code won't run - }); -}; - -// Returning results -var asyncTask2 = (callback: (err: any, res: string) => void) => { - asyncblock((flow) => { - var path = ''; - var contents = flow.sync( fs.readFile(path, 'utf8', flow.callback()) ); //If readFile encountered an error, it would automatically get passed to the callback - - return contents; //Return the value you want to be passed to the callback - }, callback); //The callback can be specified as the 2nd arg to asyncblock. It will be called with the value returned from the asyncblock as the 2nd arg. - //If an error occurs, the callback will be called with the error as the first argument. -}; - - -// Sample -asyncblock.nostack((flow) => { - fs.readFile('path1', 'utf8', flow.add('first')); - fs.readFile('path2', 'utf8', flow.add('second')); - - //Wait until done reading the first and second files, then write them to another file - fs.writeFile('path3', flow.wait('first') + flow.wait('second'), flow.add()); - flow.wait(); //Wait on all outstanding tasks - - fs.readFile('path3', 'utf8', flow.add('data')); - - console.log(flow.wait('data')); //Print the 3rd file's data - console.log('all done'); -}); - - -// Formatting results -(function() { - -var asyncTask = function(callback: (err: any, res1: number, res2: number, res3: number) => void) { - process.nextTick(function() { - callback(null, 1, 2, 3); - }); -} - -asyncblock(function(flow) { - asyncTask(flow.add()); - - var result = flow.wait(); - console.log(result); // Prints 1 -}); - -asyncblock(function(flow) { - asyncTask(flow.add(['first', 'second', 'third'])); - - var result = flow.wait(); - console.log(result); // Prints { first: 1, second: 2, third: 3 } - - asyncTask(flow.add('key1', ['first', 'second', 'third'])); - asyncTask(flow.add('key2', ['a', 'b', 'c'])); - var result = flow.wait(); - console.log(result); // Prints { key1: { first: 1, second: 2, third: 3 }, key2: { a: 1, b: 2, c: 3} } -}); - -})(); - - -// Parallel task rate limiting -(function() { - -asyncblock(function(flow) { - flow.queue(function(callback: Function) { - setTimeout(callback, 1000); - }); - - flow.wait(); //This will wait for about a second -}); - -asyncblock(function(flow) { - flow.maxParallel = 2; - - process.nextTick(function(){ - flow.queue(function(callback: Function) { - setTimeout(callback, 1000); - }); - - flow.queue(function(callback: Function) { - setTimeout(callback, 2000); - }); - - flow.queue(function(callback: Function) { - setTimeout(callback, 3000); - }); - - flow.doneAdding(); - }); - - flow.forceWait(); -}); - -asyncblock(function(flow) { - setTimeout(flow.callback(), 1000); - - flow.queue(function(callback: Function) { - setTimeout(callback, 1000); - }); - flow.queue((callback: (err: any, res: string) => void) => { - callback(null, ''); - }); - - flow.wait(); -}); - -})(); - - -// Task timeouts -(function() { - -asyncblock(function(flow){ - setTimeout(flow.add({timeout: 1000, timeoutIsError: false}), 2000); - flow.wait(); //The fiber will yield here for 1 second, then continue - - //Code here will run -}); - -asyncblock(function(flow){ - flow.timeoutIsError = false; - - setTimeout(flow.add({timeout: 1000}), 2000); - flow.wait(); //The fiber will yield here for 1 second, then continue - - //Code here will run -}); - -})(); - diff --git a/types/asyncblock/index.d.ts b/types/asyncblock/index.d.ts deleted file mode 100644 index e848f509fb..0000000000 --- a/types/asyncblock/index.d.ts +++ /dev/null @@ -1,71 +0,0 @@ -// Type definitions for asyncblock 2.1.23 -// Project: https://github.com/scriby/asyncblock -// Definitions by: Hiroki Horiuchi -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - - - -declare function asyncblock(f: (flow: asyncblock.IFlow) => void, callback?: (err: any, res: T) => void): void; - -declare namespace asyncblock { - export function nostack(f: (flow: asyncblock.IFlow) => void, callback?: (err: any, res: T) => void): void; - - export interface IFlow { - add(responseFormat?: string[]): IExecuteFunction; - add(key: string, responseFormat?: string[]): IExecuteFunction; - add(key: number, responseFormat?: string[]): IExecuteFunction; - add(options: IFlowOptions): IExecuteFunction; - callback(responseFormat?: string[]): IExecuteFunction; - callback(key: string, responseFormat?: string[]): IExecuteFunction; - callback(key: number, responseFormat?: string[]): IExecuteFunction; - callback(options: IFlowOptions): IExecuteFunction; - wait(key?: string): T; - wait(key?: number): T; - - get(key: string): T; - set(key: string, responseFormat?: string[]): IExecuteFunction; - set(options: IFlowOptions): IExecuteFunction; - del(key: string): void; - - sync(task: any): T; - queue(toExecute: IExecuteFunction): void; - queue(key: string, toExecute: IExecuteFunction): void; - queue(key: number, toExecute: IExecuteFunction): void; - queue(responseFormat: string[], toExecute: IExecuteFunction): void; - queue(key: string, responseFormat: string[], toExecute: IExecuteFunction): void; - queue(key: number, responseFormat: string[], toExecute: IExecuteFunction): void; - queue(options: IFlowOptions, toExecute: IExecuteFunction): void; - doneAdding(): void; - forceWait(): T; - - maxParallel: number; - errorCallback: (err: any) => void; - taskTimeout: number; - timeoutIsError: boolean; - } - - export interface IFlowOptions { - ignoreError?: boolean; // default false - key?: string; // string | number - responseFormat?: string[]; - timeout?: number; - timeoutIsError?: boolean; - dontWait?: boolean; - firstArgIsError?: boolean; // default true - } - - export interface IExecuteFunction { - (err: any, res1: T1, res2: T2, res3: T3): any; - (err: any, res1: T1, res2: T2): any; - (err: any, res: T): any; - (err: any): any; - - // firstArgIsError === false - (res1: T1, res2: T2, res3: T3): any; - (res1: T1, res2: T2): any; - (res: T): any; - } - -} - -export = asyncblock; diff --git a/types/atmosphere/atmosphere-tests.ts b/types/atmosphere/atmosphere-tests.ts deleted file mode 100644 index b353c2c947..0000000000 --- a/types/atmosphere/atmosphere-tests.ts +++ /dev/null @@ -1,46 +0,0 @@ - - -var socket = atmosphere; - -var request1:Atmosphere.Request = new atmosphere.AtmosphereRequest(); - -request1.url = document.location.toString() + 'chat'; -request1.contentType = "application/json"; -request1.transport = 'websocket'; -request1.fallbackTransport = 'long-polling'; - -var request2:Atmosphere.Request = { - url: 'http://localhost:8080/chat', - contentType: "application/json", - logLevel: 'debug', - transport: 'websocket', - fallbackTransport: 'long-polling' -}; - -request1.onError = function (response?:Atmosphere.Response) {}; -request1.onClose = function (response?:Atmosphere.Response) {}; -request1.onOpen = function (response?:Atmosphere.Response) {}; -request1.onMessage = function (response:Atmosphere.Response) {}; -request1.onReopen = function (request?:Atmosphere.Request, response?:Atmosphere.Response) {}; -request1.onReconnect = function (request?:Atmosphere.Request, response?:Atmosphere.Response) {}; -request1.onMessagePublished = function (response?:Atmosphere.Response) {}; -request1.onTransportFailure = function (reason?:string, response?:Atmosphere.Response) {}; -request1.onLocalMessage = function (request?:Atmosphere.Request) {}; -request1.onFailureToReconnect = function (request?:Atmosphere.Request, response?:Atmosphere.Response) {}; -request1.onClientTimeout = function (request?:Atmosphere.Request) {}; - -request1.subscribe = function (options:Atmosphere.Request) {}; -request1.execute = function () {}; -request1.close = function () {}; -request1.disconnect = function () {}; -request1.getUrl = function ():string { return "http://www.toedter.com" }; -request1.push = function (message:string, dispatchUrl?:string) {}; -request1.getUUID = function () {}; -request1.pushLocal = function (message:string) {}; - -var subSocket:Atmosphere.Request = socket.subscribe(request1); -var subSocket2:Atmosphere.Request = socket.subscribe('http://chat.com', function() {}, request2); -subSocket2.close(); - -subSocket.push("test"); -socket.unsubscribe(); \ No newline at end of file diff --git a/types/atmosphere/index.d.ts b/types/atmosphere/index.d.ts deleted file mode 100644 index 7b5565cb1d..0000000000 --- a/types/atmosphere/index.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -// Type definitions for Atmosphere v2.1.5 -// Project: https://github.com/Atmosphere/atmosphere-javascript -// Definitions by: Kai Toedter -// Fedor Kirpichev -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -// This is deprecated due to module name change. Please use 'atmosphere.js' for future development.. - -declare namespace Atmosphere { - interface Atmosphere { - /** - * The atmosphere API is a little bit special here: the first parameter can either be - * a URL string or a Request object. If it is a URL string, then the additional parameters are expected. - */ - subscribe?: (requestOrUrl:any, callback?:Function, request?:Request) => Request; - unsubscribe?: () => void; - - AtmosphereRequest?: AtmosphereRequest; - } - - // needed to fit JavaScript "new atmosphere.AtmosphereRequest()" - // and compile with --noImplicitAny - interface AtmosphereRequest { - new(): Request; - } - - interface Request { - timeout?: number; - method?: string; - headers?: any; - contentType?: string; - callback?: Function; - url?: string; - data?: string; - suspend?: boolean; - maxRequest?: number; - reconnect?: boolean; - maxStreamingLength?: number; - lastIndex?: number; - logLevel?: string; - requestCount?: number; - fallbackMethod?: string; - fallbackTransport?: string; - transport?: string; - webSocketImpl?: any; - webSocketBinaryType?: any; - dispatchUrl?: string; - webSocketPathDelimiter?: string; - enableXDR?: boolean; - rewriteURL?: boolean; - attachHeadersAsQueryString?: boolean; - executeCallbackBeforeReconnect?: boolean; - readyState?: number; - lastTimestamp?: number; - withCredentials?: boolean; - trackMessageLength?: boolean; - messageDelimiter?: string; - connectTimeout?: number; - reconnectInterval?: number; - dropHeaders?: boolean; - uuid?: string; - async?: boolean; - shared?: boolean; - readResponsesHeaders?: boolean; - maxReconnectOnClose?: number; - enableProtocol?: boolean; - pollingInterval?: number; - - onError?: (response?:Response) => void; - onClose?: (response?:Response) => void; - onOpen?: (response?:Response) => void; - onMessage?: (response:Response) => void; - onReopen?: (request?:Request, response?:Response) => void; - onReconnect?: (request?:Request, response?:Response) => void; - onMessagePublished?: (response?:Response) => void; - onTransportFailure?: (reason?:string, response?:Response) => void; - onLocalMessage?: (request?:Request) => void; - onFailureToReconnect?: (request?:Request, response?:Response) => void; - onClientTimeout?: (request?:Request) => void; - - subscribe?: (options:Request) => void; - execute?: () => void; - close?: () => void; - disconnect?: () => void; - getUrl?: () => string; - push?: (message:string, dispatchUrl?:string) => void; - getUUID?: () => void; - pushLocal?: (message:string) => void; - } - - interface Response { - status?: number; - reasonPhrase?: string; - responseBody?: string; - messages?: string[]; - headers?: string[]; - state?: string; - transport?: string; - error?: string; - request?: Request; - partialMessage?: string; - errorHandled?: boolean; - closedByClientTimeout?: boolean; - } -} - -declare var atmosphere:Atmosphere.Atmosphere; -declare module 'atmosphere' { - export = atmosphere; -} diff --git a/types/atmosphere/tsconfig.json b/types/atmosphere/tsconfig.json deleted file mode 100644 index 2fb820bd91..0000000000 --- a/types/atmosphere/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "atmosphere-tests.ts" - ] -} \ No newline at end of file diff --git a/types/atom/atom-tests.ts b/types/atom/atom-tests.ts index f401b8e7fe..fbd5f6d0d8 100644 --- a/types/atom/atom-tests.ts +++ b/types/atom/atom-tests.ts @@ -32,6 +32,7 @@ declare let editor: Atom.TextEditor; declare let editors: Atom.TextEditor[]; declare let emitter: Atom.Emitter; declare let file: Atom.File; +declare let fileOrDir: Atom.File | Atom.Directory; declare let grammar: Atom.Grammar; declare let grammars: Atom.Grammar[]; declare let gutter: Atom.Gutter; @@ -277,6 +278,12 @@ function testCommandRegistry() { "test-function": (event) => event.currentTarget.getModel(), "test-function2": (event) => event.currentTarget.getComponent(), }); + atom.commands.add("atom-workspace", { + "test-command": { + didDispatch: (event) => {}, + hiddenInCommandPalette: true + } + }); const commands = atom.commands.findCommands({ target: element }); atom.commands.dispatch(element, "test:function"); @@ -515,6 +522,8 @@ function testDecoration() { // Decoration Details num = decoration.getId(); displayMarker = decoration.getMarker(); + bool = decoration.isType("line-number"); + bool = decoration.isType(["line-number", "line"]); // Properties const decorationProps = decoration.getProperties(); @@ -958,6 +967,16 @@ function testFile() { file.writeSync("Test"); } +// File/Directory Type Guarding =============================================== +function testFileDirectoryTypeGuarding() { + if (fileOrDir.isFile()) { + file = fileOrDir; + } + if (fileOrDir.isDirectory()) { + dir = fileOrDir; + } +} + // GitRepository ============================================================== function testGitRepository() { // Construction and Destruction @@ -1077,6 +1096,7 @@ function testGrammarRegistry() { // Event Subscription subscription = registry.onDidAddGrammar(grammar => grammar.name); subscription = registry.onDidUpdateGrammar(grammar => grammar.name); + subscription = registry.onDidRemoveGrammar(grammar => grammar.name); // Managing Grammars grammars = registry.getGrammars(); @@ -1439,6 +1459,14 @@ function testPackageManager() { bool = atom.packages.isPackageDisabled("Test"); + // Activating and deactivating packages + atom.packages.activatePackage("Test").then((activePack) => { + pack = activePack; + }); + atom.packages.deactivatePackage("Test", true).then(() => { + // package is deactivated + }); + // Accessing active packages packs = atom.packages.getActivePackages(); @@ -1896,7 +1924,7 @@ function testSelection() { selection.insertText("Replacement", { undo: "skip" }); selection.insertText("Replacement", { select: true, autoIndent: true, autoIndentNewline: true, autoDecreaseIndent: true, normalizeLineEndings: true, - undo: "skip" }); + undo: "skip", preserveTrailingLineIndentation: false }); selection.backspace(); selection.deleteToPreviousWordBoundary(); @@ -1998,7 +2026,14 @@ function testTextBuffer() { // Event Subscription subscription = buffer.onWillChange(() => void {}); - subscription = buffer.onDidChange(() => void {}); + + subscription = buffer.onDidChange((event): void => { + range = event.newRange; + for (const change of event.changes) { + range = change.newRange; + } + }); + subscription = buffer.onDidChangeText(() => void {}); subscription = buffer.onDidStopChanging((event): void => { @@ -2389,7 +2424,8 @@ function testTextEditor() { editor.insertText("Test", { select: true }); editor.insertText("Test", { undo: "skip" }); editor.insertText("Text", { autoDecreaseIndent: false, autoIndent: false, - autoIndentNewline: false, normalizeLineEndings: false, select: false, undo: "skip" }); + autoIndentNewline: false, normalizeLineEndings: false, select: false, + undo: "skip", preserveTrailingLineIndentation: true }); editor.insertNewline(); editor.delete(); @@ -3085,7 +3121,9 @@ function testWorkspace() { obj = atom.workspace.createItemForURI("https://test"); - bool = atom.workspace.isTextEditor(obj); + if (atom.workspace.isTextEditor(obj)) { + const textEditor: Atom.TextEditor = obj; + } async function workspaceReopen() { const result = await atom.workspace.reopenItem(); diff --git a/types/atom/index.d.ts b/types/atom/index.d.ts index 461211786a..f83f751657 100644 --- a/types/atom/index.d.ts +++ b/types/atom/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Atom 1.22 +// Type definitions for Atom 1.23 // Project: https://github.com/atom/atom // Definitions by: GlenCFL // smhxx @@ -7,7 +7,7 @@ // TypeScript Version: 2.3 // NOTE: only those classes exported within this file should be retain that status below. -// https://github.com/atom/atom/blob/v1.22.0/exports/atom.js +// https://github.com/atom/atom/blob/v1.23.0/exports/atom.js /// /// @@ -268,6 +268,7 @@ export type CommandRegistryListener = { didDispatch(event: CommandEvent): void, displayName?: string, description?: string, + hiddenInCommandPalette?: boolean, } | ((event: CommandEvent) => void); /** @@ -280,6 +281,7 @@ export interface CommandRegistry { target: T, commandName: string, listener: CommandRegistryListener ): Disposable; + /** Register a single command. */ add( target: T, commandName: string, listener: CommandRegistryListener @@ -287,10 +289,11 @@ export interface CommandRegistry { /** Register multiple commands. */ add(target: T, commands: { - [key: string]: (event: CommandEvent) => void + [key: string]: CommandRegistryListener }): CompositeDisposable; + /** Register multiple commands. */ add(target: T, commands: { - [key: string]: (event: CommandEvent) => void + [key: string]: CommandRegistryListener }): CompositeDisposable; /** Find all registered commands matching a query. */ @@ -393,7 +396,7 @@ export interface Config { /** Retrieves the setting for the given key. */ get(keyPath: T, options?: { sources?: string[], excludeSources?: string[], scope?: string[]|ScopeDescriptor }): - ConfigValues[T]|undefined; + ConfigValues[T]; /** * Sets the value for a configuration setting. @@ -467,6 +470,14 @@ export interface Decoration { /** Returns the marker associated with this Decoration. */ getMarker(): DisplayMarker; + /** + * Check if this decoration is of the given type. + * @param type A decoration type, such as `line-number` or `line`. This may also + * be an array of decoration types, with isType returning true if the decoration's + * type matches any in the array. + */ + isType(type: string|string[]): boolean; + // Properties /** Returns the Decoration's properties. */ getProperties(): DecorationOptions; @@ -1483,14 +1494,7 @@ export class TextEditor { { normalizeLineEndings?: boolean, undo?: "skip" }): Range; /* For each selection, replace the selected text with the given text. */ - insertText(text: string, options?: { - select?: boolean, - autoIndent?: boolean, - autoIndentNewline?: boolean, - autoDecreaseIndent?: boolean, - normalizeLineEndings?: boolean, - undo?: "skip" - }): Range|boolean; + insertText(text: string, options?: TextInsertionOptions): Range|false; /** For each selection, replace the selected text with a newline. */ insertNewline(): void; @@ -2693,7 +2697,7 @@ export interface Workspace { createItemForURI(uri: string): Promise; /** Returns a boolean that is true if object is a TextEditor. */ - isTextEditor(object: object): boolean; + isTextEditor(object: object): object is TextEditor; /** * Asynchronously reopens the last-closed item's URI if it hasn't already @@ -3275,10 +3279,10 @@ export class Directory { // Directory Metadata /** Returns a boolean, always false. */ - isFile(): boolean; + isFile(): this is File; /** Returns a roolean, always true. */ - isDirectory(): boolean; + isDirectory(): this is Directory; /** Returns a boolean indicating whether or not this is a symbolic link. */ isSymbolicLink(): boolean; @@ -3492,10 +3496,10 @@ export class File { // File Metadata /** Returns a boolean, always true. */ - isFile(): boolean; + isFile(): this is File; /** Returns a boolean, always false. */ - isDirectory(): boolean; + isDirectory(): this is Directory; /** Returns a boolean indicating whether or not this is a symbolic link. */ isSymbolicLink(): boolean; @@ -3760,6 +3764,13 @@ export interface GrammarRegistry { */ onDidUpdateGrammar(callback: (grammar: Grammar) => void): Disposable; + /** + * Invoke the given callback when a grammar is removed from the registry. + * @param callback The callback to be invoked whenever a grammar is removed. + * @return A Disposable on which `.dispose()` can be called to unsubscribe. + */ + onDidRemoveGrammar(callback: (grammar: Grammar) => void): Disposable; + // Managing Grammars /** * Get all the grammars in this registry. @@ -4100,6 +4111,9 @@ export interface PackageManager { /** Activate a single package by name or path. */ activatePackage(nameOrPath: string): Promise; + /** Deactivate a single package by name or path. */ + deactivatePackage(nameOrPath: string, suppressSerialization?: boolean): Promise; + /** Triggers the given package activation hook. */ triggerActivationHook(hook: string): void; @@ -4799,7 +4813,8 @@ export class Task { * Throws an error if this task has already been terminated or if sending a * message to the child process fails. */ - send(message: string): void; + // tslint:disable-next-line:no-any + send(message: string | number | boolean | object | null | any[]): void; /** Call a function when an event is emitted by the child process. */ // tslint:disable-next-line:no-any @@ -5344,6 +5359,21 @@ export interface BufferChangingEvent { } export interface BufferChangedEvent { + /** + * An array of objects summarizing the aggregated changes that occurred + * during the transaction. + */ + changes: Array<{ + /** + * The Range of the deleted text in the contents of the buffer as it existed + * before the batch of changes reported by this event. + */ + oldRange: Range; + + /** The Range of the inserted text in the current contents of the buffer. */ + newRange: Range; + }>; + /** Range of the old text. */ oldRange: Range; @@ -5665,7 +5695,7 @@ export interface TextEditorObservedEvent { // information under certain contexts. // NOTE: the config schema with these defaults can be found here: -// https://github.com/atom/atom/blob/v1.22.0/src/config-schema.js +// https://github.com/atom/atom/blob/v1.23.0/src/config-schema.js /** * Allows you to strongly type Atom configuration variables. Additional key:value * pairings merged into this interface will result in configuration values under @@ -6265,11 +6295,33 @@ export interface SpawnProcessOptions { } export interface TextInsertionOptions { + /** If true, selects the newly added text. */ select?: boolean; + + /** If true, indents all inserted text appropriately. */ autoIndent?: boolean; + + /** If true, indent newline appropriately. */ autoIndentNewline?: boolean; + + /** + * If true, decreases indent level appropriately (for example, when a closing + * bracket is inserted). + */ autoDecreaseIndent?: boolean; + + /** + * By default, when pasting multiple lines, Atom attempts to preserve the relative + * indent level between the first line and trailing lines, even if the indent + * level of the first line has changed from the copied text. If this option is + * true, this behavior is suppressed. + */ + preserveTrailingLineIndentation?: boolean; + + /** If true, all line endings will be normalized to match the editor's current mode. */ normalizeLineEndings?: boolean; + + /** If skip, skips the undo stack for this operation. */ undo?: "skip"; } diff --git a/types/atom/linter/index.d.ts b/types/atom/linter/index.d.ts index bf085d9859..79fc397ab8 100644 --- a/types/atom/linter/index.d.ts +++ b/types/atom/linter/index.d.ts @@ -78,5 +78,5 @@ export interface LinterProvider { scope: "file"|"project"; lintsOnChange: boolean; grammarScopes: string[]; - lint(textEditor: TextEditor): Message[]|void|Promise; + lint(textEditor: TextEditor): Message[]|null|Promise; } diff --git a/types/auth0-js/index.d.ts b/types/auth0-js/index.d.ts index 6110f2fe52..c7224599bd 100644 --- a/types/auth0-js/index.d.ts +++ b/types/auth0-js/index.d.ts @@ -590,7 +590,7 @@ export interface Auth0UserProfile { given_name?: string; family_name?: string; email?: string; - email_verified?: string; + email_verified?: boolean; clientID: string; gender?: string; locale?: string; diff --git a/types/auth0-lock/auth0-lock-tests.ts b/types/auth0-lock/auth0-lock-tests.ts index c2107b11e4..119bbb3c37 100644 --- a/types/auth0-lock/auth0-lock-tests.ts +++ b/types/auth0-lock/auth0-lock-tests.ts @@ -204,6 +204,19 @@ const selectFieldOptionsWithCallbacks : Auth0LockConstructorOptions = { new Auth0Lock(CLIENT_ID, DOMAIN, selectFieldOptionsWithCallbacks); +// test checkbox-field additional sign up field + +const checkboxFieldOptions : Auth0LockConstructorOptions = { + additionalSignUpFields: [{ + type: "checkbox", + name: "remember", + placeholder: "Remember Me", + prefill: "false" + }] + }; + + new Auth0Lock(CLIENT_ID, DOMAIN, checkboxFieldOptions); + // test Avatar options const avatarOptions : Auth0LockConstructorOptions = { diff --git a/types/auth0-lock/index.d.ts b/types/auth0-lock/index.d.ts index 8ed6b50c87..352d9c71a9 100644 --- a/types/auth0-lock/index.d.ts +++ b/types/auth0-lock/index.d.ts @@ -2,6 +2,7 @@ // Project: http://auth0.com // Definitions by: Brian Caruso // Dan Caddigan +// Larry Faudree // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped /// @@ -23,16 +24,37 @@ type Auth0LockAdditionalSignUpFieldPrefillCallback = type Auth0LockAdditionalSignUpFieldPrefillFunction = (callback: Auth0LockAdditionalSignUpFieldPrefillCallback) => void; -interface Auth0LockAdditionalSignUpField { +interface Auth0LockAdditionalTextSignUpField { + type?: "text"; icon?: string; name: string; options?: Auth0LockAdditionalSignUpFieldOption[] | Auth0LockAdditionalSignUpFieldOptionsFunction; placeholder: string; prefill?: string | Auth0LockAdditionalSignUpFieldPrefillFunction; - type?: "select" | "text"; validator?: (input: string) => { valid: boolean; hint?: string }; } +interface Auth0LockAdditionalSelectSignUpField { + type?: "select"; + icon?: string; + name: string; + options?: Auth0LockAdditionalSignUpFieldOption[] | Auth0LockAdditionalSignUpFieldOptionsFunction; + placeholder: string; + prefill?: string | Auth0LockAdditionalSignUpFieldPrefillFunction; + validator?: (input: string) => { valid: boolean; hint?: string }; +} + +interface Auth0LockAdditionalCheckboxSignUpField { + type?: "checkbox"; + icon?: string; + name: string; + placeholder: string; + prefill: "true" | "false"; + validator?: (input: string) => { valid: boolean, hint?: string }; +} + +type Auth0LockAdditionalSignUpField = Auth0LockAdditionalSelectSignUpField |Auth0LockAdditionalTextSignUpField |Auth0LockAdditionalCheckboxSignUpField; + type Auth0LockAvatarUrlCallback = (error: auth0.Auth0Error, url: string) => void; type Auth0LockAvatarDisplayNameCallback = (error: auth0.Auth0Error, displayName: string) => void; diff --git a/types/auth0/auth0-tests.ts b/types/auth0/auth0-tests.ts index 521738db7e..0572c2b0e7 100644 --- a/types/auth0/auth0-tests.ts +++ b/types/auth0/auth0-tests.ts @@ -120,3 +120,24 @@ management.getUsersByEmail('email@address.com', (err, users) => { management.getUsersByEmail('email@address.com').then((users) => { console.log(users); }); + +// Using different client settings. + +const retryableManagementClient = new auth0.ManagementClient({ + clientId: '', + clientSecret: '', + domain: 'xxx.auth0.com', + retry: { + enabled : true + } +}); + +management.createPasswordChangeTicket({ + connection_id: 'con_id', + email: 'test@me.co', + new_password: 'password', + result_url: 'https://www.google.com/', + ttl_sec: 86400, +}, (err: Error, data) => { + console.log(data.ticket); +}); diff --git a/types/auth0/index.d.ts b/types/auth0/index.d.ts index 12829b5b67..58013848f8 100644 --- a/types/auth0/index.d.ts +++ b/types/auth0/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for auth0 2.5 +// Type definitions for auth0 2.7 // Project: https://github.com/auth0/node-auth0 // Definitions by: Wilson Hobbs , Seth Westphal , Amiram Korach // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -14,6 +14,7 @@ export interface ManagementClientOptions { audience?: string; scope?: string; tokenProvider?: TokenProvider; + retry?: RetryOptions; } export interface TokenProvider { @@ -21,6 +22,17 @@ export interface TokenProvider { cacheTTLInSeconds?: number; } +export interface RetryOptions { + /** + * Default value is `true`. + */ + enabled?: boolean; + /** + * Default value is `10`. + */ + maxRetries?: number; +} + export interface UserMetadata { } export interface AppMetadata { } @@ -87,7 +99,6 @@ export interface Rule { order?: number; } - export interface Client { /** * The name of the client. @@ -165,6 +176,146 @@ export interface Client { mobile?: any; } +export interface ResourceServer { + /** + * The identifier of the resource server. + */ + identifier?: string; + scopes?: { description: string, value: string }[]; + /** + * The algorithm used to sign tokens. + */ + signing_alg?: 'HS256' | 'RS256'; + /** + * The secret used to sign tokens when using symmetric algorithms. + */ + signing_secret?: string; + /** + * Allows issuance of refresh tokens for this entity. + */ + allow_offline_access?: boolean; + /** + * Flag this entity as capable of skipping consent. + */ + skip_consent_for_verifiable_first_party_clients?: boolean; + /** + * The amount of time (in seconds) that the token will be valid after being issued. + */ + token_lifetime?: number; + /** + * The amount of time (in seconds) that the token will be valid after being issued from browser based flows. Value cannot be larger than token_lifetime.. + */ + token_lifetime_for_web?: number; + /** + * The ID of the resource server. + */ + id?: string; + /** + * A friendly name for the resource server. + */ + name?: string; +} + +export interface CreateResourceServer extends ResourceServer { + /** + * The identifier of the client. + */ + identifier: string; +} + +export interface CreateClientGrant { + /** + * The identifier of the resource server. + */ + client_id: string; + /** + * The audience. + */ + audience: string; + scope: string[]; +} + +export type UpdateClientGrant = Pick, 'scope'>; + +export type ClientGrant = Partial & { + /** + * The id of the client grant. + */ + id?: string; +}; + +export interface CreateClientGrant { + /** + * The identifier of the resource server. + */ + client_id: string; + /** + * The audience. + */ + audience: string; + scope: string[]; +} + +export type Strategy = + 'ad' | 'adfs' | 'amazon' | 'dropbox' | 'bitbucket' | 'aol' | 'auth0-adldap' | 'auth0-oidc' | + 'auth0' | 'baidu' | 'bitly' | 'box' | 'custom' | 'daccount' | 'dwolla' | 'email' | + 'evernote-sandbox' | 'evernote' | 'exact' | 'facebook' | 'fitbit' | 'flickr' | 'github' | + 'google-apps' | 'google-oauth2' | 'guardian' | 'instagram' | 'ip' | 'linkedin' | 'miicard' | + 'oauth1' | 'oauth2' | 'office365' | 'paypal' | 'paypal-sandbox' | 'pingfederate' | + 'planningcenter' | 'renren' | 'salesforce-community' | 'salesforce-sandbox' | 'salesforce' | + 'samlp' | 'sharepoint' | 'shopify' | 'sms' | 'soundcloud' | 'thecity-sandbox' | 'thecity' | + 'thirtysevensignals' | 'twitter' | 'untappd' | 'vkontakte' | 'waad' | 'weibo' | 'windowslive' | + 'wordpress' | 'yahoo' | 'yammer' | 'yandex'; + +export interface UpdateConnection { + options?: any; + /** + * The identifiers of the clients for which the connection is to + * be enabled. If the array is empty or the property is not + * specified, no clients are enabled. + */ + enabled_clients?: string[]; + /** + * Defines the realms for which the connection will be used + * (ie: email domains). If the array is empty or the property is + * not specified, the connection name will be added as realm. + */ + realms?: string[]; + metadata?: any; + /** + * True if the connection is domain level. + */ + is_domain_connection?: boolean; +} + +export interface Connection extends UpdateConnection { + /** + * The connection's identifier. + */ + id?: string; + /** + * The name of the connection. + */ + name?: string; + /** + * The type of the connection, related to the identity provider. + */ + strategy?: Strategy; +} + +export interface CreateConnection extends UpdateConnection { + /** + * The name of the connection. Must start and end with an + * alphanumeric character and can only contain alphanumeric + * characters and '-'. Max length 128. + */ + name: string; + /** + * The identity provider identifier for the connection. + */ + strategy: Strategy; +} + export interface User { email?: string; email_verified?: boolean; @@ -337,10 +488,16 @@ export interface UserIdParams { } export interface PasswordChangeTicketParams { - result_url: string; - user_id: string; - email: string; - new_password: string; + result_url?: string; + user_id?: string; + new_password?: string; + connection_id?: string; + email?: string; + ttl_sec?: number; +} + +export interface PasswordChangeTicketResponse { + ticket: string; } export interface EmailVerificationTicketOptions { @@ -396,23 +553,20 @@ export class ManagementClient { getClientInfo(): ClientInfo; // Connections - getConnections(): Promise; - getConnections(cb: (err: Error, data: any) => void): void; + getConnections(): Promise; + getConnections(cb: (err: Error, connections: Connection[]) => void): void; - createConnection(data: ObjectWithId): Promise; - createConnection(data: ObjectWithId, cb: (err: Error, data: any) => void): void; + createConnection(data: CreateConnection): Promise; + createConnection(data: CreateConnection, cb: (err: Error, connection: Connection) => void): void; - getConnection(params: ObjectWithId, cb: (err: Error, data: any) => void): void; - getConnection(params: ObjectWithId): Promise; + getConnection(params: ObjectWithId, cb: (err: Error, connection: Connection) => void): void; + getConnection(params: ObjectWithId): Promise; - deleteConnection(params: ObjectWithId, cb: (err: Error, data: any) => void): void; - deleteConnection(params: ObjectWithId): Promise; + deleteConnection(params: ObjectWithId, cb: (err: Error) => void): void; + deleteConnection(params: ObjectWithId): Promise; - deleteConnection(params: ObjectWithId, cb: (err: Error, data: any) => void): void; - deleteConnection(params: ObjectWithId): Promise; - - updateConnection(params: ObjectWithId, data: Data, cb: (err: Error, data: any) => void): void; - updateConnection(params: ObjectWithId, data: Data): Promise; + updateConnection(params: ObjectWithId, data: UpdateConnection, cb: (err: Error, connection: Connection) => void): void; + updateConnection(params: ObjectWithId, data: UpdateConnection): Promise; // Clients @@ -433,17 +587,17 @@ export class ManagementClient { // Client Grants - getClientGrants(): Promise; - getClientGrants(cb: (err: Error, data: any) => void): void; + getClientGrants(): Promise; + getClientGrants(cb: (err: Error, data: ClientGrant[]) => void): void; - createClientGrant(data: Data): Promise; - createClientGrant(data: Data, cb: (err: Error, data: any) => void): void; + createClientGrant(data: CreateClientGrant): Promise; + createClientGrant(data: CreateClientGrant, cb: (err: Error, data: ClientGrant) => void): void; - updateClientGrant(params: ObjectWithId, data: Data): Promise; - updateClientGrant(params: ObjectWithId, data: Data, cb: (err: Error, data: any) => void): void; + updateClientGrant(params: ObjectWithId, data: UpdateClientGrant): Promise; + updateClientGrant(params: ObjectWithId, data: UpdateClientGrant, cb: (err: Error, data: ClientGrant) => void): void; - deleteClientGrant(params: ObjectWithId): Promise; - deleteClientGrant(params: ObjectWithId, cb: (err: Error, data: any) => void): void; + deleteClientGrant(params: ObjectWithId): Promise; + deleteClientGrant(params: ObjectWithId, cb: (err: Error) => void): void; // Device Keys @@ -563,8 +717,8 @@ export class ManagementClient { sendEmailVerification(data: UserIdParams, cb?: (err: Error, data: any) => void): void; // Tickets - createPasswordChangeTicket(params: PasswordChangeTicketParams): Promise; - createPasswordChangeTicket(params: PasswordChangeTicketParams, cb?: (err: Error, data: any) => void): void; + createPasswordChangeTicket(params: PasswordChangeTicketParams): Promise; + createPasswordChangeTicket(params: PasswordChangeTicketParams, cb?: (err: Error, data: PasswordChangeTicketResponse) => void): void; createEmailVerificationTicket(data: EmailVerificationTicketOptions): Promise; createEmailVerificationTicket(data: EmailVerificationTicketOptions, cb?: (err: Error, data: any) => void): void; @@ -578,22 +732,18 @@ export class ManagementClient { // Resource Server - createResourceServer(data: Data): Promise; - createResourceServer(data: Data, cb?: (err: Error, data: any) => void): void; - - getResourceServers(): Promise; - getResourceServers(cb?: (err: Error, data: any) => void): void; - - getResourceServer(data: ObjectWithId): Promise; - getResourceServer(data: ObjectWithId, cb?: (err: Error, data: any) => void): void; - - deleteResourceServer(params: ObjectWithId): Promise; - deleteResourceServer(params: ObjectWithId, cb?: (err: Error, data: any) => void): void; - - updateResourceServer(params: ObjectWithId, data: Data): Promise; - updateResourceServer(params: ObjectWithId, data: Data, cb?: (err: Error, data: any) => void): void; + createResourceServer(data: CreateResourceServer): Promise; + createResourceServer(data: CreateResourceServer, cb?: (err: Error, data: ResourceServer) => void): void; + getResourceServers(): Promise; + getResourceServers(cb?: (err: Error, data: ResourceServer[]) => void): void; + getResourceServer(data: ObjectWithId): Promise; + getResourceServer(data: ObjectWithId, cb?: (err: Error, data: ResourceServer) => void): void; + deleteResourceServer(params: ObjectWithId): Promise; + deleteResourceServer(params: ObjectWithId, cb?: (err: Error) => void): void; + updateResourceServer(params: ObjectWithId, data: ResourceServer): Promise; + updateResourceServer(params: ObjectWithId, data: ResourceServer, cb?: (err: Error, data: ResourceServer) => void): void; } diff --git a/types/aws-lambda/aws-lambda-tests.ts b/types/aws-lambda/aws-lambda-tests.ts index 7cd969b6c6..6d0d83b210 100644 --- a/types/aws-lambda/aws-lambda-tests.ts +++ b/types/aws-lambda/aws-lambda-tests.ts @@ -1,29 +1,29 @@ -var str: string = "any string"; -var date: Date = new Date(); -var anyObj: any = { abc: 123 }; -var num: number = 5; -var error: Error = new Error(); -var b: boolean = true; -var apiGwEvtReqCtx: AWSLambda.APIGatewayEventRequestContext; -var apiGwEvt: AWSLambda.APIGatewayEvent; -var customAuthorizerEvt: AWSLambda.CustomAuthorizerEvent; -var clientCtx: AWSLambda.ClientContext; -var clientContextEnv: AWSLambda.ClientContextEnv; -var clientContextClient: AWSLambda.ClientContextClient; -var context: AWSLambda.Context; -var identity: AWSLambda.CognitoIdentity; -var proxyResult: AWSLambda.ProxyResult; -var authResponse: AWSLambda.AuthResponse; -var policyDocument: AWSLambda.PolicyDocument; -var statement: AWSLambda.Statement; -var authResponseContext: AWSLambda.AuthResponseContext; -var snsEvt: AWSLambda.SNSEvent; -var snsEvtRecs: AWSLambda.SNSEventRecord[]; -var snsEvtRec: AWSLambda.SNSEventRecord; -var snsMsg: AWSLambda.SNSMessage; -var snsMsgAttr: AWSLambda.SNSMessageAttribute; -var snsMsgAttrs: AWSLambda.SNSMessageAttributes; -var S3EvtRec: AWSLambda.S3EventRecord = { +let str: string; +let date: Date; +let anyObj: any; +let num: number; +let error: Error; +let b: boolean; +let apiGwEvtReqCtx: AWSLambda.APIGatewayEventRequestContext; +let apiGwEvt: AWSLambda.APIGatewayEvent; +let customAuthorizerEvt: AWSLambda.CustomAuthorizerEvent; +let clientCtx: AWSLambda.ClientContext; +let clientContextEnv: AWSLambda.ClientContextEnv; +let clientContextClient: AWSLambda.ClientContextClient; +let context: AWSLambda.Context; +let identity: AWSLambda.CognitoIdentity; +let proxyResult: AWSLambda.ProxyResult; +let authResponse: AWSLambda.AuthResponse; +let policyDocument: AWSLambda.PolicyDocument; +let statement: AWSLambda.Statement; +let authResponseContext: AWSLambda.AuthResponseContext; +let snsEvt: AWSLambda.SNSEvent; +let snsEvtRecs: AWSLambda.SNSEventRecord[]; +let snsEvtRec: AWSLambda.SNSEventRecord; +let snsMsg: AWSLambda.SNSMessage; +let snsMsgAttr: AWSLambda.SNSMessageAttribute; +let snsMsgAttrs: AWSLambda.SNSMessageAttributes; +const S3EvtRec: AWSLambda.S3EventRecord = { eventVersion: '2.0', eventSource: 'aws:s3', awsRegion: 'us-east-1', @@ -32,7 +32,7 @@ var S3EvtRec: AWSLambda.S3EventRecord = { userIdentity: { principalId: 'AIDAJDPLRKLG7UEXAMPLE' }, - requestParameters:{ + requestParameters: { sourceIPAddress: '127.0.0.1' }, responseElements: { @@ -59,12 +59,15 @@ var S3EvtRec: AWSLambda.S3EventRecord = { } }; -var S3CreateEvent: AWSLambda.S3CreateEvent = { +const S3CreateEvent: AWSLambda.S3CreateEvent = { Records: [S3EvtRec] }; -var cognitoUserPoolEvent: AWSLambda.CognitoUserPoolEvent; -var cloudformationCustomResourceEvent: AWSLambda.CloudFormationCustomResourceEvent; -var cloudformationCustomResourceResponse: AWSLambda.CloudFormationCustomResourceResponse; +declare const cognitoUserPoolEvent: AWSLambda.CognitoUserPoolEvent; +declare const cloudformationCustomResourceEvent: AWSLambda.CloudFormationCustomResourceEvent; +declare const cloudformationCustomResourceResponse: AWSLambda.CloudFormationCustomResourceResponse; +declare const cloudwatchLogsEvent: AWSLambda.CloudWatchLogsEvent; +declare const cloudwatchLogsDecodedData: AWSLambda.CloudWatchLogsDecodedData; +declare const scheduledEvent: AWSLambda.ScheduledEvent; /* API Gateway Event request context */ str = apiGwEvtReqCtx.accountId; @@ -110,7 +113,7 @@ str = apiGwEvt.stageVariables["example"]; apiGwEvtReqCtx = apiGwEvt.requestContext; /* DynamoDB Stream Event */ -var dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { +const dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { Records: [ { eventID: '1', @@ -118,7 +121,7 @@ var dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { dynamodb: { Keys: { Id: { - N: 101 + N: '101' } }, NewImage: { @@ -126,7 +129,7 @@ var dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { S: 'New item!' }, Id: { - N: 101 + N: '101' } }, StreamViewType: 'NEW_AND_OLD_IMAGES', @@ -148,13 +151,13 @@ var dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { S: 'New item!' }, Id: { - N: 101 + N: '101' } }, SequenceNumber: '222', Keys: { Id: { - N: 101 + N: '101' } }, SizeBytes: 59, @@ -163,7 +166,7 @@ var dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { S: 'This item has changed' }, Id: { - N: 101 + N: '101' } }, StreamViewType: 'NEW_AND_OLD_IMAGES' @@ -180,7 +183,7 @@ var dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { dynamodb: { Keys: { Id: { - N: 101 + N: '101' } }, SizeBytes: 38, @@ -190,7 +193,7 @@ var dynamoDBStreamEvent: AWSLambda.DynamoDBStreamEvent = { S: 'This item has changed' }, Id: { - N: 101 + N: '101' } }, StreamViewType: 'NEW_AND_OLD_IMAGES' @@ -263,13 +266,13 @@ policyDocument = { authResponse = { principalId: str, - policyDocument: policyDocument, + policyDocument, context: authResponseContext }; authResponse = { principalId: str, - policyDocument: policyDocument + policyDocument, }; // CognitoUserPoolEvent @@ -288,6 +291,13 @@ cognitoUserPoolEvent.triggerSource === "CustomMessage_Authentication"; cognitoUserPoolEvent.triggerSource === "DefineAuthChallenge_Authentication"; cognitoUserPoolEvent.triggerSource === "CreateAuthChallenge_Authentication"; cognitoUserPoolEvent.triggerSource === "VerifyAuthChallengeResponse_Authentication"; +cognitoUserPoolEvent.triggerSource === "PreSignUp_AdminCreateUser"; +cognitoUserPoolEvent.triggerSource === "PostConfirmation_ConfirmForgotPassword"; +cognitoUserPoolEvent.triggerSource === "TokenGeneration_HostedAuth"; +cognitoUserPoolEvent.triggerSource === "TokenGeneration_Authentication"; +cognitoUserPoolEvent.triggerSource === "TokenGeneration_NewPasswordChallenge"; +cognitoUserPoolEvent.triggerSource === "TokenGeneration_AuthenticateDevice"; +cognitoUserPoolEvent.triggerSource === "TokenGeneration_RefreshTokens"; str = cognitoUserPoolEvent.region; str = cognitoUserPoolEvent.userPoolId; str = cognitoUserPoolEvent.userName; @@ -348,6 +358,15 @@ str = cloudformationCustomResourceResponse.RequestId; str = cloudformationCustomResourceResponse.StackId; str = cloudformationCustomResourceResponse.Status; +/* ScheduledEvent */ +str = scheduledEvent.account; +anyObj = scheduledEvent.detail; +str = scheduledEvent.id; +str = scheduledEvent.region; +str = scheduledEvent.resources[0]; +str = scheduledEvent.source; +str = scheduledEvent.time; + /* Context */ b = context.callbackWaitsForEmptyEventLoop; str = context.functionName; @@ -364,6 +383,18 @@ clientCtx = context.clientContext; str = identity.cognitoIdentityId; str = identity.cognitoIdentityPoolId; +/* CloudWatch Logs */ +str = cloudwatchLogsEvent.awslogs.data; + +str = cloudwatchLogsDecodedData.owner; +str = cloudwatchLogsDecodedData.logGroup; +str = cloudwatchLogsDecodedData.logStream; +str = cloudwatchLogsDecodedData.subscriptionFilters[0]; +str = cloudwatchLogsDecodedData.messageType; +str = cloudwatchLogsDecodedData.logEvents[0].id; +num = cloudwatchLogsDecodedData.logEvents[0].timestamp; +str = cloudwatchLogsDecodedData.logEvents[0].message; + /* ClientContext */ clientContextClient = clientCtx.client; anyObj = clientCtx.Custom; @@ -411,67 +442,67 @@ function customAuthorizerCallback(cb: AWSLambda.CustomAuthorizerCallback) { } /* CloudFront events, see http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html */ -var CloudFrontRequestEvent: AWSLambda.CloudFrontRequestEvent = { - "Records": [ +const CloudFrontRequestEvent: AWSLambda.CloudFrontRequestEvent = { + Records: [ { - "cf": { - "config": { - "distributionId": "EDFDVBD6EXAMPLE", - "requestId": "MRVMF7KydIvxMWfJIglgwHQwZsbG2IhRJ07sn9AkKUFSHS9EXAMPLE==" + cf: { + config: { + distributionId: "EDFDVBD6EXAMPLE", + requestId: "MRVMF7KydIvxMWfJIglgwHQwZsbG2IhRJ07sn9AkKUFSHS9EXAMPLE==" }, - "request": { - "clientIp": "2001:0db8:85a3:0:0:8a2e:0370:7334", - "method": "GET", - "uri": "/picture.jpg", - "querystring": "size=large", - "headers": { - "host": [ + request: { + clientIp: "2001:0db8:85a3:0:0:8a2e:0370:7334", + method: "GET", + uri: "/picture.jpg", + querystring: "size=large", + headers: { + host: [ { - "key": "Host", - "value": "d111111abcdef8.cloudfront.net" + key: "Host", + value: "d111111abcdef8.cloudfront.net" } ], "user-agent": [ { - "key": "User-Agent", - "value": "curl/7.51.0" + key: "User-Agent", + value: "curl/7.51.0" } ] }, - "origin": { - "custom": { - "customHeaders": { + origin: { + custom: { + customHeaders: { "my-origin-custom-header": [ { - "key": "My-Origin-Custom-Header", - "value": "Test" + key: "My-Origin-Custom-Header", + value: "Test" } ] }, - "domainName": "example.com", - "keepaliveTimeout": 5, - "path": "/custom_path", - "port": 443, - "protocol": "https", - "readTimeout": 5, - "sslProtocols": [ + domainName: "example.com", + keepaliveTimeout: 5, + path: "/custom_path", + port: 443, + protocol: "https", + readTimeout: 5, + sslProtocols: [ "TLSv1", "TLSv1.1" ] }, - "s3": { - "authMethod": "origin-access-identity", - "customHeaders": { + s3: { + authMethod: "origin-access-identity", + customHeaders: { "my-origin-custom-header": [ { - "key": "My-Origin-Custom-Header", - "value": "Test" + key: "My-Origin-Custom-Header", + value: "Test" } ] }, - "domainName": "my-bucket.s3.amazonaws.com", - "path": "/s3_path", - "region": "us-east-1" + domainName: "my-bucket.s3.amazonaws.com", + path: "/s3_path", + region: "us-east-1" } } } @@ -480,52 +511,52 @@ var CloudFrontRequestEvent: AWSLambda.CloudFrontRequestEvent = { ] }; -var CloudFrontResponseEvent: AWSLambda.CloudFrontResponseEvent = { - "Records": [ +const CloudFrontResponseEvent: AWSLambda.CloudFrontResponseEvent = { + Records: [ { - "cf": { - "config": { - "distributionId": "EDFDVBD6EXAMPLE", - "requestId": "xGN7KWpVEmB9Dp7ctcVFQC4E-nrcOcEKS3QyAez--06dV7TEXAMPLE==" + cf: { + config: { + distributionId: "EDFDVBD6EXAMPLE", + requestId: "xGN7KWpVEmB9Dp7ctcVFQC4E-nrcOcEKS3QyAez--06dV7TEXAMPLE==" }, - "request": { - "clientIp": "2001:0db8:85a3:0:0:8a2e:0370:7334", - "method": "GET", - "uri": "/picture.jpg", - "querystring": "size=large", - "headers": { - "host": [ + request: { + clientIp: "2001:0db8:85a3:0:0:8a2e:0370:7334", + method: "GET", + uri: "/picture.jpg", + querystring: "size=large", + headers: { + host: [ { - "key": "Host", - "value": "d111111abcdef8.cloudfront.net" + key: "Host", + value: "d111111abcdef8.cloudfront.net" } ], "user-agent": [ { - "key": "User-Agent", - "value": "curl/7.18.1" + key: "User-Agent", + value: "curl/7.18.1" } ] } }, - "response": { - "status": "200", - "statusDescription": "OK", - "headers": { - "server": [ + response: { + status: "200", + statusDescription: "OK", + headers: { + server: [ { - "key": "Server", - "value": "MyCustomOrigin" + key: "Server", + value: "MyCustomOrigin" } ], "set-cookie": [ { - "key": "Set-Cookie", - "value": "theme=light" + key: "Set-Cookie", + value: "theme=light" }, { - "key": "Set-Cookie", - "value": "sessionToken=abc123; Expires=Wed, 09 Jun 2021 10:18:14 GMT" + key: "Set-Cookie", + value: "sessionToken=abc123; Expires=Wed, 09 Jun 2021 10:18:14 GMT" } ] } @@ -547,5 +578,8 @@ context.fail(str); /* Handler */ let handler: AWSLambda.Handler = (event: any, context: AWSLambda.Context, cb: AWSLambda.Callback) => { }; +let asyncHandler: AWSLambda.Handler = async (event: any, context: AWSLambda.Context, cb: AWSLambda.Callback) => { }; let proxyHandler: AWSLambda.ProxyHandler = (event: AWSLambda.APIGatewayEvent, context: AWSLambda.Context, cb: AWSLambda.ProxyCallback) => { }; -let CustomAuthorizerHandler: AWSLambda.CustomAuthorizerHandler = (event: AWSLambda.CustomAuthorizerEvent, context: AWSLambda.Context, cb: AWSLambda.CustomAuthorizerCallback) => { }; +let asyncProxyHandler: AWSLambda.ProxyHandler = async (event: AWSLambda.APIGatewayEvent, context: AWSLambda.Context, cb: AWSLambda.ProxyCallback) => { }; +let customAuthorizerHandler: AWSLambda.CustomAuthorizerHandler = (event: AWSLambda.CustomAuthorizerEvent, context: AWSLambda.Context, cb: AWSLambda.CustomAuthorizerCallback) => { }; +let asyncCustomAuthorizerHandler: AWSLambda.CustomAuthorizerHandler = async (event: AWSLambda.CustomAuthorizerEvent, context: AWSLambda.Context, cb: AWSLambda.CustomAuthorizerCallback) => { }; diff --git a/types/aws-lambda/index.d.ts b/types/aws-lambda/index.d.ts index 172ee69210..8c95011f87 100644 --- a/types/aws-lambda/index.d.ts +++ b/types/aws-lambda/index.d.ts @@ -12,14 +12,16 @@ // Daniel Cottone // Kostya Misura // Markus Tacker +// Palmi Valgeirsson +// Danilo Raisi // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.2 // API Gateway "event" request context -interface APIGatewayEventRequestContext { +export interface APIGatewayEventRequestContext { accountId: string; apiId: string; - authorizer?: AuthResponseContext | null | undefined; + authorizer?: AuthResponseContext | null; httpMethod: string; identity: { accessKey: string | null; @@ -34,15 +36,16 @@ interface APIGatewayEventRequestContext { user: string | null; userAgent: string | null; userArn: string | null; - }, + }; stage: string; requestId: string; + requestTimeEpoch: number; resourceId: string; resourcePath: string; } // API Gateway "event" -interface APIGatewayEvent { +export interface APIGatewayEvent { body: string | null; headers: { [name: string]: string }; httpMethod: string; @@ -56,7 +59,7 @@ interface APIGatewayEvent { } // API Gateway CustomAuthorizer "event" -interface CustomAuthorizerEvent { +export interface CustomAuthorizerEvent { type: string; methodArn: string; authorizationToken?: string; @@ -68,22 +71,22 @@ interface CustomAuthorizerEvent { // Context // http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_AttributeValue.html -interface AttributeValue { +export interface AttributeValue { B?: string; - BS?: Array; + BS?: string[]; BOOL?: boolean; - L?: Array; + L?: AttributeValue[]; M?: { [id: string]: AttributeValue }; - N?: number; - NS?: Array; + N?: string; + NS?: string[]; NULL?: boolean; S?: string; - SS?: Array; + SS?: string[]; } // Context // http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_StreamRecord.html -interface StreamRecord { +export interface StreamRecord { ApproximateCreationTime?: number; Keys?: { [key: string]: AttributeValue }; NewImage?: { [key: string]: AttributeValue }; @@ -95,7 +98,7 @@ interface StreamRecord { // Context // http://docs.aws.amazon.com/amazondynamodb/latest/APIReference/API_streams_Record.html -interface DynamoDBRecord { +export interface DynamoDBRecord { awsRegion?: string; dynamodb?: StreamRecord; eventID?: string; @@ -109,21 +112,21 @@ interface DynamoDBRecord { // AWS Lambda Stream event // Context // http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-ddb-update -interface DynamoDBStreamEvent { - Records: Array; +export interface DynamoDBStreamEvent { + Records: DynamoDBRecord[]; } // SNS "event" -interface SNSMessageAttribute { +export interface SNSMessageAttribute { Type: string; Value: string; } -interface SNSMessageAttributes { +export interface SNSMessageAttributes { [name: string]: SNSMessageAttribute; } -interface SNSMessage { +export interface SNSMessage { SignatureVersion: string; Timestamp: string; Signature: string; @@ -137,37 +140,37 @@ interface SNSMessage { Subject: string; } -interface SNSEventRecord { +export interface SNSEventRecord { EventVersion: string; EventSubscriptionArn: string; EventSource: string; Sns: SNSMessage; } -interface SNSEvent { - Records: Array; +export interface SNSEvent { + Records: SNSEventRecord[]; } /** * S3Create event * https://docs.aws.amazon.com/AmazonS3/latest/dev/notification-content-structure.html */ -interface S3EventRecord { +export interface S3EventRecord { eventVersion: string; eventSource: string; - awsRegion: string + awsRegion: string; eventTime: string; eventName: string; userIdentity: { principalId: string; - }, + }; requestParameters: { sourceIPAddress: string; - }, + }; responseElements: { 'x-amz-request-id': string; 'x-amz-id-2': string; - }, + }; s3: { s3SchemaVersion: string; configurationId: string; @@ -185,20 +188,41 @@ interface S3EventRecord { versionId: string; sequencer: string; } - } + }; } -interface S3CreateEvent { - Records: Array; +export interface S3CreateEvent { + Records: S3EventRecord[]; } /** * Cognito User Pool event * http://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools-working-with-aws-lambda-triggers.html */ -interface CognitoUserPoolEvent { +export interface CognitoUserPoolEvent { version: number; - triggerSource: "PreSignUp_SignUp" | "PostConfirmation_ConfirmSignUp" | "PreAuthentication_Authentication" | "PostAuthentication_Authentication" | "CustomMessage_SignUp" | "CustomMessage_AdminCreateUser" | "CustomMessage_ResendCode" | "CustomMessage_ForgotPassword" | "CustomMessage_UpdateUserAttribute" | "CustomMessage_VerifyUserAttribute" | "CustomMessage_Authentication" | "DefineAuthChallenge_Authentication" | "CreateAuthChallenge_Authentication" | "VerifyAuthChallengeResponse_Authentication"; + triggerSource: + | "PreSignUp_SignUp" + | "PostConfirmation_ConfirmSignUp" + | "PreAuthentication_Authentication" + | "PostAuthentication_Authentication" + | "CustomMessage_SignUp" + | "CustomMessage_AdminCreateUser" + | "CustomMessage_ResendCode" + | "CustomMessage_ForgotPassword" + | "CustomMessage_UpdateUserAttribute" + | "CustomMessage_VerifyUserAttribute" + | "CustomMessage_Authentication" + | "DefineAuthChallenge_Authentication" + | "CreateAuthChallenge_Authentication" + | "VerifyAuthChallengeResponse_Authentication" + | "PreSignUp_AdminCreateUser" + | "PostConfirmation_ConfirmForgotPassword" + | "TokenGeneration_HostedAuth" + | "TokenGeneration_Authentication" + | "TokenGeneration_NewPasswordChallenge" + | "TokenGeneration_AuthenticateDevice" + | "TokenGeneration_RefreshTokens"; region: string; userPoolId: string; userName?: string; @@ -212,11 +236,11 @@ interface CognitoUserPoolEvent { codeParameter?: string; usernameParameter?: string; newDeviceUsed?: boolean; - session?: { + session?: Array<{ challengeName: "CUSTOM_CHALLENGE" | "PASSWORD_VERIFIER" | "SMS_MFA" | "DEVICE_SRP_AUTH" | "DEVICE_PASSWORD_VERIFIER" | "ADMIN_NO_SRP_AUTH"; challengeResult: boolean; challengeMetaData?: string; - }[]; + }>; challengeName?: string; privateChallengeParameters?: {[key: string]: string}; challengeAnswer?: {[key: string]: string}; @@ -240,7 +264,7 @@ interface CognitoUserPoolEvent { * CloudFormation Custom Resource event and response * http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/crpg-ref.html */ -type CloudFormationCustomResourceEventCommon = { +export interface CloudFormationCustomResourceEventCommon { ServiceToken: string; ResponseURL: string; StackId: string; @@ -250,14 +274,14 @@ type CloudFormationCustomResourceEventCommon = { ResourceProperties: { ServiceToken: string; [Key: string]: any; - } + }; } -type CloudFormationCustomResourceCreateEvent = CloudFormationCustomResourceEventCommon & { +export interface CloudFormationCustomResourceCreateEvent extends CloudFormationCustomResourceEventCommon { RequestType: "Create"; } -type CloudFormationCustomResourceUpdateEvent = CloudFormationCustomResourceEventCommon & { +export interface CloudFormationCustomResourceUpdateEvent extends CloudFormationCustomResourceEventCommon { RequestType: "Update"; PhysicalResourceId: string; OldResourceProperties: { @@ -265,38 +289,81 @@ type CloudFormationCustomResourceUpdateEvent = CloudFormationCustomResourceEvent }; } -type CloudFormationCustomResourceDeleteEvent = CloudFormationCustomResourceEventCommon & { +export interface CloudFormationCustomResourceDeleteEvent extends CloudFormationCustomResourceEventCommon { RequestType: "Delete"; PhysicalResourceId: string; } export type CloudFormationCustomResourceEvent = CloudFormationCustomResourceCreateEvent | CloudFormationCustomResourceUpdateEvent | CloudFormationCustomResourceDeleteEvent; -type CloudFormationCustomResourceResponseCommon = { +export interface CloudFormationCustomResourceResponseCommon { PhysicalResourceId: string; StackId: string; RequestId: string; LogicalResourceId: string; Data?: { [Key: string]: any; - } + }; } -type CloudFormationCustomResourceSuccessResponse = CloudFormationCustomResourceResponseCommon & { +export interface CloudFormationCustomResourceSuccessResponse extends CloudFormationCustomResourceResponseCommon { Status: "SUCCESS"; Reason?: string; } -type CloudFormationCustomResourceFailedResponse = CloudFormationCustomResourceResponseCommon & { +export interface CloudFormationCustomResourceFailedResponse extends CloudFormationCustomResourceResponseCommon { Status: "FAILED"; Reason: string; } export type CloudFormationCustomResourceResponse = CloudFormationCustomResourceSuccessResponse | CloudFormationCustomResourceFailedResponse; +/** + * See https://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-scheduled-event + */ +export interface ScheduledEvent { + account: string; + region: string; + detail: any; + "detail-type": string; + source: string; + time: string; + id: string; + resources: string[]; +} + +/** + * See http://docs.aws.amazon.com/lambda/latest/dg/eventsources.html#eventsources-cloudwatch-logs + */ +export interface CloudWatchLogsEvent { + awslogs: CloudWatchLogsEventData; +} + +export interface CloudWatchLogsEventData { + data: string; +} + +export interface CloudWatchLogsDecodedData { + owner: string; + logGroup: string; + logStream: string; + subscriptionFilters: string[]; + messageType: string; + logEvents: CloudWatchLogsLogEvent[]; +} + +/** + * See http://docs.aws.amazon.com/AmazonCloudWatch/latest/logs/SubscriptionFilters.html#LambdaFunctionExample + */ +export interface CloudWatchLogsLogEvent { + id: string; + timestamp: number; + message: string; +} + // Context // http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-context.html -interface Context { +export interface Context { // Properties callbackWaitsForEmptyEventLoop: boolean; functionName: string; @@ -315,25 +382,23 @@ interface Context { // Functions for compatibility with earlier Node.js Runtime v0.10.42 // For more details see http://docs.aws.amazon.com/lambda/latest/dg/nodejs-prog-model-using-old-runtime.html#nodejs-prog-model-oldruntime-context-methods done(error?: Error, result?: any): void; - fail(error: Error): void; - fail(message: string): void; - succeed(message: string): void; - succeed(object: any): void; + fail(error: Error | string): void; + succeed(messageOrObject: any): void; succeed(message: string, object: any): void; } -interface CognitoIdentity { +export interface CognitoIdentity { cognitoIdentityId: string; cognitoIdentityPoolId: string; } -interface ClientContext { +export interface ClientContext { client: ClientContextClient; Custom?: any; env: ClientContextEnv; } -interface ClientContextClient { +export interface ClientContextClient { installationId: string; appTitle: string; appVersionName: string; @@ -341,7 +406,7 @@ interface ClientContextClient { appPackageName: string; } -interface ClientContextEnv { +export interface ClientContextEnv { platformVersion: string; platform: string; make: string; @@ -349,11 +414,11 @@ interface ClientContextEnv { locale: string; } -interface ProxyResult { +export interface ProxyResult { statusCode: number; headers?: { [header: string]: boolean | number | string; - }, + }; body: string; isBase64Encoded?: boolean; } @@ -362,7 +427,7 @@ interface ProxyResult { * API Gateway CustomAuthorizer AuthResponse. * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output */ -interface AuthResponse { +export interface AuthResponse { principalId: string; policyDocument: PolicyDocument; context?: AuthResponseContext; @@ -372,7 +437,7 @@ interface AuthResponse { * API Gateway CustomAuthorizer AuthResponse.PolicyDocument. * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output */ -interface PolicyDocument { +export interface PolicyDocument { Version: string; Statement: [Statement]; } @@ -381,7 +446,7 @@ interface PolicyDocument { * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement. * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output */ -interface Statement { +export interface Statement { Action: string | string[]; Effect: string; Resource: string | string[]; @@ -391,7 +456,7 @@ interface Statement { * API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement. * http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output */ -interface AuthResponseContext { +export interface AuthResponseContext { [name: string]: string | number | boolean; } @@ -399,50 +464,50 @@ interface AuthResponseContext { * CloudFront events * http://docs.aws.amazon.com/AmazonCloudFront/latest/DeveloperGuide/lambda-event-structure.html */ -type CloudFrontHeaders = { - [name: string]: { - key: string; - value: string; - }[] -}; +export interface CloudFrontHeaders { + [name: string]: Array<{ + key: string; + value: string; + }>; +} -type CloudFrontResponse = { +export interface CloudFrontResponse { status: string; statusDescription: string; headers: CloudFrontHeaders; -}; +} -type CloudFrontRequest = { +export interface CloudFrontRequest { clientIp: string; method: string; uri: string; querystring: string; headers: CloudFrontHeaders; -}; +} -type CloudFrontEvent = { +export interface CloudFrontEvent { config: { distributionId: string; requestId: string; - } + }; } -export type CloudFrontResponseEvent = { - Records: { +export interface CloudFrontResponseEvent { + Records: Array<{ cf: CloudFrontEvent & { request: CloudFrontRequest; response: CloudFrontResponse; } - }[] -}; + }>; +} -export type CloudFrontRequestEvent = { - Records: { +export interface CloudFrontRequestEvent { + Records: Array<{ cf: CloudFrontEvent & { request: CloudFrontRequest; } - }[] -}; + }>; +} /** * AWS Lambda handler function. @@ -452,9 +517,9 @@ export type CloudFrontRequestEvent = { * @param context – runtime information of the Lambda function that is executing. * @param callback – optional callback to return information to the caller, otherwise return value is null. */ -export type Handler = (event: any, context: Context, callback?: Callback) => void; -export type ProxyHandler = (event: APIGatewayEvent, context: Context, callback?: ProxyCallback) => void; -export type CustomAuthorizerHandler = (event: CustomAuthorizerEvent, context: Context, callback?: CustomAuthorizerCallback) => void; +export type Handler = (event: any, context: Context, callback?: Callback) => Promise | void; +export type ProxyHandler = (event: APIGatewayEvent, context: Context, callback?: ProxyCallback) => Promise | void; +export type CustomAuthorizerHandler = (event: CustomAuthorizerEvent, context: Context, callback?: CustomAuthorizerCallback) => Promise | void; /** * Optional callback parameter. diff --git a/types/aws-lambda/tslint.json b/types/aws-lambda/tslint.json index a41bf5d19a..bafaae7817 100644 --- a/types/aws-lambda/tslint.json +++ b/types/aws-lambda/tslint.json @@ -1,79 +1,7 @@ { "extends": "dtslint/dt.json", "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + // TODO + "dt-header": false } } diff --git a/types/aws-serverless-express/index.d.ts b/types/aws-serverless-express/index.d.ts index 02ef0d846a..14569396db 100644 --- a/types/aws-serverless-express/index.d.ts +++ b/types/aws-serverless-express/index.d.ts @@ -1,6 +1,9 @@ -// Type definitions for aws-serverless-express 2.1 +// Type definitions for aws-serverless-express 3.0 // Project: https://github.com/awslabs/aws-serverless-express -// Definitions by: Ben Speakman , Josh Caffey , Matthias Meyer +// Definitions by: Ben Speakman +// Josh Caffey +// Matthias Meyer +// Alberto Vasquez // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -9,7 +12,7 @@ import * as http from 'http'; import * as lambda from 'aws-lambda'; export function createServer( - requestListener: (request: http.IncomingMessage, response: http.ServerResponse) => http.Server, + requestListener: (request: http.IncomingMessage, response: http.ServerResponse) => void, serverListenCallback?: () => any, binaryMimeTypes?: string[] ): http.Server; diff --git a/types/bardjs/bardjs-tests.ts b/types/bardjs/bardjs-tests.ts index 52f5ab1d3f..de656bc22e 100644 --- a/types/bardjs/bardjs-tests.ts +++ b/types/bardjs/bardjs-tests.ts @@ -5,7 +5,7 @@ var expect = chai.expect, assert = chai.assert; class MyService { - constructor(private $q: angular.IQService) {} + constructor(private readonly $q: angular.IQService) {} remoteCall(): angular.IPromise { return new this.$q((resolve, reject) => { diff --git a/types/bech32/bech32-tests.ts b/types/bech32/bech32-tests.ts new file mode 100644 index 0000000000..7fd04abe56 --- /dev/null +++ b/types/bech32/bech32-tests.ts @@ -0,0 +1,19 @@ +import * as bech32 from 'bech32'; + +// Test decode +const testString = 'abcdef1qpzry9x8gf2tvdw0s3jn54khce6mua7lmqqqxw'; +const decoded = bech32.decode(testString); +// Test decode with limit +bech32.decode(testString, testString.length); +decoded.prefix; +decoded.words; + +// Test convert from/to words +const words: Buffer = bech32.toWords(Buffer.from('foobar', 'utf8')); +bech32.fromWords(words); + +// Test encode +const testPrefix = 'foo'; +bech32.encode(testPrefix, words); +// Test encode with limit +bech32.encode(testPrefix, words, testPrefix.length + 7 + words.length); diff --git a/types/bech32/index.d.ts b/types/bech32/index.d.ts new file mode 100644 index 0000000000..878d56a6a6 --- /dev/null +++ b/types/bech32/index.d.ts @@ -0,0 +1,14 @@ +// Type definitions for bech32 1.1 +// Project: https://github.com/bitcoinjs/bech32 +// Definitions by: Satana Charuwichitratana +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +export function decode(str: string, LIMIT?: number): { prefix: string, words: Buffer }; + +export function encode(prefix: string, words: Buffer, LIMIT?: number): string; + +export function fromWords(words: Buffer): Buffer; + +export function toWords(bytes: Buffer): Buffer; diff --git a/types/bech32/tsconfig.json b/types/bech32/tsconfig.json new file mode 100644 index 0000000000..886ec79796 --- /dev/null +++ b/types/bech32/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bech32-tests.ts" + ] +} diff --git a/types/bech32/tslint.json b/types/bech32/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/bech32/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/better-scroll/better-scroll-tests.ts b/types/better-scroll/better-scroll-tests.ts deleted file mode 100644 index 1c8f336f4f..0000000000 --- a/types/better-scroll/better-scroll-tests.ts +++ /dev/null @@ -1,70 +0,0 @@ -import BScroll = require("better-scroll"); - -const BScroll1 = new BScroll('#wrapper'); -const BScroll2 = new BScroll('#wrapper', { scrollX: false, scrollY: false }); -const BScroll3 = new BScroll('#wrapper', { - snap: true, - wheel: false, - scrollbar: false, - pullDownRefresh: false, -}); -const BScroll4 = new BScroll('#wrapper', { - wheel: { - selectedIndex: 0, - }, -}); -if (document.querySelector('div-test')) { - const BScroll6 = new BScroll('#wrapper', { - snap: { - loop: false, - el: document.querySelector('div-test')!, - threshold: 0.1, - stepX: 100, - stepY: 100, - listenFlick: true, - }, - }); -} -const BScroll7 = new BScroll('#wrapper', { - scrollbar: { - fade: true, - }, -}); - -const BScroll8 = new BScroll('#wrapper', { - pullDownRefresh: { - threshold: 50, - stop: 20, - }, -}); - -BScroll1.refresh(); -BScroll1.scrollTo(0, 100); -BScroll1.scrollTo(0, 100, 200); - -BScroll1.scrollToElement('selectedElement'); -BScroll1.scrollToElement('selectedElement', 250); - -BScroll1.scrollToElement(document.getElementById('selectedElement')!); -BScroll1.scrollToElement(document.getElementById('selectedElement')!, 250); - -BScroll2.on('scrollStart', () => { console.log('scroll started'); }); - -const BScroll9 = new BScroll(document.getElementById('wrapper')!); -const BScroll10 = new BScroll(document.getElementById('wrapper')!, { freeScroll: true }); -const BScroll11 = new BScroll(document.getElementById('wrapper')!, { - preventDefaultException: { - tagName: /^(INPUT|TEXTAREA|BUTTON|SELECT)$/, - }, -}); -const BScroll12 = new BScroll(document.getElementById('wrapper')!, { - preventDefaultException: { - className: /(^|\s)test(\s|$)/, - }, -}); - -const BScroll13 = new BScroll(document.getElementById('wrapper')!, { - swipeBounceTime: 1000, -}); - -const BScroll14 = new BScroll('#wrapper', { disableMouse: true, disableTouch: false }); diff --git a/types/better-scroll/index.d.ts b/types/better-scroll/index.d.ts deleted file mode 100644 index 3f48fed9db..0000000000 --- a/types/better-scroll/index.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -// Type definitions for better-scroll.js 1.4 -// Project: https://github.com/ustbhuangyi/better-scroll -// Definitions by: linxiaowu66 -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.2 -interface WheelOption { - selectedIndex: number; - rotate?: number; - adjustTime?: number; - wheelWrapperClass?: string; - wheelItemClass?: string; -} - -interface SlideOption { - loop?: boolean; - el?: Element; - threshold?: number; - stepX?: number; - stepY?: number; - listenFlick?: boolean; - speed?: number; -} -interface ScrollBarOption { - fade?: boolean; -} -interface PullDownOption { - threshold?: number; - stop?: number; -} -interface PullUpOption { - threshold?: number; -} -interface PageOption { - x: number; - y: number; - pageX: number; - pageY: number; -} -interface BsOption { - startX?: number; - startY?: number; - scrollX?: boolean; - scrollY?: boolean; - freeScroll?: boolean; - directionLockThreshold?: number; - eventPassthrough?: string | boolean; - click?: boolean; - tap?: boolean; - bounce?: boolean; - bounceTime?: number; - momentum?: boolean; - momentumLimitTime?: number; - momentumLimitDistance?: number; - swipeTime?: number; - swipeBounceTime?: number; - deceleration?: number; - flickLimitTime?: number; - flickLimitDistance?: number; - resizePolling?: number; - probeType?: number; - preventDefault?: boolean; - preventDefaultException?: object; - HWCompositing?: boolean; - useTransition?: boolean; - useTransform?: boolean; - bindToWrapper?: boolean; - disableMouse?: boolean; - disableTouch?: boolean; - /** - * for picker - * wheel: { - * selectedIndex: 0; - * rotate: 25; - * adjustTime: 400; - * wheelWrapperClass: 'wheel-scroll'; - * wheelItemClass: 'wheel-item'; - * } - */ - wheel?: Partial | boolean; - /** - * for slide - * snap: { - * loop?: boolean; - * el: domEl; - * threshold: 0.1; - * stepX: 100; - * stepY: 100; - * listenFlick: true - * } - */ - snap?: Partial | boolean; - /** - * for scrollbar - * scrollbar: { - * fade: true - * } - */ - scrollbar?: Partial | boolean; - /** - * for pull down and refresh - * pullDownRefresh: { - * threshold: 50; - * stop: 20 - * } - */ - pullDownRefresh?: Partial | boolean; - /** - * for pull up and load - * pullUpLoad: { - * threshold: 50 - * } - */ - pullUpLoad?: Partial | boolean; -} -declare class BScroll { - constructor(element: Element | string, options?: BsOption); - // 重新计算 better-scroll,当 DOM 结构发生变化的时候务必要调用确保滚动的效果正常 - x: number; - y: number; - maxScrollX: number; - maxScrollY: number; - movingDirectionX: number; - movingDirectionY: number; - directionX: number; - directionY: number; - enabled: boolean; - isInTransition: boolean; - isAnimating: boolean; - options: BsOption; - - refresh(): void; - // 启用 better-scroll; 默认 开启 - enable(): void; - // 禁用 better-scroll,DOM 事件(如 touchstart、touchmove、touchend)的回调函数不再响应 - disable(): void; - // 相对于当前位置偏移滚动 x;y 的距离 - scrollBy(x: number, y: number, time?: number, easing?: object): void; - // 滚动到指定的位置 - scrollTo(x: number, y: number, time?: number, easing?: object): void; - // 滚动到指定的目标元素 - scrollToElement(el: HTMLElement | string, time?: number, offsetX?: number | boolean, offsetY?: number | boolean, easing?: object): void; - // 立即停止当前运行的滚动动画 - stop(): void; - // 销毁 better-scroll,解绑事件 - destroy(): void; - - // 当我们做 slide 组件的时候,slide 通常会分成多个页面。调用此方法可以滚动到指定的页面。 - goToPage(x: number, y: number, time?: number, easing?: object): void; - // 滚动到下一个页面 - next(time: number, easing: object): void; - // 滚动到上一个页面 - prev(time: number, easing: object): void; - // 获取当前页面的信息 - getCurrentPage(): PageOption; - // 当我们做 picker 组件的时候,调用该方法可以滚动到索引对应的位置 - wheelTo(index: number): void; - // 获取当前选中的索引值 - getSelectedIndex(): number; - // 当下拉刷新数据加载完毕后,需要调用此方法告诉 better-scroll 数据已加载 - finishPullDown(): void; - // 当上拉加载数据加载完毕后,需要调用此方法告诉 better-scroll 数据已加载 - finishPullUp(): void; - - // 监听事件 - on(type: string, fn: (evt?: any) => void): void; - off(type: string, fn?: (evt?: any) => void): void; -} - -export = BScroll; diff --git a/types/big.js/index.d.ts b/types/big.js/index.d.ts index eac22f59c7..37f51a54bd 100644 --- a/types/big.js/index.d.ts +++ b/types/big.js/index.d.ts @@ -275,6 +275,18 @@ export interface Big { * the value of Big.E_POS and Big.E_NEG. By default, Big numbers correspond to Javascript's number type in this regard. */ toJSON(): string; + /** + * Returns an array of single digits + */ + c: number[]; + /** + * Returns the exponent, Integer, -1e+6 to 1e+6 inclusive + */ + e: number; + /** + * Returns the sign, -1 or 1 + */ + s: number; } export const Big: BigConstructor; diff --git a/types/big.js/test/big.js-global-tests.ts b/types/big.js/test/big.js-global-tests.ts index ef57a3880d..578391de7b 100644 --- a/types/big.js/test/big.js-global-tests.ts +++ b/types/big.js/test/big.js-global-tests.ts @@ -197,6 +197,24 @@ function toJSONTests() { JSON.parse(str, (k, v) => k === '' ? v : new Big(v)); // Returns an array of three Big numbers. } +// test Big.c +function coefficientTests() { + const x = new Big('123'); + x.c; // [1,2,3] +} + +// test Big.e +function exponentTests() { + const x = new Big('123e+20'); + x.e; // 22 +} + +// test Big.s +function signTests() { + const x = new Big('-123'); + x.s; // -1 +} + // see http://mikemcl.github.io/big.js/#faq // "How can I simultaneously use different decimal places and/or rounding mode settings for different Big numbers?" function testMultipleConstructors() { diff --git a/types/big.js/test/big.js-module-tests.ts b/types/big.js/test/big.js-module-tests.ts index 7cd246ffd4..056d41727b 100644 --- a/types/big.js/test/big.js-module-tests.ts +++ b/types/big.js/test/big.js-module-tests.ts @@ -199,6 +199,24 @@ function toJSONTests() { JSON.parse(str, (k, v) => k === '' ? v : new Big(v)); // Returns an array of three Big numbers. } +// test Big.c +function coefficientTests() { + const x = new Big('123'); + x.c; // [1, 2, 3] +} + +// test Big.e +function exponentTests() { + const x = new Big('123e+20'); + x.e; // 22 +} + +// test Big.s +function signTests() { + const x = new Big('-123'); + x.s; // -1 +} + // see http://mikemcl.github.io/big.js/#faq // "How can I simultaneously use different decimal places and/or rounding mode settings for different Big numbers?" function testMultipleConstructors() { diff --git a/types/big.js/tslint.json b/types/big.js/tslint.json index f93cf8562a..3224b40b8b 100644 --- a/types/big.js/tslint.json +++ b/types/big.js/tslint.json @@ -1,3 +1,6 @@ { - "extends": "dtslint/dt.json" + "extends": "dtslint/dt.json", + "rules": { + "no-const-enum": false + } } diff --git a/types/bignumber.js/bignumber.js-tests.ts b/types/bignumber.js/bignumber.js-tests.ts deleted file mode 100644 index 424665d8ba..0000000000 --- a/types/bignumber.js/bignumber.js-tests.ts +++ /dev/null @@ -1,443 +0,0 @@ -let x: BigNumber.BigNumber = new BigNumber(9); -let y = new BigNumber(x); - -BigNumber(435.345); - -new BigNumber('5032485723458348569331745.33434346346912144534543'); -new BigNumber('4.321e+4'); -new BigNumber('-735.0918e-430'); -new BigNumber(Infinity); -new BigNumber(NaN); -new BigNumber('.5'); -new BigNumber('+2'); -new BigNumber(-10110100.1, 2); -new BigNumber(-0b10110100); -new BigNumber('123412421.234324', 5); -new BigNumber('ff.8', 16); -new BigNumber('0xff.8'); - -new BigNumber(9, 2); - -new BigNumber(96517860459076817.4395); - -new BigNumber('blurgh'); - -BigNumber.config({ DECIMAL_PLACES: 5 }); -new BigNumber(1.23456789); -new BigNumber(1.23456789, 10); - -BigNumber.config({ DECIMAL_PLACES: 5 }); -let BN = BigNumber.another({ DECIMAL_PLACES: 9 }); - -x = new BigNumber(1); -y = new BN(1); - -x.div(3); -y.div(3); - -BN = BigNumber.another(); -BN.config({ DECIMAL_PLACES: 9 }); - -BigNumber.config({ DECIMAL_PLACES: 5 }); -BigNumber.set({ DECIMAL_PLACES: 5 }); -BigNumber.config(5); - -BigNumber.config({ ROUNDING_MODE: 0 }); -BigNumber.config(undefined, BigNumber.ROUND_UP); - -BigNumber.config({ EXPONENTIAL_AT: 2 }); -new BigNumber(12.3); -new BigNumber(123); -new BigNumber(0.123); -new BigNumber(0.0123); - -BigNumber.config({ EXPONENTIAL_AT: [-7, 20] }); -new BigNumber(123456789); -new BigNumber(0.000000123); - -BigNumber.config({ EXPONENTIAL_AT: 1e+9 }); - -BigNumber.config({ EXPONENTIAL_AT: 0 }); - -BigNumber.config({ RANGE: 500 }); -BigNumber.config().RANGE; -new BigNumber('9.999e499'); -new BigNumber('1e500'); -new BigNumber('1e-499'); -new BigNumber('1e-500'); - -BigNumber.config({ RANGE: [-3, 4] }); -new BigNumber(99999); -new BigNumber(100000); -new BigNumber(0.001); -new BigNumber(0.0001); - -BigNumber.config({ ERRORS: false }); - -BigNumber.config({ CRYPTO: true }); -BigNumber.config().CRYPTO; -BigNumber.random(); - -BigNumber.config({ MODULO_MODE: BigNumber.EUCLID }); -BigNumber.config({ MODULO_MODE: 9 }); - -BigNumber.config({ POW_PRECISION: 100 }); - -BigNumber.config({ - FORMAT: { - decimalSeparator: '.', - groupSeparator: ',', - groupSize: 3, - secondaryGroupSize: 0, - fractionGroupSeparator: ' ', - fractionGroupSize: 0 - } -}); - -BigNumber.config({ - DECIMAL_PLACES: 40, - ROUNDING_MODE: BigNumber.ROUND_HALF_CEIL, - EXPONENTIAL_AT: [-10, 20], - RANGE: [-500, 500], - ERRORS: true, - CRYPTO: true, - MODULO_MODE: BigNumber.ROUND_FLOOR, - POW_PRECISION: 80, - FORMAT: { - groupSize: 3, - groupSeparator: ' ', - decimalSeparator: ',' - } -}); - -BigNumber.config(40, 7, [-10, 20], 500, 1, 1, 3, 80); - -const obj = BigNumber.config(); -obj.ERRORS; -obj.RANGE; - -x = new BigNumber('3257869345.0378653'); -BigNumber.max(4e9, x, '123456789.9'); - -let arr = [12, '13', new BigNumber(14)]; -BigNumber.max(arr); - -x = new BigNumber('3257869345.0378653'); -BigNumber.min(4e9, x, '123456789.9'); - -arr = [2, new BigNumber(-14), '-15.9999', -12]; -BigNumber.min(arr); - -BigNumber.config({ DECIMAL_PLACES: 10 }); -BigNumber.random(); -BigNumber.random(20); - -BigNumber.config({ ROUNDING_MODE: BigNumber.ROUND_CEIL }); -BigNumber.config({ ROUNDING_MODE: 2 }); - -x = new BigNumber(-0.8); -y = x.absoluteValue(); -let z = y.abs(); - -x = new BigNumber(1.3); -x.ceil(); -y = new BigNumber(-1.8); -y.ceil(); - -x = new BigNumber(Infinity); -y = new BigNumber(5); -x.comparedTo(y); -x.comparedTo(x.minus(1)); -y.cmp(NaN); -y.cmp('110', 2); - -x = new BigNumber(123.45); -x.decimalPlaces(); -y = new BigNumber('9.9e-101'); -y.dp(); - -x = new BigNumber(355); -y = new BigNumber(113); -x.dividedBy(y); -x.div(5); -x.div(47, 16); - -x = new BigNumber(5); -y = new BigNumber(3); -x.dividedToIntegerBy(y); -x.divToInt(0.7); -x.divToInt('0.f', 16); - -0 === 1e-324; -x = new BigNumber(0); -x.equals('1e-324'); -BigNumber(-0).eq(x); -BigNumber(255).eq('ff', 16); - -y = new BigNumber(NaN); -y.equals(NaN); - -x = new BigNumber(1.8); -x.floor(); -y = new BigNumber(-1.3); -y.floor(); - -0.1 > (0.3 - 0.2); // tslint:disable-line binary-expression-operand-order -x = new BigNumber(0.1); -x.greaterThan(BigNumber(0.3).minus(0.2)); -BigNumber(0).gt(x); -BigNumber(11, 3).gt(11.1, 2); - -x = new BigNumber(0.3).minus(0.2); -x.greaterThanOrEqualTo(0.1); -BigNumber(1).gte(x); -BigNumber(10, 18).gte('i', 36); - -x = new BigNumber(1); -x.isFinite(); -y = new BigNumber(Infinity); -y.isFinite(); - -x = new BigNumber(1); -x.isInteger(); -y = new BigNumber(123.456); -y.isInt(); - -x = new BigNumber(NaN); -x.isNaN(); -y = new BigNumber('Infinity'); -y.isNaN(); - -x = new BigNumber(-0); -x.isNegative(); -y = new BigNumber(2); -y.isNeg(); - -x = new BigNumber(-0); -x.isZero() && x.isNeg(); -y = new BigNumber(Infinity); -y.isZero(); - -x = new BigNumber(0.3).minus(0.2); -x.lessThan(0.1); -BigNumber(0).lt(x); -BigNumber(11.1, 2).lt(11, 3); - -x = new BigNumber(0.1); -x.lessThanOrEqualTo(BigNumber(0.3).minus(0.2)); -BigNumber(-1).lte(x); -BigNumber(10, 18).lte('i', 36); - -x = new BigNumber(0.3); -x.minus(0.1); -x.sub(0.6, 20); - -x = new BigNumber(1); -x.modulo(0.9); -y = new BigNumber(33); -y.mod('a', 33); - -x = new BigNumber(1.8); -x.negated(); -y = new BigNumber(-1.3); -y.neg(); - -x = new BigNumber(0.1); -y = x.plus(0.2); -BigNumber(0.7).plus(x).add(y); -x.plus('0.1', 8); - -x = new BigNumber(1.234); -x.precision(); -y = new BigNumber(987000); -y.sd(); -y.sd(true); - -y = new BigNumber(x); -y.round(); -y.round(1); -y.round(2); -y.round(10); -y.round(0, 1); -y.round(0, 6); -y.round(1, 1); -y.round(1, BigNumber.ROUND_HALF_EVEN); - -x = new BigNumber(1.23); -x.shift(3); -x.shift(-3); - -x = new BigNumber(16); -x.squareRoot(); -y = new BigNumber(3); -y.sqrt(); - -x = new BigNumber(0.6); -y = x.times(3); -BigNumber('7e+500').times(y); -x.times('-a', 16); - -BigNumber.config({ DECIMAL_PLACES: 5, ROUNDING_MODE: 4 }); -x = new BigNumber(9876.54321); - -x.toDigits(); -x.toDigits(6); -x.toDigits(6, BigNumber.ROUND_UP); -x.toDigits(2); -x.toDigits(2, 1); - -y = new BigNumber(45.6); -y.toExponential(); -y.toExponential(0); -y.toExponential(1); -y.toExponential(1, 1); -y.toExponential(3); - -y = new BigNumber(3.456); -y.toFixed(); -y.toFixed(0); -y.toFixed(2); -y.toFixed(2, 1); -y.toFixed(5); - -const format = { - decimalSeparator: '.', - groupSeparator: ',', - groupSize: 3, - secondaryGroupSize: 0, - fractionGroupSeparator: ' ', - fractionGroupSize: 0 -}; -BigNumber.config({ FORMAT: format }); - -x = new BigNumber('123456789.123456789'); -x.toFormat(); -x.toFormat(1); - -format.groupSeparator = ' '; -format.fractionGroupSize = 5; -x.toFormat(); - -BigNumber.config({ - FORMAT: { - decimalSeparator: ',', - groupSeparator: '.', - groupSize: 3, - secondaryGroupSize: 2 - } -}); - -x.toFormat(6); - -x = new BigNumber(1.75); -x.toFraction(); - -const pi = new BigNumber('3.14159265358'); -pi.toFraction(); -pi.toFraction(100000); -pi.toFraction(10000); -pi.toFraction(100); -pi.toFraction(10); -pi.toFraction(1); - -x = new BigNumber('177.7e+457'); -y = new BigNumber(235.4325); -z = new BigNumber('0.0098074'); - -const str = JSON.stringify([x, y, z]); - -JSON.parse(str, (key, val) => key === '' ? val : new BigNumber(val)); - -x = new BigNumber(456.789); -x.toNumber(); -{ +x; } - -y = new BigNumber('45987349857634085409857349856430985'); -y.toNumber(); - -z = new BigNumber(-0); -1 / +z; -1 / z.toNumber(); - -x = new BigNumber(0.7); -x.toPower(2); -BigNumber(3).pow(-2); - -y = new BigNumber(45.6); -x.toPrecision(); -y.toPrecision(); -x.toPrecision(1); -y.toPrecision(1); -y.toPrecision(2, 0); -y.toPrecision(2, 1); -x.toPrecision(5); -y.toPrecision(5); - -x = new BigNumber(750000); -x.toString(); -BigNumber.config({ EXPONENTIAL_AT: 5 }); -x.toString(); - -y = new BigNumber(362.875); -y.toString(2); -y.toString(9); -y.toString(32); - -BigNumber.config({ DECIMAL_PLACES: 4 }); -z = new BigNumber('1.23456789'); -z.toString(); -z.toString(10); - -x = new BigNumber(123.456); -x.truncated(); -y = new BigNumber(-12.3); -y.trunc(); - -x = new BigNumber('-0'); -x.toString(); -x.valueOf(); -y = new BigNumber('1.777e+457'); -y.valueOf(); - -x = new BigNumber(0.123); -x.toExponential(); -x.c; -x.e; -x.s; - -z = new BigNumber('-123.4567000e+2'); -z.toExponential(); -z.c; -z.e; -z.s; - -x = new BigNumber(3); -x instanceof BigNumber; -x.isBigNumber; - -BN = BigNumber.another(); - -y = new BN(3); -y instanceof BigNumber; -y.isBigNumber; - -y = new BigNumber(-0); -y.c; -y.e; -y.s; - -try { - // ... -} catch (e) { - if (e instanceof Error && e.name === 'BigNumber Error') { - // ... - } -} - -x = new BigNumber("1.0"); -y = new BigNumber("1.1000"); -z = x.add(y); - -x = new BigNumber("1.20"); -y = new BigNumber("3.45000"); -z = x.mul(y); diff --git a/types/bignumber.js/index.d.ts b/types/bignumber.js/index.d.ts deleted file mode 100644 index ae7ec5b6f7..0000000000 --- a/types/bignumber.js/index.d.ts +++ /dev/null @@ -1,676 +0,0 @@ -// Type definitions for bignumber.js 4.0 -// Project: https://github.com/MikeMcl/bignumber.js/ -// Definitions by: Viktor Smirnov -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.1 - -declare var BigNumber: BigNumber.BigNumberStatic; - -export as namespace BigNumber; -export = BigNumber; - -declare namespace BigNumber { - interface FormatConfig { - /** - * The decimal separator. - */ - decimalSeparator: string; - - /** - * The grouping separator of the integer part. - */ - groupSeparator: string; - - /** - * The primary grouping size of the integer part. - */ - groupSize: number; - - /** - * The secondary grouping size of the integer part. - */ - secondaryGroupSize: number; - - /** - * The grouping separator of the fraction part. - */ - fractionGroupSeparator: string; - - /** - * The grouping size of the fraction part. - */ - fractionGroupSize: number; - } - - interface BigNumberConfig { - /** - * The maximum number of decimal places of the results of operations involving division, - * i.e. division, square root and base conversion operations, and power operations with negative exponents. - */ - DECIMAL_PLACES: number; - - /** - * The rounding mode used in the above operations and the default rounding mode of round, `toExponential`, `toFixed`, `toFormat` and `toPrecision`. - */ - ROUNDING_MODE: RoundingMode; - - /** - * The exponent value(s) at which `toString` returns exponential notation. - * - * If a single number is assigned, the value is the exponent magnitude. - * - * If an array of two numbers is assigned then the first number is the negative exponent value at and beneath which exponential notation is used, - * and the second number is the positive exponent value at and above which the same. - */ - EXPONENTIAL_AT: number | number[]; - - /** - * The exponent value(s) beyond which overflow to `Infinity` and underflow to zero occurs. - * - * If a single number is assigned, it is the maximum exponent magnitude: - * values wth a positive exponent of greater magnitude become `Infinity` - * and those with a negative exponent of greater magnitude become zero. - * - * If an array of two numbers is assigned then the first number is the negative exponent limit and the second number is the positive exponent limit. - */ - RANGE: number | number[]; - - /** - * The value that determines whether BigNumber Errors are thrown. - * - * If `ERRORS` is false, no errors will be thrown. - */ - ERRORS: boolean | 0 | 1; - - /** - * The value that determines whether cryptographically-secure pseudo-random number generation is used. - * - * If `CRYPTO` is set to `true` then the `random` method will generate random digits using `crypto.getRandomValues` in browsers that support it, - * or `crypto.randomBytes` if using a version of Node.js that supports it. - * - * If neither function is supported by the host environment then attempting to set `CRYPTO` to `true` will fail, and if `ERRORS` is `true` an exception will be thrown. - * - * If `CRYPTO` is `false` then the source of randomness used will be `Math.random` (which is assumed to generate at least `30` bits of randomness). - */ - CRYPTO: boolean | 0 | 1; - - /** - * The modulo mode used when calculating the modulus: `a mod n`. - * - * The quotient, `q = a / n`, is calculated according to the `ROUNDING_MODE` that corresponds to the chosen `MODULO_MODE`. - * - * The remainder, `r`, is calculated as: `r = a - n * q`. - */ - MODULO_MODE: ModuloMode; - - /** - * The maximum number of significant digits of the result of the power operation (unless a modulus is specified). - * - * If set to `0`, the number of signifcant digits will not be limited. - */ - POW_PRECISION: number; - - /** - * The `FORMAT` object configures the format of the string returned by the toFormat method. - */ - FORMAT: Partial; - } - - type NumberLike = number | string | BigNumber; - type RoundingMode = 0 | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; - type ModuloMode = RoundingMode | 9; - - interface BigNumberStatic { - /** - * Returns a new instance of a BigNumber object. - */ - (value: NumberLike, base?: number): BigNumber; - - /** - * Returns a new instance of a BigNumber object. - */ - new (value: NumberLike, base?: number): BigNumber; - - /** - * Returns a new independent BigNumber constructor with configuration as described by obj, or with the default configuration if obj is null or undefined. - */ - another(obj?: Partial): BigNumberStatic; - - /** - * Configures the settings for this particular BigNumber constructor. - * - */ - config(obj?: Partial): BigNumberConfig; - - /** - * Configures the settings for this particular BigNumber constructor. - */ - config( - DECIMAL_PLACES?: number, - ROUNDING_MODE?: RoundingMode, - EXPONENTIAL_AT?: number | number[], - RANGE?: number | number[], - ERRORS?: boolean | 0 | 1, - CRYPTO?: boolean | 0 | 1, - MODULO_MODE?: ModuloMode, - POW_PRECISION?: number - ): BigNumberConfig; - - /** - * Configures the settings for this particular BigNumber constructor. - */ - set(obj?: Partial): BigNumberConfig; - - /** - * Configures the settings for this particular BigNumber constructor. - */ - set( - DECIMAL_PLACES?: number, - ROUNDING_MODE?: RoundingMode, - EXPONENTIAL_AT?: number | number[], - RANGE?: number | number[], - ERRORS?: boolean | 0 | 1, - CRYPTO?: boolean | 0 | 1, - MODULO_MODE?: ModuloMode, - POW_PRECISION?: number - ): BigNumberConfig; - - /** - * Returns a BigNumber whose value is the maximum of `args`. - */ - max(...args: NumberLike[]): BigNumber; - - /** - * Returns a BigNumber whose value is the maximum of `args`. - */ - max(args: NumberLike[]): BigNumber; - - /** - * Returns a BigNumber whose value is the minimum of `args`. - */ - min(...args: NumberLike[]): BigNumber; - - /** - * Returns a BigNumber whose value is the minimum of `args`. - */ - min(args: NumberLike[]): BigNumber; - - /** - * Returns a new BigNumber with a pseudo-random value equal to or greater than `0` and less than `1`. - * - * The return value will have `dp` decimal places (or less if trailing zeros are produced). - * If `dp` is omitted then the number of decimal places will default to the current `DECIMAL_PLACES` setting. - * - * Depending on the value of this BigNumber constructor's `CRYPTO` setting and the support for the `crypto` object in the host environment, - * the random digits of the return value are generated by either - * `Math.random` (fastest), - * `crypto.getRandomValues` (Web Cryptography API in recent browsers) - * or `crypto.randomBytes` (Node.js). - * - * If `CRYPTO` is `true`, i.e. one of the `crypto` methods is to be used, - * the value of a returned BigNumber should be cryptographically-secure and statistically indistinguishable from a random value. - */ - random(dp?: number): BigNumber; - - /** - * Rounds away from zero - */ - ROUND_UP: 0; - - /** - * Rounds towards zero - */ - ROUND_DOWN: 1; - - /** - * Rounds towards `Infinity` - */ - ROUND_CEIL: 2; - - /** - * Rounds towards `-Infinity` - */ - ROUND_FLOOR: 3; - - /** - * Rounds towards nearest neighbour. - * If equidistant, rounds away from zero. - */ - ROUND_HALF_UP: 4; - - /** - * Rounds towards nearest neighbour. - * If equidistant, rounds towards zero. - */ - ROUND_HALF_DOWN: 5; - - /** - * Rounds towards nearest neighbour. - * If equidistant, rounds towards even neighbour. - */ - ROUND_HALF_EVEN: 6; - - /** - * Rounds towards nearest neighbour. - * If equidistant, rounds towards `Infinity`. - */ - ROUND_HALF_CEIL: 7; - - /** - * Rounds towards nearest neighbour. - * If equidistant, rounds towards `-Infinity`. - */ - ROUND_HALF_FLOOR: 8; - - /** - * The remainder is always positive. - * - * Euclidian division: `q = sign(n) * floor(a / abs(n))` - */ - EUCLID: 9; - } - - interface BigNumber { - /** - * Returns a BigNumber whose value is the absolute value, i.e. the magnitude, of the value of this BigNumber. - */ - absoluteValue(): BigNumber; - - /** - * Returns a BigNumber whose value is the absolute value, i.e. the magnitude, of the value of this BigNumber. - */ - abs(): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber rounded to a whole number in the direction of positive Infinity. - */ - ceil(): BigNumber; - - /** - * Returns - * - * `1` if the value of this BigNumber is greater than the value of `n` - * - * `-1` if the value of this BigNumber is less than the value of `n` - * - * `0` if this BigNumber and `n` have the same value - * - * `null` if the value of either this BigNumber or `n` is `NaN` - */ - comparedTo(n: NumberLike, base?: number): 1 | -1 | 0 | null; - - /** - * Returns - * - * `1` if the value of this BigNumber is greater than the value of `n` - * - * `-1` if the value of this BigNumber is less than the value of `n` - * - * `0` if this BigNumber and `n` have the same value - * - * `null` if the value of either this BigNumber or `n` is `NaN` - */ - cmp(n: NumberLike, base?: number): 1 | -1 | 0 | null; - - /** - * Return the number of decimal places of the value of this BigNumber, or `null` if the value of this BigNumber is `±Infinity` or `NaN`. - */ - decimalPlaces(): number; - - /** - * Return the number of decimal places of the value of this BigNumber, or `null` if the value of this BigNumber is `±Infinity` or `NaN`. - */ - dp(): number; - - /** - * Returns a BigNumber whose value is the value of this BigNumber divided by `n`, rounded according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` configuration. - */ - dividedBy(n: NumberLike, base?: number): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber divided by `n`, rounded according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` configuration. - */ - div(n: NumberLike, base?: number): BigNumber; - - /** - * Return a BigNumber whose value is the integer part of dividing the value of this BigNumber by `n`. - */ - dividedToIntegerBy(n: NumberLike, base?: number): BigNumber; - - /** - * Return a BigNumber whose value is the integer part of dividing the value of this BigNumber by `n`. - */ - divToInt(n: NumberLike, base?: number): BigNumber; - - /** - * Returns `true` if the value of this BigNumber equals the value of `n`, otherwise returns `false`. - * - * As with JavaScript, `NaN` does not equal `NaN`. - */ - equals(n: NumberLike, base?: number): boolean; - - /** - * Returns `true` if the value of this BigNumber equals the value of `n`, otherwise returns `false`. - * - * As with JavaScript, `NaN` does not equal `NaN`. - */ - eq(n: NumberLike, base?: number): boolean; - - /** - * Returns a BigNumber whose value is the value of this BigNumber rounded to a whole number in the direction of negative `Infinity`. - */ - floor(): BigNumber; - - /** - * Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`. - */ - greaterThan(n: NumberLike, base?: number): boolean; - - /** - * Returns `true` if the value of this BigNumber is greater than the value of `n`, otherwise returns `false`. - */ - gt(n: NumberLike, base?: number): boolean; - - /** - * Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`. - */ - greaterThanOrEqualTo(n: NumberLike, base?: number): boolean; - - /** - * Returns `true` if the value of this BigNumber is greater than or equal to the value of `n`, otherwise returns `false`. - */ - gte(n: NumberLike, base?: number): boolean; - - /** - * Returns `true` if the value of this BigNumber is a finite number, otherwise returns `false`. - * - * The only possible non-finite values of a BigNumber are `NaN`, `Infinity` and `-Infinity`. - */ - isFinite(): boolean; - - /** - * Returns `true` if the value of this BigNumber is a whole number, otherwise returns `false`. - */ - isInteger(): boolean; - - /** - * Returns `true` if the value of this BigNumber is a whole number, otherwise returns `false`. - */ - isInt(): boolean; - - /** - * Returns `true` if the value of this BigNumber is NaN, otherwise returns `false`. - */ - isNaN(): boolean; - - /** - * Returns `true` if the value of this BigNumber is negative, otherwise returns `false`. - */ - isNegative(): boolean; - - /** - * Returns `true` if the value of this BigNumber is negative, otherwise returns `false`. - */ - isNeg(): boolean; - - /** - * Returns `true` if the value of this BigNumber is zero or minus zero, otherwise returns `false`. - */ - isZero(): boolean; - - /** - * Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`. - */ - lessThan(n: NumberLike, base?: number): boolean; - - /** - * Returns `true` if the value of this BigNumber is less than the value of `n`, otherwise returns `false`. - */ - lt(n: NumberLike, base?: number): boolean; - - /** - * Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns - */ - lessThanOrEqualTo(n: NumberLike, base?: number): boolean; - - /** - * Returns `true` if the value of this BigNumber is less than or equal to the value of `n`, otherwise returns - */ - lte(n: NumberLike, base?: number): boolean; - - /** - * Returns a BigNumber whose value is the value of this BigNumber minus `n`. - */ - minus(n: NumberLike, base?: number): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber minus `n`. - */ - sub(n: NumberLike, base?: number): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber modulo `n`, i.e. the integer remainder of dividing this BigNumber by `n`. - * - * The value returned, and in particular its sign, is dependent on the value of the `MODULO_MODE` setting of this BigNumber constructor. - * If it is `1` (default value), the result will have the same sign as this BigNumber, - * and it will match that of Javascript's `%` operator (within the limits of double precision) and BigDecimal's `remainder` method. - */ - modulo(n: NumberLike, base?: number): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber modulo `n`, i.e. the integer remainder of dividing this BigNumber by `n`. - * - * The value returned, and in particular its sign, is dependent on the value of the `MODULO_MODE` setting of this BigNumber constructor. - * If it is `1` (default value), the result will have the same sign as this BigNumber, - * and it will match that of Javascript's `%` operator (within the limits of double precision) and BigDecimal's `remainder` method. - */ - mod(n: NumberLike, base?: number): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber negated, i.e. multiplied by `-1`. - */ - negated(): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber negated, i.e. multiplied by `-1`. - */ - neg(): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber plus `n`. - */ - plus(n: NumberLike, base?: number): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber plus `n`. - */ - add(n: NumberLike, base?: number): BigNumber; - - /** - * Returns the number of significant digits of the value of this BigNumber. - * - * If `z` is `true` or `1` then any trailing zeros of the integer part of a number are counted as significant digits, otherwise they are not. - */ - precision(z?: boolean | 0 | 1): number; - - /** - * Returns the number of significant digits of the value of this BigNumber. - * - * If `z` is `true` or `1` then any trailing zeros of the integer part of a number are counted as significant digits, otherwise they are not. - */ - sd(z?: boolean | 0 | 1): number; - - /** - * Returns a BigNumber whose value is the value of this BigNumber rounded by rounding mode `rm` to a maximum of `dp` decimal places. - * - * If `dp` is omitted, or is `null` or `undefined`, the return value is `n` rounded to a whole number. - * - * If `rm` is omitted, or is `null` or `undefined`, `ROUNDING_MODE` is used. - */ - round(dp?: number, rm?: RoundingMode): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber shifted `n` places. - * - * The shift is of the decimal point, i.e. of powers of ten, and is to the left if `n` is negative or to the right if `n` is positive. - */ - shift(n: number): BigNumber; - - /** - * Returns a BigNumber whose value is the square root of the value of this BigNumber, rounded according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` configuration. - * - * The return value will be correctly rounded, i.e. rounded as if the result was first calculated to an infinite number of correct digits before rounding. - */ - squareRoot(): BigNumber; - - /** - * Returns a BigNumber whose value is the square root of the value of this BigNumber, rounded according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` configuration. - * - * The return value will be correctly rounded, i.e. rounded as if the result was first calculated to an infinite number of correct digits before rounding. - */ - sqrt(): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber times `n`. - */ - times(n: NumberLike, base?: number): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber times `n`. - */ - mul(n: NumberLike, base?: number): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber rounded to `sd` significant digits using rounding mode `rm`. - * - * If `sd` is omitted or is `null` or `undefined`, the return value will not be rounded. - * - * If `rm` is omitted or is `null` or `undefined`, ROUNDING_MODE will be used. - */ - toDigits(sd?: number, rm?: RoundingMode): BigNumber; - - /** - * Returns a string representing the value of this BigNumber in exponential notation rounded using rounding mode `rm` to `dp` decimal places, - * i.e with one digit before the decimal point and `dp` digits after it. - * - * If the value of this BigNumber in exponential notation has fewer than `dp` fraction digits, the return value will be appended with zeros accordingly. - * - * If `dp` is omitted, or is `null` or `undefined`, the number of digits after the decimal point defaults to the minimum number of digits necessary to represent the value exactly. - * - * If `rm` is omitted or is `null` or `undefined`, `ROUNDING_MODE` is used. - */ - toExponential(dp?: number, rm?: RoundingMode): string; - - /** - * Returns a string representing the value of this BigNumber in normal (fixed-point) notation rounded to `dp` decimal places using rounding mode `rm`. - * - * If the value of this BigNumber in normal notation has fewer than `dp` fraction digits, the return value will be appended with zeros accordingly. - * - * Unlike `Number.prototype.toFixed`, which returns exponential notation if a number is greater or equal to `10e21`, this method will always return normal notation. - * - * If `dp` is omitted or is `null` or `undefined`, the return value will be unrounded and in normal notation. - * This is also unlike `Number.prototype.toFixed`, which returns the value to zero decimal places. - * It is useful when fixed-point notation is required and the current `EXPONENTIAL_AT` setting causes `toString` to return exponential notation. - * - * If `rm` is omitted or is `null` or `undefined`, `ROUNDING_MODE` is used. - */ - toFixed(dp?: number, rm?: RoundingMode): string; - - /** - * Returns a string representing the value of this BigNumber in normal (fixed-point) notation rounded to `dp` decimal places using rounding mode `rm`, - * and formatted according to the properties of the `FORMAT` object. - * - * If `dp` is omitted or is `null` or `undefined`, then the return value is not rounded to a fixed number of decimal places. - * - * If `rm` is omitted or is `null` or `undefined`, `ROUNDING_MODE` is used. - */ - toFormat(dp?: number, rm?: RoundingMode): string; - - /** - * Returns a string array representing the value of this BigNumber as a simple fraction with an integer numerator and an integer denominator. - * The denominator will be a positive non-zero value less than or equal to `max`. - * - * If a maximum denominator, `max`, is not specified, or is `null` or `undefined`, the denominator will be the lowest value necessary to represent the number exactly. - */ - toFraction(max?: NumberLike): [string, string]; - - /** - * As `valueOf`. - */ - toJSON(): string; - - /** - * Returns the value of this BigNumber as a JavaScript number primitive. - * - * Type coercion with, for example, the unary plus operator will also work, except that a BigNumber with the value minus zero will be converted to positive zero. - */ - toNumber(): number; - - /** - * Returns a BigNumber whose value is the value of this BigNumber raised to the power `n`, and optionally modulo a modulus `m`. - * - * If `n` is negative the result is rounded according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` configuration. - */ - toPower(n: number, m?: NumberLike): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber raised to the power `n`, and optionally modulo a modulus `m`. - * - * If `n` is negative the result is rounded according to the current `DECIMAL_PLACES` and `ROUNDING_MODE` configuration. - */ - pow(n: number, m?: NumberLike): BigNumber; - - /** - * Returns a string representing the value of this BigNumber rounded to `sd` significant digits using rounding mode `rm`. - * - * If `sd` is less than the number of digits necessary to represent the integer part of the value in normal (fixed-point) notation, then exponential notation is used. - * - * If `sd` is omitted, or is `null` or `undefined`, then the return value is the same as `n.toString()`. - * - * If `rm` is omitted or is `null` or `undefined`, `ROUNDING_MODE` is used. - */ - toPrecision(sd?: number, rm?: RoundingMode): string; - - /** - * Returns a string representing the value of this BigNumber in the specified base, or base `10` if `base` is omitted or is `null` or `undefined`. - */ - toString(base?: number): string; - - /** - * Returns a BigNumber whose value is the value of this BigNumber truncated to a whole number. - */ - truncated(): BigNumber; - - /** - * Returns a BigNumber whose value is the value of this BigNumber truncated to a whole number. - */ - trunc(): BigNumber; - - /** - * As `toString`, but does not accept a base argument and includes the minus sign for negative zero. - */ - valueOf(): string; - - /** - * coefficient - * @description Array of base 1e14 numbers - */ - c: number[] | null; - - /** - * exponent - * @description Integer, -1000000000 to 1000000000 inclusive - */ - e: number | null; - - /** - * sign - */ - s: -1 | 1 | null; - - /** - * type identifier - */ - isBigNumber: true; - } -} diff --git a/types/bingmaps/Autosuggest.d.ts b/types/bingmaps/Autosuggest.d.ts index 4ccfcc9270..7d83ca6e4b 100644 --- a/types/bingmaps/Autosuggest.d.ts +++ b/types/bingmaps/Autosuggest.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - declare module Microsoft.Maps { /** Options used to customize the autosuggest functionality. */ export interface IAutosuggestOptions { diff --git a/types/bingmaps/Clustering.d.ts b/types/bingmaps/Clustering.d.ts index a936653d3b..17c9425933 100644 --- a/types/bingmaps/Clustering.d.ts +++ b/types/bingmaps/Clustering.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - declare module Microsoft.Maps { /** The options used to customize how the ClusterLayer functions. */ export interface IClusterLayerOptions { diff --git a/types/bingmaps/Contour.d.ts b/types/bingmaps/Contour.d.ts index 8bc80e70b9..cd2d9767c7 100644 --- a/types/bingmaps/Contour.d.ts +++ b/types/bingmaps/Contour.d.ts @@ -1,13 +1,6 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - declare module Microsoft.Maps { - /** + /** * The contour layer options */ interface IContourLayerOptions { diff --git a/types/bingmaps/DataBinning.d.ts b/types/bingmaps/DataBinning.d.ts index 548a9cc681..e33b2d5113 100644 --- a/types/bingmaps/DataBinning.d.ts +++ b/types/bingmaps/DataBinning.d.ts @@ -1,9 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// /// declare module Microsoft.Maps { @@ -96,7 +90,7 @@ declare module Microsoft.Maps { } /** - * A polygon which represents a data bin on the map and contains the data bin information. + * A polygon which represents a data bin on the map and contains the data bin information. */ export class DataBinPolygon extends Polygon { diff --git a/types/bingmaps/Directions.d.ts b/types/bingmaps/Directions.d.ts index 80a3bd5a07..3663fc8c21 100644 --- a/types/bingmaps/Directions.d.ts +++ b/types/bingmaps/Directions.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - declare module Microsoft.Maps.Directions { ///////////////////////////////////// /// Enumerations @@ -309,7 +302,7 @@ declare module Microsoft.Maps.Directions { timeWithTraffic: number; } - /** Contains information about a transit line. */ + /** Contains information about a transit line. */ export interface ITransitLine { /** The short name for the transit line. */ abbreviatedName: string; @@ -338,12 +331,12 @@ declare module Microsoft.Maps.Directions { /** Options that can be used to define a waypoint. */ export interface IWaypointOptions { - /** + /** * The address string of the waypoint. For example, the following strings are valid for this parameter: "Seattle", "1 Microsoft Way, Redmond, WA". Either the address or location property must be specified. */ address?: string; - /** + /** * A boolean indicating whether the waypoint is a via point. A via point is a point along the route that is not a stop point. Set this property to * true if you just want the route to pass through this location. Default: false */ @@ -495,7 +488,7 @@ declare module Microsoft.Maps.Directions { public addWaypoint(waypoint: Waypoint, index?: number): void; /** - * Calculates directions based on request and render options set + * Calculates directions based on request and render options set */ public calculateDirections(): void; @@ -503,8 +496,8 @@ declare module Microsoft.Maps.Directions { public clearAll(): void; /** - * Clears the directions displayed and removes the route line from the map. - * This method does not remove waypoints from the route and retains all calculated direction information and option settings. + * Clears the directions displayed and removes the route line from the map. + * This method does not remove waypoints from the route and retains all calculated direction information and option settings. */ public clearDisplay(): void; @@ -534,7 +527,7 @@ declare module Microsoft.Maps.Directions { * @returns The directions request options. */ public getRequestOptions(): IDirectionsRequestOptions; - + /** * Gets the current calculated route(s) * @returns The current calculated route(s). If the route was not successfully calculated, null is returned. @@ -542,7 +535,7 @@ declare module Microsoft.Maps.Directions { public getRouteResult(): IRoute[]; /** - * Removes the given waypoint or the waypoint identified by the given index from the route. + * Removes the given waypoint or the waypoint identified by the given index from the route. * @param waypointOrIndex A Waypoint object to be removed or the index of the waypoint to be removed */ public removeWaypoint(waypointOrIndex: Waypoint | number): void; @@ -563,7 +556,7 @@ declare module Microsoft.Maps.Directions { * Displays an input panel for calculating directions in the specified container. Provides autosuggest for location inputs. * @param inputContainerId The id name of the HTML container in which to render the directions input panel. */ - public showInputPanel(inputContainerId: string): void; + public showInputPanel(inputContainerId: string): void; } } @@ -580,7 +573,7 @@ declare module Microsoft.Maps { * @param eventName The type of event to attach. Supported Events: * • directionsError * • directionsUpdated - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: Directions.DirectionsManager, eventName: string, handler: (eventArg?: Directions.IDirectionsEventArgs | Directions.IDirectionsErrorEventArgs) => void): IHandlerId; diff --git a/types/bingmaps/DrawingTools.d.ts b/types/bingmaps/DrawingTools.d.ts index 8bdc7e8b21..bd5c938e4e 100644 --- a/types/bingmaps/DrawingTools.d.ts +++ b/types/bingmaps/DrawingTools.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - declare module Microsoft.Maps { /** An object that contains the event arguments for when the drawing mode changes in the drawing tools. **/ export interface IDrawingModeChangedData { @@ -28,7 +21,7 @@ declare module Microsoft.Maps { • @param index The index at which to insert the shape into the layer. */ add(data: IPrimitive | IPrimitive[], index?: number): void; - + /** * Disposes the drawing manager instance. */ @@ -122,7 +115,7 @@ declare module Microsoft.Maps { /** * Creates a drawing manager which allows multi-shape editing and displays the toolbar. - * @param callback A callback function that is triggered after the DrawingTools have loaded. + * @param callback A callback function that is triggered after the DrawingTools have loaded. */ public showDrawingManager(callback?: (manager: DrawingManager) => void): void; } @@ -137,7 +130,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * drawingChanged, drawingChanging, drawingEnded, drawingModeChanged, drawingStarted - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: DrawingTools, eventName: string, handler: (eventArg?: IPrimitive | IDrawingModeChangedData) => void): IHandlerId; @@ -147,7 +140,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * disposed, drawingChanged, drawingChanging, drawingEnded, drawingErased, drawingModeChanged, drawingStarted - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: DrawingManager, eventName: string, handler: (eventArg?: IPrimitive | DrawingTools.DrawingMode) => void): IHandlerId; @@ -161,7 +154,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * drawingChanged, drawingChanging, drawingEnded, drawingModeChanged, drawingStarted - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. */ export function addOne(target: DrawingTools, eventName: string, handler: (eventArg?: IPrimitive | IDrawingModeChangedData) => void): void; @@ -183,7 +176,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * drawingChanged, drawingChanging, drawingEnded, drawingModeChanged, drawingStarted - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addThrottledHandler(target: DrawingTools, eventName: string, handler: (eventArg?: IPrimitive | IDrawingModeChangedData) => void): IHandlerId; diff --git a/types/bingmaps/GeoJson.d.ts b/types/bingmaps/GeoJson.d.ts index c68ce2e80f..94726ab542 100644 --- a/types/bingmaps/GeoJson.d.ts +++ b/types/bingmaps/GeoJson.d.ts @@ -1,17 +1,10 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - declare module Microsoft.Maps { /** GeoJSON object definition */ export interface IGeoJsonObject { - /** - * Type of the object - * could be one of the following: + /** + * Type of the object + * could be one of the following: * Point * LineString * Polygon @@ -20,7 +13,7 @@ declare module Microsoft.Maps { * MultiPolygon * GeometryCollection * Feature - * FeatureCollection + * FeatureCollection */ type: string; diff --git a/types/bingmaps/HeatMapLayer.d.ts b/types/bingmaps/HeatMapLayer.d.ts index c012e06422..c90813b00d 100644 --- a/types/bingmaps/HeatMapLayer.d.ts +++ b/types/bingmaps/HeatMapLayer.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - declare module Microsoft.Maps { /** A standard dictionary object (associative array). */ export interface IDictionary { @@ -34,15 +27,15 @@ declare module Microsoft.Maps { * The opacity of the HeatMapLayer canvas. Value should be a decimal between 0 and 1. Default: 1 */ opacity?: number; - + /** * The radius to draw each data point on the map. Default: 10 */ radius?: number; - + /** * The distance units of the radius. Possible values are: - * + * * • 'pixels' (defualt) * • 'meters' * @@ -73,14 +66,14 @@ declare module Microsoft.Maps { /** Disposes the heat map layer. */ public dispose(): void; - + /** * Gets a boolean indicating if the heat map layer is visible or not. * @returns A boolean indicating if the heat map layer is visible or not. */ public getVisible(): boolean; - /** + /** * @deprecated * Hides the heat map layer. */ @@ -104,10 +97,10 @@ declare module Microsoft.Maps { */ public setVisible(visible: boolean): void; - /** + /** * @deprecated * Shows the heat map layer. */ - public show(): void; + public show(): void; } } \ No newline at end of file diff --git a/types/bingmaps/Search.d.ts b/types/bingmaps/Search.d.ts index eea087480c..0d799c7078 100644 --- a/types/bingmaps/Search.d.ts +++ b/types/bingmaps/Search.d.ts @@ -1,16 +1,9 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - /** * Provides an easy method for geocoding address and searching for points of interest from JavaScript. * @requires The Microsoft.Maps.Search module. */ declare module Microsoft.Maps.Search { - /** + /** * Defines the match precision of a geocdoed result. * @requires The Microsoft.Maps.Search module. */ @@ -31,7 +24,7 @@ declare module Microsoft.Maps.Search { rooftop } - /** + /** * Defines the geocoding level of the location match found by the geocoder. * @requires The Microsoft.Maps.Search module. */ @@ -52,7 +45,7 @@ declare module Microsoft.Maps.Search { modified } - /** + /** * Defines the confidence of the location match found by the geocoding service. * @requires The Microsoft.Maps.Search module. */ @@ -117,16 +110,16 @@ declare module Microsoft.Maps.Search { /** The options for a geocode request. */ export interface IGeocodeRequestOptions { - /** - * A location rectangle that defines the boundaries of the area in which to search for - * location results. The default is the bounds of the map view associated with this + /** + * A location rectangle that defines the boundaries of the area in which to search for + * location results. The default is the bounds of the map view associated with this * instance of the SearchManager, which is usually the current map view. */ bounds?: LocationRect; /** - * The name of the function to call when a successful result is returned from the - * geocode request. The callback function must accept two parameters: result, which is + * The name of the function to call when a successful result is returned from the + * geocode request. The callback function must accept two parameters: result, which is * a GeocodeResult type, and a userData object. */ callback: (geocodeResult: IGeocodeResult, userData: any) => void; @@ -135,7 +128,7 @@ declare module Microsoft.Maps.Search { count?: number; /** - * The name of the function to call when the request is returned with an error. The + * The name of the function to call when the request is returned with an error. The * error callback function must accept an IGeocodeRequestOptions object. */ errorCallback?: (geocodeRequestOptions: IGeocodeRequestOptions) => void; @@ -218,15 +211,15 @@ declare module Microsoft.Maps.Search { constructor(map: Map); /** - * Matches the address or place query in the specified request - * options to a location and returns the results to the request + * Matches the address or place query in the specified request + * options to a location and returns the results to the request * options callback function. * @param request Options for sending geocode request */ public geocode(request: IGeocodeRequestOptions): void; /** - * Matches the specified location to an address and returns the + * Matches the specified location to an address and returns the * address results to the specified request options callback function. * @param request Options for sending reverse geocode request */ diff --git a/types/bingmaps/SpatialDataService.d.ts b/types/bingmaps/SpatialDataService.d.ts index f31642cc04..627ab7cbad 100644 --- a/types/bingmaps/SpatialDataService.d.ts +++ b/types/bingmaps/SpatialDataService.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - /** * This module wraps the Query and GeoData REST API’s in the Bing Spatial Dara Services and expose them as an easy to use JavaScript library. * @requires The Microsoft.Maps.SpatialDataService module. @@ -123,10 +116,10 @@ declare module Microsoft.Maps.SpatialDataService { /** The culture associated with this entity. Example: en */ OfficialCulture: string; - + /** The approximate population within this entity. Example: PopClass20000to99999 */ PopulationClass: string; - + /** The regional culture associated with this entity. */ RegionalCulture: string; } @@ -246,7 +239,7 @@ declare module Microsoft.Maps.SpatialDataService { /** * A Fitler object that defines the logic behind a filter expression that can be executed against a JSON object or generate * a filter string that can be used with the Bing Spatial Data Services. - */ + */ export interface IFilter { /** * Executes the filter logic against a JSON object and returns a boolean indicating if the object meets the requirements of the Filter. @@ -319,7 +312,7 @@ declare module Microsoft.Maps.SpatialDataService { /** Options for find near route query API. */ export interface ISpatialFilterOptions { - /** + /** * One of the following values: * • nearby – Searches in a radius around a location. * • nearRoute – Searches for results that are within 1 mile of a route. @@ -331,7 +324,7 @@ declare module Microsoft.Maps.SpatialDataService { /** Location at which the filter should be applied (only for nearby filter). */ location?: string | Location; - /** + /** * Radius to use when performing a nearby search. The distance in kilometers and must be between 0.16 and 1000 kilometers * (only for nearby filter). */ @@ -346,26 +339,26 @@ declare module Microsoft.Maps.SpatialDataService { /** Intersection object. Can be a well known text string or a LocationRect object (only for intersects filter). */ intersects?: string | LocationRect | IPrimitive; } - + /** Options for find near route query API. */ export interface IFindNearRouteOptions extends ISpatialFilterOptions { - /** + /** * One of the following values: * • Driving [default] * • Walking */ travelMode?: string; - /** - * An integer value between 0 and 359 that represents degrees from north - * where north is 0 degrees and the heading is specified clockwise from north. - * For example, setting the heading of 270 degrees creates a route that initially heads west + /** + * An integer value between 0 and 359 that represents degrees from north + * where north is 0 degrees and the heading is specified clockwise from north. + * For example, setting the heading of 270 degrees creates a route that initially heads west */ heading?: number; /** * An integer distance specified in meters. - * Use this parameter to make sure that the moving vehicle has enough distance + * Use this parameter to make sure that the moving vehicle has enough distance * to make the first turn */ distanceBeforeFirstTurn?: number; @@ -404,7 +397,7 @@ declare module Microsoft.Maps.SpatialDataService { isStaging?: boolean; /** - * Specifies one or more properties to use to sort the results of a query. + * Specifies one or more properties to use to sort the results of a query. * You can specify up to three (3) properties. Results are sorted in ascending order. * Note: You cannot use the latitude and longitude properties to sort results. You can use the elevation property. */ diff --git a/types/bingmaps/SpatialMath.d.ts b/types/bingmaps/SpatialMath.d.ts index 94c4ceab61..4fe3b4ea12 100644 --- a/types/bingmaps/SpatialMath.d.ts +++ b/types/bingmaps/SpatialMath.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - ////////////////////////////////////////////// /// Core Library ////////////////////////////////////////////// @@ -80,7 +73,7 @@ declare module Microsoft.Maps.SpatialMath { export function convertArea(area: number, fromUnits: AreaUnits, toUnits: AreaUnits): number; /** - * Converts a distance from one distance units to another. + * Converts a distance from one distance units to another. * @param distance A number that represents a distance to convert. * @param fromUnits The distance units the original distance is in. * @param toUnits The disired distance units to convert to. @@ -119,7 +112,7 @@ declare module Microsoft.Maps.SpatialMath { export function getDistanceTo(origin: Location, destination: Location, units?: DistanceUnits, highAccuracy?: boolean): number; /** - * Retrieves the radius of the earth in a specific distance unit for WGS84. + * Retrieves the radius of the earth in a specific distance unit for WGS84. * @param units Unit of distance measurement. Default: Meters * @returns A number that represents the radius of the earth in a specific distance unit. **/ @@ -145,13 +138,13 @@ declare module Microsoft.Maps.SpatialMath { * Calculates the distance between all Location objects in an array. * @param path The array of Location objects that make up the path to calculate the length of. * @param units Unit of distance measurement. Default: Meters - * @param highAccuracy If set to true, uses the more accurate Vincenty algorithm for calcuating distances. Otherwise the faster Haversine formula is used. + * @param highAccuracy If set to true, uses the more accurate Vincenty algorithm for calcuating distances. Otherwise the faster Haversine formula is used. * @returns The distance between all Locations in between all Location objects in an array on the surface of a earth in the specifed units. **/ export function getLengthOfPath(path: Location[], units?: DistanceUnits, highAccuracy?: boolean): number; /** - * Calculates the Location object on a path that is a specified distance away from the start of the path. If the specified distance is longer + * Calculates the Location object on a path that is a specified distance away from the start of the path. If the specified distance is longer * than the length of the path, the last Location of the path will be returned. * @param path A polyline or array of Location coordinates that form a path. * @param distance The distance along the path (from the start) to calculate the location for. @@ -197,7 +190,7 @@ declare module Microsoft.Maps.SpatialMath { /** * Tries to parse the given string that is in Degree Minute Seconds format. For Example: 35° 26′ 31″ E or 40° 26′ 46″ N 79° 58′ 56″ W * @param input A string in Degree Minute Seconds format to parse. - * @returns Returns a decimal degree value if only a single angle is provided. If two angles provided in the string, then a + * @returns Returns a decimal degree value if only a single angle is provided. If two angles provided in the string, then a * Location object is returned. If string is in an invalid format, null is returned. */ export function tryParseDegMinSec(input: string): number | Location; @@ -233,7 +226,7 @@ declare module Microsoft.Maps.SpatialMath.Tiles { export function groundResolution(latitude: number, zoom: number, units?: SpatialMath.DistanceUnits): number; /** - * Converts a Pixel coordinate into a Geospatial Location at a specified zoom level. + * Converts a Pixel coordinate into a Geospatial Location at a specified zoom level. * Global Pixel coordinates are relative to the top left corner of the map (90, -180) * @param point Pixel coordinate. * @param zoom Zoom level. @@ -346,22 +339,22 @@ declare module Microsoft.Maps.SpatialMath.Geometry { export function centroid(shape: IPrimitive | IPrimitive[]): Location; /** - * Calculates an approximate concave hull that best fits the data. + * Calculates an approximate concave hull that best fits the data. * A concave hull is a shape that represents that a possible concave geometry that encloses all shapes in the specified data set. - * If a single unique Location is in the data set, a Pushpin is returned. If only two unique Locations are provided, or if all Locations form a line, a Polyline is returned. + * If a single unique Location is in the data set, a Pushpin is returned. If only two unique Locations are provided, or if all Locations form a line, a Polyline is returned. * If 3 or more unique Locations are in the data set a Polygon, or array of Polygons will be returned. * @param shapes Shape(s) whose Location(s) or Location(s) are to be used to generate a concave hull. * @param allowMultiPolygons A boolean indicating if the resulting concave hull can be a MultiPolygon. Default: false * @param allowHoles A boolean indicating if the polygons in the resulting concave hull can have holes in them. Default: false * @param options A set of polygon options to apply to the generated shape. - * @returns An approximate concave hull that best fits the data. - * If a single unique Location is in the data set, a Pushpin is returned. If only two unique Locations are provided, or if all Locations form a line, a Polyline is returned. + * @returns An approximate concave hull that best fits the data. + * If a single unique Location is in the data set, a Pushpin is returned. If only two unique Locations are provided, or if all Locations form a line, a Polyline is returned. * If 3 or more unique Locations are in the data set a Polygon, or array of Polygons will be returned. */ export function concaveHull(shapes: Location | IPrimitive | (Location | IPrimitive)[], allowMultiPolygons?: boolean, allowHoles?: boolean, options?: IPolygonOptions): IPrimitive | IPrimitive[]; /** - * Given two shapes, determines if the first one contains the second one + * Given two shapes, determines if the first one contains the second one * (or, the second shape is a subset of the first shape) or not. * @param shapeA The first shape to test against the second. * @param shapeB The second shape to test against the first. @@ -386,7 +379,7 @@ declare module Microsoft.Maps.SpatialMath.Geometry { export function delaunayTriangles(shapes: Location | IPrimitive | (Location | IPrimitive)[], options?: IPolygonOptions): Polygon[]; /** - * Returns an object that represents area of an initial shape subtracted by the overlapping area of a second shape. + * Returns an object that represents area of an initial shape subtracted by the overlapping area of a second shape. * @param shapeA The first shape. * @param shapeB The second shape to subtract from the first. * @returns A set of shapes that represent the area of the first shape that is not overlapped by the second shape. @@ -394,17 +387,17 @@ declare module Microsoft.Maps.SpatialMath.Geometry { export function difference(shapeA: IPrimitive | IPrimitive[], shapeB: IPrimitive | IPrimitive[]): IPrimitive | IPrimitive[]; /** - * Calculates the approximate shortest distance between any two shapes. + * Calculates the approximate shortest distance between any two shapes. * @param shapeA The first shape to calculate the distance from. * @param shapeB The second shape to calculate the distance to. * @param units Unit of distance measurement. Default: Meters - * @param highAccuracy If set to true, uses the more accurate Vincenty algorithm for calcuating distances. Otherwise the faster Haversine formula is used. + * @param highAccuracy If set to true, uses the more accurate Vincenty algorithm for calcuating distances. Otherwise the faster Haversine formula is used. * @returns The shorested distance between the shapes in the specified units. */ export function distance(shapeA: Location | IPrimitive | (Location | IPrimitive)[], shapeB: Location | IPrimitive | (Location | IPrimitive)[], units?: DistanceUnits, highAccuracy?: boolean): number; /** - * Returns an object that represents the area where two shapes intersect. + * Returns an object that represents the area where two shapes intersect. * @param shapeA The first shape. * @param shapeB The second shape. * @returns A set of shapes that represents the area where two shapes intersect. @@ -420,10 +413,10 @@ declare module Microsoft.Maps.SpatialMath.Geometry { export function intersects(shapeA: Location | IPrimitive | (Location | IPrimitive)[], shapeB: Location | IPrimitive | (Location | IPrimitive)[]): boolean; /** - * Tests to see if the shape is valid and meets the requirements of an SQL Geography type and other OGC compliant systems. Polylines & Polygons can't be self intersecting. For Polygons, + * Tests to see if the shape is valid and meets the requirements of an SQL Geography type and other OGC compliant systems. Polylines & Polygons can't be self intersecting. For Polygons, * coordinates in an exterior rings have a counter-clockwise orientation, while holes have a clockwise orientation. * @param shape The shape to test for validity. - * @returns Returns a boolean indicting if the specified shape(s) is valid or not. + * @returns Returns a boolean indicting if the specified shape(s) is valid or not. */ export function isValid(shape: IPrimitive | IPrimitive[]): boolean; @@ -431,13 +424,13 @@ declare module Microsoft.Maps.SpatialMath.Geometry { * Calculates the distance between all Locations in a shape. If the shape is a polygon, the length of the perimeter of all rings is calculated. * @param shape The shape to calculate the length of. * @param units Unit of distance measurement. Default: Meters - * @param highAccuracy If set to true, uses the more accurate Vincenty algorithm for calcuating distances. Otherwise the faster Haversine formula is used. + * @param highAccuracy If set to true, uses the more accurate Vincenty algorithm for calcuating distances. Otherwise the faster Haversine formula is used. * @returns The distance between all Locations in a polyline or the perimeter of a ploygon on the surface of a earth in the specifed units. */ export function calculateLength(shape: IPrimitive | IPrimitive[], units ?: DistanceUnits, highAccuracy ?: boolean): number; /** - * Takes a shape and returns a copy of it that meets the requirements of an SQL Geography type and other OGC compliant systems. Polylines & Polygons can't be self intersecting. For Polygons, + * Takes a shape and returns a copy of it that meets the requirements of an SQL Geography type and other OGC compliant systems. Polylines & Polygons can't be self intersecting. For Polygons, * coordinates in an exterior rings have a counter-clockwise orientation, while holes have a clockwise orientation. * @param shape The shape to make valid. * @returns Valiated version of the provided shape. May be a different shape type than what was provided. i.e. A polygon may be broken up into an array of polygons (MultiPolygon). @@ -446,12 +439,12 @@ declare module Microsoft.Maps.SpatialMath.Geometry { /** * Calculates the nearest Location objects between to shapes that lie on the shapes. - * If the shapes do not overlap, this calculates a location on each shape that is closest to the other shape. + * If the shapes do not overlap, this calculates a location on each shape that is closest to the other shape. * If the shapes overlap, a location that is within the intersection area of the shapes will be added twice to an array, once for each shape, and returned. * @param shapeA The first shape. * @param shapeB The second shape. - * @returns An array of two Location objects that represent the nearest points between two shapes. - * The Location objects are in the same order as the input shapes. + * @returns An array of two Location objects that represent the nearest points between two shapes. + * The Location objects are in the same order as the input shapes. * Returns null if nearest points were unable to be computed. */ export function nearestLocations(shapeA: Location | IPrimitive | (Location | IPrimitive)[], shapeB: Location | IPrimitive | (Location | IPrimitive)[]): Location[]; @@ -460,7 +453,7 @@ declare module Microsoft.Maps.SpatialMath.Geometry { * Reduces the resolution of a shape using the Douglas-Peucker algorithm. * @param shape The shape to reduce the resolution of. * @param tolerance A tolerance distance in meters used by the reduction algorithms. - * @returns A version of the specified shape that has been reduced. + * @returns A version of the specified shape that has been reduced. */ export function reduce(shape: IPrimitive | IPrimitive[], tolerance: number): IPrimitive | IPrimitive[]; @@ -502,7 +495,7 @@ declare module Microsoft.Maps.SpatialMath.Geometry { /** * Returns an object that represents all points that are either in one shape instance or another, but not those points that lie in both instances. - * "Sym" stands for Symmetric. symDifference is an OGC standard name for this calculation used in most spatial math libraries, including SQL. + * "Sym" stands for Symmetric. symDifference is an OGC standard name for this calculation used in most spatial math libraries, including SQL. * @param shapeA The first shape. * @param shapeB The second shape. * @returns A shape that represents the symetric difference between two shapes. @@ -518,7 +511,7 @@ declare module Microsoft.Maps.SpatialMath.Geometry { export function union(shapeA: IPrimitive | IPrimitive[], shapeB: IPrimitive | IPrimitive[]): IPrimitive | IPrimitive[]; /** - * Performs a union operation on a set of shapes. + * Performs a union operation on a set of shapes. * If a shape doesn't overlap with the rest, the returned result will be an array of shapes containing this shape and the union of the rest. * @param shapes An array of shapes to union together. * @returns A shape that represents the union of all specified shapes. @@ -526,10 +519,10 @@ declare module Microsoft.Maps.SpatialMath.Geometry { export function unionAggregate(shapes: IPrimitive[]): IPrimitive | IPrimitive[]; /** - * Creates a Voronoi diagram from the Location objects of the provided shapes. The diagram is returned as an array of Polygons. + * Creates a Voronoi diagram from the Location objects of the provided shapes. The diagram is returned as an array of Polygons. * If a clip region is specified, the diagram will be clipped accordingly. * @param shapes Location(s) of shape(s) or Location(s) to generate a Voronoi diagram. - * @param clipRegion A region to clip the voronoi diagram to. + * @param clipRegion A region to clip the voronoi diagram to. * @param options A set of polygon options to apply to the generated shape. * @returns An array of polygons that form a Voronoi diagram. */ diff --git a/types/bingmaps/Traffic.d.ts b/types/bingmaps/Traffic.d.ts index 46f508128f..1c78256053 100644 --- a/types/bingmaps/Traffic.d.ts +++ b/types/bingmaps/Traffic.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - /** * Adds a traffic incident and flow data to the map. * @requires The Microsoft.Maps.Traffic module. diff --git a/types/bingmaps/UNUSED_FILES.txt b/types/bingmaps/UNUSED_FILES.txt deleted file mode 100644 index b0c81f8c63..0000000000 --- a/types/bingmaps/UNUSED_FILES.txt +++ /dev/null @@ -1,13 +0,0 @@ -Autosuggest.d.ts -Clustering.d.ts -Contour.d.ts -DataBinning.d.ts -Directions.d.ts -DrawingTools.d.ts -GeoJson.d.ts -HeatMapLayer.d.ts -Search.d.ts -SpatialDataService.d.ts -SpatialMath.d.ts -Traffic.d.ts -WellKnownText.d.ts \ No newline at end of file diff --git a/types/bingmaps/WellKnownText.d.ts b/types/bingmaps/WellKnownText.d.ts index 1a0670ae1c..51c42203ce 100644 --- a/types/bingmaps/WellKnownText.d.ts +++ b/types/bingmaps/WellKnownText.d.ts @@ -1,10 +1,3 @@ -// Type definitions for Microsoft.Maps 8.0 (Change set e6d7cc4) -// Project: https://github.com/Microsoft/Bing-Maps-V8-TypeScript-Definitions -// Definitions by: Ricky Brundritt -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -/// - declare module Microsoft.Maps { /** * Class responsible for readon/writing geo data in well known text format diff --git a/types/bingmaps/index.d.ts b/types/bingmaps/index.d.ts index 919b7df62f..b629e3b903 100644 --- a/types/bingmaps/index.d.ts +++ b/types/bingmaps/index.d.ts @@ -3,15 +3,29 @@ // Definitions by: Ricky Brundritt // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// +/// + /** * The Bing Maps V8 developer API. */ declare module Microsoft.Maps { - + ////////////////////////////////////////////// /// Custom Map Styles ////////////////////////////////////////////// - + /** The styles options that can be applied to map elements. */ export interface IMapElementStyle { /** @@ -67,7 +81,7 @@ declare module Microsoft.Maps { export interface ISettingsStyle { /** A hex color value that all land is first flushed to before things are drawn on it. */ landColor?: string; - + /** Specifies whether or not to draw elevation shading on the map. */ shadedReliefVisible?: boolean; } @@ -123,7 +137,7 @@ declare module Microsoft.Maps { /** A school or other educational building. */ educationBuilding?: IMapElementStyle; - /** Restaurant, café, etc. */ + /** Restaurant, caf�, etc. */ foodPoint?: IMapElementStyle; /** Area of forest land. */ @@ -155,7 +169,7 @@ declare module Microsoft.Maps { /** A building which provides medical services. */ medicalBuilding?: IMapElementStyle; - + /** A military area. */ military?: IMapElementStyle; @@ -218,7 +232,7 @@ declare module Microsoft.Maps { /** Area of a stadium. */ stadium?: IMapElementStyle; - + /** A street. */ street?: IMapElementStyle; @@ -270,7 +284,7 @@ declare module Microsoft.Maps { /** The version of the style syntax used. */ version: string; } - + ////////////////////////////////////////////// /// Enumerations ////////////////////////////////////////////// @@ -361,7 +375,7 @@ declare module Microsoft.Maps { /** Contains enum to show how pixels are defined. */ export enum PixelReference { - /** The pixel is defined relative to the map control’s root element, where the top left corner of the map control is (0, 0). */ + /** The pixel is defined relative to the map control�s root element, where the top left corner of the map control is (0, 0). */ control, /** The pixel is defined relative to the page, where the top left corner of the HTML page is (0, 0). */ @@ -385,7 +399,7 @@ declare module Microsoft.Maps { /** * The subdivision name within the country or region for an address. This element is also commonly treated as the first order administrative - * subdivision. An example is a US state, such as “Oregon”. + * subdivision. An example is a US state, such as �Oregon�. */ adminDistrict: string; @@ -395,16 +409,16 @@ declare module Microsoft.Maps { /** A string specifying the two-letter ISO country code. */ countryRegionISO2: string; - /** The second, third, or fourth order subdivision within a country, dependency, or region. An example is a US county, such as “King”. */ + /** The second, third, or fourth order subdivision within a country, dependency, or region. An example is a US county, such as �King�. */ district: string; /** A nicely formatted address string for the result. */ formattedAddress: string; - /** The locality, such as the primary city, that corresponds to an address. An example is “Seattle”. */ + /** The locality, such as the primary city, that corresponds to an address. An example is �Seattle�. */ locality: string; - /** The post code, postal code, or ZIP code of an address. An example is a US ZIP code, such as “98152”. */ + /** The post code, postal code, or ZIP code of an address. An example is a US ZIP code, such as �98152�. */ postalCode: string; } @@ -470,14 +484,14 @@ declare module Microsoft.Maps { export interface ILayer { } - /** + /** * @deprecated use IMouseEventArgs - * A LayerMouseEventArgs object is returned by many the mouse event handlers attached to a Layer. + * A LayerMouseEventArgs object is returned by many the mouse event handlers attached to a Layer. */ export interface ILayerMouseEventArgs { - /** + /** * @deprecated use target - * The IPrimitive shape (pushpin, polyline, polygon) that the event occurred on. + * The IPrimitive shape (pushpin, polyline, polygon) that the event occurred on. */ primitive: IPrimitive; } @@ -498,13 +512,13 @@ declare module Microsoft.Maps { */ htmlContent?: string; - /** The location on the map where the infobox’s anchor is attached. */ + /** The location on the map where the infobox�s anchor is attached. */ location?: Location; - /** The maximium size that the infobox height can expand to based on it’s content. Default: 126 **/ + /** The maximium size that the infobox height can expand to based on it�s content. Default: 126 **/ maxHeight?: number; - /** The maximium size that the infobox width can expand to based on it’s content. Default: 256 **/ + /** The maximium size that the infobox width can expand to based on it�s content. Default: 256 **/ maxWidth?: number; /** @@ -599,7 +613,7 @@ declare module Microsoft.Maps { /** Custom map styles used to modify the look and feel of the base map. */ customMapStyle?: ICustomMapStyle; - /** A boolean value indicating whether to disable the user’s ability to control the using the keyboard. Default: false */ + /** A boolean value indicating whether to disable the user�s ability to control the using the keyboard. Default: false */ disableKeyboardInput?: boolean; /** A boolean value indicating if mousing over the map type selector should open it or not. Default: true */ @@ -670,14 +684,14 @@ declare module Microsoft.Maps { navigationBarOrientation?: NavigationBarOrientation; /** - * A boolean value indicating whether to display the “breadcrumb control”. The breadcrumb control shows the current center location’s geography hierarchy. + * A boolean value indicating whether to display the �breadcrumb control�. The breadcrumb control shows the current center location�s geography hierarchy. * The default value is false. Requires the showLocateMeButton map option to be set to true. The breadcrumb control displays best when the width of the map * is at least 400 pixels. */ showBreadcrumb?: boolean; /** - * A boolean value indicating whether to show the map navigation control. Default: true This property can only be set when using the Map constructor. + * A boolean value indicating whether to show the map navigation control. Default: true�This property can only be set when using the Map constructor. */ showDashboard?: boolean; @@ -783,7 +797,7 @@ declare module Microsoft.Maps { /** The object that triggered the event. */ target: Map | IPrimitive; - /** The type of the object that the event is attached to. Valid values include the following: ‘map’, 'layer', ‘polygon’, ‘polyline’, or ‘pushpin’ */ + /** The type of the object that the event is attached to. Valid values include the following: �map�, 'layer', �polygon�, �polyline�, or �pushpin� */ targetType: string; /** @@ -1034,7 +1048,7 @@ declare module Microsoft.Maps { * When using a string, the uriConstructor will allow you to specify placeholders that will be replaced with the tiles value (i.e. {quadkey}). * See the Tile URL Parameters section for a list of supported parameters. * Besides using formatted tile URLs, you can also specify a callback function as the uriConstructor. This is useful if you need to be able to - * build custom tile URL’s that may require some additional calculations for a tile. + * build custom tile URL�s that may require some additional calculations for a tile. */ uriConstructor: string | ((tile: PyramidTileId) => string); } @@ -1109,7 +1123,7 @@ declare module Microsoft.Maps { export class AnimatedTileLayer { /** * @contstructor - * @param options Options that define how to animate between the specified tile layers. + * @param options Options that define how to animate between the specified tile layers. */ constructor(options?: IAnimatedTileLayerOptions); @@ -1351,7 +1365,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported events: * click, dblclick, maptypechanged, mousedown, mousemove, mouseout, mouseover, mouseup, mousewheel, rightclick, viewchange, viewchangeend, viewchangestart - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: Map, eventName: string, handler: (eventArg?: IMouseEventArgs | IMapTypeChangeEventArgs) => void): IHandlerId; @@ -1361,7 +1375,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * changed, click, dblclick, drag, dragend, dragstart, mousedown, mouseout, mouseover, mouseup - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: Pushpin, eventName: string, handler: (eventArg?: IMouseEventArgs | IPrimitiveChangedEventArgs) => void): IHandlerId; @@ -1371,7 +1385,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * changed, click, dblclick, mousedown, mouseout, mouseover, mouseup - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: Polyline | Polygon, eventName: string, handler: (eventArg?: IMouseEventArgs | IPrimitiveChangedEventArgs) => void): IHandlerId; @@ -1381,7 +1395,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * click, infoboxChanged, mouseenter, mouseleave - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: Infobox, eventName: string, handler: (eventArg?: IInfoboxEventArgs) => void): IHandlerId; @@ -1391,7 +1405,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * click, dblclick, mousedown, mouseout, mouseover, mouseup, rightclick - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: Layer, eventName: string, handler: (eventArg?: IMouseEventArgs) => void): IHandlerId; @@ -1400,9 +1414,9 @@ declare module Microsoft.Maps { * Attaches the handler for the event that is thrown by the target. Use the return object to remove the handler using the removeHandler method. * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: - * • entityadded - * • entityremoved - * @param handler The callback function to handle the event when triggered. + * � entityadded + * � entityremoved + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: EntityCollection, eventName: string, handler: (eventArg?: IEntityCollectionChangedEventArgs) => void): IHandlerId; @@ -1411,7 +1425,7 @@ declare module Microsoft.Maps { * Attaches the handler for the event that is thrown by the target. Use the return object to remove the handler using the removeHandler method. * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addHandler(target: any, eventName: string, handler: (eventArg?: any) => void): IHandlerId; @@ -1452,7 +1466,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * click, infoboxChanged, mouseenter, mouseleave - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. */ export function addOne(target: Infobox, eventName: string, handler: (eventArg?: IInfoboxEventArgs) => void): void; @@ -1469,8 +1483,8 @@ declare module Microsoft.Maps { * Attaches the handler for the event that is thrown by the target, but only triggers the handler the first once after being attached. * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: - * • entityadded - * • entityremoved + * � entityadded + * � entityremoved * @param handler The callback function to handle the event when triggered. */ export function addOne(target: EntityCollection, eventName: string, handler: (eventArg?: IEntityCollectionChangedEventArgs) => void): void; @@ -1525,7 +1539,7 @@ declare module Microsoft.Maps { * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: * click, infoboxChanged, mouseenter, mouseleave - * @param handler The callback function to handle the event when triggered. + * @param handler The callback function to handle the event when triggered. * @returns The handler id. */ export function addThrottledHandler(target: Infobox, eventName: string, handler: (eventArg?: IInfoboxEventArgs) => void): IHandlerId; @@ -1545,8 +1559,8 @@ declare module Microsoft.Maps { * Attaches the handler for the event that is thrown by the target, where the minimum interval between events (in milliseconds) is specified as a parameter. * @param target The object to attach the event to; Map, IPrimitive, Infobox, Layer, DrawingTools, DrawingManager, DirectionsManager, etc. * @param eventName The type of event to attach. Supported Events: - * • entityadded - * • entityremoved + * � entityadded + * � entityremoved * @param handler The callback function to handle the event when triggered. * @param throttleInterval throttle interval (in ms) * @returns The handler id. @@ -1569,7 +1583,7 @@ declare module Microsoft.Maps { /** * Checks if the target has any attached event handler. - * @param target The object to check if an event is attached to it. + * @param target The object to check if an event is attached to it. * @param eventName The name of the event to check to see is attached. * @returns A boolean indicating if the specified event type is attached to the object. */ @@ -1650,7 +1664,7 @@ declare module Microsoft.Maps { public getHtmlContent(): string; /** - * Gets the location on the map where the infobox’s anchor is attached. + * Gets the location on the map where the infobox�s anchor is attached. * @returns The location of the infobox. */ public getLocation(): Location; @@ -1783,7 +1797,7 @@ declare module Microsoft.Maps { /** * Gets an array of shapes that are in the layer. This can be used to iterate over the individual shapes. - * @returns An array of shapes that are in the layer. + * @returns An array of shapes that are in the layer. */ public getPrimitives(): IPrimitive[]; @@ -1871,7 +1885,7 @@ declare module Microsoft.Maps { public remove(layer: ILayer): void; /** - * Removes a layer from the map at the specified index in the collection. + * Removes a layer from the map at the specified index in the collection. * @param idx The index of the layer to remove. */ public removeAt(idx: number): void; @@ -2093,7 +2107,7 @@ declare module Microsoft.Maps { constructor(parentElement: string | HTMLElement, options: IMapLoadOptions); /** - * Gets the streetside panorama information closest to the specified bounding box and returns using a success callback function. + * Gets the streetside panorama information closest to the specified bounding box and returns using a success callback function. * This information can then be used to set the map view to that streetside panorama. */ public static getClosestPanorama(bounds: LocationRect, success: (panoramaInfo: IPanoramaInfo) => void, missingCoverage: () => void): void; @@ -2336,7 +2350,7 @@ declare module Microsoft.Maps { /** * Decodes a collection of locations from a compressed string. * @param value Compressed string to decode. - * @returns An array of locations that have been decoded from the compressed string. + * @returns An array of locations that have been decoded from the compressed string. */ public static decode(value: string): Location[]; @@ -2632,7 +2646,7 @@ declare module Microsoft.Maps { } /** - * Used to represent the location of a map tile in the quadkey tile pyramid system used by the map. + * Used to represent the location of a map tile in the quadkey tile pyramid system used by the map. * If using a tile source where the uriConstructor property is set to a callback function, that callback function will recieve * an instance of the PyramidTileId class. */ @@ -2674,7 +2688,7 @@ declare module Microsoft.Maps { public static areEqual(tileId1: PyramidTileId, tileId2: PyramidTileId): boolean; /** - * Generates a PyramidTileId from a quadkey tile id string. + * Generates a PyramidTileId from a quadkey tile id string. * @param quadkey The quadkey tile id string to convert into a PyramidTileId object. * @param width The tile's width in pixels. Default value: 256 * @param height The tile's height in pixels. Default value: 256 @@ -2685,7 +2699,7 @@ declare module Microsoft.Maps { /** Provides static functions for generating random test data. */ export class TestDataGenerator { /** - * Generates a random hex or rgba color string. + * Generates a random hex or rgba color string. * @param withAlpha A boolean indicating if the color should have an alpha value or not. if set to true, a rgba value will be returned with an alpha value of 0.5. * @returns A css color string, hex or rgba. */ diff --git a/types/bingmaps/tsconfig.json b/types/bingmaps/tsconfig.json index ecb179959d..421876221b 100644 --- a/types/bingmaps/tsconfig.json +++ b/types/bingmaps/tsconfig.json @@ -19,6 +19,19 @@ }, "files": [ "index.d.ts", + "Autosuggest.d.ts", + "Clustering.d.ts", + "Contour.d.ts", + "DataBinning.d.ts", + "Directions.d.ts", + "DrawingTools.d.ts", + "GeoJson.d.ts", + "HeatMapLayer.d.ts", + "Search.d.ts", + "SpatialDataService.d.ts", + "SpatialMath.d.ts", + "Traffic.d.ts", + "WellKnownText.d.ts", "bingmaps-tests.ts" ] } \ No newline at end of file diff --git a/types/bip38/bip38-tests.ts b/types/bip38/bip38-tests.ts new file mode 100644 index 0000000000..c48fc9597b --- /dev/null +++ b/types/bip38/bip38-tests.ts @@ -0,0 +1,30 @@ +import * as bip38 from 'bip38'; + +const myWifString = '5KN7MzqK5wt2TP1fQCYyHBtDrXdJuXbUzm4A9rKAteGu3Qi5CVR'; + +// Result from wif.decode for testing +const decoded = { + version: 48, + privateKey: Buffer.from('12345678901234567890123456789012'), + compressed: true +}; + +// Test encrypt without progressCallback +const encryptedKey = bip38.encrypt(decoded.privateKey, decoded.compressed, 'TestingOneTwoThree'); + +// Test encrypt with progressCallback +bip38.encrypt(decoded.privateKey, decoded.compressed, 'TestingOneTwoThree', (status: bip38.ProgressStatus) => { + status.current; + status.total; + status.percent; +}); + +// Test decrypt without progressCallback +const decryptedKey = bip38.decrypt(encryptedKey, 'TestingOneTwoThree'); + +// Test decrypt with progressCallback +bip38.decrypt(encryptedKey, 'TestingOneTwoThree', (status: bip38.ProgressStatus) => { + status.current; + status.total; + status.percent; +}); diff --git a/types/bip38/index.d.ts b/types/bip38/index.d.ts new file mode 100644 index 0000000000..8842c6a241 --- /dev/null +++ b/types/bip38/index.d.ts @@ -0,0 +1,41 @@ +// Type definitions for bip38 2.0 +// Project: https://github.com/bitcoinjs/bip38 +// Definitions by: Satana Charuwichitratana +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +/// + +// Note: When there is @types/scryptsy, ProgressStatus and ScryptParams should be referred from the definition instead +export interface ProgressStatus { + current: number; + total: number; + percent: number; +} +export interface ScryptParams { + N: number; + r: number; + p: number; +} + +export function decrypt(string: string, passphrase: string, + progressCallback?: (status: ProgressStatus) => void, + scryptParams?: ScryptParams): { privateKey: Buffer, compressed: boolean }; + +export function decryptECMult(buffer: Buffer, passphrase: string, + progressCallback?: (status: ProgressStatus) => void, + scryptParams?: ScryptParams): { privateKey: Buffer, compressed: boolean }; + +export function decryptRaw(buffer: Buffer, passphrase: string, + progressCallback?: (status: ProgressStatus) => void, + scryptParams?: ScryptParams): { privateKey: Buffer, compressed: boolean }; + +export function encrypt(buffer: Buffer, compressed: boolean, passphrase: string, + progressCallback?: (status: ProgressStatus) => void, + scryptParams?: ScryptParams): string; + +export function encryptRaw(buffer: Buffer, compressed: boolean, passphrase: string, + progressCallback?: (status: ProgressStatus) => void, + scryptParams?: ScryptParams): Buffer; + +export function verify(string: string): boolean; diff --git a/types/bip38/tsconfig.json b/types/bip38/tsconfig.json new file mode 100644 index 0000000000..6ce875b1d1 --- /dev/null +++ b/types/bip38/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bip38-tests.ts" + ] +} diff --git a/types/bip38/tslint.json b/types/bip38/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/bip38/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/bip39/bip39-tests.ts b/types/bip39/bip39-tests.ts new file mode 100644 index 0000000000..1ec9611bb8 --- /dev/null +++ b/types/bip39/bip39-tests.ts @@ -0,0 +1,14 @@ +import * as bip39 from 'bip39'; + +// Test generate a random mnemonic +const mnemonic: string = bip39.generateMnemonic(); + +// Test generate a random mnemonic with strength +bip39.generateMnemonic(64); + +// Test mnemonic to seed +const seedHex: string = bip39.mnemonicToSeedHex('basket actual'); +const seed: Buffer = bip39.mnemonicToSeed('basket actual'); + +// Test validation +bip39.validateMnemonic(mnemonic); diff --git a/types/bip39/index.d.ts b/types/bip39/index.d.ts new file mode 100644 index 0000000000..a5d58cf961 --- /dev/null +++ b/types/bip39/index.d.ts @@ -0,0 +1,30 @@ +// Type definitions for bip39 2.4 +// Project: https://github.com/bitcoinjs/bip39 +// Definitions by: Satana Charuwichitratana +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +export const wordlists: { + EN: string[]; + JA: string[]; + chinese_simplified: string[]; + chinese_traditional: string[]; + english: string[]; + french: string[]; + italian: string[]; + japanese: string[]; + spanish: string[]; +}; + +export function entropyToMnemonic(entropyHex: string, wordlist?: string[]): string; + +export function generateMnemonic(strength?: number, rng?: (size: number) => Buffer, wordlist?: string[]): string; + +export function mnemonicToEntropy(mnemonic: string, wordlist?: string[]): string; + +export function mnemonicToSeed(mnemonic: string, password?: string): Buffer; + +export function mnemonicToSeedHex(mnemonic: string, password?: string): string; + +export function validateMnemonic(mnemonic: string, wordlist?: string[]): boolean; diff --git a/types/bip39/tsconfig.json b/types/bip39/tsconfig.json new file mode 100644 index 0000000000..d44c1197ad --- /dev/null +++ b/types/bip39/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "bip39-tests.ts" + ] +} diff --git a/types/bip39/tslint.json b/types/bip39/tslint.json new file mode 100644 index 0000000000..f93cf8562a --- /dev/null +++ b/types/bip39/tslint.json @@ -0,0 +1,3 @@ +{ + "extends": "dtslint/dt.json" +} diff --git a/types/bitcoinjs-lib/bitcoinjs-lib-tests.ts b/types/bitcoinjs-lib/bitcoinjs-lib-tests.ts index 868659e6b6..669c00d77a 100644 --- a/types/bitcoinjs-lib/bitcoinjs-lib-tests.ts +++ b/types/bitcoinjs-lib/bitcoinjs-lib-tests.ts @@ -1,62 +1,43 @@ import bigi = require('bigi'); import bitcoin = require('bitcoinjs-lib'); -declare const it: any; -declare const describe: any; -declare const assert: any; +// For testing only +function rng() { + return new Buffer('12345678901234567890123456789012'); +} -describe('bitcoinjs-lib (basic)', () => { - it('can generate a random bitcoin address', () => { - // for testing only - function rng() { return new Buffer('zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'); } +// Generate a random bitcoin address +const keyPair1 = bitcoin.ECPair.makeRandom({rng}); +const address = keyPair1.getAddress(); +keyPair1.toWIF(); - // generate random keyPair - const keyPair = bitcoin.ECPair.makeRandom({ rng }); - const address = keyPair.getAddress(); +// Generate an address from a SHA256 hash +const hash = bitcoin.crypto.sha256(Buffer.from('correct horse battery staple', 'utf8')); +const d = bigi.fromBuffer(hash); +const keyPair2 = new bitcoin.ECPair(d); - assert.strictEqual(address, '1F5VhMHukdnUES9kfXqzPzMeF1GPHKiF64'); - }); +// Generate a random keypair for alternative networks +const keyPair3 = bitcoin.ECPair.makeRandom({network: bitcoin.networks.litecoin, rng}); +keyPair3.toWIF(); +keyPair3.getAddress(); +const network = keyPair3.getNetwork(); - it('can generate an address from a SHA256 hash', () => { - const hash = bitcoin.crypto.sha256(Buffer.from('correct horse battery staple', 'utf8')); - const d = bigi.fromBuffer(hash); +// Test TransactionBuilder and Transaction +const txb = new bitcoin.TransactionBuilder(); +txb.addInput('aa94ab02c182214f090e99a0d57021caffd0f195a81c24602b1028b130b63e31', 0); +txb.addOutput(Buffer.from('1Gokm82v6DmtwKEB8AiVhm82hyFSsEvBDK', 'utf8'), 15000); +txb.sign(0, keyPair1); +const tx = txb.build(); +tx.toHex(); +tx.hasWitnesses(); +tx.hashForWitnessV0(1, new Buffer('12345678901234567890123456789012'), 2, 3); - const keyPair = new bitcoin.ECPair(d); - const address = keyPair.getAddress(); - - assert.strictEqual(address, '1C7zdTfnkzmr13HfA2vNm5SJYRK6nEKyq8'); - }); - - it('can generate a random keypair for alternative networks', () => { - // for testing only - function rng() { return new Buffer('zzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz'); } - - const litecoin = bitcoin.networks.litecoin; - - const keyPair = bitcoin.ECPair.makeRandom({ network: litecoin, rng }); - const wif = keyPair.toWIF(); - const address = keyPair.getAddress(); - - assert.strictEqual(address, 'LZJSxZbjqJ2XVEquqfqHg1RQTDdfST5PTn'); - assert.strictEqual(wif, 'T7A4PUSgTDHecBxW1ZiYFrDNRih2o7M8Gf9xpoCgudPF9gDiNvuS'); - }); - - it('can import an address via WIF', () => { - const keyPair = bitcoin.ECPair.fromWIF('Kxr9tQED9H44gCmp6HAdmemAzU3n84H3dGkuWTKvE23JgHMW8gct', bitcoin.networks.testnet); - const address = keyPair.getAddress(); - - assert.strictEqual(address, '19AAjaTUbRjQCMuVczepkoPswiZRhjtg31'); - }); - - it('can create a Transaction', () => { - const keyPair = bitcoin.ECPair.fromWIF('L1uyy5qTuGrVXrmrsvHWHgVzW9kKdrp27wBC7Vs6nZDTF2BRUVwy', bitcoin.networks.testnet); - const tx = new bitcoin.TransactionBuilder(); - - tx.addInput('aa94ab02c182214f090e99a0d57021caffd0f195a81c24602b1028b130b63e31', 0); - tx.addOutput(Buffer.from('1Gokm82v6DmtwKEB8AiVhm82hyFSsEvBDK', 'utf8'), 15000); - tx.sign(0, keyPair); - - // tslint:disable-next-line:max-line-length - assert.strictEqual(tx.build().toHex(), '0100000001313eb630b128102b60241ca895f1d0ffca2170d5a0990e094f2182c102ab94aa000000006b483045022100aefbcf847900b01dd3e3debe054d3b6d03d715d50aea8525f5ea3396f168a1fb022013d181d05b15b90111808b22ef4f9ebe701caf2ab48db269691fdf4e9048f4f60121029f50f51d63b345039a290c94bffd3180c99ed659ff6ea6b1242bca47eb93b59fffffffff01983a0000000000001976a914ad618cf4333b3b248f9744e8e81db2964d0ae39788ac00000000'); - }); -}); +// Test functions in address +const rsBase58Check = bitcoin.address.fromBase58Check(address); +const rsBech32 = bitcoin.address.fromBech32(address); +const rsOutputScript = bitcoin.address.fromOutputScript(new Buffer('12345678901234567890123456789012')); +const rsOutputScriptWithNetwork = bitcoin.address.fromOutputScript(new Buffer('12345678901234567890123456789012'), network); +bitcoin.address.toBase58Check(rsBase58Check.hash, rsBase58Check.version); +bitcoin.address.toBech32(rsBech32.data, rsBech32.version, rsBech32.prefix); +bitcoin.address.toOutputScript(address); +bitcoin.address.toOutputScript(address, network); diff --git a/types/bitcoinjs-lib/index.d.ts b/types/bitcoinjs-lib/index.d.ts index 1f5abfd2f3..c7d1acc899 100644 --- a/types/bitcoinjs-lib/index.d.ts +++ b/types/bitcoinjs-lib/index.d.ts @@ -1,14 +1,17 @@ -// Type definitions for bitcoinjs-lib 3.0 +// Type definitions for bitcoinjs-lib 3.3 // Project: https://github.com/bitcoinjs/bitcoinjs-lib // Definitions by: Mohamed Hegazy // Daniel // Ron Buckton +// Satana Charuwichitratana +// Youssef GHOUBACH // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // Declaration file initially generated by dts-gen for bitcoinjs-lib 3.0.3 // based on the flow version found at https://github.com/flowtype/flow-typed/blob/master/definitions/npm/bitcoinjs-lib_v2.x.x/flow_v0.17.x-/bitcoinjs-lib_v2.x.x.js /// -import BigInteger = require("bigi"); + +import BigInteger = require('bigi'); export interface Out { script: Buffer; @@ -168,22 +171,32 @@ export class Transaction { getId(): string; + /** @since 3.0.0 */ hasWitnesses(): boolean; hashForSignature(inIndex: number, prevOutScript: Buffer, hashType: number): Buffer; + /** @since 3.0.0 */ hashForWitnessV0(inIndex: number, prevOutScript: Buffer, value: number, hashType: number): Buffer; isCoinbase(): boolean; setInputScript(index: number, scriptSig: Buffer): void; + /** @since 3.0.0 */ setWitness(index: number, witness: any, ...args: any[]): void; + /** @since 3.0.0 */ toBuffer(buffer?: Buffer, initialOffset?: number): Buffer; toHex(): string; + /** @since 3.1.0 */ + virtualSize(): number; + + /** @since 3.1.0 */ + weight(): number; + static ADVANCED_TRANSACTION_FLAG: number; static ADVANCED_TRANSACTION_MARKER: number; @@ -233,6 +246,7 @@ export class TransactionBuilder { setVersion(version: number): void; + /** @since 3.0.0 */ sign(vin: number, keyPair: ECPair, redeemScript?: Buffer, hashType?: number, witnessValue?: number, witnessScript?: Buffer): void; static fromTransaction(transaction: Transaction, network: Network): TransactionBuilder; @@ -367,10 +381,16 @@ export const opcodes: { export namespace address { function fromBase58Check(address: string): { hash: Buffer, version: number }; - function fromOutputScript(outputScript: Buffer, network?: Network): Buffer; + /** @since 3.2.0 */ + function fromBech32(address: string): { data: Buffer, prefix: string, version: number }; + + function fromOutputScript(outputScript: Buffer, network?: Network): string; function toBase58Check(hash: Buffer, version: number): string; + /** @since 3.2.0 */ + function toBech32(data: Buffer, version: number, prefix: string): string; + function toOutputScript(address: string, network?: Network): Buffer; } diff --git a/types/bitcoinjs-lib/tslint.json b/types/bitcoinjs-lib/tslint.json index 3db14f85ea..f93cf8562a 100644 --- a/types/bitcoinjs-lib/tslint.json +++ b/types/bitcoinjs-lib/tslint.json @@ -1 +1,3 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json" +} diff --git a/types/blessed/index.d.ts b/types/blessed/index.d.ts index 9098648240..eff4b72d24 100644 --- a/types/blessed/index.d.ts +++ b/types/blessed/index.d.ts @@ -516,7 +516,7 @@ export namespace Widgets { * Debug mode. Enables usage of the debug method. Also creates a debug console which will display when * pressing F12. It will display all log and debug messages. */ - debug?(...msg: string[]): void; + debug?: boolean; /** * Array of keys in their full format (e.g. C-c) to ignore when keys are locked or grabbed. Useful @@ -963,7 +963,7 @@ export namespace Widgets { /** * Spawn a process in the foreground, return to blessed app after exit. */ - spawn(file: string, args: string[], options: NodeChildProcessExecOptions): child_process.ChildProcess; + spawn(file: string, args?: string[], options?: NodeChildProcessExecOptions): child_process.ChildProcess; /** * Spawn a process in the foreground, return to blessed app after exit. Executes callback on error or exit. diff --git a/types/bluebird/index.d.ts b/types/bluebird/index.d.ts index b28f821e12..8ad57050f6 100644 --- a/types/bluebird/index.d.ts +++ b/types/bluebird/index.d.ts @@ -47,7 +47,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { /** * Promises/A+ `.then()`. Returns a new promise chained from this promise. * - * The new promise will be rejected or resolved dedefer on the passed `fulfilledHandler`, `rejectedHandler` and the state of this promise. + * The new promise will be rejected or resolved depending on the passed `fulfilledHandler`, `rejectedHandler` and the state of this promise. */ // Based on PromiseLike.then, but returns a Bluebird instance. then(onFulfill?: (value: R) => U | PromiseLike, onReject?: (error: any) => U | PromiseLike): Bluebird; // For simpler signature help. @@ -192,34 +192,34 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { */ tapCatch(onReject: (error?: any) => U | PromiseLike): Bluebird; - tapCatch( - filter1: (new (...args: any[]) => E1) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => E2) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => E3) | ((error: any) => boolean) | object, - filter4: (new (...args: any[]) => E4) | ((error: any) => boolean) | object, - filter5: (new (...args: any[]) => E5) | ((error: any) => boolean) | object, + tapCatch( + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, + filter4: CatchFilter, + filter5: CatchFilter, onReject: (error: E1 | E2 | E3 | E4 | E5) => U | PromiseLike, ): Bluebird; - tapCatch( - filter1: (new (...args: any[]) => E1) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => E2) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => E3) | ((error: any) => boolean) | object, - filter4: (new (...args: any[]) => E4) | ((error: any) => boolean) | object, + tapCatch( + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, + filter4: CatchFilter, onReject: (error: E1 | E2 | E3 | E4) => U | PromiseLike, ): Bluebird; - tapCatch( - filter1: (new (...args: any[]) => E1) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => E2) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => E3) | ((error: any) => boolean) | object, + tapCatch( + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, onReject: (error: E1 | E2 | E3) => U | PromiseLike, ): Bluebird; - tapCatch( - filter1: (new (...args: any[]) => E1) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => E2) | ((error: any) => boolean) | object, + tapCatch( + filter1: CatchFilter, + filter2: CatchFilter, onReject: (error: E1 | E2) => U | PromiseLike, ): Bluebird; - tapCatch( - filter1: (new (...args: any[]) => E1) | ((error: any) => boolean) | object, + tapCatch( + filter1: CatchFilter, onReject: (error: E1) => U | PromiseLike, ): Bluebird; @@ -364,34 +364,35 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { */ catchReturn(value: U): Bluebird; + // No need to be specific about Error types in these overrides, since there's no handler function catchReturn( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter4: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter5: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, + filter4: CatchFilter, + filter5: CatchFilter, value: U, ): Bluebird; catchReturn( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter4: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, + filter4: CatchFilter, value: U, ): Bluebird; catchReturn( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, value: U, ): Bluebird; catchReturn( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, + filter2: CatchFilter, value: U, ): Bluebird; catchReturn( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, value: U, ): Bluebird; @@ -407,34 +408,35 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { */ catchThrow(reason: Error): Bluebird; + // No need to be specific about Error types in these overrides, since there's no handler function catchThrow( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter4: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter5: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, + filter4: CatchFilter, + filter5: CatchFilter, reason: Error, ): Bluebird; catchThrow( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter4: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, + filter4: CatchFilter, reason: Error, ): Bluebird; catchThrow( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter3: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, + filter2: CatchFilter, + filter3: CatchFilter, reason: Error, ): Bluebird; catchThrow( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, - filter2: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, + filter2: CatchFilter, reason: Error, ): Bluebird; catchThrow( - filter1: (new (...args: any[]) => Error) | ((error: any) => boolean) | object, + filter1: CatchFilter, reason: Error, ): Bluebird; @@ -761,7 +763,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { static race(values: PromiseLike | R>> | Iterable | R>): Bluebird; /** - * Initiate a competetive race between multiple promises or values (values will become immediately fulfilled promises). + * Initiate a competitive race between multiple promises or values (values will become immediately fulfilled promises). * When `count` amount of promises have been fulfilled, the returned promise is fulfilled with an array that contains the fulfillment values of the winners in order of resolution. * * If too many promises are rejected so that the promise can never become fulfilled, it will be immediately rejected with an array of rejection reasons in the order they were thrown in. @@ -835,7 +837,7 @@ declare class Bluebird implements PromiseLike, Bluebird.Inspection { * * If the reducer function returns a promise or a thenable, the result for the promise is awaited for before continuing with next iteration. * - * *The original array is not modified. If no `intialValue` is given and the array doesn't contain at least 2 items, the callback will not be called and `undefined` is returned. + * *The original array is not modified. If no `initialValue` is given and the array doesn't contain at least 2 items, the callback will not be called and `undefined` is returned. * If `initialValue` is given and the array doesn't have at least 1 item, `initialValue` is returned.* */ static reduce( @@ -1053,7 +1055,7 @@ declare namespace Bluebird { * Gives you a callback representation of the `PromiseResolver`. Note that this is not a method but a property. * The callback accepts error object in first argument and success values on the 2nd parameter and the rest, I.E. node js conventions. * - * If the the callback is called with multiple success values, the resolver fullfills its promise with an array of the values. + * If the the callback is called with multiple success values, the resolver fulfills its promise with an array of the values. */ // TODO specify resolver callback callback(err: any, value: R, ...values: R[]): void; diff --git a/types/boom/boom-tests.ts b/types/boom/boom-tests.ts index 1819be25cb..4d133b2545 100644 --- a/types/boom/boom-tests.ts +++ b/types/boom/boom-tests.ts @@ -1,11 +1,10 @@ import Boom = require('boom'); -import * as Hapi from 'hapi'; // 4xx and data type const badRequestError = Boom.badRequest('message', {some: 'data'}); badRequestError.data.some; -const badRequestError2: Boom.BoomError = Boom.badImplementation('message'); +const badRequestError2: Boom.Boom = Boom.badImplementation('message'); const unauthorizedError1 = Boom.unauthorized('message', 'scheme', {some: 'attribute'}); unauthorizedError1.output.payload.attributes === { some: 'attribute', error: 'message' }; @@ -25,125 +24,137 @@ unauthorizedError4.output.headers === { 'WWW-Authenticate': 'scheme some="attrib const paymentRequiredError = Boom.paymentRequired('message', {some: 'data'}); paymentRequiredError.data.some; -const paymentRequiredError2: Boom.BoomError = Boom.paymentRequired('message'); +const paymentRequiredError2: Boom.Boom = Boom.paymentRequired('message'); const forbiddenError = Boom.forbidden('message', {some: 'data'}); forbiddenError.data.some; -const forbiddenError2: Boom.BoomError = Boom.forbidden('message'); +const forbiddenError2: Boom.Boom = Boom.forbidden('message'); const notFoundError = Boom.notFound('message', {some: 'data'}); notFoundError.data.some; -const notFoundError2: Boom.BoomError = Boom.notFound('message'); +const notFoundError2: Boom.Boom = Boom.notFound('message'); const methodNotAllowedError = Boom.methodNotAllowed('message', {some: 'data'}); methodNotAllowedError.data.some; -const methodNotAllowedError2: Boom.BoomError = Boom.methodNotAllowed('message'); +const methodNotAllowedError2: Boom.Boom = Boom.methodNotAllowed('message'); const notAcceptableError = Boom.notAcceptable('message', {some: 'data'}); notAcceptableError.data.some; -const notAcceptableError2: Boom.BoomError = Boom.notAcceptable('message'); +const notAcceptableError2: Boom.Boom = Boom.notAcceptable('message'); const proxyAuthRequiredError = Boom.proxyAuthRequired('message', {some: 'data'}); proxyAuthRequiredError.data.some; -const proxyAuthRequiredError2: Boom.BoomError = Boom.proxyAuthRequired('message'); +const proxyAuthRequiredError2: Boom.Boom = Boom.proxyAuthRequired('message'); const clientTimeoutError = Boom.clientTimeout('message', {some: 'data'}); clientTimeoutError.data.some; -const clientTimeoutError2: Boom.BoomError = Boom.clientTimeout('message'); +const clientTimeoutError2: Boom.Boom = Boom.clientTimeout('message'); const conflictError = Boom.conflict('message', {some: 'data'}); conflictError.data.some; const resourceGoneError = Boom.resourceGone('message', {some: 'data'}); resourceGoneError.data.some; -const resourceGoneError2: Boom.BoomError = Boom.resourceGone('message'); +const resourceGoneError2: Boom.Boom = Boom.resourceGone('message'); const lengthRequiredError = Boom.lengthRequired('message', {some: 'data'}); lengthRequiredError.data.some; -const lengthRequiredError2: Boom.BoomError = Boom.lengthRequired('message'); +const lengthRequiredError2: Boom.Boom = Boom.lengthRequired('message'); const preconditionFailedError = Boom.preconditionFailed('message', {some: 'data'}); preconditionFailedError.data.some; -const preconditionFailedError2: Boom.BoomError = Boom.preconditionFailed('message'); +const preconditionFailedError2: Boom.Boom = Boom.preconditionFailed('message'); const entityTooLargeError = Boom.entityTooLarge('message', {some: 'data'}); entityTooLargeError.data.some; -const entityTooLargeError2: Boom.BoomError = Boom.lengthRequired('message'); +const entityTooLargeError2: Boom.Boom = Boom.lengthRequired('message'); const uriTooLongError = Boom.uriTooLong('message', {some: 'data'}); uriTooLongError.data.some; -const uriTooLongError2: Boom.BoomError = Boom.uriTooLong('message'); +const uriTooLongError2: Boom.Boom = Boom.uriTooLong('message'); const unsupportedMediaTypeError = Boom.unsupportedMediaType('message', {some: 'data'}); unsupportedMediaTypeError.data.some; -const unsupportedMediaTypeError2: Boom.BoomError = Boom.unsupportedMediaType('message'); +const unsupportedMediaTypeError2: Boom.Boom = Boom.unsupportedMediaType('message'); const rangeNotSatisfiableError = Boom.rangeNotSatisfiable('message', {some: 'data'}); rangeNotSatisfiableError.data.some; -const rangeNotSatisfiableError2: Boom.BoomError = Boom.rangeNotSatisfiable('message'); +const rangeNotSatisfiableError2: Boom.Boom = Boom.rangeNotSatisfiable('message'); const expectationFailedError = Boom.expectationFailed('message', {some: 'data'}); expectationFailedError.data.some; -const expectationFailedError2: Boom.BoomError = Boom.expectationFailed('message'); +const expectationFailedError2: Boom.Boom = Boom.expectationFailed('message'); const teapotError = Boom.teapot('message', {some: 'data'}); teapotError.data.some; -const teapotError2: Boom.BoomError = Boom.teapot('message'); +const teapotError2: Boom.Boom = Boom.teapot('message'); const badDataError = Boom.badData('message', {some: 'data'}); badDataError.data.some; -const badDataError2: Boom.BoomError = Boom.badData('message'); +const badDataError2: Boom.Boom = Boom.badData('message'); const lockedError = Boom.locked('message', {some: 'data'}); lockedError.data.some; -const lockedError2: Boom.BoomError = Boom.locked('message'); +const lockedError2: Boom.Boom = Boom.locked('message'); const preconditionRequiredError = Boom.preconditionRequired('message', {some: 'data'}); preconditionRequiredError.data.some; -const preconditionRequiredError2: Boom.BoomError = Boom.preconditionRequired('message'); +const preconditionRequiredError2: Boom.Boom = Boom.preconditionRequired('message'); const tooManyRequestsError = Boom.tooManyRequests('message', {some: 'data'}); tooManyRequestsError.data.some; -const tooManyRequestsError2: Boom.BoomError = Boom.tooManyRequests('message'); +const tooManyRequestsError2: Boom.Boom = Boom.tooManyRequests('message'); const illegalError = Boom.illegal('message', {some: 'data'}); illegalError.data.some; -const illegalError2: Boom.BoomError = Boom.illegal('message'); +const illegalError2: Boom.Boom = Boom.illegal('message'); // 5xx and data type const badImplementationError = Boom.badImplementation('message', {some: 'data'}); badImplementationError.data.some; -const badImplementationError2: Boom.BoomError = Boom.badImplementation('message'); +const badImplementationError2: Boom.Boom = Boom.badImplementation('message'); const internalError = Boom.internal('message', {some: 'data'}); internalError.data.some; -const internalError2: Boom.BoomError = Boom.internal('message'); +const internalError2: Boom.Boom = Boom.internal('message'); const notImplementedError = Boom.notImplemented('message', {some: 'data'}); notImplementedError.data.some; -const notImplementedError2: Boom.BoomError = Boom.notImplemented('message'); +const notImplementedError2: Boom.Boom = Boom.notImplemented('message'); const badGatewayError = Boom.badGateway('message', {some: 'data'}); badGatewayError.data.some; -const badGatewayError2: Boom.BoomError = Boom.badGateway('message'); +const badGatewayError2: Boom.Boom = Boom.badGateway('message'); const serverUnavailableError = Boom.serverUnavailable('message', {some: 'data'}); serverUnavailableError.data.some; -const serverUnavailableError2: Boom.BoomError = Boom.serverUnavailable('message'); +const serverUnavailableError2: Boom.Boom = Boom.serverUnavailable('message'); const gatewayTimeoutError = Boom.gatewayTimeout('message', {some: 'data'}); gatewayTimeoutError.data.some; -const gatewayTimeoutError2: Boom.BoomError = Boom.gatewayTimeout('message'); +const gatewayTimeoutError2: Boom.Boom = Boom.gatewayTimeout('message'); -// boomify, wrap, and create -const boomifiedError = Boom.boomify(new Error('test'), { statusCode: 400, message: 'some message' }) +// boomify +const boomifiedError = Boom.boomify(new Error('test'), { statusCode: 400, message: 'some message' }); -const wrappedError = Boom.wrap(new Error('test'), 400, 'some message'); +// isBoom -const error1 = Boom.create(500, 'Internal server error', { timestamp: Date.now() }); -error1.data.timestamp; -const error2: Boom.BoomError = Boom.create(500, 'Internal server error'); +const isBoomError = new Boom.Boom('test') + +Boom.isBoom(isBoomError); + +const maybeBoom = new Boom.Boom('test'); +if(Boom.isBoom(maybeBoom)) { + // isBoom is a type guard that allows accessing these properties: + maybeBoom.output.headers; +} + +// constructor + +const constructorError: Boom.Boom = new Boom.Boom('test'); + +constructorError.message; // type widen asserting @@ -169,11 +180,11 @@ interface CustomPayload extends Boom.Payload { * Test assignment of custom error data: */ const errorWithData = Boom.badImplementation('', { custom1: 'test', customType: 'Custom1', isCustom: true } as CustomData1); -const errorWithNoExplicitDataType: Boom.BoomError = errorWithData; // can assign to error without explicit data type -const errorWithExplicitType: Boom.BoomError = errorWithData; // can assign to union data type -const errorWithConcreteCustomData: Boom.BoomError = errorWithData; // can assign to concrete data type +const errorWithNoExplicitDataType: Boom.Boom = errorWithData; // can assign to error without explicit data type +const errorWithExplicitType: Boom.Boom = errorWithData; // can assign to union data type +const errorWithConcreteCustomData: Boom.Boom = errorWithData; // can assign to concrete data type // assignment to CustomData2 would not be possible -// const errorWithConcreteCustomData2: Boom.BoomError = errorWithData; +// const errorWithConcreteCustomData2: Boom.Boom = errorWithData; // Some complex error data types for testing purposes: interface CustomDataBase { diff --git a/types/boom/index.d.ts b/types/boom/index.d.ts index 76cd2d6b46..ed48f181cf 100644 --- a/types/boom/index.d.ts +++ b/types/boom/index.d.ts @@ -1,8 +1,9 @@ -// Type definitions for boom 4.3 +// Type definitions for boom 7.1.1 // Project: https://github.com/hapijs/boom // Definitions by: Igor Rogatty // AJP // Jinesh Shah +// Timon van Spronsen // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.4 @@ -14,7 +15,9 @@ declare namespace Boom { * boom provides a set of utilities for returning HTTP errors. Each utility returns a Boom error response object (instance of Error) which includes the following properties: * @see {@link https://github.com/hapijs/boom#boom} */ - export interface BoomError extends Error { + export class Boom extends Error { + /** Creates a new Boom object using the provided message and then calling boomify() to decorate the error with the Boom properties. */ + constructor(message?: string | Error, options?: Options); /** isBoom - if true, indicates this is a Boom object instance. */ isBoom: boolean; /** isServer - convenience bool indicating status code >= 500. */ @@ -31,6 +34,21 @@ declare namespace Boom { data: Data; } + interface Options { + /** statusCode - the HTTP status code. Defaults to 500 if no status code is already set. */ + statusCode?: number; + /** data - additional error information (assigned to error.data). */ + data?: Data; + /** decorate - an option with extra properties to set on the error object. */ + decorate?: object; + /** ctor - constructor reference used to crop the exception call stack output. */ + ctor?: any; + /** message - error message string. If the error already has a message, the provided message is added as a prefix. Defaults to no message. */ + message?: string; + /** override - if false, the err provided is a Boom object, and a statusCode or message are provided, the values are ignored. Defaults to true (apply the provided statusCode and message options to the error regardless of its type, Error or Boom object). */ + override?: boolean; + } + export interface Output { /** statusCode - the HTTP status code (typically 4xx or 5xx). */ statusCode: number; @@ -62,25 +80,13 @@ declare namespace Boom { * @param options optional additional options * @see {@link https://github.com/hapijs/boom#boomifyerror-options} */ - export function boomify(error: Error, options?: { statusCode?: number, message?: string, override?: boolean }): BoomError; + export function boomify(error: Error, options?: { statusCode?: number, message?: string, override?: boolean }): Boom; /** - * Decorates an error with the boom properties - * @param error the error object to wrap. If error is already a boom object, returns back the same object. - * @param statusCode optional HTTP status code. Defaults to 500. - * @param message optional message string. If the error already has a message, it adds the message as a prefix. Defaults to no message. - * @see {@link https://github.com/hapijs/boom#wraperror-statuscode-message} + * Identifies whether an error is a Boom object. Same as calling instanceof Boom. + * @param error the error object to identify. */ - export function wrap(error: Error, statusCode?: number, message?: string): BoomError; - - /** - * Generates an Error object with the boom decorations - * @param statusCode an HTTP error code number. Must be greater or equal 400. - * @param message optional message string. - * @param data additional error data set to error.data property. - * @see {@link https://github.com/hapijs/boom#createstatuscode-message-data} - */ - export function create(statusCode: number, message?: string, data?: Data): BoomError; + export function isBoom(error: Error): error is Boom // 4xx /** @@ -89,7 +95,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boombadrequestmessage-data} */ - export function badRequest(message?: string, data?: Data): BoomError; + export function badRequest(message?: string, data?: Data): Boom; /** * Returns a 401 Unauthorized error @@ -100,10 +106,10 @@ declare namespace Boom { * @param attributes an object of values to use while setting the 'WWW-Authenticate' header. This value is only used when scheme is a string, otherwise it is ignored. Every key/value pair will be included in the 'WWW-Authenticate' in the format of 'key="value"' as well as in the response payload under the attributes key. Alternatively value can be a string which is use to set the value of the scheme, for example setting the token value for negotiate header. If string is used message parameter must be null. null and undefined will be replaced with an empty string. If attributes is set, message will be used as the 'error' segment of the 'WWW-Authenticate' header. If message is unset, the 'error' segment of the header will not be present and isMissing will be true on the error object. * @see {@link https://github.com/hapijs/boom#boomunauthorizedmessage-scheme-attributes} */ - export function unauthorized(message?: string, scheme?: string, attributes?: {[index: string]: string}): BoomError; - export function unauthorized(message?: string, scheme?: string[]): BoomError; - export function unauthorized(message?: null, scheme?: string, attributes?: {[index: string]: string} | string): BoomError; - export function unauthorized(message?: null, scheme?: string[]): BoomError; + export function unauthorized(message?: string, scheme?: string, attributes?: {[index: string]: string}): Boom; + export function unauthorized(message?: string, scheme?: string[]): Boom; + export function unauthorized(message?: null, scheme?: string, attributes?: {[index: string]: string} | string): Boom; + export function unauthorized(message?: null, scheme?: string[]): Boom; /** * Returns a 402 Payment Required error @@ -111,7 +117,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boompaymentrequiredmessage-data} */ - export function paymentRequired(message?: string, data?: Data): BoomError; + export function paymentRequired(message?: string, data?: Data): Boom; /** * Returns a 403 Forbidden error @@ -119,7 +125,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomforbiddenmessage-data} */ - export function forbidden(message?: string, data?: Data): BoomError; + export function forbidden(message?: string, data?: Data): Boom; /** * Returns a 404 Not Found error @@ -127,7 +133,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomnotfoundmessage-data} */ - export function notFound(message?: string, data?: Data): BoomError; + export function notFound(message?: string, data?: Data): Boom; /** * Returns a 405 Method Not Allowed error @@ -136,7 +142,7 @@ declare namespace Boom { * @param allow optional string or array of strings (to be combined and separated by ', ') which is set to the 'Allow' header. * @see {@link https://github.com/hapijs/boom#boommethodnotallowedmessage-data-allow} */ - export function methodNotAllowed(message?: string, data?: Data, allow?: string | string[]): BoomError; + export function methodNotAllowed(message?: string, data?: Data, allow?: string | string[]): Boom; /** * Returns a 406 Not Acceptable error @@ -144,7 +150,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomnotacceptablemessage-data} */ - export function notAcceptable(message?: string, data?: Data): BoomError; + export function notAcceptable(message?: string, data?: Data): Boom; /** * Returns a 407 Proxy Authentication Required error @@ -152,7 +158,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomproxyauthrequiredmessage-data} */ - export function proxyAuthRequired(message?: string, data?: Data): BoomError; + export function proxyAuthRequired(message?: string, data?: Data): Boom; /** * Returns a 408 Request Time-out error @@ -160,7 +166,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomclienttimeoutmessage-data} */ - export function clientTimeout(message?: string, data?: Data): BoomError; + export function clientTimeout(message?: string, data?: Data): Boom; /** * Returns a 409 Conflict error @@ -168,7 +174,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomconflictmessage-data} */ - export function conflict(message?: string, data?: Data): BoomError; + export function conflict(message?: string, data?: Data): Boom; /** * Returns a 410 Gone error @@ -176,7 +182,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomresourcegonemessage-data} */ - export function resourceGone(message?: string, data?: Data): BoomError; + export function resourceGone(message?: string, data?: Data): Boom; /** * Returns a 411 Length Required error @@ -184,7 +190,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomlengthrequiredmessage-data} */ - export function lengthRequired(message?: string, data?: Data): BoomError; + export function lengthRequired(message?: string, data?: Data): Boom; /** * Returns a 412 Precondition Failed error @@ -192,7 +198,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boompreconditionfailedmessage-data} */ - export function preconditionFailed(message?: string, data?: Data): BoomError; + export function preconditionFailed(message?: string, data?: Data): Boom; /** * Returns a 413 Request Entity Too Large error @@ -200,7 +206,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomentitytoolargemessage-data} */ - export function entityTooLarge(message?: string, data?: Data): BoomError; + export function entityTooLarge(message?: string, data?: Data): Boom; /** * Returns a 414 Request-URI Too Large error @@ -208,7 +214,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomuritoolongmessage-data} */ - export function uriTooLong(message?: string, data?: Data): BoomError; + export function uriTooLong(message?: string, data?: Data): Boom; /** * Returns a 415 Unsupported Media Type error @@ -216,7 +222,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomunsupportedmediatypemessage-data} */ - export function unsupportedMediaType(message?: string, data?: Data): BoomError; + export function unsupportedMediaType(message?: string, data?: Data): Boom; /** * Returns a 416 Requested Range Not Satisfiable error @@ -224,7 +230,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomrangenotsatisfiablemessage-data} */ - export function rangeNotSatisfiable(message?: string, data?: Data): BoomError; + export function rangeNotSatisfiable(message?: string, data?: Data): Boom; /** * Returns a 417 Expectation Failed error @@ -232,7 +238,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomexpectationfailedmessage-data} */ - export function expectationFailed(message?: string, data?: Data): BoomError; + export function expectationFailed(message?: string, data?: Data): Boom; /** * Returns a 418 I'm a Teapot error @@ -240,7 +246,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomteapotmessage-data} */ - export function teapot(message?: string, data?: Data): BoomError; + export function teapot(message?: string, data?: Data): Boom; /** * Returns a 422 Unprocessable Entity error @@ -248,7 +254,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boombaddatamessage-data} */ - export function badData(message?: string, data?: Data): BoomError; + export function badData(message?: string, data?: Data): Boom; /** * Returns a 423 Locked error @@ -256,7 +262,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomlockedmessage-data} */ - export function locked(message?: string, data?: Data): BoomError; + export function locked(message?: string, data?: Data): Boom; /** * Returns a 428 Precondition Required error @@ -264,7 +270,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boompreconditionrequiredmessage-data} */ - export function preconditionRequired(message?: string, data?: Data): BoomError; + export function preconditionRequired(message?: string, data?: Data): Boom; /** * Returns a 429 Too Many Requests error @@ -272,7 +278,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomtoomanyrequestsmessage-data} */ - export function tooManyRequests(message?: string, data?: Data): BoomError; + export function tooManyRequests(message?: string, data?: Data): Boom; /** * Returns a 451 Unavailable For Legal Reasons error @@ -280,7 +286,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomillegalmessage-data} */ - export function illegal(message?: string, data?: Data): BoomError; + export function illegal(message?: string, data?: Data): Boom; // 5xx /** @@ -290,7 +296,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boombadimplementationmessage-data---alias-internal} */ - export function badImplementation(message?: string, data?: Data): BoomError; + export function badImplementation(message?: string, data?: Data): Boom; /** * Returns a 500 Internal Server Error error @@ -299,7 +305,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boombadimplementationmessage-data---alias-internal} */ - export function internal(message?: string, data?: Data): BoomError; + export function internal(message?: string, data?: Data): Boom; /** * Returns a 501 Not Implemented error with your error message to the user @@ -307,7 +313,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomnotimplementedmessage-data} */ - export function notImplemented(message?: string, data?: Data): BoomError; + export function notImplemented(message?: string, data?: Data): Boom; /** * Returns a 502 Bad Gateway error with your error message to the user @@ -315,7 +321,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boombadgatewaymessage-data} */ - export function badGateway(message?: string, data?: Data): BoomError; + export function badGateway(message?: string, data?: Data): Boom; /** * Returns a 503 Service Unavailable error with your error message to the user @@ -323,7 +329,7 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomserverunavailablemessage-data} */ - export function serverUnavailable(message?: string, data?: Data): BoomError; + export function serverUnavailable(message?: string, data?: Data): Boom; /** * Returns a 504 Gateway Time-out error with your error message to the user @@ -331,5 +337,5 @@ declare namespace Boom { * @param data optional additional error data. * @see {@link https://github.com/hapijs/boom#boomgatewaytimeoutmessage-data} */ - export function gatewayTimeout(message?: string, data?: Data): BoomError; + export function gatewayTimeout(message?: string, data?: Data): Boom; } diff --git a/types/boom/v4/boom-tests.ts b/types/boom/v4/boom-tests.ts new file mode 100644 index 0000000000..1819be25cb --- /dev/null +++ b/types/boom/v4/boom-tests.ts @@ -0,0 +1,193 @@ +import Boom = require('boom'); +import * as Hapi from 'hapi'; + +// 4xx and data type + +const badRequestError = Boom.badRequest('message', {some: 'data'}); +badRequestError.data.some; +const badRequestError2: Boom.BoomError = Boom.badImplementation('message'); + +const unauthorizedError1 = Boom.unauthorized('message', 'scheme', {some: 'attribute'}); +unauthorizedError1.output.payload.attributes === { some: 'attribute', error: 'message' }; +unauthorizedError1.output.headers === { 'WWW-Authenticate': 'scheme some="attribute", error="message"' }; + +const unauthorizedError2 = Boom.unauthorized('message', ['scheme']); +unauthorizedError2.output.payload.attributes === undefined; +unauthorizedError2.output.headers === { 'WWW-Authenticate': 'scheme' }; + +const unauthorizedError3 = Boom.unauthorized(null, 'scheme', 'attribute'); +unauthorizedError3.output.payload.attributes === 'attribute'; +unauthorizedError3.output.headers === { 'WWW-Authenticate': 'scheme attribute' }; + +const unauthorizedError4 = Boom.unauthorized(null, 'scheme', {some: 'attribute'}); +unauthorizedError4.output.payload.attributes === { some: 'attribute' }; +unauthorizedError4.output.headers === { 'WWW-Authenticate': 'scheme some="attribute"' }; + +const paymentRequiredError = Boom.paymentRequired('message', {some: 'data'}); +paymentRequiredError.data.some; +const paymentRequiredError2: Boom.BoomError = Boom.paymentRequired('message'); + +const forbiddenError = Boom.forbidden('message', {some: 'data'}); +forbiddenError.data.some; +const forbiddenError2: Boom.BoomError = Boom.forbidden('message'); + +const notFoundError = Boom.notFound('message', {some: 'data'}); +notFoundError.data.some; +const notFoundError2: Boom.BoomError = Boom.notFound('message'); + +const methodNotAllowedError = Boom.methodNotAllowed('message', {some: 'data'}); +methodNotAllowedError.data.some; +const methodNotAllowedError2: Boom.BoomError = Boom.methodNotAllowed('message'); + +const notAcceptableError = Boom.notAcceptable('message', {some: 'data'}); +notAcceptableError.data.some; +const notAcceptableError2: Boom.BoomError = Boom.notAcceptable('message'); + +const proxyAuthRequiredError = Boom.proxyAuthRequired('message', {some: 'data'}); +proxyAuthRequiredError.data.some; +const proxyAuthRequiredError2: Boom.BoomError = Boom.proxyAuthRequired('message'); + +const clientTimeoutError = Boom.clientTimeout('message', {some: 'data'}); +clientTimeoutError.data.some; +const clientTimeoutError2: Boom.BoomError = Boom.clientTimeout('message'); + +const conflictError = Boom.conflict('message', {some: 'data'}); +conflictError.data.some; + +const resourceGoneError = Boom.resourceGone('message', {some: 'data'}); +resourceGoneError.data.some; +const resourceGoneError2: Boom.BoomError = Boom.resourceGone('message'); + +const lengthRequiredError = Boom.lengthRequired('message', {some: 'data'}); +lengthRequiredError.data.some; +const lengthRequiredError2: Boom.BoomError = Boom.lengthRequired('message'); + +const preconditionFailedError = Boom.preconditionFailed('message', {some: 'data'}); +preconditionFailedError.data.some; +const preconditionFailedError2: Boom.BoomError = Boom.preconditionFailed('message'); + +const entityTooLargeError = Boom.entityTooLarge('message', {some: 'data'}); +entityTooLargeError.data.some; +const entityTooLargeError2: Boom.BoomError = Boom.lengthRequired('message'); + +const uriTooLongError = Boom.uriTooLong('message', {some: 'data'}); +uriTooLongError.data.some; +const uriTooLongError2: Boom.BoomError = Boom.uriTooLong('message'); + +const unsupportedMediaTypeError = Boom.unsupportedMediaType('message', {some: 'data'}); +unsupportedMediaTypeError.data.some; +const unsupportedMediaTypeError2: Boom.BoomError = Boom.unsupportedMediaType('message'); + +const rangeNotSatisfiableError = Boom.rangeNotSatisfiable('message', {some: 'data'}); +rangeNotSatisfiableError.data.some; +const rangeNotSatisfiableError2: Boom.BoomError = Boom.rangeNotSatisfiable('message'); + +const expectationFailedError = Boom.expectationFailed('message', {some: 'data'}); +expectationFailedError.data.some; +const expectationFailedError2: Boom.BoomError = Boom.expectationFailed('message'); + +const teapotError = Boom.teapot('message', {some: 'data'}); +teapotError.data.some; +const teapotError2: Boom.BoomError = Boom.teapot('message'); + +const badDataError = Boom.badData('message', {some: 'data'}); +badDataError.data.some; +const badDataError2: Boom.BoomError = Boom.badData('message'); + +const lockedError = Boom.locked('message', {some: 'data'}); +lockedError.data.some; +const lockedError2: Boom.BoomError = Boom.locked('message'); + +const preconditionRequiredError = Boom.preconditionRequired('message', {some: 'data'}); +preconditionRequiredError.data.some; +const preconditionRequiredError2: Boom.BoomError = Boom.preconditionRequired('message'); + +const tooManyRequestsError = Boom.tooManyRequests('message', {some: 'data'}); +tooManyRequestsError.data.some; +const tooManyRequestsError2: Boom.BoomError = Boom.tooManyRequests('message'); + +const illegalError = Boom.illegal('message', {some: 'data'}); +illegalError.data.some; +const illegalError2: Boom.BoomError = Boom.illegal('message'); + +// 5xx and data type + +const badImplementationError = Boom.badImplementation('message', {some: 'data'}); +badImplementationError.data.some; +const badImplementationError2: Boom.BoomError = Boom.badImplementation('message'); + +const internalError = Boom.internal('message', {some: 'data'}); +internalError.data.some; +const internalError2: Boom.BoomError = Boom.internal('message'); + +const notImplementedError = Boom.notImplemented('message', {some: 'data'}); +notImplementedError.data.some; +const notImplementedError2: Boom.BoomError = Boom.notImplemented('message'); + +const badGatewayError = Boom.badGateway('message', {some: 'data'}); +badGatewayError.data.some; +const badGatewayError2: Boom.BoomError = Boom.badGateway('message'); + +const serverUnavailableError = Boom.serverUnavailable('message', {some: 'data'}); +serverUnavailableError.data.some; +const serverUnavailableError2: Boom.BoomError = Boom.serverUnavailable('message'); + +const gatewayTimeoutError = Boom.gatewayTimeout('message', {some: 'data'}); +gatewayTimeoutError.data.some; +const gatewayTimeoutError2: Boom.BoomError = Boom.gatewayTimeout('message'); + +// boomify, wrap, and create +const boomifiedError = Boom.boomify(new Error('test'), { statusCode: 400, message: 'some message' }) + +const wrappedError = Boom.wrap(new Error('test'), 400, 'some message'); + +const error1 = Boom.create(500, 'Internal server error', { timestamp: Date.now() }); +error1.data.timestamp; +const error2: Boom.BoomError = Boom.create(500, 'Internal server error'); + +// type widen asserting + +const unauthorizedError = Boom.unauthorized() as Error; + +// status code and reformat + +const error = Boom.badRequest('Cannot feed after midnight'); +error.output.statusCode = 499; // Assign a custom error code +error.reformat(); + +/** + * Add a custom key to the payload + */ + +interface CustomPayload extends Boom.Payload { + custom: string; +} + +(error.output.payload as CustomPayload).custom = 'abc_123'; + +/** + * Test assignment of custom error data: + */ +const errorWithData = Boom.badImplementation('', { custom1: 'test', customType: 'Custom1', isCustom: true } as CustomData1); +const errorWithNoExplicitDataType: Boom.BoomError = errorWithData; // can assign to error without explicit data type +const errorWithExplicitType: Boom.BoomError = errorWithData; // can assign to union data type +const errorWithConcreteCustomData: Boom.BoomError = errorWithData; // can assign to concrete data type +// assignment to CustomData2 would not be possible +// const errorWithConcreteCustomData2: Boom.BoomError = errorWithData; + +// Some complex error data types for testing purposes: +interface CustomDataBase { + isCustom: true; +} + +interface CustomData1 extends CustomDataBase { + customType: 'Custom1'; + custom1: string; +} + +interface CustomData2 extends CustomDataBase { + customType: 'Custom2'; + custom2: string; +} + +type CustomData = CustomData1 | CustomData2; diff --git a/types/boom/v4/index.d.ts b/types/boom/v4/index.d.ts new file mode 100644 index 0000000000..76cd2d6b46 --- /dev/null +++ b/types/boom/v4/index.d.ts @@ -0,0 +1,335 @@ +// Type definitions for boom 4.3 +// Project: https://github.com/hapijs/boom +// Definitions by: Igor Rogatty +// AJP +// Jinesh Shah +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.4 + +export = Boom; + +declare namespace Boom { + + /** + * boom provides a set of utilities for returning HTTP errors. Each utility returns a Boom error response object (instance of Error) which includes the following properties: + * @see {@link https://github.com/hapijs/boom#boom} + */ + export interface BoomError extends Error { + /** isBoom - if true, indicates this is a Boom object instance. */ + isBoom: boolean; + /** isServer - convenience bool indicating status code >= 500. */ + isServer: boolean; + /** message - the error message. */ + message: string; + /** output - the formatted response. Can be directly manipulated after object construction to return a custom error response. Allowed root keys: */ + output: Output; + /** reformat() - rebuilds error.output using the other object properties. */ + reformat: () => string; + /** "If message is unset, the 'error' segment of the header will not be present and isMissing will be true on the error object." mentioned in @see {@link https://github.com/hapijs/boom#boomunauthorizedmessage-scheme-attributes} */ + isMissing?: boolean; + /** https://github.com/hapijs/boom#createstatuscode-message-data and https://github.com/hapijs/boom/blob/v4.3.0/lib/index.js#L99 */ + data: Data; + } + + export interface Output { + /** statusCode - the HTTP status code (typically 4xx or 5xx). */ + statusCode: number; + /** headers - an object containing any HTTP headers where each key is a header name and value is the header content. (Limited value type to string https://github.com/hapijs/boom/issues/151 ) */ + headers: {[index: string]: string}; + /** payload - the formatted object used as the response payload (stringified). Can be directly manipulated but any changes will be lost if reformat() is called. Any content allowed and by default includes the following content: */ + payload: Payload; + } + + export interface Payload { + /** statusCode - the HTTP status code, derived from error.output.statusCode. */ + statusCode: number; + /** error - the HTTP status message (e.g. 'Bad Request', 'Internal Server Error') derived from statusCode. */ + error: string; + /** message - the error message derived from error.message. */ + message: string; + /** + * "Every key/value pair will be included ... in the response payload under the attributes key." + * [see docs](https://github.com/hapijs/boom#boomunauthorizedmessage-scheme-attributes) + */ + attributes?: any; + // Excluded this to aid typing of the other values. See tests for example casting to a custom interface to manipulate the payload + // [anyContent: string]: any; + } + + /** + * Decorates an error with the boom properties + * @param error the error object to wrap. If error is already a boom object, it defaults to overriding the object with the new status code and message. + * @param options optional additional options + * @see {@link https://github.com/hapijs/boom#boomifyerror-options} + */ + export function boomify(error: Error, options?: { statusCode?: number, message?: string, override?: boolean }): BoomError; + + /** + * Decorates an error with the boom properties + * @param error the error object to wrap. If error is already a boom object, returns back the same object. + * @param statusCode optional HTTP status code. Defaults to 500. + * @param message optional message string. If the error already has a message, it adds the message as a prefix. Defaults to no message. + * @see {@link https://github.com/hapijs/boom#wraperror-statuscode-message} + */ + export function wrap(error: Error, statusCode?: number, message?: string): BoomError; + + /** + * Generates an Error object with the boom decorations + * @param statusCode an HTTP error code number. Must be greater or equal 400. + * @param message optional message string. + * @param data additional error data set to error.data property. + * @see {@link https://github.com/hapijs/boom#createstatuscode-message-data} + */ + export function create(statusCode: number, message?: string, data?: Data): BoomError; + + // 4xx + /** + * Returns a 400 Bad Request error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boombadrequestmessage-data} + */ + export function badRequest(message?: string, data?: Data): BoomError; + + /** + * Returns a 401 Unauthorized error + * @param message optional message. + * @param scheme can be one of the following: + * * an authentication scheme name + * * an array of string values. These values will be separated by ', ' and set to the 'WWW-Authenticate' header. + * @param attributes an object of values to use while setting the 'WWW-Authenticate' header. This value is only used when scheme is a string, otherwise it is ignored. Every key/value pair will be included in the 'WWW-Authenticate' in the format of 'key="value"' as well as in the response payload under the attributes key. Alternatively value can be a string which is use to set the value of the scheme, for example setting the token value for negotiate header. If string is used message parameter must be null. null and undefined will be replaced with an empty string. If attributes is set, message will be used as the 'error' segment of the 'WWW-Authenticate' header. If message is unset, the 'error' segment of the header will not be present and isMissing will be true on the error object. + * @see {@link https://github.com/hapijs/boom#boomunauthorizedmessage-scheme-attributes} + */ + export function unauthorized(message?: string, scheme?: string, attributes?: {[index: string]: string}): BoomError; + export function unauthorized(message?: string, scheme?: string[]): BoomError; + export function unauthorized(message?: null, scheme?: string, attributes?: {[index: string]: string} | string): BoomError; + export function unauthorized(message?: null, scheme?: string[]): BoomError; + + /** + * Returns a 402 Payment Required error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boompaymentrequiredmessage-data} + */ + export function paymentRequired(message?: string, data?: Data): BoomError; + + /** + * Returns a 403 Forbidden error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomforbiddenmessage-data} + */ + export function forbidden(message?: string, data?: Data): BoomError; + + /** + * Returns a 404 Not Found error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomnotfoundmessage-data} + */ + export function notFound(message?: string, data?: Data): BoomError; + + /** + * Returns a 405 Method Not Allowed error + * @param message optional message. + * @param data optional additional error data. + * @param allow optional string or array of strings (to be combined and separated by ', ') which is set to the 'Allow' header. + * @see {@link https://github.com/hapijs/boom#boommethodnotallowedmessage-data-allow} + */ + export function methodNotAllowed(message?: string, data?: Data, allow?: string | string[]): BoomError; + + /** + * Returns a 406 Not Acceptable error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomnotacceptablemessage-data} + */ + export function notAcceptable(message?: string, data?: Data): BoomError; + + /** + * Returns a 407 Proxy Authentication Required error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomproxyauthrequiredmessage-data} + */ + export function proxyAuthRequired(message?: string, data?: Data): BoomError; + + /** + * Returns a 408 Request Time-out error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomclienttimeoutmessage-data} + */ + export function clientTimeout(message?: string, data?: Data): BoomError; + + /** + * Returns a 409 Conflict error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomconflictmessage-data} + */ + export function conflict(message?: string, data?: Data): BoomError; + + /** + * Returns a 410 Gone error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomresourcegonemessage-data} + */ + export function resourceGone(message?: string, data?: Data): BoomError; + + /** + * Returns a 411 Length Required error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomlengthrequiredmessage-data} + */ + export function lengthRequired(message?: string, data?: Data): BoomError; + + /** + * Returns a 412 Precondition Failed error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boompreconditionfailedmessage-data} + */ + export function preconditionFailed(message?: string, data?: Data): BoomError; + + /** + * Returns a 413 Request Entity Too Large error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomentitytoolargemessage-data} + */ + export function entityTooLarge(message?: string, data?: Data): BoomError; + + /** + * Returns a 414 Request-URI Too Large error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomuritoolongmessage-data} + */ + export function uriTooLong(message?: string, data?: Data): BoomError; + + /** + * Returns a 415 Unsupported Media Type error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomunsupportedmediatypemessage-data} + */ + export function unsupportedMediaType(message?: string, data?: Data): BoomError; + + /** + * Returns a 416 Requested Range Not Satisfiable error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomrangenotsatisfiablemessage-data} + */ + export function rangeNotSatisfiable(message?: string, data?: Data): BoomError; + + /** + * Returns a 417 Expectation Failed error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomexpectationfailedmessage-data} + */ + export function expectationFailed(message?: string, data?: Data): BoomError; + + /** + * Returns a 418 I'm a Teapot error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomteapotmessage-data} + */ + export function teapot(message?: string, data?: Data): BoomError; + + /** + * Returns a 422 Unprocessable Entity error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boombaddatamessage-data} + */ + export function badData(message?: string, data?: Data): BoomError; + + /** + * Returns a 423 Locked error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomlockedmessage-data} + */ + export function locked(message?: string, data?: Data): BoomError; + + /** + * Returns a 428 Precondition Required error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boompreconditionrequiredmessage-data} + */ + export function preconditionRequired(message?: string, data?: Data): BoomError; + + /** + * Returns a 429 Too Many Requests error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomtoomanyrequestsmessage-data} + */ + export function tooManyRequests(message?: string, data?: Data): BoomError; + + /** + * Returns a 451 Unavailable For Legal Reasons error + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomillegalmessage-data} + */ + export function illegal(message?: string, data?: Data): BoomError; + + // 5xx + /** + * Returns a 500 Internal Server Error error + * Only 500 errors will hide your message from the end user. Your message is recorded in the server log. + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boombadimplementationmessage-data---alias-internal} + */ + export function badImplementation(message?: string, data?: Data): BoomError; + + /** + * Returns a 500 Internal Server Error error + * Only 500 errors will hide your message from the end user. Your message is recorded in the server log. + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boombadimplementationmessage-data---alias-internal} + */ + export function internal(message?: string, data?: Data): BoomError; + + /** + * Returns a 501 Not Implemented error with your error message to the user + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomnotimplementedmessage-data} + */ + export function notImplemented(message?: string, data?: Data): BoomError; + + /** + * Returns a 502 Bad Gateway error with your error message to the user + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boombadgatewaymessage-data} + */ + export function badGateway(message?: string, data?: Data): BoomError; + + /** + * Returns a 503 Service Unavailable error with your error message to the user + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomserverunavailablemessage-data} + */ + export function serverUnavailable(message?: string, data?: Data): BoomError; + + /** + * Returns a 504 Gateway Time-out error with your error message to the user + * @param message optional message. + * @param data optional additional error data. + * @see {@link https://github.com/hapijs/boom#boomgatewaytimeoutmessage-data} + */ + export function gatewayTimeout(message?: string, data?: Data): BoomError; +} diff --git a/types/sharp-timer/v0/tsconfig.json b/types/boom/v4/tsconfig.json similarity index 84% rename from types/sharp-timer/v0/tsconfig.json rename to types/boom/v4/tsconfig.json index 423755928a..58f1109eee 100644 --- a/types/sharp-timer/v0/tsconfig.json +++ b/types/boom/v4/tsconfig.json @@ -12,17 +12,17 @@ "typeRoots": [ "../../" ], + "types": [], "paths": { - "sharp-timer": [ - "sharp-timer/v0" + "boom": [ + "boom/v4" ] }, - "types": [], "noEmit": true, "forceConsistentCasingInFileNames": true }, "files": [ "index.d.ts", - "sharp-timer-tests.ts" + "boom-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/adal/tslint.json b/types/boom/v4/tslint.json similarity index 100% rename from types/adal/tslint.json rename to types/boom/v4/tslint.json diff --git a/types/bootbox/index.d.ts b/types/bootbox/index.d.ts index 850eb18c25..dfdf0de871 100644 --- a/types/bootbox/index.d.ts +++ b/types/bootbox/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for Bootbox 4.4.0 // Project: https://github.com/makeusabrew/bootbox -// Definitions by: Vincent Bortone , Kon Pik , Anup Kattel , Dominik Schroeter , Troy McKinnon , Stanny Nuytkens +// Definitions by: Vincent Bortone , Kon Pik , Anup Kattel , Dominik Schroeter , Troy McKinnon , Stanny Nuytkens , Soner Köksal // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -23,7 +23,7 @@ interface BootboxBaseOptions { /** Bootbox options available for custom modals */ interface BootboxDialogOptions extends BootboxBaseOptions { - message: string | Element; + message: JQuery|any[]|Element|DocumentFragment|Text|string|((index: number, html: string) => string|Element|JQuery); } /** Bootbox options available for alert modals */ diff --git a/types/bootstrap/index.d.ts b/types/bootstrap/index.d.ts index 9fa10bcdbb..a3117596af 100644 --- a/types/bootstrap/index.d.ts +++ b/types/bootstrap/index.d.ts @@ -115,6 +115,7 @@ interface JQuery { carousel(options?: CarouselOptions): JQuery; carousel(command: string): JQuery; + carousel(index: number): JQuery; typeahead(options?: TypeaheadOptions): JQuery; diff --git a/types/botvs/botvs-tests.ts b/types/botvs/botvs-tests.ts deleted file mode 100644 index 96c424c164..0000000000 --- a/types/botvs/botvs-tests.ts +++ /dev/null @@ -1,7 +0,0 @@ -_N(0, 1); -_C(() => void 0); -Sleep(1e3); -const data: botvs.Record | undefined = void 0; -console.log(data); -TA.Alligator([]); -talib.help('XML'); diff --git a/types/botvs/index.d.ts b/types/botvs/index.d.ts deleted file mode 100644 index 04d8f76c97..0000000000 --- a/types/botvs/index.d.ts +++ /dev/null @@ -1,3097 +0,0 @@ -// Type definitions for botvs 0.1 -// Project: https://www.botvs.com/ -// Definitions by: acrazing -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -/// - -import Highstock = require('highcharts/highstock'); - -declare global { - namespace botvs { - /** - * 订单的状态 - */ - type VOrderState = object; - - /** - * 订单的类型 - */ - type VOrderType = object; - - /** - * 仓位的类型 - */ - type VPositionType = object; - - /** - * K线周期 - */ - type VPeriod = object; - - /** - * 日志类型 - */ - type VLogType = object; - - interface ChartOptions extends Highstock.Options { - __isStock?: boolean; - } - - interface RChart { - add(series?: number, data?: number, index?: number): void; - reset(): void; - } - - interface Socket { - write(data: string, timeout?: number): number; - read(size?: number): Buffer | null; - close(): void; - } - - /** - * 标准OHLC结构, 用来画K线和指标分析用的,由GetRecords函数返回此结构数组 - */ - interface Record { - /** - * 一个时间戳, 精确到毫秒,与Javascript的 new Date().getTime() 得到的结果格式一样 - */ - Time: number; - /** - * 开盘价 - */ - Open: number; - /** - * 最高价 - */ - High: number; - /** - * 最低价 - */ - Low: number; - /** - * 收盘价 - */ - Close: number; - /** - * 成交量 - */ - Volume: number; - } - - /** - * 市场深度单 - */ - interface MarketOrder { - /** - * 价格 - */ - Price: number; - /** - * 数量 - */ - Amount: number; - } - - /** - * 市场行情 - */ - interface Ticker { - /** - * 最高价 - */ - High: number; - /** - * 最低价 - */ - Low: number; - /** - * 卖一价 - */ - Sell: number; - /** - * 买一价 - */ - Buy: number; - /** - * 最后成交价 - */ - Last: number; - /** - * 最近成交量 - */ - Volume: number; - } - - /** - * 订单结构, 由GetOrder函数返回 - */ - interface Order { - /** - * 交易单唯一标识 - */ - Id: string; - /** - * 下单价格 - */ - Price: number; - /** - * 下单数量 - */ - Amount: number; - /** - * 成交数量 - */ - DealAmount: number; - /** - * 订单状态, 参考常量里的订单状态 - */ - Status: VOrderState; - /** - * 订单类型, 参考常量里的订单类型 - */ - Type: VOrderType; - } - - /** - * 市场深度,由GetDepth函数返回 - */ - interface Depth { - /** - * 卖单数组, MarketOrder数组, 按价格从低向高排序 - */ - Asks: MarketOrder[]; - /** - * 买单数组, MarketOrder数组, 按价格从高向低排序 - */ - Bids: MarketOrder[]; - } - - /** - * 获取所有交易历史(非自己),由GetTrades函数返回 - */ - interface Trade { - /** - * Id(交易所返回的此Trade的唯一Id) - */ - Id: string; - /** - * 时间(Unix timestamp 毫秒) - */ - Time: number; - /** - * 价格 - */ - Price: number; - /** - * 数量 - */ - Amount: number; - /** - * 订单类型, 参考常量里的订单类型 - */ - Type: VOrderType; - } - - /** - * 手续费结构, 由GetFee函数返回(如国外平台bitfinex买入卖出手续费跟账户交易量相关) - */ - interface Fee { - /** - * 卖出手续费, 为一个浮点数, 如0.2表示0.2%的手续费 - */ - Sell: number; - /** - * 买入手续费, 格式同上 - */ - Buy: number; - } - - /** - * 账户信息, 由GetAccount函数返回 - */ - interface Account { - /** - * 余额(人民币或者美元, 在Poloniex交易所里BTC_ETC这样的品种, Balance就指的是BTC的数量, - * Stocks指的是ETC数量, BTC38的ETC_BTC相当于Poloniex的BTC_ETC, 指的是以BTC计价) - */ - Balance: number; - /** - * 冻结的余额 - */ - FrozenBalance: number; - /** - * BTC/LTC数量, 现货为当前可操作币的余额(去掉冻结的币), - * 期货的话为合约当前可用保证金(传统期货为此属性) - */ - Stocks: number; - /** - * 冻结的BTC/LTC数量(传统期货无此属性) - */ - FrozenStocks: number; - } - - /** - * 期货交易中的持有仓位信息, 由GetPosition()函数返回此结构数组 - */ - interface Position { - /** - * 杆杠大小, 796期货有可能为5, 10, 20三个参数, OKCoin为10或者20, - * BitVC期货和OK期货的全仓模式返回为固定的10, 因为原生API不支持 - */ - MarginLevel: number; - /** - * 持仓量, 796期货表示持币的数量, BitVC指持仓的总金额(100的倍数), - * OKCoin表示合约的份数(整数且大于1) - */ - Amount: number; - /** - * 可平量, 只有股票有此选项, 表示可以平仓的数量(股票为T+1)今日仓不能平 - */ - CanCover: number; - /** - * 仓位冻结量 - */ - FrozenAmount: number; - /** - * 持仓均价 - */ - Price: number; - /** - * 持仓浮动盈亏(数据货币单位:BTC/LTC, 传统期货单位:RMB, 股票不支持此字段, - * 注: OKCoin期货全仓情况下指实现盈余, 并非持仓盈亏, 逐仓下指持仓盈亏) - */ - Profit: number; - /** - * PD_LONG为多头仓位(CTP中用closebuy_today平仓), PD_SHORT为空头仓位(CTP用closesell_today)平仓, - * (CTP期货中)PD_LONG_YD为咋日多头仓位(用closebuy平), PD_SHORT_YD为咋日空头仓位(用closesell平) - */ - Type: VPositionType; - /** - * 商品期货为合约代码, 股票为'交易所代码_股票代码', 具体参数SetContractType的传入类型 - */ - ContractType: string; - } - - interface AsyncJob { - wait(timeout?: number): T | null | undefined; - } - - interface Exchange { - /** - * 返回交易所名称(string) - * - */ - GetName(): string; - - /** - * 返回交易所自定义的标签(string) - * - */ - GetLabel(): string; - - /** - * 返回交易所使用的美元的汇率, OKCoin期货返回官方提供的汇率, 该值不受SetRate影响 - * - */ - GetUSDCNY(): number; - - /** - * 返回交易所使用的流通货币与人民币的汇率, 返回1表示禁用汇率转换 - * - * 汇率接口调用雅虎提供的接口, 5分钟更新一次 - * 所有函数自动经过汇率转换,如果为1指禁用汇率转换 - * - */ - GetRate(): number; - - /** - * 设置交易所的流通货币的汇率, 返回设置前的汇率, 设置为1指禁用汇率转换 - * - * 比如796期货设置SetRate(6.13), 就是设定USD/EUR对CNY的汇率为6.13, 程序所有价格会自动用这个汇率计算 - * SetRate(), 如果不加参数,则恢复系统内置汇率 - * SetRate(1), 就是禁用汇率转换 - * - */ - SetRate(rate?: number): void; - - /** - * 设置价格与品种下单量的小数位精度, 设置后会自动截断 - * - * exchange.SetPrecision(2, 3); // 设置价格小数位精度为2位, 品种下单量小数位精度为3位 - * - */ - SetPrecision(PricePrecision: number, AmountPrecision: number): void; - - /** - * 返回交易所操作的货币名称(string), 传统期货CTP返回的固定为STOCK - * - */ - GetCurrency(): string; - - /** - * 返回交易所操作的基础货币名称(string), BTC_CNY就返回CNY, ETH_BTC就返回BTC - * - */ - GetBaseCurrency(): string; - - /** - * 返回一个Ticker结构 - * - */ - GetTicker(): Ticker; - - /** - * 返回一个Depth结构 - * - */ - GetDepth(): Depth; - - /** - * 返回一个Trade数组, 按时间从低到高的顺序, 只支持数字货币(BTC/LTC) - * - */ - GetTrades(): Trade[]; - - /** - * 返回一个K线历史, K线周期在创建机器人时指定, Record数组结构 - * - * 不加参数, 默认返回添加机器人时时指量的K线周期, 但也可以自定义K线周期 - * 支持: PERIOD_M1 指1分钟, PERIOD_M5 指5分钟, PERIOD_M15 指15分钟, - * PERIOD_M30 指30分钟, PERIOD_H1 指1小时, PERIOD_D1 指一天 - * - */ - GetRecords(Period?: VPeriod): Record[]; - - /** - * 返回一个Account结构, 如exchange.GetAccount(), 将返回主交易所账户信息 - * - */ - GetAccount(): Account; - - /** - * 下买单, Price为买单价格,Amount为数量, 返回一个订单ID - * - * 可以跟多余的参数做为附加消息显示到日志, 如exchange.Buy(1000,0.1, "OK", 123) - * 支持现货(火币/BitVC/OKCoin/OKCoin国际/OKCoin期货/BTCChina/BitYes)市价单, 市价单价格指定为-1 - * exchange.Buy(1000), 指买市价1000元的币, BTCChina例外exchange.Buy(0.3)指市价买0.3个币 - * - * @return - 订单ID - */ - Buy(Price: number, Amount: number, ...args: any[]): string; - - /** - * 跟Buy函数一样的调用方法和场景 {@see Exchange#Buy} - * - */ - Sell(Price: number, Amount: number): string; - - /** - * 获取所有未完成的订单, 返回一个Order数组结构 - * - */ - GetOrders(): Order[]; - - /** - * 根据订单号获取订单详情, 返回一个Order结构 - * - */ - GetOrder(orderId: string): Order; - - /** - * 根据订单号取消一个订单, 返回true或者false - * - */ - CancelOrder(orderId: string): boolean; - - /** - * 不下单, 只记录交易信息, logType可为LOG_TYPE_BUY/LOG_TYPE_SELL/LOG_TYPE_CANCEL - * - */ - Log(logType: VLogType, orderId: string, price: number, amount: number): void; - - /** - * 返回币最小交易数量 - * - */ - GetMinStock(): number; - - /** - * 返回一笔订单要求的最小金额(价格*数量) - * - * Bitstamp要求5美元(程序会根据汇率自动转换为人民币), 其它没有限制 - * - */ - GetMinPrice(): number; - - /** - * 返回一个Fee结构 - * - */ - GetFee(): Fee; - - /** - * 返回最后一次REST API请求返回的原始内容(字符串), 用户可以用来自己解析扩展信息 - * - * 注: 模拟测试的话,会一直返回一个空字符串, 只在真实环境下有效 - * exchange.GetAccount(); - * var obj = JSON.parse(exchange.GetRawJSON()); - * - * 传统商品期货API获取更多信息 - * exchange.GetAccount(); - * Log(exchange.GetRawJSON());//在GetAccount成功后调用, 获取更详细的账户信息, 可以用JSON.parse解析 - * 也支持GetTicker, GetDepth后的exchange.GetRawJSON(), 以及GetPosition与GetOrders,GetOrder这三个调用后的详细反馈数据 - * - */ - GetRawJSON(): string; - - /** - * 多线程异步支持函数, 可以把所有支持的函数的操作变成异步并发的.(只支持数字货币交易平台) - * - * Support: GetTicker, GetDepth, GetTrades, GetRecords, GetAccount, GetOrders, GetOrder, CancelOrder, Buy, - * Sell, GetPosition var a = exchange.Go("GetTicker"); // GetTicker 异步多线程执行 var b = - * exchange.Go("GetDepth"); var c = exchange.Go("Buy", 1000, 0.1); var d = exchange.Go("GetRecords", - * PERIOD_H1); - * - * // 上面四种操作是并发多线程异步执行, 不会耗时, 立即返回的 - * - * var ticker = a.wait(); // 调用wait方法等待返回异步获取ticker结果 - * var depth = b.wait(); // 返回深度, 如果获取失败也是有可能返回null的 - * var orderId = c.wait(1000); // 返回订单号, 限定1秒超时, 超时返回undefined, 此对像可以继续调用wait等待如果上次wait超时 - * // 注意: 判断undefiend要用typeof(xx) === "undefined", 因为null==undefined在JavaScript里是成立的 - * - * var records = d.wait(); // 等待K线结果 - * var ret = d.wait(); // 这里wait了一个已经wait过且结束的异步操作, 会返回null, 并记录出错信息. - * // Python与Javascript的区别, Python的wait返回两个参数, 第一个是异步的api返回的结果, 第二个表示是异步调用是否完成 - * ret, ok = d.wait() // ok是一定返回True的, 除非策略被停止 - * ret, ok = d.wait(100) // ok返回False, 如果等待超时, 或者wait了一个已经结束的实例 - * - */ - Go(Method: keyof Exchange, ...Args: any[]): AsyncJob; - - /** - * 调用交易所其它功能接口 - * - * 支持所有数字货币交易所 - * exchange.IO("api", "cancel_borrow", "symbol=cny&borrow_id=123"); // no need api & sign - * Detail: {@link https://www.botvs.com/bbs-topic/146} - * - * // 只支持Websocket模式(huobi, okcoin.cn, BTCC支持)与商品期货CTP协议 - * - * exchange.IO("websocket"); // 切换行情通信协议到websocket(默认为rest), Ticker, - * Depth会切换为websocket协议来更新, 商品期货CTP无需切换 - * - * - * // 切换GetTicker, GetDepth数据更新模式 - * - * exchange.IO("mode", 0); // 立即返回模式, 如果当前还没有接收到交易所最新的行情数据推送, 就立即返回旧的行情数据, - * 如果有新的数据就返回新的数据 - * - * exchange.IO("mode", 1); // 缓存模式(默认模式), - * 如果当前还没有收到交易所最新的行情数据(同上一次api获取的数据比较), 就等待接收然后再返回, 如果调用该函数之前收到了最新的行情数据, - * 就立即返回最新的数据 - * - * exchange.IO("mode", 2); // 强制更新模式, 进入等待一直到接收到交易所下一次的最新推送数据后返回 - * - * - * - * // 如果想第一时间获取最新的行情可以切换到websocket后不Sleep的立即检测数据, GetTicker, GetDepth用缓存模式进行工作 - * - * exchange.IO("websocket"); - * - * while (true) { - * Log(exchange.GetTicker()); - * } - * - * 传统商品期货扩展的IO功能 - * exchange.IO("status"); // 返回true证明与CTP服务器行情与数据的两台服务器都连接正常 - * exchange.IO("instruments"); // 返回交易所所有的合约列表{合约名: 详情}字典形式, 只支持实盘 - * exchange.IO("products"); // 返回交易所所有的产品列表{产品名: 详情}字典形式, 只支持实盘 - * exchange.IO("subscribed"); // 返回已订阅行情的合约, 格式同上, 只支持实盘 - * exchange.IO("settlement"); // 结算单查询, 不加第二个参数默认返回之前一个交易日的, - * 加参数如"20170317"指返回20170317的结算单, 只支持实盘 - * exchange.IO("wait"); // 有任何品种更新行情信息时才返回, 可带第二个参数(毫秒数)指定超时, - * 超时返回-1, 正常返回事件接收的时间(nano级), 只支持实盘 - * exchange.IO("wait_instrument"); // 有任何品种更新行情信息时才返回, 可带第二个参数(毫秒数) - * 指定超时, 超时返回空字符串, 正常返回触发事件的品种名称, 只支持实盘 - * - */ - IO(Api: 'api' | 'usd' | 'cny' | 'currency' | string, ApiName?: string, Args?: string): T; - - /** - * 获取当前持仓信息 - * - * 返回一个Position数组, (BitVC和OKCoin)可以传入一个参数, 指定要获取的合约类型 - * - */ - GetPosition(): Position[]; - - /** - * 设置杆杠大小 - * - * 设置Buy(多单)或者Sell(空单)的杆杠大小, MarginLevel有5, 10, 20 三个可选参数 - * 796支持5,10,20,50三个选项, BitVC的LTC不支持20倍杠杆, OKCoin支持10倍和20倍 - * 如: exchange.SetMarginLevel(5) - * - */ - SetMarginLevel(MarginLevel: number): void; - - /** - * 设置Buy或者Sell下单类型 - * - * Direction可以取buy, closebuy, sell, closesell四个参数, 传统期货多出closebuy_today,与closesell_today, 指平今仓, - * 默认为closebuy/closesell为平咋仓 对于CTP传统期货, 可以设置第二个参数"1"或者"2"或者"3", 分别指"投机", "套利", "套保", - * 不设置默认为投机 股票只支持buy与closebuy, - * 因为股票只能买跟平仓 exchange.SetMarginLevel(5); exchange.SetDirection("buy"); exchange.Buy(1000, 2); - * exchange.SetMarginLevel(5); exchange.SetDirection("closebuy"); exchange.Sell(1000, 2); - * - * 期货交易中Buy, Sell, CancelOrder和现货交易的区别 - * Buy或Sell之前需要调用SetMarginLevel和SetDirection明确操作类型 - * 数字货币796的CancelOrder之前需要调用SetDirection明确订单类型 - * 如: - * exchange.SetDirection("sell"); - * exchange.Sell(1000, 2); - * 如: - * exchange.SetDirection("buy"); - * exchange.CancelOrder(123); - * - * 数字货币BitVC期货交易中Buy, Sell, GetOrder, SetMarginLevel与796的区别 - * GetOrder里面的Amount为订单总金额, DealAmount为订单完成的金额, 不是币的个数 - * 数字货币796的CancelOrder之前需要调用SetDirection明确订单类型 - * Buy或Sell第二个参数不是币的数量而是订单的总金额(100的倍数) - * SetMarginLevel LTC不支持20倍杠杆 - * 如: - * exchange.SetContractType("week"); exchange.SetDirection("sell"); - * exchange.Sell(1000, 100), 就是以1000元一个币的价格开100元的空头 - * - * 数字货币OKCoin期货交易中Buy, Sell, GetOrder, SetMarginLevel与796的区别 - * GetOrder里面的Amount为合约数(一份合约为10$), DealAmount为订单完成的合约数, 不是币的个数 - * Buy或Sell第二个参数不是币的数量而是合约的份数(整数且大于0) - * SetMarginLevel 只支持10倍和20倍的杠杆 - * 如: 以1000元一个币的价格做空一份合约(10$的LTC或者100$的BTC): - * exchange.SetContractType("this_week"); - * exchange.SetDirection("sell"); - * exchange.Sell(1000, 1); - * - */ - SetDirection(Direction: 'buy' | 'closebuy' | 'sell' | 'closesell' | 'closebuy_today' | 'closesell_today'): void; - - /** - * 设置合约类型 - * - * 传统的CTP期货的ContractType就是指的合约ID, 如SetContractType("au1506") 返回合约的详细信息, 如最少一次买多少, 手续费, - * 交割时间等, - * 主力连续合约为代码为000如MA000, 只支持回测, 不支持实盘 股票合约格式为 股票代码.(SH/SZ), SH指上交所, SZ指深交所, - * 如000001.SZ就是指深交所的平安银行 商品期货与股票取消订阅合约, - * 在合约名前加上"-"前缀重新调用即可, 如SetContractType("-au1506"); 成功返回true 数字货币796支持: "week", "weekcny", - * 默认为子账户A, 要指定子账户是A还是B, - * 在合约后加"@A"或"@B", 如: "day@A" 为日合约A子账户 BitVC有week和quarter和next_week三个可选参数, OKCoin期货有this_week, - * next_week, quarter三个参数 exchange.SetContractType("week"); - * - */ - SetContractType(ContractType: string): void; - } - } - - namespace TA { - /** - * 指数平滑异同平均线 - * - * MACD(数据, 快周期, 慢周期, 信号周期), 默认参数为(12, 26, 9), 返回二维数组, 分别是[DIF, DEA, MACD] - * - */ - function MACD( - Records: botvs.Record[], - LongPeriod?: number, - ShortPeriod?: number, - SignalPeriod?: number, - ): [number[], number[], number[]]; - - /** - * 随机指标 - * - * KDJ(数据, 周期1, 周期2, 周期3), 默认参数为(9, 3, 3), 返回二维数组, 分别是[K, D, J] - * - */ - function KDJ( - Records: botvs.Record[], - FirstPeriod?: number, - SecondPeriod?: number, - ThirdPeriod?: number, - ): [number[], number[], number[]]; - - /** - * 强弱指标 - * - * RSI(数据, 周期), 默认参数为14, 返回一个一维数组 - * - */ - function RSI(Records: botvs.Record[], Period?: number): number[]; - - /** - * 平均真实波幅 - * - * ATR(数据, 周期), 默认参数为14, 返回一个一维数组 - * - */ - function ATR(Records: botvs.Record[], Period?: number): number[]; - - /** - * 能量潮 - * - * OBV(数据), 返回一个一维数组 - * - */ - function OBV(Records: botvs.Record[]): [number[], number[]]; - - /** - * 移动平均线 - * - * MA(数据, 周期), 默认参数为9, 返回一个一维数组 - * - */ - function MA(Records: botvs.Record[], Period?: number): number[]; - - /** - * 指数平均数指标 - * EMA(数据, 周期), 默认参数为9, 返回一个一维数组 - * - */ - function EMA(Records: botvs.Record[], Period?: number): number[]; - - /** - * Alligator Indicator - * - * Alligator(数据, 下颚周期,牙齿周期,上唇周期), 鳄鱼线指标, 默认参数为(13,8,5) 返回一个二维数组[下颚,牙齿,上唇] - * - */ - function Alligator( - Records: botvs.Record[], - JawPeriod?: number, - TeethPeriod?: number, - LibsPeriod?: number, - ): [number[], number[], number[]]; - - /** - * Chaikin Money Flow - * - * CMF(数据, 周期), 默认周期参数为20, 返回一个一维数组 - * - */ - function CMF(Records: botvs.Record[], Period?: number): number[]; - - /** - * 周期最高价 - * - * Highest(数据, 周期, 属性), 返回最近周期内的最大值(不包含当前Bar), - * 如TA.Highest(records, 30, 'High'), 如果周期为0指所有, 如属性不指定则视数据为普通数组 - * - */ - function Highest(Records: botvs.Record[], Period?: number, Property?: keyof botvs.Record): number; - - /** - * 周期最低价 - * - * Lowest(数据, 周期, 属性), 同上, 求最小值 - * - */ - function Lowest(Records: botvs.Record[], Period?: number, Property?: keyof botvs.Record): number; - } - - namespace talib { - /** - * 查询指标调用格式 - * - * Log(talib.help('MACD')); // 在回测环境下调用 - * - */ - function help(Func: string): string; - - /** - * Vector Trigonometric ACos (反余弦函数) - * - * ACOS(Records[Close]) = Array(outReal) - * - */ - function ACOS(Records: botvs.Record[] | number[]): number[]; - - /** - * Chaikin A/D Line (线随机指标) - * - * AD(Records[High,Low,Close,Volume]) = Array(outReal) - * - */ - function AD(Records: botvs.Record[]): number[]; - /** - * Chaikin A/D Line (线随机指标) - * - * AD(Records[High,Low,Close,Volume]) = Array(outReal) - * - */ - function AD(High: number[], Low: number[], Close: number[], Volume: number[]): number[]; - - /** - * Chaikin A/D Oscillator (佳庆指标) - * - * ADOSC(Records[High,Low,Close,Volume],Fast Period = 3,Slow Period = 10) = Array(outReal) - * - */ - function ADOSC(Records: botvs.Record[], FastPeriod: number, SlowPeriod: number): number[]; - /** - * Chaikin A/D Oscillator (佳庆指标) - * - * ADOSC(Records[High,Low,Close,Volume],Fast Period = 3,Slow Period = 10) = Array(outReal) - * - */ - function ADOSC( - High: number[], - Low: number[], - Close: number[], - Volume: number[], - FastPeriod: number, - SlowPeriod: number, - ): number[]; - - /** - * Average Directional Movement Index (平均趋向指数) - * - * ADX(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function ADX(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Average Directional Movement Index (平均趋向指数) - * - * ADX(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function ADX(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * Average Directional Movement Index Rating (评估指数) - * - * ADXR(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function ADXR(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Average Directional Movement Index Rating (评估指数) - * - * ADXR(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function ADXR(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * Absolute Price Oscillator (绝对价格振荡指数) - * - * APO(Records[Close],Fast Period = 12,Slow Period = 26,MA Type = 0) = Array(outReal) - * - */ - function APO( - Records: botvs.Record[] | number[], - FastPeriod: number, - SlowPeriod: number, - MAType: number, - ): number[]; - - /** - * Aroon (阿隆指标) - * - * AROON(Records[High,Low],Time Period = 14) = [Array(outAroonDown),Array(outAroonUp)] - * - */ - function AROON(Records: botvs.Record[], TimePeriod: number): [number[], number[]]; - /** - * Aroon (阿隆指标) - * - * AROON(Records[High,Low],Time Period = 14) = [Array(outAroonDown),Array(outAroonUp)] - * - */ - function AROON(High: number[], Low: number[], TimePeriod: number): [number[], number[]]; - - /** - * Aroon Oscillator (阿隆震荡线) - * - * AROONOSC(Records[High,Low],Time Period = 14) = Array(outReal) - * - */ - function AROONOSC(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Aroon Oscillator (阿隆震荡线) - * - * AROONOSC(Records[High,Low],Time Period = 14) = Array(outReal) - * - */ - function AROONOSC(High: number[], Low: number[], TimePeriod: number): number[]; - - /** - * Vector Trigonometric ASin (反正弦函数) - * - * ASIN(Records[Close]) = Array(outReal) - * - */ - function ASIN(Records: botvs.Record[] | number[]): number[]; - - /** - * Vector Trigonometric ATan (反正切函数) - * - * ATAN(Records[Close]) = Array(outReal) - * - */ - function ATAN(Records: botvs.Record[] | number[]): number[]; - - /** - * Average True Range (平均真实波幅) - * - * ATR(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function ATR(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Average True Range (平均真实波幅) - * - * ATR(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function ATR(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * Average Price (平均价格) - * - * AVGPRICE(Records[Open,High,Low,Close]) = Array(outReal) - * - */ - function AVGPRICE(Records: botvs.Record[]): number[]; - /** - * Average Price (平均价格) - * - * AVGPRICE(Records[Open,High,Low,Close]) = Array(outReal) - * - */ - function AVGPRICE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Bollinger Bands (布林带) - * - * BBANDS(Records[Close],Time Period = 5,Deviations up = 2,Deviations down = 2,MA Type = 0) = - * [Array(outRealUpperBand),Array(outRealMiddleBand),Array(outRealLowerBand)] - * - */ - function BBANDS( - Records: botvs.Record[] | number[], - TimePeriod: number, - Deviationsup: number, - Deviationsdown: number, - MAType: number, - ): [number[], number[], number[]]; - - /** - * Balance Of Power (均势指标) - * - * BOP(Records[Open,High,Low,Close]) = Array(outReal) - * - */ - function BOP(Records: botvs.Record[]): number[]; - /** - * Balance Of Power (均势指标) - * - * BOP(Records[Open,High,Low,Close]) = Array(outReal) - * - */ - function BOP(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Commodity Channel Index (顺势指标) - * - * CCI(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function CCI(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Commodity Channel Index (顺势指标) - * - * CCI(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function CCI(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * Two Crows (K线图--两只乌鸦) - * - * CDL2CROWS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL2CROWS(Records: botvs.Record[]): number[]; - /** - * Two Crows (K线图--两只乌鸦) - * - * CDL2CROWS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL2CROWS(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Three Black Crows (K线图--3只黑乌鸦) - * - * CDL3BLACKCROWS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3BLACKCROWS(Records: botvs.Record[]): number[]; - /** - * Three Black Crows (K线图--3只黑乌鸦) - * - * CDL3BLACKCROWS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3BLACKCROWS(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Three Inside Up/Down (K线图:3内上下震荡) - * - * CDL3INSIDE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3INSIDE(Records: botvs.Record[]): number[]; - /** - * Three Inside Up/Down (K线图:3内上下震荡) - * - * CDL3INSIDE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3INSIDE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Three-Line Strike (K线图:3线震荡) - * - * CDL3LINESTRIKE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3LINESTRIKE(Records: botvs.Record[]): number[]; - /** - * Three-Line Strike (K线图:3线震荡) - * - * CDL3LINESTRIKE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3LINESTRIKE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Three Outside Up/Down (K线图:3外下震荡) - * - * CDL3OUTSIDE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3OUTSIDE(Records: botvs.Record[]): number[]; - /** - * Three Outside Up/Down (K线图:3外下震荡) - * - * CDL3OUTSIDE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3OUTSIDE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Three Stars In The South (K线图:南方三星) - * - * CDL3STARSINSOUTH(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3STARSINSOUTH(Records: botvs.Record[]): number[]; - /** - * Three Stars In The South (K线图:南方三星) - * - * CDL3STARSINSOUTH(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3STARSINSOUTH(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Three Advancing White Soldiers (K线图:三白兵) - * - * CDL3WHITESOLDIERS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3WHITESOLDIERS(Records: botvs.Record[]): number[]; - /** - * Three Advancing White Soldiers (K线图:三白兵) - * - * CDL3WHITESOLDIERS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDL3WHITESOLDIERS(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Abandoned Baby (K线图:弃婴) - * - * CDLABANDONEDBABY(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLABANDONEDBABY(Records: botvs.Record[], Penetration: number): number[]; - /** - * Abandoned Baby (K线图:弃婴) - * - * CDLABANDONEDBABY(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLABANDONEDBABY( - Open: number[], - High: number[], - Low: number[], - Close: number[], - Penetration: number, - ): number[]; - - /** - * Advance Block (K线图:推进) - * - * CDLADVANCEBLOCK(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLADVANCEBLOCK(Records: botvs.Record[]): number[]; - /** - * Advance Block (K线图:推进) - * - * CDLADVANCEBLOCK(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLADVANCEBLOCK(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Belt-hold (K线图:带住) - * - * CDLBELTHOLD(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLBELTHOLD(Records: botvs.Record[]): number[]; - /** - * Belt-hold (K线图:带住) - * - * CDLBELTHOLD(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLBELTHOLD(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Breakaway (K线图:分离) - * - * CDLBREAKAWAY(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLBREAKAWAY(Records: botvs.Record[]): number[]; - /** - * Breakaway (K线图:分离) - * - * CDLBREAKAWAY(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLBREAKAWAY(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Closing Marubozu (K线图:收盘光头光脚) - * - * CDLCLOSINGMARUBOZU(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLCLOSINGMARUBOZU(Records: botvs.Record[]): number[]; - /** - * Closing Marubozu (K线图:收盘光头光脚) - * - * CDLCLOSINGMARUBOZU(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLCLOSINGMARUBOZU(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Concealing Baby Swallow (K线图:藏婴吞没形态) - * - * CDLCONCEALBABYSWALL(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLCONCEALBABYSWALL(Records: botvs.Record[]): number[]; - /** - * Concealing Baby Swallow (K线图:藏婴吞没形态) - * - * CDLCONCEALBABYSWALL(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLCONCEALBABYSWALL(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Counterattack (K线图:反击) - * - * CDLCOUNTERATTACK(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLCOUNTERATTACK(Records: botvs.Record[]): number[]; - /** - * Counterattack (K线图:反击) - * - * CDLCOUNTERATTACK(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLCOUNTERATTACK(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Dark Cloud Cover (K线图:乌云盖) - * - * CDLDARKCLOUDCOVER(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger) - * - */ - function CDLDARKCLOUDCOVER(Records: botvs.Record[], Penetration: number): number[]; - /** - * Dark Cloud Cover (K线图:乌云盖) - * - * CDLDARKCLOUDCOVER(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger) - * - */ - function CDLDARKCLOUDCOVER( - Open: number[], - High: number[], - Low: number[], - Close: number[], - Penetration: number, - ): number[]; - - /** - * Doji (K线图:十字星 ) - * - * CDLDOJI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLDOJI(Records: botvs.Record[]): number[]; - /** - * Doji (K线图:十字星 ) - * - * CDLDOJI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLDOJI(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Doji Star (K线图:十字星) - * - * CDLDOJISTAR(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLDOJISTAR(Records: botvs.Record[]): number[]; - /** - * Doji Star (K线图:十字星) - * - * CDLDOJISTAR(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLDOJISTAR(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Dragonfly Doji (K线图:蜻蜓十字星) - * - * CDLDRAGONFLYDOJI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLDRAGONFLYDOJI(Records: botvs.Record[]): number[]; - /** - * Dragonfly Doji (K线图:蜻蜓十字星) - * - * CDLDRAGONFLYDOJI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLDRAGONFLYDOJI(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Engulfing Pattern (K线图:吞没) - * - * CDLENGULFING(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLENGULFING(Records: botvs.Record[]): number[]; - /** - * Engulfing Pattern (K线图:吞没) - * - * CDLENGULFING(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLENGULFING(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Evening Doji Star (K线图:黄昏十字星) - * - * CDLEVENINGDOJISTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLEVENINGDOJISTAR(Records: botvs.Record[], Penetration: number): number[]; - /** - * Evening Doji Star (K线图:黄昏十字星) - * - * CDLEVENINGDOJISTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLEVENINGDOJISTAR( - Open: number[], - High: number[], - Low: number[], - Close: number[], - Penetration: number, - ): number[]; - - /** - * Evening Star (K线图:黄昏之星) - * - * CDLEVENINGSTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLEVENINGSTAR(Records: botvs.Record[], Penetration: number): number[]; - /** - * Evening Star (K线图:黄昏之星) - * - * CDLEVENINGSTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLEVENINGSTAR( - Open: number[], - High: number[], - Low: number[], - Close: number[], - Penetration: number, - ): number[]; - - /** - * Up/Down-gap side-by-side white lines (K线图:上/下间隙并排的白色线条) - * - * CDLGAPSIDESIDEWHITE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLGAPSIDESIDEWHITE(Records: botvs.Record[]): number[]; - /** - * Up/Down-gap side-by-side white lines (K线图:上/下间隙并排的白色线条) - * - * CDLGAPSIDESIDEWHITE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLGAPSIDESIDEWHITE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Gravestone Doji (K线图:墓碑十字线) - * - * CDLGRAVESTONEDOJI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLGRAVESTONEDOJI(Records: botvs.Record[]): number[]; - /** - * Gravestone Doji (K线图:墓碑十字线) - * - * CDLGRAVESTONEDOJI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLGRAVESTONEDOJI(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Hammer (K线图:锤) - * - * CDLHAMMER(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHAMMER(Records: botvs.Record[]): number[]; - /** - * Hammer (K线图:锤) - * - * CDLHAMMER(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHAMMER(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Hanging Man (K线图:吊人) - * - * CDLHANGINGMAN(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHANGINGMAN(Records: botvs.Record[]): number[]; - /** - * Hanging Man (K线图:吊人) - * - * CDLHANGINGMAN(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHANGINGMAN(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Harami Pattern (K线图:阴阳线) - * - * CDLHARAMI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHARAMI(Records: botvs.Record[]): number[]; - /** - * Harami Pattern (K线图:阴阳线) - * - * CDLHARAMI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHARAMI(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Harami Cross Pattern (K线图:交叉阴阳线) - * - * CDLHARAMICROSS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHARAMICROSS(Records: botvs.Record[]): number[]; - /** - * Harami Cross Pattern (K线图:交叉阴阳线) - * - * CDLHARAMICROSS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHARAMICROSS(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * High-Wave Candle (K线图:长脚十字线 ) - * - * CDLHIGHWAVE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHIGHWAVE(Records: botvs.Record[]): number[]; - /** - * High-Wave Candle (K线图:长脚十字线 ) - * - * CDLHIGHWAVE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHIGHWAVE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Hikkake Pattern (K线图:陷阱) - * - * CDLHIKKAKE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHIKKAKE(Records: botvs.Record[]): number[]; - /** - * Hikkake Pattern (K线图:陷阱) - * - * CDLHIKKAKE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHIKKAKE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Modified Hikkake Pattern (K线图:改良的陷阱) - * - * CDLHIKKAKEMOD(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHIKKAKEMOD(Records: botvs.Record[]): number[]; - /** - * Modified Hikkake Pattern (K线图:改良的陷阱) - * - * CDLHIKKAKEMOD(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHIKKAKEMOD(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Homing Pigeon (K线图:信鸽) - * - * CDLHOMINGPIGEON(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHOMINGPIGEON(Records: botvs.Record[]): number[]; - /** - * Homing Pigeon (K线图:信鸽) - * - * CDLHOMINGPIGEON(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLHOMINGPIGEON(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Identical Three Crows (K线图:相同的三只乌鸦) - * - * CDLIDENTICAL3CROWS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLIDENTICAL3CROWS(Records: botvs.Record[]): number[]; - /** - * Identical Three Crows (K线图:相同的三只乌鸦) - * - * CDLIDENTICAL3CROWS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLIDENTICAL3CROWS(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * In-Neck Pattern (K线图:颈纹) - * - * CDLINNECK(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLINNECK(Records: botvs.Record[]): number[]; - /** - * In-Neck Pattern (K线图:颈纹) - * - * CDLINNECK(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLINNECK(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Inverted Hammer (K线图:倒锤) - * - * CDLINVERTEDHAMMER(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLINVERTEDHAMMER(Records: botvs.Record[]): number[]; - /** - * Inverted Hammer (K线图:倒锤) - * - * CDLINVERTEDHAMMER(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLINVERTEDHAMMER(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Kicking (K线图:踢) - * - * CDLKICKING(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLKICKING(Records: botvs.Record[]): number[]; - /** - * Kicking (K线图:踢) - * - * CDLKICKING(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLKICKING(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Kicking - bull/bear determined by the longer marubozu (K线图:踢牛/踢熊) - * - * CDLKICKINGBYLENGTH(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLKICKINGBYLENGTH(Records: botvs.Record[]): number[]; - /** - * Kicking - bull/bear determined by the longer marubozu (K线图:踢牛/踢熊) - * - * CDLKICKINGBYLENGTH(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLKICKINGBYLENGTH(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Ladder Bottom (K线图:梯底) - * - * CDLLADDERBOTTOM(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLLADDERBOTTOM(Records: botvs.Record[]): number[]; - /** - * Ladder Bottom (K线图:梯底) - * - * CDLLADDERBOTTOM(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLLADDERBOTTOM(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Long Legged Doji (K线图:长腿十字线) - * - * CDLLONGLEGGEDDOJI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLLONGLEGGEDDOJI(Records: botvs.Record[]): number[]; - /** - * Long Legged Doji (K线图:长腿十字线) - * - * CDLLONGLEGGEDDOJI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLLONGLEGGEDDOJI(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Long Line Candle (K线图:长线) - * - * CDLLONGLINE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLLONGLINE(Records: botvs.Record[]): number[]; - /** - * Long Line Candle (K线图:长线) - * - * CDLLONGLINE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLLONGLINE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Marubozu (K线图:光头光脚 ) - * - * CDLMARUBOZU(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLMARUBOZU(Records: botvs.Record[]): number[]; - /** - * Marubozu (K线图:光头光脚 ) - * - * CDLMARUBOZU(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLMARUBOZU(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Matching Low (K线图:匹配低) - * - * CDLMATCHINGLOW(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLMATCHINGLOW(Records: botvs.Record[]): number[]; - /** - * Matching Low (K线图:匹配低) - * - * CDLMATCHINGLOW(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLMATCHINGLOW(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Mat Hold (K线图:垫住) - * - * CDLMATHOLD(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger) - * - */ - function CDLMATHOLD(Records: botvs.Record[], Penetration: number): number[]; - /** - * Mat Hold (K线图:垫住) - * - * CDLMATHOLD(Records[Open,High,Low,Close],Penetration = 0.5) = Array(outInteger) - * - */ - function CDLMATHOLD( - Open: number[], - High: number[], - Low: number[], - Close: number[], - Penetration: number, - ): number[]; - - /** - * Morning Doji Star (K线图:早晨十字星) - * - * CDLMORNINGDOJISTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLMORNINGDOJISTAR(Records: botvs.Record[], Penetration: number): number[]; - /** - * Morning Doji Star (K线图:早晨十字星) - * - * CDLMORNINGDOJISTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLMORNINGDOJISTAR( - Open: number[], - High: number[], - Low: number[], - Close: number[], - Penetration: number, - ): number[]; - - /** - * Morning Star (K线图:晨星) - * - * CDLMORNINGSTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLMORNINGSTAR(Records: botvs.Record[], Penetration: number): number[]; - /** - * Morning Star (K线图:晨星) - * - * CDLMORNINGSTAR(Records[Open,High,Low,Close],Penetration = 0.3) = Array(outInteger) - * - */ - function CDLMORNINGSTAR( - Open: number[], - High: number[], - Low: number[], - Close: number[], - Penetration: number, - ): number[]; - - /** - * On-Neck Pattern (K线图:颈型) - * - * CDLONNECK(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLONNECK(Records: botvs.Record[]): number[]; - /** - * On-Neck Pattern (K线图:颈型) - * - * CDLONNECK(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLONNECK(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Piercing Pattern (K线图:穿孔模式) - * - * CDLPIERCING(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLPIERCING(Records: botvs.Record[]): number[]; - /** - * Piercing Pattern (K线图:穿孔模式) - * - * CDLPIERCING(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLPIERCING(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Rickshaw Man (K线图:车夫) - * - * CDLRICKSHAWMAN(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLRICKSHAWMAN(Records: botvs.Record[]): number[]; - /** - * Rickshaw Man (K线图:车夫) - * - * CDLRICKSHAWMAN(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLRICKSHAWMAN(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Rising/Falling Three Methods (K线图:上升/下降三法) - * - * CDLRISEFALL3METHODS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLRISEFALL3METHODS(Records: botvs.Record[]): number[]; - /** - * Rising/Falling Three Methods (K线图:上升/下降三法) - * - * CDLRISEFALL3METHODS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLRISEFALL3METHODS(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Separating Lines (K线图:分割线) - * - * CDLSEPARATINGLINES(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSEPARATINGLINES(Records: botvs.Record[]): number[]; - /** - * Separating Lines (K线图:分割线) - * - * CDLSEPARATINGLINES(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSEPARATINGLINES(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Shooting Star (K线图:流星) - * - * CDLSHOOTINGSTAR(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSHOOTINGSTAR(Records: botvs.Record[]): number[]; - /** - * Shooting Star (K线图:流星) - * - * CDLSHOOTINGSTAR(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSHOOTINGSTAR(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Short Line Candle (K线图:短线) - * - * CDLSHORTLINE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSHORTLINE(Records: botvs.Record[]): number[]; - /** - * Short Line Candle (K线图:短线) - * - * CDLSHORTLINE(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSHORTLINE(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Spinning Top (K线图:陀螺) - * - * CDLSPINNINGTOP(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSPINNINGTOP(Records: botvs.Record[]): number[]; - /** - * Spinning Top (K线图:陀螺) - * - * CDLSPINNINGTOP(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSPINNINGTOP(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Stalled Pattern (K线图:停滞模式) - * - * CDLSTALLEDPATTERN(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSTALLEDPATTERN(Records: botvs.Record[]): number[]; - /** - * Stalled Pattern (K线图:停滞模式) - * - * CDLSTALLEDPATTERN(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSTALLEDPATTERN(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Stick Sandwich (K线图:棍子三明治) - * - * CDLSTICKSANDWICH(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSTICKSANDWICH(Records: botvs.Record[]): number[]; - /** - * Stick Sandwich (K线图:棍子三明治) - * - * CDLSTICKSANDWICH(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLSTICKSANDWICH(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Takuri (Dragonfly Doji with very long lower shadow) (K线图:托里) - * - * CDLTAKURI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLTAKURI(Records: botvs.Record[]): number[]; - /** - * Takuri (Dragonfly Doji with very long lower shadow) (K线图:托里) - * - * CDLTAKURI(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLTAKURI(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Tasuki Gap (K线图:翼隙) - * - * CDLTASUKIGAP(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLTASUKIGAP(Records: botvs.Record[]): number[]; - /** - * Tasuki Gap (K线图:翼隙) - * - * CDLTASUKIGAP(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLTASUKIGAP(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Thrusting Pattern (K线图:推模式) - * - * CDLTHRUSTING(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLTHRUSTING(Records: botvs.Record[]): number[]; - /** - * Thrusting Pattern (K线图:推模式) - * - * CDLTHRUSTING(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLTHRUSTING(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Tristar Pattern (K线图:三星模式) - * - * CDLTRISTAR(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLTRISTAR(Records: botvs.Record[]): number[]; - /** - * Tristar Pattern (K线图:三星模式) - * - * CDLTRISTAR(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLTRISTAR(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Unique 3 River (K线图:独特的3河) - * - * CDLUNIQUE3RIVER(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLUNIQUE3RIVER(Records: botvs.Record[]): number[]; - /** - * Unique 3 River (K线图:独特的3河) - * - * CDLUNIQUE3RIVER(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLUNIQUE3RIVER(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Upside Gap Two Crows (K线图:双飞乌鸦) - * - * CDLUPSIDEGAP2CROWS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLUPSIDEGAP2CROWS(Records: botvs.Record[]): number[]; - /** - * Upside Gap Two Crows (K线图:双飞乌鸦) - * - * CDLUPSIDEGAP2CROWS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLUPSIDEGAP2CROWS(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Upside/Downside Gap Three Methods (K线图:上行/下行缺口三方法) - * - * CDLXSIDEGAP3METHODS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLXSIDEGAP3METHODS(Records: botvs.Record[]): number[]; - /** - * Upside/Downside Gap Three Methods (K线图:上行/下行缺口三方法) - * - * CDLXSIDEGAP3METHODS(Records[Open,High,Low,Close]) = Array(outInteger) - * - */ - function CDLXSIDEGAP3METHODS(Open: number[], High: number[], Low: number[], Close: number[]): number[]; - - /** - * Vector Ceil (取整函数) - * - * CEIL(Records[Close]) = Array(outReal) - * - */ - function CEIL(Records: botvs.Record[] | number[]): number[]; - - /** - * Chande Momentum Oscillator (钱德动量摆动指标) - * - * CMO(Records[Close],Time Period = 14) = Array(outReal) - * - */ - function CMO(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Vector Trigonometric Cos (余弦函数) - * - * COS(Records[Close]) = Array(outReal) - * - */ - function COS(Records: botvs.Record[] | number[]): number[]; - - /** - * Vector Trigonometric Cosh (双曲余弦值) - * - * COSH(Records[Close]) = Array(outReal) - * - */ - function COSH(Records: botvs.Record[] | number[]): number[]; - - /** - * Double Exponential Moving Average (双指数移动平均线) - * - * DEMA(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function DEMA(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Directional Movement Index (动向指数) - * - * DX(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function DX(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Directional Movement Index (动向指数) - * - * DX(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function DX(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * Exponential Moving Average (指数移动平均线) - * - * EMA(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function EMA(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Vector Arithmetic Exp (指数函数) - * - * EXP(Records[Close]) = Array(outReal) - * - */ - function EXP(Records: botvs.Record[] | number[]): number[]; - - /** - * Vector Floor (向下取整) - * - * FLOOR(Records[Close]) = Array(outReal) - * - */ - function FLOOR(Records: botvs.Record[] | number[]): number[]; - - /** - * Hilbert Transform - Dominant Cycle Period (希尔伯特变换, 主周期) - * - * HT_DCPERIOD(Records[Close]) = Array(outReal) - * - */ - function HT_DCPERIOD(Records: botvs.Record[] | number[]): number[]; - - /** - * Hilbert Transform - Dominant Cycle Phase (希尔伯特变换,主阶段) - * - * HT_DCPHASE(Records[Close]) = Array(outReal) - * - */ - function HT_DCPHASE(Records: botvs.Record[] | number[]): number[]; - - /** - * Hilbert Transform - Phasor Components (希尔伯特变换,相成分) - * - * HT_PHASOR(Records[Close]) = [Array(outInPhase),Array(outQuadrature)] - * - */ - function HT_PHASOR(Records: botvs.Record[] | number[]): [number[], number[]]; - - /** - * Hilbert Transform - SineWave (希尔伯特变换,正弦波) - * - * HT_SINE(Records[Close]) = [Array(outSine),Array(outLeadSine)] - * - */ - function HT_SINE(Records: botvs.Record[] | number[]): [number[], number[]]; - - /** - * Hilbert Transform - Instantaneous Trendline (希尔伯特变换,瞬时趋势) - * - * HT_TRENDLINE(Records[Close]) = Array(outReal) - * - */ - function HT_TRENDLINE(Records: botvs.Record[] | number[]): number[]; - - /** - * Hilbert Transform - Trend vs Cycle Mode (希尔伯特变换-趋势与周期模式) - * - * HT_TRENDMODE(Records[Close]) = Array(outInteger) - * - */ - function HT_TRENDMODE(Records: botvs.Record[] | number[]): number[]; - - /** - * Kaufman Adaptive Moving Average (适应性移动平均线) - * - * KAMA(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function KAMA(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Linear Regression (线性回归) - * - * LINEARREG(Records[Close],Time Period = 14) = Array(outReal) - * - */ - function LINEARREG(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Linear Regression Angle (线性回归的角度) - * - * LINEARREG_ANGLE(Records[Close],Time Period = 14) = Array(outReal) - * - */ - function LINEARREG_ANGLE(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Linear Regression Intercept (线性回归截距) - * - * LINEARREG_INTERCEPT(Records[Close],Time Period = 14) = Array(outReal) - * - */ - function LINEARREG_INTERCEPT(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Linear Regression Slope (线性回归斜率) - * - * LINEARREG_SLOPE(Records[Close],Time Period = 14) = Array(outReal) - * - */ - function LINEARREG_SLOPE(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Vector Log Natural (自然对数) - * - * LN(Records[Close]) = Array(outReal) - * - */ - function LN(Records: botvs.Record[] | number[]): number[]; - - /** - * Vector Log10 (对数函数) - * - * LOG10(Records[Close]) = Array(outReal) - * - */ - function LOG10(Records: botvs.Record[] | number[]): number[]; - - /** - * Moving average (移动平均线) - * - * MA(Records[Close],Time Period = 30,MA Type = 0) = Array(outReal) - * - */ - function MA(Records: botvs.Record[] | number[], TimePeriod: number, MAType: number): number[]; - - /** - * Moving Average Convergence/Divergence (指数平滑移动平均线) - * - * MACD(Records[Close],Fast Period = 12,Slow Period = 26,Signal Period = 9) = - * [Array(outMACD),Array(outMACDSignal),Array(outMACDHist)] - * - */ - function MACD( - Records: botvs.Record[] | number[], - FastPeriod: number, - SlowPeriod: number, - SignalPeriod: number, - ): [number[], number[], number[]]; - - /** - * MACD with controllable MA type (MA型可控 MACD) - * - * MACDEXT(Records[Close],Fast Period = 12,Fast MA = 0,Slow Period = 26,Slow MA = 0,Signal Period = 9,Signal MA - * = - * 0) = [Array(outMACD),Array(outMACDSignal),Array(outMACDHist)] - * - */ - function MACDEXT( - Records: botvs.Record[] | number[], - FastPeriod: number, - FastMA: number, - SlowPeriod: number, - SlowMA: number, - SignalPeriod: number, - SignalMA: number, - ): [number[], number[], number[]]; - - /** - * Moving Average Convergence/Divergence Fix 12/26 (移动平均收敛/发散修复12/26) - * - * MACDFIX(Records[Close],Signal Period = 9) = [Array(outMACD),Array(outMACDSignal),Array(outMACDHist)] - * - */ - function MACDFIX(Records: botvs.Record[] | number[], SignalPeriod: number): [number[], number[], number[]]; - - /** - * MESA Adaptive Moving Average (MESA 移动平均线) - * - * MAMA(Records[Close],Fast Limit = 0.5,Slow Limit = 0.05) = [Array(outMAMA),Array(outFAMA)] - * - */ - function MAMA(Records: botvs.Record[] | number[], FastLimit: number, SlowLimit: number): [number[], number[]]; - - /** - * Highest value over a specified period (最大值) - * - * MAX(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function MAX(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Index of highest value over a specified period (最大值索引) - * - * MAXINDEX(Records[Close],Time Period = 30) = Array(outInteger) - * - */ - function MAXINDEX(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Median Price (中位数价格) - * - * MEDPRICE(Records[High,Low]) = Array(outReal) - * - */ - function MEDPRICE(Records: botvs.Record[]): number[]; - /** - * Median Price (中位数价格) - * - * MEDPRICE(Records[High,Low]) = Array(outReal) - * - */ - function MEDPRICE(High: number[], Low: number[]): number[]; - - /** - * Money Flow Index (货币流量指数) - * - * MFI(Records[High,Low,Close,Volume],Time Period = 14) = Array(outReal) - * - */ - function MFI(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Money Flow Index (货币流量指数) - * - * MFI(Records[High,Low,Close,Volume],Time Period = 14) = Array(outReal) - * - */ - function MFI(High: number[], Low: number[], Close: number[], Volume: number[], TimePeriod: number): number[]; - - /** - * MidPoint over period (中点) - * - * MIDPOINT(Records[Close],Time Period = 14) = Array(outReal) - * - */ - function MIDPOINT(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Midpoint Price over period (中点价格) - * - * MIDPRICE(Records[High,Low],Time Period = 14) = Array(outReal) - * - */ - function MIDPRICE(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Midpoint Price over period (中点价格) - * - * MIDPRICE(Records[High,Low],Time Period = 14) = Array(outReal) - * - */ - function MIDPRICE(High: number[], Low: number[], TimePeriod: number): number[]; - - /** - * Lowest value over a specified period (最小值) - * - * MIN(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function MIN(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Index of lowest value over a specified period (最小值索引) - * - * MININDEX(Records[Close],Time Period = 30) = Array(outInteger) - * - */ - function MININDEX(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Lowest and highest values over a specified period (最小最大值) - * - * MINMAX(Records[Close],Time Period = 30) = [Array(outMin),Array(outMax)] - * - */ - function MINMAX(Records: botvs.Record[] | number[], TimePeriod: number): [number[], number[]]; - - /** - * Indexes of lowest and highest values over a specified period (最小最大值索引) - * - * MINMAXINDEX(Records[Close],Time Period = 30) = [Array(outMinIdx),Array(outMaxIdx)] - * - */ - function MINMAXINDEX(Records: botvs.Record[] | number[], TimePeriod: number): [number[], number[]]; - - /** - * Minus Directional Indicator (负向指标) - * - * MINUS_DI(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function MINUS_DI(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Minus Directional Indicator (负向指标) - * - * MINUS_DI(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function MINUS_DI(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * Minus Directional Movement (负向运动) - * - * MINUS_DM(Records[High,Low],Time Period = 14) = Array(outReal) - * - */ - function MINUS_DM(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Minus Directional Movement (负向运动) - * - * MINUS_DM(Records[High,Low],Time Period = 14) = Array(outReal) - * - */ - function MINUS_DM(High: number[], Low: number[], TimePeriod: number): number[]; - - /** - * Momentum (动量) - * - * MOM(Records[Close],Time Period = 10) = Array(outReal) - * - */ - function MOM(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Normalized Average True Range (归一化平均值范围) - * - * NATR(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function NATR(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Normalized Average True Range (归一化平均值范围) - * - * NATR(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function NATR(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * On Balance Volume (能量潮) - * - * OBV(Records[Close],Records[Volume]) = Array(outReal) - * - */ - function OBV(Records: botvs.Record[]): number[]; - - /** - * On Balance Volume (能量潮) - * - * OBV(Records[Close],Records[Volume]) = Array(outReal) - * - */ - function OBV(Close: number[], Volume: number[]): number[]; - - /** - * Plus Directional Indicator (更向指示器) - * - * PLUS_DI(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function PLUS_DI(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Plus Directional Indicator (更向指示器) - * - * PLUS_DI(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function PLUS_DI(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * Plus Directional Movement (定向运动) - * - * PLUS_DM(Records[High,Low],Time Period = 14) = Array(outReal) - * - */ - function PLUS_DM(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Plus Directional Movement (定向运动) - * - * PLUS_DM(Records[High,Low],Time Period = 14) = Array(outReal) - * - */ - function PLUS_DM(High: number[], Low: number[], TimePeriod: number): number[]; - - /** - * Percentage Price Oscillator (价格振荡百分比) - * - * PPO(Records[Close],Fast Period = 12,Slow Period = 26,MA Type = 0) = Array(outReal) - * - */ - function PPO( - Records: botvs.Record[] | number[], - FastPeriod: number, - SlowPeriod: number, - MAType: number, - ): number[]; - - /** - * Rate of change : ((price/prevPrice)-1)*100 (变动率指标) - * - * ROC(Records[Close],Time Period = 10) = Array(outReal) - * - */ - function ROC(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Rate of change Percentage: (price-prevPrice)/prevPrice (价格变化率) - * - * ROCP(Records[Close],Time Period = 10) = Array(outReal) - * - */ - function ROCP(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Rate of change ratio: (price/prevPrice) (价格变化率) - * - * ROCR(Records[Close],Time Period = 10) = Array(outReal) - * - */ - function ROCR(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Rate of change ratio 100 scale: (price/prevPrice)*100 (价格变化率) - * - * ROCR100(Records[Close],Time Period = 10) = Array(outReal) - * - */ - function ROCR100(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Relative Strength Index (相对强弱指标) - * - * RSI(Records[Close],Time Period = 14) = Array(outReal) - * - */ - function RSI(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Parabolic SAR (抛物线转向) - * - * SAR(Records[High,Low],Acceleration Factor = 0.02,AF Maximum = 0.2) = Array(outReal) - * - */ - function SAR(Records: botvs.Record[], AccelerationFactor: number, AFMaximum: number): number[]; - /** - * Parabolic SAR (抛物线转向) - * - * SAR(Records[High,Low],Acceleration Factor = 0.02,AF Maximum = 0.2) = Array(outReal) - * - */ - function SAR(High: number[], Low: number[], AccelerationFactor: number, AFMaximum: number): number[]; - - /** - * Parabolic SAR - Extended (增强型抛物线转向) - * - * SAREXT(Records[High,Low],Start Value = 0,Offset on Reverse = 0,AF Init Long = 0.02,AF Long = 0.02,AF Max - * Long = - * 0.2,AF Init Short = 0.02,AF Short = 0.02,AF Max Short = 0.2) = Array(outReal) - * - */ - function SAREXT( - Records: botvs.Record[], - StartValue: number, - OffsetonReverse: number, - AFInitLong: number, - AFLong: number, - AFMaxLong: number, - AFInitShort: number, - AFShort: number, - AFMaxShort: number, - ): number[]; - /** - * Parabolic SAR - Extended (增强型抛物线转向) - * - * SAREXT(Records[High,Low],Start Value = 0,Offset on Reverse = 0,AF Init Long = 0.02,AF Long = 0.02,AF Max - * Long = - * 0.2,AF Init Short = 0.02,AF Short = 0.02,AF Max Short = 0.2) = Array(outReal) - * - */ - function SAREXT( - High: number[], - Low: number[], - StartValue: number, - OffsetonReverse: number, - AFInitLong: number, - AFLong: number, - AFMaxLong: number, - AFInitShort: number, - AFShort: number, - AFMaxShort: number, - ): number[]; - - /** - * Vector Trigonometric Sin (正弦值) - * - * SIN(Records[Close]) = Array(outReal) - * - */ - function SIN(Records: botvs.Record[] | number[]): number[]; - - /** - * Vector Trigonometric Sinh (双曲正弦函数) - * - * SINH(Records[Close]) = Array(outReal) - * - */ - function SINH(Records: botvs.Record[] | number[]): number[]; - - /** - * Simple Moving Average (简单移动平均) - * - * SMA(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function SMA(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Vector Square Root (平方根) - * - * SQRT(Records[Close]) = Array(outReal) - * - */ - function SQRT(Records: botvs.Record[] | number[]): number[]; - - /** - * Standard Deviation (标准偏差) - * - * STDDEV(Records[Close],Time Period = 5,Deviations = 1) = Array(outReal) - * - */ - function STDDEV(Records: botvs.Record[] | number[], TimePeriod: number, Deviations: number): number[]; - - /** - * Stochastic (STOCH指标) - * - * STOCH(Records[High,Low,Close],Fast-K Period = 5,Slow-K Period = 3,Slow-K MA = 0,Slow-D Period = 3,Slow-D MA - * = 0) - * = [Array(outSlowK),Array(outSlowD)] - * - */ - function STOCH( - Records: botvs.Record[], - Fast_KPeriod: number, - Slow_KPeriod: number, - Slow_KMA: number, - Slow_DPeriod: number, - Slow_DMA: number, - ): [number[], number[]]; - /** - * Stochastic (STOCH指标) - * - * STOCH(Records[High,Low,Close],Fast-K Period = 5,Slow-K Period = 3,Slow-K MA = 0,Slow-D Period = 3,Slow-D MA - * = 0) - * = [Array(outSlowK),Array(outSlowD)] - * - */ - function STOCH( - High: number[], - Low: number[], - Close: number[], - Fast_KPeriod: number, - Slow_KPeriod: number, - Slow_KMA: number, - Slow_DPeriod: number, - Slow_DMA: number, - ): [number[], number[]]; - - /** - * Stochastic Fast (快速STOCH指标) - * - * STOCHF(Records[High,Low,Close],Fast-K Period = 5,Fast-D Period = 3,Fast-D MA = 0) = - * [Array(outFastK),Array(outFastD)] - * - */ - function STOCHF( - Records: botvs.Record[], - Fast_KPeriod: number, - Fast_DPeriod: number, - Fast_DMA: number, - ): [number[], number[]]; - /** - * Stochastic Fast (快速STOCH指标) - * - * STOCHF(Records[High,Low,Close],Fast-K Period = 5,Fast-D Period = 3,Fast-D MA = 0) = - * [Array(outFastK),Array(outFastD)] - * - */ - function STOCHF( - High: number[], - Low: number[], - Close: number[], - Fast_KPeriod: number, - Fast_DPeriod: number, - Fast_DMA: number, - ): [number[], number[]]; - - /** - * Stochastic Relative Strength Index (随机强弱指数) - * - * STOCHRSI(Records[Close],Time Period = 14,Fast-K Period = 5,Fast-D Period = 3,Fast-D MA = 0) = - * [Array(outFastK),Array(outFastD)] - * - */ - function STOCHRSI( - Records: botvs.Record[] | number[], - TimePeriod: number, - Fast_KPeriod: number, - Fast_DPeriod: number, - Fast_DMA: number, - ): [number[], number[]]; - - /** - * Summation (求和) - * - * SUM(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function SUM(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Triple Exponential Moving Average (T3) (三指数移动平均) - * - * T3(Records[Close],Time Period = 5,Volume Factor = 0.7) = Array(outReal) - * - */ - function T3(Records: botvs.Record[] | number[], TimePeriod: number, VolumeFactor: number): number[]; - - /** - * Vector Trigonometric Tan (正切) - * - * TAN(Records[Close]) = Array(outReal) - * - */ - function TAN(Records: botvs.Record[] | number[]): number[]; - - /** - * Vector Trigonometric Tanh (双曲正切函数) - * - * TANH(Records[Close]) = Array(outReal) - * - */ - function TANH(Records: botvs.Record[] | number[]): number[]; - - /** - * Triple Exponential Moving Average (三指数移动平均) - * - * TEMA(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function TEMA(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * True Range (真实范围) - * - * TRANGE(Records[High,Low,Close]) = Array(outReal) - * - */ - function TRANGE(Records: botvs.Record[]): number[]; - /** - * True Range (真实范围) - * - * TRANGE(Records[High,Low,Close]) = Array(outReal) - * - */ - function TRANGE(High: number[], Low: number[], Close: number[]): number[]; - - /** - * Triangular Moving Average (三指数移动平均) - * - * TRIMA(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function TRIMA(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * 1-day Rate-Of-Change (ROC) of a Triple Smooth EMA (三重指数平滑平均线) - * - * TRIX(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function TRIX(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Time Series Forecast (时间序列预测) - * - * TSF(Records[Close],Time Period = 14) = Array(outReal) - * - */ - function TSF(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - - /** - * Typical Price (典型价格) - * - * TYPPRICE(Records[High,Low,Close]) = Array(outReal) - * - */ - function TYPPRICE(Records: botvs.Record[]): number[]; - /** - * Typical Price (典型价格) - * - * TYPPRICE(Records[High,Low,Close]) = Array(outReal) - * - */ - function TYPPRICE(High: number[], Low: number[], Close: number[]): number[]; - - /** - * Ultimate Oscillator (极限振子) - * - * ULTOSC(Records[High,Low,Close],First Period = 7,Second Period = 14,Third Period = 28) = Array(outReal) - * - */ - function ULTOSC( - Records: botvs.Record[], - FirstPeriod: number, - SecondPeriod: number, - ThirdPeriod: number, - ): number[]; - /** - * Ultimate Oscillator (极限振子) - * - * ULTOSC(Records[High,Low,Close],First Period = 7,Second Period = 14,Third Period = 28) = Array(outReal) - * - */ - function ULTOSC( - High: number[], - Low: number[], - Close: number[], - FirstPeriod: number, - SecondPeriod: number, - ThirdPeriod: number, - ): number[]; - - /** - * Variance (变量定义) - * - * VAR(Records[Close],Time Period = 5,Deviations = 1) = Array(outReal) - * - */ - function VAR(Records: botvs.Record[] | number[], TimePeriod: number, Deviations: number): number[]; - - /** - * Weighted Close Price (加权收盘价) - * - * WCLPRICE(Records[High,Low,Close]) = Array(outReal) - * - */ - function WCLPRICE(Records: botvs.Record[]): number[]; - /** - * Weighted Close Price (加权收盘价) - * - * WCLPRICE(Records[High,Low,Close]) = Array(outReal) - * - */ - function WCLPRICE(High: number[], Low: number[], Close: number[]): number[]; - - /** - * Williams' %R (威廉指标) - * - * WILLR(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function WILLR(Records: botvs.Record[], TimePeriod: number): number[]; - /** - * Williams' %R (威廉指标) - * - * WILLR(Records[High,Low,Close],Time Period = 14) = Array(outReal) - * - */ - function WILLR(High: number[], Low: number[], Close: number[], TimePeriod: number): number[]; - - /** - * Weighted Moving Average (加权移动平均) - * - * WMA(Records[Close],Time Period = 30) = Array(outReal) - * - */ - function WMA(Records: botvs.Record[] | number[], TimePeriod: number): number[]; - } - - /** - * 订单的状态: 未完成 - */ - const ORDER_STATE_PENDING: botvs.VOrderState; - - /** - * 订单的状态: 已关闭 - */ - const ORDER_STATE_CLOSED: botvs.VOrderState; - - /** - * 订单的状态: 已取消 - */ - const ORDER_STATE_CANCELED: botvs.VOrderState; - - /** - * 订单的类型: 买单 - */ - const ORDER_TYPE_BUY: botvs.VOrderType; - - /** - * 订单的类型: 卖单 - */ - const ORDER_TYPE_SELL: botvs.VOrderType; - - /** - * 多头仓位(CTP中用closebuy_today平仓) - */ - const PD_LONG: botvs.VPositionType; - - /** - * 空头仓位(CTP用closesell_today)平仓 - */ - const PD_SHORT: botvs.VPositionType; - - /** - * (CTP期货中)PD_LONG_YD为咋日多头仓位(用closebuy平 - */ - const PD_LONG_YD: botvs.VPositionType; - - /** - * 咋日空头仓位(用closesell平) - */ - const PD_SHORT_YD: botvs.VPositionType; - - /** - * 1分钟 - */ - const PERIOD_M1: botvs.VPeriod; - - /** - * 5分钟 - */ - const PERIOD_M5: botvs.VPeriod; - - /** - * 15分钟 - */ - const PERIOD_M15: botvs.VPeriod; - - /** - * 30分钟 - */ - const PERIOD_M30: botvs.VPeriod; - - /** - * 1小时 - */ - const PERIOD_H1: botvs.VPeriod; - - /** - * 1天 - */ - const PERIOD_D1: botvs.VPeriod; - - /** - * 买单日志 - */ - const LOG_TYPE_BUY: botvs.VLogType; - - /** - * 卖单日志 - */ - const LOG_TYPE_SELL: botvs.VLogType; - - /** - * 取消日志 - */ - const LOG_TYPE_CANCEL: botvs.VLogType; - - /** - * 默认主交易所对像, 添加交易平台时排列第一的交易所 - */ - const exchange: botvs.Exchange; - - /** - * 交易所数组, 如果添加多个交易所, 可以访问此变量获取交易所对像 - */ - const exchanges: botvs.Exchange[]; - - /** - * 保存一条信息到日志列表 - * - * 如果在字符串后面加上@字符则消息会进入推送队列, 推送到使用绑定的微信账号上(账户安全里绑定)(50条/小时, 1条/5秒 限制) - * 如: Log("微信你好 !@"); 或Log("微信你好, #ff0000@"); - * Log支持打印base64编码后的图片, 以"`"开头, 以"`"结尾, 如Log("`data:image/png;base64,AAAA`") - * Log支持直接打印Python的matplotlib.pyplot对象, 只要对象包含savefig方法就可以直接Log打印, 如: - * import matplotlib.pyplot as plt - * def main(): - * plt.plot([3,6,2,4,7,1]) - * Log(plt) - * - */ - function Log(arg: string): void; - - /** - * 休眠函数 - * - * 参数为毫秒数,如Sleep(1000)为休眠一秒 - * - */ - function Sleep(Millisecond: number): void; - - /** - * 判断是否是模拟回测 - * - * 模拟回测状态返回true,实盘返回false - * - */ - function IsVirtual(): boolean; - - /** - * 记录盈利值,这个为总盈利的值,参数类型为浮点数 - * - */ - function LogProfit(Profit: number): void; - - /** - * 清空所有收益日志, 可以带一个数字参数, 指定保留的条数 - * - */ - function LogProfitReset(reserve?: number): void; - - /** - * 清空所有日志, 可以带一个数字参数, 指定保留的条数 - * - */ - function LogReset(reserve?: number): void; - - /** - * 此信息不保存到日志列表里, 只更新当前机器人的状态信息, 在日志上方显示, 可多次调用, 更新状态 - * - * * LogStatus('这是一个普通的状态提示'); - * LogStatus('这是一个红色字体的状态提示 #ff0000'); - * LogStatus('这是一个多行的状态信息\n我是第二行'); - * LogStatus支持打印base64编码后的图片, 以"`"开头, 以"`"结尾, 如LogStatus("`data:image/png;base64,AAAA`") - * LogStatus支持直接传入Python的matplotlib.pyplot对象, 只要对象包含savefig方法就可以传入LogStatus, 如: - * import matplotlib.pyplot as plt - * def main(): - * plt.plot([3,6,2,4,7,1]) - * LogStatus(plt) - * var table = {type: 'table', title: '持仓信息', cols: ['列1', '列2'], rows: [ ['abc', 'def'], ['ABC', 'support color - * #ff0000']]}; LogStatus('`' + JSON.stringify(table)+'`'); // JSON序列化后两边加上`字符, 视为一个复杂消息格式(当前支持表格) - * LogStatus('第一行消息\n`' + JSON.stringify(table)+'`\n第三行消息'); - * // 表格信息也可以在多行中出现 LogStatus('`' + JSON.stringify([table, - * table])+'`'); // 支持多个表格同时显示, 将以TAB显示到一组里 - * // 也可以构造一个按钮在表格中, 策略用GetCommand接收cmd属性的内容 - * var table = { - * type: 'table', - * title: '持仓操作', - * cols: ['列1', '列2', 'Action'], - * rows: [ - * ['abc', 'def', {'type':'button', 'cmd': 'coverAll', 'name': '平仓'}], - * ] - * }; - * LogStatus('`' + JSON.stringify(table) + '`') - * // 或者构造一单独的按钮 - * LogStatus('`' + JSON.stringify({'type':'button', 'cmd': 'coverAll', 'name': '平仓'}) + '`') - * // 可以自定义按钮风格(bootstrap的按钮属性) - * LogStatus('`' + JSON.stringify({'type':'button', 'class': 'btn btn-xs btn-danger', 'cmd': 'coverAll', 'name': - * '平仓'}) + '`') - * - */ - function LogStatus(Msg: string): void; - - /** - * 打开或者关闭定单和出错信息的日志记录 - * - */ - function EnableLog(IsEnable: boolean): void; - - /** - * 图表绘图函数 - * - * 参数为可以JSON序列化的HighStocks的Highcharts.StockChart参数, 比原生的参数增加一个 - * __isStock属性, 如果指定__isStock: false, 则显示为普通图表 - * 返回对像可以调用add([series索引(如0), 数据])向指定索引的series添加数据, 调用reset() - * 清空图表数据, reset可以带一个数字参数, 指定保留的条数 - * 可以调用add([series索引(如0), 数据, 此数据在series中的索引])来更改数据 - * 可以为负数, -1指最后一个, -2是倒数第二个, 如: - * chart.add([0, 13.5, -1]), 更改series[0].data的倒数第一个点的数据 - * 支持显示多个图表, 配置时只需传入数组参数即可如: var chart = Chart([{...}, {...}, {...}]), - * 比如图表一有两个series, 图表二有一个series, 图表三有一个series, - * 那么add时指定0与1序列ID代表更新图表1的两个序列的数据, add时指定序列ID为2指图表2的第一个 - * series的数据, 指定序列3指的是图表3的第一个series的数据 HighStocks: - * http://api.highcharts.com/highstock - * - */ - function Chart(...options: botvs.ChartOptions[]): botvs.RChart; - - /** - * 发送邮件函数 - * - * Mail(smtpServer, smtpUsername, smtpPassword, mailTo, title, body); ret true or false - * Mail("smtp.163.com", "asdf@163.com", "password", "111@163.com", "title", "body") - * - */ - function Mail( - smtpServer: string, - smtpUsername: string, - smtpPassword: string, - mailTo: string, - title: string, - body: string, - ): boolean; - - /** - * 错误信息过滤 - * - * 被此正则表达式匹配的错误将不上传到日志系统, 可多次调用设置多个 - * SetErrorFilter("502:|503:|tcp|character|unexpected|network|timeout|WSARecv|Connect|GetAddr|no - * such|reset|http|received|EOF|reused"); - * - */ - function SetErrorFilter(RegEx: string): void; - - /** - * 返回机器人进程ID - * - */ - function GetPid(): number; - - /** - * 获取最近一次出错信息,一般无需使用,因为程序会把出错信息自动上传到日志系统 - * - */ - function GetLastError(): string; - - /** - * 可保存的全局字典表 - * - * KV表, 永久保存在本地文件, 每个机器人单独一个数据库, 重启或者托管者退出后一直存在 - * K必须为数字或者字符串, 不区分大小写, V可以为任何可以JSON序列化的内容 - * _G("num", 1); // 设置一个全局变量num, 值为1 - * _G("num", "ok"); // 更改一个全局变量num, 值为字符串ok - * _G("num", null); // 删除全局变量 num - * _G("num"); // 返回全局变量num的值 - * _G(); // 返回当前机器人的ID - * _G(null); // 删除所有全局变量 - * - */ - function _G(K: string, V: T): void; - - /** - * 获取交互命令(utf-8) - * - * 获取策略交互界面发来的命令并清空, 没有命令则返回null, 返回的命令格式为 "按钮名称:参数", 如果没有参数, 则命令就是按钮名称 - * while (true) { - * var cmd = GetCommand(); - * if (cmd) { - * Log(cmd); - * } - * Sleep(1000); - * } - * - */ - function GetCommand(): string | null; - - /** - * 原始的Socket访问, 支持tcp, udp, tls, unix 协议 - * - * @example - * - * ``` - * var client = Dial("tls://www.baidu.com:443"); // Dial支持tcp://, udp://, tls://, unix:// 协议, 可加一个参数指定超时的秒数 - * if (client) { - * client.write("GET / HTTP/1.1\nConnection: Closed\n\n"); // write可再跟一个数字参数指定超时, write返回成功发送的字节数 - * while (true) { - * var buf = client.read();// read可再跟一个数字参数指定超时, 返回null指出错或者超时或者socket已经关闭 - * if (!buf) { - * break; - * } - * Log(buf); - * } - * client.close(); - * } - * ``` - * - */ - function Dial(Address: string, Timeout?: number): botvs.Socket | void; - - /** - * 网络URL访问 - * - * HttpQuery(Url, PostData, Cookies, Headers, IsReturnHeader) - * 获取一个Url的返回内容, 如果第二个参数PostData为字符串就以POST方式提交 - * 第二个参数PostData可以自定义方法比如HttpQuery('http://www.abc.com', {method:'PUT', data:'xx'}) - * 传递Cookie字符串需要第三个参数, 但不需要POST请将第二个参数置为null - * 模拟测试的时候因为无法模拟访问URL, 函数就返回固定字符串 Dummy Data - * 可以用此接口发送短信, 或者与其它API进行交互 - * HttpQuery("http://www.baidu.com/"); // Get - * HttpQuery("http://www.163.com", "xxx"); // Post - * HttpQuery("http://www.baidu.com/", null, "a=10; b=20", "User-Agent: Mobile\nContent-Type: text/html", true); - * // will return {Header: HTTP Header, Body: HTML} - * - */ - function HttpQuery( - Url: string, - PostData: string | null | { method: string, data?: string }, - Cookies: string, - Headers: string, - ): string; - function HttpQuery( - Url: string, - PostData: string | null | { method: string, data?: string }, - Cookies: string, - Headers: string, - IsReturnHeader: true, - ): { Header: string, Body: string }; - - /** - * 支持 md5/sha256/sha512/sha1 的哈希计算, 只支持实盘 - * - * 第二个参数可设置为raw/hex/base64, 分别指输出加密后的 原始内容/hex编码过的/base64编码过的 - * Log(Hash('md5', 'hex', 'hello')); - * Log(Hash('sha512', 'base64', 'hello')); - * - */ - function Hash( - Algo: 'md5' | 'sha256' | 'sha512' | 'sha1', - OutputAlgo: 'hex' | 'base64' | 'raw', - Data: string, - ): string; - - /** - * 支持 md5/sha256/sha512/sha1 的HMAC加密计算, 只支持实盘 - * - * 第二个参数可设置为raw/hex/base64, 分别指输出加密后的 原始内容/hex编码过的/base64编码过的 - * Log(HMAC('md5', 'hex', 'hello', 'pass')); - * Log(HMAC('sha512', 'base64', 'hello', 'pass')); - * - */ - function HMAC( - Algo: 'md5' | 'sha256' | 'sha512' | 'sha1', - OutputAlgo: 'hex' | 'base64' | 'raw', - Data: string, - password: string, - ): string; - - /** - * 返回指定时间戳(ms)字符串, 不传任何参数就返回当前时间, - * 如_D(),或者_D(1478570053241), 默认格式为yyyy-MM-dd hh:mm:ss - * - */ - function _D(timestamp: string, format: string): string; - - /** - * 格式化一个浮点函数 - * - * @param precision Default 4 - */ - function _N(num: number, precision?: number): string; - - /** - * 重试函数, 会一直调用指定函数到成功返回(函数返回null或者false会重试), - * 比如_C(exchange.GetTicker), 默认重试间隔为3秒, 可以调用_CDelay函数来控制重试间隔 - * 比如_CDelay(1000), 指改变_C函数重试间隔为1秒 - * - */ - function _C(func: (...args: any[]) => T, ...args: any[]): T; - - /** - * 比如_CDelay(1000), 指改变_C函数重试间隔为1秒, 默认为3秒 - * - */ - function _CDelay(delay: number): void; -} diff --git a/types/braft-editor/braft-editor-tests.tsx b/types/braft-editor/braft-editor-tests.tsx index 354c4cbb5b..584927e0bd 100644 --- a/types/braft-editor/braft-editor-tests.tsx +++ b/types/braft-editor/braft-editor-tests.tsx @@ -22,10 +22,10 @@ class BraftEditorTest extends React.Component { ); } - private handleChange = (content: RawDraftContentState) => { + private readonly handleChange = (content: RawDraftContentState) => { console.log(content); } - private handleHTMLChange = (html: string) => { + private readonly handleHTMLChange = (html: string) => { console.log(html); } } diff --git a/types/bull/index.d.ts b/types/bull/index.d.ts index 810377184e..28070ad44f 100644 --- a/types/bull/index.d.ts +++ b/types/bull/index.d.ts @@ -4,6 +4,7 @@ // Cameron Crothers // Marshall Cottrell // Weeco +// Gabriel Terwesten // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -134,7 +135,7 @@ declare namespace Bull { promote(): Promise; } - type JobStatus = 'completed' | 'waiting' | 'active' | 'delayed' | 'failed'; + type JobStatus = 'completed' | 'wait' | 'active' | 'delayed' | 'failed'; interface BackoffOptions { /** @@ -456,18 +457,18 @@ declare namespace Bull { nextRepeatableJob(name: string, data: any, opts: JobOptions): Promise; /** - * Removes a given repeatable job. The RepeatOpts needs to be the same as the ones used for - * the job when it was added. + * Removes a given repeatable job. The RepeatOptions and JobId needs to be the same as the ones + * used for the job when it was added. */ - removeRepeatable(repeat: RepeatOptions): Promise; + removeRepeatable(repeat: RepeatOptions & { jobId?: JobId }): Promise; /** - * Removes a given repeatable job. The RepeatOpts needs to be the same as the ones used for - * the job when it was added. + * Removes a given repeatable job. The RepeatOptions and JobId needs to be the same as the ones + * used for the job when it was added. * * name: The name of the to be removed job */ - removeRepeatable(name: string, repeat: RepeatOptions): Promise; + removeRepeatable(name: string, repeat: RepeatOptions & { jobId?: JobId }): Promise; /** * Returns a promise that resolves with the job counts for the given queue. diff --git a/types/bytebuffer/index.d.ts b/types/bytebuffer/index.d.ts index 8456f28182..0ed98f54c6 100644 --- a/types/bytebuffer/index.d.ts +++ b/types/bytebuffer/index.d.ts @@ -120,12 +120,17 @@ declare class ByteBuffer /** * Calculates the number of UTF8 bytes of a string. */ - static calculateUTF8Byte( str: string ): number; + static calculateUTF8Bytes( str: string ): number; /** * Calculates the number of UTF8 characters of a string.JavaScript itself uses UTF- 16, so that a string's length property does not reflect its actual UTF8 size if it contains code points larger than 0xFFFF. */ - static calculateUTF8Char( str: string ): number; + static calculateUTF8Chars( str: string ): number; + + /** + * Calculates the number of UTF8 bytes of a string. This is an alias of ByteBuffer#calculateUTF8Bytes. + */ + static calculateString( str: string ): number; /** * Calculates the actual number of bytes required to store a 32bit base 128 variable-length integer. @@ -302,6 +307,11 @@ declare class ByteBuffer */ readByte( offset?: number ): number; + /** + * Reads the specified number of bytes + */ + readBytes( length: number, offset?: number): ByteBuffer; + /** * Reads a NULL-terminated UTF8 encoded string. For this to work the string read must not contain any NULL characters itself. */ @@ -409,7 +419,7 @@ declare class ByteBuffer /** * Reads a zig-zag encoded 32bit base 128 variable-length integer. */ - readVarint32ZiZag( offset?: number ): number; + readVarint32ZigZag( offset?: number ): number; /** * Reads a 64bit base 128 variable-length integer. Requires Long.js. @@ -503,6 +513,11 @@ declare class ByteBuffer */ writeByte( value: number, offset?: number ): ByteBuffer; + /** + * Writes an array of bytes. This is an alias for append + */ + writeBytes( source: ByteBuffer | ArrayBuffer | Uint8Array | string, encoding?: string | number, offset?: number ): ByteBuffer; + /** * Writes a NULL-terminated UTF8 encoded string. For this to work the specified string must not contain any NULL characters itself. */ diff --git a/types/c3/c3-tests.ts b/types/c3/c3-tests.ts index 509678636b..c449235fba 100644 --- a/types/c3/c3-tests.ts +++ b/types/c3/c3-tests.ts @@ -152,7 +152,8 @@ function axis_examples() { fit: true, values: [1, 2, 4, 8, 16, 32], rotate: 60, - outer: false + outer: false, + width: 100 }, max: 100, min: -100, @@ -619,7 +620,8 @@ function chart_bar() { width: { ratio: 0.5, // this makes bar width 50% of length between ticks max: 50 // this limits maximum width of bar to 50px - } + }, + space: 10 // this adds space between bars in bar charts // or // width: 100 // this makes bar width 100px } @@ -939,6 +941,26 @@ function axes_x_tick_fit() { }); } +function axes_x_tick_width() { + const chart = c3.generate({ + data: { + x: "x", + columns: [ + ["x", "2013-10-31", "2013-12-31", "2014-01-31", "2014-02-28"], + ["sample", 30, 100, 400, 150], + ] + }, + axis: { + x: { + type: "bar", + tick: { + width: 100 + } + } + } + }); +} + function axes_x_localtime() { const chart = c3.generate({ data: { @@ -1846,6 +1868,20 @@ function tooltip_format() { }); } +function tooltip_order() { + const chart = c3.generate({ + data: { + columns: [ + ["data1", 30, 200, 100, 400, 150, 250], + ["data2", 50, 20, 10, 40, 15, 25] + ] + }, + tooltip: { + order: 'asc' + } + }); +} + //////////////////////// // Chart options Tests //////////////////////// diff --git a/types/c3/index.d.ts b/types/c3/index.d.ts index b06efa29f9..ccbbab7d7f 100644 --- a/types/c3/index.d.ts +++ b/types/c3/index.d.ts @@ -3,6 +3,7 @@ // Definitions by: Marc Climent // Gerin Jacob // Bernd Hacker +// Dzmitry Shyndzin // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.1 @@ -61,6 +62,13 @@ export interface ChartConfiguration { left?: number; }; + resize?: { + /** + * Indicate if the chart should automatically get resized when the window gets resized. + */ + auto?: boolean; + }; + color?: { /** * Set custom color pattern. @@ -178,6 +186,10 @@ export interface ChartConfiguration { * Set if min or max value will be 0 on bar chart. */ zerobased?: boolean; + /** + * Set space between bars in bar charts + */ + space?: number; }; pie?: { @@ -574,6 +586,10 @@ export interface XTickConfiguration { * Show x axis outer tick. */ outer?: boolean; + /** + * Set width of x axis tick. + */ + width?: number; multiline?: boolean; // Undocumented } @@ -726,6 +742,10 @@ export interface TooltipOptions { * Specified function receives data, defaultTitleFormat, defaultValueFormat and color of the data point to show. If tooltip.grouped is true, data includes multiple data points. */ contents?(data: any, defaultTitleFormat: string, defaultValueFormat: string, color: any): string; + /** + * Set tooltip values order + */ + order?: string | any[] | ((data: Data) => boolean); } export interface SubchartOptions { diff --git a/types/cache-manager/index.d.ts b/types/cache-manager/index.d.ts index 40d644b546..fcd4458767 100644 --- a/types/cache-manager/index.d.ts +++ b/types/cache-manager/index.d.ts @@ -16,13 +16,19 @@ interface StoreConfig extends CachingConfig { interface Cache { set(key: string, value: T, options: CachingConfig, callback?: (error: any) => void): void; set(key: string, value: T, ttl: number, callback?: (error: any) => void): void; + set(key: string, value: T, options: CachingConfig): Promise; + set(key: string, value: T, ttl: number): Promise; wrap(key: string, wrapper: (callback: (error: any, result: T) => void) => void, options: CachingConfig, callback: (error: any, result: T) => void): void; wrap(key: string, wrapper: (callback: (error: any, result: T) => void) => void, callback: (error: any, result: T) => void): void; + wrap(key: string, wrapper: (callback: (error: any, result: T) => void) => any, options: CachingConfig): Promise; + wrap(key: string, wrapper: (callback: (error: any, result: T) => void) => void): Promise; get(key: string, callback: (error: any, result: T) => void): void; + get(key: string): Promise; - del(key: string, callback?: (error: any) => void): void; + del(key: string, callback: (error: any) => void): void; + del(key: string): Promise; } diff --git a/types/cachefactory/cachefactory-tests.ts b/types/cachefactory/cachefactory-tests.ts deleted file mode 100644 index 32eeb63257..0000000000 --- a/types/cachefactory/cachefactory-tests.ts +++ /dev/null @@ -1,32 +0,0 @@ -CacheFactory.get('test'); - -CacheFactory.createCache('test', { - deleteOnExpire: 'aggressive', - recycleFreq: 60000 -}); - -let testCache = CacheFactory.get('test'); - -testCache.put('testOne', {title: 'testOne', id: 1}); - -let item = testCache.get('testOne'); - - -let profileCache = CacheFactory('profileCache', { - maxAge: 60 * 60 * 1000, - deleteOnExpire: 'aggressive' -}); - -let localStoragePolyfill = { - getItem: (key: string) => { return ""; }, - setItem: (key: string, value: string) => { }, - removeItem: (key: string) => { } -}; - -let myAwesomeCache = CacheFactory('myAwesomeCache', { - maxAge: 15 * 60 * 1000, - cacheFlushInterval: 60 * 60 * 1000, - deleteOnExpire: 'aggressive', - storageMode: 'localStorage', - storageImpl: localStoragePolyfill -}); \ No newline at end of file diff --git a/types/cachefactory/index.d.ts b/types/cachefactory/index.d.ts deleted file mode 100644 index 658a2660f4..0000000000 --- a/types/cachefactory/index.d.ts +++ /dev/null @@ -1,441 +0,0 @@ -// Type definitions for CacheFactory 1.4.0 -// Project: https://github.com/jmdobry/CacheFactory -// Definitions by: Vaggelis Mparmpas , Daniel Massa -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -declare namespace CacheFactory { - export interface IStoreImplementation { - getItem(key: string): string; - - setItem(key: string, value: string): void; - - removeItem(key: string): void; - } - - export interface CacheGetOptions { - /* - * A callback function to be executed whenever an expired item is removed from a cache when the cache is in passive - * or aggressive mode. Will be passed the key and value of the expired item. - * - * Will be passed a third done argument if the cache is in passive mode. This allows you to synchronously access the - * key and value of the expired item when you make the cache#get(key[, options]) call that is the reason the expired - * item is being removed in the first place. Default: null. - */ - onExpire?(key: string, value: any): any; - } - - export interface CachePutOptions { - /* - * The number of milliseconds until a newly inserted item expires. Default: Number.MAX_VALUE. - */ - maxAge?: number; - - /* - * If inserting a promise into a cache, also insert the rejection value if the promise rejects. Default: false. - */ - storeOnReject?: boolean; - - /* - * If inserting a promise into a cache, also insert the resolved value if the promise resolves. Default: false. - */ - storeOnResolve?: boolean; - - created?: Date; - access?: Date; - expires?: Date; - } - - export interface CacheTouchOptions extends CachePutOptions { } - - export interface CacheOptions { - /* - * If set, remove all items from a cache on an interval after the given number of milliseconds. Default: null. - */ - cacheFlushInterval?: number; - - /* - * Maximum number of items a cache can hold. Adding more items than the capacity will cause the cache to operate - * like an LRU cache, removing the least recently used items to stay under capacity. Default: Number.MAX_VALUE. - */ - - capacity?: number; - - /* - * Determines the behavior of a cache when an item expires. Default: none. - * - * Possible values: - * - * none - cache will do nothing when an item expires. - * passive - cache will do nothing when an item expires. Expired items will remain in the cache until requested, - * at which point they are removed, and undefined is returned. - * aggressive - cache will remove expired items as soon as they are discovered. - */ - deleteOnExpire?: string; - - /* - * Determines whether a cache is disabled. Default: false. - */ - disabled?: boolean; - - /* - * The number of milliseconds until a newly inserted item expires. Default: Number.MAX_VALUE. - */ - maxAge?: number; - - /* - * Determines how often a cache will scan for expired items when in aggressive mode. Default: 1000 (milliseconds). - */ - recycleFreq?: number; - - /* - * If inserting a promise into a cache, also insert the rejection value if the promise rejects. Default: false. - */ - storeOnReject?: boolean; - - /* - * If inserting a promise into a cache, also insert the resolved value if the promise resolves. Default: false. - */ - storeOnResolve?: boolean; - - /* - * Provide a custom storage medium, e.g. a polyfill for localStorage. Default: null. - * - * Must implement: - * - * setItem - Same API as localStorage.setItem(key, value) - * getItem - Same API as localStorage.getItem(key) - * removeItem - Same API as localStorage.removeItem(key) - */ - storageImpl?: IStoreImplementation; - - /* - * Determines the storage medium used by a cache. Default: memory. - * - * Possible values: - * - * memory - cache will hold data in memory. Data is cleared when the page is refreshed. - * localStorage - cache will hold data in localStorage if available. Data is not cleared when the page is refreshed. - * sessionStorage - cache will hold data in sessionStorage if available. Data is not cleared when the page is refreshed. - */ - storageMode?: string; - - /* - * Determines the namespace of a cache when storageMode is set to localStorage or sessionStorage. Make it a shorter - * string to save space. Default: angular-cache.caches. - */ - storagePrefix?: string; - - /* - * A callback function to be executed whenever an expired item is removed from a cache when the cache is in passive - * or aggressive mode. Will be passed the key and value of the expired item. - * - * Will be passed a third done argument if the cache is in passive mode. This allows you to synchronously access the - * key and value of the expired item when you make the cache#get(key[, options]) call that is the reason the expired - * item is being removed in the first place. Default: null. - */ - onExpire?(key: string, value: any): any; - } - - export interface ICache { - - $$id: string; - - /** - * Return the item with the given key.options, if provided, must be an object. - * - * If the cache is in passive mode, then options.onExpire can be a function that will be called with the key - * and value of the requested item if the requested item is expired, with the get call itself returning undefined. - * @param key - * @returns {} - */ - get(key: string, options?: CacheGetOptions): T; - - /** - * Insert the item with the given key and value into the cache.options, if provided, must be an object. - * - * If inserting a promise, options.storeOnReject determines whether to insert the rejection value if the promise - * rejects (overriding the default storeOnReject setting for the cache). If inserting a promise, options.storeOnResolve - * determines whether to insert the resolved value if the promise resolves (overriding the default storeOnResolve setting for the cache). - * - * @param key - * @param value - * @param options - */ - put(key: string, value: T, options?: CachePutOptions): void; - - /** - * Remove and return the item with the given key, if it is in the cache. - * @param key - * @returns {} - */ - remove(key: string): T; - - /** - * Remove all items in the cache. - */ - removeAll(): void; - - /** - * Remove and return all expired items in the cache. - * @returns {} - */ - removeExpired(): { [key: string]: any }; - - /** - * Completely destroy this cache and its data. - * @returns {} - */ - destroy(): void; - - /** - * Returns an object containing information about the cache. - * - * @param key - */ - info(): CacheInfo; - - /** - * Returns an object containing information about the item with the given key, if the item is in the cache. - * - * @param key - */ - info(key: string): CacheItemInfo; - - /** - * Return the keys of all items in the cache as an object. - * @returns {} - */ - keySet(): any; - - /** - * Return the keys of all items in the cache as an array. - * @returns [] - */ - keys(): Array; - - /** - * Enable the cache. - */ - enable(): void; - - /** - * Disable the cache. - */ - disable(): void; - - /** - * cache#touch() will "touch" all items in the cache. - * cache#touch(key) will "touch" the item with the given key. - * - * @param key - */ - touch(key?: string, options?: CacheTouchOptions): void; - - /** - * Set the cacheFlushInterval for the cache. - * @param cacheFlushInterval - */ - setCacheFlushInterval(cacheFlushInterval: number): void; - - /** - * Set the capacity for the cache.Setting this lower than the current item count will result in those items being removed. - * @param capacity - */ - setCapacity(capacity: number): void; - - /** - * Set the deleteOnExpire for the cache. - * @param deleteOnExpire - */ - setDeleteOnExpire(deleteOnExpire: string): void; - - /** - * Set the maxAge for the cache. - */ - setMaxAge(maxAge: number): void; - - /** - * Set the onExpire for the cache. - * @param onExpire - */ - setOnExpire(onExpire: Function): void; - - /** - * Set the recycleFreq for the cache. - * @param recycleFreq - */ - setRecycleFreq(recycleFreq: number): void; - - /** - * Set the storageMode for the cache.This will move data from the current storage medium to the new one. - * @param storageMode - */ - setStorageMode(storageMode: string): void; - - /** - * Set multiple options for the cache at a time.Setting strict to true will reset options for the cache - * that are not specifically set in the options hash to CacheFactoryProvider.defaults. - * @param options - */ - setOptions(options: CacheOptions, strict?: boolean): void; - - /** - * Return the values of all items in the cache as an array. - * @returns Array - */ - values(): Array - } - - export interface ICacheFactory { - - BinaryHeap: IBinaryHeap; - utils: IUtils; - defaults: CacheOptions; - - /** - * Create a cache. cache must not already exist. cacheId must be a string. options is an optional argument and must be an object. - * Any options you pass here will override any default options. - * @param cacheId - * @param options - * @returns ICache - */ - (cacheId: string, options?: CacheOptions): ICache; - - /** - * Create a cache. cache must not already exist. cacheId must be a string. options is an optional argument and must be an object. - * Any options you pass here will override any default options. - * @param cacheId - * @param options - * @returns ICache - */ - createCache(cacheId: string, options?: CacheOptions): ICache; - - /** - * Return the cache with the given cacheId. - * @param cacheId The id of the cache storage. - * @returns ICache - */ - get(cacheId: string, options?: CacheOptions): ICache; - - /** - * Return an object of key- value pairs, the keys being cache ids and the values being the result of .info() being called on each cache. - * @returns CacheInfo - */ - info(): CacheInfo; - - /** - * Return the ids of all registered caches as an object. - * @returns {[key: string]: ICache} - */ - keySet(): { [key: string]: ICache }; - - /** - * Return the ids of all registered caches as an array. - * @returns Array - */ - keys(): Array; - - /** - * Destroy the cache with the given cacheId. - * @param cacheId - */ - destroy(cacheId: string): void; - - /** - * Destroy all registered caches. - */ - destroyAll(): void; - - /** - * Remove all data from all registered caches. - */ - clearAll(): void; - - /** - * Enable all registered caches. - */ - enableAll(): void; - - /** - * Disable all registered caches. - */ - disableAll(): void; - - /** - * Call.touch() on all registered caches. - */ - touchAll(): void; - - /** - * Call.removeExpired() on all registered caches.Returns a hash of any expired items, keyed by cache id. - * @returns {} - */ - removeExpiredFromAll(): Array<{ [key: string]: Array<{ [key: string]: any }> }>; - } - - export interface IUtils { - isNumber(value: any): boolean; - isString(value: any): boolean; - isObject(value: any): boolean; - isFunction(value: any): boolean; - equals(a: any, b: any): boolean; - fromJson(value: any): {} - Promise: any; - } - - export interface HeapItem { - key: string; - accessed: Date; - } - - export interface IBinaryHeap { - (w?: IWeightFunc, c?: ICompareFunc): void; - - heap: Array; - weightFunc: IWeightFunc; - compareFunc: ICompareFunc; - - push(node: HeapItem): void; - pop(): HeapItem; - peek(): HeapItem; - remove(node: HeapItem): HeapItem; - removeAll(): void; - size(): Number; - } - - export interface IWeightFunc { - (x: T): T; - } - - export interface ICompareFunc { - (x: T, y: T): boolean; - } - - export interface CacheInfo { - size: Number; - caches: { [key: string]: any }; - capacity: Number; - maxAge: Number; - deleteOnExpire: string; - onExpire: Function; - cacheFlushInterval: Number; - recycleFreq: Number; - storageMode: string; - storageImpl: IStoreImplementation; - disabled: boolean; - storagePrefix: string; - storeOnResolve: boolean; - storeOnReject: boolean; - } - - export interface CacheItemInfo { - created: Date; - accessed: Date; - expires: Date; - isExpired: boolean; - } -} - -declare const CacheFactory: CacheFactory.ICacheFactory; -export = CacheFactory; -export as namespace CacheFactory; diff --git a/types/cachefactory/tsconfig.json b/types/cachefactory/tsconfig.json deleted file mode 100644 index 2008da5619..0000000000 --- a/types/cachefactory/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "cachefactory-tests.ts" - ] -} \ No newline at end of file diff --git a/types/camo/camo-tests.ts b/types/camo/camo-tests.ts index 6830133f8f..b88f7007f6 100644 --- a/types/camo/camo-tests.ts +++ b/types/camo/camo-tests.ts @@ -16,10 +16,10 @@ connect("mongodb://user:password@localhost:27017/database?authSource=admin").the } class User extends CamoDocument { - private name: SchemaTypeExtended = String; - private password: SchemaTypeExtended = String; - private friends: SchemaTypeExtended = [String]; - private dateCreated: SchemaTypeExtended = { + private readonly name: SchemaTypeExtended = String; + private readonly password: SchemaTypeExtended = String; + private readonly friends: SchemaTypeExtended = [String]; + private readonly dateCreated: SchemaTypeExtended = { type: Date, default: Date.now }; diff --git a/types/cannon/index.d.ts b/types/cannon/index.d.ts index 8516d968dd..56272a6b1f 100644 --- a/types/cannon/index.d.ts +++ b/types/cannon/index.d.ts @@ -1,6 +1,7 @@ // Type definitions for cannon 0.1 // Project: https://github.com/clark-stevenson/cannon.d.ts // Definitions by: Clark Stevenson +// Grzegorz Rozdzialik // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -20,10 +21,14 @@ declare module CANNON { constructor(options?: IAABBOptions); - setFromPoints(points: Vec3[], position?: Vec3, quaternion?: Quaternion, skinSize?: number): void; + clone(): AABB; copy(aabb: AABB): void; extend(aabb: AABB): void; + getCorners(a: Vec3, b: Vec3, c: Vec3, d: Vec3, e: Vec3, f: Vec3, g: Vec3, h: Vec3): void; overlaps(aabb: AABB): boolean; + setFromPoints(points: Vec3[], position?: Vec3, quaternion?: Quaternion, skinSize?: number): AABB; + toLocalFrame(frame: Transform, target: AABB): AABB; + toWorldFrame(frame: Transform, target: AABB): AABB; } @@ -32,7 +37,7 @@ declare module CANNON { matrix: Mat3[]; get(i: number, j: number): number; - set(i: number, j: number, value?: number): void; + set(i: number, j: number, value: number): void; reset(): void; setNumObjects(n: number): void; @@ -148,6 +153,8 @@ declare module CANNON { constructor(bodyA: Body, bodyB: Body, options?: IConstraintOptions); update(): void; + disable(): void; + enable(): void; } @@ -188,9 +195,24 @@ declare module CANNON { } + export interface ILockConstraintOptions { + maxForce?: number; + } export class LockConstraint extends Constraint { - constructor(bodyA: Body, bodyB: Body, options?:any); + constructor(bodyA: Body, bodyB: Body, options?: ILockConstraintOptions); + } + + export interface IConeTwistConstraintOptions { + pivotA?: Vec3; + pivotB?: Vec3; + axisA?: Vec3; + axisB?: Vec3; + maxForce?: number; + } + + export class ConeTwistConstraint extends Constraint { + constructor(bodyA: Body, bodyB: Body, options?: IConeTwistConstraintOptions); } diff --git a/types/caseless/caseless-tests.ts b/types/caseless/caseless-tests.ts new file mode 100644 index 0000000000..57eaae605e --- /dev/null +++ b/types/caseless/caseless-tests.ts @@ -0,0 +1,57 @@ +import caseless, { Caseless, httpify, Httpified } from "caseless"; + +new Caseless(); // $ExpectError + +// tslint:disable-next-line: prefer-const +let c1: Caseless; + +caseless(); // $ExpectType Caseless +caseless({}); // $ExpectType Caseless +caseless(null); // $ExpectError +caseless(1); // $ExpectError +caseless("2"); // $ExpectError + +const c2 = caseless(); + +c2.set({}); // $ExpectType void +c2.set('foo', 'bar'); // $ExpectType string | false +c2.set('foo', 'bar', false); // $ExpectType string | false +c2.set('foo', new Date()); // $ExpectType string | false +c2.set(10, 'bar'); // $ExpectError + +c2.get('foo'); // $ExpectType any +c2.get(10); // $ExpectError + +c2.has('foo'); // $ExpectType string | false +c2.has(10); // $ExpectError + +c2.swap('foo'); // $ExpectType void +c2.swap(10); // $ExpectError + +c2.del('foo'); // $ExpectType boolean + +httpify(null, {}); // $ExpectError +httpify(1, {}); // $ExpectError +httpify("2", {}); // $ExpectError +httpify({}, null); // $ExpectError +httpify({}, 1); // $ExpectError +httpify({}, "2"); // $ExpectError + +httpify({}, {}); // $ExpectType Caseless + +const request: Httpified = {}; // $ExpectError + +request.setHeader({}); // $ExpectType void +request.setHeader('foo', 'bar'); // $ExpectType string | false +request.setHeader('foo', 'bar', false); // $ExpectType string | false +request.setHeader('foo', new Date()); // $ExpectType string | false +request.setHeader(10, 'bar'); // $ExpectError + +request.getHeader('foo'); // $ExpectType any +request.getHeader(10); // $ExpectError + +request.hasHeader('foo'); // $ExpectType string | false +request.hasHeader(10); // $ExpectError + +request.removeHeader('foo'); // $ExpectType boolean +request.headers = {}; diff --git a/types/caseless/index.d.ts b/types/caseless/index.d.ts new file mode 100644 index 0000000000..9b19f8a150 --- /dev/null +++ b/types/caseless/index.d.ts @@ -0,0 +1,34 @@ +// Type definitions for caseless 0.12 +// Project: https://github.com/mikeal/caseless +// Definitions by: downace +// Matt R. Wilson +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +type KeyType = string; +type ValueType = any; +type RawDict = object; + +export interface Caseless { + set(name: KeyType, value: ValueType, clobber?: boolean): KeyType | false; + set(dict: RawDict): void; + has(name: KeyType): KeyType | false; + get(name: KeyType): ValueType | undefined; + swap(name: KeyType): void; + del(name: KeyType): boolean; +} + +export interface Httpified { + headers: RawDict; + setHeader(name: KeyType, value: ValueType, clobber?: boolean): KeyType | false; + setHeader(dict: RawDict): void; + hasHeader(name: KeyType): KeyType | false; + getHeader(name: KeyType): ValueType | undefined; + removeHeader(name: KeyType): boolean; +} + +export function httpify(resp: object, headers: RawDict): Caseless; + +declare function caseless(dict?: RawDict): Caseless; + +export default caseless; diff --git a/types/caseless/tsconfig.json b/types/caseless/tsconfig.json new file mode 100644 index 0000000000..c7dace4424 --- /dev/null +++ b/types/caseless/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "caseless-tests.ts" + ] +} diff --git a/types/egg/tslint.json b/types/caseless/tslint.json similarity index 100% rename from types/egg/tslint.json rename to types/caseless/tslint.json diff --git a/types/cassandra-driver/index.d.ts b/types/cassandra-driver/index.d.ts index bdaed6559c..5c0578ccf2 100644 --- a/types/cassandra-driver/index.d.ts +++ b/types/cassandra-driver/index.d.ts @@ -513,6 +513,7 @@ export interface Client extends events.EventEmitter { batch(queries: Array | Array<{ query: string, params?: any }>, options?: QueryOptions): Promise; connect(callback: Callback): void; + connect(): Promise; eachRow(query: string, params?: any, options?: QueryOptions, rowCallback?: Callback, callback?: Callback): void; execute(query: string, params: any, options: QueryOptions, callback: ResultCallback): void; execute(query: string, params: any, callback: ResultCallback): void; @@ -520,6 +521,7 @@ export interface Client extends events.EventEmitter { execute(query: string, params?: any, options?: QueryOptions): Promise; getReplicas(keyspace: string, token: Buffer): Array; // TODO: Should this be a more explicit return? shutdown(callback?: Callback): void; + shutdown(): Promise; stream(query: string, params?: any, options?: QueryOptions, callback?: Callback): NodeJS.ReadableStream; } diff --git a/types/catbox/tsconfig.json b/types/catbox/tsconfig.json index feb19f81dc..16f6fb780e 100644 --- a/types/catbox/tsconfig.json +++ b/types/catbox/tsconfig.json @@ -13,6 +13,9 @@ "../" ], "types": [], + "paths": { + "boom": ["boom/v4"] + }, "noEmit": true, "forceConsistentCasingInFileNames": true }, @@ -20,4 +23,4 @@ "index.d.ts", "catbox-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/chai-dom/index.d.ts b/types/chai-dom/index.d.ts index 4338de92e2..8650ebca1d 100644 --- a/types/chai-dom/index.d.ts +++ b/types/chai-dom/index.d.ts @@ -23,6 +23,18 @@ declare namespace Chai { value(text: string): Assertion; + empty: Assertion; + + // exist, length, and contain are already defined in @types/chai and have the + // same type or a more general type, so don't need to be re-declared even though + // the implementation is different + + descendant(element: string|HTMLElement): Assertion; + + descendants(selector: string): Assertion; + + displayed: Assertion; + } interface Include { @@ -33,6 +45,12 @@ declare namespace Chai { } + interface Match { + + (selector: string): Assertion; + + } + } declare module "chai-dom" { diff --git a/types/chai-jquery/index.d.ts b/types/chai-jquery/index.d.ts index e1628f1743..bd6826ca08 100644 --- a/types/chai-jquery/index.d.ts +++ b/types/chai-jquery/index.d.ts @@ -10,21 +10,25 @@ declare namespace Chai { interface Assertion { - attr: (name: string, value?: string) => Assertion; - prop: (name: string, value?: any) => Assertion; - css: (name: string, value?: string) => Assertion; - data: (name: string, value?: string) => Assertion; + attr(name: string, value?: string): Assertion; + prop(name: string, value?: any): Assertion; + css(name: string, value?: string): Assertion; + data(name: string, value?: string): Assertion; class(className: string): Assertion; id(id: string): Assertion; html(html: string): Assertion; text(text: string): Assertion; value(text: string): Assertion; descendants(selector: string): Assertion; - visible: Assertion; - hidden: Assertion; - selected: Assertion; - checked: Assertion; - disabled: Assertion; + visible(): Assertion; + hidden(): Assertion; + selected(): Assertion; + checked(): Assertion; + disabled(): Assertion; + (selector: string): Assertion; + } + + interface Match { (selector: string): Assertion; } } diff --git a/types/chai-webdriverio/chai-webdriverio-tests.ts b/types/chai-webdriverio/chai-webdriverio-tests.ts new file mode 100644 index 0000000000..989eb64960 --- /dev/null +++ b/types/chai-webdriverio/chai-webdriverio-tests.ts @@ -0,0 +1,30 @@ +import chai = require('chai'); +import webdriverio = require('webdriverio'); +import chaiWebdriverio = require('chai-webdriverio'); + +const options = { + desiredCapabilities: { + browserName: 'firefox' + } +}; + +const browser = webdriverio.remote(options); +chai.use(chaiWebdriverio(browser)); + +const selector = 'Hello, World!'; + +chai.expect(selector).to.be.there(); + +chai.expect(selector).to.be.visible(); + +chai.expect(selector).to.have.text(selector); + +chai.expect(selector).to.have.text(/regex/); + +chai.expect(selector).to.have.count(10); + +chai.expect(selector).to.have.value('x'); + +chai.expect(selector).to.have.value(/regex/); + +chai.expect(selector).to.have.focus(); diff --git a/types/chai-webdriverio/index.d.ts b/types/chai-webdriverio/index.d.ts new file mode 100644 index 0000000000..d0b958dad5 --- /dev/null +++ b/types/chai-webdriverio/index.d.ts @@ -0,0 +1,24 @@ +// Type definitions for chai-webdriverio 0.4 +// Project: https://github.com/marcodejongh/chai-webdriverio +// Definitions by: Nikolai Orekhov +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +/// + +declare namespace Chai { + interface Assertion { + count: (count: number) => void; + focus: () => void; + text: (expected: string|number|RegExp) => void; + there: () => void; + value: (expected: string|number|RegExp) => void; + visible: () => void; + immediately: Assertion; + } +} + +declare module 'chai-webdriverio' { + function chaiWebdriverIO(client: WebdriverIO.Client, options?: any): (chai: any, utils: any) => void; + export = chaiWebdriverIO; +} diff --git a/types/chai-webdriverio/tsconfig.json b/types/chai-webdriverio/tsconfig.json new file mode 100644 index 0000000000..c44958af89 --- /dev/null +++ b/types/chai-webdriverio/tsconfig.json @@ -0,0 +1,24 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6", + "dom" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "chai-webdriverio-tests.ts" + ] +} \ No newline at end of file diff --git a/types/chai-webdriverio/tslint.json b/types/chai-webdriverio/tslint.json new file mode 100644 index 0000000000..1be28efd2f --- /dev/null +++ b/types/chai-webdriverio/tslint.json @@ -0,0 +1,7 @@ +{ + "extends": "dtslint/dt.json", + "rules": { + "no-single-declare-module" : false, + "no-declare-current-package": false + } +} diff --git a/types/chai/chai-tests.ts b/types/chai/chai-tests.ts index fba32ec840..57b7d127ac 100644 --- a/types/chai/chai-tests.ts +++ b/types/chai/chai-tests.ts @@ -1,5 +1,5 @@ /// -import * as chai from "chai"; +import * as chai from 'chai'; const expect = chai.expect; const assert = chai.assert; @@ -89,10 +89,10 @@ function _undefined() { function _NaN() { expect(NaN).to.be.NaN; expect(12).to.be.not.NaN; - expect("NaN").to.be.not.NaN; + expect('NaN').to.be.not.NaN; (NaN).should.be.NaN; (12).should.be.not.NaN; - ("NaN").should.be.not.NaN; + ('NaN').should.be.not.NaN; } function exist() { @@ -149,8 +149,10 @@ function _typeof() { ({}).should.be.a('object'); expect([]).to.be.a('array'); [].should.be.a('array'); - expect(() => { }).to.be.a('function'); - (() => { }).should.be.a('function'); + expect(() => { + }).to.be.a('function'); + (() => { + }).should.be.a('function'); expect(null).to.be.a('null'); // N.B. previous line has no should equivalent @@ -158,7 +160,9 @@ function _typeof() { (5).should.not.be.a('number', 'blah'); } -class Foo { } +class Foo { +} + function _instanceof() { expect(new Foo()).to.be.an.instanceof(Foo); (new Foo()).should.be.an.instanceof(Foo); @@ -340,8 +344,8 @@ function length2() { function eql() { expect('test').to.eql('test'); 'test'.should.eql('test'); - expect({ foo: 'bar' }).to.eql({ foo: 'bar' }); - ({ foo: 'bar' }).should.eql({ foo: 'bar' }); + expect({foo: 'bar'}).to.eql({foo: 'bar'}); + ({foo: 'bar'}).should.eql({foo: 'bar'}); expect(1).to.eql(1); (1).should.eql(1); expect('4').to.not.eql(4); @@ -377,9 +381,9 @@ function equal2() { } function deepEqual() { - expect({ foo: 'bar' }).to.deep.equal({ foo: 'bar' }); - ({ foo: 'bar' }).should.deep.equal({ foo: 'bar' }); - expect({ foo: 'bar' }).not.to.deep.equal({ foo: 'baz' }); + expect({foo: 'bar'}).to.deep.equal({foo: 'bar'}); + ({foo: 'bar'}).should.deep.equal({foo: 'bar'}); + expect({foo: 'bar'}).not.to.deep.equal({foo: 'baz'}); } function deepEqual2() { @@ -434,12 +438,12 @@ function empty() { ['foo'].should.not.be.empty; expect(new FakeArgs).to.be.empty; (new FakeArgs).should.be.empty; - expect({ arguments: 0 }).not.to.be.empty; - ({ arguments: 0 }).should.not.be.empty; + expect({arguments: 0}).not.to.be.empty; + ({arguments: 0}).should.not.be.empty; expect({}).to.be.empty; ({}).should.be.empty; - expect({ foo: 'bar' }).not.to.be.empty; - ({ foo: 'bar' }).should.not.be.empty; + expect({foo: 'bar'}).not.to.be.empty; + ({foo: 'bar'}).should.not.be.empty; expect('').not.to.be.empty; ''.should.not.be.empty; @@ -457,14 +461,14 @@ function empty() { expect(new FakeArgs).not.to.be.empty; (new FakeArgs).should.not.be.empty; - expect({ arguments: 0 }).to.be.empty; - ({ arguments: 0 }).should.be.empty; + expect({arguments: 0}).to.be.empty; + ({arguments: 0}).should.be.empty; expect({}).not.to.be.empty; ({}).should.not.be.empty; - expect({ foo: 'bar' }).to.be.empty; - ({ foo: 'bar' }).should.be.empty; + expect({foo: 'bar'}).to.be.empty; + ({foo: 'bar'}).should.be.empty; } function property() { @@ -473,35 +477,35 @@ function property() { expect(4).to.not.have.property('length'); (4).should.not.have.property('length'); - expect({ 'foo.bar': 'baz' }) + expect({'foo.bar': 'baz'}) .to.have.property('foo.bar'); - ({ 'foo.bar': 'baz' }).should.have.property('foo.bar'); - expect({ foo: { bar: 'baz' } }) + ({'foo.bar': 'baz'}).should.have.property('foo.bar'); + expect({foo: {bar: 'baz'}}) .to.not.have.property('foo.bar'); - ({ foo: { bar: 'baz' } }).should.not.have.property('foo.bar'); + ({foo: {bar: 'baz'}}).should.not.have.property('foo.bar'); expect('asd').to.have.property('foo'); 'asd'.should.have.property('foo'); - expect({ foo: { bar: 'baz' } }) + expect({foo: {bar: 'baz'}}) .to.have.property('foo.bar'); - ({ foo: { bar: 'baz' } }).should.have.property('foo.bar'); + ({foo: {bar: 'baz'}}).should.have.property('foo.bar'); } function nestedProperty() { - expect({ 'foo.bar': 'baz' }) + expect({'foo.bar': 'baz'}) .to.not.have.nested.property('foo.bar'); - ({ 'foo.bar': 'baz' }).should + ({'foo.bar': 'baz'}).should .not.have.nested.property('foo.bar'); - expect({ foo: { bar: 'baz' } }) + expect({foo: {bar: 'baz'}}) .to.have.nested.property('foo.bar'); - ({ foo: { bar: 'baz' } }).should + ({foo: {bar: 'baz'}}).should .have.nested.property('foo.bar'); - expect({ 'foo.bar': 'baz' }) + expect({'foo.bar': 'baz'}) .to.have.nested.property('foo.bar'); - ({ 'foo.bar': 'baz' }).should + ({'foo.bar': 'baz'}).should .have.nested.property('foo.bar'); } @@ -525,22 +529,22 @@ function property2() { } function nestedProperty2() { - expect({ foo: { bar: 'baz' } }) + expect({foo: {bar: 'baz'}}) .to.have.nested.property('foo.bar', 'baz'); - ({ foo: { bar: 'baz' } }).should + ({foo: {bar: 'baz'}}).should .have.nested.property('foo.bar', 'baz'); - expect({ foo: { bar: 'baz' } }) + expect({foo: {bar: 'baz'}}) .to.have.nested.property('foo.bar', 'quux', 'blah'); - ({ foo: { bar: 'baz' } }).should + ({foo: {bar: 'baz'}}).should .have.nested.property('foo.bar', 'quux', 'blah'); - expect({ foo: { bar: 'baz' } }) + expect({foo: {bar: 'baz'}}) .to.not.have.nested.property('foo.bar', 'baz', 'blah'); - ({ foo: { bar: 'baz' } }).should + ({foo: {bar: 'baz'}}).should .not.have.nested.property('foo.bar', 'baz', 'blah'); - expect({ foo: 5 }) + expect({foo: 5}) .to.not.have.nested.property('foo.bar', 'baz', 'blah'); - ({ foo: 5 }).should + ({foo: 5}).should .not.have.nested.property('foo.bar', 'baz', 'blah'); } @@ -549,23 +553,43 @@ function ownProperty() { 'test'.should.have.ownProperty('length'); expect('test').to.haveOwnProperty('length'); 'test'.should.haveOwnProperty('length'); - expect({ length: 12 }).to.have.ownProperty('length'); - ({ length: 12 }).should.have.ownProperty('length'); + expect({length: 12}).to.have.ownProperty('length'); + ({length: 12}).should.have.ownProperty('length'); - expect({ length: 12 }).to.not.have.ownProperty('length', 'blah'); - ({ length: 12 }).should.not.have.ownProperty('length', 'blah'); + expect({length: 12}).to.not.have.ownProperty('length', 'blah'); + ({length: 12}).should.not.have.ownProperty('length', 'blah'); } function ownPropertyDescriptor() { expect('test').to.have.ownPropertyDescriptor('length'); - expect('test').to.have.ownPropertyDescriptor('length', { enumerable: false, configurable: false, writable: false, value: 4 }); - expect('test').not.to.have.ownPropertyDescriptor('length', { enumerable: false, configurable: false, writable: false, value: 3 }); + expect('test').to.have.ownPropertyDescriptor('length', { + enumerable: false, + configurable: false, + writable: false, + value: 4 + }); + expect('test').not.to.have.ownPropertyDescriptor('length', { + enumerable: false, + configurable: false, + writable: false, + value: 3 + }); expect('test').to.haveOwnPropertyDescriptor('length').to.have.property('enumerable', false); expect('test').to.haveOwnPropertyDescriptor('length').to.contain.keys('value'); 'test'.should.have.ownPropertyDescriptor('length'); - 'test'.should.have.ownPropertyDescriptor('length', { enumerable: false, configurable: false, writable: false, value: 4 }); - 'test'.should.not.have.ownPropertyDescriptor('length', { enumerable: false, configurable: false, writable: false, value: 3 }); + 'test'.should.have.ownPropertyDescriptor('length', { + enumerable: false, + configurable: false, + writable: false, + value: 4 + }); + 'test'.should.not.have.ownPropertyDescriptor('length', { + enumerable: false, + configurable: false, + writable: false, + value: 3 + }); 'test'.should.haveOwnPropertyDescriptor('length').to.have.property('enumerable', false); 'test'.should.haveOwnPropertyDescriptor('length').to.contain.keys('value'); } @@ -613,88 +637,88 @@ function include() { } function keys() { - expect({ foo: 1 }).to.have.keys(['foo']); - ({ foo: 1 }).should.have.keys(['foo']); - expect({ foo: 1, bar: 2 }).to.have.keys(['foo', 'bar']); - ({ foo: 1, bar: 2 }).should.have.keys(['foo', 'bar']); - expect({ foo: 1, bar: 2 }).to.have.keys('foo', 'bar'); - ({ foo: 1, bar: 2 }).should.have.keys('foo', 'bar'); - expect({ foo: 1, bar: 2, baz: 3 }).to.contain.keys('foo', 'bar'); - ({ foo: 1, bar: 2, baz: 3 }).should.contain.keys('foo', 'bar'); - expect({ foo: 1, bar: 2, baz: 3 }).to.contain.keys('bar', 'foo'); - ({ foo: 1, bar: 2, baz: 3 }).should.contain.keys('bar', 'foo'); - expect({ foo: 1, bar: 2, baz: 3 }).to.contain.keys('baz'); - ({ foo: 1, bar: 2, baz: 3 }).should.contain.keys('baz'); + expect({foo: 1}).to.have.keys(['foo']); + ({foo: 1}).should.have.keys(['foo']); + expect({foo: 1, bar: 2}).to.have.keys(['foo', 'bar']); + ({foo: 1, bar: 2}).should.have.keys(['foo', 'bar']); + expect({foo: 1, bar: 2}).to.have.keys('foo', 'bar'); + ({foo: 1, bar: 2}).should.have.keys('foo', 'bar'); + expect({foo: 1, bar: 2, baz: 3}).to.contain.keys('foo', 'bar'); + ({foo: 1, bar: 2, baz: 3}).should.contain.keys('foo', 'bar'); + expect({foo: 1, bar: 2, baz: 3}).to.contain.keys('bar', 'foo'); + ({foo: 1, bar: 2, baz: 3}).should.contain.keys('bar', 'foo'); + expect({foo: 1, bar: 2, baz: 3}).to.contain.keys('baz'); + ({foo: 1, bar: 2, baz: 3}).should.contain.keys('baz'); // alias - expect({ foo: 1, bar: 2, baz: 3 }).contains.keys('baz'); + expect({foo: 1, bar: 2, baz: 3}).contains.keys('baz'); - expect({ foo: 1, bar: 2 }).to.have.all.keys(['foo', 'bar']); - expect({ foo: 1, bar: 2 }).to.have.any.keys(['foo', 'bar']); - ({ foo: 1, bar: 2, baz: 3 }).should.contain.all.keys('baz'); - ({ foo: 1, bar: 2, baz: 3 }).should.contain.any.keys('baz'); + expect({foo: 1, bar: 2}).to.have.all.keys(['foo', 'bar']); + expect({foo: 1, bar: 2}).to.have.any.keys(['foo', 'bar']); + ({foo: 1, bar: 2, baz: 3}).should.contain.all.keys('baz'); + ({foo: 1, bar: 2, baz: 3}).should.contain.any.keys('baz'); - expect({ foo: 1, bar: 2 }).to.contain.keys('foo'); - ({ foo: 1, bar: 2 }).should.contain.keys('foo'); - expect({ foo: 1, bar: 2 }).to.contain.keys('bar', 'foo'); - ({ foo: 1, bar: 2 }).should.contain.keys('bar', 'foo'); - expect({ foo: 1, bar: 2 }).to.contain.keys(['foo']); - ({ foo: 1, bar: 2 }).should.contain.keys(['foo']); - expect({ foo: 1, bar: 2 }).to.contain.keys(['bar']); - ({ foo: 1, bar: 2 }).should.contain.keys(['bar']); - expect({ foo: 1, bar: 2 }).to.contain.keys(['bar', 'foo']); - ({ foo: 1, bar: 2 }).should.contain.keys(['bar', 'foo']); + expect({foo: 1, bar: 2}).to.contain.keys('foo'); + ({foo: 1, bar: 2}).should.contain.keys('foo'); + expect({foo: 1, bar: 2}).to.contain.keys('bar', 'foo'); + ({foo: 1, bar: 2}).should.contain.keys('bar', 'foo'); + expect({foo: 1, bar: 2}).to.contain.keys(['foo']); + ({foo: 1, bar: 2}).should.contain.keys(['foo']); + expect({foo: 1, bar: 2}).to.contain.keys(['bar']); + ({foo: 1, bar: 2}).should.contain.keys(['bar']); + expect({foo: 1, bar: 2}).to.contain.keys(['bar', 'foo']); + ({foo: 1, bar: 2}).should.contain.keys(['bar', 'foo']); - expect({ foo: 1, bar: 2 }).to.not.have.keys('baz'); - ({ foo: 1, bar: 2 }).should.not.have.keys('baz'); - expect({ foo: 1, bar: 2 }).to.not.have.keys('foo', 'baz'); - ({ foo: 1, bar: 2 }).should.not.have.keys('foo', 'baz'); - expect({ foo: 1, bar: 2 }).to.not.contain.keys('baz'); - ({ foo: 1, bar: 2 }).should.not.contain.keys('baz'); - expect({ foo: 1, bar: 2 }).to.not.contain.keys('foo', 'baz'); - ({ foo: 1, bar: 2 }).should.not.contain.keys('foo', 'baz'); - expect({ foo: 1, bar: 2 }).to.not.contain.keys('baz', 'foo'); - ({ foo: 1, bar: 2 }).should.not.contain.keys('baz', 'foo'); + expect({foo: 1, bar: 2}).to.not.have.keys('baz'); + ({foo: 1, bar: 2}).should.not.have.keys('baz'); + expect({foo: 1, bar: 2}).to.not.have.keys('foo', 'baz'); + ({foo: 1, bar: 2}).should.not.have.keys('foo', 'baz'); + expect({foo: 1, bar: 2}).to.not.contain.keys('baz'); + ({foo: 1, bar: 2}).should.not.contain.keys('baz'); + expect({foo: 1, bar: 2}).to.not.contain.keys('foo', 'baz'); + ({foo: 1, bar: 2}).should.not.contain.keys('foo', 'baz'); + expect({foo: 1, bar: 2}).to.not.contain.keys('baz', 'foo'); + ({foo: 1, bar: 2}).should.not.contain.keys('baz', 'foo'); - expect({ foo: 1 }).to.have.keys(); - ({ foo: 1 }).should.have.keys(); + expect({foo: 1}).to.have.keys(); + ({foo: 1}).should.have.keys(); - expect({ foo: 1 }).to.have.keys([]); - ({ foo: 1 }).should.have.keys([]); + expect({foo: 1}).to.have.keys([]); + ({foo: 1}).should.have.keys([]); - expect({ foo: 1 }).to.not.have.keys([]); - ({ foo: 1 }).should.not.have.keys([]); + expect({foo: 1}).to.not.have.keys([]); + ({foo: 1}).should.not.have.keys([]); - expect({ foo: 1 }).to.contain.keys([]); - ({ foo: 1 }).should.contain.keys([]); + expect({foo: 1}).to.contain.keys([]); + ({foo: 1}).should.contain.keys([]); - expect({ foo: 1 }).to.have.keys(['bar']); - ({ foo: 1 }).should.have.keys(['bar']); + expect({foo: 1}).to.have.keys(['bar']); + ({foo: 1}).should.have.keys(['bar']); - expect({ foo: 1 }).to.have.keys(['bar', 'baz']); - ({ foo: 1 }).should.have.keys(['bar', 'baz']); + expect({foo: 1}).to.have.keys(['bar', 'baz']); + ({foo: 1}).should.have.keys(['bar', 'baz']); - expect({ foo: 1 }).to.have.keys(['foo', 'bar', 'baz']); - ({ foo: 1 }).should.have.keys(['foo', 'bar', 'baz']); + expect({foo: 1}).to.have.keys(['foo', 'bar', 'baz']); + ({foo: 1}).should.have.keys(['foo', 'bar', 'baz']); - expect({ foo: 1 }).to.not.have.keys(['foo']); - ({ foo: 1 }).should.not.have.keys(['foo']); + expect({foo: 1}).to.not.have.keys(['foo']); + ({foo: 1}).should.not.have.keys(['foo']); - expect({ foo: 1 }).to.not.have.keys(['foo']); - ({ foo: 1 }).should.not.have.keys(['foo']); + expect({foo: 1}).to.not.have.keys(['foo']); + ({foo: 1}).should.not.have.keys(['foo']); - expect({ foo: 1, bar: 2 }).to.not.have.keys(['foo', 'bar']); - ({ foo: 1, bar: 2 }).should.not.have.keys(['foo', 'bar']); + expect({foo: 1, bar: 2}).to.not.have.keys(['foo', 'bar']); + ({foo: 1, bar: 2}).should.not.have.keys(['foo', 'bar']); - expect({ foo: 1 }).to.not.contain.keys(['foo']); - ({ foo: 1 }).should.not.contain.keys(['foo']); + expect({foo: 1}).to.not.contain.keys(['foo']); + ({foo: 1}).should.not.contain.keys(['foo']); - expect({ foo: 1 }).to.contain.keys('foo', 'bar'); - ({ foo: 1 }).should.contain.keys('foo', 'bar'); + expect({foo: 1}).to.contain.keys('foo', 'bar'); + ({foo: 1}).should.contain.keys('foo', 'bar'); } function chaining() { - const tea = { name: 'chai', extras: ['milk', 'sugar', 'smile'] }; + const tea = {name: 'chai', extras: ['milk', 'sugar', 'smile']}; expect(tea).to.have.property('extras').with.lengthOf(3); tea.should.have.property('extras').with.lengthOf(3); @@ -711,6 +735,7 @@ function exxtensible() { ({}).should.be.extensible; Object.preventExtensions({}).should.not.be.extensible; } + function sealed() { expect({}).to.be.not.sealed; expect(Object.seal({})).to.be.sealed; @@ -725,7 +750,9 @@ function frozen() { Object.freeze({}).should.be.frozen; } -class PoorlyConstructedError { } +class PoorlyConstructedError { +} + function _throw() { // See GH-45: some poorly-constructed custom errors don't have useful names // on either their constructor or their constructor prototype, but instead @@ -734,11 +761,20 @@ function _throw() { const specificError = new RangeError('boo'); - const goodFn = () => { }; - const badFn = () => { throw new Error('testing'); }; - const refErrFn = () => { throw new ReferenceError('hello'); }; - const ickyErrFn = () => { throw new PoorlyConstructedError(); }; - const specificErrFn = () => { throw specificError; }; + const goodFn = () => { + }; + const badFn = () => { + throw new Error('testing'); + }; + const refErrFn = () => { + throw new ReferenceError('hello'); + }; + const ickyErrFn = () => { + throw new PoorlyConstructedError(); + }; + const specificErrFn = () => { + throw specificError; + }; expect(goodFn).to.not.throw(); goodFn.should.not.throw(); @@ -890,17 +926,25 @@ function use() { }); const expect = chai - .use((_chai, util) => {}) - .use((_chai, util) => {}) + .use((_chai, util) => { + }) + .use((_chai, util) => { + }) .expect; } class Klass { val: number; - constructor() { this.val = 0; } - bar() { } - static baz() { } + constructor() { + this.val = 0; + } + + bar() { + } + + static baz() { + } } function respondTo() { @@ -999,20 +1043,21 @@ function sameMembers() { assert.sameMembers([5, 4], [4, 5]); } + function sameDeepMembers() { - expect([{ id: 5 }, { id: 4 }]).to.have.same.deep.members([{ id: 4 }, { id: 5 }]); - [{ id: 5 }, { id: 4 }].should.have.same.deep.members([{ id: 4 }, { id: 5 }]); - expect([{ id: 5 }, { id: 4 }]).to.have.same.members([{ id: 5 }, { id: 4 }]); - [{ id: 5 }, { id: 4 }].should.have.same.members([{ id: 5 }, { id: 4 }]); + expect([{id: 5}, {id: 4}]).to.have.same.deep.members([{id: 4}, {id: 5}]); + [{id: 5}, {id: 4}].should.have.same.deep.members([{id: 4}, {id: 5}]); + expect([{id: 5}, {id: 4}]).to.have.same.members([{id: 5}, {id: 4}]); + [{id: 5}, {id: 4}].should.have.same.members([{id: 5}, {id: 4}]); - expect([{ id: 5 }, { id: 4 }]).to.not.have.same.members([]); - [{ id: 5 }, { id: 4 }].should.not.have.same.members([]); - expect([{ id: 5 }, { id: 4 }]).to.not.have.same.members([{ id: 6 }, { id: 3 }]); - [{ id: 5 }, { id: 4 }].should.not.have.same.members([{ id: 6 }, { id: 3 }]); - expect([{ id: 5 }, { id: 4 }]).to.not.have.same.members([{ id: 5 }, { id: 4 }, { id: 2 }]); - [{ id: 5 }, { id: 4 }].should.not.have.same.members([{ id: 5 }, { id: 4 }, { id: 2 }]); + expect([{id: 5}, {id: 4}]).to.not.have.same.members([]); + [{id: 5}, {id: 4}].should.not.have.same.members([]); + expect([{id: 5}, {id: 4}]).to.not.have.same.members([{id: 6}, {id: 3}]); + [{id: 5}, {id: 4}].should.not.have.same.members([{id: 6}, {id: 3}]); + expect([{id: 5}, {id: 4}]).to.not.have.same.members([{id: 5}, {id: 4}, {id: 2}]); + [{id: 5}, {id: 4}].should.not.have.same.members([{id: 5}, {id: 4}, {id: 2}]); - assert.sameDeepMembers([{ id: 5 }, { id: 4 }], [{ id: 4 }, { id: 5 }]); + assert.sameDeepMembers([{id: 5}, {id: 4}], [{id: 4}, {id: 5}]); } function orderedMembers() { @@ -1022,15 +1067,15 @@ function orderedMembers() { expect([1, 2, 3]).to.have.members([2, 1, 3]).but.not.ordered.members([2, 1, 3]); expect([{a: 1}, {b: 2}, {c: 3}]).to.include.deep.ordered.members([{a: 1}, {b: 2}]).but.not.include.deep.ordered.members([{b: 2}, {c: 3}]); - assert.sameOrderedMembers([ 1, 2, 3 ], [ 1, 2, 3 ], 'same ordered members'); - assert.notSameOrderedMembers([ 1, 2, 3 ], [ 2, 1, 3 ], 'not same ordered members'); - assert.sameDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { b: 2 }, { c: 3 } ], 'same deep ordered members'); - assert.notSameDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { a: 1 }, { c: 3 } ], 'not same deep ordered members'); + assert.sameOrderedMembers([1, 2, 3], [1, 2, 3], 'same ordered members'); + assert.notSameOrderedMembers([1, 2, 3], [2, 1, 3], 'not same ordered members'); + assert.sameDeepOrderedMembers([{a: 1}, {b: 2}, {c: 3}], [{a: 1}, {b: 2}, {c: 3}], 'same deep ordered members'); + assert.notSameDeepOrderedMembers([{a: 1}, {b: 2}, {c: 3}], [{b: 2}, {a: 1}, {c: 3}], 'not same deep ordered members'); - assert.includeOrderedMembers([ 1, 2, 3 ], [ 1, 2 ], 'include ordered members'); - assert.notIncludeOrderedMembers([ 1, 2, 3 ], [ 2, 1 ], 'not include ordered members'); - assert.includeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { a: 1 }, { b: 2 } ], 'include deep ordered members'); - assert.notIncludeDeepOrderedMembers([ { a: 1 }, { b: 2 }, { c: 3 } ], [ { b: 2 }, { c: 3 } ], 'not include deep ordered members'); + assert.includeOrderedMembers([1, 2, 3], [1, 2], 'include ordered members'); + assert.notIncludeOrderedMembers([1, 2, 3], [2, 1], 'not include ordered members'); + assert.includeDeepOrderedMembers([{a: 1}, {b: 2}, {c: 3}], [{a: 1}, {b: 2}], 'include deep ordered members'); + assert.notIncludeDeepOrderedMembers([{a: 1}, {b: 2}, {c: 3}], [{b: 2}, {c: 3}], 'not include deep ordered members'); } function members() { @@ -1043,39 +1088,44 @@ function members() { } function increaseDecreaseChange() { - const obj = { val: 10 }; - const inc = () => { obj.val++; }; - const dec = () => { obj.val--; }; - const same = () => { }; + const obj = {val: 10}; + const inc = () => { + obj.val++; + }; + const dec = () => { + obj.val--; + }; + const same = () => { + }; - expect(inc).to.increase(obj, "val"); - expect(inc).increases(obj, "val"); - expect(inc).to.change(obj, "val"); + expect(inc).to.increase(obj, 'val'); + expect(inc).increases(obj, 'val'); + expect(inc).to.change(obj, 'val'); - expect(dec).to.decrease(obj, "val"); - expect(dec).decreases(obj, "val"); - expect(dec).to.change(obj, "val"); - expect(dec).changes(obj, "val"); + expect(dec).to.decrease(obj, 'val'); + expect(dec).decreases(obj, 'val'); + expect(dec).to.change(obj, 'val'); + expect(dec).changes(obj, 'val'); - expect(inc).to.not.decrease(obj, "val"); - expect(dec).to.not.increase(obj, "val"); - expect(same).to.not.increase(obj, "val"); - expect(same).to.not.decrease(obj, "val"); - expect(same).to.not.change(obj, "val"); + expect(inc).to.not.decrease(obj, 'val'); + expect(dec).to.not.increase(obj, 'val'); + expect(same).to.not.increase(obj, 'val'); + expect(same).to.not.decrease(obj, 'val'); + expect(same).to.not.change(obj, 'val'); - inc.should.increase(obj, "val"); - inc.should.change(obj, "val"); + inc.should.increase(obj, 'val'); + inc.should.change(obj, 'val'); - dec.should.decrease(obj, "val"); - dec.should.change(obj, "val"); + dec.should.decrease(obj, 'val'); + dec.should.change(obj, 'val'); - inc.should.not.decrease(obj, "val"); - dec.should.not.increase(obj, "val"); - same.should.not.change(obj, "val"); + inc.should.not.decrease(obj, 'val'); + dec.should.not.increase(obj, 'val'); + same.should.not.change(obj, 'val'); } function oneOf() { - const obj = { z: 3 }; + const obj = {z: 3}; expect(5).to.be.oneOf([1, 5, 4]); expect('z').to.be.oneOf(['x', 'y', 'z']); @@ -1085,11 +1135,12 @@ function oneOf() { expect(5).to.not.be.oneOf([1, [5], 4]); expect('z').to.not.be.oneOf(['w', 'x', 'y']); expect('z').to.not.be.oneOf(['x', 'y', ['z']]); - expect(obj).to.not.be.oneOf([{ z: 3 }]); + expect(obj).to.not.be.oneOf([{z: 3}]); } // tdd declare function suite(description: string, action: Function): void; + declare function test(description: string, action: Function): void; interface FieldObj { @@ -1201,23 +1252,23 @@ suite('assert', () => { }); test('deepEqual', () => { - assert.deepEqual({ tea: 'chai' }, { tea: 'chai' }); - assert.deepEqual({ tea: 'chai' }, { tea: 'black' }); + assert.deepEqual({tea: 'chai'}, {tea: 'chai'}); + assert.deepEqual({tea: 'chai'}, {tea: 'black'}); - const obja = Object.create({ tea: 'chai' }); - const objb = Object.create({ tea: 'chai' }); + const obja = Object.create({tea: 'chai'}); + const objb = Object.create({tea: 'chai'}); assert.deepEqual(obja, objb); - const obj1 = Object.create({ tea: 'chai' }); - const obj2 = Object.create({ tea: 'black' }); + const obj1 = Object.create({tea: 'chai'}); + const obj2 = Object.create({tea: 'black'}); assert.deepEqual(obj1, obj2); }); test('deepEqual (ordering)', () => { - const a = { a: 'b', c: 'd' }; - const b = { c: 'd', a: 'b' }; + const a = {a: 'b', c: 'd'}; + const b = {c: 'd', a: 'b'}; assert.deepEqual(a, b); }); @@ -1234,13 +1285,13 @@ suite('assert', () => { }); test('notDeepEqual', () => { - assert.notDeepEqual({ tea: 'jasmine' }, { tea: 'chai' }); - assert.notDeepEqual({ tea: 'chai' }, { tea: 'chai' }); + assert.notDeepEqual({tea: 'jasmine'}, {tea: 'chai'}); + assert.notDeepEqual({tea: 'chai'}, {tea: 'chai'}); }); test('notDeepEqual (circular)', () => { const circularObject: any = {}; - const secondCircularObject: any = { tea: 'jasmine' }; + const secondCircularObject: any = {tea: 'jasmine'}; circularObject.field = circularObject; secondCircularObject.field = secondCircularObject; @@ -1289,7 +1340,8 @@ suite('assert', () => { test('isNotFunction', () => { assert.isNotFunction(5); - assert.isNotFunction(() => {}); + assert.isNotFunction(() => { + }); }); test('isArray', () => { @@ -1390,11 +1442,11 @@ suite('assert', () => { }); test('ownInclude', () => { - assert.ownInclude({ a: 1 }, { a: 1 }); + assert.ownInclude({a: 1}, {a: 1}); }); test('notOwnInclude', () => { - assert.notOwnInclude({ a: 1 }, { a: 1 }); + assert.notOwnInclude({a: 1}, {a: 1}); }); test('deepOwnInclude', () => { @@ -1409,7 +1461,7 @@ suite('assert', () => { assert.lengthOf([1, 2, 3], 3); assert.lengthOf('foobar', 6); assert.lengthOf('foobar', 5); - assert.lengthOf({ length: 1 }, 5); + assert.lengthOf({length: 1}, 5); }); test('match', () => { @@ -1420,8 +1472,8 @@ suite('assert', () => { }); test('property', () => { - const obj = { foo: { bar: 'baz' } }; - const simpleObj = { foo: 'bar' } as any; + const obj = {foo: {bar: 'baz'}}; + const simpleObj = {foo: 'bar'} as any; assert.property(obj, 'foo'); assert.deepProperty(obj, 'foo.bar'); assert.notDeepProperty(obj, 'foo.baz'); @@ -1470,7 +1522,8 @@ suite('assert', () => { throw new Error('foo'); }, TypeError, 'bar'); - assert.throws(() => {}); + assert.throws(() => { + }); assert.throws(() => { throw new Error(''); @@ -1482,8 +1535,10 @@ suite('assert', () => { }); test('doesNotThrow', () => { - assert.doesNotThrow(() => { }); - assert.doesNotThrow(() => { }, 'foo'); + assert.doesNotThrow(() => { + }); + assert.doesNotThrow(() => { + }, 'foo'); assert.doesNotThrow(() => { throw new Error('foo'); @@ -1558,20 +1613,44 @@ suite('assert', () => { assert.isBelow(5, 5); }); - test('extensible', () => { assert.extensible({}); }); - test('isExtensible', () => { assert.isExtensible({}); }); - test('notExtensible', () => { assert.notExtensible(Object.preventExtensions({})); }); - test('isNotExtensible', () => { assert.isNotExtensible(Object.preventExtensions({})); }); + test('extensible', () => { + assert.extensible({}); + }); + test('isExtensible', () => { + assert.isExtensible({}); + }); + test('notExtensible', () => { + assert.notExtensible(Object.preventExtensions({})); + }); + test('isNotExtensible', () => { + assert.isNotExtensible(Object.preventExtensions({})); + }); - test('sealed', () => { assert.sealed(Object.seal({})); }); - test('isSealed', () => { assert.isSealed(Object.seal({})); }); - test('notSealed', () => { assert.notSealed({}); }); - test('isNotSealed', () => { assert.isNotSealed({}); }); + test('sealed', () => { + assert.sealed(Object.seal({})); + }); + test('isSealed', () => { + assert.isSealed(Object.seal({})); + }); + test('notSealed', () => { + assert.notSealed({}); + }); + test('isNotSealed', () => { + assert.isNotSealed({}); + }); - test('frozen', () => { assert.frozen(Object.freeze({})); }); - test('isFrozen', () => { assert.isFrozen(Object.freeze({})); }); - test('notFrozen', () => { assert.notFrozen({}); }); - test('isNotFrozen', () => { assert.isNotFrozen({}); }); + test('frozen', () => { + assert.frozen(Object.freeze({})); + }); + test('isFrozen', () => { + assert.isFrozen(Object.freeze({})); + }); + test('notFrozen', () => { + assert.notFrozen({}); + }); + test('isNotFrozen', () => { + assert.isNotFrozen({}); + }); test('isNotTrue', () => { assert.isNotTrue(false); @@ -1596,130 +1675,142 @@ suite('assert', () => { }); test('oneOf', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.oneOf(5, [1, 5, 4]); assert.oneOf('z', ['x', 'y', 'z']); assert.oneOf(obj, [obj]); assert.oneOf(5, [1, [5], 4]); assert.oneOf('z', ['w', 'x', 'y']); - assert.oneOf(obj, [{ z: 3 }]); + assert.oneOf(obj, [{z: 3}]); }); test('changes', () => { - const obj = { z: 3 }; + const obj = {z: 3}; - assert.changes(() => {}, obj, 'z'); - assert.changes(() => {}, obj, 'z', 'message'); + assert.changes(() => { + }, obj, 'z'); + assert.changes(() => { + }, obj, 'z', 'message'); }); test('doesNotChange', () => { - const obj = { z: 3 }; + const obj = {z: 3}; - assert.doesNotChange(() => {}, obj, 'z'); - assert.doesNotChange(() => {}, obj, 'z', 'message'); + assert.doesNotChange(() => { + }, obj, 'z'); + assert.doesNotChange(() => { + }, obj, 'z', 'message'); }); test('increases', () => { - const obj = { z: 3 }; + const obj = {z: 3}; - assert.increases(() => {}, obj, 'z'); - assert.increases(() => {}, obj, 'z', 'message'); + assert.increases(() => { + }, obj, 'z'); + assert.increases(() => { + }, obj, 'z', 'message'); }); test('doesNotIncrease', () => { - const obj = { z: 3 }; + const obj = {z: 3}; - assert.doesNotIncrease(() => {}, obj, 'z'); - assert.doesNotIncrease(() => {}, obj, 'z', 'message'); + assert.doesNotIncrease(() => { + }, obj, 'z'); + assert.doesNotIncrease(() => { + }, obj, 'z', 'message'); }); test('decreases', () => { - const obj = { z: 3 }; + const obj = {z: 3}; - assert.decreases(() => {}, obj, 'z'); - assert.decreases(() => {}, obj, 'z', 'message'); + assert.decreases(() => { + }, obj, 'z'); + assert.decreases(() => { + }, obj, 'z', 'message'); }); test('doesNotDecrease', () => { - const obj = { z: 3 }; + const obj = {z: 3}; - assert.doesNotDecrease(() => {}, obj, 'z'); - assert.doesNotDecrease(() => {}, obj, 'z', 'message'); + assert.doesNotDecrease(() => { + }, obj, 'z'); + assert.doesNotDecrease(() => { + }, obj, 'z', 'message'); }); test('ifError', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.ifError(obj); assert.ifError(obj, 'message'); }); test('extensible', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.extensible(obj); assert.extensible(obj, 'message'); }); test('isNotExtensible', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.isNotExtensible(obj); assert.isNotExtensible(obj, 'message'); }); test('isSealed', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.isSealed(obj); assert.isSealed(obj, 'message'); }); test('sealed', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.sealed(obj); assert.sealed(obj, 'message'); }); test('isNotSealed', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.isNotSealed(obj); assert.isNotSealed(obj, 'message'); }); test('notSealed', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.notSealed(obj); assert.notSealed(obj, 'message'); }); test('isFrozen', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.isFrozen(obj); assert.isFrozen(obj, 'message'); }); test('frozen', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.frozen(obj); assert.frozen(obj, 'message'); }); test('isNotFrozen', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.isNotFrozen(obj); assert.isNotFrozen(obj, 'message'); }); test('notFrozen', () => { - const obj = { z: 3 }; + const obj = {z: 3}; assert.notFrozen(obj); assert.notFrozen(obj, 'message'); @@ -1800,4 +1891,40 @@ suite('assert', () => { assert.doesNotHaveAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), {twenty: 'twenty'}); assert.doesNotHaveAllDeepKeys(new Set([{one: 'one'}, {two: 'two'}]), [{one: 'one'}, {fifty: 'fifty'}]); }); + + test('nestedProperty', () => { + assert.nestedProperty({ tea: { green: 'matcha' }}, 'tea.green'); + assert.nestedProperty({ tea: { green: 'matcha' }}, 'tea.green', 'Should have tea.green nested property'); + }); + + test('notNestedProperty', () => { + assert.notNestedProperty({ tea: { green: 'matcha' }}, 'tea.oolong'); + assert.notNestedProperty({ tea: { green: 'matcha' }}, 'tea.oolong', 'Should not have tea.oolong nested property'); + }); + + test('nestedPropertyVal', () => { + assert.nestedPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'matcha'); + assert.nestedPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'matcha', 'Should have tea.green nested property'); + }); + + test('notNestedPropertyVal', () => { + assert.notNestedPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'konacha'); + assert.notNestedPropertyVal({ tea: { green: 'matcha' }}, 'coffee.green', 'matcha'); + assert.notNestedPropertyVal({ tea: { green: 'matcha' }}, 'tea.green', 'konacha', 'Should not have konacha as value'); + assert.notNestedPropertyVal({ tea: { green: 'matcha' }}, 'coffee.green', 'matcha', 'Should not have matcha as value'); + }); + + test('deepNestedPropertyVal', () => { + assert.deepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { matcha: 'yum' }); + assert.deepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { matcha: 'yum' }, 'Should have correct value of the property'); + }); + + test('notDeepNestedPropertyVal', () => { + assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { oolong: 'yum' }); + assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { matcha: 'yuck' }); + assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.black', { matcha: 'yum' }); + assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { oolong: 'yum' }, 'Should have correct value of the property'); + assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.green', { matcha: 'yuck' }, 'Should have correct value of the property'); + assert.notDeepNestedPropertyVal({ tea: { green: { matcha: 'yum' } } }, 'tea.black', { matcha: 'yum' }, 'Should have correct value of the property'); + }); }); diff --git a/types/chai/index.d.ts b/types/chai/index.d.ts index 8c19f1f54a..02bca8909f 100644 --- a/types/chai/index.d.ts +++ b/types/chai/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for chai 4.0 +// Type definitions for chai 4.1 // Project: http://chaijs.com/ // Definitions by: Jed Mao , // Bart van der Schoor , @@ -8,10 +8,9 @@ // Josh Goldberg // Shaun Luttin // Gintautas Miselis +// Satana Charuwichitratana // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// - declare namespace Chai { interface ChaiStatic { expect: ExpectStatic; @@ -227,7 +226,7 @@ declare namespace Chai { } interface Match { - (regexp: RegExp|string, message?: string): Assertion; + (regexp: RegExp, message?: string): Assertion; } interface Keys { @@ -1585,6 +1584,77 @@ declare namespace Chai { * @param message Message to display on error. */ doesNotHaveAllDeepKeys(object: T, keys: Array | { [key: string]: any }, message?: string): void; + + /** + * Asserts that object has a direct or inherited property named by property, + * which can be a string using dot- and bracket-notation for nested reference. + * + * @type T Type of object. + * @param object Object to test. + * @param property Property to test. + * @param message Message to display on error. + */ + nestedProperty(object: T, property: string, message?: string): void; + + /** + * Asserts that object does not have a property named by property, + * which can be a string using dot- and bracket-notation for nested reference. + * The property cannot exist on the object nor anywhere in its prototype chain. + * + * @type T Type of object. + * @param object Object to test. + * @param property Property to test. + * @param message Message to display on error. + */ + notNestedProperty(object: T, property: string, message?: string): void; + + /** + * Asserts that object has a property named by property with value given by value. + * property can use dot- and bracket-notation for nested reference. Uses a strict equality check (===). + * + * @type T Type of object. + * @param object Object to test. + * @param property Property to test. + * @param value Value to test. + * @param message Message to display on error. + */ + nestedPropertyVal(object: T, property: string, value: any, message?: string): void; + + /** + * Asserts that object does not have a property named by property with value given by value. + * property can use dot- and bracket-notation for nested reference. Uses a strict equality check (===). + * + * @type T Type of object. + * @param object Object to test. + * @param property Property to test. + * @param value Value to test. + * @param message Message to display on error. + */ + notNestedPropertyVal(object: T, property: string, value: any, message?: string): void; + + /** + * Asserts that object has a property named by property with a value given by value. + * property can use dot- and bracket-notation for nested reference. Uses a deep equality check. + * + * @type T Type of object. + * @param object Object to test. + * @param property Property to test. + * @param value Value to test. + * @param message Message to display on error. + */ + deepNestedPropertyVal(object: T, property: string, value: any, message?: string): void; + + /** + * Asserts that object does not have a property named by property with value given by value. + * property can use dot- and bracket-notation for nested reference. Uses a deep equality check. + * + * @type T Type of object. + * @param object Object to test. + * @param property Property to test. + * @param value Value to test. + * @param message Message to display on error. + */ + notDeepNestedPropertyVal(object: T, property: string, value: any, message?: string): void; } export interface Config { diff --git a/types/chance/chance-tests.ts b/types/chance/chance-tests.ts index dfb942f5c5..8e89d8227e 100644 --- a/types/chance/chance-tests.ts +++ b/types/chance/chance-tests.ts @@ -1,22 +1,24 @@ - - // Instantiation -var globalInstance: Chance.Chance = chance; -var createYourOwn = new Chance(Math.random); +let globalInstance: Chance.Chance = chance; +let createYourOwn = new Chance(Math.random); // Basic usage -var randBool: boolean = chance.bool(); +let randBool: boolean = chance.bool(); -var birthday: Date = chance.birthday(); -var birthdayStr: Date|string = chance.birthday({ string: true }); +let birthday: Date = chance.birthday(); +let birthdayStr: Date | string = chance.birthday({ string: true }); -var strArr: string[] = chance.n(chance.string, 42); +let guid = chance.guid(); +guid = chance.guid({ version: 4 }); +guid = chance.guid({ version: 5 }); -var uniqInts: number[] = chance.unique(chance.integer, 99); +let strArr: string[] = chance.n(chance.string, 42); -var currencyPair = chance.currency_pair(); -var firstCurrency = currencyPair[0]; -var secondCurrency = currencyPair[1]; +let uniqInts: number[] = chance.unique(chance.integer, 99); + +let currencyPair = chance.currency_pair(); +let firstCurrency = currencyPair[0]; +let secondCurrency = currencyPair[1]; // Mixins can be used with on-the-fly type declaration declare namespace Chance { @@ -26,15 +28,15 @@ declare namespace Chance { } chance.mixin({ - time: function () { - var h = chance.hour({ twentyfour: true }), - m = chance.minute(); + time() { + const h = chance.hour({ twentyfour: true }); + const m = chance.minute(); return `${h}:${m}`; - } + }, }); -var timeString: string = chance.time(); +let timeString: string = chance.time(); -var chanceConstructedWithSeed100 = new Chance(100); -var chanceCalledWithSeed100 = Chance() -var chanceConstructedWithStringSeed = new Chance("test") +let chanceConstructedWithSeed100 = new Chance(100); +let chanceCalledWithSeed100 = Chance(); +let chanceConstructedWithStringSeed = new Chance("test"); diff --git a/types/chance/index.d.ts b/types/chance/index.d.ts index 3b477c4bce..212e90dfe2 100644 --- a/types/chance/index.d.ts +++ b/types/chance/index.d.ts @@ -1,6 +1,7 @@ -// Type definitions for Chance 0.7.3 +// Type definitions for Chance 0.7.4 // Project: http://chancejs.com // Definitions by: Chris Bowdon +// Brice BERNARD // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare namespace Chance { @@ -13,17 +14,16 @@ declare namespace Chance { type SeededChance = Chance & Seeded; interface ChanceStatic { - (): Chance - (seed: Seed): SeededChance - (generator: () => any): Chance + (): Chance; + (seed: Seed): SeededChance; + (generator: () => any): Chance; - new(): Chance; - new(seed: Seed): SeededChance; - new(generator: () => any): Chance; + new (): Chance; + new (seed: Seed): SeededChance; + new (generator: () => any): Chance; } interface Chance { - // Basics bool(opts?: Options): boolean; character(opts?: Options): string; @@ -42,7 +42,7 @@ declare namespace Chance { age(opts?: Options): number; gender(): string; birthday(): Date; - birthday(opts?: Options): Date|string; + birthday(opts?: Options): Date | string; cpf(): string; first(opts?: Options): string; last(opts?: Options): string; @@ -95,7 +95,7 @@ declare namespace Chance { // Time ampm(): string; date(): Date; - date(opts: DateOptions): Date|string; + date(opts: DateOptions): Date | string; hammertime(): number; hour(opts?: Options): number; millisecond(): number; @@ -109,12 +109,12 @@ declare namespace Chance { // Finance cc(opts?: Options): string; cc_type(): string; - cc_type(opts: Options): string|CreditCardType; + cc_type(opts: Options): string | CreditCardType; currency(): Currency; - currency_pair(): [ Currency, Currency ]; + currency_pair(): [Currency, Currency]; dollar(opts?: Options): string; exp(): string; - exp(opts: Options): string|CreditCardExpiration; + exp(opts: Options): string | CreditCardExpiration; exp_month(opts?: Options): string; exp_year(opts?: Options): string; @@ -124,11 +124,11 @@ declare namespace Chance { pad(num: number, width: number, padChar?: string): string; /** * @deprecated Use pickone - */ + */ pick(arr: T[]): T; pickone(arr: T[]): T; /** - * @deprecated Use pickset + * @deprecated Use pickset */ pick(arr: T[], count: number): T[]; pickset(arr: T[], count?: number): T[]; @@ -144,13 +144,13 @@ declare namespace Chance { d20(): number; d30(): number; d100(): number; - guid(): string; + guid(options?: { version: 4 | 5 }): string; hash(opts?: Options): string; n(generator: () => T, count: number, opts?: Options): T[]; normal(opts?: Options): number; radio(opts?: Options): string; rpg(dice: string): number[]; - rpg(dice: string, opts?: Options): number[]|number; + rpg(dice: string, opts?: Options): number[] | number; tv(opts?: Options): string; unique(generator: () => T, count: number, opts?: Options): T[]; weighted(values: T[], weights: number[]): T; @@ -168,7 +168,9 @@ declare namespace Chance { // A more rigorous approach might be to produce // the correct options interfaces for each method - interface Options { [id: string]: any; } + interface Options { + [id: string]: any; + } interface DateOptions { string?: boolean; @@ -201,19 +203,21 @@ declare namespace Chance { year: string; } - interface MixinDescriptor { [id: string]: () => any; } + interface MixinDescriptor { + [id: string]: () => any; + } interface Setter { - (key: 'firstNames', values: string[]): any; - (key: 'lastNames', values: string[]): any; - (key: 'provinces', values: string[]): any; - (key: 'us_states_and_dc', values: string[]): any; - (key: 'territories', values: string[]): any; - (key: 'armed_forces', values: string[]): any; - (key: 'street_suffixes', values: string[]): any; - (key: 'months', values: string[]): any; - (key: 'cc_types', values: string[]): any; - (key: 'currency_types', values: string[]): any; + (key: "firstNames", values: string[]): any; + (key: "lastNames", values: string[]): any; + (key: "provinces", values: string[]): any; + (key: "us_states_and_dc", values: string[]): any; + (key: "territories", values: string[]): any; + (key: "armed_forces", values: string[]): any; + (key: "street_suffixes", values: string[]): any; + (key: "months", values: string[]): any; + (key: "cc_types", values: string[]): any; + (key: "currency_types", values: string[]): any; (key: string, values: T[]): any; } @@ -228,7 +232,7 @@ declare var chance: Chance.Chance; declare var Chance: Chance.ChanceStatic; // import Chance = require('chance'); -declare module 'chance' { +declare module "chance" { interface ExportedChance extends Chance.ChanceStatic { Chance: ExportedChance; } diff --git a/types/chance/tslint.json b/types/chance/tslint.json index a41bf5d19a..2ef6444ebb 100644 --- a/types/chance/tslint.json +++ b/types/chance/tslint.json @@ -2,78 +2,11 @@ "extends": "dtslint/dt.json", "rules": { "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false + "unified-signatures": false } } diff --git a/types/charset/charset-tests.ts b/types/charset/charset-tests.ts new file mode 100644 index 0000000000..d9ecd5b24b --- /dev/null +++ b/types/charset/charset-tests.ts @@ -0,0 +1,11 @@ +import charset = require('charset'); +import http = require('http'); + +http.get('http://nodejs.org', (res) => { + res.on('data', (chunk: Buffer) => { + console.log(charset(res.headers, chunk)); + console.log(charset(res, chunk)); + console.log(charset('content-type header, for example charset=utf8', chunk)); + res.destroy(); + }); +}); diff --git a/types/charset/index.d.ts b/types/charset/index.d.ts new file mode 100644 index 0000000000..da8d086868 --- /dev/null +++ b/types/charset/index.d.ts @@ -0,0 +1,33 @@ +// Type definitions for charset 1.0 +// Project: https://github.com/node-modules/charset +// Definitions by: Andrew Bradley +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// +import { ClientResponse, IncomingHttpHeaders } from 'http'; + +/** + * guess data charset from req.headers, xml, html content-type meta tag + * + * headers: + * + * 'content-type': 'text/html;charset=gbk' + * + * meta tag: + * + * + * + * xml file: + * + * + * + * @param obj `Content-Type` String, or `res.headers`, or `res` Object + * @param data content buffer + * @param peekSize max content peek size, default is 512 + * @return charset, lower case, e.g.: utf8, gbk, gb2312, .... If can\'t guess, return null + */ +// tslint:disable-next-line strict-export-declare-modifiers +declare function charset(obj: string | IncomingHttpHeaders | ClientResponse, data?: Buffer, peekSize?: number): string | null; + +// tslint:disable-next-line strict-export-declare-modifiers +export = charset; diff --git a/types/charset/tsconfig.json b/types/charset/tsconfig.json new file mode 100644 index 0000000000..52652c8e44 --- /dev/null +++ b/types/charset/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "charset-tests.ts" + ] +} diff --git a/types/rollup/tslint.json b/types/charset/tslint.json similarity index 60% rename from types/rollup/tslint.json rename to types/charset/tslint.json index ba7f6bc7ae..ca595ee830 100644 --- a/types/rollup/tslint.json +++ b/types/charset/tslint.json @@ -1,6 +1,6 @@ { "extends": "dtslint/dt.json", "rules": { - "semicolon": [true, "never"] + "no-redundant-jsdoc-2": false } } diff --git a/types/chart.js/chart.js-tests.ts b/types/chart.js/chart.js-tests.ts index d1e86fd317..8d2190478f 100644 --- a/types/chart.js/chart.js-tests.ts +++ b/types/chart.js/chart.js-tests.ts @@ -45,7 +45,14 @@ const chart: Chart = new Chart(new CanvasRenderingContext2D(), { } }] }, - plugins: { arbitraryPlugin: {option: "value"} } + plugins: { arbitraryPlugin: {option: "value"} }, + legend: { + display: true, + labels: { + usePointStyle: true, + padding: 40 + } + }, } }); chart.update(); diff --git a/types/chart.js/index.d.ts b/types/chart.js/index.d.ts index 614fbe26ef..db20617c2d 100644 --- a/types/chart.js/index.d.ts +++ b/types/chart.js/index.d.ts @@ -7,6 +7,8 @@ // Daniel Luz // Joseph Page // Dan Manastireanu +// Guillaume Rodriguez +// Sergey Rubanov // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -36,10 +38,16 @@ declare class Chart { static defaults: { global: Chart.ChartOptions & Chart.ChartFontOptions; + [key: string]: any; + }; + + static controllers: { + [key: string]: any; }; } declare class PluginServiceStatic { - register(plugin?: PluginServiceRegistrationOptions): void; + register(plugin: PluginServiceRegistrationOptions): void; + unregister(plugin: PluginServiceRegistrationOptions): void; } interface PluginServiceRegistrationOptions { @@ -65,6 +73,13 @@ interface PluginServiceRegistrationOptions { beforeDatasetsDraw?(chartInstance: Chart, easing: string): void; afterDatasetsDraw?(chartInstance: Chart, easing: string): void; + // Called before drawing the `tooltip`. If any plugin returns `false`, + // the tooltip drawing is cancelled until another `render` is triggered. + beforeTooltipDraw?(chartInstance: Chart): void; + // Called after drawing the `tooltip`. Note that this hook will not, + // be called if the tooltip drawing has been previously cancelled. + afterTooltipDraw?(chartInstance: Chart): void; + destroy?(chartInstance: Chart): void; // Called when an event occurs on the chart @@ -105,6 +120,7 @@ declare namespace Chart { lineJoin?: string; lineWidth?: number; strokeStyle?: string; + pointStyle?: PointStyle; } interface ChartTooltipItem { @@ -217,6 +233,8 @@ declare namespace Chart { fontFamily?: string; padding?: number; generateLabels?(chart: any): any; + filter?(item: ChartLegendItem, data: ChartData): any; + usePointStyle?: boolean; } interface ChartTooltipOptions { @@ -533,6 +551,7 @@ declare namespace Chart { tooltipFormat?: string; unit?: TimeUnit; unitStepSize?: number; + stepSize?: number; minUnit?: TimeUnit; } diff --git a/types/chartist/index.d.ts b/types/chartist/index.d.ts index 6bdb7ebfe3..93918a5eeb 100644 --- a/types/chartist/index.d.ts +++ b/types/chartist/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for Chartist v0.9.8 +// Type definitions for Chartist v0.9.81 // Project: https://github.com/gionkunz/chartist-js // Definitions by: Matt Gibbs , Simon Pfeifer , Cassey Lottman // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -78,7 +78,7 @@ declare namespace Chartist { // TODO: come in and tidy this up and make it fit better interface IChartistData { labels?: Array | Array | Array; - series: Array | Array | Array>; + series: Array | Array> | Array | Array>; } interface IChartistSeriesData { diff --git a/types/chartjs/chartjs-tests.ts b/types/chartjs/chartjs-tests.ts deleted file mode 100644 index ef50da1b40..0000000000 --- a/types/chartjs/chartjs-tests.ts +++ /dev/null @@ -1,393 +0,0 @@ - - -var canvas = document.getElementById('example-chart'); -var ctx = canvas.getContext('2d'); - -Chart.defaults.global = { - animation: true, - animationSteps: 60, - animationEasing: "easeOutQuart", - showScale: true, - scaleOverride: false, - scaleSteps: null, - scaleStepWidth: null, - scaleStartValue: null, - scaleLineColor: "rgba(0,0,0,.1)", - scaleLineWidth: 1, - scaleShowLabels: true, - scaleLabel: "<%=value%>", - scaleIntegersOnly: true, - scaleBeginAtZero: false, - scaleFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", - scaleFontSize: 12, - scaleFontStyle: "normal", - scaleFontColor: "#666", - responsive: false, - maintainAspectRatio: true, - showTooltips: true, - tooltipEvents: ["mousemove", "touchstart", "touchmove"], - tooltipFillColor: "rgba(0,0,0,0.8)", - tooltipFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", - tooltipFontSize: 14, - tooltipFontStyle: "normal", - tooltipFontColor: "#fff", - tooltipTitleFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", - tooltipTitleFontSize: 14, - tooltipTitleFontStyle: "bold", - tooltipTitleFontColor: "#fff", - tooltipYPadding: 6, - tooltipXPadding: 6, - tooltipCaretSize: 8, - tooltipCornerRadius: 6, - tooltipXOffset: 10, - tooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>", - multiTooltipTemplate: "<%= value %>", - onAnimationProgress: function () { }, - onAnimationComplete: function () { } -} - -var lineData: LinearChartData = { - labels: ['03:00', '04:00', '05:00', '06:00', '07:00', '08:00', '09:00'], - datasets: [ - { - label: 'Accepted', - type: 'bar', - fillColor: 'rgba(220,220,220,0.2)', - strokeColor: 'rgba(220,220,220,1)', - pointColor: 'rgba(220,220,220,1)', - pointStrokeColor: '#fff', - pointHighlightFill: '#fff', - pointHighlightStroke: 'rgba(220,220,220,1)', - borderColor: "#9b0391", - data: [65, 59, 80, 81, 56, 55, 40] - }, - { - label: 'Quarantined', - fillColor: 'rgba(151,187,205,0.2)', - strokeColor: 'rgba(151,187,205,1)', - pointColor: 'rgba(151,187,205,1)', - pointStrokeColor: '#fff', - pointHighlightFill: '#fff', - pointHighlightStroke: 'rgba(151,187,205,1)', - data: [28, 48, 40, 19, 86, 27, 90], - yAxisID: 'quarantined' - } - ] -}; - -var myLineChart = new Chart(ctx).Line(lineData, { - scaleShowGridLines: true, - scaleGridLineColor: "rgba(0,0,0,.05)", - scaleGridLineWidth: 1, - bezierCurve: true, - bezierCurveTension: 0.4, - pointDot: true, - pointDotRadius: 4, - pointDotStrokeWidth: 1, - pointHitDetectionRadius: 20, - datasetStroke: true, - datasetStrokeWidth: 2, - datasetFill: true, - scales: { - xAxes: [{ - stacked: true, - }], - yAxes: [{ - position: "left", - "id": "users" - }, { - position: "right", - "id": "ratio", - ticks: { - min: -13 - } - }] - }, - legendTemplate: "
    -legend\"><% for (var i=0; i
  • \"><%if(datasets[i].label){%><%=datasets[i].label%><%}%>
  • <%}%>
" -}); - -var myLineChartLegend: string = myLineChart.generateLegend(); -var myLineChartImage: string = myLineChart.toBase64Image(); -myLineChart.addData([1, 2, 3, 4, 5, 6, 7], 'new'); -myLineChart.clear(); -myLineChart.removeData(); -myLineChart.resize(); -myLineChart.update(); -myLineChart.stop(); -myLineChart.destroy(); - -var barData: LinearChartData = { - labels: ["January", "February", "March", "April", "May", "June", "July"], - datasets: [ - { - label: "My First dataset", - fillColor: "rgba(220,220,220,0.5)", - strokeColor: "rgba(220,220,220,0.8)", - highlightFill: "rgba(220,220,220,0.75)", - highlightStroke: "rgba(220,220,220,1)", - data: [65, 59, 80, 81, 56, 55, 40] - }, - { - label: "My Second dataset", - fillColor: "rgba(151,187,205,0.5)", - strokeColor: "rgba(151,187,205,0.8)", - highlightFill: "rgba(151,187,205,0.75)", - highlightStroke: "rgba(151,187,205,1)", - data: [28, 48, 40, 19, 86, 27, 90] - } - ] -}; - -var myBarChart = new Chart(ctx).Bar(barData, { - scaleBeginAtZero: true, - scaleShowGridLines: true, - scaleGridLineColor: "rgba(0,0,0,.05)", - scaleGridLineWidth: 1, - barShowStroke: true, - barStrokeWidth: 2, - barValueSpacing: 5, - barDatasetSpacing: 1, - legend: { - display: true, - position: 'bottom' - }, - legendTemplate: "
    -legend\"><% for (var i=0; i
  • \"><%if(datasets[i].label){%><%=datasets[i].label%><%}%>
  • <%}%>
" -}); - -var myBarChartLegend: string = myBarChart.generateLegend(); -var myBarChartImage: string = myBarChart.toBase64Image(); -myBarChart.addData([1, 2, 3, 4, 5, 6, 7], 'new'); -myBarChart.clear(); -myBarChart.removeData(); -myBarChart.resize(); -myBarChart.update(); -myBarChart.stop(); -myBarChart.destroy(); - -var radarData: LinearChartData = { - labels: ["Eating", "Drinking", "Sleeping", "Designing", "Coding", "Cycling", "Running"], - datasets: [ - { - label: "My First dataset", - fillColor: "rgba(220,220,220,0.2)", - strokeColor: "rgba(220,220,220,1)", - pointColor: "rgba(220,220,220,1)", - pointStrokeColor: "#fff", - pointHighlightFill: "#fff", - pointHighlightStroke: "rgba(220,220,220,1)", - data: [65, 59, 90, 81, 56, 55, 40] - }, - { - label: "My Second dataset", - fillColor: "rgba(151,187,205,0.2)", - strokeColor: "rgba(151,187,205,1)", - pointColor: "rgba(151,187,205,1)", - pointStrokeColor: "#fff", - pointHighlightFill: "#fff", - pointHighlightStroke: "rgba(151,187,205,1)", - data: [28, 48, 40, 19, 96, 27, 100] - } - ] -}; - -var myRadarChart = new Chart(ctx).Radar(radarData, { - scaleShowLine: true, - angleShowLineOut: true, - scaleShowLabels: false, - scaleBeginAtZero: true, - angleLineColor: "rgba(0,0,0,.1)", - angleLineWidth: 1, - pointLabelFontFamily: "'Arial'", - pointLabelFontStyle: "normal", - pointLabelFontSize: 10, - pointLabelFontColor: "#666", - pointDot: true, - pointDotRadius: 3, - pointDotStrokeWidth: 1, - pointHitDetectionRadius: 20, - datasetStroke: true, - datasetStrokeWidth: 2, - datasetFill: true, - legendTemplate: "
    -legend\"><% for (var i=0; i
  • \"><%if(datasets[i].label){%><%=datasets[i].label%><%}%>
  • <%}%>
" -}); - -var myRadarChartLegend: string = myRadarChart.generateLegend(); -var myRadarChartImage: string = myRadarChart.toBase64Image(); -myRadarChart.addData([1, 2, 3, 4, 5, 6, 7], 'new'); -myRadarChart.clear(); -myRadarChart.removeData(); -myRadarChart.resize(); -myRadarChart.update(); -myRadarChart.stop(); -myRadarChart.destroy(); - -var polarAreaData: CircularChartData[] = [ - { - value: 300, - color: "#F7464A", - highlight: "#FF5A5E", - label: "Red" - }, - { - value: 50, - color: "#46BFBD", - highlight: "#5AD3D1", - label: "Green" - }, - { - value: 100, - color: "#FDB45C", - highlight: "#FFC870", - label: "Yellow" - }, - { - value: 40, - color: "#949FB1", - highlight: "#A8B3C5", - label: "Grey" - }, - { - value: 120, - color: "#4D5360", - highlight: "#616774", - label: "Dark Grey" - } - -]; - -var myPolarAreaChart = new Chart(ctx).PolarArea(polarAreaData, { - scaleShowLabelBackdrop: true, - scaleBackdropColor: "rgba(255,255,255,0.75)", - scaleBeginAtZero: true, - scaleBackdropPaddingY: 2, - scaleBackdropPaddingX: 2, - scaleShowLine: true, - segmentShowStroke: true, - segmentStrokeColor: "#fff", - segmentStrokeWidth: 2, - animationSteps: 100, - animationEasing: "easeOutBounce", - animateRotate: true, - animateScale: false, - legendTemplate: "
    -legend\"><% for (var i=0; i
  • \"><%if(segments[i].label){%><%=segments[i].label%><%}%>
  • <%}%>
" -}); - -var myPolarAreaChartLegend: string = myPolarAreaChart.generateLegend(); -var myPolarAreaChartImage: string = myPolarAreaChart.toBase64Image(); -myPolarAreaChart.addData({ - value: 120, - color: "#4D5360", - highlight: "#616774", - label: "Dark Grey" -}, 0); -myPolarAreaChart.clear(); -myPolarAreaChart.removeData(0); -myPolarAreaChart.resize(); -myPolarAreaChart.update(); -myPolarAreaChart.stop(); -myPolarAreaChart.destroy(); - -var pieData: CircularChartData[] = [ - { - value: 300, - color: "#F7464A", - highlight: "#FF5A5E", - label: "Red" - }, - { - value: 50, - color: "#46BFBD", - highlight: "#5AD3D1", - label: "Green" - }, - { - value: 100, - color: "#FDB45C", - highlight: "#FFC870", - label: "Yellow" - } -]; - -// For a pie chart -var myPieChart = new Chart(ctx).Pie(pieData, { - segmentShowStroke: true, - segmentStrokeColor: "#fff", - segmentStrokeWidth: 2, - percentageInnerCutout: 0, - animationSteps: 100, - animationEasing: "easeOutBounce", - animateRotate: true, - animateScale: false, - legendTemplate: "
    -legend\"><% for (var i=0; i
  • \"><%if(segments[i].label){%><%=segments[i].label%><%}%>
  • <%}%>
" -}); - -var myPieChartLegend: string = myPieChart.generateLegend(); -var myPieChartImage: string = myPieChart.toBase64Image(); -myPieChart.addData({ - value: 120, - color: "#4D5360", - highlight: "#616774", - label: "Dark Grey" -}, 0); -myPieChart.clear(); -myPieChart.removeData(0); -myPieChart.resize(); -myPieChart.update(); -myPieChart.stop(); -myPieChart.destroy(); - -// And for a doughnut chart -var myDoughnutChart = new Chart(ctx).Doughnut(pieData, { - segmentShowStroke: true, - segmentStrokeColor: "#fff", - segmentStrokeWidth: 2, - percentageInnerCutout: 50, - animationSteps: 100, - animationEasing: "easeOutBounce", - animateRotate: true, - animateScale: false, - legendTemplate: "
    -legend\"><% for (var i=0; i
  • \"><%if(segments[i].label){%><%=segments[i].label%><%}%>
  • <%}%>
" -}); - -var myDoughnutChartLegend: string = myDoughnutChart.generateLegend(); -var myDoughnutChartImage: string = myDoughnutChart.toBase64Image(); -myPieChart.addData({ - value: 120, - color: "#4D5360", - highlight: "#616774", - label: "Dark Grey" -}, 0); -myDoughnutChart.clear(); -myDoughnutChart.removeData(0); -myDoughnutChart.resize(); -myDoughnutChart.update(); -myDoughnutChart.stop(); -myDoughnutChart.destroy(); - -// Test using charts with overrides of a subset of global options -var partialOpts: ChartSettings = { - showTooltips: true, - tooltipEvents: ["mousemove", "touchstart", "touchmove"], - tooltipFillColor: "rgba(0,0,0,0.8)", - tooltipFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", - tooltipFontSize: 14, - tooltipFontStyle: "normal", - tooltipFontColor: "#fff", - tooltipTitleFontFamily: "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif", - tooltipTitleFontSize: 14, - tooltipTitleFontStyle: "bold", - tooltipTitleFontColor: "#fff", - tooltipYPadding: 6, - tooltipXPadding: 6, - tooltipCaretSize: 8, - tooltipCornerRadius: 6, - tooltipXOffset: 10, - tooltipTemplate: "<%if (label){%><%=label%>: <%}%><%= value %>" -}; - -var my2ndLineChart = new Chart(ctx).Line(lineData, partialOpts); -var my2ndBarChart = new Chart(ctx).Bar(barData, partialOpts); -var my2ndRadarChart = new Chart(ctx).Radar(radarData, partialOpts); -var my2ndPolarAreaChart = new Chart(ctx).PolarArea(polarAreaData, partialOpts); -var my2ndPieChart = new Chart(ctx).Pie(pieData, partialOpts); -var my2ndDoughnutChart = new Chart(ctx).Doughnut(pieData, partialOpts); diff --git a/types/chartjs/index.d.ts b/types/chartjs/index.d.ts deleted file mode 100644 index 4caaef4981..0000000000 --- a/types/chartjs/index.d.ts +++ /dev/null @@ -1,255 +0,0 @@ -// Type definitions for Chart.js -// Project: https://github.com/nnnick/Chart.js -// Definitions by: Steve Fenton -// Alessio Fanelli -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped - -interface ChartDataSet { - label: string; - fillColor: string; - strokeColor: string; - type?: string; - yAxisID?: string; - xAxisID?: string; - - borderColor?: string; - /* Line, Radar */ - pointColor?: string; - pointStrokeColor?: string; - pointHighlightFill?: string; - pointHighlightStroke?: string; - - /* Bar */ - highlightFill?: string; - highlightStroke?: string; - backgroundColorHover?: string; - - data: number[]; -} - -interface LinearChartData { - labels: string[]; - datasets: ChartDataSet[]; -} - -interface CircularChartData { - value: number; - color?: string; - highlight?: string; - label?: string; -} - -interface ChartSettings { - animation?: boolean; - animationSteps?: number; - animationEasing?: string; - showScale?: boolean; - scaleOverride?: boolean; - scaleSteps?: number; - scaleStepWidth?: number; - scaleStartValue?: number; - scaleLineColor?: string; - scaleLineWidth?: number; - scaleShowLabels?: boolean; - scaleLabel?: string; - scaleIntegersOnly?: boolean; - scaleBeginAtZero?: boolean; - scaleFontFamily?: string; - scaleFontSize?: number; - scaleFontStyle?: string; - scaleFontColor?: string; - responsive?: boolean; - maintainAspectRatio?: boolean; - showTooltips?: boolean; - tooltipEvents?: string[]; - tooltipFillColor?: string; - tooltipFontFamily?: string; - tooltipFontSize?: number; - tooltipFontStyle?: string; - tooltipFontColor?: string; - tooltipTitleFontFamily?: string; - tooltipTitleFontSize?: number; - tooltipTitleFontStyle?: string; - tooltipTitleFontColor?: string; - tooltipYPadding?: number; - tooltipXPadding?: number; - tooltipCaretSize?: number; - tooltipCornerRadius?: number; - tooltipXOffset?: number; - tooltipTemplate?: string; - multiTooltipTemplate?: string; - onAnimationProgress?: () => any; - onAnimationComplete?: () => any; -} - -interface ChartOptions extends ChartSettings { - scaleShowGridLines?: boolean; - scaleGridLineColor?: string; - scaleGridLineWidth?: number; - scaleShowHorizontalLines?: boolean; - scaleShowVerticalLines?: boolean; - legendTemplate?: string; - tooltips?: ChartTooltips; - legend?: ChartLegend; - scales?: ChartScales; - title?: ChartTitle; -} - -interface ChartTooltips { - mode?: string; - intersect?: boolean; -} - -interface ChartLegend { - display?: boolean; - position?: string; -} - -interface ChartScales { - xAxes?: Array; - yAxes?: Array; -} - -interface ChartScalesOptions { - stacked?: boolean; - position?: string; - id?: string; - ticks?: ScaleTicksOptions; -} - -interface ScaleTicksOptions { - min?: number; - max?: number; - maxTicksLimit?: number; - suggestedMin?: number; - suggestedMax?: number; - stepSize?: number; -} - -interface ChartTitle { - display?: boolean; - text?: string; -} - -interface PointsAtEvent { - value: number; - label: string; - datasetLabel: string; - strokeColor: string; - fillColor: string; - highlightFill: string; - highlightStroke: string; - x: number; - y: number; -} - -interface ChartInstance { - clear: () => void; - stop: () => void; - resize: () => void; - destroy: () => void; - toBase64Image: () => string; - generateLegend: () => string; -} - -interface LinearInstance extends ChartInstance { - getPointsAtEvent: (event: Event) => PointsAtEvent[]; - update: () => void; - addData: (valuesArray: number[], label: string) => void; - removeData: (index?: number) => void; -} - -interface CircularInstance extends ChartInstance { - getSegmentsAtEvent: (event: Event) => {}[]; - update: () => void; - addData: (valuesArray: CircularChartData, index?: number) => void; - removeData: (index: number) => void; - segments: Array; -} - -interface LineChartOptions extends ChartOptions { - bezierCurve?: boolean; - bezierCurveTension?: number; - pointDot?: boolean; - pointDotRadius?: number; - pointDotStrokeWidth?: number; - pointHitDetectionRadius?: number; - datasetStroke?: boolean; - datasetStrokeWidth?: number; - datasetFill?: boolean; -} - -interface BarChartOptions extends ChartOptions { - scaleBeginAtZero?: boolean; - barShowStroke?: boolean; - barStrokeWidth?: number; - barValueSpacing?: number; - barDatasetSpacing?: number; -} - -interface RadarChartOptions extends ChartSettings { - scaleShowLine?: boolean; - angleShowLineOut?: boolean; - scaleShowLabels?: boolean; - scaleBeginAtZero?: boolean; - angleLineColor?: string; - angleLineWidth?: number; - pointLabelFontFamily?: string; - pointLabelFontStyle?: string; - pointLabelFontSize?: number; - pointLabelFontColor?: string; - pointDot?: boolean; - pointDotRadius?: number; - pointDotStrokeWidth?: number; - pointHitDetectionRadius?: number; - datasetStroke?: boolean; - datasetStrokeWidth?: number; - datasetFill?: boolean; - legendTemplate?: string; -} - -interface PolarAreaChartOptions extends ChartSettings { - scaleShowLabelBackdrop?: boolean; - scaleBackdropColor?: string; - scaleBeginAtZero?: boolean; - scaleBackdropPaddingY?: number; - scaleBackdropPaddingX?: number; - scaleShowLine?: boolean; - segmentShowStroke?: boolean; - segmentStrokeColor?: string; - segmentStrokeWidth?: number; - animationSteps?: number; - animationEasing?: string; - animateRotate?: boolean; - animateScale?: boolean; - legendTemplate?: string; -} - -interface PieChartOptions extends ChartSettings { - segmentShowStroke?: boolean; - segmentStrokeColor?: string; - segmentStrokeWidth?: number; - percentageInnerCutout?: number; - animationSteps?: number; - animationEasing?: string; - animateRotate?: boolean; - animateScale?: boolean; - legendTemplate?: string; -} - -interface Chart { - Line(data: LinearChartData, options?: LineChartOptions): LinearInstance; - Bar(data: LinearChartData, options?: BarChartOptions): LinearInstance; - Radar(data: LinearChartData, options?: RadarChartOptions): LinearInstance; - - PolarArea(data: CircularChartData[], options?: PolarAreaChartOptions): CircularInstance; - Pie(data: CircularChartData[], options?: PieChartOptions): CircularInstance; - Doughnut(data: CircularChartData[], options?: PieChartOptions): CircularInstance; -} - -declare var Chart: { - new (context: CanvasRenderingContext2D): Chart; - defaults: { - global: ChartSettings; - } -}; diff --git a/types/chartjs/tslint.json b/types/chartjs/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/chartjs/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/check-types/check-types-tests.ts b/types/check-types/check-types-tests.ts new file mode 100644 index 0000000000..1f0fc31c98 --- /dev/null +++ b/types/check-types/check-types-tests.ts @@ -0,0 +1,57 @@ +import * as check from "check-types"; + +const a: boolean = check.number(2); + +const b: any = 2; + +if (check.string(b)) { + const c = b.slice(0, 1); +} + +check.map({ val: 1, val2: 2 }, { val: check.number, val2: check.string }); + +check.even(3); + +check.not.even(3); + +check.maybe.even(2); + +check.assert.like({ foo: 'bar' }, { baz: 'qux' }); + +check.assert(false, "msg", Error); + +check.assert.not.like({ foo: 'bar' }, { baz: 'qux' }); + +check.assert.maybe.like(undefined, { foo: 'bar' }); + +check.assert(function a(): any { return {}; }, 'Something went wrong', Error); + +check.apply([ 'foo', 'bar', '' ], check.nonEmptyString); + +check.any( + check.apply( + [ 1, 2, 3, '' ], + check.string + ) +); + +check.any( + check.map( + { foo: 0, bar: '' }, + { foo: check.number, bar: check.string } + ) +); + +check.all( + check.map( + { foo: 0, bar: '' }, + { foo: check.number, bar: check.string } + ) +); + +check.all( + check.apply( + [ 1, 2, 3, '' ], + check.string + ) +); diff --git a/types/check-types/index.d.ts b/types/check-types/index.d.ts new file mode 100644 index 0000000000..fad987692f --- /dev/null +++ b/types/check-types/index.d.ts @@ -0,0 +1,162 @@ +// Type definitions for check-types 7.3 +// Project: https://github.com/philbooth/check-types.js +// Definitions by: idchlife +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped/ +// TypeScript Version: 2.2 + +type NegationFunction = (val: any) => boolean; + +type MaybeFunction = (val: T) => boolean | T; + +interface ArrayFunction { + (a: any): a is any[]; + + // TODO: Maybe there is a way to create type guards for array type checks + // Since syntax is like check.array.of.number(2) - it's not yet clear to me how this even works, so... + // I might use of: CheckType, but it will just return type guards for primitives and object type + // and will make variable simply non array type in conditionals. + of: { + [method: string]: boolean; + }; +} + +interface ArrayLikeFunction { + (a: any): a is ArrayLike; + + // See in array explanation of this type + of: { + [method: string]: boolean; + }; +} + +interface IterableFunction { + (a: any): a is Iterable; + + // See in array explanation of this type + of: { + [method: string]: boolean; + }; +} + +interface ObjectFunction { + (a: any): a is object; + + // See in array explanation of this type + of: { + [method: string]: boolean; + }; +} + +interface AssertFunction extends CheckType { + (possibleFalsy: T, message?: string, errorType?: { new(...args: any[]): any }): T; +} + +interface CheckType { + /* General predicates */ + + equal(a: any, b: any): boolean; + null(a: any): a is null; + undefined(a: any): a is undefined; + assigned(a: any): boolean; + primitive(a: any): a is number | string | boolean | null | undefined | symbol; + hasLength(a: any, length: number): boolean; + + /* String predicates */ + + string(a: any): a is string; + emptyString(a: string): boolean; + nonEmptyString(a: string): boolean; + contains(a: string, substring: string): boolean; + match(a: string, b: RegExp): boolean; + + /* Number predicates */ + + number(a: any): a is number; + integer(a: any): a is number; + zero(a: any): boolean; + infinity(a: any): boolean; + greater(num: number, greaterThan: number): boolean; + greaterOrEqual(num: number, greaterOrEqual: number): boolean; + less(num: number, lessThan: number): boolean; + lessOrEqual(num: number, lessOrEqual: number): boolean; + /** + * Excluding a and b. Any order of a, b + */ + between(num: number, a: number, b: number): boolean; + /** + * Including a, b. Any order of a, b + */ + inRange(num: number, a: number, b: number): boolean; + positive(num: number): boolean; + negative(num: number): boolean; + odd(num: number): boolean; + even(num: number): boolean; + + /* Boolean predicates */ + + boolean(a: any): a is boolean; + + /* Object predicates */ + + object: ObjectFunction; + emptyObject(a: object): boolean; + nonEmptyObject(a: object): boolean; + /** + * Checking via instanceof + */ + instanceStrict(a: any, prototype: T): a is T; + /** + * Checking via instanceof, fallback constructor.name and .toString() + */ + instance(a: any, prototype: T): a is T; + /** + * Duck type checking. Structural in other words. Checking if a has all properties of duck + */ + like(a: any, duck: T): a is T; + + /* Array predicates */ + + array: ArrayFunction; + emptyArray(a: any[]): boolean; + nonEmptyArray(a: any[]): boolean; + arrayLike: ArrayLikeFunction; + iterable: IterableFunction; + includes(a: any[], value: any): boolean; + + /* Date predicates */ + + date(a: any): a is Date; + + /* Function predicates */ + + function(a: any): a is (...args: any[]) => any; + + /* Modifiers (some of them in their respected sections) */ + not: CheckType & NegationFunction; + maybe: CheckType & MaybeFunction; + assert: AssertFunction; + + /* Batch operations */ + + /** + * Applying predicate to every element of array and returning resulting array + * + * Example: apply([2, 3, "four"], check.number) => [true, true, false] + */ + apply(arr: any[], predicate: (...args: any[]) => T): T[]; + + // Also some difficulties with returning object with only defined in predicates object propertis. + // Will gladly accept help or ideas. Now using any for returned object + map( + arr: T, + predicates: Partial<{ [k in keyof T]: (...args: any[]) => boolean }> + ): Partial<{ [k in keyof T]: any }>; + + all(arr: boolean[] | { [k: string]: boolean }): boolean; + + any(arr: boolean[] | { [k: string]: boolean }): boolean; +} + +declare const check: CheckType; + +export = check; diff --git a/types/check-types/tsconfig.json b/types/check-types/tsconfig.json new file mode 100644 index 0000000000..d3c89a7ac7 --- /dev/null +++ b/types/check-types/tsconfig.json @@ -0,0 +1,21 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": ["es6"], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "check-types-tests.ts" + ] +} \ No newline at end of file diff --git a/types/check-types/tslint.json b/types/check-types/tslint.json new file mode 100644 index 0000000000..2750cc0197 --- /dev/null +++ b/types/check-types/tslint.json @@ -0,0 +1 @@ +{ "extends": "dtslint/dt.json" } \ No newline at end of file diff --git a/types/cheerio/index.d.ts b/types/cheerio/index.d.ts index 8250848374..42bcae6eff 100644 --- a/types/cheerio/index.d.ts +++ b/types/cheerio/index.d.ts @@ -271,6 +271,8 @@ interface CheerioAPI extends CheerioSelector, CheerioStatic { load(element: CheerioElement, options?: CheerioOptionsInterface): CheerioStatic; } +interface Document { } + declare var cheerio:CheerioAPI; declare module "cheerio" { diff --git a/types/chrome/index.d.ts b/types/chrome/index.d.ts index 9946c79c38..cd12179213 100644 --- a/types/chrome/index.d.ts +++ b/types/chrome/index.d.ts @@ -469,7 +469,7 @@ declare namespace chrome.browserAction { /** Optional. Limits the change to when a particular tab is selected. Automatically resets when the tab is closed. */ tabId?: number; /** Optional. Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'19': foo}' */ - imageData?: ImageData; + imageData?: ImageData | { [index: number]: ImageData }; } export interface PopupDetails { @@ -2316,9 +2316,11 @@ declare namespace chrome.enterprise.deviceAttributes { /** * @description Fetches the value of the device identifier of the directory API, that is generated by the server and identifies the cloud record of the device for querying in the cloud directory API. * @export - * @param {(deviceId) => void} callback Called with the device identifier of the directory API when received. + * @param callback Called with the device identifier of the directory API when received. + * The callback parameter should be a function that looks like this: + * function(string deviceId) {...}; */ - export function getDirectoryDeviceId(callback: (deviceId) => void): void; + export function getDirectoryDeviceId(callback: (deviceId: string) => void): void; } //////////////////// @@ -4488,7 +4490,7 @@ declare namespace chrome.pageAction { * Optional. * Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'19': foo}' */ - imageData?: ImageData; + imageData?: ImageData | { [index: number]: ImageData }; /** * Optional. * Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageData = {'19': foo}' @@ -6048,6 +6050,12 @@ declare namespace chrome.tabs { * @since Chrome 39. */ matchAboutBlank?: boolean; + /** + * Optional. The origin of the CSS to inject. This may only be specified for CSS, not JavaScript. Defaults to "author". + * One of: "author", or "user" + * @since Chrome 66. + */ + cssOrigin?: string; } export interface CreateProperties { diff --git a/types/ckeditor/index.d.ts b/types/ckeditor/index.d.ts index 20882269fd..cf7cd0cc27 100644 --- a/types/ckeditor/index.d.ts +++ b/types/ckeditor/index.d.ts @@ -24,6 +24,8 @@ declare namespace CKEDITOR { var DIALOG_RESIZE_HEIGHT: number; var DIALOG_RESIZE_NONE: number; var DIALOG_RESIZE_WIDTH: number; + var DIALOG_STATE_IDLE: number; + var DIALOG_STATE_BUSY: number; var ELEMENT_MODE_APPENDTO: number; var ELEMENT_MODE_INLINE: number; var ELEMENT_MODE_NONE: number; @@ -42,6 +44,10 @@ declare namespace CKEDITOR { var NODE_DOCUMENT_FRAGMENT: number; var NODE_ELEMENT: number; var NODE_TEXT: number; + var POSITION_BEFORE_START: number; + var POSITION_BEFORE_END: number; + var POSITION_AFTER_START: number; + var POSITION_AFTER_END: number; var SELECTION_ELEMENT: number; var SELECTION_NONE: number; var SELECTION_TEXT: number; @@ -49,6 +55,9 @@ declare namespace CKEDITOR { var SHRINK_ELEMENT: number; var SHRINK_TEXT: number; var START: number; + var STYLE_BLOCK: string; + var STYLE_INLINE: string; + var STYLE_OBJECT: string; var TRISTATE_DISABLED: number; var TRISTATE_OFF: number; var TRISTATE_ON: number; @@ -62,7 +71,7 @@ declare namespace CKEDITOR { var currentInstance: editor; var document: dom.document; var env: environmentConfig; - var instances: editor[]; + var instances: { [id: string]: editor | undefined }; var loadFullCoreTimeout: number; var revision: string; var rnd: number; @@ -92,9 +101,19 @@ declare namespace CKEDITOR { function replaceAll(className?: string): void; function replaceAll(assertionFunction: (textarea: HTMLTextAreaElement, config: config) => boolean): void; + type listenerRegistration = { + removeListener: () => void; + } namespace dom { + interface bookmark { + startNode: dom.node | string; + endNode: dom.node | string; + serializable: boolean; + collapsed: boolean; + } + class comment { // Properties @@ -269,16 +288,17 @@ declare namespace CKEDITOR { class elementPath { constructor(startNode: element, root: element); + constructor(startNode: element); block: element; blockLimit: element; root: element; elements: element[]; compare(otherPath: elementPath): boolean; - contains(query: string, excludeRoot: boolean, fromTop: boolean): element; - contains(query: string[], excludeRoot: boolean, fromTop: boolean): element; - contains(query: (element: element) => boolean, excludeRoot: boolean, fromTop: boolean): element; - contains(query: Object, excludeRoot: boolean, fromTop: boolean): element; - contains(query: element, excludeRoot: boolean, fromTop: boolean): element; + contains(query: string, excludeRoot?: boolean, fromTop?: boolean): element; + contains(query: string[], excludeRoot?: boolean, fromTop?: boolean): element; + contains(query: (element: element) => boolean, excludeRoot?: boolean, fromTop?: boolean): element; + contains(query: Object, excludeRoot?: boolean, fromTop?: boolean): element; + contains(query: element, excludeRoot?: boolean, fromTop?: boolean): element; isContextFor(tag: string): boolean; direction(): string; } @@ -300,7 +320,7 @@ declare namespace CKEDITOR { cloneContents(): documentFragment; deleteContents(mergeThen?: boolean): void; extractContents(mergeThen?: boolean): documentFragment; - createBookmark(serializable: boolean): Object; + createBookmark(serializable?: boolean): bookmark; createBookmark2(normalized: boolean): Object; createIterator(): iterator; moveToBookmark(bookmark: Object): void; @@ -322,6 +342,7 @@ declare namespace CKEDITOR { setStartAt(node: node, position: number): void; setEndAt(node: node, position: number): void; fixBlock(isStart: boolean, blockTag: Object): Object; + select(): selection; splitBlock(blockTag: Object): Object; splitElement(toSplit: element): element; removeEmptyBlocksAtEnd(atEnd: boolean): void; @@ -815,7 +836,7 @@ declare namespace CKEDITOR { templates_files?: Object; templates_replaceContent?: boolean; title?: string | boolean; - toolbar?: string | (string | string[])[]; + toolbar?: string | (string | string[] | { name: string, items?: string[], groups?: string[] })[] | null; toolbarCanCollapse?: boolean; toolbarGroupCycling?: boolean; toolbarGroups?: (toolbarGroups | string)[]; @@ -847,14 +868,20 @@ declare namespace CKEDITOR { bottom?: string | HTMLElement; } + module skin { + var icons: { [name: string]: { path: string } }; + function addIcon(name: string, path: string, offset?: number, bgsize?: string): void; + } - interface style { - - } - - - interface editable { + class style { + constructor(something: { element: string, attributes: { [att: string]: string } }); + applyToRange(range: Range, editor: editor): void; + } + interface editable extends dom.element { + hasFocus: boolean; + attachListener(obj: event | editable, eventName: string, listenerFunction: (ei: eventInfo) => void, + scopeobj?: {}, listenerData?: any, priority?: number): listenerRegistration; } @@ -951,11 +978,14 @@ declare namespace CKEDITOR { destroy(widget: CKEDITOR.plugins.widget, offline?: boolean): void; destroyAll(offline?: boolean): void; finalizeCreation(container: any): void; + focused: widget; fire(eventName: string, data: Object, editor: editor): any; // should be boolean | Object getByElement(element: any, checkWrapperOnly: boolean): CKEDITOR.plugins.widget; hasListeners(eventName: string): boolean; - initOn(element: any, widgetDef?: CKEDITOR.plugins.widget.definition, startupData?: Object): CKEDITOR.plugins.widget; - initOnAll(container?: any): CKEDITOR.plugins.widget[]; + initOn(element: dom.element, widgetDef?: CKEDITOR.plugins.widget.definition, startupData?: Object): CKEDITOR.plugins.widget; + initOn(element: dom.element, widgetDef?: string, startupData?: Object): CKEDITOR.plugins.widget; + initOnAll(container?: dom.element): CKEDITOR.plugins.widget[]; + instances: { [id: string]: widget }; on(eventName: string, listenerFunction: Function, scopeObj?: Object, listenerData?: Object, priority?: number): any; once(): void; parseElementClasses(classes: string): any; @@ -1040,12 +1070,13 @@ declare namespace CKEDITOR { requires?: string | string[]; afterInit?(editor: editor): any; beforeInit?(editor: editor): any; - init?(editor: editor): any; + init?(editor: editor): void; onLoad?(): any; icons?: string; } - function add(name: string, definition?: IPluginDefinition): void; + function add(name: string, definition: IPluginDefinition): void; + function add(name: string): void; function addExternal(name: string, path: string, fileName: string): void; function get(name: string): any; function getFilePath(name: string): string; @@ -1058,6 +1089,7 @@ declare namespace CKEDITOR { interface IMenuItemDefinition { label:string, command:string, + icon: string group:string, order:number } @@ -1110,6 +1142,7 @@ declare namespace CKEDITOR { createFakeParserElement(realElement: Object, className: Object, realElementType: Object, isResizable: Object): void; createRange(): dom.range; destroy(noUpdate?: boolean): void; + editable(): editable | null; editable(elementOrEditable: dom.element): void; editable(elementOrEditable: editable): void; elementPath(startNode?: dom.node): dom.elementPath; @@ -1267,8 +1300,14 @@ declare namespace CKEDITOR { stop(): void; } + module filter { + interface allowedContentRules { + + } + } class filter { + allow(newRules: CKEDITOR.filter.allowedContentRules, featureName?: string, overrideCustom?: boolean): boolean; } @@ -1309,8 +1348,8 @@ declare namespace CKEDITOR { fire(eventName: string, data?: Object, editor?: editor): any; fireOnce(eventName: string, data?: Object, editor?: editor): any; hasListeners(eventName: string): boolean; - on(eventName: string, listenerFunction: (eventInfo: eventInfo) => void, scopeObj?: Object, listenerData?: Object, priority?: number): void; - once(eventName: string, listenerFunction: (eventInfo: eventInfo) => void, scopeObj?: Object, listenerData?: Object, priority?: number): void; + on(eventName: string, listenerFunction: (eventInfo: eventInfo) => void, scopeObj?: Object | null, listenerData?: Object | null, priority?: number): listenerRegistration; + once(eventName: string, listenerFunction: (eventInfo: eventInfo) => void, scopeObj?: Object | null, listenerData?: Object | null, priority?: number): listenerRegistration; removeAllListeners(): void; removeListener(eventName: string, listenerFunction: (eventInfo: eventInfo) => void): void; static implementOn(targetObject: Object): void; @@ -1768,6 +1807,7 @@ declare namespace CKEDITOR { constructor(value: string); type: number; filter(filter: filter): boolean; + value: string; writeHtml(writer: basicWriter, filter: filter): void; } @@ -1779,6 +1819,7 @@ declare namespace CKEDITOR { children: any[]; type: number; add(node: node): number; + add(node: node, index: number): void; clone(): element; filter(filter: filter): boolean; filterChildren(filter: filter): void; @@ -1803,10 +1844,12 @@ declare namespace CKEDITOR { children: any[]; parent: any; type: number; - fromHtml(fragmentHtml: string, parent?: element, fixingBlock?: string): void; - fromHtml(fragmentHtml: string, parent?: string, fixingBlock?: string): void; - fromHtml(fragmentHtml: string, parent?: element, fixingBlock?: boolean): void; - fromHtml(fragmentHtml: string, parent?: string, fixingBlock?: boolean): void; + static fromHtml(fragmentHtml: string): fragment; + static fromHtml(fragmentHtml: string, parent?: element, fixingBlock?: string): fragment | element; + static fromHtml(fragmentHtml: string, parent: null, fixingBlock?: string): fragment; + static fromHtml(fragmentHtml: string, parent?: string, fixingBlock?: string): fragment | element; + static fromHtml(fragmentHtml: string, parent?: element, fixingBlock?: boolean): fragment | element; + static fromHtml(fragmentHtml: string, parent?: string, fixingBlock?: boolean): fragment | element; add(node: node, index?: number): void; filter(filter: filter): void; filterChildren(filter: filter, filterRoot?: boolean): void; @@ -1847,7 +1890,9 @@ declare namespace CKEDITOR { namespace tools { var callFunction: Function; - function enableHtml5Elements(doc: Object, withAppend? : Boolean) : void; + function enableHtml5Elements(doc: Object, withAppend?: Boolean): void; + function parseCssText(styleText: string, normalize?: Boolean, nativeNormalize?: Boolean): { [key: string]: string } + function writeCssText(style: { [key: string]: string }, sort?: Boolean): string; } diff --git a/types/cleave.js/cleave.js-tests.tsx b/types/cleave.js/cleave.js-tests.tsx index 3bbc6570a3..825b44a2ad 100644 --- a/types/cleave.js/cleave.js-tests.tsx +++ b/types/cleave.js/cleave.js-tests.tsx @@ -3,7 +3,12 @@ import Cleave = require("cleave.js"); import CleaveReact = require("cleave.js/react"); const Example1 = () => { - Cleave("#my-input", { phone: true }); + const cleave = new Cleave("#my-input", { phone: true }); + cleave.setPhoneRegionCode("AT"); + cleave.setRawValue("foo"); + const foo: string = cleave.getFormattedValue(); + const bar: string = cleave.getRawValue(); + cleave.destroy(); }; const ExampleReact1 = (props: any) => { diff --git a/types/cleave.js/index.d.ts b/types/cleave.js/index.d.ts index 17e8c1c512..27fe7d8c41 100644 --- a/types/cleave.js/index.d.ts +++ b/types/cleave.js/index.d.ts @@ -6,5 +6,18 @@ import { CleaveOptions } from './options'; -declare function Cleave(selector: string, options: CleaveOptions): void; +declare class Cleave { + constructor(selector: string, options: CleaveOptions); + + getRawValue(): string; + + setRawValue(value: string): void; + + getFormattedValue(): string; + + destroy(): void; + + setPhoneRegionCode(regionCode: string): void; +} + export = Cleave; diff --git a/types/cli-spinner/cli-spinner-tests.ts b/types/cli-spinner/cli-spinner-tests.ts new file mode 100644 index 0000000000..a574a334fd --- /dev/null +++ b/types/cli-spinner/cli-spinner-tests.ts @@ -0,0 +1,27 @@ +import { Spinner } from 'cli-spinner'; + +let spinner: Spinner = new Spinner(); +spinner.setSpinnerString('|/-\\'); +spinner.start(); + +spinner = new Spinner('processing.. %s'); + +spinner = new Spinner({ + text: 'processing.. %s', + stream: process.stderr, + onTick(msg) { + this.clearLine(this.stream); + this.stream.write(msg); + }, +}); + +spinner = spinner.start(); +spinner = spinner.stop().stop(true).stop(false); +spinner = spinner.clearLine(process.stdout); +spinner = spinner.setSpinnerDelay(100); +spinner = spinner.setSpinnerString('My spinner string'); +spinner = spinner.setSpinnerTitle('My spinner title'); + +const isSpinning: boolean = spinner.isSpinning(); + +const Spinner2: typeof Spinner = Spinner.setDefaultSpinnerDelay(100).setDefaultSpinnerString('Other spinner string'); diff --git a/types/cli-spinner/index.d.ts b/types/cli-spinner/index.d.ts new file mode 100644 index 0000000000..dad05fb8ac --- /dev/null +++ b/types/cli-spinner/index.d.ts @@ -0,0 +1,29 @@ +// Type definitions for cli-spinner 0.2 +// Project: https://github.com/helloIAmPau/node-spinner +// Definitions by: Jay Anslow +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/// + +export interface Options { + text?: string; + stream?: NodeJS.WritableStream; + onTick?(this: Spinner, msg: string): void; +} + +export class Spinner { + static setDefaultSpinnerString(spinnerString: string | number): typeof Spinner; + static setDefaultSpinnerDelay(spinnerDelay: number): typeof Spinner; + + readonly stream: NodeJS.WritableStream; + + constructor(titleOrOptions?: string | Options); + + start(): this; + stop(clear?: boolean): this; + isSpinning(): boolean; + clearLine(stream: NodeJS.WritableStream): this; + setSpinnerString(spinnerString: string | number): this; + setSpinnerTitle(title: string): this; + setSpinnerDelay(spinnerDelay: number): this; +} diff --git a/types/cli-spinner/tsconfig.json b/types/cli-spinner/tsconfig.json new file mode 100644 index 0000000000..61c966becc --- /dev/null +++ b/types/cli-spinner/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "cli-spinner-tests.ts" + ] +} diff --git a/types/expr-eval/tslint.json b/types/cli-spinner/tslint.json similarity index 100% rename from types/expr-eval/tslint.json rename to types/cli-spinner/tslint.json diff --git a/types/clipboard/clipboard-tests.ts b/types/clipboard/clipboard-tests.ts index 361ccddd93..e92bbf30ba 100644 --- a/types/clipboard/clipboard-tests.ts +++ b/types/clipboard/clipboard-tests.ts @@ -1,28 +1,28 @@ -import * as Clipboard from 'clipboard'; +import * as Clipboard from "clipboard"; -const cb1 = new Clipboard('.btn'); -const cb2 = new Clipboard(document.getElementById('id'), { - action: elem => 'copy' +const cb1 = new Clipboard(".btn"); +const cb2 = new Clipboard(document.getElementById("id"), { + action: elem => "copy" }); -const cb3 = new Clipboard(document.querySelectorAll('query'), { +const cb3 = new Clipboard(document.querySelectorAll("query"), { text: elem => null }); -const cb4 = new Clipboard('.btn', { +const cb4 = new Clipboard(".btn", { target: elem => null }); -const cb5 = new Clipboard('.btn', { - action: elem => 'copy', +const cb5 = new Clipboard(".btn", { + action: elem => "copy", target: elem => null }); cb1.destroy(); -cb1.isSupported(); +Clipboard.isSupported(); -cb2.on('success', e => { - console.info('Action:', e.action); - console.info('Text:', e.text); - console.info('Trigger:', e.trigger); +cb2.on("success", e => { + console.info("Action:", e.action); + console.info("Text:", e.text); + console.info("Trigger:", e.trigger); e.clearSelection(); }); -cb2.on('error', e => { }); +cb2.on("error", e => {}); diff --git a/types/clipboard/index.d.ts b/types/clipboard/index.d.ts index 76d28674d6..61b27cbb32 100644 --- a/types/clipboard/index.d.ts +++ b/types/clipboard/index.d.ts @@ -4,7 +4,10 @@ // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped declare class Clipboard { - constructor(selector: (string | Element | NodeListOf), options?: Clipboard.Options); + constructor( + selector: string | Element | NodeListOf, + options?: Clipboard.Options + ); /** * Subscribes to events that indicate the result of a copy/cut operation. @@ -22,7 +25,7 @@ declare class Clipboard { /** * Checks if clipboard.js is supported */ - isSupported(): boolean; + static isSupported(): boolean; } declare namespace Clipboard { diff --git a/types/cmd-shim/cmd-shim-tests.ts b/types/cmd-shim/cmd-shim-tests.ts new file mode 100644 index 0000000000..aa022b087f --- /dev/null +++ b/types/cmd-shim/cmd-shim-tests.ts @@ -0,0 +1,8 @@ +import cmdShim = require('cmd-shim'); + +cmdShim('./whatever/bin.js', './.bin/my-bin', (err) => { + if (err) throw err; +}); +cmdShim.ifExists('./whatever/bin.js', './.bin/my-bin', (err) => { + if (err) throw err; +}); diff --git a/types/cmd-shim/index.d.ts b/types/cmd-shim/index.d.ts new file mode 100644 index 0000000000..2360cd9f9e --- /dev/null +++ b/types/cmd-shim/index.d.ts @@ -0,0 +1,33 @@ +// Type definitions for cmd-shim 2.0 +// Project: https://github.com/ForbesLindesay/cmd-shim +// Definitions by: Andrew Bradley +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped + +/** + * + * Create a cmd shim at `to` for the command line program at `from`. e.g. + * + * var cmdShim = require('cmd-shim'); + * cmdShim(__dirname + '/cli.js', '/usr/bin/command-name', function (err) { + * if (err) throw err; + * }); + */ +// tslint:disable-next-line strict-export-declare-modifiers +declare function cmdShim(from: string, to: string, cb: (err: any) => void): undefined; + +// tslint:disable-next-line strict-export-declare-modifiers +declare namespace cmdShim { + /** + * Create a cmd shim at `to` for the command line program at `from`, but will just + * continue if the file does not exist. + * + * var cmdShim = require('cmd-shim'); + * cmdShim.ifExists(__dirname + '/cli.js', '/usr/bin/command-name', function (err) { + * if (err) throw err; + * }); + */ + function ifExists(from: string, to: string, cb: (err: any) => void): undefined; +} + +// tslint:disable-next-line strict-export-declare-modifiers +export = cmdShim; diff --git a/types/cmd-shim/tsconfig.json b/types/cmd-shim/tsconfig.json new file mode 100644 index 0000000000..753e3b8c58 --- /dev/null +++ b/types/cmd-shim/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "cmd-shim-tests.ts" + ] +} diff --git a/types/koa-jwt/tslint.json b/types/cmd-shim/tslint.json similarity index 100% rename from types/koa-jwt/tslint.json rename to types/cmd-shim/tslint.json diff --git a/types/codemirror/index.d.ts b/types/codemirror/index.d.ts index 4f479b29d0..ef075b9d45 100644 --- a/types/codemirror/index.d.ts +++ b/types/codemirror/index.d.ts @@ -501,14 +501,20 @@ declare namespace CodeMirror { Note that line handles have a text property containing the line's content (as a string). */ eachLine(start: number, end: number, f: (line: CodeMirror.LineHandle) => void ): void; - /** Set the editor content as 'clean', a flag that it will retain until it is edited, and which will be set again when such an edit is undone again. - Useful to track whether the content needs to be saved. */ + /** Set the editor content as 'clean', a flag that it will retain until it is edited, and which will be set again + when such an edit is undone again. Useful to track whether the content needs to be saved. This function is deprecated + in favor of changeGeneration, which allows multiple subsystems to track different notions of cleanness without interfering.*/ markClean(): void; + + /** Returns a number that can later be passed to isClean to test whether any edits were made (and not undone) in the + meantime. If closeEvent is true, the current history event will be ‘closed’, meaning it can't be combined with further + changes (rapid typing or deleting events are typically combined).*/ + changeGeneration(closeEvent?: boolean): number; - /** Returns whether the document is currently clean (not modified since initialization or the last call to markClean). */ - isClean(): boolean; - - + /** Returns whether the document is currently clean — not modified since initialization or the last call to markClean if + no argument is passed, or since the matching call to changeGeneration if a generation value is given. */ + isClean(generation?: number): boolean; + /** Get the currently selected code. */ getSelection(): string; @@ -782,6 +788,9 @@ declare namespace CodeMirror { (it will default to be to the right of all other gutters). These class names are the keys passed to setGutterMarker. */ gutters?: string[]; + /** Provides an option foldGutter, which can be used to create a gutter with markers indicating the blocks that can be folded. */ + foldGutter?: boolean; + /** Determines whether the gutter scrolls along with the content horizontally (false) or whether it stays fixed during horizontal scrolling (true, the default). */ fixedGutter?: boolean; diff --git a/types/color/color-tests.ts b/types/color/color-tests.ts index 4e475a0ce0..ac79ea42e9 100644 --- a/types/color/color-tests.ts +++ b/types/color/color-tests.ts @@ -25,8 +25,8 @@ const yellow: number = color.yellow(); const black: number = color.black(); const luminosity: number = color.luminosity(); const contrast: number = color.contrast(colorOther); -const dark: boolean = color.dark(); -const light: boolean = color.light(); +const isDark: boolean = color.isDark(); +const isLight: boolean = color.isLight(); const level: string = color.level(colorOther); const x: number = color.x(); diff --git a/types/color/index.d.ts b/types/color/index.d.ts index 8290b78129..716b8a9dcf 100644 --- a/types/color/index.d.ts +++ b/types/color/index.d.ts @@ -1,6 +1,6 @@ -// Type definitions for color 2.0 +// Type definitions for color 3.0 // Project: https://github.com/qix-/color#readme -// Definitions by: Junyoung Clare Jang +// Definitions by: Junyoung Clare Jang , James W. Lane // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -72,8 +72,8 @@ interface Color { luminosity(): number; contrast(color2: Color): number; level(color2: Color): 'AAA' | 'AA' | ''; - dark(): boolean; - light(): boolean; + isDark(): boolean; + isLight(): boolean; negate(): Color; lighten(ratio: number): Color; darken(ratio: number): Color; diff --git a/types/color/v2/color-tests.ts b/types/color/v2/color-tests.ts new file mode 100644 index 0000000000..4e475a0ce0 --- /dev/null +++ b/types/color/v2/color-tests.ts @@ -0,0 +1,65 @@ +import Color = require('color'); + +const color: Color = new Color("white"); +const colorOther: Color = new Color("black"); +const colorRGB: Color = new Color({ r: 0, g: 0, b: 0 }, "rgb"); +const colorInt: Color = new Color(0x000000); +const colorWithoutNew: Color = Color(0x000000); +const colorByStaticMethod: Color = Color.rgb({ r: 0, g: 0, b: 0 }); + +const hex: string = color.hex(); +const percent: string = color.percentString(); +const keyword: string = color.keyword(); +const alpha: number = color.alpha(); +const red: number = color.red(); +const green: number = color.green(); +const blue: number = color.blue(); +const hue: number = color.hue(); +const saturationl: number = color.saturationl(); +const lightness: number = color.lightness(); +const saturationv: number = color.saturationv(); +const value: number = color.value(); +const cyan: number = color.cyan(); +const magenta: number = color.magenta(); +const yellow: number = color.yellow(); +const black: number = color.black(); +const luminosity: number = color.luminosity(); +const contrast: number = color.contrast(colorOther); +const dark: boolean = color.dark(); +const light: boolean = color.light(); +const level: string = color.level(colorOther); + +const x: number = color.x(); +const y: number = color.y(); +const z: number = color.z(); +const l: number = color.l(); +const a: number = color.a(); +const b: number = color.b(); +const rgbNumber: number = color.rgbNumber(); + +const chain: Color = color + .alpha(0) + .red(0) + .green(0) + .blue(0) + .hue(0) + .saturationl(0) + .lightness(0) + .saturationv(0) + .value(0) + .cyan(0) + .magenta(0) + .yellow(0) + .black(0) + .negate() + .lighten(0) + .darken(0) + .saturate(0) + .desaturate(0) + .grayscale() + .whiten(0) + .blacken(0) + .opaquer(0) + .rotate(0) + .mix(colorOther, 0) + .hsl(); diff --git a/types/color/v2/index.d.ts b/types/color/v2/index.d.ts new file mode 100644 index 0000000000..8290b78129 --- /dev/null +++ b/types/color/v2/index.d.ts @@ -0,0 +1,135 @@ +// Type definitions for color 2.0 +// Project: https://github.com/qix-/color#readme +// Definitions by: Junyoung Clare Jang +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +import convert = require('color-convert'); + +type ColorParam = Color | string | ArrayLike | number | { [key: string]: any }; + +interface Color { + toString(): string; + toJSON(): Color; + string(places?: number): string; + percentString(places?: number): string; + array(): number[]; + object(): { alpha?: number } & { [key: string]: number }; + unitArray(): number[]; + unitObject(): { r: number, g: number, b: number, alpha?: number }; + round(places?: number): Color; + alpha(): number; + alpha(val: number): Color; + red(): number; + red(val: number): Color; + green(): number; + green(val: number): Color; + blue(): number; + blue(val: number): Color; + hue(): number; + hue(val: number): Color; + saturationl(): number; + saturationl(val: number): Color; + lightness(): number; + lightness(val: number): Color; + saturationv(): number; + saturationv(val: number): Color; + value(): number; + value(val: number): Color; + chroma(): number; + chroma(val: number): Color; + gray(): number; + gray(val: number): Color; + white(): number; + white(val: number): Color; + wblack(): number; + wblack(val: number): Color; + cyan(): number; + cyan(val: number): Color; + magenta(): number; + magenta(val: number): Color; + yellow(): number; + yellow(val: number): Color; + black(): number; + black(val: number): Color; + x(): number; + x(val: number): Color; + y(): number; + y(val: number): Color; + z(): number; + z(val: number): Color; + l(): number; + l(val: number): Color; + a(): number; + a(val: number): Color; + b(): number; + b(val: number): Color; + keyword(): string; + keyword(val: string): Color; + hex(): string; + hex(val: string): Color; + rgbNumber(): number; + luminosity(): number; + contrast(color2: Color): number; + level(color2: Color): 'AAA' | 'AA' | ''; + dark(): boolean; + light(): boolean; + negate(): Color; + lighten(ratio: number): Color; + darken(ratio: number): Color; + saturate(ratio: number): Color; + desaturate(ratio: number): Color; + whiten(ratio: number): Color; + blacken(ratio: number): Color; + grayscale(): Color; + fade(ratio: number): Color; + opaquer(ratio: number): Color; + rotate(degrees: number): Color; + mix(mixinColor: Color, weight?: number): Color; + + rgb(...args: number[]): Color; + hsl(...args: number[]): Color; + hsv(...args: number[]): Color; + hwb(...args: number[]): Color; + cmyk(...args: number[]): Color; + xyz(...args: number[]): Color; + lab(...args: number[]): Color; + lch(...args: number[]): Color; + ansi16(...args: number[]): Color; + ansi256(...args: number[]): Color; + hcg(...args: number[]): Color; + apple(...args: number[]): Color; +} + +interface ColorConstructor { + (obj?: ColorParam, model?: keyof (typeof convert)): Color; + new(obj?: ColorParam, model?: keyof (typeof convert)): Color; + rgb(...val: number[]): Color; + rgb(color: ColorParam): Color; + hsl(...val: number[]): Color; + hsl(color: ColorParam): Color; + hsv(...val: number[]): Color; + hsv(color: ColorParam): Color; + hwb(...val: number[]): Color; + hwb(color: ColorParam): Color; + cmyk(...val: number[]): Color; + cmyk(color: ColorParam): Color; + xyz(...val: number[]): Color; + xyz(color: ColorParam): Color; + lab(...val: number[]): Color; + lab(color: ColorParam): Color; + lch(...val: number[]): Color; + lch(color: ColorParam): Color; + ansi16(...val: number[]): Color; + ansi16(color: ColorParam): Color; + ansi256(...val: number[]): Color; + ansi256(color: ColorParam): Color; + hcg(...val: number[]): Color; + hcg(color: ColorParam): Color; + apple(...val: number[]): Color; + apple(color: ColorParam): Color; +} + +declare const Color: ColorConstructor; + +export = Color; diff --git a/types/svg-pan-zoom/v2/tsconfig.json b/types/color/v2/tsconfig.json similarity index 79% rename from types/svg-pan-zoom/v2/tsconfig.json rename to types/color/v2/tsconfig.json index 67cb4d7679..8216dc0b05 100644 --- a/types/svg-pan-zoom/v2/tsconfig.json +++ b/types/color/v2/tsconfig.json @@ -2,8 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6", - "dom" + "es6" ], "noImplicitAny": true, "noImplicitThis": true, @@ -15,14 +14,15 @@ ], "types": [], "paths": { - "svg-pan-zoom": [ - "svg-pan-zoom/v2" + "color": [ + "color/v2" ] }, "noEmit": true, "forceConsistentCasingInFileNames": true }, "files": [ - "index.d.ts" + "index.d.ts", + "color-tests.ts" ] -} \ No newline at end of file +} diff --git a/types/localforage-cordovasqlitedriver/tslint.json b/types/color/v2/tslint.json similarity index 100% rename from types/localforage-cordovasqlitedriver/tslint.json rename to types/color/v2/tslint.json diff --git a/types/colors/tsconfig.json b/types/colors/tsconfig.json index d935a49e18..99d78ad72d 100644 --- a/types/colors/tsconfig.json +++ b/types/colors/tsconfig.json @@ -2,7 +2,7 @@ "compilerOptions": { "module": "commonjs", "lib": [ - "es6" + "es5" ], "noImplicitAny": true, "noImplicitThis": true, diff --git a/types/compression-webpack-plugin/compression-webpack-plugin-tests.ts b/types/compression-webpack-plugin/compression-webpack-plugin-tests.ts index 3939bf5847..423ca4cea7 100644 --- a/types/compression-webpack-plugin/compression-webpack-plugin-tests.ts +++ b/types/compression-webpack-plugin/compression-webpack-plugin-tests.ts @@ -6,6 +6,7 @@ const c: Configuration = { new CompressionPlugin({ asset: "[path].gz[query]", algorithm: "gzip", + cache: true, test: /\.js$|\.html$/, threshold: 10240, minRatio: 0.8 diff --git a/types/compression-webpack-plugin/index.d.ts b/types/compression-webpack-plugin/index.d.ts index 4f2453e3b1..8fddd72daf 100644 --- a/types/compression-webpack-plugin/index.d.ts +++ b/types/compression-webpack-plugin/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for compression-webpack-plugin 0.3 +// Type definitions for compression-webpack-plugin 0.4 // Project: https://github.com/webpack-contrib/compression-webpack-plugin // Definitions by: Anton Kandybo // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped @@ -15,6 +15,7 @@ declare namespace CompressionPlugin { interface Options { asset?: string; algorithm?: string; + cache?: boolean | string; test?: RegExp | RegExp[]; regExp?: RegExp | RegExp[]; threshold?: number; diff --git a/types/confirmdialog/confirmdialog-tests.ts b/types/confirmdialog/confirmdialog-tests.ts deleted file mode 100644 index cd2ad0e8ca..0000000000 --- a/types/confirmdialog/confirmdialog-tests.ts +++ /dev/null @@ -1,129 +0,0 @@ -class Confirm { - private title_: string; - private conTent_: string; - constructor(title: string, content: string) { - this.title_ = title; - this.conTent_ = content; - } - - confirm() { - $.confirm({ - title: 'Confirm!', - content: 'Simple confirm!', - buttons: { - confirm: () => { - $.alert('Confirmed!'); - }, - cancel: (cancel: string) => { - $.alert('Canceled! ' + cancel); - }, - somethingElse: { - text: 'Something else', - btnClass: 'btn-blue', - keys: ['enter', 'shift'], - action: () => { - alert('Something else?'); - } - } - } - }); - } - - alert() { - $.alert({ - title: 'Alert!', - content: 'Simple alert!', - }); - } - - globalSettings() { - jconfirm.defaults = { - title: 'Hello', - titleClass: '', - type: 'default', - typeAnimated: true, - draggable: true, - dragWindowGap: 15, - dragWindowBorder: true, - animateFromElement: true, - smoothContent: true, - content: 'Are you sure to continue?', - buttons: {}, - defaultButtons: { - ok: { - action: () => { - } - }, - close: { - action: () => { - } - }, - }, - - icon: '', - lazyOpen: false, - bgOpacity: null, - theme: 'light', - animation: 'scale', - closeAnimation: 'scale', - animationSpeed: 400, - animationBounce: 1, - rtl: false, - container: 'body', - containerFluid: false, - backgroundDismiss: false, - backgroundDismissAnimation: 'shake', - autoClose: false, - closeIcon: null, - closeIconClass: false, - watchInterval: 100, - columnClass: 'col-md-4 col-md-offset-4 col-sm-6 col-sm-offset-3 col-xs-10 col-xs-offset-1', - boxWidth: '50%', - scrollToPreviousElement: true, - scrollToPreviousElementAnimate: true, - useBootstrap: true, - offsetTop: 40, - offsetBottom: 40, - bootstrapClasses: { - container: 'container', - containerFluid: 'container-fluid', - row: 'row', - }, - onContentReady: () => {}, - onOpenBefore: () => {}, - onOpen: () => {}, - onClose: () => {}, - onDestroy: () => {}, - onAction: () => {} -}; - } - - api() { - const jc = $.confirm({ - title: 'awesome', - onContentReady: () => { - jc.setTitle(); - } -}); - } - - confirm_84() { - $.confirm({ - closeIcon: true, - buttons: { - buttonA: { - text: 'button a', - action: (buttonA: string) => { - return false; // prevent the modal from closing - } - }, - resetButton: (resetButton: string) => { - } - } -}); - } -} - -let firstName = 'Pierre'; -let lastName = 'Yotti'; -let type = new Confirm(firstName, lastName); diff --git a/types/confirmdialog/index.d.ts b/types/confirmdialog/index.d.ts deleted file mode 100644 index 9b98ab2389..0000000000 --- a/types/confirmdialog/index.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -// Type definitions for confirmdialog 3.3 -// Project: https://github.com/allipierre/Type-definitions-for-jquery-confirm/tree/master/types/confirmDialog-js -// Definitions by: Alli Pierre Yotti -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -/// - - interface JQueryStatic { - /** - * confirm Dialog - * {confirmOptions} pOtions - */ - confirm(pOtions: options.confirmOptions | string, title?: string): any; - - /** - * confirm alert - * {any} pMessage - */ - alert(pMessage?: any, title?: string): any; - - /** - * confirm Dialog - * {any} pMessage - */ - dialog(pOtions: options.confirmOptions | string): any; -} - - interface JQuery { - /** - * confirm Dialog - * {confirmOptions} pOtions - */ - confirm(pOtions: options.confirmOptions | string, title?: string): any; - - /** - * confirm alert - * {any} pMessage - */ - alert(pMessage?: any, title?: string): any; - - /** - * confirm Dialog - * {any} pMessage - */ - dialog(pOtions: options.confirmOptions): any; -} - -interface Window { - setContentAppend: any; -} - -declare namespace options { - interface confirmOptions { - buttons?: any; - title?: string | boolean; - content?: any; - onContentReady?: any; - lazyOpen?: boolean; - closeIcon?: any; - type?: string; - typeAnimated?: boolean; - icon?: string; - closeIconClass?: string; - columnClass?: string; - containerFluid?: boolean; - boxWidth?: string; - useBootstrap?: boolean; - bootstrapClasses?: any; - draggable?: boolean; - dragWindowBorder?: boolean; - dragWindowGap?: number; - contentLoaded?: () => void; - autoClose?: string; - backgroundDismiss?: any; - backgroundDismissAnimation?: string; - escapeKey?: string | boolean; - onOpenBefore?: () => void; - onOpen?: () => void; - onClose?: () => void; - onDestroy?: () => void; - onAction?: () => void; - } - - interface buttonOptionss { - cancel?: () => void; - confirm?: () => void; - } -} - -declare namespace jconfirm { - let defaults: any; -} diff --git a/types/connect-busboy/connect-busboy-tests.ts b/types/connect-busboy/connect-busboy-tests.ts new file mode 100644 index 0000000000..2bbb832070 --- /dev/null +++ b/types/connect-busboy/connect-busboy-tests.ts @@ -0,0 +1,6 @@ +import * as connectBusboy from 'connect-busboy'; + +import * as express from 'express'; + +const options: connectBusboy.ConnectBusboyOptions = { immediate: true }; +const result: express.RequestHandler = connectBusboy(options); diff --git a/types/connect-busboy/index.d.ts b/types/connect-busboy/index.d.ts new file mode 100644 index 0000000000..cb6a3e8702 --- /dev/null +++ b/types/connect-busboy/index.d.ts @@ -0,0 +1,18 @@ +// Type definitions for connect-busboy 0.0 +// Project: https://github.com/mscdex/connect-busboy +// Definitions by: Pinguet62 +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.2 + +import * as busboy from 'busboy'; +import { RequestHandler } from 'express'; + +declare function connectBusboy(options?: connectBusboy.ConnectBusboyOptions): RequestHandler; + +declare namespace connectBusboy { + interface ConnectBusboyOptions extends busboy.BusboyConfig { + immediate?: boolean; + } +} + +export = connectBusboy; diff --git a/types/connect-busboy/tsconfig.json b/types/connect-busboy/tsconfig.json new file mode 100644 index 0000000000..112c160f2b --- /dev/null +++ b/types/connect-busboy/tsconfig.json @@ -0,0 +1,23 @@ +{ + "compilerOptions": { + "module": "commonjs", + "lib": [ + "es6" + ], + "noImplicitAny": true, + "noImplicitThis": true, + "strictNullChecks": true, + "strictFunctionTypes": true, + "baseUrl": "../", + "typeRoots": [ + "../" + ], + "types": [], + "noEmit": true, + "forceConsistentCasingInFileNames": true + }, + "files": [ + "index.d.ts", + "connect-busboy-tests.ts" + ] +} diff --git a/types/node-waves/tslint.json b/types/connect-busboy/tslint.json similarity index 100% rename from types/node-waves/tslint.json rename to types/connect-busboy/tslint.json diff --git a/types/connect-mongo/tsconfig.json b/types/connect-mongo/tsconfig.json index c352be5580..ca12068b57 100644 --- a/types/connect-mongo/tsconfig.json +++ b/types/connect-mongo/tsconfig.json @@ -4,6 +4,11 @@ "lib": [ "es6" ], + "paths": { + "mongodb": [ + "mongodb/v2" + ] + }, "noImplicitAny": true, "noImplicitThis": true, "strictNullChecks": false, diff --git a/types/cordova-plugin-battery-status/cordova-plugin-battery-status-tests.ts b/types/cordova-plugin-battery-status/cordova-plugin-battery-status-tests.ts deleted file mode 100644 index dbad990b8d..0000000000 --- a/types/cordova-plugin-battery-status/cordova-plugin-battery-status-tests.ts +++ /dev/null @@ -1,29 +0,0 @@ -function eventCallBack(ev: BatteryStatusEvent) { - console.log('Battery level is ' + ev.level); -} -window.addEventListener('batterystatus', (ev: BatteryStatusEvent) => { console.log('Battery level is ' + ev.level); }); -window.addEventListener('batterystatus', (ev) => { console.log('Battery level is ' + ev.level); }); -window.addEventListener('batterycritical', (ev) => { console.log('Battery is critical: ' + ev.level); }); -window.addEventListener('batterylow', (ev) => { console.log('Battery is low: ' + ev.level); }); - -window.addEventListener('baterystatus', eventCallBack); -window.addEventListener('batterycritical', eventCallBack); -window.addEventListener('batterylow', eventCallBack); - -window.removeEventListener('batterystatus', eventCallBack); -window.removeEventListener('batterycritical', eventCallBack); -window.removeEventListener('batterylow', eventCallBack); - -window.addEventListener('batterycritical', () => { alert('Battery is critical low!'); }); -window.addEventListener('batterylow', () => { alert('Battery is low!'); }); - -function batteryCriticalCallback() { - alert('Battery is critical low!'); -} - -function batteryLowCallback() { - alert('Battery is critical low!'); -} - -window.addEventListener('batterycritical', batteryCriticalCallback); -window.addEventListener('batterylow', batteryLowCallback); \ No newline at end of file diff --git a/types/cordova-plugin-battery-status/index.d.ts b/types/cordova-plugin-battery-status/index.d.ts deleted file mode 100644 index 0cdf729d30..0000000000 --- a/types/cordova-plugin-battery-status/index.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -// Type definitions for Apache Cordova BatteryStatus plugin -// Project: https://github.com/apache/cordova-plugin-battery-status -// Definitions by: Microsoft Open Technologies Inc -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license. -// TypeScript Version: 2.3 - -interface WindowEventMap { - /** - * batterystatus: event fires when the percentage of battery charge changes by at least 1 percent, or if the device is plugged in or unplugged. - */ - "batterystatus" : BatteryStatusEvent; - /** - * batterycritical: event fires when the percentage of battery charge has reached the critical battery threshold. The value is device-specific. - */ - "batterycritical": BatteryStatusEvent; - /** - * batterylow: event fires when the percentage of battery charge has reached the low battery threshold, device-specific value. - */ - "batterylow": BatteryStatusEvent; -} - -interface Window { - onbatterystatus: (type: BatteryStatusEvent) => void; - onbatterycritical: (type: BatteryStatusEvent) => void; - onbatterylow: (type: BatteryStatusEvent) => void; -} - -/** Object, that passed into battery event listener */ -interface BatteryStatusEvent extends Event { - /* The percentage of battery charge (0-100). */ - level: number; - /* A boolean that indicates whether the device is plugged in. */ - isPlugged: boolean; -} \ No newline at end of file diff --git a/types/cordova-plugin-battery-status/tsconfig.json b/types/cordova-plugin-battery-status/tsconfig.json deleted file mode 100644 index 0149bb419c..0000000000 --- a/types/cordova-plugin-battery-status/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": false, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": false, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "cordova-plugin-battery-status-tests.ts" - ] -} \ No newline at end of file diff --git a/types/cordova-plugin-battery-status/tslint.json b/types/cordova-plugin-battery-status/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/cordova-plugin-battery-status/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/cordova-plugin-camera/cordova-plugin-camera-tests.ts b/types/cordova-plugin-camera/cordova-plugin-camera-tests.ts deleted file mode 100644 index 2f1b661775..0000000000 --- a/types/cordova-plugin-camera/cordova-plugin-camera-tests.ts +++ /dev/null @@ -1,11 +0,0 @@ -navigator.camera.getPicture( - (data: string) => { alert('Got photo!'); }, - (message: string)=> { alert('Failed!: ' + message); }, - { - allowEdit: true, - cameraDirection: Camera.Direction.BACK, - destinationType: Camera.DestinationType.FILE_URI, - encodingType: Camera.EncodingType.JPEG, - sourceType: Camera.PictureSourceType.PHOTOLIBRARY, - quality: 80 - }); diff --git a/types/cordova-plugin-camera/index.d.ts b/types/cordova-plugin-camera/index.d.ts deleted file mode 100644 index 48c8f8ae5c..0000000000 --- a/types/cordova-plugin-camera/index.d.ts +++ /dev/null @@ -1,174 +0,0 @@ -// Type definitions for Apache Cordova Camera plugin -// Project: https://github.com/apache/cordova-plugin-camera -// Definitions by: Microsoft Open Technologies Inc -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license. - -interface Navigator { - /** - * This plugin provides an API for taking pictures and for choosing images from the system's image library. - */ - camera: Camera; -} - -/** - * This plugin provides an API for taking pictures and for choosing images from the system's image library. - */ -interface Camera { - /** - * Removes intermediate photos taken by the camera from temporary storage. - * @param onSuccess Success callback, that called when cleanup succeeds. - * @param onError Error callback, that get an error message. - */ - cleanup( - onSuccess: () => void, - onError: (message: string) => void): void; - /** - * Takes a photo using the camera, or retrieves a photo from the device's image gallery. - * @param cameraSuccess Success callback, that get the image - * as a base64-encoded String, or as the URI for the image file. - * @param cameraError Error callback, that get an error message. - * @param cameraOptions Optional parameters to customize the camera settings. - */ - getPicture( - cameraSuccess: (data: string) => void, - cameraError: (message: string) => void, - cameraOptions?: CameraOptions): void; - // Next will work only on iOS - //getPicture( - // cameraSuccess: (data: string) => void, - // cameraError: (message: string) => void, - // cameraOptions?: CameraOptions): CameraPopoverHandle; -} - -interface CameraOptions { - /** Picture quality in range 0-100. Default is 50 */ - quality?: number; - /** - * Choose the format of the return value. - * Defined in navigator.camera.DestinationType. Default is FILE_URI. - * DATA_URL : 0, Return image as base64-encoded string - * FILE_URI : 1, Return image file URI - * NATIVE_URI : 2 Return image native URI - * (e.g., assets-library:// on iOS or content:// on Android) - */ - destinationType?: number; - /** - * Set the source of the picture. - * Defined in navigator.camera.PictureSourceType. Default is CAMERA. - * PHOTOLIBRARY : 0, - * CAMERA : 1, - * SAVEDPHOTOALBUM : 2 - */ - sourceType?: number; - /** Allow simple editing of image before selection. */ - allowEdit?: boolean; - /** - * Choose the returned image file's encoding. - * Defined in navigator.camera.EncodingType. Default is JPEG - * JPEG : 0 Return JPEG encoded image - * PNG : 1 Return PNG encoded image - */ - encodingType?: number; - /** - * Width in pixels to scale image. Must be used with targetHeight. - * Aspect ratio remains constant. - */ - targetWidth?: number; - /** - * Height in pixels to scale image. Must be used with targetWidth. - * Aspect ratio remains constant. - */ - targetHeight?: number; - /** - * Set the type of media to select from. Only works when PictureSourceType - * is PHOTOLIBRARY or SAVEDPHOTOALBUM. Defined in nagivator.camera.MediaType - * PICTURE: 0 allow selection of still pictures only. DEFAULT. - * Will return format specified via DestinationType - * VIDEO: 1 allow selection of video only, WILL ALWAYS RETURN FILE_URI - * ALLMEDIA : 2 allow selection from all media types - */ - mediaType?: number; - /** Rotate the image to correct for the orientation of the device during capture. */ - correctOrientation?: boolean; - /** Save the image to the photo album on the device after capture. */ - saveToPhotoAlbum?: boolean; - /** - * Choose the camera to use (front- or back-facing). - * Defined in navigator.camera.Direction. Default is BACK. - * FRONT: 0 - * BACK: 1 - */ - cameraDirection?: number; - /** iOS-only options that specify popover location in iPad. Defined in CameraPopoverOptions. */ - popoverOptions?: CameraPopoverOptions; -} - -/** - * A handle to the popover dialog created by navigator.camera.getPicture. Used on iOS only. - */ -interface CameraPopoverHandle { - /** - * Set the position of the popover. - * @param popoverOptions the CameraPopoverOptions that specify the new position. - */ - setPosition(popoverOptions: CameraPopoverOptions): void; -} - -/** - * iOS-only parameters that specify the anchor element location and arrow direction - * of the popover when selecting images from an iPad's library or album. - */ -interface CameraPopoverOptions { - x: number; - y: number; - width: number; - height: number; - /** - * Direction the arrow on the popover should point. Defined in Camera.PopoverArrowDirection - * Matches iOS UIPopoverArrowDirection constants. - * ARROW_UP : 1, - * ARROW_DOWN : 2, - * ARROW_LEFT : 4, - * ARROW_RIGHT : 8, - * ARROW_ANY : 15 - */ - arrowDir : number; -} - -declare var Camera: { - // Camera constants, defined in Camera plugin - DestinationType: { - DATA_URL: number; - FILE_URI: number; - NATIVE_URI: number - } - Direction: { - BACK: number; - FRONT: number; - } - EncodingType: { - JPEG: number; - PNG: number; - } - MediaType: { - PICTURE: number; - VIDEO: number; - ALLMEDIA: number; - } - PictureSourceType: { - PHOTOLIBRARY: number; - CAMERA: number; - SAVEDPHOTOALBUM: number; - } - // Used only on iOS - PopoverArrowDirection: { - ARROW_UP: number; - ARROW_DOWN: number; - ARROW_LEFT: number; - ARROW_RIGHT: number; - ARROW_ANY: number; - } -}; \ No newline at end of file diff --git a/types/cordova-plugin-camera/tsconfig.json b/types/cordova-plugin-camera/tsconfig.json deleted file mode 100644 index 267426a6fa..0000000000 --- a/types/cordova-plugin-camera/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "cordova-plugin-camera-tests.ts" - ] -} \ No newline at end of file diff --git a/types/cordova-plugin-camera/tslint.json b/types/cordova-plugin-camera/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/cordova-plugin-camera/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/cordova-plugin-contacts/cordova-plugin-contacts-tests.ts b/types/cordova-plugin-contacts/cordova-plugin-contacts-tests.ts deleted file mode 100644 index 26243ab43a..0000000000 --- a/types/cordova-plugin-contacts/cordova-plugin-contacts-tests.ts +++ /dev/null @@ -1,16 +0,0 @@ -var contact: Contact = navigator.contacts.create({ - nickname: 'John Smith', - displayName: 'John Smith', - phoneNumbers: [{ pref: true, type: "work", value: "+185642556856" }] -}); - -navigator.contacts.find(["phoneNumbers"], - (contacts: Contact[])=> { alert('Find ' + contacts.length + ' contacts'); }, - (error: ContactError) => { alert('Error: ' + error.message); }, - new ContactFindOptions("+1", true) -); - -navigator.contacts.pickContact( - (contact: Contact)=> { console.log(contact); }, - (err: ContactError)=> { console.log(err.message); } -); diff --git a/types/cordova-plugin-contacts/index.d.ts b/types/cordova-plugin-contacts/index.d.ts deleted file mode 100644 index f0979ba6c2..0000000000 --- a/types/cordova-plugin-contacts/index.d.ts +++ /dev/null @@ -1,337 +0,0 @@ -// Type definitions for Apache Cordova Contacts plugin -// Project: https://github.com/apache/cordova-plugin-contacts -// Definitions by: Microsoft Open Technologies Inc -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies, Inc. -// Licensed under the MIT license. - -interface Navigator { - /** Provides access to the device contacts database. */ - contacts: Contacts; -} - -interface Contacts { - /** - * The navigator.contacts.create method is synchronous, and returns a new Contact object. - * This method does not retain the Contact object in the device contacts database, - * for which you need to invoke the Contact.save method. - * @param properties Object with contact fields - */ - create(properties?: ContactProperties): Contact; - /** - * The navigator.contacts.find method executes asynchronously, querying the device contacts database - * and returning an array of Contact objects. The resulting objects are passed to the onSuccess - * callback function specified by the onSuccess parameter. - * @param fields The fields parameter specifies the fields to be used as a search qualifier, - * and only those results are passed to the onSuccess callback function. A zero-length fields parameter - * is invalid and results in ContactError.INVALID_ARGUMENT_ERROR. A contactFields value of "*" returns all contact fields. - * @param onSuccess Success callback function invoked with the array of Contact objects returned from the database - * @param onError Error callback function, invoked when an error occurs. - * @param options Search options to filter navigator.contacts. - */ - find(fields: string[], - onSuccess: (contacts: Contact[]) => void, - onError?: (error: ContactError) => void, - options?: ContactFindOptions): void; - /** - * The navigator.contacts.pickContact method launches the Contact Picker to select a single contact. - * The resulting object is passed to the contactSuccess callback function specified by the contactSuccess parameter. - * @param onSuccess Success callback function invoked with the array of Contact objects returned from the database - * @param onError Error callback function, invoked when an error occurs. - */ - pickContact(onSuccess: (contact: Contact) => void, - onError: (error: ContactError) => void): void - - /** - * This allows us to use an enumeration when setting the desired fields for the ContactFindOptions. - * The values will correspond to the type of string literals in ContactFieldType. - */ - fieldType: { - addresses: "addresses", - birthday: "birthday", - categories: "categories", - country: "country", - department: "department", - displayName: "displayName", - emails: "emails", - familyName: "familyName", - formatted: "formatted", - givenName: "givenName", - honorificPrefix: "honorificPrefix", - honorificSuffix: "honorificSuffix", - id: "id", - ims: "ims", - locality: "locality", - middleName: "middleName", - name: "name", - nickname: "nickname", - note: "note", - organizations: "organizations", - phoneNumbers: "phoneNumbers", - photos: "photos", - postalCode: "postalCode", - region: "region", - streetAddress: "streetAddress", - title: "title", - urls: "urls" - } -} - -interface ContactProperties { - /** A globally unique identifier. */ - id?: string; - /** The name of this Contact, suitable for display to end users. */ - displayName?: string; - /** An object containing all components of a persons name. */ - name?: ContactName; - /** A casual name by which to address the contact. */ - nickname?: string; - /** An array of all the contact's phone numbers. */ - phoneNumbers?: ContactField[]; - /** An array of all the contact's email addresses. */ - emails?: ContactField[]; - /** An array of all the contact's addresses. */ - addresses?: ContactAddress[]; - /** An array of all the contact's IM addresses. */ - ims?: ContactField[]; - /** An array of all the contact's organizations. */ - organizations?: ContactOrganization[]; - /** The birthday of the contact. */ - birthday?: Date; - /** A note about the contact. */ - note?: string; - /** An array of the contact's photos. */ - photos?: ContactField[]; - /** An array of all the user-defined categories associated with the contact. */ - categories?: ContactField[]; - /** An array of web pages associated with the contact. */ - urls?: ContactField[]; -} - -/** - * The Contact object represents a user's contact. Contacts can be created, stored, or removed - * from the device contacts database. Contacts can also be retrieved (individually or in bulk) - * from the database by invoking the navigator.contacts.find method. - */ -interface Contact extends ContactProperties { - /** - * Returns a new Contact object that is a deep copy of the calling object, with the id property set to null - */ - clone(): Contact; - /** - * Removes the contact from the device contacts database, otherwise executes an error callback with a ContactError object. - * @param onSuccess Success callback function invoked on success operation. - * @param onError Error callback function, invoked when an error occurs. - */ - remove( - onSuccess: () => void, - onError: (error: Error) => void): void; - /** - * Saves a new contact to the device contacts database, or updates an existing contact if a contact with the same id already exists. - * @param onSuccess Success callback function invoked on success operation with che Contact object. - * @param onError Error callback function, invoked when an error occurs. - */ - save( - onSuccess: (contact: Contact) => void, - onError: (error: Error) => void): void; -} - -declare var Contact: { - /** Constructor of Contact object */ - new (id?: string, - displayName?: string, - name?: ContactName, - nickname?: string, - phoneNumbers?: ContactField[], - emails?: ContactField[], - addresses?: ContactAddress[], - ims?: ContactField[], - organizations?: ContactOrganization[], - birthday?: Date, - note?: string, - photos?: ContactField[], - categories?: ContactField, - urls?: ContactField[]): Contact -}; - -/** The ContactError object is returned to the user through the contactError callback function when an error occurs. */ -interface ContactError { - /** Error code */ - code: number; - /** Error message */ - message: string; -} - -declare var ContactError: { - new (code: number): ContactError; - UNKNOWN_ERROR: number; - INVALID_ARGUMENT_ERROR: number; - TIMEOUT_ERROR: number; - PENDING_OPERATION_ERROR: number; - IO_ERROR: number; - NOT_SUPPORTED_ERROR: number; - PERMISSION_DENIED_ERROR: number -}; - -/** Contains different kinds of information about a Contact object's name. */ -interface ContactName { - /** The complete name of the contact. */ - formatted?: string; - /** The contact's family name. */ - familyName?: string; - /** The contact's given name. */ - givenName?: string; - /** The contact's middle name. */ - middleName?: string; - /** The contact's prefix (example Mr. or Dr.) */ - honorificPrefix?: string; - /** The contact's suffix (example Esq.). */ - honorificSuffix?: string; -} - -declare var ContactName: { - /** Constructor for ContactName object */ - new (formatted?: string, - familyName?: string, - givenName?: string, - middleName?: string, - honorificPrefix?: string, - honorificSuffix?: string): ContactName -}; - -/** - * The ContactField object is a reusable component that represents contact fields generically. - * Each ContactField object contains a value, type, and pref property. A Contact object stores - * several properties in ContactField[] arrays, such as phone numbers and email addresses. - * - * In most instances, there are no pre-determined values for a ContactField object's type attribute. - * For example, a phone number can specify type values of home, work, mobile, iPhone, - * or any other value that is supported by a particular device platform's contact database. - * However, for the Contact photos field, the type field indicates the format of the returned image: - * url when the value attribute contains a URL to the photo image, or base64 when the value - * contains a base64-encoded image string. - */ -interface ContactField { - /** A string that indicates what type of field this is, home for example. */ - type: string; - /** The value of the field, such as a phone number or email address. */ - value: string; - /** Set to true if this ContactField contains the user's preferred value. */ - pref: boolean; -} - -declare var ContactField: { - /** Constructor for ContactField object */ - new (type?: string, - value?: string, - pref?: boolean): ContactField -}; - -/** - * The ContactAddress object stores the properties of a single address of a contact. - * A Contact object may include more than one address in a ContactAddress[] array. - */ -interface ContactAddress { - /** Set to true if this ContactAddress contains the user's preferred value. */ - pref?: boolean; - /** A string indicating what type of field this is, home for example. */ - type?: string; - /** The full address formatted for display. */ - formatted?: string; - /** The full street address. */ - streetAddress?: string; - /** The city or locality. */ - locality?: string; - /** The state or region. */ - region?: string; - /** The zip code or postal code. */ - postalCode?: string; - /** The country name. */ - country?: string; -} - -declare var ContactAddress: { - /** Constructor of ContactAddress object */ - new (pref?: boolean, - type?: string, - formatted?: string, - streetAddress?: string, - locality?: string, - region?: string, - postalCode?: string, - country?: string): ContactAddress -}; - -/** - * The ContactOrganization object stores a contact's organization properties. A Contact object stores - * one or more ContactOrganization objects in an array. - */ -interface ContactOrganization { - /** Set to true if this ContactOrganization contains the user's preferred value. */ - pref?: boolean; - /** A string that indicates what type of field this is, home for example. */ - type?: string; - /** The name of the organization. */ - name?: string; - /** The department the contract works for. */ - department?: string; - /** The contact's title at the organization. */ - title?: string; -} - -declare var ContactOrganization: { - /** Constructor for ContactOrganization object */ - new (pref?: boolean, - type?: string, - name?: string, - department?: string, - title?: string): ContactOrganization -}; - -/** Search options to filter navigator.contacts. */ -interface ContactFindOptions { - /** The search string used to find navigator.contacts. */ - filter?: string; - /** Determines if the find operation returns multiple navigator.contacts. */ - multiple?: boolean; - /* Contact fields to be returned back. If specified, the resulting Contact object only features values for these fields. */ - desiredFields?: ContactFieldType[]; -} - -/** these are the string values that are valid for the desired fields in ContactFindOptions */ -declare type ContactFieldType = - "addresses" - | "birthday" - | "categories" - | "country" - | "department" - | "displayName" - | "emails" - | "familyName" - | "formatted" - | "givenName" - | "honorificPrefix" - | "honorificSuffix" - | "id" - | "ims" - | "locality" - | "middleName" - | "name" - | "nickname" - | "note" - | "organizations" - | "phoneNumbers" - | "photos" - | "postalCode" - | "region" - | "streetAddress" - | "title" - | "urls"; - -declare var ContactFindOptions: { - /** Constructor for ContactFindOptions object */ - new (filter?: string, - multiple?: boolean, - desiredFields?: ContactFieldType[]): ContactFindOptions -}; diff --git a/types/cordova-plugin-contacts/tsconfig.json b/types/cordova-plugin-contacts/tsconfig.json deleted file mode 100644 index 6217f6ac02..0000000000 --- a/types/cordova-plugin-contacts/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": false, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "cordova-plugin-contacts-tests.ts" - ] -} \ No newline at end of file diff --git a/types/cordova-plugin-contacts/tslint.json b/types/cordova-plugin-contacts/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/cordova-plugin-contacts/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/cordova-plugin-device-motion/cordova-plugin-device-motion-tests.ts b/types/cordova-plugin-device-motion/cordova-plugin-device-motion-tests.ts deleted file mode 100644 index 1b335beaf7..0000000000 --- a/types/cordova-plugin-device-motion/cordova-plugin-device-motion-tests.ts +++ /dev/null @@ -1,10 +0,0 @@ -navigator.accelerometer.getCurrentAcceleration( - (acc: Acceleration) => { console.log('X: ' + acc.x + 'Y: ' + acc.y + 'Z: ' + acc.z); }, - () => { alert('Error!'); }); - -var acchandle: WatchHandle = navigator.accelerometer.watchAcceleration( - (acc: Acceleration)=> { console.log('X: ' + acc.x + 'Y: ' + acc.y + 'Z: ' + acc.z); }, - () => { alert('Error!'); }, - { frequency: 10 }); - -navigator.accelerometer.clearWatch(acchandle); diff --git a/types/cordova-plugin-device-motion/index.d.ts b/types/cordova-plugin-device-motion/index.d.ts deleted file mode 100644 index ae38803fd2..0000000000 --- a/types/cordova-plugin-device-motion/index.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -// Type definitions for Apache Cordova Device Motion plugin -// Project: https://github.com/apache/cordova-plugin-device-motion -// Definitions by: Microsoft Open Technologies Inc -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license. - -interface Navigator { - /** - * This plugin provides access to the device's accelerometer. The accelerometer is a motion sensor - * that detects the change (delta) in movement relative to the current device orientation, - * in three dimensions along the x, y, and z axis. - */ - accelerometer: Accelerometer; -} - -/** - * This plugin provides access to the device's accelerometer. The accelerometer is a motion sensor - * that detects the change (delta) in movement relative to the current device orientation, - * in three dimensions along the x, y, and z axis. - */ -interface Accelerometer { - /** - * Stop watching the Acceleration referenced by the watchID parameter. - * @param watchID The ID returned by navigator.accelerometer.watchAcceleration. - */ - clearWatch(watchID: WatchHandle): void; - /** - * Get the current acceleration along the x, y, and z axes. - * These acceleration values are returned to the accelerometerSuccess callback function. - * @param accelerometerSuccess Success callback that gets the Acceleration object. - * @param accelerometerError Success callback - */ - getCurrentAcceleration( - accelerometerSuccess: (acceleration: Acceleration) => void, - accelerometerError: () => void): void; - /** - * Retrieves the device's current Acceleration at a regular interval, executing the - * accelerometerSuccess callback function each time. Specify the interval in milliseconds - * via the acceleratorOptions object's frequency parameter. - * The returned watch ID references the accelerometer's watch interval, and can be used - * with navigator.accelerometer.clearWatch to stop watching the accelerometer. - * @param accelerometerSuccess Callback, that called at every time interval and passes an Acceleration object. - * @param accelerometerError Error callback. - * @param accelerometerOptions Object with options for watchAcceleration - */ - watchAcceleration( - accelerometerSuccess: (acceleration: Acceleration) => void, - accelerometerError: () => void, - accelerometerOptions?: AccelerometerOptions): WatchHandle; -} - -/** - * Contains Accelerometer data captured at a specific point in time. Acceleration values include - * the effect of gravity (9.81 m/s^2), so that when a device lies flat and facing up, x, y, and z - * values returned should be 0, 0, and 9.81. - */ -interface Acceleration { - /** Amount of acceleration on the x-axis. (in m/s^2) */ - x: number; - /** Amount of acceleration on the y-axis. (in m/s^2) */ - y: number; - /** Amount of acceleration on the z-axis. (in m/s^2) */ - z: number; - /** Creation timestamp in milliseconds. */ - timestamp: number; -} - -/** Object with options for watchAcceleration */ -interface AccelerometerOptions { - /** How often to retrieve the Acceleration in milliseconds. (Default: 10000) */ - frequency?: number; -} - -/** Abstract type for watch IDs used by Accelerometer. Values of these type are actually `number` at runtime.*/ -interface WatchHandle { } \ No newline at end of file diff --git a/types/cordova-plugin-device-motion/tsconfig.json b/types/cordova-plugin-device-motion/tsconfig.json deleted file mode 100644 index ac897b5d8b..0000000000 --- a/types/cordova-plugin-device-motion/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": false, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "cordova-plugin-device-motion-tests.ts" - ] -} \ No newline at end of file diff --git a/types/cordova-plugin-device-motion/tslint.json b/types/cordova-plugin-device-motion/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/cordova-plugin-device-motion/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/cordova-plugin-device-orientation/cordova-plugin-device-orientation-tests.ts b/types/cordova-plugin-device-orientation/cordova-plugin-device-orientation-tests.ts deleted file mode 100644 index ab025d5fbf..0000000000 --- a/types/cordova-plugin-device-orientation/cordova-plugin-device-orientation-tests.ts +++ /dev/null @@ -1,11 +0,0 @@ -navigator.compass.getCurrentHeading( - (heading: CompassHeading)=> { console.log('Got heading to ' + heading.magneticHeading); }, - (error: CompassError)=> { alert('Error! ' + error.code); }, - { frequency: 10 }); - -var accelhandle = navigator.compass.watchHeading( - (heading: CompassHeading) => { console.log('Got heading to ' + heading.magneticHeading); }, - (error: CompassError) => { alert('Error! ' + error.code); }, - { frequency: 10 }); - -navigator.compass.clearWatch(accelhandle); diff --git a/types/cordova-plugin-device-orientation/index.d.ts b/types/cordova-plugin-device-orientation/index.d.ts deleted file mode 100644 index dcd9654efa..0000000000 --- a/types/cordova-plugin-device-orientation/index.d.ts +++ /dev/null @@ -1,86 +0,0 @@ -// Type definitions for Apache Cordova Device Orientation plugin -// Project: https://github.com/apache/cordova-plugin-device-orientation -// Definitions by: Microsoft Open Technologies Inc -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license. - -interface Navigator { - /** - * This plugin provides access to the device's compass. The compass is a sensor that detects - * the direction or heading that the device is pointed, typically from the top of the device. - * It measures the heading in degrees from 0 to 359.99, where 0 is north. - */ - compass: Compass; -} - -/** - * This plugin provides access to the device's compass. The compass is a sensor that detects - * the direction or heading that the device is pointed, typically from the top of the device. - * It measures the heading in degrees from 0 to 359.99, where 0 is north. - */ -interface Compass { - /** - * Get the current compass heading. The compass heading is returned via a CompassHeading - * object using the onSuccess callback function. - * @param onSuccess Success callback that passes CompassHeading object. - * @param onError Error callback that passes CompassError object. - */ - getCurrentHeading( - onSuccess: (heading: CompassHeading) => void, - onError: (error: CompassError) => void, - options?: CompassOptions): void; - /** - * Gets the device's current heading at a regular interval. Each time the heading is retrieved, - * the headingSuccess callback function is executed. The returned watch ID references the compass - * watch interval. The watch ID can be used with navigator.compass.clearWatch to stop watching - * the navigator.compass. - * @param onSuccess Success callback that passes CompassHeading object. - * @param onError Error callback that passes CompassError object. - * @param options CompassOptions object - */ - watchHeading( - onSuccess: (heading: CompassHeading) => void, - onError: (error: CompassError) => void, - options?: CompassOptions): number; - /** - * Stop watching the compass referenced by the watch ID parameter. - * @param id The ID returned by navigator.compass.watchHeading. - */ - clearWatch(id: number): void; -} - -/** A CompassHeading object is returned to the compassSuccess callback function. */ -interface CompassHeading { - /** The heading in degrees from 0-359.99 at a single moment in time. */ - magneticHeading: number; - /** The heading relative to the geographic North Pole in degrees 0-359.99 at a single moment in time. A negative value indicates that the true heading can't be determined. */ - trueHeading: number; - /** The deviation in degrees between the reported heading and the true heading. */ - headingAccuracy: number; - /** The time at which this heading was determined. */ - timestamp: number; -} - -interface CompassOptions { - filter?: number; - frequency?: number; -} - -/** A CompassError object is returned to the onError callback function when an error occurs. */ -interface CompassError { - /** - * One of the predefined error codes - * CompassError.COMPASS_INTERNAL_ERR - * CompassError.COMPASS_NOT_SUPPORTED - */ - code: number; -} - -declare var CompassError: { - /** Constructor for CompassError object */ - new(code: number): CompassError; - COMPASS_INTERNAL_ERR: number; - COMPASS_NOT_SUPPORTED: number -} \ No newline at end of file diff --git a/types/cordova-plugin-device-orientation/tslint.json b/types/cordova-plugin-device-orientation/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/cordova-plugin-device-orientation/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/cordova-plugin-device/cordova-plugin-device-tests.ts b/types/cordova-plugin-device/cordova-plugin-device-tests.ts deleted file mode 100644 index cb894785c2..0000000000 --- a/types/cordova-plugin-device/cordova-plugin-device-tests.ts +++ /dev/null @@ -1 +0,0 @@ -console.log(JSON.stringify(device)); \ No newline at end of file diff --git a/types/cordova-plugin-device/index.d.ts b/types/cordova-plugin-device/index.d.ts deleted file mode 100644 index 0451afb4de..0000000000 --- a/types/cordova-plugin-device/index.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -// Type definitions for Apache Cordova Device plugin -// Project: https://github.com/apache/cordova-plugin-device -// Definitions by: Microsoft Open Technologies Inc -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license - -/** - * This plugin defines a global device object, which describes the device's hardware and software. - * Although the object is in the global scope, it is not available until after the deviceready event. - */ -interface Device { - /** Get the version of Cordova running on the device. */ - cordova: string; - /** Indicates that Cordova initialize successfully. */ - available: boolean; - /** - * The device.model returns the name of the device's model or product. The value is set - * by the device manufacturer and may be different across versions of the same product. - */ - model: string; - /** Get the device's operating system name. */ - platform: string; - /** Get the device's Universally Unique Identifier (UUID). */ - uuid: string; - /** Get the operating system version. */ - version: string; - /** Get the device's manufacturer. */ - manufacturer: string; - /** Whether the device is running on a simulator. */ - isVirtual: boolean; - /** Get the device hardware serial number. */ - serial: string; -} - -interface Window { - device: Device; -} - -declare var device: Device; diff --git a/types/cordova-plugin-device/tslint.json b/types/cordova-plugin-device/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/cordova-plugin-device/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/cordova-plugin-dialogs/cordova-plugin-dialogs-tests.ts b/types/cordova-plugin-dialogs/cordova-plugin-dialogs-tests.ts deleted file mode 100644 index 498d7d1000..0000000000 --- a/types/cordova-plugin-dialogs/cordova-plugin-dialogs-tests.ts +++ /dev/null @@ -1,2 +0,0 @@ -navigator.notification.alert('Alert!', () => { alert('You\'re alerted'); }, 'Alert', 'Ok'); -navigator.notification.confirm('Are you ok?', (choice: number) => { alert('Your choice is ' + choice); }); diff --git a/types/cordova-plugin-dialogs/index.d.ts b/types/cordova-plugin-dialogs/index.d.ts deleted file mode 100644 index 8a4035bf01..0000000000 --- a/types/cordova-plugin-dialogs/index.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -// Type definitions for Apache Cordova Dialogs plugin -// Project: https://github.com/apache/cordova-plugin-dialogs -// Definitions by: Microsoft Open Technologies Inc -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license. - -interface Navigator { - /** This plugin provides access to some native dialog UI elements. */ - notification: Notification -} - -/** This plugin provides access to some native dialog UI elements. */ -interface Notification { - /** - * Shows a custom alert or dialog box. Most Cordova implementations use a native dialog box for this feature, - * but some platforms use the browser's alert function, which is typically less customizable. - * @param message Dialog message. - * @param alertCallback Callback to invoke when alert dialog is dismissed. - * @param title Dialog title, defaults to 'Alert'. - * @param buttonName Button name, defaults to OK. - */ - alert(message: string, - alertCallback: () => void, - title?: string, - buttonName?: string): void; - /** - * The device plays a beep sound. - * @param times The number of times to repeat the beep. - */ - beep(times: number): void; - /** - * Displays a customizable confirmation dialog box. - * @param message Dialog message. - * @param confirmCallback Callback to invoke with index of button pressed (1, 2, or 3) - * or when the dialog is dismissed without a button press (0). - * @param title Dialog title, defaults to Confirm. - * @param buttonLabels Array of strings specifying button labels, defaults to [OK,Cancel]. - */ - confirm(message: string, - confirmCallback: (choice: number) => void, - title?: string, - buttonLabels?: string[]): void; - /** - * Displays a native dialog box that is more customizable than the browser's prompt function. - * @param message Dialog message. - * @param promptCallback Callback to invoke when a button is pressed. - * @param title Dialog title, defaults to "Prompt". - * @param buttonLabels Array of strings specifying button labels, defaults to ["OK","Cancel"]. - * @param defaultText Default textbox input value, default: "". - */ - prompt(message: string, - promptCallback: (result: NotificationPromptResult) => void, - title?: string, - buttonLabels?: string[], - defaultText?: string): void; -} - -/** Object, passed to promptCallback */ -interface NotificationPromptResult { - /** - * The index of the pressed button. Note that the index uses one-based indexing, so the value is 1, 2, 3, etc. - * 0 is the result when the dialog is dismissed without a button press. - */ - buttonIndex: number; - /** The text entered in the prompt dialog box. */ - input1: string; -} \ No newline at end of file diff --git a/types/cordova-plugin-dialogs/tsconfig.json b/types/cordova-plugin-dialogs/tsconfig.json deleted file mode 100644 index 0f12ab4850..0000000000 --- a/types/cordova-plugin-dialogs/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": false, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "cordova-plugin-dialogs-tests.ts" - ] -} \ No newline at end of file diff --git a/types/cordova-plugin-dialogs/tslint.json b/types/cordova-plugin-dialogs/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/cordova-plugin-dialogs/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/cordova-plugin-file-transfer/cordova-plugin-file-transfer-tests.ts b/types/cordova-plugin-file-transfer/cordova-plugin-file-transfer-tests.ts deleted file mode 100644 index eec24db2e0..0000000000 --- a/types/cordova-plugin-file-transfer/cordova-plugin-file-transfer-tests.ts +++ /dev/null @@ -1,37 +0,0 @@ -var file = new FileTransfer(); - -file.onprogress = (ev: ProgressEvent) => { - if (ev.lengthComputable) { - console.log(ev.loaded + '/' + ev.total); - } -}; - -file.download('http://some.server.com/download.php', - 'cdvfile://localhost/persistent/path/to/downloads/', - (file: FileEntry)=> { console.log('File Downloaded to ' + file.fullPath); }, - (err: FileTransferError) => { - console.error('Error ' + err.code); - if (err.exception) { - console.error('Failed with exception ' + err.exception); - } - }, - true, - { - headers: { - "Authorization": "Basic dGVzdHVzZXJuYW1lOnRlc3RwYXNzd29yZA==" - } - }); - -file.upload('cdvfile://localhost/persistent/path/to/downloads/', - 'http://some.server.com/download.php', - (result: FileUploadResult)=> { console.log('File uploaded. Bytes uploaded: ' + result.bytesSent); }, - (err: FileTransferError) => { - console.error('Error ' + err.code); - if (err.exception) { - console.error('Failed with exception ' + err.exception); - } - }, - { headers: {"X-Email": "user@mail.com", 'X-Token': "asdf3w234"}, httpMethod: "PUT" }, - true); - -file.abort(); diff --git a/types/cordova-plugin-file-transfer/index.d.ts b/types/cordova-plugin-file-transfer/index.d.ts deleted file mode 100644 index ad8d9945f5..0000000000 --- a/types/cordova-plugin-file-transfer/index.d.ts +++ /dev/null @@ -1,136 +0,0 @@ -// Type definitions for Apache Cordova FileTransfer plugin -// Project: https://github.com/apache/cordova-plugin-file-transfer -// Definitions by: Microsoft Open Technologies Inc. -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies Inc -// Licensed under the MIT license - -/// - -/** - * The FileTransfer object provides a way to upload files using an HTTP multi-part POST request, - * and to download files as well. - */ -interface FileTransfer { - /** Called with a ProgressEvent whenever a new chunk of data is transferred. */ - onprogress: (event: ProgressEvent) => void; - /** - * Sends a file to a server. - * @param fileURL Filesystem URL representing the file on the device. For backwards compatibility, - * this can also be the full path of the file on the device. - * @param server URL of the server to receive the file, as encoded by encodeURI(). - * @param successCallback A callback that is passed a FileUploadResult object. - * @param errorCallback A callback that executes if an error occurs retrieving the FileUploadResult. - * Invoked with a FileTransferError object. - * @param options Optional parameters. - * @param trustAllHosts Optional parameter, defaults to false. If set to true, it accepts all security certificates. - * This is useful since Android rejects self-signed security certificates. - * Not recommended for production use. Supported on Android and iOS. - */ - upload( - fileURL: string, - server: string, - successCallback: (result: FileUploadResult) => void, - errorCallback: (error: FileTransferError) => void, - options?: FileUploadOptions, - trustAllHosts?: boolean): void; - /** - * downloads a file from server. - * @param source URL of the server to download the file, as encoded by encodeURI(). - * @param target Filesystem url representing the file on the device. For backwards compatibility, - * this can also be the full path of the file on the device. - * @param successCallback A callback that is passed a FileEntry object. (Function) - * @param errorCallback A callback that executes if an error occurs when retrieving the fileEntry. - * Invoked with a FileTransferError object. - * @param options Optional parameters. - * @param trustAllHosts Optional parameter, defaults to false. If set to true, it accepts all security certificates. - * This is useful since Android rejects self-signed security certificates. - * Not recommended for production use. Supported on Android and iOS. - */ - download( - source: string, - target: string, - successCallback: (fileEntry: FileEntry) => void, - errorCallback: (error: FileTransferError) => void, - trustAllHosts?: boolean, - options?: FileDownloadOptions): void; - /** - * Aborts an in-progress transfer. The onerror callback is passed a FileTransferError object - * which has an error code of FileTransferError.ABORT_ERR. - */ - abort(): void; -} - -declare var FileTransfer: { - new (): FileTransfer; -}; - -/** A FileUploadResult object is passed to the success callback of the FileTransfer object's upload() method. */ -interface FileUploadResult { - /** The number of bytes sent to the server as part of the upload. */ - bytesSent: number; - /** The HTTP response code returned by the server. */ - responseCode: number; - /** The HTTP response returned by the server. */ - response: string; - /** The HTTP response headers by the server. Currently supported on iOS only.*/ - headers: any; -} - -/** Optional parameters for upload method. */ -interface FileUploadOptions { - /** The name of the form element. Defaults to file. */ - fileKey?: string; - /** The file name to use when saving the file on the server. Defaults to image.jpg. */ - fileName?: string; - /** The HTTP method to use - either `PUT` or `POST`. Defaults to `POST`. */ - httpMethod?: string; - /** The mime type of the data to upload. Defaults to image/jpeg. */ - mimeType?: string; - /** A set of optional key/value pairs to pass in the HTTP request. */ - params?: Object; - /** Whether to upload the data in chunked streaming mode. Defaults to true. */ - chunkedMode?: boolean; - /** A map of header name/header values. Use an array to specify more than one value. */ - headers?: Object; -} - -/** Optional parameters for download method. */ -interface FileDownloadOptions { - /** A map of header name/header values. */ - headers?: {}; -} - -/** A FileTransferError object is passed to an error callback when an error occurs. */ -interface FileTransferError { - /** - * One of the predefined error codes listed below. - * FileTransferError.FILE_NOT_FOUND_ERR - * FileTransferError.INVALID_URL_ERR - * FileTransferError.CONNECTION_ERR - * FileTransferError.ABORT_ERR - * FileTransferError.NOT_MODIFIED_ERR - */ - code: number; - /** URL to the source. */ - source: string; - /** URL to the target. */ - target: string; - /** HTTP status code. This attribute is only available when a response code is received from the HTTP connection. */ - http_status: number; - /* Response body. This attribute is only available when a response is received from the HTTP connection. */ - body: string; - /* Exception that is thrown by native code */ - exception: any; -} - -declare var FileTransferError: { - /** Constructor for FileTransferError object */ - new (code?: number, source?: string, target?: string, status?: number, body?: any, exception?: any): FileTransferError; - FILE_NOT_FOUND_ERR: number; - INVALID_URL_ERR: number; - CONNECTION_ERR: number; - ABORT_ERR: number; - NOT_MODIFIED_ERR: number; -} \ No newline at end of file diff --git a/types/cordova-plugin-file-transfer/tsconfig.json b/types/cordova-plugin-file-transfer/tsconfig.json deleted file mode 100644 index eaa8a05e18..0000000000 --- a/types/cordova-plugin-file-transfer/tsconfig.json +++ /dev/null @@ -1,24 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6", - "dom" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": false, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "cordova-plugin-file-transfer-tests.ts" - ] -} \ No newline at end of file diff --git a/types/cordova-plugin-file-transfer/tslint.json b/types/cordova-plugin-file-transfer/tslint.json deleted file mode 100644 index a41bf5d19a..0000000000 --- a/types/cordova-plugin-file-transfer/tslint.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "adjacent-overload-signatures": false, - "array-type": false, - "arrow-return-shorthand": false, - "ban-types": false, - "callable-types": false, - "comment-format": false, - "dt-header": false, - "eofline": false, - "export-just-namespace": false, - "import-spacing": false, - "interface-name": false, - "interface-over-type-literal": false, - "jsdoc-format": false, - "max-line-length": false, - "member-access": false, - "new-parens": false, - "no-any-union": false, - "no-boolean-literal-compare": false, - "no-conditional-assignment": false, - "no-consecutive-blank-lines": false, - "no-construct": false, - "no-declare-current-package": false, - "no-duplicate-imports": false, - "no-duplicate-variable": false, - "no-empty-interface": false, - "no-for-in-array": false, - "no-inferrable-types": false, - "no-internal-module": false, - "no-irregular-whitespace": false, - "no-mergeable-namespace": false, - "no-misused-new": false, - "no-namespace": false, - "no-object-literal-type-assertion": false, - "no-padding": false, - "no-redundant-jsdoc": false, - "no-redundant-jsdoc-2": false, - "no-redundant-undefined": false, - "no-reference-import": false, - "no-relative-import-in-test": false, - "no-self-import": false, - "no-single-declare-module": false, - "no-string-throw": false, - "no-unnecessary-callback-wrapper": false, - "no-unnecessary-class": false, - "no-unnecessary-generics": false, - "no-unnecessary-qualifier": false, - "no-unnecessary-type-assertion": false, - "no-useless-files": false, - "no-var-keyword": false, - "no-var-requires": false, - "no-void-expression": false, - "no-trailing-whitespace": false, - "object-literal-key-quotes": false, - "object-literal-shorthand": false, - "one-line": false, - "one-variable-per-declaration": false, - "only-arrow-functions": false, - "prefer-conditional-expression": false, - "prefer-const": false, - "prefer-declare-function": false, - "prefer-for-of": false, - "prefer-method-signature": false, - "prefer-template": false, - "radix": false, - "semicolon": false, - "space-before-function-paren": false, - "space-within-parens": false, - "strict-export-declare-modifiers": false, - "trim-file": false, - "triple-equals": false, - "typedef-whitespace": false, - "unified-signatures": false, - "void-return": false, - "whitespace": false - } -} diff --git a/types/cordova-plugin-file/cordova-plugin-file-tests.ts b/types/cordova-plugin-file/cordova-plugin-file-tests.ts deleted file mode 100644 index 37538434e3..0000000000 --- a/types/cordova-plugin-file/cordova-plugin-file-tests.ts +++ /dev/null @@ -1,46 +0,0 @@ -/// - -function fsaccessor(fs: FileSystem) { - console.log('FS root is: ' + fs.root.name); - var fsreader: DirectoryReader = fs.root.createReader(); - fsreader.readEntries( - (entries: Entry[]) => { console.log(fs.root.name + ' has ' + entries.length + ' child elements'); }, - (err: FileError)=> { alert('Error: ' + err.code); }); -} - -window.requestFileSystem( - LocalFileSystem.TEMPORARY, - 1024 * 1024 * 5, - fsaccessor, - (err: FileError) => { alert('Error: ' + err.code); } -); - -window.requestFileSystem( - LocalFileSystem.PERSISTENT, - 1024 * 1024 * 5, - fsaccessor, - (err: FileError) => { alert('Error: ' + err.code); } -); - -window.resolveLocalFileSystemURI(cordova.file.applicationDirectory, - (entry: Entry)=> { - if (entry.isDirectory) { - console.log('successfully resolved ' + entry.fullPath + 'directory'); - console.log(entry.toURL()); - console.log(entry.toInternalURL()); - } else { - var fentry = entry; - fentry.file((f: File) => { console.log(f.slice(f.size - 10, f.size)); }); - fentry.createWriter((writer: FileWriter)=> { - if (writer.readyState == FileWriter.INIT) { - console.log('Init FileWriter'); - writer.write(new Blob(['sdfdsfsdf'])); - writer.onprogress = function(ev: ProgressEvent) { - console.log('Writing ' + ev.target); - }; - } - }); - } - }, - (error: FileError) => { console.log(error.code); } -); \ No newline at end of file diff --git a/types/cordova-plugin-file/index.d.ts b/types/cordova-plugin-file/index.d.ts deleted file mode 100644 index 6aadbf6fad..0000000000 --- a/types/cordova-plugin-file/index.d.ts +++ /dev/null @@ -1,378 +0,0 @@ -// Type definitions for Apache Cordova File System plugin -// Project: https://github.com/apache/cordova-plugin-file -// Definitions by: Microsoft Open Technologies Inc -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// -// Copyright (c) Microsoft Open Technologies, Inc. -// Licensed under the MIT license. - -interface Window { - /** - * Requests a filesystem in which to store application data. - * @param type Whether the filesystem requested should be persistent, as defined above. Use one of TEMPORARY or PERSISTENT. - * @param size This is an indicator of how much storage space, in bytes, the application expects to need. - * @param successCallback The callback that is called when the user agent provides a filesystem. - * @param errorCallback A callback that is called when errors happen, or when the request to obtain the filesystem is denied. - */ - requestFileSystem( - type: LocalFileSystem, - size: number, - successCallback: (fileSystem: FileSystem) => void, - errorCallback?: (fileError: FileError) => void): void; - /** - * Look up file system Entry referred to by local URL. - * @param string url URL referring to a local file or directory - * @param successCallback invoked with Entry object corresponding to URL - * @param errorCallback invoked if error occurs retrieving file system entry - */ - resolveLocalFileSystemURL(url: string, - successCallback: (entry: Entry) => void, - errorCallback?: (error: FileError) => void): void; - /** - * Look up file system Entry referred to by local URI. - * @param string uri URI referring to a local file or directory - * @param successCallback invoked with Entry object corresponding to URI - * @param errorCallback invoked if error occurs retrieving file system entry - */ - resolveLocalFileSystemURI(uri: string, - successCallback: (entry: Entry) => void, - errorCallback?: (error: FileError) => void): void; - TEMPORARY: number; - PERSISTENT: number; -} - -/** This interface represents a file system. */ -interface FileSystem { - /* The name of the file system, unique across the list of exposed file systems. */ - name: string; - /** The root directory of the file system. */ - root: DirectoryEntry; -} - -/** - * An abstract interface representing entries in a file system, - * each of which may be a File or DirectoryEntry. - */ -interface Entry { - /** Entry is a file. */ - isFile: boolean; - /** Entry is a directory. */ - isDirectory: boolean; - /** The name of the entry, excluding the path leading to it. */ - name: string; - /** The full absolute path from the root to the entry. */ - fullPath: string; - /** The file system on which the entry resides. */ - fileSystem: FileSystem; - nativeURL: string; - /** - * Look up metadata about this entry. - * @param successCallback A callback that is called with the time of the last modification. - * @param errorCallback A callback that is called when errors happen. - */ - getMetadata( - successCallback: (metadata: Metadata) => void, - errorCallback?: (error: FileError) => void): void; - /** - * Move an entry to a different location on the file system. It is an error to try to: - * move a directory inside itself or to any child at any depth;move an entry into its parent if a name different from its current one isn't provided; - * move a file to a path occupied by a directory; - * move a directory to a path occupied by a file; - * move any element to a path occupied by a directory which is not empty. - * A move of a file on top of an existing file must attempt to delete and replace that file. - * A move of a directory on top of an existing empty directory must attempt to delete and replace that directory. - * @param parent The directory to which to move the entry. - * @param newName The new name of the entry. Defaults to the Entry's current name if unspecified. - * @param successCallback A callback that is called with the Entry for the new location. - * @param errorCallback A callback that is called when errors happen. - */ - moveTo(parent: DirectoryEntry, - newName?: string, - successCallback?: (entry: Entry) => void, - errorCallback?: (error: FileError) => void): void; - /** - * Copy an entry to a different location on the file system. It is an error to try to: - * copy a directory inside itself or to any child at any depth; - * copy an entry into its parent if a name different from its current one isn't provided; - * copy a file to a path occupied by a directory; - * copy a directory to a path occupied by a file; - * copy any element to a path occupied by a directory which is not empty. - * A copy of a file on top of an existing file must attempt to delete and replace that file. - * A copy of a directory on top of an existing empty directory must attempt to delete and replace that directory. - * Directory copies are always recursive--that is, they copy all contents of the directory. - * @param parent The directory to which to move the entry. - * @param newName The new name of the entry. Defaults to the Entry's current name if unspecified. - * @param successCallback A callback that is called with the Entry for the new object. - * @param errorCallback A callback that is called when errors happen. - */ - copyTo(parent: DirectoryEntry, - newName?: string, - successCallback?: (entry: Entry) => void, - errorCallback?: (error: FileError) => void): void; - /** - * Returns a URL that can be used as the src attribute of a