mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-06-02 09:30:03 +00:00
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped
This commit is contained in:
175
.github/CODEOWNERS
vendored
175
.github/CODEOWNERS
vendored
@@ -57,6 +57,7 @@
|
||||
/types/agent-base/ @Shinigami92
|
||||
/types/agora-rtc-sdk/ @menthays
|
||||
/types/airbnb-prop-types/ @milesj
|
||||
/types/airtable/ @bvalosek
|
||||
/types/ajv-errors/ @afshawnlotfi
|
||||
/types/ajv-merge-patch/ @littlepiggy03
|
||||
/types/ale-url-parser/ @msn0
|
||||
@@ -68,14 +69,18 @@
|
||||
/types/algoliasearch-helper/ @gburgett @haroenv @samouss
|
||||
/types/ali-app/ @taoqf
|
||||
/types/ali-oss/ @ptrdu
|
||||
/types/align-text/ @claasahl
|
||||
/types/all-keys/ @BendingBender
|
||||
/types/all-property-names/ @BendingBender
|
||||
/types/allure-js-commons/ @zaqqaz
|
||||
/types/almost-equal/ @cmaddalozzo
|
||||
/types/alt/ @Shearerbeard
|
||||
/types/amap-js-api/ @breeze9527
|
||||
/types/amap-js-api-autocomplete/ @breeze9527
|
||||
/types/amap-js-api-geocoder/ @breeze9527
|
||||
/types/amap-js-api-indoor-map/ @breeze9527
|
||||
/types/amap-js-api-map3d/ @breeze9527
|
||||
/types/amap-js-api-place-search/ @breeze9527
|
||||
/types/amap-js-sdk/ @agasbzj
|
||||
/types/amazon-cognito-auth-js/ @scottescue
|
||||
/types/amazon-product-api/ @MattiLehtinen @alien35
|
||||
@@ -241,7 +246,7 @@
|
||||
/types/async-cache/ @BendingBender
|
||||
/types/async-lock/ @elisee @afharo @rhymmor
|
||||
/types/async-polling/ @Goldsmith42
|
||||
/types/async-retry/ @albertywu @MeLlamoPablo
|
||||
/types/async-retry/ @albertywu @MeLlamoPablo @rafsawicki
|
||||
/types/async.nexttick/ @pyrho
|
||||
/types/asynciterator/ @rubensworks
|
||||
/types/athenajs/ @warpdesign
|
||||
@@ -262,7 +267,7 @@
|
||||
/types/auth-header/ @ForbesLindesay
|
||||
/types/auth0/ @westy92 @ianhowe76 @dauledk
|
||||
/types/auth0-angular/ @homesar
|
||||
/types/auth0-js/ @adrianchia @mdurrant @peterblazejewicz
|
||||
/types/auth0-js/ @adrianchia @mdurrant @peterblazejewicz @bkotrys
|
||||
/types/auth0-js/v7/ @advancedrei
|
||||
/types/auth0-lock/ @carusology @goldcaddy77 @lfaudreejr @willcaul
|
||||
/types/auth0.widget/ @advancedrei
|
||||
@@ -281,7 +286,7 @@
|
||||
/types/aws-param-store/ @jasonthomasgray
|
||||
/types/aws-serverless-express/ @threesquared @jcaffey @mattmeye @albertovasquez
|
||||
/types/aws4/ @ajcrites
|
||||
/types/axe-webdriverjs/ @JoshuaKGoldberg
|
||||
/types/axe-webdriverjs/ @JoshuaKGoldberg @tylerkrupicka
|
||||
/types/axel/ @ruslan-molodyko
|
||||
/types/axios-case-converter/ @dkniffin
|
||||
/types/axios-token-interceptor/ @innovation-team
|
||||
@@ -358,7 +363,7 @@
|
||||
/types/better-curry/ @pocesar
|
||||
/types/better-queue/ @maozedong
|
||||
/types/better-scroll/ @stoneChen @cnjack
|
||||
/types/better-sqlite3/ @Morfent @matrumz @sant123 @loghorn @andykais
|
||||
/types/better-sqlite3/ @Morfent @matrumz @sant123 @loghorn @andykais @mrkstwrt
|
||||
/types/bezier-easing/ @ptlis
|
||||
/types/bezier-js/ @danmarshall @Epskampie
|
||||
/types/bgiframe/ @sumegizoltan
|
||||
@@ -490,6 +495,7 @@
|
||||
/types/bunyan-prettystream/ @jasonswearingen @enlight
|
||||
/types/bunyan-seq/ @raybooysen
|
||||
/types/bunyan-winston-adapter/ @stevehipwell
|
||||
/types/burns/ @timolinn
|
||||
/types/busboy/ @jacobbaskin
|
||||
/types/business-rules-engine/ @rsamec
|
||||
/types/bwip-js/ @MugeSo
|
||||
@@ -500,7 +506,7 @@
|
||||
/types/bytewise/ @danwbyrne
|
||||
/types/c3/ @mcliment @gerinjacob @denyo @dmitryshindin @timn
|
||||
/types/cache-manager/ @GausSim
|
||||
/types/cacheable-request/ @BendingBender
|
||||
/types/cacheable-request/ @BendingBender @paulmelnikow
|
||||
/types/cached-path-relative/ @TeamworkGuy2
|
||||
/types/cadesplugin/ @Delagen @kmvi
|
||||
/types/cal-heatmap/ @RetroChrisB
|
||||
@@ -541,6 +547,7 @@
|
||||
/types/cavy/ @tyler-hoffman
|
||||
/types/cbor/ @pushplay
|
||||
/types/ccap/ @taoqf
|
||||
/types/center-align/ @claasahl
|
||||
/types/centra/ @twooster
|
||||
/types/cesium/ @Zuzon @hnipps @szechyjs @golyalpha
|
||||
/types/cfn-response/ @ivoisbelongtous
|
||||
@@ -569,6 +576,7 @@
|
||||
/types/chalk-animation/ @BendingBender
|
||||
/types/chance/ @cbowdon @brikou @cafesanu
|
||||
/types/change-emitter/ @iskandersierra
|
||||
/types/changelog-parser/ @adamzerella
|
||||
/types/chardet/ @Gebatzens
|
||||
/types/charm/ @Xananax
|
||||
/types/charset/ @cspotcode
|
||||
@@ -865,7 +873,8 @@
|
||||
/types/d3/ @tomwanzek @gustavderdrache @borisyankov @denisname
|
||||
/types/d3/v4/ @tomwanzek @gustavderdrache @borisyankov @denisname
|
||||
/types/d3/v3/ @gustavderdrache @borisyankov @MatthiasJobst
|
||||
/types/d3-array/ @gustavderdrache @borisyankov @tomwanzek @denisname
|
||||
/types/d3-array/ @gustavderdrache @borisyankov @tomwanzek @denisname @ledragon
|
||||
/types/d3-array/v1/ @gustavderdrache @borisyankov @tomwanzek @denisname @ledragon
|
||||
/types/d3-axis/ @tomwanzek @gustavderdrache @borisyankov @denisname
|
||||
/types/d3-box/ @lk-chen
|
||||
/types/d3-brush/ @tomwanzek @gustavderdrache @borisyankov
|
||||
@@ -949,7 +958,7 @@
|
||||
/types/debounce/ @denis-sokolov @joshuakgoldberg @wcarson
|
||||
/types/debounce-fn/ @BendingBender
|
||||
/types/debounce-promise/ @whtsky
|
||||
/types/debug/ @swook @galtalmor @zamb3zi @brasten @npenin
|
||||
/types/debug/ @swook @galtalmor @zamb3zi @brasten @npenin @kristianmitk
|
||||
/types/decay/ @enaeseth
|
||||
/types/decode-entities/ @waspothegreat
|
||||
/types/decode-uri-component/ @BendingBender
|
||||
@@ -1072,7 +1081,7 @@
|
||||
/types/download/ @nicojs
|
||||
/types/downloadjs/ @cwmoo740 @josuedevmark
|
||||
/types/dplayer/ @Guanyunhan
|
||||
/types/draft-js/ @dmitryrogozhny @eelco @ghotiphud @schwers @michael-yx-wu @willisplummer @smvilar @sulf @pablopunk @claudiopro
|
||||
/types/draft-js/ @dmitryrogozhny @eelco @ghotiphud @schwers @michael-yx-wu @willisplummer @smvilar @sulf @pablopunk @claudiopro @khawkinson
|
||||
/types/drag-timetable/ @chinkan
|
||||
/types/draggabilly/ @jaydubu
|
||||
/types/dragscroll/ @spkellydev
|
||||
@@ -1095,7 +1104,7 @@
|
||||
/types/dv/ @taoqf
|
||||
/types/dvtng-jss/ @Ptival
|
||||
/types/dw-bxslider-4/ @namerci
|
||||
/types/dwt/ @yushulx @jbh @lincoln2018 @Tom-Dynamsoft
|
||||
/types/dwt/ @yushulx @jbh @lincoln2018 @Tom-Dynamsoft @dsueltenfuss
|
||||
/types/dygraphs/ @danvk
|
||||
/types/dymo-label-framework/ @thijskuipers
|
||||
/types/dynatable/ @francoismassart
|
||||
@@ -1127,7 +1136,6 @@
|
||||
/types/ejs/ @benliddicott
|
||||
/types/ejs-locals/ @jt000
|
||||
/types/ejson/ @shantanubhadoria
|
||||
/types/elastic-apm-node/ @shahaed
|
||||
/types/elasticsearch/ @CasperSkydt @bfsmith @ddunkin @pushplay @mlamp @ahmadferdous @SimonSchick @brabster @deerawan
|
||||
/types/electron-config/ @mrfunkycold @unindented
|
||||
/types/electron-debug/ @unindented
|
||||
@@ -1153,6 +1161,7 @@
|
||||
/types/elliptic/ @danwbyrne @Gilthoniel
|
||||
/types/elm/ @thSoft
|
||||
/types/elo-rank/ @apavlinovic
|
||||
/types/elv/ @garyaparker
|
||||
/types/email-templates/ @cyrilschumacher @gurisko @blankstar85
|
||||
/types/ember/ @jedmao @bttf @dwickern @chriskrycho @theroncross @mfeckie @alexlafroscia @mike-north @BryanCrotaz
|
||||
/types/ember/v2/ @jedmao @bttf @dwickern @chriskrycho @theroncross @mfeckie @alexlafroscia @mike-north
|
||||
@@ -1318,7 +1327,7 @@
|
||||
/types/express-formidable/ @tdolsen @evanshortiss
|
||||
/types/express-graphql/ @isman-usoh @nitintutlani @hubel @zya @mlamp @firede
|
||||
/types/express-handlebars/ @stpettersens @yhaskell
|
||||
/types/express-http-proxy/ @ulrichb @Danscho
|
||||
/types/express-http-proxy/ @ulrichb @Danscho @carboneater
|
||||
/types/express-jsonschema/ @atd-schubert
|
||||
/types/express-jwt/ @wokim @kacepe @Sl1MBoy @milan-mimra
|
||||
/types/express-less/ @xieyubo
|
||||
@@ -1366,10 +1375,11 @@
|
||||
/types/eyes/ @brynbellomy
|
||||
/types/ez-plus/ @AndersonFriaca
|
||||
/types/f1/ @neolwc
|
||||
/types/fabric/ @oklemencic @joewashear007 @mrand01 @NotWoods @bmartinson @RogerioTeixeira @BradleyHill @bmkrol823 @glenngartner
|
||||
/types/fabric/ @oklemencic @joewashear007 @mrand01 @NotWoods @bmartinson @RogerioTeixeira @BradleyHill @bmkrol823 @glenngartner @codertx
|
||||
/types/facebook-instant-games/ @menushka @oyvindjam
|
||||
/types/facebook-js-sdk/ @amritk @mahmoudzohdi @fluidsonic
|
||||
/types/facebook-pixel/ @noctishsu
|
||||
/types/facepaint/ @DogPawHat @antonsamper
|
||||
/types/factory-girl/ @stackbuilders @sestrella @elcuy
|
||||
/types/faker/ @bensw @basp @Kuniwak @mattbishop
|
||||
/types/faker/v3/ @Kuniwak
|
||||
@@ -1386,6 +1396,7 @@
|
||||
/types/fast-json-stable-stringify/ @BendingBender
|
||||
/types/fast-levenshtein/ @mizunashi-mana
|
||||
/types/fast-list/ @BendingBender
|
||||
/types/fast-ratelimit/ @JorgenVatle
|
||||
/types/fast-stats/ @rogierschouten
|
||||
/types/fast64/ @rarmatei
|
||||
/types/fastclick/ @shinnn
|
||||
@@ -1441,6 +1452,7 @@
|
||||
/types/finch/ @DavidSichau
|
||||
/types/find/ @andypyrope
|
||||
/types/find-cache-dir/ @BendingBender
|
||||
/types/find-down/ @ffflorian
|
||||
/types/find-java-home/ @sjx233
|
||||
/types/find-package-json/ @BendingBender
|
||||
/types/find-parent-dir/ @ikatyang
|
||||
@@ -1478,7 +1490,7 @@
|
||||
/types/flot/ @burlandm @Anticom @admiralsmaster
|
||||
/types/flowdoc/ @animify
|
||||
/types/flowjs/ @ryan10132
|
||||
/types/fluent/ @huy-nguyen
|
||||
/types/fluent/ @huy-nguyen @jamesnimlos
|
||||
/types/fluent-ffmpeg/ @tcaesvk @DingWeizhe @mabidina
|
||||
/types/fluent-langneg/ @huy-nguyen
|
||||
/types/fluent-react/ @huy-nguyen
|
||||
@@ -1492,6 +1504,7 @@
|
||||
/types/fm-websync/ @markusmauch
|
||||
/types/fnv-lite/ @marcind
|
||||
/types/focus-within/ @eramdam
|
||||
/types/follow-redirects/ @forivall
|
||||
/types/fontfaceobserver/ @RandScullard
|
||||
/types/fontoxml/ @rolandzwaga
|
||||
/types/force-graph/ @p-kimberley
|
||||
@@ -1506,6 +1519,7 @@
|
||||
/types/form-urlencoded/ @alepee
|
||||
/types/format-duration/ @Roaders
|
||||
/types/format-io/ @amitbeck
|
||||
/types/format-number/ @codelovesme
|
||||
/types/format-unicorn/ @kruncher
|
||||
/types/formidable/ @Nemo157
|
||||
/types/forms/ @suXinjke
|
||||
@@ -1721,12 +1735,11 @@
|
||||
/types/get-folder-size/ @mszczepanczyk
|
||||
/types/get-func-name/ @BendingBender
|
||||
/types/get-node-dimensions/ @vincekovacs
|
||||
/types/get-port/ @plantain-00 @BendingBender
|
||||
/types/get-range/ @BendingBender
|
||||
/types/get-res/ @satyarohith
|
||||
/types/get-stdin/ @DanielRosenwasser
|
||||
/types/get-urls/ @BendingBender
|
||||
/types/get-value/ @DanielRosenwasser
|
||||
/types/get-value/ @DanielRosenwasser @TheMallen
|
||||
/types/getenv/ @impankratov
|
||||
/types/getopts/ @azasypkin
|
||||
/types/getos/ @BendingBender
|
||||
@@ -1824,7 +1837,8 @@
|
||||
/types/gramps__rest-helpers/ @claude
|
||||
/types/graphite-udp/ @EricByers
|
||||
/types/graphlib-dot/ @DomParfitt
|
||||
/types/graphql/ @TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet @IvanGoncharov @DxCx @rportugal @tgriesser @dyst5422 @adnsio @divyenduz @bradzacher @clayne11 @JCMais @langpavel @mc0
|
||||
/types/graphql/ @TonyPythoneer @calebmer @intellix @firede @kepennar @freiksenet @IvanGoncharov @DxCx @rportugal @tgriesser @dyst5422 @adnsio @divyenduz @bradzacher @clayne11 @JCMais @langpavel @mc0 @martijnwalraven
|
||||
/types/graphql-api-koa/ @mike-marcacci
|
||||
/types/graphql-date/ @enaeseth
|
||||
/types/graphql-deduplicator/ @lfades
|
||||
/types/graphql-depth-limit/ @eritikass
|
||||
@@ -1833,6 +1847,7 @@
|
||||
/types/graphql-iso-date/ @jwaldrip
|
||||
/types/graphql-list-fields/ @filipows
|
||||
/types/graphql-query-complexity/ @abhikmitra
|
||||
/types/graphql-react/ @mike-marcacci
|
||||
/types/graphql-relay/ @arvitaly @nitintutlani @Grelinfo
|
||||
/types/graphql-resolve-batch/ @nayni
|
||||
/types/graphql-resolvers/ @mike-engel
|
||||
@@ -1851,6 +1866,7 @@
|
||||
/types/grpc-error/ @danwbyrne
|
||||
/types/grunt/ @jeffmay @basarat
|
||||
/types/gsap/ @codebelt @ProbablePrime @philipbulley @leomeloxp @AdemHodzic
|
||||
/types/gtag.js/ @rokt33r
|
||||
/types/gtin/ @RafaelKr
|
||||
/types/guardian__prosemirror-invisibles/ @dddotsev
|
||||
/types/guid/ @maroy1986
|
||||
@@ -1891,6 +1907,7 @@
|
||||
/types/gulp-inject/ @k-kagurazaka
|
||||
/types/gulp-insert/ @shantmarouti
|
||||
/types/gulp-install/ @peterjuras
|
||||
/types/gulp-intercept/ @TokugawaTakesi
|
||||
/types/gulp-jade/ @berwyn
|
||||
/types/gulp-jasmine/ @andypyrope
|
||||
/types/gulp-jasmine-browser/ @tkrotoff
|
||||
@@ -1924,6 +1941,7 @@
|
||||
/types/gulp-strip-debug/ @peterjuras
|
||||
/types/gulp-svg-sprite/ @tkqubo
|
||||
/types/gulp-svgmin/ @Aankhen
|
||||
/types/gulp-tap/ @TokugawaTakesi
|
||||
/types/gulp-task-listing/ @joeskeen
|
||||
/types/gulp-template/ @pe8ter
|
||||
/types/gulp-tsd/ @k-kagurazaka
|
||||
@@ -2005,6 +2023,7 @@
|
||||
/types/hjson/ @crunchie84
|
||||
/types/hls.js/ @jgainfort @brookback @adripanico @beraliv
|
||||
/types/hoek/ @prashaantt
|
||||
/types/hogan.js/ @AndrewLeedham
|
||||
/types/hoist-non-react-statics/ @JounQin @jamesreggio
|
||||
/types/holderjs/ @renjfk
|
||||
/types/hooker/ @misak113
|
||||
@@ -2026,9 +2045,10 @@
|
||||
/types/html-webpack-template/ @bumbleblym
|
||||
/types/html2canvas/ @rwhepburn @tan9 @sschocke @Ristaaf
|
||||
/types/html5-history/ @akashishu777
|
||||
/types/html5-to-pdf/ @samalexander
|
||||
/types/html5plus/ @dcloudio
|
||||
/types/htmlbars-inline-precompile/ @chriskrycho
|
||||
/types/htmlparser2/ @staticfunction @LinusU
|
||||
/types/htmlparser2/ @staticfunction @LinusU @johandavidson
|
||||
/types/htmltojsx/ @basarat
|
||||
/types/http-assert/ @jkeylu @stripedpajamas
|
||||
/types/http-aws-es/ @marcogrcr
|
||||
@@ -2053,6 +2073,7 @@
|
||||
/types/humanize-plus/ @DenisCarriere
|
||||
/types/humanize-url/ @BendingBender
|
||||
/types/humanparser/ @MichalPodeszwa
|
||||
/types/hummus-recipe/ @erikberressem
|
||||
/types/humps/ @nikeee
|
||||
/types/hyco-ws/ @mrcabellom
|
||||
/types/hyper-aws4/ @bambutz
|
||||
@@ -2078,6 +2099,7 @@
|
||||
/types/icheck/ @qcz
|
||||
/types/icon-gen/ @ffflorian
|
||||
/types/iconv/ @delphinus35
|
||||
/types/identicon.js/ @D0miH
|
||||
/types/idyll/ @iocat
|
||||
/types/idyll-ast/ @iocat
|
||||
/types/idyll-compiler/ @iocat
|
||||
@@ -2104,6 +2126,7 @@
|
||||
/types/immediate/ @BendingBender
|
||||
/types/imperium/ @gaetansenn
|
||||
/types/impress/ @borisyankov
|
||||
/types/imul/ @djcsdy
|
||||
/types/in-app-purchase/ @l-jonas @IchordeDionysos
|
||||
/types/in-range/ @DanielRosenwasser
|
||||
/types/inboxsdk/ @rdoursenaud @amiram
|
||||
@@ -2119,7 +2142,7 @@
|
||||
/types/iniparser/ @chrootsu
|
||||
/types/init-package-json/ @kfarnung
|
||||
/types/ink/ @cprecioso
|
||||
/types/ink-select-input/ @lukostry
|
||||
/types/ink-select-input/ @lukostry @shatodj
|
||||
/types/ink-spinner/ @lukostry
|
||||
/types/ink-table/ @lukostry
|
||||
/types/ink-testing-library/ @MancunianSam
|
||||
@@ -2192,6 +2215,7 @@
|
||||
/types/is-git-url/ @BendingBender
|
||||
/types/is-glob/ @mrmlnc
|
||||
/types/is-hotkey/ @petester42 @kalley
|
||||
/types/is-image/ @DenisFrezzato
|
||||
/types/is-installed-globally/ @BendingBender
|
||||
/types/is-integer/ @djcsdy
|
||||
/types/is-ip/ @coderslagoon
|
||||
@@ -2443,7 +2467,7 @@
|
||||
/types/js-beautify/ @JoshuaKGoldberg @hansrwindhoff
|
||||
/types/js-clipper/ @omni360
|
||||
/types/js-combinatorics/ @outring
|
||||
/types/js-cookie/ @theodorejb @BendingBender @alepee
|
||||
/types/js-cookie/ @theodorejb @BendingBender @alepee @yutod
|
||||
/types/js-data-angular/ @reppners
|
||||
/types/js-fixtures/ @kazimanzurrashid
|
||||
/types/js-git/ @Bartvds
|
||||
@@ -2754,6 +2778,7 @@
|
||||
/types/libxmljs/ @fdecampredon @ComFreek
|
||||
/types/libxslt/ @alejo90
|
||||
/types/license-checker/ @rogierschouten @unindented @alechemy
|
||||
/types/license-checker-webpack-plugin/ @ChaosinaCan
|
||||
/types/liftoff/ @BendingBender
|
||||
/types/lil-uri/ @wcarson
|
||||
/types/lil-uuid/ @Pr1st0n
|
||||
@@ -3113,6 +3138,7 @@
|
||||
/types/lusca/ @crutchcorn
|
||||
/types/luxon/ @colbydehart @FourwingsY @jsiebern @mastermatt @pietrovismara @dawnmist
|
||||
/types/lwip/ @AyaMorisawa
|
||||
/types/lyricist/ @DadUndead
|
||||
/types/lz-string/ @M0ns1gn0r
|
||||
/types/lzma-native/ @leshow
|
||||
/types/macrotask/ @BendingBender
|
||||
@@ -3154,6 +3180,7 @@
|
||||
/types/markdown-it-container/ @hronex
|
||||
/types/markdown-it-lazy-headers/ @knom
|
||||
/types/markdown-pdf/ @MonsieurMan
|
||||
/types/markdown-to-jsx/ @ecraig12345
|
||||
/types/markdownlint/ @ark120202
|
||||
/types/marked/ @worr @BendingBender @CrossR @mwickett @htkzhtm
|
||||
/types/marked-terminal/ @bkendall
|
||||
@@ -3203,6 +3230,8 @@
|
||||
/types/material__top-app-bar/ @BrentDouglas @ckosti
|
||||
/types/materialize-css/ @huww98 @MaximBalaganskiy @MonizDave @broccoliarchy
|
||||
/types/materialize-css/v0/ @eriklieben @leonyu @SinghSukhdeep @jfcere @scote @LiadIdan
|
||||
/types/math-sign/ @djcsdy
|
||||
/types/math-trunc/ @djcsdy
|
||||
/types/math3d/ @laszlojakab @jimsmart
|
||||
/types/mathjax/ @rolandzwaga
|
||||
/types/mathjs/ @siavol @andnp @bradbesserman @pawkrol
|
||||
@@ -3361,7 +3390,7 @@
|
||||
/types/morris.js/ @mareek @sindilevich
|
||||
/types/mosca/ @GabrielGouv @jerray
|
||||
/types/motor-hat/ @muntyan
|
||||
/types/mousetrap/ @qcz @alanhchoi
|
||||
/types/mousetrap/ @qcz @alanhchoi @nicbarker
|
||||
/types/move-concurrently/ @mgroenhoff
|
||||
/types/moveto/ @shermendev @pea3nut
|
||||
/types/moviedb/ @basarat @0x6368656174
|
||||
@@ -3420,6 +3449,7 @@
|
||||
/types/natural-compare/ @doniyor2109
|
||||
/types/natural-compare-lite/ @doniyor2109
|
||||
/types/natural-sort/ @a-morales @fluggo
|
||||
/types/naver-whale/ @tbvjaos510
|
||||
/types/navermaps/ @ckboyjiy
|
||||
/types/navigation/ @grahammendick
|
||||
/types/navigation-react/ @grahammendick
|
||||
@@ -3511,8 +3541,9 @@
|
||||
/types/node-dijkstra/ @nokutu
|
||||
/types/node-dir/ @panuhorsmalahti
|
||||
/types/node-dogstatsd/ @chrisbobo @xzyfer
|
||||
/types/node-downloader-helper/ @RemyJeancolas
|
||||
/types/node-emoji/ @jonestristand @styu @rimiti
|
||||
/types/node-fetch/ @torstenwerner @nikcorg @vinaybedre @kyranet @AndrewLeedham
|
||||
/types/node-fetch/ @torstenwerner @nikcorg @vinaybedre @kyranet @AndrewLeedham @JasonLi914
|
||||
/types/node-fibers/ @caryhaynie
|
||||
/types/node-forge/ @westy92 @flynetworks @a-k-g @rafal2228 @beenotung @joeflateau @Apologiz @timhwang21 @supaiku0 @andersk @saschazar21
|
||||
/types/node-gcm/ @horiuchi
|
||||
@@ -3562,6 +3593,7 @@
|
||||
/types/node_redis/ @borisyankov
|
||||
/types/nodecredstash/ @migstopheles
|
||||
/types/nodegit/ @dolanmiu @tniessen @pvigier
|
||||
/types/nodejs-license-file/ @trodi
|
||||
/types/nodemailer/ @rogierschouten @dex4er @bioball
|
||||
/types/nodemailer/v3/ @rogierschouten
|
||||
/types/nodemailer-direct-transport/ @rogierschouten
|
||||
@@ -3574,7 +3606,7 @@
|
||||
/types/nodeunit/ @jedigo
|
||||
/types/noisejs/ @izmhr
|
||||
/types/nomnom/ @panopticoncentral
|
||||
/types/nonogram-solver/ @me
|
||||
/types/nonogram-solver/ @ffflorian
|
||||
/types/nookies/ @andreasbergqvist
|
||||
/types/nopt/ @jbondc
|
||||
/types/normalize-package-data/ @jdxcode
|
||||
@@ -3651,6 +3683,7 @@
|
||||
/types/okta__okta-vue/ @innovation-team
|
||||
/types/ol/ @yairtawil
|
||||
/types/omggif/ @ffflorian
|
||||
/types/omit-empty/ @pastelsky
|
||||
/types/on-finished/ @czechboy0 @BendingBender
|
||||
/types/on-headers/ @jjeffery @BendingBender
|
||||
/types/on-wake-up/ @ajafff
|
||||
@@ -3728,14 +3761,14 @@
|
||||
/types/pad/ @mhegazy
|
||||
/types/page/ @43081j
|
||||
/types/paho-mqtt/ @amikhalev
|
||||
/types/pako/ @cappellin @calebegg
|
||||
/types/pako/ @cappellin @calebegg @hlthi
|
||||
/types/palx/ @mikefowler
|
||||
/types/pangu/ @plantain-00
|
||||
/types/papaparse/ @torpedro @rainshen49 @jfloff @johnnyreilly @albertorestifo @BehindTheMath @3af @jliuhtonen
|
||||
/types/paper/ @clark-stevenson @Xakaloz @sebaswebdev @rfried
|
||||
/types/parallel-transform/ @djcsdy
|
||||
/types/paralleljs/ @jbaldwin
|
||||
/types/parcel-bundler/ @pinage404
|
||||
/types/parcel-bundler/ @pinage404 @nick-woodward
|
||||
/types/parcel-env/ @fathyb
|
||||
/types/parent-package-json/ @sgmccli
|
||||
/types/parents/ @TeamworkGuy2
|
||||
@@ -3751,6 +3784,7 @@
|
||||
/types/parse-git-config/v2/ @leonard-thieu @deltaidea
|
||||
/types/parse-github-url/ @ajafff
|
||||
/types/parse-glob/ @glen-84
|
||||
/types/parse-human-date-range/ @forivall
|
||||
/types/parse-json/ @mrmlnc
|
||||
/types/parse-link-header/ @zelein
|
||||
/types/parse-mockdb/ @dpoetzsch
|
||||
@@ -3957,6 +3991,7 @@
|
||||
/types/preact-i18n/ @ltetzlaff
|
||||
/types/precise/ @codeanimal
|
||||
/types/precond/ @olsio
|
||||
/types/prefixfree/ @ExE-Boss
|
||||
/types/preloadjs/ @endel
|
||||
/types/prelude-ls/ @AyaMorisawa
|
||||
/types/prettier/ @ikatyang
|
||||
@@ -3971,8 +4006,8 @@
|
||||
/types/preval.macro/ @huan086
|
||||
/types/printf/ @AluisioASG
|
||||
/types/priorityqueuejs/ @geoffreak
|
||||
/types/prismic-dom/ @nickw444 @sbilstein
|
||||
/types/prismjs/ @eriklieben @andrewiggins @mmiszy
|
||||
/types/prismic-dom/ @nickw444 @sbilstein @douglasnomizo
|
||||
/types/prismjs/ @RunDevelopment @ExE-Boss @eriklieben @andrewiggins @mmiszy
|
||||
/types/private-ip/ @coderslagoon
|
||||
/types/procfs-stats/ @cyrilschumacher
|
||||
/types/progress/ @sebastian-lenz
|
||||
@@ -4068,6 +4103,7 @@
|
||||
/types/qlik-visualizationextensions/ @konne
|
||||
/types/qr-image/ @taoqf
|
||||
/types/qrcode/ @plantain-00
|
||||
/types/qrcode-svg/ @ericbf
|
||||
/types/qrcode.react/ @mleko
|
||||
/types/qs/ @RWander @leonyu @tehbelinda @zyml @artursvonda @CarlosBonetti
|
||||
/types/qs-middleware/ @davecardwell
|
||||
@@ -4105,6 +4141,7 @@
|
||||
/types/rangyinputs/ @ersimont
|
||||
/types/raphael/ @CheCoxshall
|
||||
/types/rappid/ @DenEwout
|
||||
/types/rasha/ @Just1B
|
||||
/types/raspi/ @nebrius
|
||||
/types/raspi-board/ @nebrius
|
||||
/types/raspi-gpio/ @nebrius
|
||||
@@ -4136,7 +4173,7 @@
|
||||
/types/rdflib/ @cenotelie
|
||||
/types/re-base/ @jordandrako
|
||||
/types/reach__router/ @kingdaro
|
||||
/types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @tkrotoff @DovydasNavickas @onigoetz @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @hotell @franklixuefei @Jessidhia @pshrmn @saranshkataria
|
||||
/types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @tkrotoff @DovydasNavickas @onigoetz @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @hotell @franklixuefei @Jessidhia @pshrmn @saranshkataria @lukyth @eps1lon
|
||||
/types/react/v15/ @bbenezech @pzavolinsky @digiguru @ericanderson @tkrotoff @DovydasNavickas @onigoetz
|
||||
/types/react-adal/ @dkorolev1
|
||||
/types/react-albus/ @sseppola @conradreuter @kuirak
|
||||
@@ -4151,6 +4188,7 @@
|
||||
/types/react-autocomplete/ @lstanden
|
||||
/types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch @rosskevin
|
||||
/types/react-avatar-editor/ @diogocorrea @gabsprates @lsenta @davidspiess
|
||||
/types/react-axe/ @akshaykarthik
|
||||
/types/react-beautiful-dnd/ @varHarrie @bradleyayers @paustint @marknelissen @enricoboccadifuoco @lonyele @lukyth
|
||||
/types/react-better-password/ @mhuynh1
|
||||
/types/react-big-calendar/ @piotrwitek @paustint @pikpok @eps1lon @strongpauly @janb87 @ldthorne @siavelis
|
||||
@@ -4165,7 +4203,7 @@
|
||||
/types/react-breadcrumbs/ @guoyunhe
|
||||
/types/react-breadcrumbs-dynamic/ @mitsuruog
|
||||
/types/react-broadcast/ @kandros
|
||||
/types/react-burger-menu/ @radziksh
|
||||
/types/react-burger-menu/ @radziksh @dacevedo12 @germanp173
|
||||
/types/react-cache/ @skovy
|
||||
/types/react-calendar-heatmap/ @9renpoto
|
||||
/types/react-calendar-timeline/ @radziksh @acemac
|
||||
@@ -4177,7 +4215,7 @@
|
||||
/types/react-coinhive/ @sktbcbbs
|
||||
/types/react-collapse/ @Kimahriman
|
||||
/types/react-collapsible/ @knegusen
|
||||
/types/react-color/ @LKay @markspolakovs @mntdn @nkgrnkgr @0815Strohhut
|
||||
/types/react-color/ @LKay @markspolakovs @mntdn @nkgrnkgr @0815Strohhut @dnlfrst
|
||||
/types/react-confirm/ @santiagodoldan @marknelissen
|
||||
/types/react-content-loader/ @alaatm @samwalshnz
|
||||
/types/react-copy-to-clipboard/ @mabels @BernabeFelix
|
||||
@@ -4217,6 +4255,7 @@
|
||||
/types/react-dropzone/v2/ @matdube @LynxEyes @goblindegook @benbayard
|
||||
/types/react-dynamic-number/ @eugrdn
|
||||
/types/react-easy-chart/ @danzel
|
||||
/types/react-editext/ @alioguzhan
|
||||
/types/react-event-listener/ @asvetliakov
|
||||
/types/react-fa/ @flaub @patsissons @LKay
|
||||
/types/react-facebook-login/ @apare @jankarres
|
||||
@@ -4251,7 +4290,7 @@
|
||||
/types/react-headroom/ @zerocho
|
||||
/types/react-helmet/ @evanbb @isman-usoh @lith-light-g @sammkj @yuit
|
||||
/types/react-helmet/v4/ @evanbb @isman-usoh
|
||||
/types/react-helmet-async/ @forabi
|
||||
/types/react-helmet-async/ @forabi @unindented
|
||||
/types/react-highcharts/ @j1r1k
|
||||
/types/react-highlight/ @joshuakgoldberg
|
||||
/types/react-highlight-words/ @mhegazy @diogodca @kellyrmilligan
|
||||
@@ -4290,7 +4329,7 @@
|
||||
/types/react-json/ @spielc
|
||||
/types/react-json-pretty/ @LKay
|
||||
/types/react-json-tree/ @gnestor @zainafzal08
|
||||
/types/react-jsonschema-form/ @iamdanfox @iplus26 @phbou72 @LucianBuzzo @sthenault @sbusch @medfreeman
|
||||
/types/react-jsonschema-form/ @iamdanfox @iplus26 @phbou72 @LucianBuzzo @sthenault @sbusch @medfreeman @saadtazi
|
||||
/types/react-jss/ @eps1lon @jlaw90
|
||||
/types/react-kawaii/ @ZhangYiJiang
|
||||
/types/react-lazyload/ @m0a
|
||||
@@ -4300,6 +4339,7 @@
|
||||
/types/react-leaflet-markercluster/ @Kimahriman
|
||||
/types/react-lifecycle-component/ @pixelshaded
|
||||
/types/react-lifecycles-compat/ @bySabi
|
||||
/types/react-linkify/ @majames @jackywang529
|
||||
/types/react-list/ @buptyyf @tomshen
|
||||
/types/react-loadable/ @Jessidhia @odensc @ianks @tlaziuk @iMobs
|
||||
/types/react-loader/ @artfuldev
|
||||
@@ -4319,7 +4359,7 @@
|
||||
/types/react-motion-loop/ @j-em
|
||||
/types/react-motion-slider/ @asvetliakov
|
||||
/types/react-motion-ui-pack/ @jsonunger
|
||||
/types/react-native/ @alloy @huhuanming @iRoachie @skn0tt @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software @tkrotoff @a-tarasyuk @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria
|
||||
/types/react-native/ @alloy @huhuanming @iRoachie @skn0tt @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software @tkrotoff @a-tarasyuk @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria @franzmoro
|
||||
/types/react-native-android-taskdescription/ @christianchown
|
||||
/types/react-native-auth0/ @ascariandrea @marknelissen
|
||||
/types/react-native-autocomplete-input/ @ifiokjr
|
||||
@@ -4393,14 +4433,16 @@
|
||||
/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 @iRoachie @timwangdev @geriux
|
||||
/types/react-native-tab-view/ @kaoDev @iRoachie @timwangdev @geriux @kazyk
|
||||
/types/react-native-text-input-mask/ @RodrigoAWeber
|
||||
/types/react-native-toast-native/ @bm-software
|
||||
/types/react-native-touch-id/ @huhuanming @gazaret @jinshin1013
|
||||
/types/react-native-uuid/ @hmajid2301
|
||||
/types/react-native-uuid-generator/ @burtek
|
||||
/types/react-native-vector-icons/ @iRoachie @timwangdev
|
||||
/types/react-native-vector-icons/ @iRoachie @timwangdev @robertying
|
||||
/types/react-native-version-number/ @VincentLanglet
|
||||
/types/react-native-video/ @huhuanming
|
||||
/types/react-native-view-pdf/ @thesergiomiguel
|
||||
/types/react-native-zeroconf/ @mattapet
|
||||
/types/react-navigation/ @huhuanming @mhcgrq @fangpenlin @petejkim @iRoachie @phanalpha @charlesfamu @timwangdev @bang88 @svbutko @levito @YourGamesBeOver @ArmandoAssuncao @cliedeman @magrinj @TizioFittizio @stigi @LinusU @jshosomichi @jakebooyah @brunoro @DenisFrezzato @mickaelw @maxdavidson @alechill @builtbyproxy @jkillian @jeroenvervaeke @chagasaway @denissb @skovhus @azrosen92 @hmajid2301
|
||||
/types/react-navigation/v2/ @huhuanming @mhcgrq @fangpenlin @petejkim @iRoachie @phanalpha @charlesfamu @timwangdev @bang88 @svbutko @levito @YourGamesBeOver @ArmandoAssuncao @cliedeman @magrinj @TizioFittizio @stigi @LinusU @jshosomichi @jakebooyah @brunoro @DenisFrezzato @mickaelw @maxdavidson @alechill @builtbyproxy @jkillian @jeroenvervaeke @chagasaway
|
||||
@@ -4443,7 +4485,7 @@
|
||||
/types/react-redux-i18n/ @clementdevos
|
||||
/types/react-redux-toastr/ @Smiche @artyomsv @kulmajaba
|
||||
/types/react-relay/ @graphcool @voxmatt @alloy @npirotte @ckknight @kastermester @mattkrick
|
||||
/types/react-request/ @dannycochran
|
||||
/types/react-request/ @dannycochran @angusfretwell @jonathanly
|
||||
/types/react-resizable/ @airhorns
|
||||
/types/react-resize-detector/ @matthew-matvei @aMoniker @rdrgn
|
||||
/types/react-resolver/ @forabi
|
||||
@@ -4490,6 +4532,7 @@
|
||||
/types/react-sparklines/ @henrinormak
|
||||
/types/react-spinkit/ @tkqubo @mleko @pelotom @zzanol
|
||||
/types/react-spinkit/v1/ @tkqubo @mleko @pelotom
|
||||
/types/react-spinner/ @jakeboone02
|
||||
/types/react-splitter-layout/ @snaptags
|
||||
/types/react-star-rating-component/ @marpstar
|
||||
/types/react-sticky/ @curtisw0 @ajhyndman
|
||||
@@ -4507,7 +4550,8 @@
|
||||
/types/react-table/ @royxue @psakalo @Havret @andys8 @Gelio
|
||||
/types/react-table-filter/ @gjsln
|
||||
/types/react-tabs/ @yu-i9 @danez @Equationist
|
||||
/types/react-tag-autocomplete/ @jlismore
|
||||
/types/react-tabs-redux/ @ntnbrtnkv
|
||||
/types/react-tag-autocomplete/ @jlismore @Rahul-Sagore
|
||||
/types/react-tag-input/ @Ogglas @jankarres @matthewberryman
|
||||
/types/react-tagcloud/ @wassname
|
||||
/types/react-tagsinput/ @mykter
|
||||
@@ -4537,6 +4581,7 @@
|
||||
/types/react-vertical-timeline-component/ @stephane-monnot
|
||||
/types/react-virtual-keyboard/ @bsurai
|
||||
/types/react-virtualized/ @kaoDev @guntherjh @wasd171 @szabolcsx @Stevearzh @mgoszcz2 @brandonhall @sbusch
|
||||
/types/react-virtualized-auto-sizer/ @otofu-square
|
||||
/types/react-virtualized-select/ @seansfkelley
|
||||
/types/react-visibility-sensor/ @JRasmusBm @gcangussu
|
||||
/types/react-webcam/ @squat
|
||||
@@ -4563,10 +4608,10 @@
|
||||
/types/readline-transform/ @dex4er
|
||||
/types/reapop/ @Barrokgl
|
||||
/types/rebass/ @rhysd @ryee-dev @jamesmckenzie @gretzky @angusfretwell
|
||||
/types/rebass__grid/ @antonvasin @vittorio @lhache @lavoaster
|
||||
/types/rebass__grid/ @antonvasin @vittorio @lhache @lavoaster @autoric @akameco
|
||||
/types/recaptcha2/ @l-jonas
|
||||
/types/recase/ @18steps
|
||||
/types/recharts/ @mthmulders @rapmue @royxue @ZheyangSong @richbai90 @caspeco-dan @pkeuter @jrsaunde @paulmelnikow @crusectrl @apalugniok @RobertStigsson @kousaku-maron @iflp
|
||||
/types/recharts/ @rapmue @royxue @ZheyangSong @richbai90 @caspeco-dan @pkeuter @jrsaunde @crusectrl @apalugniok @RobertStigsson @kousaku-maron @iflp
|
||||
/types/recharts-scale/ @johnnyreilly
|
||||
/types/rechoir/ @BendingBender
|
||||
/types/recluster/ @dex4er
|
||||
@@ -4657,10 +4702,12 @@
|
||||
/types/remarkable/ @makepost @chigix
|
||||
/types/remote-origin-url/ @BendingBender
|
||||
/types/remote-redux-devtools/ @ColinEberhardt @unindented @mamodom @colindekker
|
||||
/types/remotedev-serialize/ @jaulz
|
||||
/types/remove-markdown/ @RagibHasin
|
||||
/types/rename/ @Aankhen
|
||||
/types/repeat-element/ @adamzerella
|
||||
/types/repeat-string/ @adamzerella
|
||||
/types/repeating/ @claasahl
|
||||
/types/replace-ext/ @DeividasBakanas
|
||||
/types/replace-string/ @BendingBender
|
||||
/types/replacestream/ @dex4er
|
||||
@@ -4723,6 +4770,7 @@
|
||||
/types/rgrove__parse-xml/ @petejohanson
|
||||
/types/rheostat/ @SashaBayan @kourge @StefanWerW
|
||||
/types/rickshaw/ @niemyjski
|
||||
/types/right-align/ @claasahl
|
||||
/types/rimraf/ @soywiz @e-cloud @bash
|
||||
/types/riot/ @Stubb0rn
|
||||
/types/riot-api-nodejs/ @zafixlrp
|
||||
@@ -4767,6 +4815,7 @@
|
||||
/types/rss/ @secondwtq
|
||||
/types/rsvp/ @chriskrycho
|
||||
/types/rsync/ @philippstucki
|
||||
/types/rtl-detect/ @imprevo
|
||||
/types/rtlcss/ @adamzerella
|
||||
/types/rtree/ @oefirouz
|
||||
/types/run-parallel/ @mrmlnc
|
||||
@@ -4808,7 +4857,7 @@
|
||||
/types/sane/ @BendingBender
|
||||
/types/sane-email-validation/ @ForbesLindesay
|
||||
/types/sanitize-filename/ @Nemo157
|
||||
/types/sanitize-html/ @rogierschouten @afshin @BehindTheMath @biermeester @WillGibson @sirMerr
|
||||
/types/sanitize-html/ @rogierschouten @afshin @BehindTheMath @biermeester @WillGibson @sirMerr @johandavidson
|
||||
/types/sap__xsenv/ @mad-mike
|
||||
/types/sarif/ @rscrivens
|
||||
/types/sasl-anonymous/ @BendingBender
|
||||
@@ -4824,6 +4873,7 @@
|
||||
/types/sat/ @omni360
|
||||
/types/satnav/ @DotNetNerd
|
||||
/types/saywhen/ @SeanSobey
|
||||
/types/sbd/ @thatcort
|
||||
/types/sc-auth/ @DanielRose
|
||||
/types/sc-broker/ @DanielRose
|
||||
/types/sc-broker-cluster/ @DanielRose
|
||||
@@ -4859,7 +4909,7 @@
|
||||
/types/secp256k1/ @anler
|
||||
/types/seed-random/ @l-jonas
|
||||
/types/seededshuffle/ @urish
|
||||
/types/seedrandom/ @kernhanda
|
||||
/types/seedrandom/ @kernhanda @EugeneZ
|
||||
/types/seen/ @admvx
|
||||
/types/segment-analytics/ @fongandrew
|
||||
/types/select2/ @borisyankov @denisname
|
||||
@@ -4868,6 +4918,7 @@
|
||||
/types/selectize/ @adidahiya @naBausch
|
||||
/types/selenium-standalone/ @SanderDeWaal1992
|
||||
/types/selenium-webdriver/ @BillArmstrong @Kuniwak @cnishina @SupernaviX @bendxn @oddui
|
||||
/types/selenium-webdriver/v3/ @BillArmstrong @Kuniwak @cnishina @SupernaviX @bendxn @oddui
|
||||
/types/selenium-webdriver/v2/ @BillArmstrong @Kuniwak @cnishina
|
||||
/types/semantic-release/ @lgaticaq
|
||||
/types/semantic-ui/ @leonard-thieu
|
||||
@@ -4892,7 +4943,7 @@
|
||||
/types/semantic-ui-transition/ @leonard-thieu
|
||||
/types/semantic-ui-visibility/ @leonard-thieu
|
||||
/types/semaphore/ @mhfrantz @Alorel
|
||||
/types/semver/ @Bartvds @BendingBender @LucianBuzzo
|
||||
/types/semver/ @Bartvds @BendingBender @LucianBuzzo @ajafff
|
||||
/types/semver-compare/ @vincekovacs
|
||||
/types/semver-diff/ @chrismbarr
|
||||
/types/semver-regex/ @BendingBender
|
||||
@@ -4933,7 +4984,7 @@
|
||||
/types/shallowequal/ @seansfkelley @BendingBender @arndissler
|
||||
/types/shallowequal/v0/ @seansfkelley
|
||||
/types/shapefile/ @DenisCarriere @Thw0rted
|
||||
/types/sharedb/ @soney
|
||||
/types/sharedb/ @soney @ericyhwang
|
||||
/types/sharedworker/ @nakakura
|
||||
/types/sharepoint/ @gandjustas @andrei-markeev @baywet @teroarvola @dennispg
|
||||
/types/sharp/ @lith-light-g @wooseopkim @BTOdell @JamieWoodbury
|
||||
@@ -4943,7 +4994,7 @@
|
||||
/types/sheetify/ @toddself
|
||||
/types/shell-escape/ @nenadalm
|
||||
/types/shell-quote/ @jason0x43 @CameronDiver
|
||||
/types/shelljs/ @nikeee @voy @gkalpak @pheromonez @aldafu
|
||||
/types/shelljs/ @nikeee @voy @gkalpak @pheromonez @aldafu @ExE-Boss
|
||||
/types/shelljs-exec-proxy/ @qlonik
|
||||
/types/shimmer/ @kjin
|
||||
/types/shipit-cli/ @cyrilschumacher
|
||||
@@ -5016,12 +5067,12 @@
|
||||
/types/slackdown/ @nju33
|
||||
/types/slackify-html/ @hypexr
|
||||
/types/slash/ @BendingBender
|
||||
/types/slate/ @andykent @majelbstoat @JanLoebel @YangusKhan @kalley @Kornil @isubasti @sgreav @jackall3n
|
||||
/types/slate/ @andykent @majelbstoat @JanLoebel @YangusKhan @kalley @Kornil @isubasti @sgreav @jackall3n @benjiro
|
||||
/types/slate-base64-serializer/ @YangusKhan
|
||||
/types/slate-html-serializer/ @YangusKhan
|
||||
/types/slate-irc/ @elisee
|
||||
/types/slate-plain-serializer/ @YangusKhan @mkiefel
|
||||
/types/slate-react/ @andykent @majelbstoat @JanLoebel @PatrickSachs @YangusKhan @isubasti @sgreav @Kornil @jackall3n
|
||||
/types/slate-react/ @andykent @majelbstoat @JanLoebel @PatrickSachs @YangusKhan @isubasti @sgreav @Kornil @jackall3n @benjiro
|
||||
/types/sleep/ @rajarz
|
||||
/types/slice-ansi/ @dwieeb
|
||||
/types/slick-carousel/ @Kocal
|
||||
@@ -5156,15 +5207,15 @@
|
||||
/types/storybook__addon-jest/ @halfmatthalfcat
|
||||
/types/storybook__addon-knobs/ @joscha @martynaskadisa @amacleay @MLoughry @alanhchoi
|
||||
/types/storybook__addon-links/ @joscha @jessepinho
|
||||
/types/storybook__addon-notes/ @joscha @amacleay @MLoughry
|
||||
/types/storybook__addon-options/ @joscha @simonhn @amacleay @gaetanmaisse @adam187
|
||||
/types/storybook__addon-storyshots/ @bradleyayers
|
||||
/types/storybook__addon-viewport/ @Vinnl
|
||||
/types/storybook__addons/ @bmatcuk
|
||||
/types/storybook__channels/ @bmatcuk
|
||||
/types/storybook__preact/ @9renpoto
|
||||
/types/storybook__react/ @joscha @wapgear @dandean
|
||||
/types/storybook__react-native/ @joscha @wapgear @alechill @iRoachie @ceyhuno
|
||||
/types/storybook__vue/ @pntgupta @jurgisrudaks
|
||||
/types/storybook__vue/ @pntgupta @jurgisrudaks @yoyoys
|
||||
/types/strange/ @wanganjun
|
||||
/types/stream-array/ @Tyler-Murphy
|
||||
/types/stream-buffers/ @Jason3S
|
||||
@@ -5173,6 +5224,7 @@
|
||||
/types/stream-each/ @djcsdy
|
||||
/types/stream-json/ @uhop
|
||||
/types/stream-meter/ @mugeso
|
||||
/types/stream-mock/ @ivank
|
||||
/types/stream-series/ @k-kagurazaka
|
||||
/types/stream-shift/ @djcsdy
|
||||
/types/stream-throttle/ @danwbyrne
|
||||
@@ -5213,6 +5265,7 @@
|
||||
/types/strong-log-transformer/ @azasypkin
|
||||
/types/strophe/ @DavidKDeutsch
|
||||
/types/strophe.js/ @DavidKDeutsch
|
||||
/types/strophejs-plugin-roster/ @LeartS
|
||||
/types/structured-source/ @azu
|
||||
/types/styled-components/ @Igorbek @Igmat @lavoaster @Jessidhia @jkillian @eps1lon @flavordaaave
|
||||
/types/styled-components/v3/ @Igorbek @Igmat
|
||||
@@ -5254,7 +5307,7 @@
|
||||
/types/svg-sprite/ @tkqubo
|
||||
/types/svg-sprite-loader/ @rynclark
|
||||
/types/svg2png/ @hansrwindhoff @sccgithub
|
||||
/types/svg4everybody/ @BendingBender
|
||||
/types/svg4everybody/ @BendingBender @bryceosterhaus
|
||||
/types/svgjs.draggable/ @LiFeleSs
|
||||
/types/svgjs.resize/ @jkevingutierrez
|
||||
/types/svgo/ @bradleyayers @giladgray @Aankhen
|
||||
@@ -5314,7 +5367,7 @@
|
||||
/types/tcp-ping/ @stegano
|
||||
/types/tcp-port-used/ @gautejohan
|
||||
/types/teddy/ @lannonbr
|
||||
/types/tedious/ @rogierschouten @cjthompson @v-suhame
|
||||
/types/tedious/ @rogierschouten @cjthompson @v-suhame @guiampm
|
||||
/types/tedious-connection-pool/ @sandorfr
|
||||
/types/telebot/ @mariotsi
|
||||
/types/temp/ @DanielRosenwasser
|
||||
@@ -5386,7 +5439,7 @@
|
||||
/types/tldjs/ @geoffreak
|
||||
/types/tlds/ @ajshres
|
||||
/types/tmi.js/ @wpapsco
|
||||
/types/tmp/ @optical @Perlmint
|
||||
/types/tmp/ @optical @Perlmint @pluma
|
||||
/types/to-absolute-glob/ @ajafff
|
||||
/types/to-camel-case/ @j-f1
|
||||
/types/to-markdown/ @SuperPaintman
|
||||
@@ -5402,6 +5455,7 @@
|
||||
/types/topo/ @BendingBender
|
||||
/types/topojson/ @ricardo-mello @chenzhutian @denisname
|
||||
/types/topojson-client/ @denisname @ricardo-mello
|
||||
/types/topojson-server/ @ricardo-mello @chenzhutian @denisname @russellporter
|
||||
/types/topojson-simplify/ @denisname @ricardo-mello
|
||||
/types/topojson-specification/ @denisname
|
||||
/types/toposort/ @danwbyrne
|
||||
@@ -5410,6 +5464,7 @@
|
||||
/types/touch/ @mizunashi-mana @BendingBender
|
||||
/types/touch-events/ @kevinb7
|
||||
/types/tough-cookie/ @leonard-thieu @LiJinyao @no2chem
|
||||
/types/tough-cookie-file-store/ @forivall
|
||||
/types/tough-cookie-filestore/ @friedow
|
||||
/types/traceback/ @misak113
|
||||
/types/tracking/ @pimterry @bratter
|
||||
@@ -5431,7 +5486,7 @@
|
||||
/types/triplesec/ @threesquared
|
||||
/types/trouter/ @stahlstift
|
||||
/types/trunk8/ @niemyjski
|
||||
/types/trusted-types/ @vrana
|
||||
/types/trusted-types/ @vrana @engelsdamien
|
||||
/types/tryer/ @bengry
|
||||
/types/ts-nameof/ @dsherret
|
||||
/types/tspromise/ @soywiz
|
||||
@@ -5447,7 +5502,7 @@
|
||||
/types/twig/ @soywiz @enko @mtizziani
|
||||
/types/twilio/ @nickiannone @ashleybrener
|
||||
/types/twilio-common/ @gatimus
|
||||
/types/twilio-video/ @minddocdev @darioblanco
|
||||
/types/twilio-video/ @minddocdev @darioblanco @ktsn
|
||||
/types/twit/ @Volox @sapphiredev @abraham @siwalikm @plhery @justgoscha
|
||||
/types/twitch-ext/ @beheh @FedeDR
|
||||
/types/twitter/ @BendingBender
|
||||
@@ -5468,6 +5523,7 @@
|
||||
/types/typography/ @boyeborg @krzysztofzuraw @dominicfallows
|
||||
/types/typpy/ @BendingBender
|
||||
/types/tz-format/ @samverschueren
|
||||
/types/tz-offset/ @RMHonor
|
||||
/types/ua-parser-js/ @superduper @legendecas @MeLlamoPablo
|
||||
/types/ua-string/ @BendingBender
|
||||
/types/uglify-es/ @alan-agius4
|
||||
@@ -5492,11 +5548,13 @@
|
||||
/types/underscore.string/ @rygine
|
||||
/types/undertaker/ @tkqubo @GiedriusGrabauskas
|
||||
/types/undertaker-registry/ @GiedriusGrabauskas
|
||||
/types/ungap__url-search-params/ @nick121212 @nrathi
|
||||
/types/uni-app/ @dcloudio
|
||||
/types/unidecode/ @vfernandestoptal
|
||||
/types/uniq/ @hansrwindhoff
|
||||
/types/uniqid/ @idchlife
|
||||
/types/unique-hash-stream/ @BendingBender
|
||||
/types/unique-push-id/ @namick
|
||||
/types/unique-random/ @Kuniwak
|
||||
/types/unique-random-array/ @BendingBender
|
||||
/types/unique-string/ @BendingBender
|
||||
@@ -5544,11 +5602,13 @@
|
||||
/types/user-home/ @mhegazy
|
||||
/types/useragent/ @geoffreak
|
||||
/types/username/ @kayahr @krivachy
|
||||
/types/uslug/ @rokt33r
|
||||
/types/utf8/ @zelein
|
||||
/types/utif/ @smajl @nkprince007 @massic80
|
||||
/types/util-deprecate/ @BendingBender
|
||||
/types/util.promisify/ @adamvoss
|
||||
/types/utils-merge/ @chrootsu
|
||||
/types/utm/ @civilizeddev
|
||||
/types/uuid/ @iamolivinius @felipeochoa @cjbarth
|
||||
/types/uuid-1345/ @mugeso
|
||||
/types/uuid-js/ @mhegazy
|
||||
@@ -5564,7 +5624,7 @@
|
||||
/types/vali-date/ @SamVerschueren
|
||||
/types/valiant/ @whatasoda
|
||||
/types/valid-url/ @stevehipwell
|
||||
/types/validator/ @tgfjt @chrootsu @IOAyman @louy @kacepe @deptno @builtinnya @qqilihq
|
||||
/types/validator/ @tgfjt @chrootsu @IOAyman @louy @kacepe @deptno @builtinnya @qqilihq @keatz55
|
||||
/types/validatorjs/ @LKay @danmana @MatiasOlivera
|
||||
/types/vanilla-modal/ @samnau
|
||||
/types/vanilla-tilt/ @BrunnerLivio
|
||||
@@ -5671,7 +5731,7 @@
|
||||
/types/webgl2/ @nkemnitz @karhu
|
||||
/types/webidl2/ @saschanaz
|
||||
/types/webmidi/ @lostfictions
|
||||
/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @dennispg @christophehurpeau @ZSkycat @johnnyreilly @rwaskiewicz @kuehlein @grgur
|
||||
/types/webpack/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @dennispg @christophehurpeau @ZSkycat @johnnyreilly @rwaskiewicz @kuehlein @grgur @rubenspgcavalcante
|
||||
/types/webpack/v3/ @tkqubo @bumbleblym @bcherny @tommytroylin @mohsen1 @jcreamer898 @alan-agius4 @elliottsj @jason0x43 @christophehurpeau @rwaskiewicz @kuehlein
|
||||
/types/webpack-assets-manifest/ @FranklinWhale
|
||||
/types/webpack-bundle-analyzer/ @kryops
|
||||
@@ -5692,6 +5752,7 @@
|
||||
/types/webpack-merge/v0/ @deevus
|
||||
/types/webpack-node-externals/ @mtraynham
|
||||
/types/webpack-notifier/ @bumbleblym
|
||||
/types/webpack-plugin-serve/ @PlayMa256
|
||||
/types/webpack-serve/ @rynclark @Jokcy @ZSkycat
|
||||
/types/webpack-serve/v1/ @rynclark @Jokcy @ZSkycat
|
||||
/types/webpack-sources/ @e-cloud @chriseppstein
|
||||
@@ -5751,6 +5812,7 @@
|
||||
/types/wonder.js/ @yyc-git
|
||||
/types/word-extractor/ @saboya
|
||||
/types/word-list-json/ @dovidm
|
||||
/types/word-wrap/ @claasahl
|
||||
/types/word2vector/ @renekeijzer
|
||||
/types/wordcloud/ @joeskeen
|
||||
/types/wordpress__jest-console/ @mistic100
|
||||
@@ -5758,6 +5820,7 @@
|
||||
/types/wordwrap/ @ark120202
|
||||
/types/workbox-sw/ @wessberg
|
||||
/types/workbox-webpack-plugin/ @kgroat
|
||||
/types/workbox-webpack-plugin/v3/ @kgroat
|
||||
/types/worker-threads-pool/ @BendingBender
|
||||
/types/workerpool/ @Alorel
|
||||
/types/wpapi/ @guoyunhe
|
||||
@@ -5781,7 +5844,7 @@
|
||||
/types/xdg-basedir/ @tlaziuk
|
||||
/types/xml/ @YuJianrong
|
||||
/types/xml-parser/ @mhfrantz
|
||||
/types/xml2js/ @michelsalib @jasonrm @ccurrens @edwardhinkle @BehindTheMath @claasahl
|
||||
/types/xml2js/ @michelsalib @jasonrm @ccurrens @edwardhinkle @BehindTheMath @claasahl @redlickigrzegorz
|
||||
/types/xml2json/ @dolanmiu
|
||||
/types/xmlbuilder/ @wallymathieu @GaikwadPratik
|
||||
/types/xmldoc/ @Xstoudi @ajsheehan @notlaforge
|
||||
@@ -5803,7 +5866,7 @@
|
||||
/types/yandex-maps/ @Delagen @gastwork13
|
||||
/types/yandex-money-sdk/ @chrootsu
|
||||
/types/yar/ @SimonSchick
|
||||
/types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @steffenvv
|
||||
/types/yargs/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC @steffenvv @forivall
|
||||
/types/yargs/v11/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC
|
||||
/types/yargs/v10/ @poelstra @mizunashi-mana @pushplay @jeffkenney @JimiC
|
||||
/types/yargs/v8/ @poelstra @mizunashi-mana @pushplay @jeffkenney
|
||||
|
||||
@@ -169,7 +169,7 @@ When a package [bundles](http://www.typescriptlang.org/docs/handbook/declaration
|
||||
|
||||
You can remove it by running `npm run not-needed -- typingsPackageName asOfVersion sourceRepoURL [libraryName]`.
|
||||
- `typingsPackageName`: This is the name of the directory to delete.
|
||||
- `asOfVersion`: A stub will be published to `@types/foo` with this version. Should be higher than any currently published version.
|
||||
- `asOfVersion`: A stub will be published to `@types/foo` with this version. Should be higher than any currently published version, and should be a version of `foo` on npm.
|
||||
- `sourceRepoURL`: This should point to the repository that contains the typings.
|
||||
- `libraryName`: Name of npm package that replaces the Definitely Typed types. Usually this is identical to "typingsPackageName", in which case you can omit it.
|
||||
|
||||
|
||||
@@ -1,7 +1,4 @@
|
||||
# Starter pipeline
|
||||
# Start with a minimal pipeline that you can customize to build and deploy your code.
|
||||
# Add steps that build, run tests, deploy, and more:
|
||||
# https://aka.ms/yaml
|
||||
# Learn more at: https://aka.ms/yaml
|
||||
jobs:
|
||||
- job: npmRunTest
|
||||
pool:
|
||||
@@ -16,7 +13,10 @@ jobs:
|
||||
inputs:
|
||||
verbose: false
|
||||
|
||||
- script: 'git checkout -- . && npm run test'
|
||||
- script: |
|
||||
git checkout -- . && npm run test
|
||||
if [[ $BUILD_REASON == "Schedule" ]]; then git config --global user.email "types@microsoft.com" && git config --global user.name "TypeScript Bot" && npm run update-codeowners; fi
|
||||
|
||||
displayName: 'npm run test'
|
||||
|
||||
trigger:
|
||||
|
||||
@@ -30,6 +30,18 @@
|
||||
"sourceRepoURL": "https://github.com/epoberezkin/ajv",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "all-keys",
|
||||
"typingsPackageName": "all-keys",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/all-keys",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "all-keys",
|
||||
"typingsPackageName": "all-property-names",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/all-keys",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "angular-touchspin",
|
||||
"typingsPackageName": "angular-touchspin",
|
||||
@@ -48,6 +60,12 @@
|
||||
"sourceRepoURL": "https://github.com/nonplus/angular-ui-router-uib-modal",
|
||||
"asOfVersion": "0.0.11"
|
||||
},
|
||||
{
|
||||
"libraryName": "ansi-escapes",
|
||||
"typingsPackageName": "ansi-escapes",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/ansi-escapes",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "antd",
|
||||
"typingsPackageName": "antd",
|
||||
@@ -84,6 +102,24 @@
|
||||
"sourceRepoURL": "https://github.com/ranisalt/node-argon2",
|
||||
"asOfVersion": "0.15.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "array-move",
|
||||
"typingsPackageName": "array-move",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/array-move",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "array-uniq",
|
||||
"typingsPackageName": "array-uniq",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/array-uniq",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "arrify",
|
||||
"typingsPackageName": "arrify",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/arrify",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "artyom.js",
|
||||
"typingsPackageName": "artyom.js",
|
||||
@@ -570,6 +606,12 @@
|
||||
"sourceRepoURL": "https://github.com/eggjs/egg",
|
||||
"asOfVersion": "1.5.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "elastic-apm-node",
|
||||
"typingsPackageName": "elastic-apm-node",
|
||||
"sourceRepoURL": "https://github.com/elastic/apm-agent-nodejs",
|
||||
"asOfVersion": "2.7.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "electron",
|
||||
"typingsPackageName": "electron",
|
||||
@@ -864,6 +906,12 @@
|
||||
"sourceRepoURL": "https://handsontable.com/",
|
||||
"asOfVersion": "0.35.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "hard-rejection",
|
||||
"typingsPackageName": "hard-rejection",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/hard-rejection",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "has-yarn",
|
||||
"typingsPackageName": "has-yarn",
|
||||
@@ -1002,6 +1050,18 @@
|
||||
"sourceRepoURL": "http://ionicframework.com",
|
||||
"asOfVersion": "3.19.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-absolute-url",
|
||||
"typingsPackageName": "is-absolute-url",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/is-absolute-url",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-fullwidth-code-point",
|
||||
"typingsPackageName": "is-fullwidth-code-point",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/is-fullwidth-code-point",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-lower-case",
|
||||
"typingsPackageName": "is-lower-case",
|
||||
@@ -1020,6 +1080,12 @@
|
||||
"sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object",
|
||||
"asOfVersion": "2.0.4"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-relative-url",
|
||||
"typingsPackageName": "is-relative-url",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/is-relative-url",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-scoped",
|
||||
"typingsPackageName": "is-scoped",
|
||||
@@ -1104,6 +1170,12 @@
|
||||
"sourceRepoURL": "https://github.com/jsplumb/jsPlumb",
|
||||
"asOfVersion": "2.5.7"
|
||||
},
|
||||
{
|
||||
"libraryName": "junk",
|
||||
"typingsPackageName": "junk",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/junk",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "keycloak-js",
|
||||
"typingsPackageName": "keycloak-js",
|
||||
@@ -1182,6 +1254,12 @@
|
||||
"sourceRepoURL": "https://github.com/brunolm/LinqSharp",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "load-json-file",
|
||||
"typingsPackageName": "load-json-file",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/load-json-file",
|
||||
"asOfVersion": "5.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "localforage",
|
||||
"typingsPackageName": "localforage",
|
||||
@@ -1218,6 +1296,12 @@
|
||||
"sourceRepoURL": "https://github.com/nomiddlename/log4js-node",
|
||||
"asOfVersion": "2.3.5"
|
||||
},
|
||||
{
|
||||
"libraryName": "loud-rejection",
|
||||
"typingsPackageName": "loud-rejection",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/loud-rejection",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "lower-case",
|
||||
"typingsPackageName": "lower-case",
|
||||
@@ -1332,6 +1416,12 @@
|
||||
"sourceRepoURL": "https://github.com/apache/couchdb-nano",
|
||||
"asOfVersion": "7.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "typescript",
|
||||
"typingsPackageName": "navigator-permissions",
|
||||
"sourceRepoURL": "https://developer.mozilla.org/en-US/docs/Web/API/Permissions",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ng-table",
|
||||
"typingsPackageName": "ng-table",
|
||||
@@ -1428,6 +1518,18 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/ora",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "os-name",
|
||||
"typingsPackageName": "os-name",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/os-name",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-all",
|
||||
"typingsPackageName": "p-all",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-all",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-any",
|
||||
"typingsPackageName": "p-any",
|
||||
@@ -1452,6 +1554,18 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-debounce",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-defer",
|
||||
"typingsPackageName": "p-defer",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-defer",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-do-whilst",
|
||||
"typingsPackageName": "p-do-whilst",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-do-whilst",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-each-series",
|
||||
"typingsPackageName": "p-each-series",
|
||||
@@ -1470,6 +1584,24 @@
|
||||
"sourceRepoURL": "https://github.com/kevva/p-every",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-forever",
|
||||
"typingsPackageName": "p-forever",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-forever",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-is-promise",
|
||||
"typingsPackageName": "p-is-promise",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-is-promise",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-lazy",
|
||||
"typingsPackageName": "p-lazy",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-lazy",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-limit",
|
||||
"typingsPackageName": "p-limit",
|
||||
@@ -1506,6 +1638,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-memoize",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-min-delay",
|
||||
"typingsPackageName": "p-min-delay",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-min-delay",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-one",
|
||||
"typingsPackageName": "p-one",
|
||||
@@ -1542,6 +1680,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-reduce",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-reflect",
|
||||
"typingsPackageName": "p-reflect",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-reflect",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-retry",
|
||||
"typingsPackageName": "p-retry",
|
||||
@@ -1554,6 +1698,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-series",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-settle",
|
||||
"typingsPackageName": "p-settle",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-settle",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-some",
|
||||
"typingsPackageName": "p-some",
|
||||
@@ -1572,12 +1722,48 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-throttle",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-time",
|
||||
"typingsPackageName": "p-time",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-time",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-timeout",
|
||||
"typingsPackageName": "p-timeout",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-timeout",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-times",
|
||||
"typingsPackageName": "p-times",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-times",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-try",
|
||||
"typingsPackageName": "p-try",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-try",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-wait-for",
|
||||
"typingsPackageName": "p-wait-for",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-wait-for",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-waterfall",
|
||||
"typingsPackageName": "p-waterfall",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-waterfall",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-whilst",
|
||||
"typingsPackageName": "p-whilst",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-whilst",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "package-json",
|
||||
"typingsPackageName": "package-json",
|
||||
@@ -2028,6 +2214,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/screenfull.js",
|
||||
"asOfVersion": "4.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "sdbm",
|
||||
"typingsPackageName": "sdbm",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/sdbm",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "sendgrid",
|
||||
"typingsPackageName": "sendgrid",
|
||||
@@ -2040,6 +2232,12 @@
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/sentence-case",
|
||||
"asOfVersion": "1.1.3"
|
||||
},
|
||||
{
|
||||
"libraryName": "serialize-error",
|
||||
"typingsPackageName": "serialize-error",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/serialize-error",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "sharp-timer",
|
||||
"typingsPackageName": "sharp-timer",
|
||||
@@ -2070,12 +2268,36 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/df",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "djb2a",
|
||||
"typingsPackageName": "sindresorhus__djb2a",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/djb2a",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "@sindresorhus/fnv1a",
|
||||
"typingsPackageName": "sindresorhus__fnv1a",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/fnv1a",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "@sindresorhus/slugify",
|
||||
"typingsPackageName": "sindresorhus__slugify",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/slugify",
|
||||
"asOfVersion": "0.9.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "@sindresorhus/string-hash",
|
||||
"typingsPackageName": "sindresorhus__string-hash",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/string-hash",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "@sindresorhus/to-milliseconds",
|
||||
"typingsPackageName": "sindresorhus__to-milliseconds",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/to-milliseconds",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "sip.js",
|
||||
"typingsPackageName": "sip.js",
|
||||
@@ -2142,12 +2364,36 @@
|
||||
"sourceRepoURL": "https://github.com/storybooks/storybook",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "string-length",
|
||||
"typingsPackageName": "string-length",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/string-length",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "string-width",
|
||||
"typingsPackageName": "string-width",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/string-width",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "strip-ansi",
|
||||
"typingsPackageName": "strip-ansi",
|
||||
"sourceRepoURL": "https://github.com/chalk/strip-ansi",
|
||||
"asOfVersion": "5.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "striptags",
|
||||
"typingsPackageName": "striptags",
|
||||
"sourceRepoURL": "https://github.com/ericnorris/striptags",
|
||||
"asOfVersion": "3.1.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "subsume",
|
||||
"typingsPackageName": "subsume",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/subsume",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Sugar",
|
||||
"typingsPackageName": "sugar",
|
||||
@@ -2208,6 +2454,12 @@
|
||||
"sourceRepoURL": "https://github.com/terser-js/terser",
|
||||
"asOfVersion": "3.12.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "three",
|
||||
"typingsPackageName": "three",
|
||||
"sourceRepoURL": "https://github.com/mrdoob/three.js",
|
||||
"asOfVersion": "0.103.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "time-span",
|
||||
"typingsPackageName": "time-span",
|
||||
@@ -2298,6 +2550,12 @@
|
||||
"sourceRepoURL": "https://github.com/blakeembrey/upper-case-first",
|
||||
"asOfVersion": "1.1.2"
|
||||
},
|
||||
{
|
||||
"libraryName": "urllib",
|
||||
"typingsPackageName": "urllib",
|
||||
"sourceRepoURL": "https://github.com/node-modules/urllib",
|
||||
"asOfVersion": "2.33.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "UUID.js",
|
||||
"typingsPackageName": "uuidjs",
|
||||
@@ -2340,6 +2598,12 @@
|
||||
"sourceRepoURL": "https://github.com/vuejs/vue-router",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "typescript",
|
||||
"typingsPackageName": "w3c-permissions",
|
||||
"sourceRepoURL": "https://www.w3.org/TR/permissions/",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "wait-for-localhost",
|
||||
"typingsPackageName": "wait-for-localhost",
|
||||
@@ -2352,6 +2616,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/wallpaper",
|
||||
"asOfVersion": "4.3.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "typescript",
|
||||
"typingsPackageName": "webassembly-js-api",
|
||||
"sourceRepoURL": "https://github.com/winksaville/test-webassembly-js-ts",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "webcola",
|
||||
"typingsPackageName": "webcola",
|
||||
@@ -2376,6 +2646,12 @@
|
||||
"sourceRepoURL": "http://webix.com",
|
||||
"asOfVersion": "5.1.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "webpack-chain",
|
||||
"typingsPackageName": "webpack-chain",
|
||||
"sourceRepoURL": "https://github.com/neutrinojs/webpack-chain",
|
||||
"asOfVersion": "5.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "winston",
|
||||
"typingsPackageName": "winston",
|
||||
@@ -2448,6 +2724,12 @@
|
||||
"sourceRepoURL": "none",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "yn",
|
||||
"typingsPackageName": "yn",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/yn",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "zapier-platform-core",
|
||||
"typingsPackageName": "zapier-platform-core",
|
||||
|
||||
1
types/aframe/index.d.ts
vendored
1
types/aframe/index.d.ts
vendored
@@ -235,7 +235,6 @@ export interface Scene extends Entity {
|
||||
behaviors: Behavior[];
|
||||
camera: THREE.Camera;
|
||||
canvas: HTMLCanvasElement;
|
||||
effect: THREE.VREffect;
|
||||
isMobile: boolean;
|
||||
object3D: THREE.Scene;
|
||||
renderer: THREE.WebGLRenderer;
|
||||
|
||||
6
types/aframe/package.json
Normal file
6
types/aframe/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"three": "^0.103.0"
|
||||
}
|
||||
}
|
||||
@@ -152,6 +152,9 @@ AirbnbPropTypes.range(0, 10);
|
||||
// $ExpectType Requireable<5>
|
||||
AirbnbPropTypes.range<5>(0, 10);
|
||||
|
||||
// $ExpectType Requireable<ReactLegacyRefLike<HTMLElement>>
|
||||
AirbnbPropTypes.ref();
|
||||
|
||||
// $ExpectType Requireable<string | null>
|
||||
AirbnbPropTypes.requiredBy('foo', PropTypes.string);
|
||||
// $ExpectType Validator<number>
|
||||
|
||||
10
types/airbnb-prop-types/index.d.ts
vendored
10
types/airbnb-prop-types/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for airbnb-prop-types 2.11
|
||||
// Type definitions for airbnb-prop-types 2.13
|
||||
// Project: https://github.com/airbnb/prop-types
|
||||
// Definitions by: Miles Johnson <https://github.com/milesj>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
@@ -24,6 +24,12 @@ export type ReactFunctionComponentLike = (...args: any[]) => PropTypes.ReactNode
|
||||
|
||||
export type ReactTypeLike = string | ReactClassComponentLike | ReactFunctionComponentLike;
|
||||
|
||||
export interface ReactRefLike<T> {
|
||||
readonly current: T | null;
|
||||
}
|
||||
|
||||
export type ReactLegacyRefLike<T> = ((instance: T | null) => void) | ReactRefLike<T>;
|
||||
|
||||
export interface Specifier<T = any> {
|
||||
max?: number;
|
||||
min?: number;
|
||||
@@ -156,6 +162,8 @@ export function range<T extends number>(min?: number, max?: number): PropTypes.R
|
||||
|
||||
export function range(min?: number, max?: number): PropTypes.Requireable<number>;
|
||||
|
||||
export function ref<T = HTMLElement>(): PropTypes.Requireable<ReactLegacyRefLike<T>>;
|
||||
|
||||
export function requiredBy<P>(
|
||||
requiredByPropName: string,
|
||||
propType: PropTypes.Validator<P>,
|
||||
|
||||
@@ -207,6 +207,11 @@ browser.on('error', function onError(err) {
|
||||
|
||||
browser.stop();
|
||||
|
||||
index.setSettings({ hitsPerPage: 10 }, () => {})
|
||||
index.setSettings({ hitsPerPage: 10 }, { forwardToReplicas: true }, () => {})
|
||||
index.setSettings({ hitsPerPage: 10 }).then(() => {})
|
||||
index.setSettings({ hitsPerPage: 10 }, { forwardToReplicas: true }).then(() => {})
|
||||
|
||||
index.browse("", {
|
||||
advancedSyntax: false,
|
||||
attributesToRetrieve: ['dogs']
|
||||
|
||||
12
types/algoliasearch/index.d.ts
vendored
12
types/algoliasearch/index.d.ts
vendored
@@ -7,6 +7,7 @@
|
||||
// Kai Eichinger <https://github.com/keichinger>
|
||||
// Nery Ortez <https://github.com/neryortez>
|
||||
// Antoine Rousseau <https://github.com/antoinerousseau>
|
||||
// Luca Pasquale <https://github.com/lucapasquale>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -359,6 +360,15 @@ declare namespace algoliasearch {
|
||||
settings: IndexSettings,
|
||||
cb: (err: Error, res: Task) => void
|
||||
): void;
|
||||
/**
|
||||
* Set an index settings
|
||||
* https://github.com/algolia/algoliasearch-client-js#set-settings---setsettings
|
||||
*/
|
||||
setSettings(
|
||||
settings: IndexSettings,
|
||||
extra: { forwardToReplicas: boolean },
|
||||
cb: (err: Error, res: Task) => void
|
||||
): void;
|
||||
/**
|
||||
* Clear cache of an index
|
||||
* https://github.com/algolia/algoliasearch-client-js#cache
|
||||
@@ -587,7 +597,7 @@ declare namespace algoliasearch {
|
||||
* Set an index settings
|
||||
* https://github.com/algolia/algoliasearch-client-js#set-settings---setsettings
|
||||
*/
|
||||
setSettings(settings: IndexSettings): Promise<Task>;
|
||||
setSettings(settings: IndexSettings, extra?: { forwardToReplicas: boolean }): Promise<Task>;
|
||||
/**
|
||||
* Search in an index
|
||||
* https://github.com/algolia/algoliasearch-client-js#search-in-an-index---search
|
||||
|
||||
4
types/align-text/index.d.ts
vendored
4
types/align-text/index.d.ts
vendored
@@ -31,7 +31,7 @@ interface Callback {
|
||||
| TransformResult;
|
||||
}
|
||||
|
||||
declare function align_text(text: string, fn: number | Callback): string;
|
||||
declare function align_text(text: string[], fn: number | Callback): string[];
|
||||
declare function align_text(text: string, fn?: number | Callback): string;
|
||||
declare function align_text(text: any[], fn?: number | Callback): string[];
|
||||
|
||||
export = align_text;
|
||||
|
||||
6
types/align-text/test/array.ts
Normal file
6
types/align-text/test/array.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import align from "align-text";
|
||||
|
||||
const text = ["abc", true, 123456, { hello: "world" }];
|
||||
align(text, 4);
|
||||
|
||||
align(text);
|
||||
@@ -4,3 +4,5 @@ const text = ["abc", "abc", "abc"];
|
||||
align(text, 4);
|
||||
|
||||
align("abc", 2);
|
||||
|
||||
align("abc");
|
||||
|
||||
@@ -17,6 +17,7 @@
|
||||
"index.d.ts",
|
||||
"test/simple.ts",
|
||||
"test/center-simple.ts",
|
||||
"test/center-complex.ts"
|
||||
"test/center-complex.ts",
|
||||
"test/array.ts"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -1,5 +0,0 @@
|
||||
import allKeys = require('all-keys');
|
||||
|
||||
allKeys(Symbol.prototype); // $ExpectType Set<string>
|
||||
allKeys(Symbol.prototype, { includeObjectPrototype: false }); // $ExpectType Set<string>
|
||||
allKeys(Symbol.prototype, { includeSymbols: false }); // $ExpectType Set<string>
|
||||
29
types/all-keys/index.d.ts
vendored
29
types/all-keys/index.d.ts
vendored
@@ -1,29 +0,0 @@
|
||||
// Type definitions for all-keys 2.0
|
||||
// Project: https://github.com/sindresorhus/all-keys#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = allKeys;
|
||||
|
||||
/**
|
||||
* Get all property keys of an object including non-enumerable and inherited ones.
|
||||
* Like [Reflect.ownKeys()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Reflect/ownKeys)
|
||||
* but traverses up the prototype-chain.
|
||||
*/
|
||||
declare function allKeys(obj: object, options?: allKeys.Options): Set<string>;
|
||||
|
||||
declare namespace allKeys {
|
||||
interface Options {
|
||||
/**
|
||||
* Include `Object.prototype` properties like `isPrototypeOf`.
|
||||
* @default true
|
||||
*/
|
||||
includeObjectPrototype?: boolean;
|
||||
/**
|
||||
* Include [Symbol](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) keys.
|
||||
* @default true
|
||||
*/
|
||||
includeSymbols?: boolean;
|
||||
}
|
||||
}
|
||||
@@ -1,4 +0,0 @@
|
||||
import allPropertyNames = require('all-property-names');
|
||||
|
||||
// $ExpectType Set<string>
|
||||
allPropertyNames(Symbol.prototype);
|
||||
9
types/all-property-names/index.d.ts
vendored
9
types/all-property-names/index.d.ts
vendored
@@ -1,9 +0,0 @@
|
||||
// Type definitions for all-property-names 1.0
|
||||
// Project: https://github.com/sindresorhus/all-property-names#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = allPropertyNames;
|
||||
|
||||
declare function allPropertyNames(input: object): Set<string>;
|
||||
108
types/amap-js-api-autocomplete/amap-js-api-autocomplete-tests.ts
Normal file
108
types/amap-js-api-autocomplete/amap-js-api-autocomplete-tests.ts
Normal file
@@ -0,0 +1,108 @@
|
||||
declare const div: HTMLDivElement;
|
||||
|
||||
const input = document.createElement('input');
|
||||
// $ExpectType Autocomplete
|
||||
const autoComplete = new AMap.Autocomplete();
|
||||
// $ExpectType Autocomplete
|
||||
new AMap.Autocomplete({});
|
||||
// $ExpectType Autocomplete
|
||||
new AMap.Autocomplete({
|
||||
type: 'type',
|
||||
city: 'city',
|
||||
datatype: 'all',
|
||||
citylimit: true,
|
||||
input: 'input',
|
||||
output: 'output',
|
||||
outPutDirAuto: true
|
||||
});
|
||||
// $ExpectType Autocomplete
|
||||
new AMap.Autocomplete({
|
||||
type: 'type',
|
||||
city: 'city',
|
||||
datatype: 'all',
|
||||
citylimit: true,
|
||||
input,
|
||||
output: div,
|
||||
outPutDirAuto: true
|
||||
});
|
||||
|
||||
autoComplete.search('keyword', (status, result) => {
|
||||
const temp: 'error' | 'complete' | 'no_data' = status;
|
||||
if (typeof result !== 'string') {
|
||||
// $ExpectType number
|
||||
result.count;
|
||||
// $ExpectType string
|
||||
result.info;
|
||||
// $ExpectType Tip[]
|
||||
result.tips;
|
||||
{
|
||||
const tip = result.tips[0];
|
||||
// $ExpectType string
|
||||
tip.adcode;
|
||||
// $ExpectType string
|
||||
tip.address;
|
||||
// $ExpectType any[]
|
||||
tip.city;
|
||||
// $ExpectType string
|
||||
tip.district;
|
||||
// $ExpectType string
|
||||
tip.id;
|
||||
// $ExpectType LngLat
|
||||
tip.location;
|
||||
// $ExpectType string
|
||||
tip.name;
|
||||
// $ExpectType string
|
||||
tip.typecode;
|
||||
}
|
||||
} else {
|
||||
// $ExpectType string
|
||||
result;
|
||||
}
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
autoComplete.setType();
|
||||
// $ExpectType void
|
||||
autoComplete.setType('type');
|
||||
|
||||
// $ExpectType void
|
||||
autoComplete.setCity();
|
||||
// $ExpectType void
|
||||
autoComplete.setCity('city');
|
||||
|
||||
// $ExpectType void
|
||||
autoComplete.setCityLimit(false);
|
||||
|
||||
autoComplete.on('complete', (event: AMap.Autocomplete.EventMap['complete']) => {
|
||||
// $ExpectType "complete"
|
||||
event.type;
|
||||
// $ExpectType string
|
||||
event.info;
|
||||
if ('tips' in event) {
|
||||
// $ExpectType number
|
||||
event.count;
|
||||
// $ExpectType Tip[]
|
||||
event.tips;
|
||||
}
|
||||
});
|
||||
|
||||
autoComplete.on('error', (event: AMap.Autocomplete.EventMap['error']) => {
|
||||
// $ExpectType "error"
|
||||
event.type;
|
||||
// $ExpectType string
|
||||
event.info;
|
||||
});
|
||||
|
||||
autoComplete.on('select', (event: AMap.Autocomplete.EventMap['select']) => {
|
||||
// $ExpectType "select"
|
||||
event.type;
|
||||
// $ExpectType Tip
|
||||
event.tip;
|
||||
});
|
||||
|
||||
autoComplete.on('choose', (event: AMap.Autocomplete.EventMap['choose']) => {
|
||||
// $ExpectType "choose"
|
||||
event.type;
|
||||
// $ExpectType Tip
|
||||
event.tip;
|
||||
});
|
||||
144
types/amap-js-api-autocomplete/index.d.ts
vendored
Normal file
144
types/amap-js-api-autocomplete/index.d.ts
vendored
Normal file
@@ -0,0 +1,144 @@
|
||||
// Type definitions for non-npm package amap-js-api-autocomplete 1.4
|
||||
// Project: https://lbs.amap.com/api/javascript-api/reference/search#m_AMap.Autocomplete
|
||||
// Definitions by: breeze9527 <https://github.com/breeze9527>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
/// <reference types="amap-js-api" />
|
||||
|
||||
declare namespace AMap {
|
||||
namespace Autocomplete {
|
||||
interface EventMap {
|
||||
complete: Event<'complete', SearchResult | { info: string }>;
|
||||
error: Event<'error', { info: string }>;
|
||||
select: Event<'select', { tip: Tip }>;
|
||||
choose: Event<'choose', { tip: Tip }>;
|
||||
}
|
||||
type DataType = 'all' | 'bus' | 'poi' | 'busline';
|
||||
interface Options {
|
||||
/**
|
||||
* 输入提示时限定POI类型,多个类型用“|”分隔
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* 输入提示时限定城市
|
||||
*/
|
||||
city?: string;
|
||||
/**
|
||||
* 返回的数据类型
|
||||
*/
|
||||
datatype?: DataType;
|
||||
/**
|
||||
* 是否强制限制在设置的城市内搜索
|
||||
*/
|
||||
citylimit?: boolean;
|
||||
/**
|
||||
* 指定输入框
|
||||
*/
|
||||
input?: string | HTMLInputElement;
|
||||
/**
|
||||
* 指定输出面板
|
||||
*/
|
||||
output?: string | HTMLDivElement;
|
||||
/**
|
||||
* 是否在input位于页面较下方的时候自动将输入面板显示在input上方以避免被遮挡
|
||||
*/
|
||||
outPutDirAuto?: boolean;
|
||||
|
||||
// internal
|
||||
closeResultOnScroll?: boolean;
|
||||
lang?: Lang;
|
||||
}
|
||||
interface Tip {
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 所属区域
|
||||
*/
|
||||
district: string;
|
||||
/**
|
||||
* 区域编码
|
||||
*/
|
||||
adcode: string;
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
address: string;
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
city: any[];
|
||||
/**
|
||||
* ID
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 坐标经纬度
|
||||
*/
|
||||
location: LngLat;
|
||||
/**
|
||||
* 类型编码
|
||||
*/
|
||||
typecode: string;
|
||||
}
|
||||
interface SearchResult {
|
||||
/**
|
||||
* 查询状态说明
|
||||
*/
|
||||
info: string;
|
||||
/**
|
||||
* 输入提示条数
|
||||
*/
|
||||
count: number;
|
||||
/**
|
||||
* 输入提示列表
|
||||
*/
|
||||
tips: Tip[];
|
||||
}
|
||||
type SearchStatus = 'complete' | 'error' | 'no_data';
|
||||
}
|
||||
class Autocomplete extends EventEmitter {
|
||||
/**
|
||||
* 输入提示,根据输入关键字提示匹配信息
|
||||
* @param options 选项
|
||||
*/
|
||||
constructor(options?: Autocomplete.Options);
|
||||
/**
|
||||
* 根据输入关键字提示匹配信息
|
||||
* @param keyword 关键字
|
||||
* @param callback 回调
|
||||
*/
|
||||
search(
|
||||
keyword: string,
|
||||
callback: (status: Autocomplete.SearchStatus, result: Autocomplete.SearchResult | string) => void
|
||||
): void;
|
||||
/**
|
||||
* 设置提示Poi类型,多个类型用“|”分隔
|
||||
* @param type Poi类型
|
||||
*/
|
||||
setType(type?: string): void;
|
||||
/**
|
||||
* 设置城市
|
||||
* @param city 城市
|
||||
*/
|
||||
setCity(city?: string): void;
|
||||
/**
|
||||
* 设置是否强制限制城市
|
||||
* @param cityLimit 是否强制限制城市
|
||||
*/
|
||||
setCityLimit(cityLimit: boolean): void;
|
||||
|
||||
// internal
|
||||
/**
|
||||
* 设置查询语言
|
||||
* @param lang 语言
|
||||
*/
|
||||
setLang(lang?: Lang): void;
|
||||
/**
|
||||
* 返回查询语言
|
||||
*/
|
||||
getLang(): Lang | undefined;
|
||||
}
|
||||
}
|
||||
@@ -1,11 +1,11 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"target": "es6",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noEmit": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
@@ -15,11 +15,10 @@
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"p-defer-tests.ts"
|
||||
"amap-js-api-autocomplete-tests.ts"
|
||||
]
|
||||
}
|
||||
}
|
||||
227
types/amap-js-api-geocoder/amap-js-api-geocoder-tests.ts
Normal file
227
types/amap-js-api-geocoder/amap-js-api-geocoder-tests.ts
Normal file
@@ -0,0 +1,227 @@
|
||||
declare const lnglat: AMap.LngLat;
|
||||
declare const lnglatTuple: [number, number];
|
||||
|
||||
// $ExpectType Geocoder
|
||||
new AMap.Geocoder();
|
||||
// $ExpectType Geocoder
|
||||
new AMap.Geocoder({});
|
||||
// $ExpectType Geocoder
|
||||
const geocoder = new AMap.Geocoder({
|
||||
city: 'city',
|
||||
radius: 10,
|
||||
lang: 'zh_cn',
|
||||
batch: true,
|
||||
extensions: 'all'
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
geocoder.getLocation('address', (status, result) => {
|
||||
// $ExpectType SearchStatus
|
||||
status;
|
||||
if (typeof result !== 'string') {
|
||||
const geocode = result.geocodes[0];
|
||||
const addressComponent = geocode.addressComponent;
|
||||
// $ExpectType string
|
||||
result.info;
|
||||
// $ExpectType string
|
||||
result.resultNum;
|
||||
// $ExpectType string
|
||||
geocode.adcode;
|
||||
// $ExpectType string
|
||||
geocode.formattedAddress;
|
||||
// $ExpectType string
|
||||
geocode.level;
|
||||
// $ExpectType LngLat
|
||||
geocode.location;
|
||||
// $ExpectType string
|
||||
addressComponent.building;
|
||||
// $ExpectType string
|
||||
addressComponent.building;
|
||||
// $ExpectType string
|
||||
addressComponent.buildingType;
|
||||
// $ExpectType string
|
||||
addressComponent.city;
|
||||
// $ExpectType string
|
||||
addressComponent.citycode;
|
||||
// $ExpectType string
|
||||
addressComponent.district;
|
||||
// $ExpectType string
|
||||
addressComponent.neighborhood;
|
||||
// $ExpectType string
|
||||
addressComponent.neighborhoodType;
|
||||
// $ExpectType string
|
||||
addressComponent.province;
|
||||
// $ExpectType string
|
||||
addressComponent.street;
|
||||
// $ExpectType string
|
||||
addressComponent.streetNumber;
|
||||
// $ExpectType string
|
||||
addressComponent.township;
|
||||
} else {
|
||||
// $ExpectType string
|
||||
result;
|
||||
}
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
geocoder.getLocation(['address', 'address'], () => { });
|
||||
|
||||
// $ExpectType void
|
||||
geocoder.setCity();
|
||||
// $ExpectType void
|
||||
geocoder.setCity('city');
|
||||
|
||||
// $ExpectType void
|
||||
geocoder.getAddress(lnglat, (status, result) => {
|
||||
// $ExpectType SearchStatus
|
||||
status;
|
||||
if (typeof result !== 'string') {
|
||||
// $ExpectType string
|
||||
result.info;
|
||||
|
||||
// $ExpectType ReGeocode
|
||||
const regeocode = result.regeocode;
|
||||
// $ExpectType ReGeocodeAddressComponent
|
||||
const addressComponent = regeocode.addressComponent;
|
||||
{
|
||||
// $ExpectType string
|
||||
addressComponent.adcode;
|
||||
// $ExpectType string
|
||||
addressComponent.building;
|
||||
// $ExpectType string
|
||||
addressComponent.buildingType;
|
||||
// $ExpectType BuildingArea[]
|
||||
addressComponent.businessAreas;
|
||||
{
|
||||
const businessArea = addressComponent.businessAreas[0];
|
||||
// $ExpectType string
|
||||
businessArea.id;
|
||||
// $ExpectType LngLat
|
||||
businessArea.location;
|
||||
// $ExpectType string
|
||||
businessArea.name;
|
||||
}
|
||||
// $ExpectType string
|
||||
addressComponent.city;
|
||||
// $ExpectType string
|
||||
addressComponent.citycode;
|
||||
// $ExpectType string
|
||||
addressComponent.district;
|
||||
// $ExpectType string
|
||||
addressComponent.neighborhood;
|
||||
// $ExpectType string
|
||||
addressComponent.neighborhoodType;
|
||||
// $ExpectType string
|
||||
addressComponent.province;
|
||||
// $ExpectType string
|
||||
addressComponent.street;
|
||||
// $ExpectType string
|
||||
addressComponent.streetNumber;
|
||||
// $ExpectType string
|
||||
addressComponent.township;
|
||||
}
|
||||
// $ExpectType Cross[]
|
||||
regeocode.crosses;
|
||||
{
|
||||
const cross = regeocode.crosses[0];
|
||||
// $ExpectType string
|
||||
cross.direction;
|
||||
// $ExpectType number
|
||||
cross.distance;
|
||||
// $ExpectType string
|
||||
cross.first_id;
|
||||
// $ExpectType string
|
||||
cross.first_name;
|
||||
// $ExpectType LngLat
|
||||
cross.location;
|
||||
// $ExpectType string
|
||||
cross.second_id;
|
||||
// $ExpectType string
|
||||
cross.second_name;
|
||||
}
|
||||
// $ExpectType string
|
||||
regeocode.formattedAddress;
|
||||
// $ExpectType ReGeocodePoi[]
|
||||
regeocode.pois;
|
||||
{
|
||||
const poi = regeocode.pois[0];
|
||||
// $ExpectType string
|
||||
poi.address;
|
||||
// $ExpectType string
|
||||
poi.businessArea;
|
||||
// $ExpectType string
|
||||
poi.direction;
|
||||
// $ExpectType number
|
||||
poi.distance;
|
||||
// $ExpectType string
|
||||
poi.id;
|
||||
// $ExpectType LngLat
|
||||
poi.location;
|
||||
// $ExpectType string
|
||||
poi.name;
|
||||
// $ExpectType string
|
||||
poi.tel;
|
||||
// $ExpectType string
|
||||
poi.type;
|
||||
}
|
||||
// $ExpectType Road[]
|
||||
regeocode.roads;
|
||||
{
|
||||
const road = regeocode.roads[0];
|
||||
// $ExpectType string
|
||||
road.direction;
|
||||
// $ExpectType number
|
||||
road.distance;
|
||||
// $ExpectType string
|
||||
road.id;
|
||||
// $ExpectType LngLat
|
||||
road.location;
|
||||
// $ExpectType string
|
||||
road.name;
|
||||
}
|
||||
} else {
|
||||
// $ExpectType string
|
||||
result;
|
||||
}
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
geocoder.getAddress([lnglat, lnglat], (status, result) => {
|
||||
if (typeof result !== 'string') {
|
||||
// $ExpectType ReGeocode[]
|
||||
result.regeocodes;
|
||||
}
|
||||
});
|
||||
|
||||
geocoder.on('error', (event: AMap.Geocoder.EventMap['error']) => {
|
||||
// $ExpectType "error"
|
||||
event.type;
|
||||
// $ExpectType string
|
||||
event.info;
|
||||
});
|
||||
|
||||
geocoder.on('complete', (event: AMap.Geocoder.EventMap['complete']) => {
|
||||
// $ExpectType "complete"
|
||||
event.type;
|
||||
if ('info' in event) {
|
||||
// $ExpectType string
|
||||
event.info;
|
||||
}
|
||||
if ('geocodes' in event) {
|
||||
// $ExpectType string
|
||||
event.resultNum;
|
||||
}
|
||||
if ('regeocode' in event) {
|
||||
// $ExpectType ReGeocode
|
||||
event.regeocode;
|
||||
}
|
||||
if ('regeocodes' in event) {
|
||||
// $ExpectType ReGeocode[]
|
||||
event.regeocodes;
|
||||
}
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
geocoder.getAddress(lnglatTuple, () => { });
|
||||
// $ExpectType void
|
||||
geocoder.getAddress([lnglatTuple, lnglatTuple], () => { });
|
||||
373
types/amap-js-api-geocoder/index.d.ts
vendored
Normal file
373
types/amap-js-api-geocoder/index.d.ts
vendored
Normal file
@@ -0,0 +1,373 @@
|
||||
// Type definitions for non-npm package amap-js-api-geocoder 1.4
|
||||
// Project: https://lbs.amap.com/api/javascript-api/reference/lnglat-to-address#m_AMap.Geocoder
|
||||
// Definitions by: breeze9527 <https://github.com/breeze9527>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
/// <reference types="amap-js-api" />
|
||||
|
||||
declare namespace AMap {
|
||||
namespace Geocoder {
|
||||
interface EventMap {
|
||||
complete: Event<'complete', GeocodeResult | {} | ReGeocodeResult | BatchReGeocodeResult>;
|
||||
error: Event<'error', { info: string }>;
|
||||
}
|
||||
interface Options {
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
city?: string;
|
||||
/**
|
||||
* 中心点
|
||||
*/
|
||||
radius?: number;
|
||||
/**
|
||||
* 语言类型
|
||||
*/
|
||||
lang?: Lang;
|
||||
/**
|
||||
* 是否批量查询
|
||||
*/
|
||||
batch?: boolean;
|
||||
/**
|
||||
* 是否返回详细信息
|
||||
*/
|
||||
extensions?: 'base' | 'all';
|
||||
}
|
||||
interface BuildingArea {
|
||||
/**
|
||||
* 唯一标识
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 中心点经纬度
|
||||
*/
|
||||
location: LngLat;
|
||||
}
|
||||
interface GeocodeAddressComponent {
|
||||
/**
|
||||
* 社区
|
||||
*/
|
||||
neighborhood: string;
|
||||
/**
|
||||
* 社区类型
|
||||
*/
|
||||
neighborhoodType: string;
|
||||
/**
|
||||
* 楼/大厦
|
||||
*/
|
||||
building: string;
|
||||
/**
|
||||
* 楼类型
|
||||
*/
|
||||
buildingType: string;
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
province: string;
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
city: string;
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
district: string;
|
||||
/**
|
||||
* 乡镇
|
||||
*/
|
||||
township: string;
|
||||
/**
|
||||
* 城市编码
|
||||
*/
|
||||
citycode: string;
|
||||
/**
|
||||
* 街道
|
||||
*/
|
||||
street: string;
|
||||
/**
|
||||
* 门牌号
|
||||
*/
|
||||
streetNumber: string;
|
||||
}
|
||||
interface ReGeocodeAddressComponent {
|
||||
/**
|
||||
* 城市编码
|
||||
*/
|
||||
citycode: string;
|
||||
/**
|
||||
* 区域编码
|
||||
*/
|
||||
adcode: string;
|
||||
/**
|
||||
* 所属商圈信息
|
||||
*/
|
||||
businessAreas: BuildingArea[];
|
||||
/**
|
||||
* 社区
|
||||
*/
|
||||
neighborhoodType: string;
|
||||
/**
|
||||
* 社区类型
|
||||
*/
|
||||
neighborhood: string;
|
||||
/**
|
||||
* 楼/大厦
|
||||
*/
|
||||
building: string;
|
||||
/**
|
||||
* 楼类型
|
||||
*/
|
||||
buildingType: string;
|
||||
/**
|
||||
* 街道
|
||||
*/
|
||||
street: string;
|
||||
/**
|
||||
* 门牌号
|
||||
*/
|
||||
streetNumber: string;
|
||||
/**
|
||||
* 省
|
||||
*/
|
||||
province: string;
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
city: string;
|
||||
/**
|
||||
* 区
|
||||
*/
|
||||
district: string;
|
||||
/**
|
||||
* 乡镇
|
||||
*/
|
||||
township: string;
|
||||
}
|
||||
interface Geocode {
|
||||
/**
|
||||
* 地址组成元素
|
||||
*/
|
||||
addressComponent: GeocodeAddressComponent;
|
||||
/**
|
||||
* 格式化地址
|
||||
*/
|
||||
formattedAddress: string;
|
||||
/**
|
||||
* 坐标
|
||||
*/
|
||||
location: LngLat;
|
||||
/**
|
||||
* 区域编码
|
||||
*/
|
||||
adcode: string;
|
||||
/**
|
||||
* 给定地址匹配级别
|
||||
*/
|
||||
level: string;
|
||||
}
|
||||
interface GeocodeResult {
|
||||
/**
|
||||
* 状态说明
|
||||
*/
|
||||
info: string;
|
||||
/**
|
||||
* 地理编码结果数目
|
||||
*/
|
||||
resultNum: string;
|
||||
/**
|
||||
* 地理编码结果
|
||||
*/
|
||||
geocodes: Geocode[];
|
||||
}
|
||||
interface Road {
|
||||
/**
|
||||
* 唯一标识
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 道路离查询点最近距离
|
||||
*/
|
||||
distance: number;
|
||||
/**
|
||||
* 道路上离查询点最近的点坐标
|
||||
*/
|
||||
location: LngLat;
|
||||
/**
|
||||
* 与查询点的相对方位
|
||||
*/
|
||||
direction: string;
|
||||
}
|
||||
interface Cross {
|
||||
/**
|
||||
* 道路离查询点最近距离
|
||||
*/
|
||||
distance: number;
|
||||
/**
|
||||
* 与查询点的相对方位
|
||||
*/
|
||||
direction: string;
|
||||
/**
|
||||
* 经纬度
|
||||
*/
|
||||
location: LngLat;
|
||||
/**
|
||||
* 第一条道路id
|
||||
*/
|
||||
first_id: string;
|
||||
/**
|
||||
* 第一条道路名称
|
||||
*/
|
||||
first_name: string;
|
||||
/**
|
||||
* 第二条道路id
|
||||
*/
|
||||
second_id: string;
|
||||
/**
|
||||
* 第二条道路名称
|
||||
*/
|
||||
second_name: string;
|
||||
}
|
||||
interface ReGeocodePoi {
|
||||
/**
|
||||
* 唯一标识
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 类型
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
tel: string;
|
||||
/**
|
||||
* 该Poi到请求坐标的距离
|
||||
*/
|
||||
distance: number;
|
||||
/**
|
||||
* 该Poi相对于请求坐标的方向
|
||||
*/
|
||||
direction: string;
|
||||
/**
|
||||
* 址信息
|
||||
*/
|
||||
address: string;
|
||||
/**
|
||||
* 坐标
|
||||
*/
|
||||
location: LngLat;
|
||||
/**
|
||||
* 商圈名称
|
||||
*/
|
||||
businessArea: string;
|
||||
}
|
||||
interface ReGeocodeAoi {
|
||||
adcode: string;
|
||||
area: string;
|
||||
id: string;
|
||||
location: LngLat;
|
||||
name: string;
|
||||
type: string;
|
||||
}
|
||||
interface ReGeocode {
|
||||
/**
|
||||
* 地址组成元素
|
||||
*/
|
||||
addressComponent: ReGeocodeAddressComponent;
|
||||
/**
|
||||
* 格式化地址
|
||||
*/
|
||||
formattedAddress: string;
|
||||
/**
|
||||
* 道路信息列表
|
||||
*/
|
||||
roads: Road[];
|
||||
/**
|
||||
* 道路路口列表
|
||||
*/
|
||||
crosses: Cross[];
|
||||
/**
|
||||
* 兴趣点列表
|
||||
*/
|
||||
pois: ReGeocodePoi[];
|
||||
aois?: ReGeocodeAoi[];
|
||||
}
|
||||
interface ReGeocodeResult {
|
||||
/**
|
||||
* 状态说明
|
||||
*/
|
||||
info: string;
|
||||
/**
|
||||
* 逆地理编码结果
|
||||
*/
|
||||
regeocode: ReGeocode;
|
||||
}
|
||||
interface BatchReGeocodeResult {
|
||||
/**
|
||||
* 状态说明
|
||||
*/
|
||||
info: string;
|
||||
/**
|
||||
* 批量逆地理编码结果
|
||||
*/
|
||||
regeocodes: ReGeocode[];
|
||||
}
|
||||
type SearchStatus = 'complete' | 'no_data' | 'error';
|
||||
}
|
||||
class Geocoder extends EventEmitter {
|
||||
/**
|
||||
* 地理编码与逆地理编码
|
||||
* @param options 选项
|
||||
*/
|
||||
constructor(options?: Geocoder.Options);
|
||||
/**
|
||||
* 根据给定的地址描述进行解析
|
||||
* @param address 地址描述
|
||||
* @param callback 回调
|
||||
*/
|
||||
getLocation(
|
||||
address: string | string[],
|
||||
callback: (status: Geocoder.SearchStatus, result: Geocoder.GeocodeResult | string) => void
|
||||
): void;
|
||||
/**
|
||||
* 设置地址描述所在城市
|
||||
* @param city 城市
|
||||
*/
|
||||
setCity(city?: string): void;
|
||||
/**
|
||||
* 根据给定坐标进行解析
|
||||
* @param location 坐标
|
||||
* @param callback 回调
|
||||
*/
|
||||
getAddress(
|
||||
location: LocationValue,
|
||||
callback: (status: Geocoder.SearchStatus, result: Geocoder.ReGeocodeResult | string) => void
|
||||
): void;
|
||||
/**
|
||||
* 根据给定坐标进行解析
|
||||
* @param locations 坐标数组
|
||||
* @param callback 回调
|
||||
*/
|
||||
getAddress(
|
||||
locations: LocationValue[],
|
||||
callback: (status: Geocoder.SearchStatus, result: Geocoder.BatchReGeocodeResult | string) => void
|
||||
): void;
|
||||
|
||||
// internal
|
||||
setLang(lang?: Lang): void;
|
||||
getLang(): Lang | undefined;
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noEmit": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
@@ -14,11 +15,10 @@
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"navigator-permissions-tests.ts"
|
||||
"amap-js-api-geocoder-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/amap-js-api-geocoder/tslint.json
Normal file
3
types/amap-js-api-geocoder/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
151
types/amap-js-api-geolocation/amap-js-api-geolocation-tests.ts
Normal file
151
types/amap-js-api-geolocation/amap-js-api-geolocation-tests.ts
Normal file
@@ -0,0 +1,151 @@
|
||||
declare const map: AMap.Map;
|
||||
// $ExpectType Geolocation
|
||||
new AMap.Geolocation();
|
||||
// $ExpectType Geolocation
|
||||
new AMap.Geolocation({});
|
||||
// $ExpectType Geolocation
|
||||
const geolocation = new AMap.Geolocation({
|
||||
enableHighAccuracy: true,
|
||||
timeout: 2000,
|
||||
noIpLocate: 0,
|
||||
noGeoLocation: 0,
|
||||
GeoLocationFirst: true,
|
||||
maximumAge: 100,
|
||||
convert: true,
|
||||
showButton: true,
|
||||
buttonDom: 'button',
|
||||
buttonPosition: 'LT',
|
||||
buttonOffset: new AMap.Pixel(10, 10),
|
||||
showMarker: true,
|
||||
markerOptions: {},
|
||||
showCircle: true,
|
||||
circleOptions: {},
|
||||
panToLocation: true,
|
||||
zoomToAccuracy: true,
|
||||
useNative: false,
|
||||
extensions: 'all'
|
||||
});
|
||||
|
||||
// $ExpectType boolean
|
||||
geolocation.isSupported();
|
||||
|
||||
// $ExpectType void
|
||||
geolocation.getCurrentPosition((status, result) => {
|
||||
const statusTemp: 'complete' | 'error' = status;
|
||||
if (result.status === 1) {
|
||||
// $ExpectType GeolocationResult
|
||||
result;
|
||||
// $ExpectType number | null
|
||||
result.accuracy;
|
||||
// $ExpectType ReGeocodeAddressComponent
|
||||
result.addressComponent;
|
||||
// $ExpectType ReGeocodeAoi[] | undefined
|
||||
result.aois;
|
||||
// $ExpectType Cross[]
|
||||
result.crosses;
|
||||
// $ExpectType string
|
||||
result.formattedAddress;
|
||||
// $ExpectType string
|
||||
result.info;
|
||||
// $ExpectType boolean
|
||||
result.isConverted;
|
||||
const type: 'ip' | 'html5' | 'sdk' = result.location_type;
|
||||
// $ExpectType string
|
||||
result.message;
|
||||
// $ExpectType ReGeocodePoi[]
|
||||
result.pois;
|
||||
// $ExpectType LngLat
|
||||
result.position;
|
||||
// $ExpectType Road[]
|
||||
result.roads;
|
||||
// $ExpectType 1
|
||||
result.status;
|
||||
} else {
|
||||
// $ExpectType ErrorStatus
|
||||
result;
|
||||
// $ExpectType string
|
||||
result.info;
|
||||
// $ExpectType string
|
||||
result.message;
|
||||
}
|
||||
});
|
||||
|
||||
const watchId: string | undefined | null = geolocation.watchPosition();
|
||||
|
||||
// $ExpectType string | undefined
|
||||
geolocation.clearWatch('id');
|
||||
|
||||
// $ExpectType void
|
||||
geolocation.getCityInfo((status, result) => {
|
||||
const statusTemp: 'complete' | 'error' = status;
|
||||
if (result.status === 1) {
|
||||
// $ExpectType CityResult
|
||||
result;
|
||||
// $ExpectType string
|
||||
result.adcode;
|
||||
// $ExpectType number[]
|
||||
result.bounds;
|
||||
// $ExpectType [number, number]
|
||||
result.center;
|
||||
// $ExpectType string
|
||||
result.city;
|
||||
// $ExpectType string
|
||||
result.citycode;
|
||||
// $ExpectType string
|
||||
result.country;
|
||||
// $ExpectType string
|
||||
result.info;
|
||||
// $ExpectType boolean
|
||||
result.isConverted;
|
||||
// $ExpectType string
|
||||
result.message;
|
||||
// $ExpectType string
|
||||
result.province;
|
||||
// $ExpectType 1
|
||||
result.status;
|
||||
} else {
|
||||
// $ExpectType ErrorStatus
|
||||
result;
|
||||
}
|
||||
});
|
||||
|
||||
geolocation.on('complete', (event: AMap.Geolocation.EventMap['complete']) => {
|
||||
// $ExpectType "complete"
|
||||
event.type;
|
||||
// $ExpectType number | null
|
||||
event.accuracy;
|
||||
// $ExpectType ReGeocodeAddressComponent
|
||||
event.addressComponent;
|
||||
// $ExpectType ReGeocodeAoi[] | undefined
|
||||
event.aois;
|
||||
// $ExpectType Cross[]
|
||||
event.crosses;
|
||||
// $ExpectType string
|
||||
event.formattedAddress;
|
||||
// $ExpectType string
|
||||
event.info;
|
||||
// $ExpectType boolean
|
||||
event.isConverted;
|
||||
const type: 'ip' | 'html5' | 'sdk' = event.location_type;
|
||||
// $ExpectType string
|
||||
event.message;
|
||||
// $ExpectType ReGeocodePoi[]
|
||||
event.pois;
|
||||
// $ExpectType LngLat
|
||||
event.position;
|
||||
// $ExpectType Road[]
|
||||
event.roads;
|
||||
// $ExpectType 1
|
||||
event.status;
|
||||
});
|
||||
|
||||
geolocation.on('error', (event: AMap.Geolocation.EventMap['error']) => {
|
||||
// $ExpectType "error"
|
||||
event.type;
|
||||
// $ExpectType string
|
||||
event.info;
|
||||
// $ExpectType string
|
||||
event.message;
|
||||
// $ExpectType 0
|
||||
event.status;
|
||||
});
|
||||
234
types/amap-js-api-geolocation/index.d.ts
vendored
Normal file
234
types/amap-js-api-geolocation/index.d.ts
vendored
Normal file
@@ -0,0 +1,234 @@
|
||||
// Type definitions for non-npm package amap-js-api-geolocation 1.4
|
||||
// Project: https://lbs.amap.com/api/javascript-api/reference/location#m_AMap.Geolocation
|
||||
// Definitions by: breeze9527 <https://github.com/breeze9527>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
/// <reference types="amap-js-api" />
|
||||
/// <reference types="amap-js-api-geocoder" />
|
||||
|
||||
declare namespace AMap {
|
||||
namespace Geolocation {
|
||||
interface EventMap {
|
||||
complete: Event<'complete', GeolocationResult>;
|
||||
error: Event<'error', ErrorStatus>;
|
||||
}
|
||||
type ButtonPosition = 'LT' | 'LB' | 'RT' | 'RB';
|
||||
interface Options {
|
||||
/**
|
||||
* 是否使用高精度
|
||||
*/
|
||||
enableHighAccuracy?: boolean;
|
||||
/**
|
||||
* 超时毫秒数
|
||||
*/
|
||||
timeout?: number;
|
||||
/**
|
||||
* 是否禁止使用IP定位,默认值为0
|
||||
* 0: 可以使用IP定位
|
||||
* 1: 手机设备禁止使用IP定位
|
||||
* 2: PC上禁止使用IP定位
|
||||
* 3: 所有终端禁止使用IP定位
|
||||
*/
|
||||
noIpLocate?: number;
|
||||
/**
|
||||
* 是否禁止使用浏览器Geolocation定位,默认值为0
|
||||
* 0: 可以使用浏览器定位
|
||||
* 1: 手机设备禁止使用浏览器定位
|
||||
* 2: PC上禁止使用浏览器定位
|
||||
* 3: 所有终端禁止使用浏览器定位
|
||||
*/
|
||||
noGeoLocation?: number;
|
||||
/**
|
||||
* 是否PC端为优先使用浏览器定位
|
||||
*/
|
||||
GeoLocationFirst?: boolean;
|
||||
/**
|
||||
* 缓存毫秒数
|
||||
*/
|
||||
maximumAge?: number;
|
||||
/**
|
||||
* 是否转换成高德坐标
|
||||
*/
|
||||
convert?: boolean;
|
||||
/**
|
||||
* 是否显示定位按钮
|
||||
*/
|
||||
showButton?: boolean;
|
||||
/**
|
||||
* 自定义定位按钮的内容
|
||||
*/
|
||||
buttonDom?: string | HTMLElement;
|
||||
/**
|
||||
* 定位按钮可停靠的位置
|
||||
* “LT”:左上角
|
||||
* “LB”:左下角
|
||||
* “RT”:右上角
|
||||
* “RB”:右下角
|
||||
*/
|
||||
buttonPosition?: ButtonPosition;
|
||||
/**
|
||||
* 按钮距离停靠位置的偏移量
|
||||
*/
|
||||
buttonOffset?: Pixel;
|
||||
/**
|
||||
* 定位成功时是否在定位位置显示一个Marker
|
||||
*/
|
||||
showMarker?: boolean;
|
||||
/**
|
||||
* 定位点Marker的配置
|
||||
*/
|
||||
markerOptions?: Marker.Options;
|
||||
/**
|
||||
* 定位成功并且有精度信息时,是否用一个圆圈circle表示精度范围
|
||||
*/
|
||||
showCircle?: boolean;
|
||||
/**
|
||||
* 定位点Circle的配置
|
||||
*/
|
||||
circleOptions?: Circle.Options;
|
||||
/**
|
||||
* 定位成功后,是否把定位得到的坐标设置为地图中心点坐标
|
||||
*/
|
||||
panToLocation?: boolean;
|
||||
/**
|
||||
* 定位成功且显示精度范围时,是否把地图视野调整到正好显示精度范围
|
||||
*/
|
||||
zoomToAccuracy?: boolean;
|
||||
/**
|
||||
* 是否使用安卓定位sdk用来进行定位
|
||||
*/
|
||||
useNative?: boolean;
|
||||
/**
|
||||
* 是否返回详细信息
|
||||
*/
|
||||
extensions?: 'all' | 'base';
|
||||
// internal
|
||||
convertUrl?: string;
|
||||
stopWhenPermissionDenied?: boolean;
|
||||
}
|
||||
type LocationType = 'html5' | 'ip' | 'sdk';
|
||||
interface GeolocationResult extends Geocoder.ReGeocode {
|
||||
/**
|
||||
* 定位结果
|
||||
*/
|
||||
position: LngLat;
|
||||
/**
|
||||
* 精度
|
||||
*/
|
||||
accuracy: number | null;
|
||||
/**
|
||||
* 定位结果的来源
|
||||
*/
|
||||
location_type: LocationType;
|
||||
/**
|
||||
* 形成当前定位结果的一些信息
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* 是否已经转换成高德坐标
|
||||
*/
|
||||
isConverted: boolean;
|
||||
/**
|
||||
* 状态信息
|
||||
*/
|
||||
info: string;
|
||||
/**
|
||||
* 状态码
|
||||
*/
|
||||
status: 1;
|
||||
}
|
||||
interface ErrorStatus {
|
||||
/**
|
||||
* 错误信息
|
||||
*/
|
||||
info: string;
|
||||
/**
|
||||
* 造成定位失败结果的一些有用信息
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* 状态码
|
||||
*/
|
||||
status: 0;
|
||||
}
|
||||
interface CityResult {
|
||||
/**
|
||||
* 区域编码
|
||||
*/
|
||||
adcode: string;
|
||||
/**
|
||||
* 范围
|
||||
*/
|
||||
bounds: number[];
|
||||
/**
|
||||
* 中心点
|
||||
*/
|
||||
center: [number, number];
|
||||
/**
|
||||
* 城市
|
||||
*/
|
||||
city: string;
|
||||
/**
|
||||
* 城市编码
|
||||
*/
|
||||
citycode: string;
|
||||
/**
|
||||
* 国家
|
||||
*/
|
||||
country: string;
|
||||
/**
|
||||
* 状态信息
|
||||
*/
|
||||
info: string;
|
||||
/**
|
||||
* 是否已转换成高德坐标
|
||||
*/
|
||||
isConverted: boolean;
|
||||
/**
|
||||
* 信息描述
|
||||
*/
|
||||
message: string;
|
||||
/**
|
||||
* 省份
|
||||
*/
|
||||
province: string;
|
||||
/**
|
||||
* 状态码
|
||||
*/
|
||||
status: 1;
|
||||
}
|
||||
type SearchStatus = 'complete' | 'error';
|
||||
}
|
||||
|
||||
class Geolocation extends EventEmitter {
|
||||
/**
|
||||
* 定位服务
|
||||
* @param options 选项
|
||||
*/
|
||||
constructor(options?: Geolocation.Options);
|
||||
/**
|
||||
* 是否支持浏览器定位
|
||||
*/
|
||||
isSupported(): boolean;
|
||||
/**
|
||||
* 获取用户当前的精确位置信息
|
||||
* @param callback 回调
|
||||
*/
|
||||
getCurrentPosition(callback: (status: Geolocation.SearchStatus, result: Geolocation.GeolocationResult | Geolocation.ErrorStatus) => void): void;
|
||||
/**
|
||||
* 使用浏览器定位接口监控当前位置,移动端有效
|
||||
*/
|
||||
watchPosition(): string | undefined | null;
|
||||
/**
|
||||
* 取消对当前位置的监控
|
||||
* @param wathcId 监控id
|
||||
*/
|
||||
clearWatch(wathcId: string): string | undefined;
|
||||
/**
|
||||
* 进行IP城市查询
|
||||
* @param callback 回调
|
||||
*/
|
||||
getCityInfo(callback: (status: Geolocation.SearchStatus, result: Geolocation.CityResult | Geolocation.ErrorStatus) => void): void;
|
||||
}
|
||||
}
|
||||
24
types/amap-js-api-geolocation/tsconfig.json
Normal file
24
types/amap-js-api-geolocation/tsconfig.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noEmit": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"amap-js-api-geolocation-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/amap-js-api-geolocation/tslint.json
Normal file
3
types/amap-js-api-geolocation/tslint.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
@@ -60,6 +60,16 @@ testArrayBounds.getCenter();
|
||||
|
||||
// $ExpectType Bounds
|
||||
const testBounds = new AMap.Bounds(lnglat, lnglat);
|
||||
// $ExpectType Bounds
|
||||
new AMap.Bounds();
|
||||
// $ExpectError
|
||||
new AMap.Bounds([0, 0, 0]);
|
||||
// $ExpectType Bounds
|
||||
new AMap.Bounds([0, 0, 0, 0]);
|
||||
// $ExpectType Bounds
|
||||
new AMap.Bounds(lnglatTuple, lnglatTuple);
|
||||
// $ExpectType Bounds
|
||||
new AMap.Bounds(0, 0, 0, 0);
|
||||
|
||||
// $ExpectType boolean
|
||||
testBounds.contains(lnglat);
|
||||
@@ -1968,7 +1978,7 @@ const testCircle = new AMap.Circle<CircleExtraData>({
|
||||
cursor: 'pointer',
|
||||
radius: 1000,
|
||||
strokeColor: '#FF0000',
|
||||
strokeOpcity: 0.8,
|
||||
strokeOpacity: 0.8,
|
||||
strokeWeight: 3,
|
||||
fillColor: '#00FF00',
|
||||
fillOpacity: 0.5,
|
||||
@@ -2004,7 +2014,7 @@ testCircle.setOptions({
|
||||
cursor: 'pointer',
|
||||
radius: 1000,
|
||||
strokeColor: '#FF0000',
|
||||
strokeOpcity: 0.8,
|
||||
strokeOpacity: 0.8,
|
||||
strokeWeight: 3,
|
||||
fillColor: '#00FF00',
|
||||
fillOpacity: 0.5,
|
||||
|
||||
15
types/amap-js-api/bounds.d.ts
vendored
15
types/amap-js-api/bounds.d.ts
vendored
@@ -1,11 +1,24 @@
|
||||
declare namespace AMap {
|
||||
class Bounds {
|
||||
/**
|
||||
* 地物对象的经纬度矩形范围。
|
||||
* @param coords 由西南角,东北角经纬度组成的数组,分别是[西南角经度, 西南角纬度,东北角经度,东北角纬度]
|
||||
*/
|
||||
constructor(coords?: [number, number, number, number]);
|
||||
/**
|
||||
* 地物对象的经纬度矩形范围。
|
||||
* @param southWest 西南角经纬度
|
||||
* @param northEast 东北角经纬度
|
||||
*/
|
||||
constructor(southWest: LngLat, northEast: LngLat);
|
||||
constructor(southWest: LocationValue, northEast: LocationValue);
|
||||
/**
|
||||
* 地物对象的经纬度矩形范围。
|
||||
* @param southWestLng 西南角经度
|
||||
* @param southWestLat 西南角纬度
|
||||
* @param northEastLng 东北角经度
|
||||
* @param northEastLat 东北角纬度
|
||||
*/
|
||||
constructor(southWestLng: number, southWestLat: number, northEastLng: number, northEastLat: number);
|
||||
/**
|
||||
* 指定点坐标是否在矩形范围内
|
||||
* @param point 制定坐标
|
||||
|
||||
22
types/amap-js-api/event.d.ts
vendored
22
types/amap-js-api/event.d.ts
vendored
@@ -8,10 +8,9 @@ declare namespace AMap {
|
||||
* @param once 触发一次
|
||||
* @param unshift 更改事件顺序
|
||||
*/
|
||||
on<E extends Event, C = this>(
|
||||
on<C = this>(
|
||||
eventName: string,
|
||||
// tslint:disable-next-line:no-unnecessary-generics
|
||||
handler: (this: C, event: E) => void,
|
||||
handler: (this: C, event: any) => void,
|
||||
context?: C,
|
||||
once?: boolean,
|
||||
unshift?: boolean
|
||||
@@ -22,10 +21,9 @@ declare namespace AMap {
|
||||
* @param handler 事件功能函数
|
||||
* @param context 事件上下文
|
||||
*/
|
||||
off<E extends Event, C = this>(
|
||||
off<C = this>(
|
||||
eventName: string,
|
||||
// tslint:disable-next-line
|
||||
handler: ((this: C, event: E) => void) | 'mv',
|
||||
handler: ((this: C, event: any) => void) | 'mv',
|
||||
context?: C
|
||||
): this;
|
||||
/**
|
||||
@@ -61,13 +59,11 @@ declare namespace AMap {
|
||||
* @param handler 事件功能函数
|
||||
* @param context 事件上下文
|
||||
*/
|
||||
function addListener<I extends EventEmitter, E extends Event, C = I>(
|
||||
function addListener<I extends EventEmitter, C = I>(
|
||||
// tslint:disable-next-line: no-unnecessary-generics
|
||||
instance: I,
|
||||
eventName: string,
|
||||
// tslint:disable-next-line: no-unnecessary-generics
|
||||
handler: (this: C, event: E) => void,
|
||||
// tslint:disable-next-line: no-unnecessary-generics
|
||||
handler: (this: C, event: any) => void,
|
||||
context?: C
|
||||
): EventListener<1>;
|
||||
/**
|
||||
@@ -77,13 +73,11 @@ declare namespace AMap {
|
||||
* @param handler 事件功能函数
|
||||
* @param context 事件上下文
|
||||
*/
|
||||
function addListenerOnce<I extends EventEmitter, E extends Event, C = I>(
|
||||
function addListenerOnce<I extends EventEmitter, C = I>(
|
||||
// tslint:disable-next-line: no-unnecessary-generics
|
||||
instance: I,
|
||||
eventName: string,
|
||||
// tslint:disable-next-line: no-unnecessary-generics
|
||||
handler: (this: C, event: E) => void,
|
||||
// tslint:disable-next-line: no-unnecessary-generics
|
||||
handler: (this: C, event: any) => void,
|
||||
context?: C
|
||||
): EventListener<1>;
|
||||
/**
|
||||
|
||||
2
types/amap-js-api/overlay/circle.d.ts
vendored
2
types/amap-js-api/overlay/circle.d.ts
vendored
@@ -13,7 +13,7 @@ declare namespace AMap {
|
||||
cursor?: string;
|
||||
radius?: number;
|
||||
strokeColor?: string;
|
||||
strokeOpcity?: number;
|
||||
strokeOpacity?: number;
|
||||
strokeWeight?: number;
|
||||
fillColor?: string;
|
||||
fillOpacity?: number;
|
||||
|
||||
20
types/amap-js-api/type-util.d.ts
vendored
20
types/amap-js-api/type-util.d.ts
vendored
@@ -1,12 +1,12 @@
|
||||
type Omit<T, E extends keyof T> = {
|
||||
[K in Exclude<keyof T, E>]: T[K]
|
||||
};
|
||||
declare namespace AMap {
|
||||
type Omit<T, E extends keyof T> = {
|
||||
[K in Exclude<keyof T, E>]: T[K]
|
||||
};
|
||||
|
||||
type OptionalKey<T> = { [K in keyof T]-?: undefined extends T[K] ? K : never }[keyof T];
|
||||
// type OmitUndefined<M> = Omit<M, { [K in keyof M]: M[K] extends undefined ? K : never }[keyof M]>;
|
||||
// type PickUndefined<M> = Omit<M, keyof OmitUndefined<M>>;
|
||||
type OptionalKey<T> = { [K in keyof T]-?: undefined extends T[K] ? K : never }[keyof T];
|
||||
|
||||
type Merge<O, T> =
|
||||
{ [K in Exclude<keyof O, keyof T | OptionalKey<O>>]-?: O[K]; } &
|
||||
{ [K in Extract<Exclude<keyof O, keyof T>, OptionalKey<O>>]?: O[K]; } &
|
||||
T;
|
||||
type Merge<O, T> =
|
||||
{ [K in Exclude<keyof O, keyof T | OptionalKey<O>>]-?: O[K]; } &
|
||||
{ [K in Extract<Exclude<keyof O, keyof T>, OptionalKey<O>>]?: O[K]; } &
|
||||
T;
|
||||
}
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
import * as ansi from "ansi-escapes";
|
||||
|
||||
console.log(ansi.cursorUp(2) + ansi.cursorLeft === "\u001B[2A\u001B[1000D");
|
||||
57
types/ansi-escapes/index.d.ts
vendored
57
types/ansi-escapes/index.d.ts
vendored
@@ -1,57 +0,0 @@
|
||||
// Type definitions for ansi-escapes 3.0
|
||||
// Project: https://github.com/sindresorhus/ansi-escapes
|
||||
// Definitions by: Rong Shen <https://github.com/jacobbubu>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
declare namespace Ansi {
|
||||
interface ImageOptions {
|
||||
width?: number;
|
||||
height?: number;
|
||||
preserveAspectRatio?: boolean;
|
||||
}
|
||||
|
||||
interface Term {
|
||||
setCwd(cwd: string): string;
|
||||
}
|
||||
|
||||
interface AnsiEscapes {
|
||||
cursorTo(x: number, y?: number): string;
|
||||
cursorMove(x: number, y?: number): string;
|
||||
cursorUp(count?: number): string;
|
||||
cursorDown(count?: number): string;
|
||||
cursorForward(count?: number): string;
|
||||
cursorBackward(count?: number): string;
|
||||
|
||||
cursorLeft: string;
|
||||
cursorSavePosition: string;
|
||||
cursorRestorePosition: string;
|
||||
cursorGetPosition: string;
|
||||
cursorNextLine: string;
|
||||
cursorPrevLine: string;
|
||||
cursorHide: string;
|
||||
cursorShow: string;
|
||||
|
||||
eraseLines(count: number): string;
|
||||
|
||||
eraseEndLine: string;
|
||||
eraseStartLine: string;
|
||||
eraseLine: string;
|
||||
eraseDown: string;
|
||||
eraseUp: string;
|
||||
eraseScreen: string;
|
||||
scrollUp: string;
|
||||
scrollDown: string;
|
||||
|
||||
clearScreen: string;
|
||||
beep: string;
|
||||
|
||||
link(text: string, url: string): string;
|
||||
image(buf: Buffer, opts?: ImageOptions): string;
|
||||
iTerm: Term;
|
||||
}
|
||||
}
|
||||
|
||||
declare const ansiEscapes: Ansi.AnsiEscapes;
|
||||
export = ansiEscapes;
|
||||
12010
types/arcgis-js-api/index.d.ts
vendored
12010
types/arcgis-js-api/index.d.ts
vendored
File diff suppressed because it is too large
Load Diff
@@ -1,8 +0,0 @@
|
||||
import arrayMove = require('array-move');
|
||||
|
||||
const input = ['a', 'b', 'c'];
|
||||
const input2 = [1, 2, 3];
|
||||
|
||||
arrayMove(input, 1, 2); // $ExpectType string[]
|
||||
arrayMove(input2, 1, 2); // $ExpectType number[]
|
||||
arrayMove.mut(input, 1, 2); // $ExpectType void
|
||||
27
types/array-move/index.d.ts
vendored
27
types/array-move/index.d.ts
vendored
@@ -1,27 +0,0 @@
|
||||
// Type definitions for array-move 1.0
|
||||
// Project: https://github.com/sindresorhus/array-move
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = arrayMove;
|
||||
|
||||
/**
|
||||
* Move an array item to a different position.
|
||||
*
|
||||
* @param from Index of item to move. If negative, it will begin that many elements from the end.
|
||||
* @param to Index of where to move the item. If negative, it will begin that many elements from the end.
|
||||
* @returns A new array with the item moved to the new position.
|
||||
*/
|
||||
declare function arrayMove<T extends any[]>(input: T, from: number, to: number): T;
|
||||
|
||||
declare namespace arrayMove {
|
||||
/**
|
||||
* Moves the item to the new position in the input array.
|
||||
*
|
||||
* Useful for huge arrays where absolute performance is needed.
|
||||
*
|
||||
* @param from Index of item to move. If negative, it will begin that many elements from the end.
|
||||
* @param to Index of where to move the item. If negative, it will begin that many elements from the end.
|
||||
*/
|
||||
function mut(input: any[], from: number, to: number): void;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
import arrayUniq = require("array-uniq");
|
||||
|
||||
arrayUniq([1, 1, 2, 3, 3]);
|
||||
|
||||
arrayUniq(["foo", "foo", "bar", "foo"]);
|
||||
8
types/array-uniq/index.d.ts
vendored
8
types/array-uniq/index.d.ts
vendored
@@ -1,8 +0,0 @@
|
||||
// Type definitions for array-uniq 1.0
|
||||
// Project: https://github.com/sindresorhus/array-uniq
|
||||
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function arrayUniq<T>(arr: T[]): T[];
|
||||
|
||||
export = arrayUniq;
|
||||
@@ -1,86 +0,0 @@
|
||||
import * as arrify from 'arrify';
|
||||
|
||||
/***************** arrify<T> *****************/
|
||||
arrify(null);
|
||||
arrify<number>(null);
|
||||
|
||||
arrify(undefined);
|
||||
arrify<number>(undefined);
|
||||
|
||||
arrify(1);
|
||||
arrify([2, 3]);
|
||||
|
||||
function test(val?: string | string[]) {
|
||||
arrify(val);
|
||||
}
|
||||
/***************** arrify<T> *****************/
|
||||
|
||||
/***************** arrify<T1, T2> *****************/
|
||||
arrify<number, string>(undefined); // returns []
|
||||
|
||||
arrify<number, string>(null); // returns []
|
||||
|
||||
{
|
||||
const value: number | string[] = 2018;
|
||||
arrify<number, string>(value); // returns [2018]
|
||||
}
|
||||
|
||||
{
|
||||
const value: number[] | string | string[] = ['a', 'b'];
|
||||
arrify<number, string>(value); // returns ['a', 'b']
|
||||
}
|
||||
/***************** arrify<T1, T2> *****************/
|
||||
|
||||
/***************** arrify<T1, T2, T3> *****************/
|
||||
arrify<boolean, number, string>(undefined);
|
||||
|
||||
arrify<boolean, number, string>(null);
|
||||
|
||||
{
|
||||
const value: boolean | number[] | string[] = true;
|
||||
// returns [true]
|
||||
arrify<boolean, number, string>(value);
|
||||
}
|
||||
|
||||
{
|
||||
const value: boolean[] | number | string[] = ['a', 'b'];
|
||||
// returns ['a', 'b']
|
||||
arrify<boolean, number, string>(value);
|
||||
}
|
||||
/***************** arrify<T1, T2, T3> *****************/
|
||||
|
||||
/***************** arrify<T1, T2, T3, T4> *****************/
|
||||
arrify<boolean, Date, number, string>(undefined);
|
||||
|
||||
arrify<boolean, Date, number, string>(null);
|
||||
|
||||
{
|
||||
const value: boolean | Date | number[] | string[] = new Date(2018);
|
||||
// returns [ new Date(2018) ]
|
||||
arrify<boolean, Date, number, string>(value);
|
||||
}
|
||||
|
||||
{
|
||||
const value: boolean[] | Date[] | number | string = [true, false];
|
||||
// returns [true, false]
|
||||
arrify<boolean, Date, number, string>(value);
|
||||
}
|
||||
/***************** arrify<T1, T2, T3, T4> *****************/
|
||||
|
||||
/***************** arrify<T1, T2, T3, T4, T5> *****************/
|
||||
arrify<boolean, Date, number, RegExp, string>(undefined);
|
||||
|
||||
arrify<boolean, Date, number, RegExp, string>(null);
|
||||
|
||||
{
|
||||
const value: boolean | Date | number[] | RegExp | string[] = /test/;
|
||||
// returns [ /test/ ]
|
||||
arrify<boolean, Date, number, RegExp, string>(value);
|
||||
}
|
||||
|
||||
{
|
||||
const value: boolean[] | Date[] | number | RegExp[] | string = [/test1/, /test2/];
|
||||
// returns [/test1/, /test2/]
|
||||
arrify<boolean, Date, number, RegExp, string>(value);
|
||||
}
|
||||
/***************** arrify<T1, T2, T3, T4, T5> *****************/
|
||||
91
types/arrify/index.d.ts
vendored
91
types/arrify/index.d.ts
vendored
@@ -1,91 +0,0 @@
|
||||
// Type definitions for arrify 1.0
|
||||
// Project: https://github.com/sindresorhus/arrify
|
||||
// Definitions by: AnJun Wang <https://github.com/wanganjun>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/**
|
||||
* @example
|
||||
* arrify(undefined) // returns []
|
||||
* @example
|
||||
* arrify(null) // returns []
|
||||
* @example
|
||||
* arrify(1) // returns [1]
|
||||
* @example
|
||||
* arrify([2, 3]) // returns [2, 3]
|
||||
*/
|
||||
declare function arrify<T>(val: undefined | null | T | T[]): T[];
|
||||
|
||||
/**
|
||||
* @example
|
||||
* // returns []
|
||||
* arrify<number, string>(undefined);
|
||||
* @example
|
||||
* // returns []
|
||||
* arrify<number, string>(null);
|
||||
* @example
|
||||
* let value: number | string[] = 2018;
|
||||
* // returns [2018]
|
||||
* arrify<number, string>(value);
|
||||
* @example
|
||||
* let value: number[] | string | string[] = ['a', 'b'];
|
||||
* // returns ['a', 'b']
|
||||
* arrify<number, string>(value);
|
||||
*/
|
||||
declare function arrify<T1, T2>(val: undefined | null | T1 | T2 | T1[] | T2[]): T1[] | T2[];
|
||||
|
||||
/**
|
||||
* @example
|
||||
* // returns []
|
||||
* arrify<boolean, number, string>(undefined);
|
||||
* @example
|
||||
* // returns []
|
||||
* arrify<boolean, number, string>(null);
|
||||
* @example
|
||||
* let value: boolean | number[] | string[] = true;
|
||||
* // returns [true]
|
||||
* arrify<boolean, number, string>(value);
|
||||
* @example
|
||||
* let value: boolean[] | number | string[] = ['a', 'b'];
|
||||
* // returns ['a', 'b']
|
||||
* arrify<boolean, number, string>(value);
|
||||
*/
|
||||
declare function arrify<T1, T2, T3>(val: undefined | null | T1 | T2 | T3 | T1[] | T2[] | T3[]): T1[] | T2[] | T3[];
|
||||
|
||||
/**
|
||||
* @example
|
||||
* // returns []
|
||||
* arrify<boolean, Date, number, string>(undefined);
|
||||
* @example
|
||||
* // returns []
|
||||
* arrify<boolean, Date, number, string>(null);
|
||||
* @example
|
||||
* let value: boolean | Date | number[] | string[] = new Date(2018);
|
||||
* // returns [ new Date(2018) ]
|
||||
* arrify<boolean, Date, number, string>(value);
|
||||
* @example
|
||||
* let value: boolean[] | Date[] | number | string = [true, false];
|
||||
* // returns [true, false]
|
||||
* arrify<boolean, Date, number, string>(value);
|
||||
*/
|
||||
declare function arrify<T1, T2, T3, T4>(val: undefined | null | T1 | T2 | T3 | T4 | T1[] | T2[] | T3[] | T4[]): T1[] | T2[] | T3[] | T4[];
|
||||
|
||||
/**
|
||||
* @example
|
||||
* // returns []
|
||||
* arrify<boolean, Date, number, RegExp, string>(undefined);
|
||||
* @example
|
||||
* // returns []
|
||||
* arrify<boolean, Date, number, RegExp, string>(null);
|
||||
* @example
|
||||
* let value: boolean | Date | number[] | RegExp | string[] = /test/;
|
||||
* // returns [ /test/ ]
|
||||
* arrify<boolean, Date, number, RegExp, string>(value);
|
||||
* @example
|
||||
* let value: boolean[] | Date[] | number | RegExp[] | string = [/test1/, /test2/];
|
||||
* // returns [/test1/, /test2/]
|
||||
* arrify<boolean, Date, number, RegExp, string>(value);
|
||||
*/
|
||||
declare function arrify<T1, T2, T3, T4, T5>(val: undefined | null | T1 | T2 | T3 | T4 | T5 | T1[] | T2[] | T3[] | T4[] | T5[]): T1[] | T2[] | T3[] | T4[] | T5[];
|
||||
|
||||
declare namespace arrify {}
|
||||
export = arrify;
|
||||
@@ -7,6 +7,7 @@ const o: Options = {
|
||||
minTimeout: 3,
|
||||
maxTimeout: 4,
|
||||
randomize: true,
|
||||
forever: false,
|
||||
onRetry: (e: Error) => 42
|
||||
};
|
||||
|
||||
|
||||
15
types/async-retry/index.d.ts
vendored
15
types/async-retry/index.d.ts
vendored
@@ -1,8 +1,12 @@
|
||||
// Type definitions for async-retry 1.2
|
||||
// Type definitions for async-retry 1.4
|
||||
// Project: https://github.com/zeit/async-retry#readme
|
||||
// Definitions by: Albert Wu <https://github.com/albertywu>
|
||||
// Pablo Rodríguez <https://github.com/MeLlamoPablo>
|
||||
// Rafał Sawicki <https://github.com/rafsawicki>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { OperationOptions } from 'retry';
|
||||
|
||||
declare function AsyncRetry<A>(
|
||||
fn: AsyncRetry.RetryFunction<A>,
|
||||
@@ -10,13 +14,8 @@ declare function AsyncRetry<A>(
|
||||
): Promise<A>;
|
||||
|
||||
declare namespace AsyncRetry {
|
||||
interface Options {
|
||||
retries?: number;
|
||||
factor?: number;
|
||||
minTimeout?: number;
|
||||
maxTimeout?: number;
|
||||
randomize?: boolean;
|
||||
onRetry?: (e: Error) => any;
|
||||
interface Options extends OperationOptions {
|
||||
onRetry?: (e: Error, attempt: number) => any;
|
||||
}
|
||||
|
||||
type RetryFunction<A> = (bail: (e: Error) => void, attempt: number) => A|Promise<A>;
|
||||
|
||||
@@ -179,7 +179,7 @@ webAuth.popup.signupAndLogin({ email: "", password: "", connection: "" }, (err,
|
||||
// do something with data
|
||||
});
|
||||
|
||||
webAuth.login({username: 'bar', password: 'foo'}, (err, data) => {});
|
||||
webAuth.login({username: 'bar', password: 'foo', state: '1234'}, (err, data) => {});
|
||||
|
||||
webAuth.crossOriginAuthenticationCallback();
|
||||
|
||||
|
||||
18
types/auth0-js/index.d.ts
vendored
18
types/auth0-js/index.d.ts
vendored
@@ -1,8 +1,10 @@
|
||||
// Type definitions for Auth0.js 8.11
|
||||
// Type definitions for Auth0.js 9.10
|
||||
// Project: https://github.com/auth0/auth0.js
|
||||
// Definitions by: Adrian Chia <https://github.com/adrianchia>
|
||||
// Matt Durrant <https://github.com/mdurrant>
|
||||
// Peter Blazejewicz <https://github.com/peterblazejewicz>
|
||||
// Bartosz Kotrys <https://github.com/bkotrys>
|
||||
// Mark Nelissen <https://github.com/marknelissen>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -521,6 +523,7 @@ export interface AuthOptions {
|
||||
_disableDeprecationWarnings?: boolean;
|
||||
_sendTelemetry?: boolean;
|
||||
_telemetryInfo?: any;
|
||||
__tryLocalStorageFirst?: boolean;
|
||||
}
|
||||
|
||||
export interface PasswordlessAuthOptions {
|
||||
@@ -568,7 +571,9 @@ export type SpecErrorCodes =
|
||||
|
||||
export interface Auth0Error {
|
||||
error: LibErrorCodes | SpecErrorCodes | string;
|
||||
errorDescription: string;
|
||||
errorDescription?: string;
|
||||
// Auth0 is not consistent in the naming of the error description field
|
||||
error_description?: string;
|
||||
// Need to include non-intuitive error fields that Auth0 uses
|
||||
code?: string;
|
||||
description?: string;
|
||||
@@ -703,6 +708,15 @@ export interface CrossOriginLoginOptions {
|
||||
email?: string;
|
||||
password: string;
|
||||
realm?: string;
|
||||
domain?: string;
|
||||
clientID?: string;
|
||||
redirectUri?: string;
|
||||
responseType?: string;
|
||||
responseMode?: string;
|
||||
state?: string;
|
||||
nonce?: string;
|
||||
scope?: string;
|
||||
audience?: string;
|
||||
}
|
||||
|
||||
export interface LogoutOptions {
|
||||
|
||||
4
types/awesomplete/index.d.ts
vendored
4
types/awesomplete/index.d.ts
vendored
@@ -9,10 +9,10 @@
|
||||
declare class Awesomplete {
|
||||
constructor(input: Element | HTMLElement | string, o?: Awesomplete.Options);
|
||||
static all: any[];
|
||||
static $$(expr: string | NodeSelector, con?: any): NodeList;
|
||||
static $$(expr: string | ParentNode, con?: any): NodeList;
|
||||
static ITEM: (text: string, input: string) => HTMLElement;
|
||||
static $: {
|
||||
(expr: string|Element, con?: NodeSelector): string | Element;
|
||||
(expr: string|Element, con?: ParentNode): string | Element;
|
||||
regExpEscape(s: { replace(arg0: RegExp, arg1: string): void }): any;
|
||||
create(tag: string, o: any): HTMLElement;
|
||||
fire(target: EventTarget, type: string, properties: any): any;
|
||||
|
||||
5
types/aws-lambda/index.d.ts
vendored
5
types/aws-lambda/index.d.ts
vendored
@@ -27,7 +27,6 @@
|
||||
// Erik Dalén <https://github.com/dalen>
|
||||
// Loïk Gaonac'h <https://github.com/loikg>
|
||||
// Roberto Zen <https://github.com/skyzenr>
|
||||
// Richard Cornelissen <https://github.com/richardcornelissen>
|
||||
// Grzegorz Redlicki <https://github.com/redlickigrzegorz>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
@@ -565,10 +564,10 @@ export type StatementResource = MaybeStatementPrincipal & ({ Resource: string |
|
||||
export type StatementPrincipal = MaybeStatementResource & ({ Principal: PrincipalValue } | { NotPrincipal: PrincipalValue });
|
||||
/**
|
||||
* API Gateway CustomAuthorizer AuthResponse.PolicyDocument.Statement.
|
||||
* https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-lambda-authorizer-output.html
|
||||
* http://docs.aws.amazon.com/apigateway/latest/developerguide/use-custom-authorizer.html#api-gateway-custom-authorizer-output
|
||||
*/
|
||||
export interface AuthResponseContext {
|
||||
[name: string]: boolean | number | string;
|
||||
[name: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -20,7 +20,11 @@ const inTest = async (webDriver: WebDriver) => {
|
||||
.disableRules("rule")
|
||||
.disableRules(["rule", "rule"])
|
||||
.configure(spec)
|
||||
.analyze((internalResults: AxeAnalysis) => {});
|
||||
.analyze((err: Error | null, internalResults: AxeAnalysis) => {});
|
||||
|
||||
const deprecatedAnalysis: AxeAnalysis = await AxeBuilder(webDriver).analyze(
|
||||
(internalResults: AxeAnalysis) => {}
|
||||
);
|
||||
|
||||
const inapplicable: Result[] = analysis.inapplicable;
|
||||
const incomplete: Result[] = analysis.incomplete;
|
||||
|
||||
12
types/axe-webdriverjs/index.d.ts
vendored
12
types/axe-webdriverjs/index.d.ts
vendored
@@ -1,8 +1,9 @@
|
||||
// Type definitions for axe-webdriverjs 2.0
|
||||
// Type definitions for axe-webdriverjs 2.1
|
||||
// Project: https://github.com/dequelabs/axe-webdriverjs#readme
|
||||
// Definitions by: Joshua Goldberg <https://github.com/JoshuaKGoldberg>
|
||||
// Tyler Krupicka <https://github.com/tylerkrupicka>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
import { Result, RunOptions, Spec } from "axe-core";
|
||||
import { WebDriver } from "selenium-webdriver";
|
||||
@@ -16,6 +17,9 @@ export interface AxeAnalysis {
|
||||
violations: Result[];
|
||||
}
|
||||
|
||||
export type DeprecatedAnalyzeCallback = (results: AxeAnalysis) => void;
|
||||
export type AnalyzeCallback = (err: Error | null, results: AxeAnalysis) => void;
|
||||
|
||||
export interface AxeBuilder {
|
||||
/**
|
||||
* Includes a selector in analysis.
|
||||
@@ -74,7 +78,9 @@ export interface AxeBuilder {
|
||||
* Perform analysis and retrieve results.
|
||||
* @param callback Function to execute when analysis completes.
|
||||
*/
|
||||
analyze(callback: (results: AxeAnalysis) => void): Promise<AxeAnalysis>;
|
||||
analyze(
|
||||
callback?: AnalyzeCallback | DeprecatedAnalyzeCallback
|
||||
): Promise<AxeAnalysis>;
|
||||
}
|
||||
|
||||
export const AxeBuilder: {
|
||||
|
||||
14
types/axios-cancel/axios-cancel-tests.ts
Normal file
14
types/axios-cancel/axios-cancel-tests.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import axios, { AxiosPromise } from "axios";
|
||||
import axiosCancel from "axios-cancel";
|
||||
|
||||
axiosCancel(axios); // $ExpectType void
|
||||
|
||||
axios.get(
|
||||
'https://jsonplaceholder.typicode.com/users', {
|
||||
requestId: "test id"
|
||||
}
|
||||
);
|
||||
|
||||
axios.cancel("test id"); // $ExpectType void
|
||||
|
||||
axios.cancelAll(); // $ExpectType void
|
||||
29
types/axios-cancel/index.d.ts
vendored
Normal file
29
types/axios-cancel/index.d.ts
vendored
Normal file
@@ -0,0 +1,29 @@
|
||||
// Type definitions for axios-cancel 0.2
|
||||
// Project: https://github.com/thaerlabs/axios-cancel, https://www.npmjs.com/package/axios-cancel
|
||||
// Definitions by: TheDSCPL <https://github.com/TheDSCPL>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.9
|
||||
|
||||
import { AxiosStatic } from "axios";
|
||||
|
||||
declare module 'axios' {
|
||||
interface AxiosRequestConfig {
|
||||
requestId?: string;
|
||||
}
|
||||
interface AxiosStatic {
|
||||
cancel: (requestId: string) => void;
|
||||
cancelAll: () => void;
|
||||
}
|
||||
}
|
||||
|
||||
interface AxiosCancelOptions {
|
||||
/**
|
||||
* Enables logging
|
||||
* default: false
|
||||
*/
|
||||
debug: boolean;
|
||||
}
|
||||
|
||||
declare function axiosCancel(axiosStatic: AxiosStatic, options?: AxiosCancelOptions): void;
|
||||
|
||||
export default axiosCancel;
|
||||
6
types/axios-cancel/package.json
Normal file
6
types/axios-cancel/package.json
Normal file
@@ -0,0 +1,6 @@
|
||||
{
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
"axios": "0.15.2"
|
||||
}
|
||||
}
|
||||
23
types/axios-cancel/tsconfig.json
Normal file
23
types/axios-cancel/tsconfig.json
Normal file
@@ -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",
|
||||
"axios-cancel-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/babel__core/index.d.ts
vendored
1
types/babel__core/index.d.ts
vendored
@@ -19,6 +19,7 @@ export {
|
||||
t as types,
|
||||
template,
|
||||
traverse,
|
||||
NodePath,
|
||||
Visitor
|
||||
};
|
||||
|
||||
|
||||
@@ -16,3 +16,8 @@ const red = bn.toRed(ctx);
|
||||
const newRed = red.redAdd(new BN(1));
|
||||
newRed.cmp(bn);
|
||||
newRed.fromRed();
|
||||
|
||||
const expected = new BN(0x4020);
|
||||
const actualArray = new BN([0x40, 0x20]);
|
||||
const actualUint8Array = new BN(new Uint8Array([0x40, 0x20]));
|
||||
const actualString = new BN('0x4020');
|
||||
|
||||
4
types/bn.js/index.d.ts
vendored
4
types/bn.js/index.d.ts
vendored
@@ -25,12 +25,12 @@ interface ReductionContext {
|
||||
|
||||
declare class BN {
|
||||
constructor(
|
||||
number: number | string | number[] | Buffer | BN,
|
||||
number: number | string | number[] | Uint8Array | Buffer | BN,
|
||||
base?: number | 'hex',
|
||||
endian?: Endianness
|
||||
);
|
||||
constructor(
|
||||
number: number | string | number[] | Buffer | BN,
|
||||
number: number | string | number[] | Uint8Array | Buffer | BN,
|
||||
endian?: Endianness
|
||||
)
|
||||
|
||||
|
||||
29
types/burns/burns-tests.ts
Normal file
29
types/burns/burns-tests.ts
Normal file
@@ -0,0 +1,29 @@
|
||||
import burns from 'burns';
|
||||
|
||||
interface OrderData {
|
||||
userName: string;
|
||||
orderId: string;
|
||||
}
|
||||
|
||||
function handleEverything() {
|
||||
console.log('Do absolutely nothing! 😄');
|
||||
}
|
||||
|
||||
function sendEmail(message: string) {
|
||||
console.log(message);
|
||||
}
|
||||
|
||||
function sendOrderShippedEmail(data: OrderData) {
|
||||
sendEmail(`Hi ${data.userName}, Your order ${data.orderId} has been shipped`);
|
||||
}
|
||||
|
||||
burns.configure({
|
||||
defaultHandler: handleEverything
|
||||
});
|
||||
burns.registerEvents({
|
||||
newPurchase: sendOrderShippedEmail
|
||||
});
|
||||
burns.dispatch('newPurchase', {
|
||||
userName: 'Johnny',
|
||||
orderId: 'rand'
|
||||
});
|
||||
23
types/burns/index.d.ts
vendored
Normal file
23
types/burns/index.d.ts
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
// Type definitions for burns 2.0
|
||||
// Project: https://github.com/shalvah/burns#readme
|
||||
// Definitions by: Timothy Onyiuke <https://github.com/timolinn>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
declare const _Burns: Burns;
|
||||
|
||||
export interface Config {
|
||||
defaultHandler?: any;
|
||||
broadcaster?: any;
|
||||
pusher?: any;
|
||||
}
|
||||
|
||||
declare class Burns {
|
||||
configure(config?: Config): this;
|
||||
|
||||
registerEvents(newEvents: Record<string, any>): this;
|
||||
|
||||
dispatch(eventName: string, eventData?: Record<string, any>, exclude?: { exclude?: any }): this;
|
||||
}
|
||||
|
||||
export default _Burns;
|
||||
@@ -19,6 +19,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"w3c-permissions-tests.ts"
|
||||
"burns-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -11,7 +11,8 @@
|
||||
"types": [],
|
||||
"paths": {
|
||||
"d3-scale": ["d3-scale/v1"],
|
||||
"d3": ["d3/v4"]
|
||||
"d3": ["d3/v4"],
|
||||
"d3-array": ["d3-array/v1"]
|
||||
},
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
|
||||
@@ -86,3 +86,9 @@ max.setFullYear(new Date().getFullYear() + 15);
|
||||
date = chance.date({min, max});
|
||||
date = chance.date({min});
|
||||
date = chance.date({max});
|
||||
|
||||
const language: string = chance.locale();
|
||||
const region: string = chance.locale({region: true});
|
||||
|
||||
const languages: string = chance.locales();
|
||||
const regions: string = chance.locales({region: true});
|
||||
|
||||
9
types/chance/index.d.ts
vendored
9
types/chance/index.d.ts
vendored
@@ -1,8 +1,9 @@
|
||||
// Type definitions for Chance 1.0.16
|
||||
// Type definitions for Chance 1.0
|
||||
// Project: http://chancejs.com
|
||||
// Definitions by: Chris Bowdon <https://github.com/cbowdon>
|
||||
// Brice BERNARD <https://github.com/brikou>
|
||||
// Carlos Sanchez <https://github.com/cafesanu>
|
||||
// Colby M. White <https://github.com/colbywhite>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare namespace Chance {
|
||||
@@ -91,6 +92,8 @@ declare namespace Chance {
|
||||
depth(opts?: Options): number;
|
||||
geohash(opts?: Options): string;
|
||||
latitude(opts?: Options): number;
|
||||
locale(opts?: LocaleOptions): string;
|
||||
locales(opts?: LocaleOptions): string;
|
||||
longitude(opts?: Options): number;
|
||||
phone(opts?: Options): string;
|
||||
postal(): string;
|
||||
@@ -193,6 +196,10 @@ declare namespace Chance {
|
||||
max?: Date;
|
||||
}
|
||||
|
||||
interface LocaleOptions {
|
||||
region: boolean;
|
||||
}
|
||||
|
||||
interface Month {
|
||||
name: string;
|
||||
short_name: string;
|
||||
|
||||
5
types/chart.js/index.d.ts
vendored
5
types/chart.js/index.d.ts
vendored
@@ -14,6 +14,7 @@
|
||||
// Alexandros Dorodoulis <https://github.com/alexdor>
|
||||
// Manuel Heidrich <https://github.com/mahnuh>
|
||||
// Conrad Holtzhausen <https://github.com/Conrad777>
|
||||
// Adrián Caballero <https://github.com/adripanico>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -146,8 +147,8 @@ declare namespace Chart {
|
||||
}
|
||||
|
||||
interface ChartTooltipItem {
|
||||
xLabel?: string;
|
||||
yLabel?: string;
|
||||
xLabel?: string | number;
|
||||
yLabel?: string | number;
|
||||
datasetIndex?: number;
|
||||
index?: number;
|
||||
}
|
||||
|
||||
5
types/chrome/index.d.ts
vendored
5
types/chrome/index.d.ts
vendored
@@ -5242,6 +5242,9 @@ declare namespace chrome.runtime {
|
||||
version: string;
|
||||
}
|
||||
|
||||
/** Result of the update check. */
|
||||
export type RequestUpdateCheckStatus = 'throttled' | 'no_update' | 'update_available';
|
||||
|
||||
export interface PortDisconnectEvent extends chrome.events.Event<(port: Port) => void> { }
|
||||
|
||||
export interface PortMessageEvent extends chrome.events.Event<(message: any, port: Port) => void> { }
|
||||
@@ -5518,7 +5521,7 @@ declare namespace chrome.runtime {
|
||||
* Parameter status: Result of the update check. One of: "throttled", "no_update", or "update_available"
|
||||
* Optional parameter details: If an update is available, this contains more information about the available update.
|
||||
*/
|
||||
export function requestUpdateCheck(callback: (status: string, details?: UpdateCheckDetails) => void): void;
|
||||
export function requestUpdateCheck(callback: (status: RequestUpdateCheckStatus, details?: UpdateCheckDetails) => void): void;
|
||||
/**
|
||||
* Restart the ChromeOS device when the app runs in kiosk mode. Otherwise, it's no-op.
|
||||
* @since Chrome 32.
|
||||
|
||||
@@ -620,6 +620,7 @@ function test_filter() {
|
||||
allowed = filter.allow('rule', 'name', false);
|
||||
|
||||
var apply: boolean = filter.applyTo(CKEDITOR.htmlParser.fragment.fromHtml('string'), true, false, 1);
|
||||
apply = filter.applyTo(new CKEDITOR.htmlParser.element('name', null));
|
||||
apply = filter.applyTo(new CKEDITOR.htmlParser.element('name', null), true, false, 1);
|
||||
|
||||
var checked: boolean = filter.check(style);
|
||||
|
||||
2
types/ckeditor/index.d.ts
vendored
2
types/ckeditor/index.d.ts
vendored
@@ -1436,7 +1436,7 @@ declare namespace CKEDITOR {
|
||||
addFeature(feature: feature): boolean;
|
||||
addTransformations(transformations: Array<Array<string | filter.transformation>>): void;
|
||||
allow(newRules: filter.allowedContentRules, featureName?: string, overrideCustom?: boolean): boolean;
|
||||
applyTo(fragment: htmlParser.fragment | htmlParser.element, toHrml: boolean, transformOnly: boolean, enterMode: number): boolean;
|
||||
applyTo(fragment: htmlParser.fragment | htmlParser.element, toHtml?: boolean, transformOnly?: boolean, enterMode?: number): boolean;
|
||||
check(test: filter.contentRule, applyTransformations?: boolean, strictCheck?: boolean): boolean;
|
||||
checkFeature(feature: feature): boolean;
|
||||
clone(): filter;
|
||||
|
||||
47
types/codemirror/addon/edit/closebrackets.d.ts
vendored
Normal file
47
types/codemirror/addon/edit/closebrackets.d.ts
vendored
Normal file
@@ -0,0 +1,47 @@
|
||||
// Type definitions for CodeMirror
|
||||
// Project: https://github.com/codemirror/CodeMirror
|
||||
// Definitions by: ficristo <https://github.com/ficristo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_closebrackets
|
||||
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
interface AutoCloseBrackets {
|
||||
/**
|
||||
* String containing pairs of matching characters.
|
||||
*/
|
||||
pairs?: string;
|
||||
|
||||
/**
|
||||
* If the next character is in the string, opening a bracket should be auto-closed.
|
||||
*/
|
||||
closeBefore?: string;
|
||||
|
||||
/**
|
||||
* String containing chars that could do a triple quote.
|
||||
*/
|
||||
triples?: string;
|
||||
|
||||
/**
|
||||
* explode should be a similar string that gives the pairs of characters that, when enter is pressed between them, should have the second character also moved to its own line.
|
||||
*/
|
||||
explode?: string;
|
||||
|
||||
/**
|
||||
* By default, if the active mode has a closeBrackets property, that overrides the configuration given in the option.
|
||||
* But you can add an override property with a truthy value to override mode-specific configuration.
|
||||
*/
|
||||
override?: boolean;
|
||||
}
|
||||
|
||||
interface EditorConfiguration {
|
||||
/**
|
||||
* Will auto-close brackets and quotes when typed.
|
||||
* By default, it'll auto-close ()[]{}''"", but you can pass it a string similar to that (containing pairs of matching characters),
|
||||
* or an object with pairs and optionally explode properties to customize it.
|
||||
*/
|
||||
autoCloseBrackets?: AutoCloseBrackets | string;
|
||||
}
|
||||
}
|
||||
51
types/codemirror/addon/edit/closetag.d.ts
vendored
Normal file
51
types/codemirror/addon/edit/closetag.d.ts
vendored
Normal file
@@ -0,0 +1,51 @@
|
||||
// Type definitions for CodeMirror
|
||||
// Project: https://github.com/codemirror/CodeMirror
|
||||
// Definitions by: ficristo <https://github.com/ficristo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_closetag
|
||||
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
interface CommandActions {
|
||||
closeTag(cm: CodeMirror.Editor): void;
|
||||
}
|
||||
|
||||
interface AutoCloseTags {
|
||||
/**
|
||||
* Whether to autoclose when the '/' of a closing tag is typed. (default true)
|
||||
*/
|
||||
whenClosing?: boolean;
|
||||
|
||||
/**
|
||||
* Whether to autoclose the tag when the final '>' of an opening tag is typed. (default true)
|
||||
*/
|
||||
whenOpening?: boolean;
|
||||
|
||||
/**
|
||||
* An array of tag names that should not be autoclosed. (default is empty tags for HTML, none for XML)
|
||||
*/
|
||||
dontCloseTags?: Array<string>;
|
||||
|
||||
/**
|
||||
* An array of tag names that should, when opened, cause a
|
||||
* blank line to be added inside the tag, and the blank line and
|
||||
* closing line to be indented. (default is block tags for HTML, none for XML)
|
||||
*/
|
||||
indentTags?: Array<string>;
|
||||
|
||||
/**
|
||||
* An array of XML tag names that should be autoclosed with '/>'. (default is none)
|
||||
*/
|
||||
emptyTags: Array<string>;
|
||||
}
|
||||
|
||||
interface EditorConfiguration {
|
||||
/**
|
||||
* Will auto-close XML tags when '>' or '/' is typed.
|
||||
* Depends on the fold/xml-fold.js addon.
|
||||
*/
|
||||
autoCloseTags?: AutoCloseTags | boolean;
|
||||
}
|
||||
}
|
||||
42
types/codemirror/addon/edit/matchbrackets.d.ts
vendored
Normal file
42
types/codemirror/addon/edit/matchbrackets.d.ts
vendored
Normal file
@@ -0,0 +1,42 @@
|
||||
// Type definitions for CodeMirror
|
||||
// Project: https://github.com/marijnh/CodeMirror
|
||||
// Definitions by: Sixin Li <https://github.com/sixinli>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_matchbrackets
|
||||
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
interface MatchBrackets {
|
||||
/**
|
||||
* Only use the character after the start position, never the one before it.
|
||||
*/
|
||||
afterCursor?: boolean;
|
||||
|
||||
/**
|
||||
* Causes only matches where both brackets are at the same side of the start position to be considered.
|
||||
*/
|
||||
strict?: boolean;
|
||||
|
||||
/**
|
||||
* Stop after scanning this amount of lines without a successful match. Defaults to 1000.
|
||||
*/
|
||||
maxScanLines?: number;
|
||||
|
||||
/**
|
||||
* Ignore lines longer than this. Defaults to 10000.
|
||||
*/
|
||||
maxScanLineLength?: number;
|
||||
|
||||
/**
|
||||
* Don't highlight a bracket in a line longer than this. Defaults to 1000.
|
||||
*/
|
||||
maxHighlightLineLength?: number;
|
||||
}
|
||||
|
||||
interface EditorConfiguration {
|
||||
// When set to true or an options object, causes matching brackets to be highlighted whenever the cursor is next to them.
|
||||
matchBrackets?: MatchBrackets | boolean;
|
||||
}
|
||||
}
|
||||
32
types/codemirror/addon/edit/matchtags.d.ts
vendored
Normal file
32
types/codemirror/addon/edit/matchtags.d.ts
vendored
Normal file
@@ -0,0 +1,32 @@
|
||||
// Type definitions for CodeMirror
|
||||
// Project: https://github.com/codemirror/CodeMirror
|
||||
// Definitions by: ficristo <https://github.com/ficristo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_matchtags
|
||||
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
interface CommandActions {
|
||||
/**
|
||||
* You can bind a key to in order to jump to the tag matching the one under the cursor.
|
||||
*/
|
||||
toMatchingTag(cm: CodeMirror.Editor): void;
|
||||
}
|
||||
|
||||
interface MatchTags {
|
||||
/**
|
||||
* Highlight both matching tags.
|
||||
*/
|
||||
bothTags?: boolean;
|
||||
}
|
||||
|
||||
interface EditorConfiguration {
|
||||
/**
|
||||
* When enabled will cause the tags around the cursor to be highlighted (using the CodeMirror-matchingtag class).
|
||||
* Depends on the addon/fold/xml-fold.js addon.
|
||||
*/
|
||||
matchTags?: MatchTags | boolean;
|
||||
}
|
||||
}
|
||||
17
types/codemirror/addon/scroll/scrollpastend.d.ts
vendored
Normal file
17
types/codemirror/addon/scroll/scrollpastend.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
// Type definitions for CodeMirror
|
||||
// Project: https://github.com/codemirror/CodeMirror
|
||||
// Definitions by: ficristo <https://github.com/ficristo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// See docs https://github.com/codemirror/CodeMirror/blob/master/addon/scroll/scrollpastend.js
|
||||
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
interface EditorConfiguration {
|
||||
/**
|
||||
* When the end of the file is reached it allows you to keep scrolling so that your last few lines of code are not stuck at the bottom of the editor.
|
||||
*/
|
||||
scrollPastEnd?: boolean;
|
||||
}
|
||||
}
|
||||
55
types/codemirror/addon/search/match-highlighter.d.ts
vendored
Normal file
55
types/codemirror/addon/search/match-highlighter.d.ts
vendored
Normal file
@@ -0,0 +1,55 @@
|
||||
// Type definitions for CodeMirror
|
||||
// Project: https://github.com/codemirror/CodeMirror
|
||||
// Definitions by: ficristo <https://github.com/ficristo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_match-highlighter
|
||||
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
interface HighlightSelectionMatches {
|
||||
/**
|
||||
* Minimum amount of selected characters that triggers a highlight (default 2).
|
||||
*/
|
||||
minChars?: number;
|
||||
|
||||
/**
|
||||
* The style to be used to highlight the matches (default "matchhighlight", which will correspond to CSS class cm-matchhighlight).
|
||||
*/
|
||||
style?: string;
|
||||
|
||||
/**
|
||||
* Controls whether whitespace is trimmed from the selection.
|
||||
*/
|
||||
trim?: boolean;
|
||||
|
||||
/**
|
||||
* Can be set to true or to a regexp matching the characters that make up a word.
|
||||
*/
|
||||
showToken?: boolean | RegExp;
|
||||
|
||||
/**
|
||||
* Used to specify how much time to wait, in milliseconds, before highlighting the matches.
|
||||
*/
|
||||
delay: 100,
|
||||
|
||||
/**
|
||||
* If wordsOnly is enabled, the matches will be highlighted only if the selected text is a word.
|
||||
*/
|
||||
wordsOnly?: boolean;
|
||||
|
||||
/**
|
||||
* If annotateScrollbar is enabled, the occurences will be highlighted on the scrollbar via the matchesonscrollbar addon.
|
||||
*/
|
||||
annotateScrollbar?: boolean;
|
||||
}
|
||||
|
||||
interface EditorConfiguration {
|
||||
/**
|
||||
* Adds a highlightSelectionMatches option that can be enabled to highlight all instances of a currently selected word.
|
||||
* When enabled, it causes the current word to be highlighted when nothing is selected (defaults to off).
|
||||
*/
|
||||
highlightSelectionMatches?: HighlightSelectionMatches | boolean;
|
||||
}
|
||||
}
|
||||
25
types/codemirror/addon/selection/active-line.d.ts
vendored
Normal file
25
types/codemirror/addon/selection/active-line.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// Type definitions for CodeMirror
|
||||
// Project: https://github.com/codemirror/CodeMirror
|
||||
// Definitions by: ficristo <https://github.com/ficristo>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#active-line
|
||||
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
interface StyleActiveLine {
|
||||
/**
|
||||
* Controls whether single-line selections, or just cursor selections, are styled. Defaults to false (only cursor selections).
|
||||
*/
|
||||
nonEmpty: boolean;
|
||||
}
|
||||
|
||||
interface EditorConfiguration {
|
||||
/**
|
||||
* When enabled gives the wrapper of the line that contains the cursor the class CodeMirror-activeline,
|
||||
* adds a background with the class CodeMirror-activeline-background, and adds the class CodeMirror-activeline-gutter to the line's gutter space is enabled.
|
||||
*/
|
||||
styleActiveLine?: StyleActiveLine | boolean;
|
||||
}
|
||||
}
|
||||
15
types/codemirror/codemirror-matchbrackets.d.ts
vendored
15
types/codemirror/codemirror-matchbrackets.d.ts
vendored
@@ -1,15 +0,0 @@
|
||||
// Type definitions for CodeMirror
|
||||
// Project: https://github.com/marijnh/CodeMirror
|
||||
// Definitions by: Sixin Li <https://github.com/sixinli>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
// See docs https://codemirror.net/doc/manual.html#addon_matchbrackets
|
||||
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
interface EditorConfiguration {
|
||||
// when set to true, causes matching brackets to be highlighted whenever the cursor is next to them
|
||||
matchBrackets?: boolean;
|
||||
}
|
||||
}
|
||||
2
types/codemirror/codemirror-showhint.d.ts
vendored
2
types/codemirror/codemirror-showhint.d.ts
vendored
@@ -10,8 +10,6 @@
|
||||
import * as CodeMirror from "codemirror";
|
||||
|
||||
declare module "codemirror" {
|
||||
var commands: any;
|
||||
|
||||
/** Provides a framework for showing autocompletion hints. Defines editor.showHint, which takes an optional
|
||||
options object, and pops up a widget that allows the user to select a completion. Finding hints is done with
|
||||
a hinting functions (the hint option), which is a function that take an editor instance and options object,
|
||||
|
||||
226
types/codemirror/index.d.ts
vendored
226
types/codemirror/index.d.ts
vendored
@@ -17,12 +17,22 @@ declare function CodeMirror(callback: (host: HTMLElement) => void , options?: Co
|
||||
declare namespace CodeMirror {
|
||||
export var Doc : CodeMirror.DocConstructor;
|
||||
export var Pos: CodeMirror.PositionConstructor;
|
||||
export var StringStream: CodeMirror.StringStreamConstructor;
|
||||
export var Pass: {toString(): "CodeMirror.PASS"};
|
||||
|
||||
/** Find the column position at a given string index using a given tabsize. */
|
||||
function countColumn(line: string, index: number | null, tabSize: number): number;
|
||||
function fromTextArea(host: HTMLTextAreaElement, options?: EditorConfiguration): CodeMirror.EditorFromTextArea;
|
||||
|
||||
/** Split a string by new line. */
|
||||
function splitLines(text: string): Array<string>;
|
||||
|
||||
/** Check if a char is part of an alphabet. */
|
||||
function isWordChar(ch: string): boolean;
|
||||
|
||||
/** Call startState of the mode if available, otherwise return true */
|
||||
function startState(mode: CodeMirror.Mode<any>, a1?: any, a2?: any): any | boolean;
|
||||
|
||||
/** Compare two positions, return 0 if they are the same, a negative number when a is less, and a positive number otherwise. */
|
||||
function cmpPos(a: Position, b: Position): number;
|
||||
|
||||
@@ -283,7 +293,7 @@ declare namespace CodeMirror {
|
||||
|
||||
/** Scrolls the given element into view. pos is a { left , top , right , bottom } object, in editor-local coordinates.
|
||||
The margin parameter is optional. When given, it indicates the amount of pixels around the given area that should be made visible as well. */
|
||||
scrollIntoView(pos: { left: number; top: number; right: number; bottom: number; }, margin: number): void;
|
||||
scrollIntoView(pos: { left: number; top: number; right: number; bottom: number; }, margin?: number): void;
|
||||
|
||||
/** Scrolls the given element into view. pos is a { line, ch } object, in editor-local coordinates.
|
||||
The margin parameter is optional. When given, it indicates the amount of pixels around the given area that should be made visible as well. */
|
||||
@@ -291,19 +301,19 @@ declare namespace CodeMirror {
|
||||
|
||||
/** Scrolls the given element into view. pos is a { from, to } object, in editor-local coordinates.
|
||||
The margin parameter is optional. When given, it indicates the amount of pixels around the given area that should be made visible as well. */
|
||||
scrollIntoView(pos: { from: CodeMirror.Position, to: CodeMirror.Position }, margin: number): void;
|
||||
scrollIntoView(pos: { from: CodeMirror.Position, to: CodeMirror.Position }, margin?: number): void;
|
||||
|
||||
/** Returns an { left , top , bottom } object containing the coordinates of the cursor position.
|
||||
If mode is "local", they will be relative to the top-left corner of the editable document.
|
||||
If it is "page" or not given, they are relative to the top-left corner of the page.
|
||||
where is a boolean indicating whether you want the start(true) or the end(false) of the selection. */
|
||||
cursorCoords(where: boolean, mode?: CoordsMode): { left: number; top: number; bottom: number; };
|
||||
cursorCoords(where?: boolean, mode?: CoordsMode): { left: number; top: number; bottom: number; };
|
||||
|
||||
/** Returns an { left , top , bottom } object containing the coordinates of the cursor position.
|
||||
If mode is "local", they will be relative to the top-left corner of the editable document.
|
||||
If it is "page" or not given, they are relative to the top-left corner of the page.
|
||||
where specifies the precise position at which you want to measure. */
|
||||
cursorCoords(where: CodeMirror.Position, mode?: CoordsMode): { left: number; top: number; bottom: number; };
|
||||
cursorCoords(where?: CodeMirror.Position | null, mode?: CoordsMode): { left: number; top: number; bottom: number; };
|
||||
|
||||
/** Returns the position and dimensions of an arbitrary character. pos should be a { line , ch } object.
|
||||
If mode is "local", they will be relative to the top-left corner of the editable document.
|
||||
@@ -375,6 +385,10 @@ declare namespace CodeMirror {
|
||||
/** Tells you whether the editor's content can be edited by the user. */
|
||||
isReadOnly(): boolean;
|
||||
|
||||
/** Switches between overwrite and normal insert mode (when not given an argument),
|
||||
or sets the overwrite mode to a specific state (when given an argument). */
|
||||
toggleOverwrite(value?: boolean): void;
|
||||
|
||||
/** Runs the command with the given name on the editor. */
|
||||
execCommand(name: string): void;
|
||||
|
||||
@@ -465,6 +479,9 @@ declare namespace CodeMirror {
|
||||
on(eventName: DOMEvent, handler: (instance: CodeMirror.Editor, event: Event) => void ): void;
|
||||
off(eventName: DOMEvent, handler: (instance: CodeMirror.Editor, event: Event) => void ): void;
|
||||
|
||||
/** Fires when the overwrite flag is flipped. */
|
||||
on(eventName: "overwriteToggle", handler: (instance: CodeMirror.Editor, overwrite: boolean) => void): void;
|
||||
|
||||
/** Expose the state object, so that the Editor.state.completionActive property is reachable*/
|
||||
state: any;
|
||||
}
|
||||
@@ -677,6 +694,9 @@ declare namespace CodeMirror {
|
||||
Note that the widget node will become a descendant of nodes with CodeMirror-specific CSS classes, and those classes might in some cases affect it. */
|
||||
addLineWidget(line: any, node: HTMLElement, options?: CodeMirror.LineWidgetOptions): CodeMirror.LineWidget;
|
||||
|
||||
/** Remove the line widget */
|
||||
removeLineWidget(widget: CodeMirror.LineWidget): void;
|
||||
|
||||
/** Gets the mode object for the editor. Note that this is distinct from getOption("mode"), which gives you the mode specification,
|
||||
rather than the resolved, instantiated mode object. */
|
||||
getMode(): any;
|
||||
@@ -800,6 +820,8 @@ declare namespace CodeMirror {
|
||||
sticky?: string;
|
||||
}
|
||||
|
||||
type InputStyle = "textarea" | "contenteditable";
|
||||
|
||||
interface EditorConfiguration {
|
||||
/** string| The starting value of the editor. Can be a string, or a document object. */
|
||||
value?: any;
|
||||
@@ -875,12 +897,29 @@ declare namespace CodeMirror {
|
||||
*/
|
||||
scrollbarStyle?: string;
|
||||
|
||||
/**
|
||||
* When fixedGutter is on, and there is a horizontal scrollbar, by default the gutter will be visible to the left of this scrollbar.
|
||||
* If this option is set to true, it will be covered by an element with class CodeMirror-gutter-filler.
|
||||
*/
|
||||
coverGutterNextToScrollbar?: boolean;
|
||||
|
||||
/**
|
||||
* Selects the way CodeMirror handles input and focus.
|
||||
* The core library defines the "textarea" and "contenteditable" input models.
|
||||
* On mobile browsers, the default is "contenteditable". On desktop browsers, the default is "textarea".
|
||||
* Support for IME and screen readers is better in the "contenteditable" model.
|
||||
*/
|
||||
inputStyle?: InputStyle;
|
||||
|
||||
/** boolean|string. This disables editing of the editor content by the user. If the special value "nocursor" is given (instead of simply true), focusing of the editor is also disallowed. */
|
||||
readOnly?: any;
|
||||
|
||||
/**Whether the cursor should be drawn when a selection is active. Defaults to false. */
|
||||
showCursorWhenSelecting?: boolean;
|
||||
|
||||
/** When enabled, which is the default, doing copy or cut when there is no selection will copy or cut the whole lines that have cursors on them. */
|
||||
lineWiseCopyCut?: boolean;
|
||||
|
||||
/** The maximum number of undo levels that the editor stores. Defaults to 40. */
|
||||
undoDepth?: number;
|
||||
|
||||
@@ -918,6 +957,12 @@ declare namespace CodeMirror {
|
||||
/** Half - period in milliseconds used for cursor blinking. The default blink rate is 530ms. */
|
||||
cursorBlinkRate?: number;
|
||||
|
||||
/**
|
||||
* How much extra space to always keep above and below the cursor when
|
||||
* approaching the top or bottom of the visible view in a scrollable document. Default is 0.
|
||||
*/
|
||||
cursorScrollMargin?: number;
|
||||
|
||||
/** Determines the height of the cursor. Default is 1 , meaning it spans the whole height of the line.
|
||||
For some fonts (and by some tastes) a smaller height (for example 0.85),
|
||||
which causes the cursor to not reach all the way to the bottom of the line, looks better */
|
||||
@@ -1020,6 +1065,10 @@ declare namespace CodeMirror {
|
||||
shared?: boolean;
|
||||
}
|
||||
|
||||
interface StringStreamConstructor {
|
||||
new (text: string): StringStream;
|
||||
}
|
||||
|
||||
interface StringStream {
|
||||
lastColumnPos: number;
|
||||
lastColumnValue: number;
|
||||
@@ -1135,6 +1184,8 @@ declare namespace CodeMirror {
|
||||
* advances it past a token, and returns a style for that token. More advanced modes can also handle indentation for the language.
|
||||
*/
|
||||
interface Mode<T> {
|
||||
name?: string;
|
||||
|
||||
/**
|
||||
* This function should read one token from the stream it is given as an argument, optionally update its state,
|
||||
* and return a style string, or null for tokens that do not have to be styled. Multiple styles can be returned, separated by spaces.
|
||||
@@ -1222,6 +1273,173 @@ declare namespace CodeMirror {
|
||||
*/
|
||||
function overlayMode<T, S>(base: Mode<T>, overlay: Mode<S>, combine?: boolean): Mode<any>;
|
||||
|
||||
interface ModeMap {
|
||||
[modeName: string]: ModeFactory<any>;
|
||||
}
|
||||
|
||||
/**
|
||||
* Maps mode names to their constructors
|
||||
*/
|
||||
var modes: ModeMap;
|
||||
|
||||
function defineMIME(mime: string, modeSpec: any): void;
|
||||
|
||||
interface MimeModeMap {
|
||||
[mimeName: string]: any;
|
||||
}
|
||||
|
||||
/**
|
||||
* Maps MIME types to mode specs.
|
||||
*/
|
||||
var mimeModes: MimeModeMap;
|
||||
|
||||
interface CommandActions {
|
||||
/** Select the whole content of the editor. */
|
||||
selectAll(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** When multiple selections are present, this deselects all but the primary selection. */
|
||||
singleSelection(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Emacs-style line killing. Deletes the part of the line after the cursor. If that consists only of whitespace, the newline at the end of the line is also deleted. */
|
||||
killLine(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Deletes the whole line under the cursor, including newline at the end. */
|
||||
deleteLine(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete the part of the line before the cursor. */
|
||||
delLineLeft(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete the part of the line from the left side of the visual line the cursor is on to the cursor. */
|
||||
delWrappedLineLeft(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete the part of the line from the cursor to the right side of the visual line the cursor is on. */
|
||||
delWrappedLineRight(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Undo the last change. Note that, because browsers still don't make it possible for scripts to react to or customize the context menu, selecting undo (or redo) from the context menu in a CodeMirror instance does not work. */
|
||||
undo(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Redo the last undone change. */
|
||||
redo(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Undo the last change to the selection, or if there are no selection-only changes at the top of the history, undo the last change. */
|
||||
undoSelection(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Redo the last change to the selection, or the last text change if no selection changes remain. */
|
||||
redoSelection(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the start of the document. */
|
||||
goDocStart(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the end of the document. */
|
||||
goDocEnd(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the start of the line. */
|
||||
goLineStart(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move to the start of the text on the line, or if we are already there, to the actual start of the line (including whitespace). */
|
||||
goLineStartSmart(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the end of the line. */
|
||||
goLineEnd(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the right side of the visual line it is on. */
|
||||
goLineRight(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the left side of the visual line it is on. If this line is wrapped, that may not be the start of the line. */
|
||||
goLineLeft(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the left side of the visual line it is on. If that takes it to the start of the line, behave like goLineStartSmart. */
|
||||
goLineLeftSmart(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor up one line. */
|
||||
goLineUp(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move down one line. */
|
||||
goLineDown(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor up one screen, and scroll up by the same distance. */
|
||||
goPageUp(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor down one screen, and scroll down by the same distance. */
|
||||
goPageDown(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor one character left, going to the previous line when hitting the start of line. */
|
||||
goCharLeft(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor one character right, going to the next line when hitting the end of line. */
|
||||
goCharRight(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor one character left, but don't cross line boundaries. */
|
||||
goColumnLeft(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor one character right, don't cross line boundaries. */
|
||||
goColumnRight(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the start of the previous word. */
|
||||
goWordLeft(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move the cursor to the end of the next word. */
|
||||
goWordRight(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move to the left of the group before the cursor. A group is a stretch of word characters, a stretch of punctuation characters, a newline, or a stretch of more than one whitespace character. */
|
||||
goGroupLeft(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Move to the right of the group after the cursor (see above). */
|
||||
goGroupRight(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete the character before the cursor. */
|
||||
delCharBefore(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete the character after the cursor. */
|
||||
delCharAfter(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete up to the start of the word before the cursor. */
|
||||
delWordBefore(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete up to the end of the word after the cursor. */
|
||||
delWordAfter(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete to the left of the group before the cursor. */
|
||||
delGroupBefore(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Delete to the start of the group after the cursor. */
|
||||
delGroupAfter(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Auto-indent the current line or selection. */
|
||||
indentAuto(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Indent the current line or selection by one indent unit. */
|
||||
indentMore(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Dedent the current line or selection by one indent unit. */
|
||||
indentLess(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Insert a tab character at the cursor. */
|
||||
insertTab(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Insert the amount of spaces that match the width a tab at the cursor position would have. */
|
||||
insertSoftTab(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** If something is selected, indent it by one indent unit. If nothing is selected, insert a tab character. */
|
||||
defaultTabTab(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Swap the characters before and after the cursor. */
|
||||
transposeChars(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Insert a newline and auto-indent the new line. */
|
||||
newlineAndIndent(cm: CodeMirror.Editor): void;
|
||||
|
||||
/** Flip the overwrite flag. */
|
||||
toggleOverwrite(cm: CodeMirror.Editor): void;
|
||||
}
|
||||
|
||||
/**
|
||||
* Commands are parameter-less actions that can be performed on an editor.
|
||||
* Their main use is for key bindings.
|
||||
* Commands are defined by adding properties to the CodeMirror.commands object.
|
||||
*/
|
||||
var commands: CommandActions;
|
||||
|
||||
/**
|
||||
* async specifies that the lint process runs asynchronously. hasGutters specifies that lint errors should be displayed in the CodeMirror
|
||||
* gutter, note that you must use this in conjunction with [ "CodeMirror-lint-markers" ] as an element in the gutters argument on
|
||||
|
||||
6
types/codemirror/test/addon/edit/closebrackets.ts
Normal file
6
types/codemirror/test/addon/edit/closebrackets.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, {
|
||||
autoCloseBrackets: "()[]{}''\"\""
|
||||
});
|
||||
6
types/codemirror/test/addon/edit/closetag.ts
Normal file
6
types/codemirror/test/addon/edit/closetag.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, {
|
||||
autoCloseTags: true
|
||||
});
|
||||
@@ -1,4 +1,6 @@
|
||||
|
||||
|
||||
|
||||
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, { matchBrackets: true });
|
||||
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, {
|
||||
matchBrackets: true
|
||||
});
|
||||
6
types/codemirror/test/addon/edit/matchtags.ts
Normal file
6
types/codemirror/test/addon/edit/matchtags.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, {
|
||||
matchTags: { bothTags: true}
|
||||
});
|
||||
6
types/codemirror/test/addon/scroll/scrollpastend.ts
Normal file
6
types/codemirror/test/addon/scroll/scrollpastend.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, {
|
||||
scrollPastEnd: true
|
||||
});
|
||||
6
types/codemirror/test/addon/search/match-highlighter.ts
Normal file
6
types/codemirror/test/addon/search/match-highlighter.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, {
|
||||
highlightSelectionMatches: true
|
||||
});
|
||||
6
types/codemirror/test/addon/selection/active-line.ts
Normal file
6
types/codemirror/test/addon/selection/active-line.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
|
||||
|
||||
var myCodeMirror: CodeMirror.Editor = CodeMirror(document.body, {
|
||||
styleActiveLine: true
|
||||
});
|
||||
@@ -100,3 +100,7 @@ widget1.clear();
|
||||
widget2.clear();
|
||||
htmlElement1.remove();
|
||||
htmlElement2.remove();
|
||||
|
||||
CodeMirror.commands.newlineAndIndent(myCodeMirror);
|
||||
|
||||
let stringStream = new CodeMirror.StringStream("var myEditor;");
|
||||
|
||||
@@ -20,19 +20,31 @@
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"codemirror-comment.d.ts",
|
||||
"codemirror-matchbrackets.d.ts",
|
||||
"codemirror-panel.d.ts",
|
||||
"codemirror-runmode.d.ts",
|
||||
"codemirror-showhint.d.ts",
|
||||
"codemirror-tern.d.ts",
|
||||
"searchcursor.d.ts",
|
||||
"addon/edit/closebrackets.d.ts",
|
||||
"addon/edit/closetag.d.ts",
|
||||
"addon/edit/matchbrackets.d.ts",
|
||||
"addon/edit/matchtags.d.ts",
|
||||
"addon/scroll/scrollpastend.d.ts",
|
||||
"addon/search/match-highlighter.d.ts",
|
||||
"addon/selection/active-line.d.ts",
|
||||
"test/comment.ts",
|
||||
"test/index.ts",
|
||||
"test/matchbrackets.ts",
|
||||
"test/panel.ts",
|
||||
"test/runmode.ts",
|
||||
"test/searchcursor.ts",
|
||||
"test/showhint.ts",
|
||||
"test/tern.ts"
|
||||
"test/tern.ts",
|
||||
"test/addon/edit/closebrackets.ts",
|
||||
"test/addon/edit/closetag.ts",
|
||||
"test/addon/edit/matchbrackets.ts",
|
||||
"test/addon/edit/matchtags.ts",
|
||||
"test/addon/scroll/scrollpastend.ts",
|
||||
"test/addon/search/match-highlighter.ts",
|
||||
"test/addon/selection/active-line.ts"
|
||||
]
|
||||
}
|
||||
@@ -2,107 +2,107 @@ import * as coinbase from "coinbase";
|
||||
|
||||
const client = new coinbase.Client({ apiKey: "key", apiSecret: "secret", version: "2017-10-22" });
|
||||
|
||||
client.getAccounts({}, (error: Error, result: coinbase.Account[]): void => undefined);
|
||||
client.getAccounts({}, (error: Error | null, result: coinbase.Account[]): void => undefined);
|
||||
|
||||
client.getAccount("abcdef", (error: Error, account: coinbase.Account): void => {
|
||||
account.buy({ amount: "1", commit: false, currency: "BTC", payment_method: "abcdef" }, (error: Error, buy: coinbase.Buy): void => {
|
||||
buy.commit((error: Error, buy: coinbase.Buy): void => undefined);
|
||||
client.getAccount("abcdef", (error: Error | null, account: coinbase.Account): void => {
|
||||
account.buy({ amount: "1", commit: false, currency: "BTC", payment_method: "abcdef" }, (error: Error | null, buy: coinbase.Buy): void => {
|
||||
buy.commit((error: Error | null, buy: coinbase.Buy): void => undefined);
|
||||
});
|
||||
|
||||
account.createAddress({ name: "foo" }, (error: Error, address: coinbase.Address): void => {
|
||||
address.getTransactions({}, (error: Error, transactions: coinbase.Transaction[]): void => undefined);
|
||||
account.createAddress({ name: "foo" }, (error: Error | null, address: coinbase.Address): void => {
|
||||
address.getTransactions({}, (error: Error | null, transactions: coinbase.Transaction[]): void => undefined);
|
||||
});
|
||||
|
||||
account.delete((error: Error): void => undefined);
|
||||
account.delete((error: Error | null): void => undefined);
|
||||
|
||||
account.deposit({ amount: "1", commit: false, currency: "USD", payment_method: "abcdef" }, (error: Error, deposit: coinbase.Deposit): void => {
|
||||
deposit.commit((error: Error, deposit: coinbase.Deposit): void => undefined);
|
||||
account.deposit({ amount: "1", commit: false, currency: "USD", payment_method: "abcdef" }, (error: Error | null, deposit: coinbase.Deposit): void => {
|
||||
deposit.commit((error: Error | null, deposit: coinbase.Deposit): void => undefined);
|
||||
});
|
||||
|
||||
account.getAddress("abcdef", (error: Error, address: coinbase.Address): void => undefined);
|
||||
account.getAddress("abcdef", (error: Error | null, address: coinbase.Address): void => undefined);
|
||||
|
||||
account.getAddresses((error: Error, address: coinbase.Address[]): void => undefined);
|
||||
account.getAddresses((error: Error | null, address: coinbase.Address[]): void => undefined);
|
||||
|
||||
account.getBuy("abcdef", (error: Error, buy: coinbase.Buy): void => undefined);
|
||||
account.getBuy("abcdef", (error: Error | null, buy: coinbase.Buy): void => undefined);
|
||||
|
||||
account.getBuys(null, (error: Error, buy: coinbase.Buy[]): void => undefined);
|
||||
account.getBuys(null, (error: Error | null, buy: coinbase.Buy[]): void => undefined);
|
||||
|
||||
account.getDeposit("abcdef", (error: Error, deposit: coinbase.Deposit): void => undefined);
|
||||
account.getDeposit("abcdef", (error: Error | null, deposit: coinbase.Deposit): void => undefined);
|
||||
|
||||
account.getDeposits((error: Error, deposit: coinbase.Deposit[]): void => undefined);
|
||||
account.getDeposits((error: Error | null, deposit: coinbase.Deposit[]): void => undefined);
|
||||
|
||||
account.getSell("abcdef", (error: Error, deposit: coinbase.Sell): void => undefined);
|
||||
account.getSell("abcdef", (error: Error | null, deposit: coinbase.Sell): void => undefined);
|
||||
|
||||
account.getSells(null, (error: Error, deposit: coinbase.Sell[]): void => undefined);
|
||||
account.getSells(null, (error: Error | null, deposit: coinbase.Sell[]): void => undefined);
|
||||
|
||||
account.getTransaction("abcdef", (error: Error, deposit: coinbase.Transaction): void => undefined);
|
||||
account.getTransaction("abcdef", (error: Error | null, deposit: coinbase.Transaction): void => undefined);
|
||||
|
||||
account.getTransactions((error: Error, deposit: coinbase.Transaction[]): void => undefined);
|
||||
account.getTransactions((error: Error | null, deposit: coinbase.Transaction[]): void => undefined);
|
||||
|
||||
account.getWithdrawal("abcdef", (error: Error, deposit: coinbase.Withdrawal): void => undefined);
|
||||
account.getWithdrawal("abcdef", (error: Error | null, deposit: coinbase.Withdrawal): void => undefined);
|
||||
|
||||
account.getWithdrawals((error: Error, deposit: coinbase.Withdrawal[]): void => undefined);
|
||||
account.getWithdrawals((error: Error | null, deposit: coinbase.Withdrawal[]): void => undefined);
|
||||
|
||||
account.requestMoney(
|
||||
{ amount: "1", currency: "EUR", description: "foo", to: "bar", type: "request" },
|
||||
(error: Error, result: coinbase.Transaction) => undefined
|
||||
(error: Error | null, result: coinbase.Transaction) => undefined
|
||||
);
|
||||
account.requestMoney({ amount: "1", currency: "EUR", to: "bar", type: "request" }, (error: Error, tx: coinbase.Transaction) => {
|
||||
tx.cancel((error: Error, tx: coinbase.Transaction): void => undefined);
|
||||
tx.complete((error: Error, tx: coinbase.Transaction): void => undefined);
|
||||
tx.resend((error: Error, tx: coinbase.Transaction): void => undefined);
|
||||
account.requestMoney({ amount: "1", currency: "EUR", to: "bar", type: "request" }, (error: Error | null, tx: coinbase.Transaction) => {
|
||||
tx.cancel((error: Error | null, tx: coinbase.Transaction): void => undefined);
|
||||
tx.complete((error: Error | null, tx: coinbase.Transaction): void => undefined);
|
||||
tx.resend((error: Error | null, tx: coinbase.Transaction): void => undefined);
|
||||
});
|
||||
|
||||
account.sell(
|
||||
{ agree_btc_amount_varies: true, amount: "1", commit: true, currency: "BTC", payment_method: "abcdef", quote: true},
|
||||
(error: Error, sell: coinbase.Sell): void => {
|
||||
sell.commit((error: Error, sell: coinbase.Sell): void => undefined);
|
||||
(error: Error | null, sell: coinbase.Sell): void => {
|
||||
sell.commit((error: Error | null, sell: coinbase.Sell): void => undefined);
|
||||
}
|
||||
);
|
||||
account.sell(
|
||||
{ currency: "BTC", payment_method: "abcdef", total: "3"},
|
||||
(error: Error, sell: coinbase.Sell): void => {
|
||||
sell.commit((error: Error, sell: coinbase.Sell): void => undefined);
|
||||
(error: Error | null, sell: coinbase.Sell): void => {
|
||||
sell.commit((error: Error | null, sell: coinbase.Sell): void => undefined);
|
||||
}
|
||||
);
|
||||
|
||||
account.sendMoney(
|
||||
{ amount: "1", currency: "EUR", description: "foo", fee: "2", idem: "bar", to: "baz", type: "send" },
|
||||
(error: Error, result: coinbase.Transaction) => undefined
|
||||
(error: Error | null, result: coinbase.Transaction) => undefined
|
||||
);
|
||||
|
||||
account.setPrimary((error: Error, result: coinbase.Account): void => undefined);
|
||||
account.setPrimary((error: Error | null, result: coinbase.Account): void => undefined);
|
||||
|
||||
account.transferMoney(
|
||||
{ amount: "1", currency: "USD", description: "foo", to: "bar", type: "transfer" },
|
||||
(error: Error, tx: coinbase.Transaction): void => undefined
|
||||
(error: Error | null, tx: coinbase.Transaction): void => undefined
|
||||
);
|
||||
|
||||
account.update({ name: "foo" }, (error: Error, result: coinbase.Account): void => undefined);
|
||||
account.update({ name: "foo" }, (error: Error | null, result: coinbase.Account): void => undefined);
|
||||
|
||||
account.withdraw({ amount: "1", commit: false, currency: "ETH", payment_method: "abcdef"}, (error: Error, result: coinbase.Withdrawal): void => {
|
||||
result.commit((error: Error, result: coinbase.Withdrawal): void => undefined);
|
||||
account.withdraw({ amount: "1", commit: false, currency: "ETH", payment_method: "abcdef"}, (error: Error | null, result: coinbase.Withdrawal): void => {
|
||||
result.commit((error: Error | null, result: coinbase.Withdrawal): void => undefined);
|
||||
});
|
||||
});
|
||||
|
||||
client.getBuyPrice({ currencyPair: "USD-BTC" }, (error: Error, result: coinbase.Price): void => undefined);
|
||||
client.getBuyPrice({ currencyPair: "USD-BTC" }, (error: Error | null, result: coinbase.Price): void => undefined);
|
||||
|
||||
client.getCurrencies((error: Error, result: coinbase.Currency[]): void => undefined);
|
||||
client.getCurrencies((error: Error | null, result: coinbase.Currency[]): void => undefined);
|
||||
|
||||
client.getExchangeRates({currency: "ETC"}, (error: Error, result: coinbase.ExchangeRate): void => undefined);
|
||||
client.getExchangeRates({currency: "ETC"}, (error: Error | null, result: coinbase.ExchangeRate): void => undefined);
|
||||
|
||||
client.getPaymentMethod("foo", (error: Error, result: coinbase.PaymentMethod): void => undefined);
|
||||
client.getPaymentMethod("foo", (error: Error | null, result: coinbase.PaymentMethod): void => undefined);
|
||||
|
||||
client.getPaymentMethods((error: Error, result: coinbase.PaymentMethod[]): void => undefined);
|
||||
client.getPaymentMethods((error: Error | null, result: coinbase.PaymentMethod[]): void => undefined);
|
||||
|
||||
client.getSellPrice({ currencyPair: "USD-BTC" }, (error: Error, result: coinbase.Price): void => undefined);
|
||||
client.getSellPrice({ currencyPair: "USD-BTC" }, (error: Error | null, result: coinbase.Price): void => undefined);
|
||||
|
||||
client.getSpotPrice({ currencyPair: "USD-BTC" }, (error: Error, result: coinbase.Price): void => undefined);
|
||||
client.getSpotPrice({ currencyPair: "USD-BTC", date: "2017-22-01" }, (error: Error, result: coinbase.Price): void => undefined);
|
||||
client.getSpotPrice({ currencyPair: "USD-BTC" }, (error: Error | null, result: coinbase.Price): void => undefined);
|
||||
client.getSpotPrice({ currencyPair: "USD-BTC", date: "2017-22-01" }, (error: Error | null, result: coinbase.Price): void => undefined);
|
||||
|
||||
client.getTime((error: Error, result: coinbase.Time): void => undefined);
|
||||
client.getTime((error: Error | null, result: coinbase.Time): void => undefined);
|
||||
|
||||
client.getUser("abcdef", (error: Error, user: coinbase.User): void => {
|
||||
user.showAuth((error: Error, auth: coinbase.Auth): void => undefined);
|
||||
user.update({ name: "foo", time_zone: "bar", native_currency: "USD" }, (error: Error, user: coinbase.User): void => undefined);
|
||||
client.getUser("abcdef", (error: Error | null, user: coinbase.User): void => {
|
||||
user.showAuth((error: Error | null, auth: coinbase.Auth): void => undefined);
|
||||
user.update({ name: "foo", time_zone: "bar", native_currency: "USD" }, (error: Error | null, user: coinbase.User): void => undefined);
|
||||
});
|
||||
|
||||
92
types/coinbase/index.d.ts
vendored
92
types/coinbase/index.d.ts
vendored
@@ -418,13 +418,13 @@ export class User implements Resource {
|
||||
* Get current user’s authorization information including granted scopes and send limits when using OAuth2 authentication
|
||||
* No permission required
|
||||
*/
|
||||
showAuth(cb: (error: Error, result: Auth) => void): void;
|
||||
showAuth(cb: (error: Error | null, result: Auth) => void): void;
|
||||
|
||||
/**
|
||||
* Change user properties
|
||||
* Scope: wallet:user:update
|
||||
*/
|
||||
update(opts: UpdateUserOpts, cb: (error: Error, result: User) => void): void;
|
||||
update(opts: UpdateUserOpts, cb: (error: Error | null, result: User) => void): void;
|
||||
}
|
||||
|
||||
export interface Auth {
|
||||
@@ -474,7 +474,7 @@ export class Address implements Resource {
|
||||
* List transactions that have been sent to a specific address.
|
||||
* Scope: wallet:transactions:read
|
||||
*/
|
||||
getTransactions(opts: {}, cb: (error: Error, result: Transaction[]) => void): void;
|
||||
getTransactions(opts: {}, cb: (error: Error | null, result: Transaction[]) => void): void;
|
||||
}
|
||||
|
||||
export type AccountType = "wallet" | "fiat" | "multisig" | "vault" | "multisig_vault";
|
||||
@@ -555,13 +555,13 @@ export class Account implements Resource {
|
||||
* Promote an account as primary account.
|
||||
* Scope: wallet:accounts:update
|
||||
*/
|
||||
setPrimary(cb: (error: Error, result: Account) => void): void;
|
||||
setPrimary(cb: (error: Error | null, result: Account) => void): void;
|
||||
|
||||
/**
|
||||
* Modifies user’s account.
|
||||
* Scope: wallet:accounts:update
|
||||
*/
|
||||
update(opts: UpdateAccountOpts, cb: (error: Error, result: Account) => void): void;
|
||||
update(opts: UpdateAccountOpts, cb: (error: Error | null, result: Account) => void): void;
|
||||
|
||||
/**
|
||||
* Removes user’s account. In order to remove an account it can’t be:
|
||||
@@ -571,13 +571,13 @@ export class Account implements Resource {
|
||||
* - Vault with a pending withdrawal
|
||||
* Scope: wallet:accounts:delete
|
||||
*/
|
||||
delete(cb: (error: Error) => void): void;
|
||||
delete(cb: (error: Error | null) => void): void;
|
||||
|
||||
/**
|
||||
* Lists addresses for an account. Important: Addresses should be considered one time use only. Create new addresses.
|
||||
* Scope: wallet:addresses:read
|
||||
*/
|
||||
getAddresses(cb: (error: Error, result: Address[]) => void): void;
|
||||
getAddresses(cb: (error: Error | null, result: Address[]) => void): void;
|
||||
|
||||
/**
|
||||
* Show an individual address for an account. A regular bitcoin, litecoin or ethereum address can be used in place of `id` but the
|
||||
@@ -585,7 +585,7 @@ export class Account implements Resource {
|
||||
* Scope: wallet:addresses:read
|
||||
* @param id resource id or a regular bitcoin, litecoin or ethereum address
|
||||
*/
|
||||
getAddress(id: string, cb: (error: Error, result: Address) => void): void;
|
||||
getAddress(id: string, cb: (error: Error | null, result: Address) => void): void;
|
||||
|
||||
/**
|
||||
* Creates a new address for an account. As all the arguments are optinal, it’s possible just to do a empty POST which will create a new
|
||||
@@ -594,20 +594,20 @@ export class Account implements Resource {
|
||||
* Scope: wallet:addresses:create
|
||||
* @param opts can be null, optional address name
|
||||
*/
|
||||
createAddress(opts: CreateAddressOpts | null, cb: (error: Error, result: Address) => void): void;
|
||||
createAddress(opts: CreateAddressOpts | null, cb: (error: Error | null, result: Address) => void): void;
|
||||
|
||||
/**
|
||||
* Lists account’s transactions.
|
||||
* Scope: wallet:transactions:read
|
||||
*/
|
||||
getTransactions(cb: (error: Error, result: Transaction[]) => void): void;
|
||||
getTransactions(cb: (error: Error | null, result: Transaction[]) => void): void;
|
||||
|
||||
/**
|
||||
* Show an individual transaction for an account
|
||||
* Scope: wallet:transactions:read
|
||||
* @param id resource id
|
||||
*/
|
||||
getTransaction(id: string, cb: (error: Error, result: Transaction) => void): void;
|
||||
getTransaction(id: string, cb: (error: Error | null, result: Transaction) => void): void;
|
||||
|
||||
/**
|
||||
* Send funds to a bitcoin address, litecoin address, ethereum address, or email address. No transaction fees are required for off
|
||||
@@ -625,7 +625,7 @@ export class Account implements Resource {
|
||||
*
|
||||
* Scope: wallet:transactions:send, wallet:transactions:send:bypass-2fa
|
||||
*/
|
||||
sendMoney(opts: SendMoneyOpts, cb: (error: Error, result: Transaction) => void): void;
|
||||
sendMoney(opts: SendMoneyOpts, cb: (error: Error | null, result: Transaction) => void): void;
|
||||
|
||||
/**
|
||||
* Transfer bitcoin, litecoin or ethereum between two of a user’s accounts. Following transfers are allowed:
|
||||
@@ -633,26 +633,26 @@ export class Account implements Resource {
|
||||
* - wallet to vault
|
||||
* Scope: wallet:transactions:transfer
|
||||
*/
|
||||
transferMoney(opts: TransferMoneyOpts, cb: (error: Error, result: Transaction) => void): void;
|
||||
transferMoney(opts: TransferMoneyOpts, cb: (error: Error | null, result: Transaction) => void): void;
|
||||
|
||||
/**
|
||||
* Requests money from an email address.
|
||||
* Scope: wallet:transactions:request
|
||||
*/
|
||||
requestMoney(opts: RequestMoneyOpts, cb: (error: Error, result: Transaction) => void): void;
|
||||
requestMoney(opts: RequestMoneyOpts, cb: (error: Error | null, result: Transaction) => void): void;
|
||||
|
||||
/**
|
||||
* Lists buys for an account.
|
||||
* Scope: wallet:buys:read
|
||||
*/
|
||||
getBuys(opts: null, cb: (error: Error, result: Buy[]) => void): void;
|
||||
getBuys(opts: null, cb: (error: Error | null, result: Buy[]) => void): void;
|
||||
|
||||
/**
|
||||
* Show an individual buy.
|
||||
* Scope: wallet:buys:read
|
||||
* @param id resource id
|
||||
*/
|
||||
getBuy(id: string, cb: (error: Error, result: Buy) => void): void;
|
||||
getBuy(id: string, cb: (error: Error | null, result: Buy) => void): void;
|
||||
|
||||
/**
|
||||
* Buys a user-defined amount of bitcoin, litecoin or ethereum.
|
||||
@@ -672,20 +672,20 @@ export class Account implements Resource {
|
||||
* @param opts indicates what to buy
|
||||
* @param cb receives transaction that you can use to commit the buy
|
||||
*/
|
||||
buy(opts: BuyOpts, cb: (error: Error, result: Buy) => void): void;
|
||||
buy(opts: BuyOpts, cb: (error: Error | null, result: Buy) => void): void;
|
||||
|
||||
/**
|
||||
* Lists sells for an account.
|
||||
* Scope: wallet:sells:read
|
||||
*/
|
||||
getSells(opts: null, cb: (error: Error, result: Sell[]) => void): void;
|
||||
getSells(opts: null, cb: (error: Error | null, result: Sell[]) => void): void;
|
||||
|
||||
/**
|
||||
* Show an individual sell.
|
||||
* Scope: wallet:sells:read
|
||||
* @param id resource id
|
||||
*/
|
||||
getSell(id: string, cb: (error: Error, result: Sell) => void): void;
|
||||
getSell(id: string, cb: (error: Error | null, result: Sell) => void): void;
|
||||
|
||||
/**
|
||||
* Sells a user-defined amount of bitcoin, litecoin or ethereum.
|
||||
@@ -705,45 +705,45 @@ export class Account implements Resource {
|
||||
* the user when they are filling a form or similar situation.
|
||||
* Scope: wallet:sells:create
|
||||
*/
|
||||
sell(opts: SellOpts, cb: (error: Error, result: Sell) => void): void;
|
||||
sell(opts: SellOpts, cb: (error: Error | null, result: Sell) => void): void;
|
||||
|
||||
/**
|
||||
* Lists deposits for an account.
|
||||
* Scope: wallet:deposits:read
|
||||
*/
|
||||
getDeposits(cb: (error: Error, result: Deposit[]) => void): void;
|
||||
getDeposits(cb: (error: Error | null, result: Deposit[]) => void): void;
|
||||
|
||||
/**
|
||||
* Show an individual deposit.
|
||||
* Scope: wallet:deposits:read
|
||||
* @param id resource id
|
||||
*/
|
||||
getDeposit(id: string, cb: (error: Error, result: Deposit) => void): void;
|
||||
getDeposit(id: string, cb: (error: Error | null, result: Deposit) => void): void;
|
||||
|
||||
/**
|
||||
* Deposits user-defined amount of funds to a fiat account.
|
||||
* Scope: wallet:deposits:create
|
||||
*/
|
||||
deposit(opts: DepositOpts, cb: (error: Error, result: Deposit) => void): void;
|
||||
deposit(opts: DepositOpts, cb: (error: Error | null, result: Deposit) => void): void;
|
||||
|
||||
/**
|
||||
* Lists withdrawals for an account.
|
||||
* Scope: wallet:withdrawals:read
|
||||
*/
|
||||
getWithdrawals(cb: (error: Error, result: Withdrawal[]) => void): void;
|
||||
getWithdrawals(cb: (error: Error | null, result: Withdrawal[]) => void): void;
|
||||
|
||||
/**
|
||||
* Show an individual withdrawal.
|
||||
* Scope: wallet:withdrawals:read
|
||||
* @param id resource id
|
||||
*/
|
||||
getWithdrawal(id: string, cb: (error: Error, result: Withdrawal) => void): void;
|
||||
getWithdrawal(id: string, cb: (error: Error | null, result: Withdrawal) => void): void;
|
||||
|
||||
/**
|
||||
* Withdraws user-defined amount of funds from a fiat account.
|
||||
* Scope: wallet:withdrawals:create
|
||||
*/
|
||||
withdraw(opts: WithdrawOpts, cb: (error: Error, result: Withdrawal) => void): void;
|
||||
withdraw(opts: WithdrawOpts, cb: (error: Error | null, result: Withdrawal) => void): void;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -839,19 +839,19 @@ export class Transaction implements Resource {
|
||||
* This can only be completed by the user to whom the request was made, not the user who sent the request.
|
||||
* Scope: wallet:transactions:request
|
||||
*/
|
||||
complete(cb: (error: Error, result: Transaction) => void): void;
|
||||
complete(cb: (error: Error | null, result: Transaction) => void): void;
|
||||
|
||||
/**
|
||||
* Lets the user resend a money request. This will notify recipient with a new email.
|
||||
* Scope: wallet:transactions:request
|
||||
*/
|
||||
resend(cb: (error: Error, result: Transaction) => void): void;
|
||||
resend(cb: (error: Error | null, result: Transaction) => void): void;
|
||||
|
||||
/**
|
||||
* Lets a user cancel a money request. Money requests can be canceled by the sender or the recipient.
|
||||
* Scope: wallet:transactions:request
|
||||
*/
|
||||
cancel(cb: (error: Error, result: Transaction) => void): void;
|
||||
cancel(cb: (error: Error | null, result: Transaction) => void): void;
|
||||
}
|
||||
|
||||
export type BuyStatus = "created" | "completed" | "canceled";
|
||||
@@ -962,7 +962,7 @@ export class Buy implements Resource {
|
||||
* values and start the buy at the new rates.
|
||||
* Scope: wallet:buys:create
|
||||
*/
|
||||
commit(cb: (error: Error, transaction: Buy) => void): void;
|
||||
commit(cb: (error: Error | null, result: Buy) => void): void;
|
||||
}
|
||||
|
||||
export interface Fee {
|
||||
@@ -1079,7 +1079,7 @@ export class Sell implements Resource {
|
||||
* values and start the buy at the new rates.
|
||||
* Scope: wallet:sells:create
|
||||
*/
|
||||
commit(cb: (error: Error, transaction: Sell) => void): void;
|
||||
commit(cb: (error: Error | null, result: Sell) => void): void;
|
||||
}
|
||||
|
||||
export type DepositStatus = "created" | "completed" | "canceled";
|
||||
@@ -1156,7 +1156,7 @@ export class Deposit implements Resource {
|
||||
* Completes a deposit that is created in commit: false state.
|
||||
* Scope: wallet:deposits:create
|
||||
*/
|
||||
commit(cb: (error: Error, result: Deposit) => void): void;
|
||||
commit(cb: (error: Error | null, result: Deposit) => void): void;
|
||||
}
|
||||
|
||||
export type WithdrawalStatus = "created" | "completed" | "canceled";
|
||||
@@ -1234,7 +1234,7 @@ export class Withdrawal implements Resource {
|
||||
* Completes a withdrawal that is created in commit: false state.
|
||||
* Scope: wallet:withdrawals:create
|
||||
*/
|
||||
commit(cb: (error: Error, result: Withdrawal) => void): void;
|
||||
commit(cb: (error: Error | null, result: Withdrawal) => void): void;
|
||||
}
|
||||
|
||||
export type PaymentMethodType = "ach_bank_account" | "sepa_bank_account" | "ideal_bank_account" | "fiat_account" | "bank_wire"
|
||||
@@ -1376,59 +1376,59 @@ export class Client {
|
||||
* Scopes: none
|
||||
* @param id resource id
|
||||
*/
|
||||
getUser(id: string, cb: (error: Error, result: User) => void): void;
|
||||
getUser(id: string, cb: (error: Error | null, result: User) => void): void;
|
||||
|
||||
/**
|
||||
* Get the current user. To get user’s email or private information, use permissions wallet:user:email and wallet:user:read. If current
|
||||
* request has a wallet:transactions:send scope, then the response will contain a boolean sends_disabled field that indicates
|
||||
* if the user’s send functionality has been disabled.
|
||||
*/
|
||||
getCurrentUser(cb: (error: Error, result: User) => void): void;
|
||||
getCurrentUser(cb: (error: Error | null, result: User) => void): void;
|
||||
|
||||
/**
|
||||
* Returns all accounts for the current user
|
||||
* Scope: wallet:accounts:read
|
||||
*/
|
||||
getAccounts(opts: {}, cb: (error: Error, result: Account[]) => void): void;
|
||||
getAccounts(opts: {}, cb: (error: Error | null, result: Account[]) => void): void;
|
||||
|
||||
/**
|
||||
* Get one account by its Resource ID
|
||||
* Scope: wallet:accounts:read
|
||||
* @param id resource ID or "primary"
|
||||
*/
|
||||
getAccount(id: string, cb: (error: Error, result: Account) => void): void;
|
||||
getAccount(id: string, cb: (error: Error | null, result: Account) => void): void;
|
||||
|
||||
/**
|
||||
* Creates a new account for user.
|
||||
* Scopes: wallet:accounts:create
|
||||
*/
|
||||
createAccount(opts: CreateAccountOpts, cb: (error: Error, result: Account) => void): void;
|
||||
createAccount(opts: CreateAccountOpts, cb: (error: Error | null, result: Account) => void): void;
|
||||
|
||||
/**
|
||||
* Lists current user’s payment methods
|
||||
* Scope: wallet:payment-methods:read
|
||||
*/
|
||||
getPaymentMethods(cb: (error: Error, result: PaymentMethod[]) => void): void;
|
||||
getPaymentMethods(cb: (error: Error | null, result: PaymentMethod[]) => void): void;
|
||||
|
||||
/**
|
||||
* Show current user’s payment method.
|
||||
* Scope: wallet:payment-methods:read
|
||||
*/
|
||||
getPaymentMethod(id: string, cb: (error: Error, result: PaymentMethod) => void): void;
|
||||
getPaymentMethod(id: string, cb: (error: Error | null, result: PaymentMethod) => void): void;
|
||||
|
||||
/**
|
||||
* List known currencies. Currency codes will conform to the ISO 4217 standard where possible. Currencies which have or had no
|
||||
* representation in ISO 4217 may use a custom code (e.g. BTC).
|
||||
* Scope: none
|
||||
*/
|
||||
getCurrencies(cb: (error: Error, result: Currency[]) => void): void;
|
||||
getCurrencies(cb: (error: Error | null, result: Currency[]) => void): void;
|
||||
|
||||
/**
|
||||
* Get current exchange rates. Default base currency is USD but it can be defined as any supported currency.
|
||||
* Returned rates will define the exchange rate for one unit of the base currency.
|
||||
* Scope: none
|
||||
*/
|
||||
getExchangeRates(opts: GetExchangeRateOpts, cb: (error: Error, result: ExchangeRate) => void): void;
|
||||
getExchangeRates(opts: GetExchangeRateOpts, cb: (error: Error | null, result: ExchangeRate) => void): void;
|
||||
|
||||
/**
|
||||
* Get the total price to buy one bitcoin or ether. Note that exchange rates fluctuates so the price is only correct for seconds at the time.
|
||||
@@ -1436,7 +1436,7 @@ export class Client {
|
||||
* If you need more accurate price estimate for a specific payment method or amount, @see Account#buy() and `quote: true` option.
|
||||
* Scope: none
|
||||
*/
|
||||
getBuyPrice(opts: GetBuyPriceOpts, cb: (error: Error, result: Price) => void): void;
|
||||
getBuyPrice(opts: GetBuyPriceOpts, cb: (error: Error | null, result: Price) => void): void;
|
||||
|
||||
/**
|
||||
* Get the total price to sell one bitcoin or ether. Note that exchange rates fluctuates so the price is only correct for seconds at the time.
|
||||
@@ -1444,7 +1444,7 @@ export class Client {
|
||||
* estimate for a specific payment method or amount, see sell bitcoin endpoint and quote: true option.
|
||||
* Scope: none
|
||||
*/
|
||||
getSellPrice(opts: GetSellPriceOpts, cb: (error: Error, result: Price) => void): void;
|
||||
getSellPrice(opts: GetSellPriceOpts, cb: (error: Error | null, result: Price) => void): void;
|
||||
|
||||
/**
|
||||
* Get the current market price for bitcoin. This is usually somewhere in between the buy and sell price.
|
||||
@@ -1452,10 +1452,10 @@ export class Client {
|
||||
* You can also get historic prices with date parameter.
|
||||
* Scope: none
|
||||
*/
|
||||
getSpotPrice(opts: GetSpotPriceOpts, cb: (error: Error, result: Price) => void): void;
|
||||
getSpotPrice(opts: GetSpotPriceOpts, cb: (error: Error | null, result: Price) => void): void;
|
||||
|
||||
/**
|
||||
* Get the API server time.
|
||||
*/
|
||||
getTime(cb: (error: Error, result: Time) => void): void;
|
||||
getTime(cb: (error: Error | null, result: Time) => void): void;
|
||||
}
|
||||
|
||||
@@ -4,3 +4,10 @@ import * as express from 'express';
|
||||
|
||||
const options: connectBusboy.ConnectBusboyOptions = { immediate: true };
|
||||
const result: express.RequestHandler = connectBusboy(options);
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(connectBusboy());
|
||||
app.use((req: express.Request, res: express.Response, next: express.NextFunction) => {
|
||||
req.busboy.on('file', () => {});
|
||||
});
|
||||
|
||||
9
types/connect-busboy/index.d.ts
vendored
9
types/connect-busboy/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for connect-busboy 0.0
|
||||
// Project: https://github.com/mscdex/connect-busboy
|
||||
// Definitions by: Pinguet62 <https://github.com/pinguet62>
|
||||
// Chris Gedrim <https://github.com/chrisgedrim>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@@ -15,4 +16,12 @@ declare namespace connectBusboy {
|
||||
}
|
||||
}
|
||||
|
||||
declare global {
|
||||
namespace Express {
|
||||
interface Request {
|
||||
busboy: busboy.Busboy;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
export = connectBusboy;
|
||||
|
||||
@@ -1 +1,3 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
|
||||
5
types/cuint/cuint-tests.ts
Normal file
5
types/cuint/cuint-tests.ts
Normal file
@@ -0,0 +1,5 @@
|
||||
import { UINT32 } from "cuint";
|
||||
|
||||
const u = UINT32(1, 2);
|
||||
const d = u.fromBits(4, 5, 6);
|
||||
d.add(u.multiply(d)).rotl(17).subtract(u).shiftRight(123);
|
||||
73
types/cuint/index.d.ts
vendored
Normal file
73
types/cuint/index.d.ts
vendored
Normal file
@@ -0,0 +1,73 @@
|
||||
// Type definitions for cuint 0.2
|
||||
// Project: https://github.com/pierrec/js-cuint
|
||||
// Definitions by: Lukas Tetzlaff <https://github.com/ltetzlaff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export interface Uint {
|
||||
// Math
|
||||
add(x: this): this;
|
||||
subtract(x: this): this;
|
||||
multiply(x: this): this;
|
||||
div(x: this): this;
|
||||
|
||||
// Compare
|
||||
equals(x: this): boolean;
|
||||
eq(x: this): boolean;
|
||||
greaterThan(x: this): boolean;
|
||||
gt(x: this): boolean;
|
||||
lessThan(x: this): boolean;
|
||||
lt(x: this): boolean;
|
||||
|
||||
// Bitwise
|
||||
negate(): this;
|
||||
or(x: this): this;
|
||||
and(x: this): this;
|
||||
xor(x: this): this;
|
||||
not(x: this): this;
|
||||
shiftRight(n: number): this;
|
||||
shiftr(n: number): this;
|
||||
shiftLeft(n: number): this;
|
||||
shiftl(n: number): this;
|
||||
rorateLeft(n: number): this;
|
||||
rotl(n: number): this;
|
||||
rorateRight(n: number): this;
|
||||
rotr(n: number): this;
|
||||
|
||||
// Deserialize
|
||||
fromNumber(n: number): this;
|
||||
fromBits(...bits: number[]): this;
|
||||
fromString(integer: string, radix?: number): this;
|
||||
|
||||
// Serialize
|
||||
toNumber(): number;
|
||||
toString(base?: number): string;
|
||||
clone(): this;
|
||||
|
||||
_low: number;
|
||||
_high: number;
|
||||
}
|
||||
|
||||
export interface UintConstructor<T extends Uint> {
|
||||
// called as a function:
|
||||
(low: number, high?: number): T;
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
(text: string, radix?: number): T;
|
||||
|
||||
// called as a constructor:
|
||||
new (low: number, high?: number): T;
|
||||
// tslint:disable-next-line:unified-signatures
|
||||
new (text: string, radix?: number): T;
|
||||
|
||||
prototype: T;
|
||||
}
|
||||
|
||||
export interface Uint64Constructor<T extends Uint> extends UintConstructor<T> {
|
||||
// called as a function:
|
||||
(a00: number, a16: number, a32: number, a48: number): T;
|
||||
|
||||
// called as constructor:
|
||||
new (a00: number, a16: number, a32: number, a48: number): T;
|
||||
}
|
||||
|
||||
export const UINT64: Uint64Constructor<Uint>;
|
||||
export const UINT32: UintConstructor<Uint>;
|
||||
@@ -18,6 +18,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"sdbm-tests.ts"
|
||||
"cuint-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -70,7 +70,7 @@ const mixedObjectArray = [
|
||||
];
|
||||
|
||||
const mixedObjectOrUndefinedArray = [...mixedObjectArray, undefined];
|
||||
const mixedObjectArrayLike = mixedObjectArray as ArrayLike<MixedObject>;
|
||||
const mixedObjectArrayLike = mixedObjectArray as Iterable<MixedObject>;
|
||||
|
||||
let typedArray = Uint8Array.from(numbersArray);
|
||||
let readonlyNumbersArray = numbersArray as ReadonlyArray<number>;
|
||||
@@ -81,55 +81,55 @@ const readonlyDateArray = dateArray as ReadonlyArray<Date>;
|
||||
const readonlyMixedObjectArray = mixedObjectArray as ReadonlyArray<MixedObject>;
|
||||
const readonlyMixedObjectOrUndefinedArray = mixedObjectOrUndefinedArray as ReadonlyArray<MixedObject | undefined>;
|
||||
|
||||
function accessorMixedObjectToNum(datum: MixedObject, index: number, array: ArrayLike<MixedObject>): number {
|
||||
function accessorMixedObjectToNum(datum: MixedObject, index: number, array: Iterable<MixedObject>): number {
|
||||
return datum.num;
|
||||
}
|
||||
|
||||
function accessorMixedObjectToStr(datum: MixedObject, index: number, array: ArrayLike<MixedObject>): string {
|
||||
function accessorMixedObjectToStr(datum: MixedObject, index: number, array: Iterable<MixedObject>): string {
|
||||
return datum.str;
|
||||
}
|
||||
|
||||
function accessorMixedObjectToNumeric(datum: MixedObject, index: number, array: ArrayLike<MixedObject>): NumCoercible {
|
||||
function accessorMixedObjectToNumeric(datum: MixedObject, index: number, array: Iterable<MixedObject>): NumCoercible {
|
||||
return datum.numeric;
|
||||
}
|
||||
|
||||
function accessorMixedObjectToDate(datum: MixedObject, index: number, array: ArrayLike<MixedObject>): Date {
|
||||
function accessorMixedObjectToDate(datum: MixedObject, index: number, array: Iterable<MixedObject>): Date {
|
||||
return datum.date;
|
||||
}
|
||||
|
||||
function accessorMixedObjectToNumOrUndefined(datum: MixedObject | undefined, index: number, array: ArrayLike<MixedObject | undefined>): number | undefined | null {
|
||||
function accessorMixedObjectToNumOrUndefined(datum: MixedObject | undefined, index: number, array: Iterable<MixedObject | undefined>): number | undefined | null {
|
||||
return datum ? datum.num : undefined;
|
||||
}
|
||||
|
||||
function accessorMixedObjectToStrOrUndefined(datum: MixedObject | undefined, index: number, array: ArrayLike<MixedObject>): string | undefined | null {
|
||||
function accessorMixedObjectToStrOrUndefined(datum: MixedObject | undefined, index: number, array: Iterable<MixedObject>): string | undefined | null {
|
||||
return datum ? datum.str : undefined;
|
||||
}
|
||||
|
||||
function accessorLikeMixedObjectToNum(datum: MixedObject, index: number, array: ArrayLike<MixedObject>): number {
|
||||
function accessorLikeMixedObjectToNum(datum: MixedObject, index: number, array: Iterable<MixedObject>): number {
|
||||
return datum.num;
|
||||
}
|
||||
|
||||
function accessorLikeMixedObjectToStr(datum: MixedObject, index: number, array: ArrayLike<MixedObject>): string {
|
||||
function accessorLikeMixedObjectToStr(datum: MixedObject, index: number, array: Iterable<MixedObject>): string {
|
||||
return datum.str;
|
||||
}
|
||||
|
||||
function accessorLikeMixedObjectToNumeric(datum: MixedObject, index: number, array: ArrayLike<MixedObject>): NumCoercible {
|
||||
function accessorLikeMixedObjectToNumeric(datum: MixedObject, index: number, array: Iterable<MixedObject>): NumCoercible {
|
||||
return datum.numeric;
|
||||
}
|
||||
|
||||
function accessorLikeMixedObjectToDate(datum: MixedObject, index: number, array: ArrayLike<MixedObject>): Date {
|
||||
function accessorLikeMixedObjectToDate(datum: MixedObject, index: number, array: Iterable<MixedObject>): Date {
|
||||
return datum.date;
|
||||
}
|
||||
|
||||
function accessorLikeMixedObjectToNumOrUndefined(datum: MixedObject | undefined, index: number, array: ArrayLike<MixedObject | undefined>): number | undefined | null {
|
||||
function accessorLikeMixedObjectToNumOrUndefined(datum: MixedObject | undefined, index: number, array: Iterable<MixedObject | undefined>): number | undefined | null {
|
||||
return datum ? datum.num : undefined;
|
||||
}
|
||||
|
||||
function accessorLikeMixedObjectToStrOrUndefined(datum: MixedObject | undefined, index: number, array: ArrayLike<MixedObject>): string | undefined | null {
|
||||
function accessorLikeMixedObjectToStrOrUndefined(datum: MixedObject | undefined, index: number, array: Iterable<MixedObject>): string | undefined | null {
|
||||
return datum ? datum.str : undefined;
|
||||
}
|
||||
|
||||
function accessorReadOnlyMixedObjectToNumOrUndefined(datum: MixedObject | undefined, index: number, array: ArrayLike<MixedObject | undefined>): number | undefined | null {
|
||||
function accessorReadOnlyMixedObjectToNumOrUndefined(datum: MixedObject | undefined, index: number, array: Iterable<MixedObject | undefined>): number | undefined | null {
|
||||
return datum ? datum.num : undefined;
|
||||
}
|
||||
|
||||
@@ -485,6 +485,12 @@ num = mixedObjectDateBisectorObject.right(readonlyMixedObjectArray, new Date(201
|
||||
num = mixedObjectDateBisectorObject.right(readonlyMixedObjectArray, new Date(2015, 3, 14), 1);
|
||||
num = mixedObjectDateBisectorObject.right(readonlyMixedObjectArray, new Date(2015, 3, 14), 3, 4);
|
||||
|
||||
// quickselect
|
||||
numbersArray = d3Array.quickselect(numbersArray, 3);
|
||||
numbersArray = d3Array.quickselect(numbersArray, 3, 0);
|
||||
numbersArray = d3Array.quickselect(numbersArray, 3, 0, 5);
|
||||
numbersArray = d3Array.quickselect(numbersArray, 3, 0, 5, d3Array.descending);
|
||||
|
||||
// ascending() -----------------------------------------------------------------
|
||||
|
||||
num = d3Array.ascending(undefined, 20);
|
||||
@@ -536,6 +542,23 @@ mergedArray = d3Array.merge([testArray1, [15, 30]]); // fails, type mismatch
|
||||
mergedArray = d3Array.merge(readonlyTestArrays); // inferred type
|
||||
mergedArray = d3Array.merge<MixedObject>(readonlyTestArrays); // explicit type
|
||||
|
||||
interface ObjDefinition {
|
||||
name: string;
|
||||
amount: string;
|
||||
date: string;
|
||||
}
|
||||
|
||||
const objArray: ObjDefinition[] = [
|
||||
{ name: "jim", amount: "34.0", date: "11/12/2015" },
|
||||
{ name: "carl", amount: "120.11", date: "11/12/2015" },
|
||||
{ name: "stacy", amount: "12.01", date: "01/04/2016" },
|
||||
{ name: "stacy", amount: "34.05", date: "01/04/2016" }
|
||||
];
|
||||
|
||||
const grouped: Map<string, ObjDefinition[]> = d3Array.group(objArray, d => d.name);
|
||||
const rolledup: Map<string, number> = d3Array.rollup(objArray, d => d.length, d => d.name);
|
||||
const rolledup2: Map<string, string> = d3Array.rollup(objArray, d => d.map(u => u.name).join(' '), d => d.name);
|
||||
|
||||
// cross() ---------------------------------------------------------------------
|
||||
|
||||
let crossed: Array<[string, number]>;
|
||||
@@ -780,7 +803,7 @@ histoMixedObject_Date = histoMixedObject_Date.domain(timeScale.domain()); // fai
|
||||
domainFnDate = histoMixedObject_Date.domain();
|
||||
histoMixedObject_DateOrUndefined = histoMixedObject_DateOrUndefined.domain([new Date(2014, 3, 15), new Date(2017, 4, 15)]);
|
||||
histoMixedObject_DateOrUndefined = histoMixedObject_DateOrUndefined.domain([domain[0], domain[domain.length]]);
|
||||
histoMixedObject_DateOrUndefined = histoMixedObject_DateOrUndefined.domain((values) => [values[0]!, values[values.length]!]);
|
||||
histoMixedObject_DateOrUndefined = histoMixedObject_DateOrUndefined.domain((values) => [values[0]!, values[values.length]!]);
|
||||
|
||||
// thresholds(...) -------------------------------------------------------------
|
||||
|
||||
@@ -935,8 +958,3 @@ num = d3Array.thresholdScott(readonlyNumbersArray, -1, 234);
|
||||
num = d3Array.thresholdSturges(numbersArray);
|
||||
num = d3Array.thresholdSturges(typedArray);
|
||||
num = d3Array.thresholdSturges(readonlyNumbersArray);
|
||||
|
||||
// Deprecated ==================================================================
|
||||
|
||||
const histDeprecatedNumber: d3Array.HistogramGenerator<MixedObject, number> = d3Array.histogram<MixedObject, number>();
|
||||
const histDeprecatedDate: d3Array.HistogramGenerator<MixedObject, Date> = d3Array.histogram<MixedObject, Date>();
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user