mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-05 15:27:05 +00:00
Merge remote-tracking branch 'upstream/master'
This commit is contained in:
+56
-73
@@ -55,7 +55,6 @@
|
||||
/types/aframe/ @devpaul @bertoritger @twastvedt
|
||||
/types/agenda/ @meirgottlieb @princjef
|
||||
/types/agent-base/ @Shinigami92
|
||||
/types/aggregate-error/ @BendingBender
|
||||
/types/agora-rtc-sdk/ @menthays
|
||||
/types/airbnb-prop-types/ @milesj
|
||||
/types/ajv-errors/ @afshawnlotfi
|
||||
@@ -75,6 +74,8 @@
|
||||
/types/almost-equal/ @cmaddalozzo
|
||||
/types/alt/ @Shearerbeard
|
||||
/types/amap-js-api/ @breeze9527
|
||||
/types/amap-js-api-indoor-map/ @breeze9527
|
||||
/types/amap-js-api-map3d/ @breeze9527
|
||||
/types/amap-js-sdk/ @agasbzj
|
||||
/types/amazon-cognito-auth-js/ @scottescue
|
||||
/types/amazon-product-api/ @MattiLehtinen @alien35
|
||||
@@ -268,7 +269,7 @@
|
||||
/types/auto-bind/ @sseppola
|
||||
/types/auto-launch/ @rhysd @unindented
|
||||
/types/auto-sni/ @janwo
|
||||
/types/autobahn/ @darkl @a904guy @valepu @glenroy37
|
||||
/types/autobahn/ @darkl @a904guy @valepu @glenroy37 @spcfran
|
||||
/types/autolinker/ @leonyu
|
||||
/types/autoprefixer/ @odnamrataizem @murt
|
||||
/types/autosize/ @kingdango @keika299 @NeekSandhu
|
||||
@@ -387,7 +388,7 @@
|
||||
/types/bl/ @Bartvds @reconbot
|
||||
/types/blacklist/ @mhegazy
|
||||
/types/blazy/ @julienpa
|
||||
/types/blessed/ @brynbellomy @skellock
|
||||
/types/blessed/ @brynbellomy @skellock @mamachanko
|
||||
/types/blissfuljs/ @fskorzec
|
||||
/types/blob-stream/ @erichillah
|
||||
/types/blob-to-buffer/ @nrlquaker
|
||||
@@ -462,6 +463,7 @@
|
||||
/types/browserslist-useragent/ @nju33
|
||||
/types/bs58/ @chrootsu @BendingBender
|
||||
/types/bs58/v3/ @chrootsu
|
||||
/types/bser/ @claasahl
|
||||
/types/bson/ @horiuchi @CaselIT @justingrant
|
||||
/types/btoa/ @johngeorgewright @bricka
|
||||
/types/buble/ @Kocal
|
||||
@@ -476,7 +478,7 @@
|
||||
/types/bufferstream/ @Bartvds
|
||||
/types/build-output-script/ @BendingBender
|
||||
/types/builtin-modules/ @ajafff
|
||||
/types/bull/ @bgrieder @JProgrammer @marshall007 @weeco @blaugold @iamolegga @koblas @bondz @wuha-team @aleccool213 @danmana @kjellmorten @pc-jedi
|
||||
/types/bull/ @bgrieder @JProgrammer @marshall007 @weeco @blaugold @iamolegga @koblas @bondz @wuha-team @aleccool213 @danmana @kjellmorten @pc-jedi @lenovouser
|
||||
/types/bull/v2/ @bgrieder @JProgrammer
|
||||
/types/bump-regex/ @silkentrance
|
||||
/types/bunnymq/ @cyrilschumacher
|
||||
@@ -581,6 +583,7 @@
|
||||
/types/cheerio/ @blittle @wmaurer @umarniz @LiJinyao @chennakrishna8 @AzSiAz @nwtgck
|
||||
/types/chess.js/ @JacobFischer
|
||||
/types/chessboardjs/ @sliverb @davidmpaz
|
||||
/types/child-process-promise/ @TheDSCPL
|
||||
/types/chmodr/ @BendingBender
|
||||
/types/chordsheetjs/ @adamsbloom
|
||||
/types/chosen-js/ @borisyankov @denisname
|
||||
@@ -594,6 +597,7 @@
|
||||
/types/chromedriver/ @pe8ter
|
||||
/types/cipher-base/ @adamzerella
|
||||
/types/circuit-breaker-js/ @DeTeam
|
||||
/types/circular-dependency-plugin/ @jeremejevs
|
||||
/types/circular-json/ @jpevarnek
|
||||
/types/ckeditor/ @wittwert @stuartlong @viktorpegy
|
||||
/types/ckeditor/v2/ @wittwert
|
||||
@@ -642,6 +646,7 @@
|
||||
/types/cloudflare-apps/ @MartynasZilinskas
|
||||
/types/clovelced-plugin-audiomanagement/ @marckassay
|
||||
/types/cls-hooked/ @aleung
|
||||
/types/clui/ @farzadmf
|
||||
/types/clusterize.js/ @Pr1st0n
|
||||
/types/cmd-shim/ @cspotcode
|
||||
/types/co/ @doniyor2109
|
||||
@@ -949,7 +954,6 @@
|
||||
/types/decode-entities/ @waspothegreat
|
||||
/types/decode-uri-component/ @BendingBender
|
||||
/types/decompress/ @plantain-00 @jbethke
|
||||
/types/decompress-response/ @DanielRosenwasser
|
||||
/types/decorum/ @dflor003
|
||||
/types/dedent/ @douglasduteil
|
||||
/types/deep-assign/ @souldreamer
|
||||
@@ -1038,7 +1042,6 @@
|
||||
/types/dom-clipboard-api/ @43081j
|
||||
/types/dom-helpers/ @mctep
|
||||
/types/dom-inputevent/ @diagramatics
|
||||
/types/dom-loaded/ @ltetzlaff
|
||||
/types/dom-mediacapture-record/ @eliasmeire
|
||||
/types/dom-to-image/ @JipSterk
|
||||
/types/dom4/ @adidahiya @giladgray
|
||||
@@ -1144,12 +1147,12 @@
|
||||
/types/electron-window-state/ @rhysd
|
||||
/types/electron-winstaller/ @shiftkey @unindented
|
||||
/types/elegant-spinner/ @danwbyrne
|
||||
/types/element-ready/ @BendingBender
|
||||
/types/element-resize-detector/ @saranshkataria @franklixuefei
|
||||
/types/element-resize-event/ @rogierschouten @plgregoire
|
||||
/types/elementtree/ @dwieeb
|
||||
/types/elliptic/ @danwbyrne @Gilthoniel
|
||||
/types/elm/ @thSoft
|
||||
/types/elo-rank/ @apavlinovic
|
||||
/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
|
||||
@@ -1300,7 +1303,7 @@
|
||||
/types/express-brute-memcached/ @cyrilschumacher
|
||||
/types/express-brute-mongo/ @cyrilschumacher
|
||||
/types/express-brute-redis/ @scottharwell
|
||||
/types/express-bunyan-logger/ @shreyjain1994
|
||||
/types/express-bunyan-logger/ @shreyjain1994 @mastermatt
|
||||
/types/express-busboy/ @pinguet62
|
||||
/types/express-cluster/ @nenadalm
|
||||
/types/express-correlation-id/ @natemara
|
||||
@@ -1430,8 +1433,6 @@
|
||||
/types/file-exists/ @BendingBender
|
||||
/types/file-saver/ @cyrilschumacher @DaIgeb @chrismbarr
|
||||
/types/file-url/ @coderslagoon
|
||||
/types/filenamify/ @rokt33r
|
||||
/types/filenamify-url/ @cprecioso
|
||||
/types/filesize/ @GiedriusGrabauskas @renchap @Ky6uk @ffxsam
|
||||
/types/fill-pdf/ @westy92
|
||||
/types/filter-console/ @BendingBender
|
||||
@@ -1464,13 +1465,12 @@
|
||||
/types/first-run/ @BendingBender
|
||||
/types/fixed-data-table/ @pepaar @stephenjelfs
|
||||
/types/fixed-data-table-2/ @ilivit
|
||||
/types/fkill/ @BendingBender
|
||||
/types/flagged-respawn/ @BendingBender
|
||||
/types/flat/ @chrootsu
|
||||
/types/fleximap/ @DanielRose
|
||||
/types/flexmonster/ @flexmonster
|
||||
/types/flexslider/ @diullei
|
||||
/types/flickity/ @clmcgrath @wagich
|
||||
/types/flickity/ @clmcgrath @wagich @aheber
|
||||
/types/flight/ @jonathanhedren
|
||||
/types/flightplan/ @borislavjivkov
|
||||
/types/flipsnap/ @kubosho @gsino @mayuki
|
||||
@@ -1725,7 +1725,6 @@
|
||||
/types/get-range/ @BendingBender
|
||||
/types/get-res/ @satyarohith
|
||||
/types/get-stdin/ @DanielRosenwasser
|
||||
/types/get-stream/ @douglasduteil @BendingBender
|
||||
/types/get-urls/ @BendingBender
|
||||
/types/get-value/ @DanielRosenwasser
|
||||
/types/getenv/ @impankratov
|
||||
@@ -1796,6 +1795,7 @@
|
||||
/types/google-cloud__kms/ @ben-tbotlabs
|
||||
/types/google-cloud__pubsub/ @pheromonez @LunaPg @msiviero
|
||||
/types/google-cloud__tasks/ @ifiokjr
|
||||
/types/google-cloud__text-to-speech/ @benhjames
|
||||
/types/google-earth/ @icholy
|
||||
/types/google-images/ @dolanmiu
|
||||
/types/google-libphonenumber/ @leonyu @winfinit
|
||||
@@ -1962,11 +1962,9 @@
|
||||
/types/harmony-proxy/ @remojansen
|
||||
/types/has-ansi/ @BendingBender
|
||||
/types/has-emoji/ @BendingBender
|
||||
/types/has-yarn/ @BendgingBender
|
||||
/types/hash-file/ @HiromiShikata
|
||||
/types/hash-stream/ @BendingBender
|
||||
/types/hash-sum/ @DanielRosenwasser
|
||||
/types/hasha/ @BendgingBender
|
||||
/types/hasher/ @flyfishMT
|
||||
/types/hashids/ @pocesar
|
||||
/types/hashmap/ @outring
|
||||
@@ -1994,7 +1992,7 @@
|
||||
/types/hexo-fs/ @segayuu
|
||||
/types/hexo-log/ @segayuu
|
||||
/types/hexo-util/ @segayuu
|
||||
/types/highcharts/ @damianog @baltie @AlbertOzimek @hanssens @jgresham
|
||||
/types/highcharts/ @damianog @baltie @AlbertOzimek @hanssens @jgresham @Arunkeshavareddy
|
||||
/types/highcharts-ng/ @scatcher
|
||||
/types/highland/ @Bartvds @hgwood @iwllyu @alvis @notbobthebuilder
|
||||
/types/highlight.js/ @nikeee @sourrust @joshuakgoldberg
|
||||
@@ -2121,6 +2119,7 @@
|
||||
/types/iniparser/ @chrootsu
|
||||
/types/init-package-json/ @kfarnung
|
||||
/types/ink/ @cprecioso
|
||||
/types/ink-select-input/ @lukostry
|
||||
/types/ink-spinner/ @lukostry
|
||||
/types/ink-table/ @lukostry
|
||||
/types/ink-testing-library/ @MancunianSam
|
||||
@@ -2128,7 +2127,7 @@
|
||||
/types/inline-css/ @philipisapain
|
||||
/types/inline-style-prefixer/ @ahz @dpetrezselyova @franklixuefei
|
||||
/types/inputmask/ @dmester
|
||||
/types/inquirer/ @tkQubo @ppathan @jouderianjr @bang88 @bitjson @synarque @jrockwood @kwkelly @Ailrun
|
||||
/types/inquirer/ @tkQubo @ppathan @jouderianjr @bang88 @bitjson @synarque @jrockwood @kwkelly @Ailrun @chigix
|
||||
/types/inquirer-npm-name/ @manuth
|
||||
/types/insert-css/ @hvoecking
|
||||
/types/insert-module-globals/ @leonard-thieu
|
||||
@@ -2139,13 +2138,13 @@
|
||||
/types/intercom-web/ @fongandrew @salbahra @onatm
|
||||
/types/intercomjs/ @spencerwi
|
||||
/types/interpret/ @BendingBender
|
||||
/types/intersects/ @voxylu
|
||||
/types/intl/ @RagibHasin
|
||||
/types/intl-locales-supported/ @Slessi
|
||||
/types/intl-messageformat/ @mhegazy
|
||||
/types/intl-relativeformat/ @mohsen1
|
||||
/types/intl-tel-input/ @fdnhkj @leonard-thieu @molnarm
|
||||
/types/intl-tel-input/v13/ @fdnhkj @leonard-thieu
|
||||
/types/into-stream/ @BendingBender
|
||||
/types/intrinsic-scale/ @shalomdotnet
|
||||
/types/intro.js/ @anahkiasen
|
||||
/types/invariant/ @bennett000
|
||||
@@ -2181,6 +2180,7 @@
|
||||
/types/is-ci/ @atd-schubert
|
||||
/types/is-color/ @VitorLuizC
|
||||
/types/is-compressed/ @mhegazy
|
||||
/types/is-date-object/ @adamzerella
|
||||
/types/is-docker/ @YashdalfTheGray
|
||||
/types/is-dotdir/ @BendingBender
|
||||
/types/is-dotfile/ @BendingBender
|
||||
@@ -2216,7 +2216,6 @@
|
||||
/types/is-root/ @mhegazy
|
||||
/types/is-root-path/ @mhegazy
|
||||
/types/is-running/ @danwbyrne
|
||||
/types/is-scoped/ @postcrafter
|
||||
/types/is-stream/ @me
|
||||
/types/is-text-path/ @mhegazy
|
||||
/types/is-touch-device/ @screendriver
|
||||
@@ -2561,6 +2560,7 @@
|
||||
/types/k6/ @MajorBreakfast
|
||||
/types/kafka-node/ @dansitu @bkim54 @sfrooster @amiram @insanehong
|
||||
/types/kafkajs/ @michal-b-kaminski
|
||||
/types/kamailio-kemi/ @bonan
|
||||
/types/karma/ @tkrotoff @43081j @devoto13
|
||||
/types/karma/v1/ @tkrotoff @43081j
|
||||
/types/karma-chai/ @JayAndCatchFire
|
||||
@@ -2598,7 +2598,6 @@
|
||||
/types/klaw/v1/ @mceachen
|
||||
/types/klaw-sync/ @shiftkey
|
||||
/types/kms-json/ @sunnyone
|
||||
/types/knex/ @tkQubo @MeLlamoPablo @mastermatt @micksatana @shreyjain1994 @joelshepherd
|
||||
/types/knex-postgis/ @vesse
|
||||
/types/knockback/ @borisyankov
|
||||
/types/knockout/ @borisyankov @Igorbek @moonpyk @EnableSoftware @BenjaminEckardt @ffMathy @ltlombardi @Retsam
|
||||
@@ -2693,7 +2692,6 @@
|
||||
/types/lasso/ @darkwebdev
|
||||
/types/later/ @jasond-s
|
||||
/types/latest-semver/ @BendingBender
|
||||
/types/latest-version/ @BendingBender
|
||||
/types/latinize/ @GiedriusGrabauskas
|
||||
/types/latlon-geohash/ @rimig
|
||||
/types/launchpad/ @rictic
|
||||
@@ -2749,14 +2747,13 @@
|
||||
/types/leveldown/v1/ @tarruda @LinusU
|
||||
/types/levelup/ @MeirionHughes @danwbyrne
|
||||
/types/levelup/v1/ @blittle @tarruda
|
||||
/types/leven/ @jmalonzo
|
||||
/types/levenshtein/ @geoffreak
|
||||
/types/libpq/ @Lodin
|
||||
/types/libsodium-wrappers/ @ffflorian
|
||||
/types/libsodium-wrappers-sumo/ @ffflorian
|
||||
/types/libxmljs/ @fdecampredon @ComFreek
|
||||
/types/libxslt/ @alejo90
|
||||
/types/license-checker/ @rogierschouten @unindented
|
||||
/types/license-checker/ @rogierschouten @unindented @alechemy
|
||||
/types/liftoff/ @BendingBender
|
||||
/types/lil-uri/ @wcarson
|
||||
/types/lil-uuid/ @Pr1st0n
|
||||
@@ -3220,7 +3217,6 @@
|
||||
/types/media-typer/ @BendingBender
|
||||
/types/medium-editor/ @keika299 @pascaliske
|
||||
/types/megajs/ @danwbyrne
|
||||
/types/mem/ @SamVerschueren
|
||||
/types/mem-cache/ @MutterPedro
|
||||
/types/mem-fs/ @MyFoodBag
|
||||
/types/mem-fs-editor/ @MyFoodBag
|
||||
@@ -3379,7 +3375,7 @@
|
||||
/types/msgpack5/ @wokim @heycalmdown
|
||||
/types/msnodesql/ @borisyankov @SomaticIT
|
||||
/types/msportalfx-test/ @julioct
|
||||
/types/mssql/ @jaminfarr @buzinas @mrrichar @elhaard @pkeuter @mcdado
|
||||
/types/mssql/ @jaminfarr @buzinas @mrrichar @elhaard @pkeuter @mcdado @woodenconsulting
|
||||
/types/mu2/ @jedigo
|
||||
/types/mui-datatables/ @favna @ankithkonda
|
||||
/types/muicss/ @samuelneff
|
||||
@@ -3433,6 +3429,7 @@
|
||||
/types/nconf/ @jedigo @jmthibault @ew73
|
||||
/types/ncp/ @bartvds
|
||||
/types/ndarray/ @pawsong @taoqf
|
||||
/types/ndn-js/ @yoursunny
|
||||
/types/nearley/ @deltaidea @BendingBender
|
||||
/types/neat-csv/ @calamitizer
|
||||
/types/nedb/ @reppners @anthonynichols @afharo
|
||||
@@ -3515,9 +3512,9 @@
|
||||
/types/node-dir/ @panuhorsmalahti
|
||||
/types/node-dogstatsd/ @chrisbobo @xzyfer
|
||||
/types/node-emoji/ @jonestristand @styu @rimiti
|
||||
/types/node-fetch/ @torstenwerner @nikcorg @vinaybedre @kyranet
|
||||
/types/node-fetch/ @torstenwerner @nikcorg @vinaybedre @kyranet @AndrewLeedham
|
||||
/types/node-fibers/ @caryhaynie
|
||||
/types/node-forge/ @westy92 @flynetworks @a-k-g @rafal2228 @beenotung @joeflateau @Apologiz @timhwang21 @supaiku0 @andersk
|
||||
/types/node-forge/ @westy92 @flynetworks @a-k-g @rafal2228 @beenotung @joeflateau @Apologiz @timhwang21 @supaiku0 @andersk @saschazar21
|
||||
/types/node-gcm/ @horiuchi
|
||||
/types/node-geocoder/ @rosek86
|
||||
/types/node-getopt/ @kcauchy
|
||||
@@ -3577,6 +3574,7 @@
|
||||
/types/nodeunit/ @jedigo
|
||||
/types/noisejs/ @izmhr
|
||||
/types/nomnom/ @panopticoncentral
|
||||
/types/nonogram-solver/ @me
|
||||
/types/nookies/ @andreasbergqvist
|
||||
/types/nopt/ @jbondc
|
||||
/types/normalize-package-data/ @jdxcode
|
||||
@@ -3591,15 +3589,12 @@
|
||||
/types/nouislider/v7/ @acoreyj
|
||||
/types/novnc-core/ @smithkl42 @BendingBender
|
||||
/types/npm/ @SomaticIT
|
||||
/types/npm-email/ @BendingBender
|
||||
/types/npm-keyword/ @BendingBender
|
||||
/types/npm-license-crawler/ @ffflorian
|
||||
/types/npm-list-author-packages/ @ffflorian
|
||||
/types/npm-package-arg/ @mgroenhoff @OiYouYeahYou
|
||||
/types/npm-packlist/ @ajafff
|
||||
/types/npm-paths/ @BendingBender
|
||||
/types/npm-registry-package-info/ @ffflorian
|
||||
/types/npm-user/ @BendingBender
|
||||
/types/npm-user-packages/ @BendingBender
|
||||
/types/npmlog/ @DanielMSchmidt @littlepiggy03
|
||||
/types/ns-api/ @Archcry
|
||||
@@ -3668,7 +3663,7 @@
|
||||
/types/onionoo/ @BendingBender
|
||||
/types/onoff/ @marcel-ernst @Kallu609
|
||||
/types/ontime/ @Hirse
|
||||
/types/open/ @Bartvds
|
||||
/types/open/ @shinnn @SomaticIT @tlent @ffflorian
|
||||
/types/open-editor/ @BendingBender
|
||||
/types/open-graph/ @ffflorian
|
||||
/types/openapi-factory/ @runebaas
|
||||
@@ -3684,9 +3679,8 @@
|
||||
/types/openlayers/v2/ @bolhovsky
|
||||
/types/openpgp/ @errietta @damonpam @po5i @ecamellini @SardineFish
|
||||
/types/openstack-wrapper/ @sanjaymadane
|
||||
/types/opentok/ @westy92 @CatGuardian
|
||||
/types/opentok/ @westy92 @CatGuardian @pronebird
|
||||
/types/opentype.js/ @danmarshall @edzis
|
||||
/types/opn/ @shinnn @SomaticIT @tlent
|
||||
/types/opossum/ @quinnlangille @merufm @lance @mastermatt
|
||||
/types/optics-agent/ @crevil
|
||||
/types/optimist/ @soywiz @chbrown
|
||||
@@ -3712,34 +3706,16 @@
|
||||
/types/owl.carousel/ @igorissen @KennethanCeyer
|
||||
/types/owlcarousel/ @dpiatkowski
|
||||
/types/p-all/ @BendingBender
|
||||
/types/p-any/ @BendingBender
|
||||
/types/p-cancelable/ @BendingBender
|
||||
/types/p-catch-if/ @LinusU
|
||||
/types/p-debounce/ @BendingBender
|
||||
/types/p-defer/ @SamVerschueren @BendingBender
|
||||
/types/p-do-whilst/ @BendingBender
|
||||
/types/p-each-series/ @BendingBender
|
||||
/types/p-every/ @BendingBender
|
||||
/types/p-forever/ @BendingBender
|
||||
/types/p-is-promise/ @BendingBender
|
||||
/types/p-lazy/ @BendingBender
|
||||
/types/p-loading/ @renjfk
|
||||
/types/p-locate/ @BendingBender
|
||||
/types/p-log/ @BendingBender
|
||||
/types/p-map-series/ @BendingBender
|
||||
/types/p-memoize/ @forabi
|
||||
/types/p-min-delay/ @BendingBender
|
||||
/types/p-one/ @BendingBender
|
||||
/types/p-progress/ @icopp
|
||||
/types/p-props/ @BendingBender
|
||||
/types/p-reduce/ @BendingBender
|
||||
/types/p-reflect/ @BendingBender
|
||||
/types/p-retry/ @BendingBender
|
||||
/types/p-series/ @BendingBender
|
||||
/types/p-settle/ @natesilva
|
||||
/types/p-tap/ @BendingBender
|
||||
/types/p-time/ @BendingBender
|
||||
/types/p-timeout/ @BendingBender
|
||||
/types/p-times/ @BendingBender
|
||||
/types/p-try/ @BendingBender @LinusU
|
||||
/types/p-wait-for/ @BendingBender
|
||||
@@ -3748,7 +3724,6 @@
|
||||
/types/p-whilst/ @BendingBender
|
||||
/types/p2/ @clark-stevenson @jramstedt
|
||||
/types/p5/ @p5-types
|
||||
/types/package-json/ @jinwoo @BendingBender
|
||||
/types/packery/ @piraveen @hanssens
|
||||
/types/pad/ @mhegazy
|
||||
/types/page/ @43081j
|
||||
@@ -3768,7 +3743,7 @@
|
||||
/types/parity-pmr/ @leovujanic
|
||||
/types/parity-poe/ @leovujanic
|
||||
/types/park-miller/ @BendingBender
|
||||
/types/parse/ @dpoetzsch @jaeggerr @flavionegrao @wesleygrimes @owsas @agoldis @AlexandreHetu
|
||||
/types/parse/ @dpoetzsch @jaeggerr @flavionegrao @wesleygrimes @owsas @agoldis @AlexandreHetu @dplewis @yomybaby
|
||||
/types/parse/v1/ @dpoetzsch @jaeggerr @flavionegrao @wesleygrimes @owsas
|
||||
/types/parse-columns/ @BendingBender
|
||||
/types/parse-filepath/ @BendingBender
|
||||
@@ -3821,7 +3796,7 @@
|
||||
/types/passport-oauth2/ @pasieronen @WangZishi @EduardoAC @ivan94
|
||||
/types/passport-oauth2-client-password/ @akaNightmare
|
||||
/types/passport-remember-me-extended/ @AylaJK
|
||||
/types/passport-saml/ @cjbarth @dassennato @ksamborski
|
||||
/types/passport-saml/ @cjbarth @dassennato @ksamborski @josecolella
|
||||
/types/passport-steam/ @kzay
|
||||
/types/passport-strategy/ @liorm
|
||||
/types/passport-twitter/ @staticfunction
|
||||
@@ -3835,7 +3810,6 @@
|
||||
/types/path-is-absolute/ @mhegazy
|
||||
/types/path-is-inside/ @aomarks
|
||||
/types/path-regex/ @BendingBender
|
||||
/types/path-type/ @BendingBender
|
||||
/types/pathfinding/ @BNedry
|
||||
/types/pathjs/ @lokeshpeta
|
||||
/types/pathwatcher/ @GlenCFL
|
||||
@@ -3907,9 +3881,7 @@
|
||||
/types/piwik-tracker/ @lbguilherme
|
||||
/types/pixelmatch/ @iamolegga
|
||||
/types/pixi.js/ @clark-stevenson
|
||||
/types/pkg-dir/ @NK-WEB-Git
|
||||
/types/pkg-up/ @forivall
|
||||
/types/pkg-versions/ @BendingBender
|
||||
/types/pkgcloud/ @dantman
|
||||
/types/pkijs/ @microshine
|
||||
/types/platform/ @JakeH
|
||||
@@ -3939,6 +3911,8 @@
|
||||
/types/pollyjs__persister-fs/ @feinoujc
|
||||
/types/pollyjs__utils/ @feinoujc
|
||||
/types/polyfill-service/ @Alorel
|
||||
/types/polygon/ @Nielio
|
||||
/types/polygons-intersect/ @Nielio
|
||||
/types/polylabel/ @DenisCarriere
|
||||
/types/polyline/ @Kern0
|
||||
/types/polymer/ @lgrignon @laco0416
|
||||
@@ -3978,6 +3952,7 @@
|
||||
/types/pouchdb-upsert/ @keithdmoore @hotforfeature @apolkingg8 @zamb3zi
|
||||
/types/power-assert/ @vvakame
|
||||
/types/power-assert-formatter/ @vvakame
|
||||
/types/powerapps-component-framework/ @jopursle
|
||||
/types/powerbi-visuals-tools/ @zBritva @Microsoft
|
||||
/types/preact-i18n/ @ltetzlaff
|
||||
/types/precise/ @codeanimal
|
||||
@@ -4330,7 +4305,7 @@
|
||||
/types/react-loader/ @artfuldev
|
||||
/types/react-lottie/ @Kana00 @Ricki-BumbleDev
|
||||
/types/react-mailchimp-subscribe/ @osdiab
|
||||
/types/react-map-gl/ @rimig @fnberta
|
||||
/types/react-map-gl/ @rimig @fnberta @sandersiim
|
||||
/types/react-maskedinput/ @LKay @lavoaster @CarlosBonetti
|
||||
/types/react-material-ui-form-validator/ @FrankBrullo
|
||||
/types/react-mce/ @morphologue
|
||||
@@ -4351,6 +4326,7 @@
|
||||
/types/react-native-background-timer/ @chillkroeteTTS
|
||||
/types/react-native-bluetooth-serial/ @RodrigoAWeber
|
||||
/types/react-native-calendars/ @Tyler-Zhang @DavidNorena @FabianMeul
|
||||
/types/react-native-canvas/ @hmajid2301
|
||||
/types/react-native-communications/ @huhuanming @PaitoAnderson
|
||||
/types/react-native-custom-tabs/ @philnova
|
||||
/types/react-native-datepicker/ @jacobbaskin @nossbigg
|
||||
@@ -4492,6 +4468,7 @@
|
||||
/types/react-s-alert/ @mitsuruog
|
||||
/types/react-scroll/ @sudoplz @GiedriusGrabauskas
|
||||
/types/react-scroll-into-view-if-needed/ @angusfretwell @allanpope @jonathanly
|
||||
/types/react-scrollable-anchor/ @AntoineDoubovetzky
|
||||
/types/react-scrollbar/ @stephenjelfs
|
||||
/types/react-scrollspy/ @ZhangYiJiang
|
||||
/types/react-select/ @claasahl @jonfreedman
|
||||
@@ -4524,7 +4501,7 @@
|
||||
/types/react-svg-pan-zoom/ @huy-nguyen
|
||||
/types/react-swf/ @stepancar
|
||||
/types/react-swipe/ @DeividasBakanas @AAlakkad
|
||||
/types/react-swipeable/ @GiedriusGrabauskas @mctep @horiuchi
|
||||
/types/react-swipeable/ @GiedriusGrabauskas @mctep @horiuchi @adambowles
|
||||
/types/react-swipeable-views/ @mxl @DeividasBakanas
|
||||
/types/react-syntax-highlighter/ @NoHomey @ajgamble-milner
|
||||
/types/react-table/ @royxue @psakalo @Havret @andys8 @Gelio
|
||||
@@ -4539,6 +4516,7 @@
|
||||
/types/react-test-renderer/v15/ @arvitaly @lochbrunner @lochbrunner @johnnyreilly
|
||||
/types/react-tether/ @ryprice
|
||||
/types/react-text-mask/ @guilhermehubner @cavarzan @needpower
|
||||
/types/react-text-truncate/ @adriantoine
|
||||
/types/react-textarea-autosize/ @asvetliakov @zry656565
|
||||
/types/react-timeago/ @koss-lebedev
|
||||
/types/react-timeout/ @kerwynrg
|
||||
@@ -4565,7 +4543,7 @@
|
||||
/types/react-weui/ @tairan
|
||||
/types/react-widgets/ @rogierschouten @sanyatuning @frodehansen2 @r3nya @MBillemaz @georg94 @tzarger @vegtelenseg
|
||||
/types/react-widgets-moment/ @dawnmist
|
||||
/types/react-window/ @martynaskadisa @heyimalex
|
||||
/types/react-window/ @martynaskadisa @heyimalex @jgoz
|
||||
/types/react-window-size/ @jakejrichards
|
||||
/types/react-wow/ @mikepthomas
|
||||
/types/react-youtube/ @kgtkr @salguerooo
|
||||
@@ -4576,7 +4554,7 @@
|
||||
/types/reactstrap/v4/ @alihammad @mfal @danilobjr @fabiopaiva
|
||||
/types/read/ @timjk
|
||||
/types/read-package-tree/ @mgroenhoff
|
||||
/types/read-pkg/ @jdxcode
|
||||
/types/read-pkg/ @jdxcode @arichardsmith
|
||||
/types/read-pkg-up/ @dudeofawesome @jdxcode
|
||||
/types/readable-stream/ @TeamworkGuy2
|
||||
/types/readdir-enhanced/ @mrmlnc
|
||||
@@ -4610,11 +4588,11 @@
|
||||
/types/reduce-reducers/ @huy-nguyen @daliusd
|
||||
/types/redux-action/ @newraina
|
||||
/types/redux-action-utils/ @tkqubo
|
||||
/types/redux-actions/ @jaysoo @alexgorbatchev @alechill @alexey-pelykh @7hi4g0
|
||||
/types/redux-actions/ @jaysoo @alexgorbatchev @alechill @alexey-pelykh @7hi4g0 @oddui
|
||||
/types/redux-async-queue/ @andreiho
|
||||
/types/redux-auth-wrapper/ @LKay
|
||||
/types/redux-auth-wrapper/v1/ @LKay
|
||||
/types/redux-batched-subscribe/ @mDibyo
|
||||
/types/redux-batched-subscribe/ @mDibyo @azizhk
|
||||
/types/redux-debounced/ @seansfkelley
|
||||
/types/redux-devtools/ @mc-petry
|
||||
/types/redux-devtools-dock-monitor/ @mc-petry
|
||||
@@ -4624,7 +4602,7 @@
|
||||
/types/redux-first-router-link/ @janb87
|
||||
/types/redux-first-router-restore-scroll/ @icopp
|
||||
/types/redux-first-routing/ @tlaziuk
|
||||
/types/redux-form/ @carsonf @aikoven @LKay @bancek @alsiola @tehbi4 @huwmartin @ethanresnick @reggino @maddijoyce @smifun @mshaaban088 @esetnik @bwlt
|
||||
/types/redux-form/ @carsonf @aikoven @LKay @bancek @alsiola @tehbi4 @huwmartin @ethanresnick @reggino @maddijoyce @smifun @mshaaban088 @esetnik @bwlt @mrsekut
|
||||
/types/redux-form/v7/ @carsonf @aikoven @LKay @bancek @alsiola @tehbi4 @huwmartin @ethanresnick @reggino @maddijoyce @smifun @mshaaban088 @esetnik
|
||||
/types/redux-form/v6/ @carsonf @aikoven @LKay @bancek @mshaaban088
|
||||
/types/redux-form/v4/ @aikoven
|
||||
@@ -4649,6 +4627,7 @@
|
||||
/types/redux-recycle/ @LKay
|
||||
/types/redux-router/ @stepancar
|
||||
/types/redux-saga-tester/ @BenLorantfy @lawsumisu
|
||||
/types/redux-seamless-immutable/ @SoaresMG
|
||||
/types/redux-sentry-middleware/ @dolezel
|
||||
/types/redux-shortcuts/ @tstirrat
|
||||
/types/redux-socket.io/ @snakeego
|
||||
@@ -4711,6 +4690,7 @@
|
||||
/types/resolve-from/ @unional @BendingBender
|
||||
/types/resolve-from/v2/ @unional
|
||||
/types/resolve-global/ @BendingBender
|
||||
/types/resolve-options/ @delprzemo
|
||||
/types/resolve-pkg/ @mabels @BendingBender
|
||||
/types/resourcejs/ @shaunluttin
|
||||
/types/response-time/ @urossmolnik @TonyPythoneer @danmana
|
||||
@@ -4857,13 +4837,12 @@
|
||||
/types/schema-registry/ @bonzzy
|
||||
/types/schwifty/ @ozum
|
||||
/types/scoped-http-client/ @mattvperry @rianadon
|
||||
/types/screenfull/ @icholy @lionelb @joelshepherd @BendingBender
|
||||
/types/screenfull/v3/ @icholy @lionelb @joelshepherd
|
||||
/types/screeps/ @MarkoSulamagi @NhanHo @bryanbecker @resir014 @Arcath @dmarcuse
|
||||
/types/screeps-profiler/ @ramblurr
|
||||
/types/script-ext-html-webpack-plugin/ @davecardwell
|
||||
/types/scriptjs/ @ssttevee
|
||||
/types/scroll-into-view/ @zivni
|
||||
/types/scroll-to-element/ @kirillurgant
|
||||
/types/scroller/ @haskellcamargo
|
||||
/types/scrollparent/ @Sintifo
|
||||
/types/scrollreveal/ @Davidblkx
|
||||
@@ -5006,7 +4985,6 @@
|
||||
/types/simplesmtp/ @rogierschouten
|
||||
/types/simplestorage.js/ @axelcostaspena @mxl
|
||||
/types/sindresorhus__class-names/ @BendingBender
|
||||
/types/sindresorhus__df/ @whatknight
|
||||
/types/sindresorhus__djb2a/ @BendingBender
|
||||
/types/sindresorhus__fnv1a/ @BendingBender
|
||||
/types/sindresorhus__string-hash/ @BendingBender
|
||||
@@ -5046,6 +5024,7 @@
|
||||
/types/slate-react/ @andykent @majelbstoat @JanLoebel @PatrickSachs @YangusKhan @isubasti @sgreav @Kornil @jackall3n
|
||||
/types/sleep/ @rajarz
|
||||
/types/slice-ansi/ @dwieeb
|
||||
/types/slick-carousel/ @Kocal
|
||||
/types/slickgrid/ @jbaldwin
|
||||
/types/slideout/ @ToastHawaii
|
||||
/types/slimerjs/ @alexwall
|
||||
@@ -5227,7 +5206,7 @@
|
||||
/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU @brannon @kkamperschroer @starhoshi @bruun @galtalmor @htunnicliff @squirly @tzarger @ifiokjr @SimonSchick @yultyyev @cpsoinos @adamduren @saranshkataria @0xJoKe @delianides
|
||||
/types/stripe-checkout/ @cgwrench
|
||||
/types/stripe-v2/ @ejsmith @amritk @adamcmiel @jleider @galuszkak
|
||||
/types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak @slangeder
|
||||
/types/stripe-v3/ @ejsmith @amritk @adamcmiel @jleider @galuszkak @slangeder @marlosin
|
||||
/types/stripejs/ @RobinvanTienhoven @mattferderer
|
||||
/types/strong-cluster-control/ @shuntksh
|
||||
/types/strong-error-handler/ @blankstar85
|
||||
@@ -5241,7 +5220,7 @@
|
||||
/types/styled-react-modal/ @Lavoaster
|
||||
/types/styled-system/ @maxdeviant @phobon @zephraph @damassi @alloy @maoueh @lavoaster @jschuler @adam187 @gretzky @chrislopresto
|
||||
/types/styled-theming/ @ArjanJ
|
||||
/types/stylelint/ @alan-agius4 @filipsalpe
|
||||
/types/stylelint/ @alan-agius4 @filipsalpe @43081j
|
||||
/types/stylelint/v7/ @alan-agius4
|
||||
/types/stylelint-webpack-plugin/ @bahlo
|
||||
/types/stylenames/ @bengry
|
||||
@@ -5368,6 +5347,7 @@
|
||||
/types/texzilla/ @m93a
|
||||
/types/tgfancy/ @Dabolus
|
||||
/types/theming/ @eps1lon
|
||||
/types/then-eos/ @seangenabe
|
||||
/types/theo/ @petekp @laitine
|
||||
/types/thepiratebay/ @jsorrell
|
||||
/types/three/ @gyohk @florentpoujol @omni360 @ivoisbelongtous @piranha771 @qszhusightp @nakakura @Pro @efokschaner @PsychoSTS @apurvaojas @NotWoods @Methuselah96 @Dukuo @JulianSSS @devilsparta @KonstantinLukaschenko @danyim @saranshkataria @psuter
|
||||
@@ -5512,6 +5492,7 @@
|
||||
/types/underscore.string/ @rygine
|
||||
/types/undertaker/ @tkqubo @GiedriusGrabauskas
|
||||
/types/undertaker-registry/ @GiedriusGrabauskas
|
||||
/types/uni-app/ @dcloudio
|
||||
/types/unidecode/ @vfernandestoptal
|
||||
/types/uniq/ @hansrwindhoff
|
||||
/types/uniqid/ @idchlife
|
||||
@@ -5527,7 +5508,6 @@
|
||||
/types/unorm/ @chbrown
|
||||
/types/unsplash-js/ @markupcode
|
||||
/types/untildify/ @BendingBender
|
||||
/types/unused-filename/ @BendingBender
|
||||
/types/unzip/ @coding2012
|
||||
/types/unzipper/ @s73obrien @natemara @bartje321
|
||||
/types/update-notifier/ @vvakame @nchen63 @bitjson @grinich
|
||||
@@ -5588,9 +5568,11 @@
|
||||
/types/validatorjs/ @LKay @danmana @MatiasOlivera
|
||||
/types/vanilla-modal/ @samnau
|
||||
/types/vanilla-tilt/ @BrunnerLivio
|
||||
/types/vara/ @Chnapy
|
||||
/types/varint/ @dbrockman
|
||||
/types/vary/ @BendingBender
|
||||
/types/vast-client/ @jgainfort @kobawan
|
||||
/types/vec2/ @Nielio
|
||||
/types/vec3/ @xstoudi
|
||||
/types/vectorious/ @erikgerrits
|
||||
/types/velocity-animate/ @smrq
|
||||
@@ -5658,7 +5640,6 @@
|
||||
/types/walk/ @poppa
|
||||
/types/wallabyjs/ @andrewconnell
|
||||
/types/wallop/ @leemcd56
|
||||
/types/wallpaper/ @BendingBender
|
||||
/types/wampy/ @KSDaemon
|
||||
/types/warning/ @cvle
|
||||
/types/watch/ @soywiz @Perlmint
|
||||
@@ -5772,6 +5753,7 @@
|
||||
/types/word-list-json/ @dovidm
|
||||
/types/word2vector/ @renekeijzer
|
||||
/types/wordcloud/ @joeskeen
|
||||
/types/wordpress__jest-console/ @mistic100
|
||||
/types/words-to-numbers/ @James-Frowen
|
||||
/types/wordwrap/ @ark120202
|
||||
/types/workbox-sw/ @wessberg
|
||||
@@ -5801,7 +5783,7 @@
|
||||
/types/xml-parser/ @mhfrantz
|
||||
/types/xml2js/ @michelsalib @jasonrm @ccurrens @edwardhinkle @BehindTheMath @claasahl
|
||||
/types/xml2json/ @dolanmiu
|
||||
/types/xmlbuilder/ @wallymathieu
|
||||
/types/xmlbuilder/ @wallymathieu @GaikwadPratik
|
||||
/types/xmldoc/ @Xstoudi @ajsheehan @notlaforge
|
||||
/types/xmldom/ @tkqubo
|
||||
/types/xmlpoke/ @garthk
|
||||
@@ -5834,7 +5816,7 @@
|
||||
/types/ydn-db/ @yathit @gabrielmaldi
|
||||
/types/year-days/ @BendingBender
|
||||
/types/yeoman-assert/ @Toilal
|
||||
/types/yeoman-generator/ @armorik83 @janslow @ikatyang @tasadar2 @haggen
|
||||
/types/yeoman-generator/ @armorik83 @janslow @ikatyang @tasadar2 @haggen @chigix
|
||||
/types/yeoman-test/ @ikatyang
|
||||
/types/yesql/ @Sumolari
|
||||
/types/yn/ @BendingBender
|
||||
@@ -5850,6 +5832,7 @@
|
||||
/types/yui/ @giabao
|
||||
/types/yup/ @dhardtke @vtserman @MoretonBayRC @sseppola @YashdalfTheGray @vincentjames501 @robertbullen @sat0yu @dancrumb
|
||||
/types/z-schema/ @pgonzal
|
||||
/types/zeit__next-source-maps/ @ldthorne
|
||||
/types/zeit__next-typescript/ @icopp
|
||||
/types/zen-observable/ @aicest @JounQin @itomtom
|
||||
/types/zen-push/ @daprahamian
|
||||
|
||||
@@ -332,5 +332,3 @@ Es más apropiado importar este módulo utilizando la sintaxis `import foo = req
|
||||
Este proyecto es licenciado bajo la licencia MIT.
|
||||
|
||||
Los derechos de autor de cada archivo de definición son respectivos de cada contribuidor listado al comienzo de cada archivo de definición.
|
||||
|
||||
[](https://github.com/igrigorik/ga-beacon)
|
||||
|
||||
@@ -334,5 +334,3 @@ NPM 패키지의 경우, `node -p 'require("foo")'` 가 원하는 값이라면 `
|
||||
이 프로젝트는 MIT license 가 적용되어 있습니다.
|
||||
|
||||
각 자료형 정의(Type definition) 파일들의 저작권은 각 기여자들에게 있으며, 기여자들은 해당 자료형 정의(Type definition) 파일들의 맨 위에 나열되어 있습니다.
|
||||
|
||||
[](https://github.com/igrigorik/ga-beacon)
|
||||
|
||||
@@ -452,5 +452,3 @@ GitHub doesn't [support](http://stackoverflow.com/questions/5646174/how-to-make-
|
||||
This project is licensed under the MIT license.
|
||||
|
||||
Copyrights on the definition files are respective of each contributor listed at the beginning of each definition file.
|
||||
|
||||
[](https://github.com/igrigorik/ga-beacon)
|
||||
|
||||
@@ -346,8 +346,6 @@ GitHub не [поддерживает](http://stackoverflow.com/questions/564617
|
||||
|
||||
Авторские права на файлы определений принадлежат каждому участнику, указанному в начале каждого файла определения.
|
||||
|
||||
[](https://github.com/igrigorik/ga-beacon)
|
||||
|
||||
[](https://typescript.visualstudio.com/TypeScript/_build/latest?definitionId=13) В среднем пакеты публикуются на npm менее чем за 10000 секунд?
|
||||
|
||||
[](https://typescript.visualstudio.com/TypeScript/_build/latest?definitionId=14) Был ли typescript-bot активным на DefinitelyTyped в последние два часа?
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
# 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
|
||||
jobs:
|
||||
- job: npmRunTest
|
||||
pool:
|
||||
vmImage: 'Ubuntu 16.04'
|
||||
demands: npm
|
||||
|
||||
timeoutInMinutes: 360
|
||||
|
||||
steps:
|
||||
- task: Npm@1
|
||||
displayName: 'npm install'
|
||||
inputs:
|
||||
verbose: false
|
||||
|
||||
- script: 'git checkout -- . && npm run test'
|
||||
displayName: 'npm run test'
|
||||
|
||||
trigger:
|
||||
- master
|
||||
|
||||
@@ -786,6 +786,12 @@
|
||||
"sourceRepoURL": "https://github.com/manuelbieh/Geolib",
|
||||
"asOfVersion": "2.0.23"
|
||||
},
|
||||
{
|
||||
"libraryName": "get-port",
|
||||
"typingsPackageName": "get-port",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/get-port",
|
||||
"asOfVersion": "4.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "get-stream",
|
||||
"typingsPackageName": "get-stream",
|
||||
@@ -1410,6 +1416,12 @@
|
||||
"sourceRepoURL": "http://onsen.io",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "opn",
|
||||
"typingsPackageName": "opn",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/opn",
|
||||
"asOfVersion": "5.5.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ora",
|
||||
"typingsPackageName": "ora",
|
||||
@@ -2124,6 +2136,12 @@
|
||||
"sourceRepoURL": "https://servicestack.net/",
|
||||
"asOfVersion": "0.1.5"
|
||||
},
|
||||
{
|
||||
"libraryName": "@storybook/addon-notes",
|
||||
"typingsPackageName": "storybook__addon-notes",
|
||||
"sourceRepoURL": "https://github.com/storybooks/storybook",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "striptags",
|
||||
"typingsPackageName": "striptags",
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
Vendored
+1
-1
@@ -13,7 +13,7 @@ export class DirectUpload {
|
||||
file: File;
|
||||
url: string;
|
||||
|
||||
constructor(file: File, url: string, delegate: DirectUploadDelegate)
|
||||
constructor(file: File, url: string, delegate?: DirectUploadDelegate)
|
||||
|
||||
create(callback: (error: Error, blob: Blob) => void): void;
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -104,12 +104,13 @@ AirbnbPropTypes.forbidExtraProps<ForbidShape>({
|
||||
// $ExpectType Requireable<number>
|
||||
AirbnbPropTypes.integer();
|
||||
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.keysOf(PropTypes.number);
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.keysOf(PropTypes.number, 'foo');
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.keysOf(PropTypes.oneOf(['foo', 'bar']));
|
||||
const top = (<T>(x?: T): T => x!)();
|
||||
type Top = typeof top;
|
||||
declare function validateRequireableTop(x: React.Requireable<Top>): void;
|
||||
|
||||
validateRequireableTop(AirbnbPropTypes.keysOf(PropTypes.number));
|
||||
validateRequireableTop(AirbnbPropTypes.keysOf(PropTypes.number, 'foo'));
|
||||
validateRequireableTop(AirbnbPropTypes.keysOf(PropTypes.oneOf(['foo', 'bar'])));
|
||||
|
||||
// $ExpectType Requireable<number>
|
||||
AirbnbPropTypes.mutuallyExclusiveProps(PropTypes.number);
|
||||
@@ -137,8 +138,8 @@ AirbnbPropTypes.nonNegativeNumber();
|
||||
// $ExpectType Requireable<string>
|
||||
AirbnbPropTypes.numericString();
|
||||
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.object();
|
||||
// $ExpectType Requireable<object>
|
||||
const props: PropTypes.Requireable<object> = AirbnbPropTypes.object();
|
||||
// $ExpectType Requireable<{ foo: string; }>
|
||||
AirbnbPropTypes.object<{ foo: string }>();
|
||||
|
||||
@@ -156,23 +157,17 @@ AirbnbPropTypes.requiredBy('foo', PropTypes.string);
|
||||
// $ExpectType Validator<number>
|
||||
AirbnbPropTypes.requiredBy('bar', PropTypes.number, 42).isRequired;
|
||||
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.restrictedProp();
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.restrictedProp(() => 'Error');
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.restrictedProp(() => new Error('Error'));
|
||||
validateRequireableTop(AirbnbPropTypes.restrictedProp());
|
||||
validateRequireableTop(AirbnbPropTypes.restrictedProp(() => 'Error'));
|
||||
validateRequireableTop(AirbnbPropTypes.restrictedProp(() => new Error('Error')));
|
||||
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.sequenceOf({ validator: PropTypes.number });
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.sequenceOf({ validator: PropTypes.number }, { validator: PropTypes.string });
|
||||
// $ExpectType Requireable<{}>
|
||||
AirbnbPropTypes.sequenceOf(
|
||||
validateRequireableTop(AirbnbPropTypes.sequenceOf({ validator: PropTypes.number }));
|
||||
validateRequireableTop(AirbnbPropTypes.sequenceOf({ validator: PropTypes.number }, { validator: PropTypes.string }));
|
||||
validateRequireableTop(AirbnbPropTypes.sequenceOf(
|
||||
{ validator: PropTypes.number, min: 0, max: 10 },
|
||||
{ validator: PropTypes.string },
|
||||
{ validator: PropTypes.bool },
|
||||
);
|
||||
));
|
||||
|
||||
interface ShapeShape {
|
||||
foo: string;
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
import * as Airtable from 'airtable';
|
||||
|
||||
interface Row extends Airtable.FieldSet {
|
||||
field1: string;
|
||||
attachments: Airtable.Attachment[];
|
||||
}
|
||||
|
||||
const airtable = new Airtable();
|
||||
|
||||
const base = airtable.base('app id');
|
||||
|
||||
const table = base('table name') as Airtable.Table<Row>;
|
||||
|
||||
async () => {
|
||||
const query = table.select();
|
||||
{
|
||||
const rows = await query.all();
|
||||
for (const row of rows) {
|
||||
row.id; // $ExpectType string
|
||||
row.fields.field1; // $ExpectType string
|
||||
for (const attachment of row.fields.attachments) {
|
||||
attachment.id; // $ExpectType string
|
||||
attachment.filename; // $ExpectType string
|
||||
attachment.size; // $ExpectType number
|
||||
attachment.type; // $ExpectType string
|
||||
attachment.url; // $ExpectType string
|
||||
if (attachment.thumbnails) {
|
||||
attachment.thumbnails.full.height; // $ExpectType number
|
||||
attachment.thumbnails.full.width; // $ExpectType number
|
||||
attachment.thumbnails.full.url; // $ExpectType string
|
||||
|
||||
attachment.thumbnails.large.height; // $ExpectType number
|
||||
attachment.thumbnails.large.width; // $ExpectType number
|
||||
attachment.thumbnails.large.url; // $ExpectType string
|
||||
|
||||
attachment.thumbnails.small.height; // $ExpectType number
|
||||
attachment.thumbnails.small.width; // $ExpectType number
|
||||
attachment.thumbnails.small.url; // $ExpectType string
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
};
|
||||
Vendored
+62
@@ -0,0 +1,62 @@
|
||||
// Type definitions for airtable 0.5
|
||||
// Project: https://github.com/airtable/airtable.js
|
||||
// Definitions by: Brandon Valosek <https://github.com/bvalosek>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
export = Airtable;
|
||||
|
||||
declare global {
|
||||
class Airtable {
|
||||
base(appId: string): Airtable.Base;
|
||||
}
|
||||
|
||||
namespace Airtable {
|
||||
interface FieldSet {
|
||||
[ key: string ]: undefined | string | ReadonlyArray<Attachment>;
|
||||
}
|
||||
|
||||
interface Base {
|
||||
(tableName: string): Table<{}>;
|
||||
}
|
||||
|
||||
interface Table<TFields extends FieldSet> {
|
||||
select(opt?: SelectOptions): Query<TFields>;
|
||||
}
|
||||
|
||||
interface SelectOptions {
|
||||
view?: string;
|
||||
}
|
||||
|
||||
interface Query<TFields extends object> {
|
||||
all(): Promise<Response<TFields>>;
|
||||
firstPage(): Promise<Response<TFields>>;
|
||||
}
|
||||
|
||||
type Response<TFields> = ReadonlyArray<Row<TFields>>;
|
||||
|
||||
interface Row<TFields> {
|
||||
id: string;
|
||||
fields: TFields;
|
||||
}
|
||||
|
||||
interface Attachment {
|
||||
id: string;
|
||||
url: string;
|
||||
filename: string;
|
||||
size: number;
|
||||
type: string;
|
||||
thumbnails?: {
|
||||
small: Thumbnail;
|
||||
large: Thumbnail;
|
||||
full: Thumbnail;
|
||||
};
|
||||
}
|
||||
|
||||
interface Thumbnail {
|
||||
url: string;
|
||||
width: number;
|
||||
height: number;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"get-port-tests.ts"
|
||||
"airtable-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
Vendored
+37
@@ -0,0 +1,37 @@
|
||||
// Type definitions for align-text 1.0
|
||||
// Project: https://github.com/jonschlinkert/align-text
|
||||
// Definitions by: Claas Ahlrichs <https://github.com/claasahl>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
interface TransformResult {
|
||||
/**
|
||||
* the amount of indentation to use. Default is 0 when an object is returned.
|
||||
*/
|
||||
indent: number;
|
||||
/**
|
||||
* the character to use for indentation. Default is '' (empty string) when an object is returned.
|
||||
*/
|
||||
character: string;
|
||||
/**
|
||||
* leading characters to use at the beginning of each line. '' (empty string) when an object is returned.
|
||||
*/
|
||||
prefix: string;
|
||||
}
|
||||
|
||||
interface Callback {
|
||||
/**
|
||||
* @param len the length of the "current" line
|
||||
* @param longest the length of the longest line
|
||||
* @param line the current line (string) being aligned
|
||||
* @param lines the array of all lines
|
||||
*/
|
||||
(len: number, longest: number, line: string, lines: string[]):
|
||||
| number
|
||||
| TransformResult;
|
||||
}
|
||||
|
||||
declare function align_text(text: string, fn: number | Callback): string;
|
||||
declare function align_text(text: string[], fn: number | Callback): string[];
|
||||
|
||||
export = align_text;
|
||||
@@ -0,0 +1,12 @@
|
||||
import align from "align-text";
|
||||
|
||||
function centerAlign(len: number, longest: number) {
|
||||
return {
|
||||
character: "\t",
|
||||
indent: Math.floor((longest - len) / 2),
|
||||
prefix: "~ "
|
||||
};
|
||||
}
|
||||
|
||||
const text = ["abc", "abc", "abc"];
|
||||
align(text, centerAlign);
|
||||
@@ -0,0 +1,8 @@
|
||||
import align from "align-text";
|
||||
|
||||
function centerAlign(len: number, longest: number) {
|
||||
return Math.floor((longest - len) / 2);
|
||||
}
|
||||
|
||||
const text = ["abc", "abc", "abc"];
|
||||
align(text, centerAlign);
|
||||
@@ -0,0 +1,6 @@
|
||||
import align from "align-text";
|
||||
|
||||
const text = ["abc", "abc", "abc"];
|
||||
align(text, 4);
|
||||
|
||||
align("abc", 2);
|
||||
@@ -0,0 +1,22 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"allowSyntheticDefaultImports": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"test/simple.ts",
|
||||
"test/center-simple.ts",
|
||||
"test/center-complex.ts"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
+129
@@ -17,17 +17,45 @@ declare namespace AMap {
|
||||
mouseout: MouseEvent<'mouseout'>;
|
||||
}
|
||||
type MouseEvent<N extends string> = Event<N, {
|
||||
/**
|
||||
* 店铺所属楼宇信息
|
||||
*/
|
||||
building_id: string;
|
||||
/**
|
||||
* 经纬度
|
||||
*/
|
||||
lnglat: LngLat;
|
||||
/**
|
||||
* 楼层
|
||||
*/
|
||||
floor: number;
|
||||
/**
|
||||
* 商店
|
||||
*/
|
||||
shop: Shop;
|
||||
}>;
|
||||
interface Options extends Layer.Options {
|
||||
/**
|
||||
* 图层叠加的顺序值
|
||||
*/
|
||||
zIndex?: number;
|
||||
/**
|
||||
* 图层的透明度
|
||||
*/
|
||||
opacity?: number;
|
||||
/**
|
||||
* 鼠标悬停到店铺面时的鼠标样式
|
||||
*/
|
||||
cursor?: string;
|
||||
/**
|
||||
* 是否隐藏楼层切换控件
|
||||
*/
|
||||
hideFloorBar?: boolean;
|
||||
/**
|
||||
* 是否持续显示
|
||||
*/
|
||||
alaysShow?: boolean;
|
||||
|
||||
// internal
|
||||
visible?: boolean;
|
||||
featurezIndex?: number;
|
||||
@@ -38,32 +66,80 @@ declare namespace AMap {
|
||||
autoLoadBuildingsInTile?: boolean;
|
||||
}
|
||||
interface FloorDetails {
|
||||
/**
|
||||
* 各楼层索引
|
||||
*/
|
||||
floor_indexs: number[];
|
||||
/**
|
||||
* 各楼层英文
|
||||
*/
|
||||
floor_nonas: string[];
|
||||
/**
|
||||
* 各楼层名字
|
||||
*/
|
||||
floor_names: string[];
|
||||
}
|
||||
type ShopCategory = 'public' | 'connection' | 'shop';
|
||||
interface Shop {
|
||||
/**
|
||||
* 店铺的id
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 兴趣点ID
|
||||
*/
|
||||
poiId: string;
|
||||
/**
|
||||
* 店铺所属楼宇ID
|
||||
*/
|
||||
building_id: string;
|
||||
/**
|
||||
* 店铺名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 店铺的经纬度
|
||||
*/
|
||||
lnglat: LngLat;
|
||||
/**
|
||||
* 分类
|
||||
*/
|
||||
category: ShopCategory;
|
||||
}
|
||||
interface Building {
|
||||
/**
|
||||
* 所属楼宇ID
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 楼层名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 楼层的经纬度
|
||||
*/
|
||||
lnglat: LngLat;
|
||||
/**
|
||||
* 所在楼层
|
||||
*/
|
||||
floor: number;
|
||||
floor_details: FloorDetails;
|
||||
}
|
||||
interface SearchSuccessResult {
|
||||
/**
|
||||
* 楼层的id
|
||||
*/
|
||||
id: string;
|
||||
status: 0;
|
||||
/**
|
||||
* 建筑信息
|
||||
*/
|
||||
building: Building;
|
||||
}
|
||||
interface SearchErrorResult {
|
||||
/**
|
||||
* 楼宇id
|
||||
*/
|
||||
id: string;
|
||||
status: 1;
|
||||
error: Error;
|
||||
@@ -72,22 +148,52 @@ declare namespace AMap {
|
||||
}
|
||||
|
||||
class IndoorMap extends Layer {
|
||||
/**
|
||||
* 室内地图
|
||||
* @param options 选项
|
||||
*/
|
||||
constructor(options?: IndoorMap.Options);
|
||||
/**
|
||||
* 显示指定室内地图信息
|
||||
* @param indoorId 建筑物ID
|
||||
* @param callback 回调
|
||||
*/
|
||||
showIndoorMap(
|
||||
indoorId: string,
|
||||
callback?: (error: null | Error, result: IndoorMap.SearchResult) => void
|
||||
): void;
|
||||
/**
|
||||
* 显示指定室内地图信息
|
||||
* @param indoorId 建筑物ID
|
||||
* @param floor 楼层
|
||||
* @param callback 回调
|
||||
*/
|
||||
showIndoorMap(
|
||||
indoorId: string,
|
||||
floor?: number,
|
||||
callback?: (error: null | Error, result: IndoorMap.SearchResult) => void
|
||||
): void;
|
||||
/**
|
||||
* 显示指定室内地图信息
|
||||
* @param indoorId 建筑物ID
|
||||
* @param floor 楼层
|
||||
* @param shopId 商铺ID
|
||||
* @param callback 回调
|
||||
*/
|
||||
showIndoorMap(
|
||||
indoorId: string,
|
||||
floor?: number,
|
||||
shopId?: string,
|
||||
callback?: (error: null | Error, result: IndoorMap.SearchResult) => void
|
||||
): void;
|
||||
/**
|
||||
* 显示指定室内地图信息
|
||||
* @param indoorId 建筑物ID
|
||||
* @param floor 楼层
|
||||
* @param shopId 商铺ID
|
||||
* @param noMove 阻止移动
|
||||
* @param callback 回调
|
||||
*/
|
||||
showIndoorMap(
|
||||
indoorId: string,
|
||||
floor?: number,
|
||||
@@ -95,12 +201,35 @@ declare namespace AMap {
|
||||
noMove?: boolean,
|
||||
callback?: (error: null | Error, result: IndoorMap.SearchResult) => void
|
||||
): void;
|
||||
/**
|
||||
* 显示指定的楼层
|
||||
* @param floor 楼层
|
||||
* @param noMove 禁止移动
|
||||
*/
|
||||
showFloor(floor: number, noMove?: boolean): false | undefined;
|
||||
/**
|
||||
* 显示楼层切换控件
|
||||
*/
|
||||
showFloorBar(): void;
|
||||
/**
|
||||
* 隐藏楼层切换控件
|
||||
*/
|
||||
hideFloorBar(): void;
|
||||
/**
|
||||
* 显示室内地图标注
|
||||
*/
|
||||
showLabels(): void;
|
||||
/**
|
||||
* 隐藏室内地图标注
|
||||
*/
|
||||
hideLabels(): void;
|
||||
/**
|
||||
* 获取处于被选中状态的室内地图的ID
|
||||
*/
|
||||
getSelectedBuildingId(): string | null;
|
||||
/**
|
||||
* 获取处于被选中状态的室内地图的一些基本信息
|
||||
*/
|
||||
getSelectedBuilding(): IndoorMap.Building | null;
|
||||
|
||||
// internal
|
||||
|
||||
@@ -0,0 +1,435 @@
|
||||
declare const map: AMap.Map;
|
||||
declare const div: HTMLElement;
|
||||
declare const lnglat: AMap.LngLat;
|
||||
declare const lnglatTuple: [number, number];
|
||||
declare const bounds: AMap.Bounds;
|
||||
declare const polygon: AMap.Polygon;
|
||||
declare const lang: AMap.Lang;
|
||||
|
||||
// $ExpectType PlaceSearch
|
||||
const placeSearch = new AMap.PlaceSearch();
|
||||
// $ExpectType PlaceSearch
|
||||
new AMap.PlaceSearch({});
|
||||
// $ExpectType PlaceSearch
|
||||
new AMap.PlaceSearch({
|
||||
city: '深圳',
|
||||
citylimit: true,
|
||||
children: 1,
|
||||
type: '餐饮服务',
|
||||
lang: 'zh_cn',
|
||||
pageSize: 10,
|
||||
pageIndex: 10,
|
||||
extensions: 'all',
|
||||
map,
|
||||
panel: div,
|
||||
showCover: true,
|
||||
renderStyle: 'newpc',
|
||||
autoFitView: true
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.search('keyword', (status, result) => {
|
||||
const temp: 'error' | 'complete' | 'no_data' = status;
|
||||
// $ExpectType string | SearchResult
|
||||
result;
|
||||
if (typeof result !== 'string') {
|
||||
// $ExpectType string
|
||||
result.info;
|
||||
// $ExpectType PoiList
|
||||
result.poiList;
|
||||
// $ExpectType string[] | undefined
|
||||
result.keywordList;
|
||||
// $ExpectType CityInfo[] | undefined
|
||||
result.cityList;
|
||||
|
||||
const poiList = result.poiList;
|
||||
// $ExpectType number
|
||||
poiList.pageIndex;
|
||||
// $ExpectType number
|
||||
poiList.pageSize;
|
||||
// $ExpectType number
|
||||
poiList.count;
|
||||
|
||||
const poi = poiList.pois[0];
|
||||
// $ExpectType string
|
||||
poi.address;
|
||||
// $ExpectType number
|
||||
poi.distance;
|
||||
// $ExpectType string
|
||||
poi.id;
|
||||
// $ExpectType LngLat | null
|
||||
poi.location;
|
||||
// $ExpectType string
|
||||
poi.name;
|
||||
// $ExpectType string
|
||||
poi.shopinfo;
|
||||
// $ExpectType string
|
||||
poi.tel;
|
||||
// $ExpectType string
|
||||
poi.type;
|
||||
if ('website' in poi) {
|
||||
// $ExpectType string
|
||||
poi.adcode;
|
||||
// $ExpectType string
|
||||
poi.adname;
|
||||
// $ExpectType string
|
||||
poi.citycode;
|
||||
// $ExpectType string
|
||||
poi.cityname;
|
||||
// $ExpectType boolean
|
||||
poi.discount;
|
||||
// $ExpectType string
|
||||
poi.email;
|
||||
// $ExpectType LngLat | null
|
||||
poi.entr_location;
|
||||
// $ExpectType LngLat | null
|
||||
poi.exit_location;
|
||||
// $ExpectType boolean
|
||||
poi.groupbuy;
|
||||
if (poi.indoor_map) {
|
||||
const indoorData = poi.indoor_data;
|
||||
// $ExpectType string
|
||||
indoorData.cpid;
|
||||
// $ExpectType string
|
||||
indoorData.floor;
|
||||
// $ExpectType string
|
||||
indoorData.truefloor;
|
||||
}
|
||||
poi.pcode;
|
||||
// $ExpectType PoiPhoto[]
|
||||
poi.photos;
|
||||
// $ExpectType string
|
||||
poi.pname;
|
||||
// $ExpectType string
|
||||
poi.postcode;
|
||||
// $ExpectType string
|
||||
poi.website;
|
||||
|
||||
const photo = poi.photos[0];
|
||||
// $ExpectType string
|
||||
photo.title;
|
||||
// $ExpectType string
|
||||
photo.url;
|
||||
// $ExpectType Groupbuy[] | undefined
|
||||
poi.groupbuys;
|
||||
if (poi.groupbuys) {
|
||||
const groupbuy = poi.groupbuys[0];
|
||||
// $ExpectType string
|
||||
groupbuy.title;
|
||||
// $ExpectType string
|
||||
groupbuy.type_code;
|
||||
// $ExpectType string
|
||||
groupbuy.type;
|
||||
// $ExpectType string
|
||||
groupbuy.detail;
|
||||
// $ExpectType string
|
||||
groupbuy.stime;
|
||||
// $ExpectType string
|
||||
groupbuy.etime;
|
||||
// $ExpectType number
|
||||
groupbuy.count;
|
||||
// $ExpectType number
|
||||
groupbuy.sold_num;
|
||||
// $ExpectType number
|
||||
groupbuy.original_price;
|
||||
// $ExpectType number
|
||||
groupbuy.groupbuy_price;
|
||||
// $ExpectType number
|
||||
groupbuy.discount;
|
||||
// $ExpectType string
|
||||
groupbuy.ticket_address;
|
||||
// $ExpectType string
|
||||
groupbuy.ticket_tel;
|
||||
// $ExpectType PoiPhoto[]
|
||||
groupbuy.photos;
|
||||
// $ExpectType string
|
||||
groupbuy.url;
|
||||
// $ExpectType string
|
||||
groupbuy.provider;
|
||||
}
|
||||
// $ExpectType Discount[] | undefined
|
||||
poi.discounts;
|
||||
if (poi.discounts) {
|
||||
const discount = poi.discounts[0];
|
||||
// $ExpectType string
|
||||
discount.title;
|
||||
// $ExpectType string
|
||||
discount.detail;
|
||||
// $ExpectType string
|
||||
discount.start_time;
|
||||
// $ExpectType string
|
||||
discount.end_time;
|
||||
// $ExpectType number
|
||||
discount.sold_num;
|
||||
// $ExpectType PoiPhoto[]
|
||||
discount.photos;
|
||||
// $ExpectType string
|
||||
discount.url;
|
||||
// $ExpectType string
|
||||
discount.provider;
|
||||
}
|
||||
if (poi.deep_type === 'CINEMA') {
|
||||
// $ExpectType Cinema
|
||||
const cinema = poi.cinema;
|
||||
// $ExpectType string
|
||||
cinema.intro;
|
||||
// $ExpectType string
|
||||
cinema.rating;
|
||||
// $ExpectType string
|
||||
cinema.deep_src;
|
||||
// $ExpectType string
|
||||
cinema.parking;
|
||||
// $ExpectType string
|
||||
cinema.opentime_GDF;
|
||||
// $ExpectType string
|
||||
cinema.opentime;
|
||||
// $ExpectType PoiPhoto[]
|
||||
cinema.photos;
|
||||
}
|
||||
if (poi.deep_type === 'DINING') {
|
||||
// $ExpectType Dining
|
||||
const dining = poi.dining;
|
||||
// $ExpectType string
|
||||
dining.cuisines;
|
||||
// $ExpectType string
|
||||
dining.tag;
|
||||
// $ExpectType string
|
||||
dining.intro;
|
||||
// $ExpectType string
|
||||
dining.rating;
|
||||
// $ExpectType string
|
||||
dining.cp_rating;
|
||||
// $ExpectType string
|
||||
dining.deep_src;
|
||||
// $ExpectType string
|
||||
dining.taste_rating;
|
||||
// $ExpectType string
|
||||
dining.environment_rating;
|
||||
// $ExpectType string
|
||||
dining.service_rating;
|
||||
// $ExpectType string
|
||||
dining.cost;
|
||||
// $ExpectType string
|
||||
dining.recommend;
|
||||
// $ExpectType string
|
||||
dining.atmosphere;
|
||||
// $ExpectType string
|
||||
dining.ordering_wap_url;
|
||||
// $ExpectType string
|
||||
dining.ordering_web_url;
|
||||
// $ExpectType string
|
||||
dining.ordering_app_url;
|
||||
// $ExpectType string
|
||||
dining.opentime_GDF;
|
||||
// $ExpectType string
|
||||
dining.opentime;
|
||||
// $ExpectType string
|
||||
dining.addition;
|
||||
// $ExpectType PoiPhoto[]
|
||||
dining.photos;
|
||||
}
|
||||
if (poi.deep_type === 'SCENIC') {
|
||||
// $ExpectType Scenic
|
||||
const scenic = poi.scenic;
|
||||
// $ExpectType string
|
||||
scenic.intro;
|
||||
// $ExpectType string
|
||||
scenic.rating;
|
||||
// $ExpectType string
|
||||
scenic.deep_src;
|
||||
// $ExpectType string
|
||||
scenic.level;
|
||||
// $ExpectType string
|
||||
scenic.price;
|
||||
// $ExpectType string
|
||||
scenic.season;
|
||||
// $ExpectType string
|
||||
scenic.recommend;
|
||||
// $ExpectType string
|
||||
scenic.theme;
|
||||
// $ExpectType string
|
||||
scenic.ordering_wap_url;
|
||||
// $ExpectType string
|
||||
scenic.ordering_web_url;
|
||||
// $ExpectType string
|
||||
scenic.opentime_GDF;
|
||||
// $ExpectType string
|
||||
scenic.opentime;
|
||||
// $ExpectType PoiPhoto[]
|
||||
scenic.photos;
|
||||
}
|
||||
if (poi.deep_type === 'HOTEL') {
|
||||
// $ExpectType Hotel
|
||||
const hotel = poi.hotel;
|
||||
// $ExpectType string
|
||||
hotel.rating;
|
||||
// $ExpectType string
|
||||
hotel.star;
|
||||
// $ExpectType string
|
||||
hotel.intro;
|
||||
// $ExpectType string
|
||||
hotel.lowest_price;
|
||||
// $ExpectType string
|
||||
hotel.faci_rating;
|
||||
// $ExpectType string
|
||||
hotel.health_rating;
|
||||
// $ExpectType string
|
||||
hotel.environment_rating;
|
||||
// $ExpectType string
|
||||
hotel.service_rating;
|
||||
// $ExpectType string
|
||||
hotel.traffic;
|
||||
// $ExpectType string
|
||||
hotel.addition;
|
||||
// $ExpectType string
|
||||
hotel.deep_src;
|
||||
// $ExpectType PoiPhoto[]
|
||||
hotel.photos;
|
||||
}
|
||||
}
|
||||
|
||||
if (result.cityList) {
|
||||
const city = result.cityList[0];
|
||||
// $ExpectType string
|
||||
city.adcode;
|
||||
// $ExpectType string
|
||||
city.citycode;
|
||||
// $ExpectType number
|
||||
city.count;
|
||||
// $ExpectType string
|
||||
city.name;
|
||||
}
|
||||
} else {
|
||||
// $ExpectType string
|
||||
result;
|
||||
}
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.searchNearBy('keyword', lnglat, 10, (status, result) => {
|
||||
const temp: 'error' | 'complete' | 'no_data' = status;
|
||||
// $ExpectType string | SearchResult
|
||||
result;
|
||||
});
|
||||
// $ExpectType void
|
||||
placeSearch.searchNearBy('keyword', lnglatTuple, 10, () => { });
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.searchInBounds('keyword', bounds, (status, result) => {
|
||||
const temp: 'error' | 'complete' | 'no_data' = status;
|
||||
// $ExpectType string | SearchResult
|
||||
result;
|
||||
});
|
||||
// $ExpectType void
|
||||
placeSearch.searchInBounds('keyword', polygon, () => { });
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.getDetails('id', (status, result) => {
|
||||
const temp: 'error' | 'complete' | 'no_data' = status;
|
||||
// $ExpectType string | SearchResult
|
||||
result;
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.setType('type');
|
||||
// $ExpectType void
|
||||
placeSearch.setType();
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.setCityLimit(true);
|
||||
// $ExpectType void
|
||||
placeSearch.setCityLimit();
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.setPageIndex(1);
|
||||
// $ExpectType void
|
||||
placeSearch.setPageIndex();
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.setPageSize(1);
|
||||
// $ExpectType void
|
||||
placeSearch.setPageSize();
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.setCity('city');
|
||||
// $ExpectType void
|
||||
placeSearch.setCity();
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.setLang(lang);
|
||||
// $ExpectType void
|
||||
placeSearch.setLang();
|
||||
|
||||
// $ExpectType "zh_cn" | "en" | "zh_en" | undefined
|
||||
placeSearch.getLang();
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.clear();
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.poiOnAMAP({
|
||||
id: 'id',
|
||||
});
|
||||
// $ExpectType void
|
||||
placeSearch.poiOnAMAP({
|
||||
location: lnglat,
|
||||
id: 'id',
|
||||
name: 'name'
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.detailOnAMAP({
|
||||
id: 'id',
|
||||
});
|
||||
// $ExpectType void
|
||||
placeSearch.detailOnAMAP({
|
||||
location: lnglat,
|
||||
id: 'id',
|
||||
name: 'name'
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.open();
|
||||
|
||||
// $ExpectType void
|
||||
placeSearch.close();
|
||||
|
||||
placeSearch.on('complete', (event: AMap.PlaceSearch.EventMap['complete']) => {
|
||||
// $ExpectType "complete"
|
||||
event.type;
|
||||
// $ExpectType string
|
||||
event.info;
|
||||
// $ExpectType PoiList
|
||||
event.poiList;
|
||||
// $ExpectType string[] | undefined
|
||||
event.keywordList;
|
||||
// $ExpectType CityInfo[] | undefined
|
||||
event.cityList;
|
||||
});
|
||||
|
||||
placeSearch.on('listElementClick', (event: AMap.PlaceSearch.EventMap['listElementClick']) => {
|
||||
// $ExpectType MouseEvent
|
||||
event.event;
|
||||
// $ExpectType string
|
||||
event.id;
|
||||
// $ExpectType number
|
||||
event.index;
|
||||
// $ExpectType Marker<any>
|
||||
event.marker;
|
||||
// $ExpectType HTMLLIElement
|
||||
event.listElement;
|
||||
});
|
||||
|
||||
placeSearch.on('markerClick', (event: AMap.PlaceSearch.EventMap['markerClick']) => {
|
||||
const markerEvent = event.event;
|
||||
// $ExpectType Marker<any>
|
||||
markerEvent.target;
|
||||
// $ExpectType string
|
||||
event.id;
|
||||
// $ExpectType number
|
||||
event.index;
|
||||
// $ExpectType Marker<any>
|
||||
event.marker;
|
||||
// $ExpectType HTMLLIElement
|
||||
event.listElement;
|
||||
});
|
||||
+737
@@ -0,0 +1,737 @@
|
||||
// Type definitions for non-npm package amap-js-api-place-search 1.4
|
||||
// Project: https://lbs.amap.com/api/javascript-api/reference/search#m_AMap.PlaceSearch
|
||||
// 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 PlaceSearch {
|
||||
interface EventMap {
|
||||
complete: Event<'complete', SearchResult>;
|
||||
error: Event<'error', { info: string }>;
|
||||
selectChanged: Event<'selectChanged', {
|
||||
selected: SelectChangeEventData | EventMap['markerClick'] | EventMap['listElementClick'];
|
||||
lastSelected: SelectChangeEventData | EventMap['markerClick'] | EventMap['listElementClick'] | null;
|
||||
}>;
|
||||
listElementClick: SelectChangeEvent<'listElementClick', MouseEvent>;
|
||||
markerClick: SelectChangeEvent<'markerClick', Marker.EventMap['click']>;
|
||||
// internal
|
||||
renderComplete: Event<'renderComplete', {
|
||||
result: SelectChangeEventData[];
|
||||
markers: Marker[];
|
||||
listElements: HTMLElement[];
|
||||
}>;
|
||||
infoWindowClick: Event<'infoWindowClick', SelectChangeEventData & {
|
||||
event: MouseEvent;
|
||||
infoWindow: InfoWindow;
|
||||
infoWindowContentDom: HTMLDivElement;
|
||||
}>;
|
||||
willClear: Event<'willClear', {
|
||||
id: string;
|
||||
index: number;
|
||||
data: Poi[];
|
||||
}>;
|
||||
markerDestoryed: Event<'markerDestoryed', SelectChangeEventData>; // typo in source code
|
||||
listElementDetroyed: Event<'listElementDetroyed', SelectChangeEventData>; // typo too
|
||||
}
|
||||
|
||||
interface SelectChangeEventData {
|
||||
/**
|
||||
* 当前选中的POI的ID
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 索引
|
||||
*/
|
||||
index: number;
|
||||
/**
|
||||
* 当前选中的POI对应的在地图中的Marker对象
|
||||
*/
|
||||
marker: Marker;
|
||||
/**
|
||||
* 当前选中的POI在结果面板中对应的列表项
|
||||
*/
|
||||
listElement: HTMLLIElement;
|
||||
/**
|
||||
* 当前选中的POI的信息
|
||||
*/
|
||||
data: Poi[];
|
||||
}
|
||||
type SelectChangeEvent<N extends string, E> = Event<N, SelectChangeEventData & {
|
||||
event: E;
|
||||
}>;
|
||||
interface PoiPhoto {
|
||||
/**
|
||||
* 图片名称
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
* 图片url
|
||||
*/
|
||||
url: string;
|
||||
}
|
||||
interface PoiBase {
|
||||
/**
|
||||
* 全局唯一ID
|
||||
*/
|
||||
id: string;
|
||||
/**
|
||||
* 名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 兴趣点类型
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* 兴趣点经纬度
|
||||
*/
|
||||
location: LngLat | null;
|
||||
/**
|
||||
* 地址
|
||||
*/
|
||||
address: string;
|
||||
/**
|
||||
* 离中心点距离
|
||||
*/
|
||||
distance: number;
|
||||
/**
|
||||
* 电话
|
||||
*/
|
||||
tel: string;
|
||||
shopinfo: string;
|
||||
children?: any[]; // TODO Array<{location: LngLat | null}>
|
||||
}
|
||||
interface Groupbuy {
|
||||
/**
|
||||
* 团购标题
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
* 团购分类代码
|
||||
*/
|
||||
type_code: string;
|
||||
/**
|
||||
* 团购分类
|
||||
*/
|
||||
type: string;
|
||||
/**
|
||||
* 团购详情
|
||||
*/
|
||||
detail: string;
|
||||
/**
|
||||
* 团购开始时间
|
||||
*/
|
||||
stime: string;
|
||||
/**
|
||||
* 团购结束时间
|
||||
*/
|
||||
etime: string;
|
||||
/**
|
||||
* 团购总量
|
||||
*/
|
||||
count: number;
|
||||
/**
|
||||
* 已卖出数量
|
||||
*/
|
||||
sold_num: number;
|
||||
/**
|
||||
* 原价
|
||||
*/
|
||||
original_price: number;
|
||||
/**
|
||||
* 折扣价
|
||||
*/
|
||||
groupbuy_price: number;
|
||||
/**
|
||||
* 折扣
|
||||
*/
|
||||
discount: number;
|
||||
/**
|
||||
* 取票地址
|
||||
*/
|
||||
ticket_address: string;
|
||||
/**
|
||||
* 取票电话
|
||||
*/
|
||||
ticket_tel: string;
|
||||
/**
|
||||
* 图片信息
|
||||
*/
|
||||
photos: PoiPhoto[];
|
||||
/**
|
||||
* 来源url
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* 来源标识
|
||||
*/
|
||||
provider: string;
|
||||
}
|
||||
interface Discount {
|
||||
/**
|
||||
* 优惠标题
|
||||
*/
|
||||
title: string;
|
||||
/**
|
||||
* 优惠详情
|
||||
*/
|
||||
detail: string;
|
||||
/**
|
||||
* 开始时间
|
||||
*/
|
||||
start_time: string;
|
||||
/**
|
||||
* 结束时间
|
||||
*/
|
||||
end_time: string;
|
||||
/**
|
||||
* 已卖出数量
|
||||
*/
|
||||
sold_num: number;
|
||||
/**
|
||||
* 图片信息列表
|
||||
*/
|
||||
photos: PoiPhoto[];
|
||||
/**
|
||||
* 来源url
|
||||
*/
|
||||
url: string;
|
||||
/**
|
||||
* 来源标识
|
||||
*/
|
||||
provider: string;
|
||||
}
|
||||
interface Cinema {
|
||||
/**
|
||||
* 简介
|
||||
*/
|
||||
intro: string;
|
||||
/**
|
||||
* 综合评分
|
||||
*/
|
||||
rating: string;
|
||||
/**
|
||||
* 信息来源
|
||||
*/
|
||||
deep_src: string;
|
||||
/**
|
||||
* 停车场设施
|
||||
*/
|
||||
parking: string;
|
||||
/**
|
||||
* 规范格式的营业时间
|
||||
*/
|
||||
opentime_GDF: string;
|
||||
/**
|
||||
* 非规范格式的营业时间
|
||||
*/
|
||||
opentime: string;
|
||||
/**
|
||||
* 图片信息列表
|
||||
*/
|
||||
photos: PoiPhoto[];
|
||||
}
|
||||
interface Dining {
|
||||
/**
|
||||
* 菜系
|
||||
*/
|
||||
cuisines: string;
|
||||
/**
|
||||
* 标签
|
||||
*/
|
||||
tag: string;
|
||||
/**
|
||||
* 简介
|
||||
*/
|
||||
intro: string;
|
||||
/**
|
||||
* 综合评分
|
||||
*/
|
||||
rating: string;
|
||||
/**
|
||||
* 单数据源的评分
|
||||
*/
|
||||
cp_rating: string;
|
||||
/**
|
||||
* 信息来源
|
||||
*/
|
||||
deep_src: string;
|
||||
/**
|
||||
* 口味评分
|
||||
*/
|
||||
taste_rating: string;
|
||||
/**
|
||||
* 环境评分
|
||||
*/
|
||||
environment_rating: string;
|
||||
/**
|
||||
* 服务评分
|
||||
*/
|
||||
service_rating: string;
|
||||
/**
|
||||
* 人均消费
|
||||
*/
|
||||
cost: string;
|
||||
/**
|
||||
* 特色菜
|
||||
*/
|
||||
recommend: string;
|
||||
/**
|
||||
* 氛围
|
||||
*/
|
||||
atmosphere: string;
|
||||
/**
|
||||
* 订餐wap链接
|
||||
*/
|
||||
ordering_wap_url: string;
|
||||
/**
|
||||
* 订餐web链接
|
||||
*/
|
||||
ordering_web_url: string;
|
||||
/**
|
||||
* 订餐APP URL
|
||||
*/
|
||||
ordering_app_url: string;
|
||||
/**
|
||||
* 规范格式的营业时间
|
||||
*/
|
||||
opentime_GDF: string;
|
||||
/**
|
||||
* 非规范格式的营业时间
|
||||
*/
|
||||
opentime: string;
|
||||
/**
|
||||
* 餐厅特色
|
||||
*/
|
||||
addition: string;
|
||||
/**
|
||||
* 图片信息列表
|
||||
*/
|
||||
photos: PoiPhoto[];
|
||||
}
|
||||
interface Scenic {
|
||||
/**
|
||||
* 简介
|
||||
*/
|
||||
intro: string;
|
||||
/**
|
||||
* 综合评分
|
||||
*/
|
||||
rating: string;
|
||||
/**
|
||||
* 信息来源
|
||||
*/
|
||||
deep_src: string;
|
||||
/**
|
||||
* 景区国标级别
|
||||
*/
|
||||
level: string;
|
||||
/**
|
||||
* 门票价格
|
||||
*/
|
||||
price: string;
|
||||
/**
|
||||
* 适合游玩的季节
|
||||
*/
|
||||
season: string;
|
||||
/**
|
||||
* 推荐景点
|
||||
*/
|
||||
recommend: string;
|
||||
/**
|
||||
* 景区主题
|
||||
*/
|
||||
theme: string;
|
||||
/**
|
||||
* wap购票链接
|
||||
*/
|
||||
ordering_wap_url: string;
|
||||
/**
|
||||
* web购票链接
|
||||
*/
|
||||
ordering_web_url: string;
|
||||
/**
|
||||
* 规范格式的营业时间
|
||||
*/
|
||||
opentime_GDF: string;
|
||||
/**
|
||||
* 非规范格式的营业时间
|
||||
*/
|
||||
opentime: string;
|
||||
/**
|
||||
* 图片信息列表
|
||||
*/
|
||||
photos: PoiPhoto[];
|
||||
}
|
||||
interface Hotel {
|
||||
/**
|
||||
* 综合评分
|
||||
*/
|
||||
rating: string;
|
||||
/**
|
||||
* 星级
|
||||
*/
|
||||
star: string;
|
||||
/**
|
||||
* 简介
|
||||
*/
|
||||
intro: string;
|
||||
/**
|
||||
* 最低房价
|
||||
*/
|
||||
lowest_price: string;
|
||||
/**
|
||||
* 设施评分
|
||||
*/
|
||||
faci_rating: string;
|
||||
/**
|
||||
* 卫生评分
|
||||
*/
|
||||
health_rating: string;
|
||||
/**
|
||||
* 环境评分
|
||||
*/
|
||||
environment_rating: string;
|
||||
/**
|
||||
* 服务评分
|
||||
*/
|
||||
service_rating: string;
|
||||
/**
|
||||
* 交通提示
|
||||
*/
|
||||
traffic: string;
|
||||
/**
|
||||
* 特色服务
|
||||
*/
|
||||
addition: string;
|
||||
/**
|
||||
* 信息来源
|
||||
*/
|
||||
deep_src: string;
|
||||
/**
|
||||
* 图片信息列表
|
||||
*/
|
||||
photos: PoiPhoto[];
|
||||
}
|
||||
type PoiExt = PoiBase & {
|
||||
/**
|
||||
* 网址
|
||||
*/
|
||||
website: string;
|
||||
/**
|
||||
* 所在省份编码
|
||||
*/
|
||||
pcode: string;
|
||||
/**
|
||||
* 所在城市编码
|
||||
*/
|
||||
citycode: string;
|
||||
/**
|
||||
* 所在区域编码
|
||||
*/
|
||||
adcode: string;
|
||||
/**
|
||||
* 邮编
|
||||
*/
|
||||
postcode: string;
|
||||
/**
|
||||
* 所在省份
|
||||
*/
|
||||
pname: string;
|
||||
/**
|
||||
* 所在城市名称
|
||||
*/
|
||||
cityname: string;
|
||||
/**
|
||||
* 所在行政区名称
|
||||
*/
|
||||
adname: string;
|
||||
/**
|
||||
* 电子邮箱
|
||||
*/
|
||||
email: string;
|
||||
/**
|
||||
* 照片
|
||||
*/
|
||||
photos: PoiPhoto[];
|
||||
/**
|
||||
* 入口经纬度
|
||||
*/
|
||||
entr_location: LngLat | null;
|
||||
/**
|
||||
* 出口经纬度
|
||||
*/
|
||||
exit_location: LngLat | null;
|
||||
/**
|
||||
* @deprecated 是否有团购信息
|
||||
*/
|
||||
groupbuy: boolean;
|
||||
/**
|
||||
* @deprecated 是否有优惠信息
|
||||
*/
|
||||
discount: boolean;
|
||||
} & ({
|
||||
indoor_map: true;
|
||||
indoor_data: {
|
||||
cpid: string;
|
||||
floor: string;
|
||||
truefloor: string;
|
||||
};
|
||||
} | {
|
||||
indoor_map: false;
|
||||
}) & {
|
||||
/**
|
||||
* @deprecated 团购信息
|
||||
*/
|
||||
groupbuys?: Groupbuy[];
|
||||
/**
|
||||
* @deprecated 优惠信息
|
||||
*/
|
||||
discounts?: Discount[];
|
||||
} & ({
|
||||
deep_type: 'CINEMA';
|
||||
/**
|
||||
* @deprecated 影院类深度信息
|
||||
*/
|
||||
cinema: Cinema;
|
||||
} | {
|
||||
deep_type: 'DINING';
|
||||
/**
|
||||
* @deprecated 餐饮类深度信息
|
||||
*/
|
||||
dining: Dining;
|
||||
} | {
|
||||
deep_type: 'SCENIC';
|
||||
/**
|
||||
* @deprecated 景点类深度信息
|
||||
*/
|
||||
scenic: Scenic;
|
||||
} | {
|
||||
deep_type: 'HOTEL';
|
||||
/**
|
||||
* @deprecated 酒店类深度信息
|
||||
*/
|
||||
hotel: Hotel;
|
||||
});
|
||||
interface Options {
|
||||
/**
|
||||
* 兴趣点城市
|
||||
*/
|
||||
city?: string;
|
||||
/**
|
||||
* 是否强制限制在设置的城市内搜索
|
||||
*/
|
||||
citylimit?: boolean;
|
||||
/**
|
||||
* 是否按照层级展示子POI数据
|
||||
* children=1,展示子节点POI数据,children=0,不展示子节点数据
|
||||
*/
|
||||
children?: number;
|
||||
/**
|
||||
* 兴趣点类别,多个类别用“|”分割
|
||||
*/
|
||||
type?: string;
|
||||
/**
|
||||
* 检索语言类型
|
||||
*/
|
||||
lang?: Lang;
|
||||
/**
|
||||
* 单页显示结果条数
|
||||
*/
|
||||
pageSize?: number;
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
pageIndex?: number;
|
||||
/**
|
||||
* 是否返回详细信息
|
||||
* base返回基本地址信息;all返回基本+详细信息
|
||||
*/
|
||||
extensions?: 'base' | 'all';
|
||||
/**
|
||||
* Map对象
|
||||
*/
|
||||
map?: Map;
|
||||
/**
|
||||
* 结果列表的HTML容器id或容器元素
|
||||
*/
|
||||
panel?: string | HTMLElement;
|
||||
/**
|
||||
* 是否在地图上显示周边搜索的圆或者范围搜索的多边形
|
||||
*/
|
||||
showCover?: boolean;
|
||||
/**
|
||||
* 绘制的UI风格
|
||||
*/
|
||||
renderStyle?: 'newpc' | 'default';
|
||||
/**
|
||||
* 是否自动调整地图视野使绘制的Marker点都处于视口的可见范围
|
||||
*/
|
||||
autoFitView?: boolean;
|
||||
|
||||
// internal
|
||||
renderEngine?: string;
|
||||
rankBy?: string;
|
||||
}
|
||||
interface PoiList {
|
||||
/**
|
||||
* Poi列表
|
||||
*/
|
||||
pois: Poi[]; // PlaceSearchPoiBase[] | PlaceSearchPoiExt[];
|
||||
/**
|
||||
* 页码
|
||||
*/
|
||||
pageIndex: number;
|
||||
/**
|
||||
* 单页结果数
|
||||
*/
|
||||
pageSize: number;
|
||||
/**
|
||||
* 查询结果总数
|
||||
*/
|
||||
count: number;
|
||||
}
|
||||
interface CityInfo {
|
||||
/**
|
||||
* 建议城市名称
|
||||
*/
|
||||
name: string;
|
||||
/**
|
||||
* 城市编码
|
||||
*/
|
||||
citycode: string;
|
||||
/**
|
||||
* 行政区编码
|
||||
*/
|
||||
adcode: string;
|
||||
/**
|
||||
* 该城市的建议结果数目
|
||||
*/
|
||||
count: number;
|
||||
}
|
||||
interface SearchResult {
|
||||
/**
|
||||
* 成功状态说明
|
||||
*/
|
||||
info: string;
|
||||
/**
|
||||
* 兴趣点列表
|
||||
*/
|
||||
poiList: PoiList;
|
||||
/**
|
||||
* 建议关键字列表
|
||||
*/
|
||||
keywordList?: string[];
|
||||
/**
|
||||
* 城市建议列表
|
||||
*/
|
||||
cityList?: CityInfo[];
|
||||
}
|
||||
type Poi = PoiBase | PoiExt;
|
||||
type SearchStatus = 'complete' | 'error' | 'no_data';
|
||||
}
|
||||
class PlaceSearch extends EventEmitter {
|
||||
/**
|
||||
* 地点搜索服务
|
||||
* @param options 选项
|
||||
*/
|
||||
constructor(options?: PlaceSearch.Options);
|
||||
/**
|
||||
* 根据关键字搜索
|
||||
* @param keyword 根据关键字搜索
|
||||
* @param callback 回调
|
||||
*/
|
||||
search(
|
||||
keyword: string,
|
||||
callback: (status: PlaceSearch.SearchStatus, result: string | PlaceSearch.SearchResult) => void
|
||||
): void;
|
||||
/**
|
||||
* 周边查询
|
||||
* @param keyword 关键字
|
||||
* @param center 搜索中心
|
||||
* @param radius 搜索半径
|
||||
* @param callback 回调
|
||||
*/
|
||||
searchNearBy(
|
||||
keyword: string,
|
||||
center: LocationValue,
|
||||
radius: number,
|
||||
callback: (status: PlaceSearch.SearchStatus, result: string | PlaceSearch.SearchResult) => void
|
||||
): void;
|
||||
/**
|
||||
* 根据范围和关键词进行范围查询
|
||||
* @param keyword 关键字
|
||||
* @param bounds 搜索范围
|
||||
* @param callback 回调
|
||||
*/
|
||||
searchInBounds(
|
||||
keyword: string,
|
||||
bounds: Bounds | Polygon,
|
||||
callback: (status: PlaceSearch.SearchStatus, result: string | PlaceSearch.SearchResult) => void
|
||||
): void;
|
||||
/**
|
||||
* 根据POIID 查询POI 详细信息
|
||||
* @param POIID POIID
|
||||
* @param callback 搜索回调
|
||||
*/
|
||||
getDetails(
|
||||
POIID: string,
|
||||
callback: (status: PlaceSearch.SearchStatus, result: string | PlaceSearch.SearchResult) => void
|
||||
): void;
|
||||
/**
|
||||
* 设置查询类别
|
||||
* @param type 查询类别
|
||||
*/
|
||||
setType(type?: string): void;
|
||||
/**
|
||||
* 设置是否强制限制城市
|
||||
* @param limit 是否强制限制城市
|
||||
*/
|
||||
setCityLimit(limit?: boolean): void;
|
||||
/**
|
||||
* 设置查询结果特定页数
|
||||
* @param pageIndex 页码
|
||||
*/
|
||||
setPageIndex(pageIndex?: number): void;
|
||||
/**
|
||||
* 设置查询单页结果数
|
||||
* @param pageSize 结果数
|
||||
*/
|
||||
setPageSize(pageSize?: number): void;
|
||||
/**
|
||||
* 设置查询城市
|
||||
* @param city 城市
|
||||
*/
|
||||
setCity(city?: string): void;
|
||||
/**
|
||||
* 设置检索语言类型
|
||||
* @param lang 语言类型
|
||||
*/
|
||||
setLang(lang?: Lang): void;
|
||||
/**
|
||||
* 获取检索语言类型
|
||||
*/
|
||||
getLang(): Lang | undefined;
|
||||
/**
|
||||
* 清除搜索结果
|
||||
*/
|
||||
clear(): void;
|
||||
/**
|
||||
* 唤起高德地图客户端marker页
|
||||
* @param obj 唤起参数
|
||||
*/
|
||||
poiOnAMAP(obj: { location?: LocationValue; id: string; name?: string; }): void;
|
||||
/**
|
||||
* 唤起高德地图客户端POI详情页
|
||||
* @param obj 唤起参数
|
||||
*/
|
||||
detailOnAMAP(obj: { location?: LocationValue; id: string; name?: string; }): void;
|
||||
|
||||
// internal
|
||||
open(): void;
|
||||
close(): void;
|
||||
}
|
||||
}
|
||||
@@ -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-place-search-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -2415,6 +2415,7 @@ const testInfoWindow = new AMap.InfoWindow<InfoWindowExtraData>({
|
||||
closeWhenClickMap: false,
|
||||
content: 'content',
|
||||
size: [100, 100],
|
||||
anchor: 'bottom-center',
|
||||
offset: new AMap.Pixel(10, 10),
|
||||
position: lnglat,
|
||||
showShadow: true
|
||||
@@ -2449,6 +2450,20 @@ testInfoWindow.setPosition(lnglatTuple);
|
||||
// $ExpectType LngLat | undefined
|
||||
testInfoWindow.getPosition();
|
||||
|
||||
const testInfoWindowAnchor = testInfoWindow.getAnchor();
|
||||
if (testInfoWindowAnchor !== undefined) {
|
||||
// $ExpectType Anchor
|
||||
testInfoWindowAnchor;
|
||||
} else {
|
||||
// $ExpectType undefined
|
||||
testInfoWindowAnchor;
|
||||
}
|
||||
|
||||
// $ExpectType void
|
||||
testInfoWindow.setAnchor();
|
||||
// $ExpectType void
|
||||
testInfoWindow.setAnchor(testInfoWindowAnchor);
|
||||
|
||||
// $ExpectType Size | undefined
|
||||
testInfoWindow.getSize();
|
||||
|
||||
@@ -2491,6 +2506,7 @@ new AMap.Marker({});
|
||||
export const testMarker = new AMap.Marker<MarkerExtraData>({
|
||||
map,
|
||||
position: lnglat,
|
||||
anchor: 'bottom-center',
|
||||
offset: pixel,
|
||||
icon: 'iconUrl',
|
||||
content: 'htmlString',
|
||||
@@ -2526,6 +2542,20 @@ testMarker.markOnAMAP({
|
||||
name: '123'
|
||||
});
|
||||
|
||||
const testMarkerAnchor = testMarker.getAnchor();
|
||||
if (testMarkerAnchor) {
|
||||
// $ExpectType Anchor
|
||||
testMarkerAnchor;
|
||||
} else {
|
||||
// $ExpectType undefined
|
||||
testMarkerAnchor;
|
||||
}
|
||||
|
||||
// $ExpectType void
|
||||
testMarker.setAnchor(testMarkerAnchor);
|
||||
// $ExpectType void
|
||||
testMarker.setAnchor();
|
||||
|
||||
// $ExpectType Pixel
|
||||
testMarker.getOffset();
|
||||
|
||||
@@ -3229,6 +3259,7 @@ const testText = new AMap.Text<TextExtraData>({
|
||||
verticalAlign: 'top',
|
||||
map,
|
||||
position: lnglat,
|
||||
anchor: 'bottom-center',
|
||||
offset: pixel,
|
||||
topWhenClick: true,
|
||||
bubble: true,
|
||||
@@ -3246,6 +3277,20 @@ const testText = new AMap.Text<TextExtraData>({
|
||||
extData: { test: 1 }
|
||||
});
|
||||
|
||||
const testTextAnchor = testText.getAnchor();
|
||||
if (testTextAnchor) {
|
||||
// $ExpectType Anchor
|
||||
testTextAnchor;
|
||||
} else {
|
||||
// $ExpectType undefined
|
||||
testTextAnchor;
|
||||
}
|
||||
|
||||
// $ExpectType void
|
||||
testText.setAnchor(testTextAnchor);
|
||||
// $ExpectType void
|
||||
testText.setAnchor();
|
||||
|
||||
// $ExpectType string
|
||||
testText.getText();
|
||||
|
||||
@@ -3363,7 +3408,7 @@ testText.setShadow(icon);
|
||||
testText.setShadow('shadow url');
|
||||
|
||||
// $ExpectType void
|
||||
testText.setExtData({test: 1});
|
||||
testText.setExtData({ test: 1 });
|
||||
|
||||
// $ExpectType {} | TextExtraData
|
||||
testText.getExtData();
|
||||
|
||||
+15
@@ -6,6 +6,8 @@ declare namespace AMap {
|
||||
close: Event<'close', { target: I }>;
|
||||
}
|
||||
|
||||
type Anchor = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
||||
|
||||
interface Options<ExtraData = any> extends Overlay.Options<ExtraData> {
|
||||
/**
|
||||
* 是否自定义窗体
|
||||
@@ -27,6 +29,10 @@ declare namespace AMap {
|
||||
* 信息窗体尺寸
|
||||
*/
|
||||
size?: SizeValue;
|
||||
/**
|
||||
* 信息窗体锚点
|
||||
*/
|
||||
anchor?: Anchor;
|
||||
/**
|
||||
* 信息窗体显示位置偏移量
|
||||
*/
|
||||
@@ -82,6 +88,15 @@ declare namespace AMap {
|
||||
* 获取信息窗体显示基点位置
|
||||
*/
|
||||
getPosition(): LngLat | undefined;
|
||||
/**
|
||||
* 获取锚点
|
||||
*/
|
||||
getAnchor(): InfoWindow.Anchor | undefined;
|
||||
/**
|
||||
* 设置锚点
|
||||
* @param anchor 锚点
|
||||
*/
|
||||
setAnchor(anchor?: InfoWindow.Anchor): void;
|
||||
/**
|
||||
* 设置信息窗体大小
|
||||
* @param size 大小
|
||||
|
||||
+14
@@ -25,11 +25,17 @@ declare namespace AMap {
|
||||
offset?: Pixel;
|
||||
}
|
||||
|
||||
type Anchor = 'top-left' | 'top-center' | 'top-right' | 'middle-left' | 'center' | 'middle-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
|
||||
|
||||
interface Options<ExtraData = any> extends Overlay.Options<ExtraData> {
|
||||
/**
|
||||
* 点标记在地图上显示的位置
|
||||
*/
|
||||
position?: LocationValue;
|
||||
/**
|
||||
* 标记锚点
|
||||
*/
|
||||
anchor?: Anchor;
|
||||
/**
|
||||
* 点标记显示位置偏移量
|
||||
*/
|
||||
@@ -117,6 +123,14 @@ declare namespace AMap {
|
||||
* @param obj 唤起参数
|
||||
*/
|
||||
markOnAMAP(obj?: { name?: string, position?: LocationValue }): void;
|
||||
/**
|
||||
* 获取锚点
|
||||
*/
|
||||
getAnchor(): Marker.Anchor | undefined;
|
||||
/**
|
||||
* 设置锚点
|
||||
*/
|
||||
setAnchor(anchor?: Marker.Anchor): void;
|
||||
/**
|
||||
* 获取偏移量
|
||||
*/
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -419,3 +419,14 @@ myApp.controller('StickyController', ($scope: TestScope, $mdSticky: ng.material.
|
||||
$mdSticky($scope, stickyElement);
|
||||
$mdSticky($scope, stickyElement, cloneStickyElement);
|
||||
});
|
||||
|
||||
function mdUtil($mdUtil: ng.material.IUtilService) {
|
||||
// $ExpectType void
|
||||
$mdUtil.enableScrolling();
|
||||
|
||||
// $ExpectType () => void
|
||||
$mdUtil.debounce(() => {});
|
||||
|
||||
// $ExpectType () => string
|
||||
$mdUtil.debounce((): string => "");
|
||||
}
|
||||
|
||||
Vendored
+6
@@ -517,5 +517,11 @@ declare module 'angular' {
|
||||
getLastInteractionType(): string|null;
|
||||
isUserInvoked(checkDelay?: number): boolean;
|
||||
}
|
||||
|
||||
interface IUtilService {
|
||||
// tslint:disable-next-line:ban-types debounce takes in a user provided function
|
||||
debounce<T extends Function>(func: T, wait?: number, scope?: any, invokeApply?: boolean): T;
|
||||
enableScrolling(): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
@@ -8,6 +8,7 @@
|
||||
"callable-types": false,
|
||||
"comment-format": false,
|
||||
"dt-header": false,
|
||||
"npm-naming": false,
|
||||
"eofline": false,
|
||||
"export-just-namespace": false,
|
||||
"import-spacing": false,
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user