mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-07 10:40:13 +00:00
Merge branch 'master' of https://github.com/DefinitelyTyped/DefinitelyTyped into feature/react-native-canvas
This commit is contained in:
132
.github/CODEOWNERS
vendored
132
.github/CODEOWNERS
vendored
@@ -276,7 +276,7 @@
|
||||
/types/await-timeout/ @szhu
|
||||
/types/awesomplete/ @webbiesdk @bmdixon @tbekolay @chrislopresto
|
||||
/types/aws-iot-device-sdk/ @niik @mlamp
|
||||
/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex @MichaelMarner @daniel-cottone @kostya-misura @coderbyheart @palmithor @daniloraisi @simonbuchan @Haydabase @repl-chris @aneilbaboo @jeznag @louislarry @dpapukchiev @ohookins @trevor-leach @jagregory @dalen @loikg @skyzenr @richardcornelissen
|
||||
/types/aws-lambda/ @skarum @tobyhede @buggy @y13i @wwwy3y3 @OrthoDex @MichaelMarner @daniel-cottone @kostya-misura @coderbyheart @palmithor @daniloraisi @simonbuchan @Haydabase @repl-chris @aneilbaboo @jeznag @louislarry @dpapukchiev @ohookins @trevor-leach @jagregory @dalen @loikg @skyzenr @richardcornelissen @redlickigrzegorz
|
||||
/types/aws-param-store/ @jasonthomasgray
|
||||
/types/aws-serverless-express/ @threesquared @jcaffey @mattmeye @albertovasquez
|
||||
/types/aws4/ @ajcrites
|
||||
@@ -375,7 +375,7 @@
|
||||
/types/bindings/ @unindented
|
||||
/types/bintrees/ @CjS77
|
||||
/types/bip21/ @stefanhuber
|
||||
/types/bip32/ @me
|
||||
/types/bip32/ @eduhenke
|
||||
/types/bip38/ @micksatana
|
||||
/types/bip39/ @micksatana
|
||||
/types/bit-array/ @mudkipme
|
||||
@@ -440,11 +440,10 @@
|
||||
/types/bootstrap3-dialog/ @nakupanda @cnboland
|
||||
/types/bounce.js/ @cherrry
|
||||
/types/box2d/ @jbaldwin
|
||||
/types/boxen/ @BendingBender
|
||||
/types/bpmn-moddle/ @haydos89
|
||||
/types/brace-expansion/ @BendingBender
|
||||
/types/braces/ @vemoo
|
||||
/types/braft-editor/ @me
|
||||
/types/braft-editor/ @petitspois
|
||||
/types/braintree-web/ @chlela
|
||||
/types/breeze/ @borisyankov
|
||||
/types/bricks.js/ @kondi
|
||||
@@ -459,7 +458,7 @@
|
||||
/types/browser-resolve/ @marionebl
|
||||
/types/browser-sync/ @joeskeen @aznnomness
|
||||
/types/browserify/ @AndrewGaspar @jvilk @leonard-thieu @LinusU
|
||||
/types/browserslist/ @davecardwell
|
||||
/types/browserslist/ @davecardwell @AndrewLeedham
|
||||
/types/browserslist-useragent/ @nju33
|
||||
/types/bs58/ @chrootsu @BendingBender
|
||||
/types/bs58/v3/ @chrootsu
|
||||
@@ -526,8 +525,9 @@
|
||||
/types/carbon__themes/ @vpicone
|
||||
/types/carbon__type/ @vpicone
|
||||
/types/card-validator/ @ChanceM
|
||||
/types/carlo/ @adierkens
|
||||
/types/case-sensitive-paths-webpack-plugin/ @r3nya
|
||||
/types/caseless/ @downace @mastermatt
|
||||
/types/caseless/ @downace @mastermatt @forivall
|
||||
/types/cash/ @akvlko
|
||||
/types/casperjs/ @jedmao @urielch
|
||||
/types/cassandra-driver/ @Svjard @pc-jedi @michal-b-kaminski
|
||||
@@ -539,6 +539,7 @@
|
||||
/types/cavy/ @tyler-hoffman
|
||||
/types/cbor/ @pushplay
|
||||
/types/ccap/ @taoqf
|
||||
/types/centra/ @twooster
|
||||
/types/cesium/ @Zuzon @hnipps @szechyjs @golyalpha
|
||||
/types/cfn-response/ @ivoisbelongtous
|
||||
/types/chai/ @jedmao @Bartvds @AGBrown @olivr70 @mwistrand @joshuakgoldberg @shaunluttin @Naktibalda @micksatana @ErikSchierboom
|
||||
@@ -551,10 +552,10 @@
|
||||
/types/chai-enzyme/ @asvetliakov
|
||||
/types/chai-fs/ @dimitardanailov
|
||||
/types/chai-fuzzy/ @Bartvds
|
||||
/types/chai-http/ @Nemo157 @G1itcher @CaselIT @bas-l
|
||||
/types/chai-jest-snapshot/ @mattvperry
|
||||
/types/chai-jquery/ @kazimanzurrashid
|
||||
/types/chai-json-schema/ @ulrichheiniger
|
||||
/types/chai-moment/ @chrisgodsey
|
||||
/types/chai-oequal/ @mizunashi-mana
|
||||
/types/chai-roughly/ @swist
|
||||
/types/chai-spies/ @kuzn-ilya @harm-less @jounisuo
|
||||
@@ -607,7 +608,6 @@
|
||||
/types/clean-css/v3/ @tkrotoff
|
||||
/types/clean-regexp/ @BendingBender
|
||||
/types/clean-stack/ @BendingBender
|
||||
/types/clean-webpack-plugin/ @j-f1
|
||||
/types/clear-require/ @dan-j
|
||||
/types/clearbladejs-client/ @ClearBlade
|
||||
/types/clearbladejs-node/ @ClearBlade
|
||||
@@ -634,6 +634,7 @@
|
||||
/types/clmtrackr/ @hellochar
|
||||
/types/clndr/ @jasperjn
|
||||
/types/clockpicker/ @jfcere
|
||||
/types/clone-deep/ @tanfonto
|
||||
/types/cloneable-readable/ @qlonik
|
||||
/types/cloner/ @matrumz
|
||||
/types/closure-compiler/ @mprobst
|
||||
@@ -704,7 +705,7 @@
|
||||
/types/condense-whitespace/ @djcsdy
|
||||
/types/confidence/ @jppellerin
|
||||
/types/config/ @RWander @forrestbice @jndonald3 @albertovasquez
|
||||
/types/config-yaml/ @me
|
||||
/types/config-yaml/ @Arylo
|
||||
/types/configstore/ @ArcticLight
|
||||
/types/configurable/ @jewbre
|
||||
/types/confit/ @ethanresnick
|
||||
@@ -749,7 +750,6 @@
|
||||
/types/cookies/ @WangZishi @jkeylu @BendingBender
|
||||
/types/copy/ @ffflorian
|
||||
/types/copy-paste/ @SrTobi
|
||||
/types/copy-text-to-clipboard/ @BendingBender
|
||||
/types/copy-webpack-plugin/ @flying-sheep
|
||||
/types/copyfiles/ @ffflorian
|
||||
/types/cordova-ionic/ @hendrikmaus
|
||||
@@ -792,9 +792,7 @@
|
||||
/types/country-select-js/ @humrochagf
|
||||
/types/countup.js/ @shermendev
|
||||
/types/coverup/ @bevalorous
|
||||
/types/cp-file/ @BendingBender
|
||||
/types/cpx/ @alan-agius4
|
||||
/types/cpy/ @mhegazy @BendingBender
|
||||
/types/cqrs-domain/ @blissi
|
||||
/types/cradle/ @panuhorsmalahti
|
||||
/types/crc/ @YuJianrong
|
||||
@@ -831,6 +829,7 @@
|
||||
/types/css/ @ilich
|
||||
/types/css-font-loading-module/ @slikts
|
||||
/types/css-modules/ @NeekSandhu
|
||||
/types/css-modules-loader-core/ @skovy
|
||||
/types/css-to-style/ @bengry
|
||||
/types/css-tree/ @erik-kallen
|
||||
/types/cssbeautify/ @rictic
|
||||
@@ -946,7 +945,6 @@
|
||||
/types/debounce-fn/ @BendingBender
|
||||
/types/debounce-promise/ @whtsky
|
||||
/types/debug/ @swook @galtalmor @zamb3zi @brasten @npenin
|
||||
/types/decamelize/ @samverschueren
|
||||
/types/decay/ @enaeseth
|
||||
/types/decode-entities/ @waspothegreat
|
||||
/types/decode-uri-component/ @BendingBender
|
||||
@@ -1014,6 +1012,7 @@
|
||||
/types/diffie-hellman/ @BendingBender
|
||||
/types/digibyte/ @lautarodragan @werewolfe
|
||||
/types/dinero.js/ @BendingBender
|
||||
/types/dingtalk-robot-sender/ @bangbang93
|
||||
/types/dir-glob/ @BendingBender
|
||||
/types/dir-resolve/ @andy-ms
|
||||
/types/dirname-regex/ @BendingBender
|
||||
@@ -1043,9 +1042,12 @@
|
||||
/types/dom-mediacapture-record/ @eliasmeire
|
||||
/types/dom-to-image/ @JipSterk
|
||||
/types/dom4/ @adidahiya @giladgray
|
||||
/types/domelementtype/ @johandavidson
|
||||
/types/domhandler/ @johandavidson
|
||||
/types/domo/ @Steve-Fenton
|
||||
/types/dompurify/ @bazuzi @FlowCrypt
|
||||
/types/domready/ @dotnetnerd
|
||||
/types/domutils/ @johandavidson
|
||||
/types/donna/ @vvakame
|
||||
/types/dookie/ @swanest
|
||||
/types/dot/ @ZombieHunter
|
||||
@@ -1106,8 +1108,9 @@
|
||||
/types/easy-table/ @nikeee
|
||||
/types/easy-xapi/ @DeadAlready
|
||||
/types/easy-xapi-utils/ @DeadAlready
|
||||
/types/easydate/ @satyarohith
|
||||
/types/ebongarde-root/ @Ebongarde
|
||||
/types/echarts/ @xieisabug @AntiMoron @liveangela @Ovilia @iRON5 @bilalucar
|
||||
/types/echarts/ @xieisabug @AntiMoron @liveangela @Ovilia @iRON5 @bilalucar @tmtron @dwhitney
|
||||
/types/ecma-proposal-math-extensions/ @ksm2
|
||||
/types/ecurve/ @mhegazy
|
||||
/types/ed25519/ @erikma
|
||||
@@ -1280,9 +1283,9 @@
|
||||
/types/expired/ @BendingBender
|
||||
/types/expired-storage/ @intolerance
|
||||
/types/expirymanager/ @DanielRose
|
||||
/types/expo/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo @levansuper @ihmpavel @burtek @jkillian @satya164 @vinitsood
|
||||
/types/expo/v31/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo @levansuper @ihmpavel @burtek @jkillian @satya164
|
||||
/types/expo/v30/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo
|
||||
/types/expo/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo @levansuper @ihmpavel @burtek @jkillian @satya164 @vinitsood @mattiassamskar @jaulz
|
||||
/types/expo/v31/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo @levansuper @ihmpavel @burtek @jkillian @satya164 @mattiassamskar
|
||||
/types/expo/v30/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo @mattiassamskar
|
||||
/types/expo/v27/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @moshfeu @prokopcm @tinaroh @binki @mo
|
||||
/types/expo/v26/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov @tinaroh
|
||||
/types/expo/v25/ @KonstantinKai @martynaskadisa @janaagaard75 @ssanchezmarc @fhelwanger @umidbekkarimov
|
||||
@@ -1367,6 +1370,7 @@
|
||||
/types/factory-girl/ @stackbuilders @sestrella @elcuy
|
||||
/types/faker/ @bensw @basp @Kuniwak @mattbishop
|
||||
/types/faker/v3/ @Kuniwak
|
||||
/types/falafel/ @delprzemo
|
||||
/types/falcor/ @Quramy
|
||||
/types/falcor-express/ @Quramy
|
||||
/types/falcor-http-datasource/ @Quramy
|
||||
@@ -1425,7 +1429,6 @@
|
||||
/types/figures/ @BendingBender
|
||||
/types/file-exists/ @BendingBender
|
||||
/types/file-saver/ @cyrilschumacher @DaIgeb @chrismbarr
|
||||
/types/file-type/ @tcaesvk @BendingBender
|
||||
/types/file-url/ @coderslagoon
|
||||
/types/filenamify/ @rokt33r
|
||||
/types/filenamify-url/ @cprecioso
|
||||
@@ -1720,6 +1723,7 @@
|
||||
/types/get-node-dimensions/ @vincekovacs
|
||||
/types/get-port/ @plantain-00 @BendingBender
|
||||
/types/get-range/ @BendingBender
|
||||
/types/get-res/ @satyarohith
|
||||
/types/get-stdin/ @DanielRosenwasser
|
||||
/types/get-stream/ @douglasduteil @BendingBender
|
||||
/types/get-urls/ @BendingBender
|
||||
@@ -1837,7 +1841,8 @@
|
||||
/types/grasp/ @agnoster
|
||||
/types/gravatar/ @denis-sokolov
|
||||
/types/gravatar-url/ @ivangabriele
|
||||
/types/greasemonkey/ @kotas
|
||||
/types/greasemonkey/ @kotas @nikolay-borzov
|
||||
/types/greasemonkey/v3/ @kotas
|
||||
/types/grecaptcha/ @DethAriel @rafaeltavares
|
||||
/types/grecaptcha/v0/ @brentj73
|
||||
/types/gregorian-calendar/ @cwalv
|
||||
@@ -1989,7 +1994,7 @@
|
||||
/types/hexo-fs/ @segayuu
|
||||
/types/hexo-log/ @segayuu
|
||||
/types/hexo-util/ @segayuu
|
||||
/types/highcharts/ @damianog @baltie @AlbertOzimek @hanssens
|
||||
/types/highcharts/ @damianog @baltie @AlbertOzimek @hanssens @jgresham
|
||||
/types/highcharts-ng/ @scatcher
|
||||
/types/highland/ @Bartvds @hgwood @iwllyu @alvis @notbobthebuilder
|
||||
/types/highlight.js/ @nikeee @sourrust @joshuakgoldberg
|
||||
@@ -2048,7 +2053,6 @@
|
||||
/types/humane/ @jmvrbanac
|
||||
/types/humanize-ms/ @adamzerella
|
||||
/types/humanize-plus/ @DenisCarriere
|
||||
/types/humanize-string/ @ragnarok56
|
||||
/types/humanize-url/ @BendingBender
|
||||
/types/humanparser/ @MichalPodeszwa
|
||||
/types/humps/ @nikeee
|
||||
@@ -2086,7 +2090,6 @@
|
||||
/types/ignore-styles/ @tai2
|
||||
/types/iltorb/ @Alorel @reconbot
|
||||
/types/image-size/ @elisee
|
||||
/types/image-type/ @ffflorian
|
||||
/types/imagemagick/ @soywiz
|
||||
/types/imagemagick-native/ @horiuchi
|
||||
/types/imagemapster/ @delphinus35
|
||||
@@ -2120,6 +2123,7 @@
|
||||
/types/ink/ @cprecioso
|
||||
/types/ink-spinner/ @lukostry
|
||||
/types/ink-table/ @lukostry
|
||||
/types/ink-testing-library/ @MancunianSam
|
||||
/types/ink-text-input/ @lukostry
|
||||
/types/inline-css/ @philipisapain
|
||||
/types/inline-style-prefixer/ @ahz @dpetrezselyova @franklixuefei
|
||||
@@ -2214,7 +2218,6 @@
|
||||
/types/is-running/ @danwbyrne
|
||||
/types/is-scoped/ @postcrafter
|
||||
/types/is-stream/ @me
|
||||
/types/is-svg/ @BendingBender
|
||||
/types/is-text-path/ @mhegazy
|
||||
/types/is-touch-device/ @screendriver
|
||||
/types/is-trademarked/ @BendingBender
|
||||
@@ -2238,7 +2241,7 @@
|
||||
/types/issue-parser/ @Leko
|
||||
/types/issue-regex/ @BendingBender
|
||||
/types/istanbul/ @tkrotoff
|
||||
/types/istanbul-lib-coverage/ @jason0x43
|
||||
/types/istanbul-lib-coverage/ @jason0x43 @loryman
|
||||
/types/istanbul-lib-hook/ @jason0x43
|
||||
/types/istanbul-lib-instrument/ @jason0x43
|
||||
/types/istanbul-lib-report/ @jason0x43
|
||||
@@ -2521,8 +2524,8 @@
|
||||
/types/jsrender/ @zakki
|
||||
/types/jsreport-core/ @taoqf
|
||||
/types/jsreport-html-embedded-in-docx/ @taoqf
|
||||
/types/jsreport-html-to-xlsx/ @me
|
||||
/types/jsreport-html-to-xlsx/v1/ @me
|
||||
/types/jsreport-html-to-xlsx/ @taoqf
|
||||
/types/jsreport-html-to-xlsx/v1/ @taoqf
|
||||
/types/jsreport-jsrender/ @taoqf
|
||||
/types/jsreport-phantom-pdf/ @taoqf
|
||||
/types/jsreport-xlsx/ @taoqf
|
||||
@@ -2766,7 +2769,7 @@
|
||||
/types/lingui__macro/ @huan086
|
||||
/types/lingui__react/ @huan086
|
||||
/types/linkify-issues/ @BendingBender
|
||||
/types/linkify-it/ @praxxis
|
||||
/types/linkify-it/ @praxxis @alexplumb
|
||||
/types/linkify-urls/ @BendingBender
|
||||
/types/linkifyjs/ @szhu @ovidiubute
|
||||
/types/list-git-remotes/ @BendingBender
|
||||
@@ -3295,6 +3298,7 @@
|
||||
/types/mixto/ @vvakame
|
||||
/types/mjml/ @aahoughton @marpstar
|
||||
/types/mjml-react/ @henrinormak
|
||||
/types/mkcert/ @asachin96
|
||||
/types/mkdirp/ @Bartvds @mrmlnc
|
||||
/types/mkdirp-promise/ @pluma
|
||||
/types/mkpath/ @optical
|
||||
@@ -3333,13 +3337,13 @@
|
||||
/types/moment-strftime2/ @dex4er
|
||||
/types/moment-timezone/ @michelsalib @alanblins @asermax @borys-kupar
|
||||
/types/money-math/ @taoqf
|
||||
/types/mongo-sanitize/ @CedricCazin
|
||||
/types/mongo-sanitize/ @CedricCazin @penumbra1
|
||||
/types/mongodb/ @CaselIT @alanmarcell @bitjson @dante-101 @mcortesi @EnricoPicci @AJCStriker @julien-c @daprahamian @denys-bushulyak @BastienAr @sindbach @geraldinelemeur @jishi @various89 @angela-1 @lirbank @hector7 @floric @erikc5000 @Manc
|
||||
/types/mongodb/v2/ @CaselIT @alanmarcell @bitjson @dante-101 @mcortesi
|
||||
/types/mongodb-memory-server/ @dmitryrogozhny
|
||||
/types/mongodb-uri/ @mernxl
|
||||
/types/mongoose/ @horiuchi @lukasz-zak @Alorel @jendrikw @ethanresnick @vologab @jussikinnula @ondratra @alfirin @idandrd @various89 @Fazendaaa @NormanPerrin @danmana @stablio @emmanuelgautier @frontendmonster @mingchen @penumbra1
|
||||
/types/mongoose/v4/ @simonxca @horiuchi @lukasz-zak
|
||||
/types/mongoose/ @horiuchi @lukasz-zak @Alorel @jendrikw @ethanresnick @vologab @jussikinnula @ondratra @alfirin @idandrd @various89 @Fazendaaa @NormanPerrin @danmana @stablio @emmanuelgautier @frontendmonster @mingchen @penumbra1 @orblazer
|
||||
/types/mongoose/v4/ @simonxca @horiuchi @lukasz-zak @murbanowicz
|
||||
/types/mongoose-auto-increment/ @AyaMorisawa
|
||||
/types/mongoose-deep-populate/ @AyaMorisawa
|
||||
/types/mongoose-geojson-schema/ @bondz
|
||||
@@ -3377,7 +3381,7 @@
|
||||
/types/msportalfx-test/ @julioct
|
||||
/types/mssql/ @jaminfarr @buzinas @mrrichar @elhaard @pkeuter @mcdado
|
||||
/types/mu2/ @jedigo
|
||||
/types/mui-datatables/ @favna
|
||||
/types/mui-datatables/ @favna @ankithkonda
|
||||
/types/muicss/ @samuelneff
|
||||
/types/multer/ @jt000 @DavidBR-SW @mxl @hyunseob
|
||||
/types/multer-gridfs-storage/ @devconcept
|
||||
@@ -3529,7 +3533,7 @@
|
||||
/types/node-localstorage/ @intolerance
|
||||
/types/node-memwatch/ @Kroisse
|
||||
/types/node-mysql-wrapper/ @kataras
|
||||
/types/node-notifier/ @tkQubo
|
||||
/types/node-notifier/ @tkQubo @loryman
|
||||
/types/node-polyglot/ @timjk @liamross
|
||||
/types/node-powershell/ @rodrigoff
|
||||
/types/node-pushnotifications/ @menushka
|
||||
@@ -3591,12 +3595,10 @@
|
||||
/types/npm-keyword/ @BendingBender
|
||||
/types/npm-license-crawler/ @ffflorian
|
||||
/types/npm-list-author-packages/ @ffflorian
|
||||
/types/npm-name/ @BendingBender
|
||||
/types/npm-package-arg/ @mgroenhoff @OiYouYeahYou
|
||||
/types/npm-packlist/ @ajafff
|
||||
/types/npm-paths/ @BendingBender
|
||||
/types/npm-registry-package-info/ @ffflorian
|
||||
/types/npm-run-path/ @BendingBender
|
||||
/types/npm-user/ @BendingBender
|
||||
/types/npm-user-packages/ @BendingBender
|
||||
/types/npmlog/ @DanielMSchmidt @littlepiggy03
|
||||
@@ -3680,7 +3682,7 @@
|
||||
/types/openlayers/ @osechet @wb14123 @ailrun @mylen @iamthechad @danmana @yairtawil @pierremarc @hauke96 @gberaudo
|
||||
/types/openlayers/v3/ @osechet @matthiasdailey-ccri
|
||||
/types/openlayers/v2/ @bolhovsky
|
||||
/types/openpgp/ @errietta @damonpam @po5i @ecamellini
|
||||
/types/openpgp/ @errietta @damonpam @po5i @ecamellini @SardineFish
|
||||
/types/openstack-wrapper/ @sanjaymadane
|
||||
/types/opentok/ @westy92 @CatGuardian
|
||||
/types/opentype.js/ @danmarshall @edzis
|
||||
@@ -3735,7 +3737,6 @@
|
||||
/types/p-retry/ @BendingBender
|
||||
/types/p-series/ @BendingBender
|
||||
/types/p-settle/ @natesilva
|
||||
/types/p-some/ @BendingBender
|
||||
/types/p-tap/ @BendingBender
|
||||
/types/p-time/ @BendingBender
|
||||
/types/p-timeout/ @BendingBender
|
||||
@@ -3833,7 +3834,6 @@
|
||||
/types/path-exists/v1/ @shiwano
|
||||
/types/path-is-absolute/ @mhegazy
|
||||
/types/path-is-inside/ @aomarks
|
||||
/types/path-key/ @BendingBender
|
||||
/types/path-regex/ @BendingBender
|
||||
/types/path-type/ @BendingBender
|
||||
/types/pathfinding/ @BNedry
|
||||
@@ -3859,7 +3859,7 @@
|
||||
/types/pendo-io-browser/ @aaronbeall
|
||||
/types/permit/ @jannikkeye
|
||||
/types/persona/ @Nycto
|
||||
/types/pet-finder-api/ @me
|
||||
/types/pet-finder-api/ @ncipollina
|
||||
/types/petit-dom/ @JamesMessinger
|
||||
/types/pg/ @pspeter3
|
||||
/types/pg/v6/ @pspeter3
|
||||
@@ -3875,6 +3875,7 @@
|
||||
/types/phantom/ @horiuchi @llRandom
|
||||
/types/phantomcss/ @abauzac
|
||||
/types/phantomjs/ @jedhunsaker @keesey
|
||||
/types/phin/ @twooster
|
||||
/types/phoenix/ @mciastek @John-Goff @princemaple
|
||||
/types/phone/ @DxCx
|
||||
/types/phone-formatter/ @westy92
|
||||
@@ -3978,6 +3979,7 @@
|
||||
/types/power-assert/ @vvakame
|
||||
/types/power-assert-formatter/ @vvakame
|
||||
/types/powerbi-visuals-tools/ @zBritva @Microsoft
|
||||
/types/preact-i18n/ @ltetzlaff
|
||||
/types/precise/ @codeanimal
|
||||
/types/precond/ @olsio
|
||||
/types/preloadjs/ @endel
|
||||
@@ -4047,6 +4049,8 @@
|
||||
/types/prosemirror-test-builder/ @ifiokjr
|
||||
/types/prosemirror-transform/ @bradleyayers @davidka @timjb @patsimm
|
||||
/types/prosemirror-view/ @bradleyayers @davidka @timjb @patsimm
|
||||
/types/protoc-plugin/ @jonnyreeves
|
||||
/types/protocol-buffers-schema/ @claasahl
|
||||
/types/proton-native/ @khanhas @ltetzlaff
|
||||
/types/protractor-browser-logs/ @rokadias
|
||||
/types/protractor-helpers/ @johncant
|
||||
@@ -4056,7 +4060,6 @@
|
||||
/types/proxy-lists/ @BehindTheMath
|
||||
/types/proxy-verifier/ @BehindTheMath
|
||||
/types/proxyquire/ @jt000
|
||||
/types/ps-list/ @BendingBender
|
||||
/types/ps-tree/ @alessiopcc
|
||||
/types/pseudo-audio-param/ @kirbysayshi
|
||||
/types/psl/ @BendingBender
|
||||
@@ -4071,7 +4074,7 @@
|
||||
/types/pumpify/ @JustinBeckwith @aoberoi
|
||||
/types/punycode/ @yavanosta
|
||||
/types/pupa/ @nju33
|
||||
/types/puppeteer/ @marvinhagemeister @cdeutsch @ksm2 @SimonSchick
|
||||
/types/puppeteer/ @marvinhagemeister @cdeutsch @ksm2 @SimonSchick @SerbanGhita
|
||||
/types/puppeteer/v0/ @marvinhagemeister @cdeutsch
|
||||
/types/puppeteer-core/ @mtsmfm
|
||||
/types/pure-render-decorator/ @seansfkelley
|
||||
@@ -4095,8 +4098,6 @@
|
||||
/types/qs-middleware/ @davecardwell
|
||||
/types/qtip2/ @Seltzer @leonard-thieu
|
||||
/types/querystringify/ @ilich
|
||||
/types/quick-lru/ @BendingBender
|
||||
/types/quick-lru/v1/ @BendingBender
|
||||
/types/quill/ @sumitkm @guillaume-ro-fr @43081j @AnielloFalcone @mhamri
|
||||
/types/quixote/ @greybax
|
||||
/types/qunit/ @waratuman @mike-north
|
||||
@@ -4160,7 +4161,7 @@
|
||||
/types/rdflib/ @cenotelie
|
||||
/types/re-base/ @jordandrako
|
||||
/types/reach__router/ @kingdaro
|
||||
/types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @tkrotoff @DovydasNavickas @onigoetz @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @hotell @franklixuefei @Jessidhia @pshrmn @threepointone @saranshkataria
|
||||
/types/react/ @johnnyreilly @bbenezech @pzavolinsky @digiguru @ericanderson @tkrotoff @DovydasNavickas @onigoetz @theruther4d @guilhermehubner @ferdaber @jrakotoharisoa @pascaloliv @hotell @franklixuefei @Jessidhia @pshrmn @saranshkataria
|
||||
/types/react/v15/ @bbenezech @pzavolinsky @digiguru @ericanderson @tkrotoff @DovydasNavickas @onigoetz
|
||||
/types/react-adal/ @dkorolev1
|
||||
/types/react-albus/ @sseppola @conradreuter @kuirak
|
||||
@@ -4175,10 +4176,10 @@
|
||||
/types/react-autocomplete/ @lstanden
|
||||
/types/react-autosuggest/ @nicolas-schmitt @pjo256 @robessog @tbayne @cdeutsch @rosskevin
|
||||
/types/react-avatar-editor/ @diogocorrea @gabsprates @lsenta @davidspiess
|
||||
/types/react-beautiful-dnd/ @varHarrie @bradleyayers @paustint @marknelissen @enricoboccadifuoco @lonyele
|
||||
/types/react-beautiful-dnd/ @varHarrie @bradleyayers @paustint @marknelissen @enricoboccadifuoco @lonyele @lukyth
|
||||
/types/react-better-password/ @mhuynh1
|
||||
/types/react-big-calendar/ @piotrwitek @paustint @pikpok @eps1lon @strongpauly @janb87 @ldthorne
|
||||
/types/react-blessed/ @me
|
||||
/types/react-big-calendar/ @piotrwitek @paustint @pikpok @eps1lon @strongpauly @janb87 @ldthorne @siavelis
|
||||
/types/react-blessed/ @guoshencheng
|
||||
/types/react-body-classname/ @mhegazy
|
||||
/types/react-bootstrap/ @walkerburgin @vsiao @danilojrr @Batbold-Gansukh @octatone @chengsieuly @mretolaza @katbusch @vitosamson @LKay @aaronbeall @jrakotoharisoa @r3nya @t49tran @bes
|
||||
/types/react-bootstrap-date-picker/ @LKay @ssi-hu-antal-bodnar
|
||||
@@ -4201,7 +4202,7 @@
|
||||
/types/react-coinhive/ @sktbcbbs
|
||||
/types/react-collapse/ @Kimahriman
|
||||
/types/react-collapsible/ @knegusen
|
||||
/types/react-color/ @LKay @markspolakovs @mntdn @nkgrnkgr
|
||||
/types/react-color/ @LKay @markspolakovs @mntdn @nkgrnkgr @0815Strohhut
|
||||
/types/react-confirm/ @santiagodoldan @marknelissen
|
||||
/types/react-content-loader/ @alaatm @samwalshnz
|
||||
/types/react-copy-to-clipboard/ @mabels @BernabeFelix
|
||||
@@ -4221,7 +4222,7 @@
|
||||
/types/react-data-grid/v1/ @SupernaviX
|
||||
/types/react-datagrid/ @stephenjelfs
|
||||
/types/react-date-range/ @Junbong
|
||||
/types/react-datepicker/ @radziksh @andrewBalekha @smrq @Rogach @royxue @KoalaHuman @seansfkelley @justingrant @jakeboone02
|
||||
/types/react-datepicker/ @radziksh @andrewBalekha @smrq @Rogach @royxue @KoalaHuman @seansfkelley @justingrant @jakeboone02 @Ky6uk @aviklai
|
||||
/types/react-daterange-picker/ @uncovertruth @MartynasZilinskas @donaldtf @vladflorescu94
|
||||
/types/react-dates/ @ArturAmpilogov @NathanNZ
|
||||
/types/react-daum-postcode/ @Sa-ryong
|
||||
@@ -4265,7 +4266,8 @@
|
||||
/types/react-google-login-component/ @koss-lebedev
|
||||
/types/react-google-maps-loader/ @vasilysn
|
||||
/types/react-google-places-suggest/ @vasilysn
|
||||
/types/react-google-recaptcha/ @KoalaHuman @tomsturge
|
||||
/types/react-google-recaptcha/ @KoalaHuman @tomsturge @MaxwellBo
|
||||
/types/react-google-recaptcha/v0/ @KoalaHuman @tomsturge
|
||||
/types/react-gravatar/ @invliD
|
||||
/types/react-grid-layout/ @abirkholz @alitaheri @ZheyangSong @andrewhathaway @manav-m
|
||||
/types/react-hamburger-menu/ @grzesie2k
|
||||
@@ -4313,7 +4315,7 @@
|
||||
/types/react-json/ @spielc
|
||||
/types/react-json-pretty/ @LKay
|
||||
/types/react-json-tree/ @gnestor @zainafzal08
|
||||
/types/react-jsonschema-form/ @iamdanfox @iplus26 @phbou72 @LucianBuzzo @sthenault @sbusch
|
||||
/types/react-jsonschema-form/ @iamdanfox @iplus26 @phbou72 @LucianBuzzo @sthenault @sbusch @medfreeman
|
||||
/types/react-jss/ @eps1lon @jlaw90
|
||||
/types/react-kawaii/ @ZhangYiJiang
|
||||
/types/react-lazyload/ @m0a
|
||||
@@ -4334,6 +4336,7 @@
|
||||
/types/react-mce/ @morphologue
|
||||
/types/react-mdl/ @bradzacher
|
||||
/types/react-measure/ @asvetliakov @marcfallows
|
||||
/types/react-medium-image-zoom/ @james-ff
|
||||
/types/react-mentions/ @activescott @efedorenko
|
||||
/types/react-mixin/ @tkqubo
|
||||
/types/react-modal/ @radziksh @drewnoakes @homburg @ttamminen @hallowatcher @peterblazejewicz @jpowell
|
||||
@@ -4341,7 +4344,7 @@
|
||||
/types/react-motion-loop/ @j-em
|
||||
/types/react-motion-slider/ @asvetliakov
|
||||
/types/react-motion-ui-pack/ @jsonunger
|
||||
/types/react-native/ @alloy @huhuanming @iRoachie @skn0tt @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software @tkrotoff @a-tarasyuk @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg
|
||||
/types/react-native/ @alloy @huhuanming @iRoachie @skn0tt @timwangdev @kamal @nelyousfi @alexdunne @swissmanu @bm-software @tkrotoff @a-tarasyuk @mvdam @esemesek @mrnickel @souvik-ghosh @nossbigg @saranshkataria
|
||||
/types/react-native-android-taskdescription/ @christianchown
|
||||
/types/react-native-auth0/ @ascariandrea @marknelissen
|
||||
/types/react-native-autocomplete-input/ @ifiokjr
|
||||
@@ -4432,7 +4435,7 @@
|
||||
/types/react-notification-system-redux/ @LKay
|
||||
/types/react-notify-toast/ @klaascuvelier
|
||||
/types/react-numeric-input/ @heatherbooker @akx
|
||||
/types/react-onclickoutside/ @LKay @surgeboris
|
||||
/types/react-onclickoutside/ @LKay @surgeboris @NilSet
|
||||
/types/react-onclickoutside/v5/ @LKay
|
||||
/types/react-onsenui/ @salim7 @jemmyw @lirbank
|
||||
/types/react-outside-click-handler/ @zubivan
|
||||
@@ -4572,7 +4575,6 @@
|
||||
/types/reactstrap/ @alihammad @mfal @danilobjr @FaithForHumans @timc13 @patrickrgaffney @prabodht @georg94
|
||||
/types/reactstrap/v4/ @alihammad @mfal @danilobjr @fabiopaiva
|
||||
/types/read/ @timjk
|
||||
/types/read-chunk/ @crispybee
|
||||
/types/read-package-tree/ @mgroenhoff
|
||||
/types/read-pkg/ @jdxcode
|
||||
/types/read-pkg-up/ @dudeofawesome @jdxcode
|
||||
@@ -4597,7 +4599,7 @@
|
||||
/types/recursive-readdir/ @elisee @MicahZoltu
|
||||
/types/recursive-readdir/v1/ @elisee
|
||||
/types/redent/ @BendingBender
|
||||
/types/redis/ @soywiz @CodeAnimal @MugeSo @UppaJung @Rokt33r @43081j @barnski @1pete @blablapolicja @ferrantejake
|
||||
/types/redis/ @soywiz @CodeAnimal @MugeSo @UppaJung @Rokt33r @43081j @barnski @1pete @blablapolicja @ferrantejake @OpesanyaAdebayo
|
||||
/types/redis-errors/ @43081j
|
||||
/types/redis-mock/ @BendingBender
|
||||
/types/redis-rate-limiter/ @westy92 @nodify-at
|
||||
@@ -4700,6 +4702,7 @@
|
||||
/types/requirejs-domready/ @lefb766
|
||||
/types/requires-port/ @BendingBender
|
||||
/types/resemblejs/ @pimterry
|
||||
/types/reserved-words/ @skovy
|
||||
/types/reservoir/ @danvk
|
||||
/types/resize-img/ @higuri
|
||||
/types/resize-observer-browser/ @chivesrs
|
||||
@@ -4755,6 +4758,7 @@
|
||||
/types/rn-fetch-blob/ @pengcao1
|
||||
/types/roads/ @dancespiele
|
||||
/types/roads-server/ @dancespiele
|
||||
/types/roarr/ @psaxton
|
||||
/types/rocksdb/ @MeirionHughes @danwbyrne
|
||||
/types/roll/ @icopp
|
||||
/types/rolling-rate-limiter/ @l-jonas
|
||||
@@ -4774,6 +4778,7 @@
|
||||
/types/round-to/ @seangenabe
|
||||
/types/route-parser/ @ianks @bobbuehler
|
||||
/types/routie/ @Adilson
|
||||
/types/rox-react-native/ @ahanriat
|
||||
/types/royalslider/ @csrakowski @sKopheK
|
||||
/types/rpio/ @DominikPalo @Pencl
|
||||
/types/rrc/ @DeividasBakanas
|
||||
@@ -5004,12 +5009,11 @@
|
||||
/types/sindresorhus__df/ @whatknight
|
||||
/types/sindresorhus__djb2a/ @BendingBender
|
||||
/types/sindresorhus__fnv1a/ @BendingBender
|
||||
/types/sindresorhus__slugify/ @cprecioso
|
||||
/types/sindresorhus__string-hash/ @BendingBender
|
||||
/types/sindresorhus__to-milliseconds/ @BendingBender
|
||||
/types/single-line-log/ @ffflorian
|
||||
/types/single-spa-react/ @Garrett-Smith-iq @chrisdopuch
|
||||
/types/sinon/ @mrbigdog2u @rationull @lumaxis @nicojs @43081j @joshuakgoldberg @gjednaszewski @johnjesse @alecf @SimonSchick
|
||||
/types/sinon/ @mrbigdog2u @rationull @lumaxis @nicojs @43081j @joshuakgoldberg @gjednaszewski @johnjesse @alecf @SimonSchick @bergundy
|
||||
/types/sinon-as-promised/ @igrayson
|
||||
/types/sinon-chai/ @kazimanzurrashid @jedmao @elpdpt
|
||||
/types/sinon-chai/v2/ @kazimanzurrashid @jedmao
|
||||
@@ -5181,7 +5185,7 @@
|
||||
/types/storybook__channels/ @bmatcuk
|
||||
/types/storybook__react/ @joscha @wapgear @dandean
|
||||
/types/storybook__react-native/ @joscha @wapgear @alechill @iRoachie @ceyhuno
|
||||
/types/storybook__vue/ @pntgupta
|
||||
/types/storybook__vue/ @pntgupta @jurgisrudaks
|
||||
/types/strange/ @wanganjun
|
||||
/types/stream-array/ @Tyler-Murphy
|
||||
/types/stream-buffers/ @Jason3S
|
||||
@@ -5220,7 +5224,7 @@
|
||||
/types/strip-color/ @BendingBender
|
||||
/types/strip-indent/ @BendingBender
|
||||
/types/strip-json-comments/ @dmoonfire
|
||||
/types/stripe/ @wjohnsto @codeanimal @sampsonjoliver @LinusU @brannon @kkamperschroer @starhoshi @bruun @galtalmor @htunnicliff @squirly @tzarger @ifiokjr @SimonSchick @yultyyev @cpsoinos @saranshkataria @0xJoKe
|
||||
/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
|
||||
@@ -5317,6 +5321,7 @@
|
||||
/types/tabulator/ @euginio
|
||||
/types/tabulator-tables/ @jojoshua
|
||||
/types/tail/ @spacejack
|
||||
/types/tampermonkey/ @silverwzw @nikolay-borzov
|
||||
/types/tapable/ @e-cloud @johnnyreilly
|
||||
/types/tapable/v0/ @e-cloud
|
||||
/types/tape/ @Bartvds @sodatea @DennisSchwartz @mikehenrty @rostrowski
|
||||
@@ -5379,7 +5384,6 @@
|
||||
/types/tildify/ @BendingBender
|
||||
/types/tile-reduce/ @DenisCarriere
|
||||
/types/tilebelt/ @DenisCarriere
|
||||
/types/time-span/ @BendingBender @mdvorscak
|
||||
/types/timelinejs/ @rolandzwaga
|
||||
/types/timelinejs3/ @MikeMatusz
|
||||
/types/timer-machine/ @dolanmiu
|
||||
@@ -5432,7 +5436,6 @@
|
||||
/types/transducers-js/ @colinkahn @dphilipson @NaridaL
|
||||
/types/transducers.js/ @dphilipson
|
||||
/types/transliteration/ @tony19
|
||||
/types/trash/ @matthew-matvei @hoishin @BendingBender
|
||||
/types/traverse/ @newclear
|
||||
/types/traverson/ @marcinporebski
|
||||
/types/travis-fold/ @andy-ms
|
||||
@@ -5446,6 +5449,7 @@
|
||||
/types/trim-newlines/ @djcsdy
|
||||
/types/triple-beam/ @danwbyrne
|
||||
/types/triplesec/ @threesquared
|
||||
/types/trouter/ @stahlstift
|
||||
/types/trunk8/ @niemyjski
|
||||
/types/trusted-types/ @vrana
|
||||
/types/tryer/ @bengry
|
||||
@@ -5453,6 +5457,7 @@
|
||||
/types/tspromise/ @soywiz
|
||||
/types/ttf2woff2/ @ThomasdenH
|
||||
/types/tunnel/ @BendingBender
|
||||
/types/turbolinks/ @evankim390
|
||||
/types/turndown/ @sergey-zhidkov
|
||||
/types/tus-js-client/ @kevhiggins @Acconut
|
||||
/types/tv4/ @Bartvds @psnider
|
||||
@@ -5598,10 +5603,11 @@
|
||||
/types/vfile/ @bizen241 @rokt33r
|
||||
/types/vfile-location/ @ikatyang @rokt33r
|
||||
/types/vfile-message/ @rokt33r
|
||||
/types/victory/ @asvetliakov @snerks @Havret @allreadyExisted @jlismore
|
||||
/types/victory/ @asvetliakov @snerks @Havret @allreadyExisted @jlismore @stackbuilders @ibarrae
|
||||
/types/video.js/ @vbortone @scleriot @SWBennett06 @IgelCampus @giofreitas @gjanblaszczyk @sroucheray @AkxeOne @meikidd
|
||||
/types/viewability-helper/ @lironzluf
|
||||
/types/viewerjs/ @lrh3321
|
||||
/types/viewport-list/ @satyarohith
|
||||
/types/viewport-mercator-project/ @fnberta
|
||||
/types/viewporter/ @borisyankov
|
||||
/types/vimeo/ @DazWilkin
|
||||
@@ -5629,8 +5635,9 @@
|
||||
/types/vortex-web-client/ @Pro
|
||||
/types/voucher-code-generator/ @JWebCoder
|
||||
/types/voximplant-websdk/ @aylarov
|
||||
/types/vscode/ @Microsoft
|
||||
/types/vue-chartkick/ @cnsmedia
|
||||
/types/vue-color/ @me
|
||||
/types/vue-color/ @mildful
|
||||
/types/vue-markdown/ @neodon
|
||||
/types/vue-resource/ @kaorun343
|
||||
/types/vue-scrollto/ @vincekovacs
|
||||
@@ -5843,7 +5850,6 @@
|
||||
/types/yui/ @giabao
|
||||
/types/yup/ @dhardtke @vtserman @MoretonBayRC @sseppola @YashdalfTheGray @vincentjames501 @robertbullen @sat0yu @dancrumb
|
||||
/types/z-schema/ @pgonzal
|
||||
/types/zapier-platform-core/ @bradleyayers
|
||||
/types/zeit__next-typescript/ @icopp
|
||||
/types/zen-observable/ @aicest @JounQin @itomtom
|
||||
/types/zen-push/ @daprahamian
|
||||
|
||||
@@ -18,6 +18,12 @@
|
||||
"sourceRepoURL": "https://github.com/ceolter/ag-grid",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "aggregate-error",
|
||||
"typingsPackageName": "aggregate-error",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/aggregate-error",
|
||||
"asOfVersion": "2.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ajv",
|
||||
"typingsPackageName": "ajv",
|
||||
@@ -468,6 +474,12 @@
|
||||
"sourceRepoURL": "https://github.com/MikeMcl/decimal.js",
|
||||
"asOfVersion": "7.4.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "decompress-response",
|
||||
"typingsPackageName": "decompress-response",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/decompress-response",
|
||||
"asOfVersion": "4.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "deepmerge",
|
||||
"typingsPackageName": "deepmerge",
|
||||
@@ -510,6 +522,12 @@
|
||||
"sourceRepoURL": "https://github.com/joyent/docker-file-parser",
|
||||
"asOfVersion": "1.0.3"
|
||||
},
|
||||
{
|
||||
"libraryName": "dom-loaded",
|
||||
"typingsPackageName": "dom-loaded",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/dom-loaded",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "dot-case",
|
||||
"typingsPackageName": "dot-case",
|
||||
@@ -564,6 +582,12 @@
|
||||
"sourceRepoURL": "https://github.com/loopline-systems/electron-builder",
|
||||
"asOfVersion": "2.8.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "element-ready",
|
||||
"typingsPackageName": "element-ready",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/element-ready",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "email-addresses",
|
||||
"typingsPackageName": "email-addresses",
|
||||
@@ -684,6 +708,18 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/file-type",
|
||||
"asOfVersion": "10.9.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "filenamify",
|
||||
"typingsPackageName": "filenamify",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/filenamify",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "filenamify-url",
|
||||
"typingsPackageName": "filenamify-url",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/filenamify-url",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "FineUploader",
|
||||
"typingsPackageName": "fine-uploader",
|
||||
@@ -696,6 +732,12 @@
|
||||
"sourceRepoURL": "https://www.firebase.com/docs/javascript/firebase",
|
||||
"asOfVersion": "3.2.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "fkill",
|
||||
"typingsPackageName": "fkill",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/fkill",
|
||||
"asOfVersion": "6.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "flatpickr",
|
||||
"typingsPackageName": "flatpickr",
|
||||
@@ -744,6 +786,12 @@
|
||||
"sourceRepoURL": "https://github.com/manuelbieh/Geolib",
|
||||
"asOfVersion": "2.0.23"
|
||||
},
|
||||
{
|
||||
"libraryName": "get-stream",
|
||||
"typingsPackageName": "get-stream",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/get-stream",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "github",
|
||||
"typingsPackageName": "github",
|
||||
@@ -810,6 +858,18 @@
|
||||
"sourceRepoURL": "https://handsontable.com/",
|
||||
"asOfVersion": "0.35.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "has-yarn",
|
||||
"typingsPackageName": "has-yarn",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/has-yarn",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "hasha",
|
||||
"typingsPackageName": "hasha",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/hasha",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "hibp",
|
||||
"typingsPackageName": "hibp",
|
||||
@@ -888,6 +948,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/internal-ip",
|
||||
"asOfVersion": "4.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "into-stream",
|
||||
"typingsPackageName": "into-stream",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/into-stream",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "inversify",
|
||||
"typingsPackageName": "inversify",
|
||||
@@ -948,6 +1014,12 @@
|
||||
"sourceRepoURL": "https://github.com/jonschlinkert/is-plain-object",
|
||||
"asOfVersion": "2.0.4"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-scoped",
|
||||
"typingsPackageName": "is-scoped",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/is-scoped",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "is-svg",
|
||||
"typingsPackageName": "is-svg",
|
||||
@@ -1056,6 +1128,12 @@
|
||||
"sourceRepoURL": "https://github.com/elitechance/lambda-phi",
|
||||
"asOfVersion": "1.0.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "latest-version",
|
||||
"typingsPackageName": "latest-version",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/latest-version",
|
||||
"asOfVersion": "5.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "ldclient-js",
|
||||
"typingsPackageName": "ldclient-js",
|
||||
@@ -1068,6 +1146,12 @@
|
||||
"sourceRepoURL": "https://github.com/stevemao/left-pad",
|
||||
"asOfVersion": "1.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "leven",
|
||||
"typingsPackageName": "leven",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/leven",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Linq.JS",
|
||||
"typingsPackageName": "linq",
|
||||
@@ -1158,6 +1242,12 @@
|
||||
"sourceRepoURL": "https://github.com/runk/node-maxmind",
|
||||
"asOfVersion": "2.0.5"
|
||||
},
|
||||
{
|
||||
"libraryName": "mem",
|
||||
"typingsPackageName": "mem",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/mem",
|
||||
"asOfVersion": "4.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "mendixmodelsdk",
|
||||
"typingsPackageName": "mendixmodelsdk",
|
||||
@@ -1260,6 +1350,18 @@
|
||||
"sourceRepoURL": "https://github.com/paularmstrong/normalizr",
|
||||
"asOfVersion": "2.0.18"
|
||||
},
|
||||
{
|
||||
"libraryName": "npm-email",
|
||||
"typingsPackageName": "npm-email",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/npm-email",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "npm-keyword",
|
||||
"typingsPackageName": "npm-keyword",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/npm-keyword",
|
||||
"asOfVersion": "6.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "npm-name",
|
||||
"typingsPackageName": "npm-name",
|
||||
@@ -1272,6 +1374,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/npm-run-path",
|
||||
"asOfVersion": "3.0.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "npm-user",
|
||||
"typingsPackageName": "npm-user",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/npm-user",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "Nuka Carousel",
|
||||
"typingsPackageName": "nuka-carousel",
|
||||
@@ -1302,48 +1410,162 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/ora",
|
||||
"asOfVersion": "3.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-any",
|
||||
"typingsPackageName": "p-any",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-any",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-cancelable",
|
||||
"typingsPackageName": "p-cancelable",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-cancelable",
|
||||
"asOfVersion": "1.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-catch-if",
|
||||
"typingsPackageName": "p-catch-if",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-catch-if",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-debounce",
|
||||
"typingsPackageName": "p-debounce",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-debounce",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-each-series",
|
||||
"typingsPackageName": "p-each-series",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-each-series",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-event",
|
||||
"typingsPackageName": "p-event",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-event",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-every",
|
||||
"typingsPackageName": "p-every",
|
||||
"sourceRepoURL": "https://github.com/kevva/p-every",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-limit",
|
||||
"typingsPackageName": "p-limit",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-limit",
|
||||
"asOfVersion": "2.2.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-locate",
|
||||
"typingsPackageName": "p-locate",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-locate",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-log",
|
||||
"typingsPackageName": "p-log",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-log",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-map",
|
||||
"typingsPackageName": "p-map",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-map",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-map-series",
|
||||
"typingsPackageName": "p-map-series",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-map-series",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-memoize",
|
||||
"typingsPackageName": "p-memoize",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-memoize",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-one",
|
||||
"typingsPackageName": "p-one",
|
||||
"sourceRepoURL": "https://github.com/kevva/p-one",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-pipe",
|
||||
"typingsPackageName": "p-pipe",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-pipe",
|
||||
"asOfVersion": "2.0.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-progress",
|
||||
"typingsPackageName": "p-progress",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-progress",
|
||||
"asOfVersion": "0.3.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-props",
|
||||
"typingsPackageName": "p-props",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-props",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-queue",
|
||||
"typingsPackageName": "p-queue",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-queue",
|
||||
"asOfVersion": "3.2.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-reduce",
|
||||
"typingsPackageName": "p-reduce",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-reduce",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-retry",
|
||||
"typingsPackageName": "p-retry",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-retry",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-series",
|
||||
"typingsPackageName": "p-series",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-series",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-some",
|
||||
"typingsPackageName": "p-some",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-some",
|
||||
"asOfVersion": "4.0.1"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-tap",
|
||||
"typingsPackageName": "p-tap",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-tap",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-throttle",
|
||||
"typingsPackageName": "p-throttle",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-throttle",
|
||||
"asOfVersion": "2.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "p-timeout",
|
||||
"typingsPackageName": "p-timeout",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/p-timeout",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "package-json",
|
||||
"typingsPackageName": "package-json",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/package-json",
|
||||
"asOfVersion": "6.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "param-case",
|
||||
"typingsPackageName": "param-case",
|
||||
@@ -1380,6 +1602,12 @@
|
||||
"sourceRepoURL": "https://github.com/pillarjs/path-to-regexp",
|
||||
"asOfVersion": "1.7.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "path-type",
|
||||
"typingsPackageName": "path-type",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/path-type",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "perfect-scrollbar",
|
||||
"typingsPackageName": "perfect-scrollbar",
|
||||
@@ -1422,6 +1650,18 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/pkg-conf",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "pkg-dir",
|
||||
"typingsPackageName": "pkg-dir",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/pkg-dir",
|
||||
"asOfVersion": "4.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "pkg-versions",
|
||||
"typingsPackageName": "pkg-versions",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/pkg-versions",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "plottable",
|
||||
"typingsPackageName": "plottable",
|
||||
@@ -1800,6 +2040,12 @@
|
||||
"sourceRepoURL": "https://github.com/zeh/simplesignal",
|
||||
"asOfVersion": "1.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "@sindresorhus/df",
|
||||
"typingsPackageName": "sindresorhus__df",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/df",
|
||||
"asOfVersion": "3.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "@sindresorhus/slugify",
|
||||
"typingsPackageName": "sindresorhus__slugify",
|
||||
@@ -2004,6 +2250,12 @@
|
||||
"sourceRepoURL": "https://github.com/kriasoft/universal-router",
|
||||
"asOfVersion": "8.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "unused-filename",
|
||||
"typingsPackageName": "unused-filename",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/unused-filename",
|
||||
"asOfVersion": "2.0.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "upper-case",
|
||||
"typingsPackageName": "upper-case",
|
||||
@@ -2064,6 +2316,12 @@
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/wait-for-localhost",
|
||||
"asOfVersion": "3.1.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "wallpaper",
|
||||
"typingsPackageName": "wallpaper",
|
||||
"sourceRepoURL": "https://github.com/sindresorhus/wallpaper",
|
||||
"asOfVersion": "4.3.0"
|
||||
},
|
||||
{
|
||||
"libraryName": "webcola",
|
||||
"typingsPackageName": "webcola",
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import AggregateError = require('aggregate-error');
|
||||
|
||||
const err = new AggregateError([new Error('foo'), 'bar']);
|
||||
|
||||
for (const el of Array.from(err)) {
|
||||
const err: Error = el;
|
||||
}
|
||||
|
||||
throw err;
|
||||
12
types/aggregate-error/index.d.ts
vendored
12
types/aggregate-error/index.d.ts
vendored
@@ -1,12 +0,0 @@
|
||||
// Type definitions for aggregate-error 1.0
|
||||
// Project: https://github.com/sindresorhus/aggregate-error#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = AggregateError;
|
||||
|
||||
declare class AggregateError extends Error implements Iterable<Error> {
|
||||
constructor(errors: Iterable<Error | string>);
|
||||
|
||||
[Symbol.iterator](): Iterator<Error>;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"aggregate-error-tests.ts"
|
||||
]
|
||||
}
|
||||
489
types/amap-js-api-map3d/amap-js-api-map3d-tests.ts
Normal file
489
types/amap-js-api-map3d/amap-js-api-map3d-tests.ts
Normal file
@@ -0,0 +1,489 @@
|
||||
/**
|
||||
* preset.ts
|
||||
*/
|
||||
|
||||
declare const map: AMap.Map;
|
||||
declare const lnglat: AMap.LngLat;
|
||||
declare const size: AMap.Size;
|
||||
declare const lnglatTuple: [number, number];
|
||||
declare const pixel: AMap.Pixel;
|
||||
declare const layer: AMap.Layer;
|
||||
declare const ambientLight: AMap.Lights.AmbientLight;
|
||||
declare const directionLight: AMap.Lights.DirectionLight;
|
||||
declare const line: AMap.Object3D.Line;
|
||||
declare const mesh: AMap.Object3D.Mesh;
|
||||
declare const object3d: AMap.Object3D;
|
||||
declare const geometry: AMap.Geometry3D.Mesh;
|
||||
|
||||
/**
|
||||
* lights.ts
|
||||
*/
|
||||
|
||||
// $ExpectType AmbientLight
|
||||
const testAmbientLight = new AMap.Lights.AmbientLight([0.1, 0, 0.1], 1);
|
||||
|
||||
// $ExpectType void
|
||||
testAmbientLight.setColor([0.1, 1, 0.5]);
|
||||
|
||||
// $ExpectType void
|
||||
testAmbientLight.setIntensity(1);
|
||||
|
||||
// $ExpectType DirectionLight
|
||||
const testDirectionLight = new AMap.Lights.DirectionLight([1, 2, 3], [1, 2, 3], 1);
|
||||
|
||||
// $ExpectType void
|
||||
testDirectionLight.setColor([1, 2, 3]);
|
||||
|
||||
// $ExpectType void
|
||||
testDirectionLight.setIntensity(1);
|
||||
|
||||
// $ExpectType void
|
||||
testDirectionLight.setDirection([1, 2, 3]);
|
||||
|
||||
/**
|
||||
* map3d.ts
|
||||
*/
|
||||
|
||||
// $ExpectType Object3DResult | null
|
||||
map.getObject3DByContainerPos(pixel);
|
||||
|
||||
// $ExpectType Object3DResult | null
|
||||
const containserPos = map.getObject3DByContainerPos(pixel, [layer], true);
|
||||
if (containserPos) {
|
||||
// $ExpectType number
|
||||
containserPos.index;
|
||||
// $ExpectType Vector3
|
||||
containserPos.point;
|
||||
// $ExpectType number
|
||||
containserPos.distance;
|
||||
// $ExpectType Object3D
|
||||
containserPos.object;
|
||||
} else {
|
||||
// $ExpectType null
|
||||
containserPos;
|
||||
}
|
||||
|
||||
map.AmbientLight = ambientLight;
|
||||
map.AmbientLight = undefined;
|
||||
|
||||
map.DirectionLight = directionLight;
|
||||
map.DirectionLight = undefined;
|
||||
|
||||
/**
|
||||
* object3d-group.ts
|
||||
*/
|
||||
|
||||
// $ExpectType Object3DGroup<Object3D>
|
||||
const testObject3dGroup1 = new AMap.Object3DGroup();
|
||||
// $ExpectType Object3DGroup<Mesh>
|
||||
const testObject3dGroup2 = new AMap.Object3DGroup<AMap.Object3D.Mesh>();
|
||||
|
||||
// $ExpectType Object3D[]
|
||||
testObject3dGroup1.children;
|
||||
// $ExpectType Mesh[]
|
||||
testObject3dGroup2.children;
|
||||
|
||||
// $ExoectType void
|
||||
testObject3dGroup1.add(line);
|
||||
// $ExoectType void
|
||||
testObject3dGroup1.add(mesh);
|
||||
// $ExoectType void
|
||||
testObject3dGroup2.add(mesh);
|
||||
// $ExpectError
|
||||
testObject3dGroup2.add(line);
|
||||
|
||||
// $ExoectType void
|
||||
testObject3dGroup1.remove(line);
|
||||
// $ExoectType void
|
||||
testObject3dGroup1.remove(mesh);
|
||||
// $ExoectType void
|
||||
testObject3dGroup2.remove(mesh);
|
||||
// $ExpectError
|
||||
testObject3dGroup2.remove(line);
|
||||
|
||||
/**
|
||||
* object3d-Layer.ts
|
||||
*/
|
||||
|
||||
// $ExpectType Object3DLayer
|
||||
new AMap.Object3DLayer();
|
||||
// $ExpectType Object3DLayer
|
||||
new AMap.Object3DLayer({});
|
||||
// $ExpectType Object3DLayer
|
||||
const testObject3DLayer = new AMap.Object3DLayer({
|
||||
map,
|
||||
visible: true,
|
||||
opacity: 0.1,
|
||||
zIndex: 2,
|
||||
zooms: [1, 2]
|
||||
});
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.setMap(null);
|
||||
// $ExpectType void
|
||||
testObject3DLayer.setMap(map);
|
||||
|
||||
// $ExpectType Map | null | undefined
|
||||
testObject3DLayer.getMap();
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.hide();
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.show();
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.setOpacity(1);
|
||||
|
||||
// $ExpectType number
|
||||
testObject3DLayer.getOpacity();
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.setzIndex(1);
|
||||
|
||||
// $ExpectType number
|
||||
testObject3DLayer.getzIndex();
|
||||
|
||||
// $ExpectType [number, number]
|
||||
testObject3DLayer.getZooms();
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.add(object3d);
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.remove(object3d);
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.clear();
|
||||
|
||||
// $ExpectType void
|
||||
testObject3DLayer.reDraw();
|
||||
|
||||
/**
|
||||
* vector3.ts
|
||||
*/
|
||||
|
||||
// $ExpectType Vector3
|
||||
const testVector = new AMap.Vector3([1, 2, 3]);
|
||||
// $ExpectType Vector3
|
||||
new AMap.Vector3(testVector);
|
||||
|
||||
// $ExpectType [number, number, number]
|
||||
testVector.elements;
|
||||
|
||||
// $ExpectType void
|
||||
testVector.set(1, 2, 3);
|
||||
|
||||
// $ExpectType number
|
||||
testVector.dot();
|
||||
|
||||
// $ExpectType Vector3
|
||||
testVector.clone();
|
||||
|
||||
// $ExpectType Vector3
|
||||
testVector.add(testVector);
|
||||
// $ExpectType Vector3
|
||||
testVector.add([1, 2, 3]);
|
||||
|
||||
// $ExpectType Vector3
|
||||
testVector.sub(testVector);
|
||||
// $ExpectType Vector3
|
||||
testVector.sub([1, 2, 3]);
|
||||
|
||||
// $ExpectType Vector3
|
||||
testVector.addVectors(testVector, testVector);
|
||||
|
||||
// $ExpectType Vector3
|
||||
testVector.subVectors(testVector, testVector);
|
||||
|
||||
// $ExpectType Vector3
|
||||
testVector.crossVectors(testVector, testVector);
|
||||
|
||||
// $ExpectType Vector3
|
||||
testVector.normalize();
|
||||
|
||||
// $ExpectType number
|
||||
testVector.length();
|
||||
|
||||
/**
|
||||
* object3d/mesh.ts
|
||||
*/
|
||||
|
||||
// $ExpectType Mesh
|
||||
const testMesh = new AMap.Object3D.Mesh();
|
||||
|
||||
// $ExpectError
|
||||
testMesh.geometry = geometry;
|
||||
|
||||
// $ExpectType number[]
|
||||
testMesh.geometry.vertices;
|
||||
// $ExpectError
|
||||
testMesh.geometry.vertices = [];
|
||||
testMesh.geometry.vertices.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMesh.geometry.vertexColors;
|
||||
// $ExpectError
|
||||
testMesh.geometry.vertexColors = [];
|
||||
testMesh.geometry.vertexColors.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMesh.geometry.vertexUVs;
|
||||
// $ExpectError
|
||||
testMesh.geometry.vertexUVs = [];
|
||||
testMesh.geometry.vertexUVs.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMesh.geometry.faces;
|
||||
// $ExpectError
|
||||
testMesh.geometry.faces = [];
|
||||
testMesh.geometry.faces.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMesh.geometry.textureIndices;
|
||||
// $ExpectError
|
||||
testMesh.geometry.textureIndices = [];
|
||||
testMesh.geometry.textureIndices.shift();
|
||||
|
||||
// $ExpectType (string | HTMLCanvasElement)[]
|
||||
testMesh.textures;
|
||||
|
||||
// $ExpectType boolean
|
||||
testMesh.needUpdate;
|
||||
|
||||
// $ExpectType boolean
|
||||
testMesh.transparent;
|
||||
|
||||
// $ExpectType boolean
|
||||
testMesh.DEPTH_TEST;
|
||||
|
||||
// $ExpectType void
|
||||
testMesh.reDraw();
|
||||
|
||||
/**
|
||||
* object3d/meshAcceptLights.ts
|
||||
*/
|
||||
|
||||
// $ExpectType MeshAcceptLights
|
||||
const testMeshAcceptLights = new AMap.Object3D.MeshAcceptLights();
|
||||
|
||||
// $ExpectError
|
||||
testMeshAcceptLights.geometry = geometry;
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshAcceptLights.geometry.vertices;
|
||||
// $ExpectError
|
||||
testMeshAcceptLights.geometry.vertices = [];
|
||||
testMeshAcceptLights.geometry.vertices.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshAcceptLights.geometry.vertexColors;
|
||||
// $ExpectError
|
||||
testMeshAcceptLights.geometry.vertexColors = [];
|
||||
testMeshAcceptLights.geometry.vertexColors.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshAcceptLights.geometry.vertexUVs;
|
||||
// $ExpectError
|
||||
testMeshAcceptLights.geometry.vertexUVs = [];
|
||||
testMeshAcceptLights.geometry.vertexUVs.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshAcceptLights.geometry.faces;
|
||||
// $ExpectError
|
||||
testMeshAcceptLights.geometry.faces = [];
|
||||
testMeshAcceptLights.geometry.faces.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshAcceptLights.geometry.textureIndices;
|
||||
// $ExpectError
|
||||
testMeshAcceptLights.geometry.textureIndices = [];
|
||||
testMeshAcceptLights.geometry.textureIndices.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshAcceptLights.geometry.vertexNormals;
|
||||
// $ExpectError
|
||||
testMeshAcceptLights.geometry.vertexNormals = [];
|
||||
testMeshAcceptLights.geometry.vertexNormals.shift();
|
||||
|
||||
// $ExpectType (string | HTMLCanvasElement)[]
|
||||
testMeshAcceptLights.textures;
|
||||
|
||||
// $ExpectType boolean
|
||||
testMeshAcceptLights.needUpdate;
|
||||
|
||||
// $ExpectType boolean
|
||||
testMeshAcceptLights.transparent;
|
||||
|
||||
// $ExpectType boolean
|
||||
testMeshAcceptLights.DEPTH_TEST;
|
||||
|
||||
// $ExpectType void
|
||||
testMeshAcceptLights.reDraw();
|
||||
|
||||
/**
|
||||
* object3d/meshLine.ts
|
||||
*/
|
||||
|
||||
// $ExpectError
|
||||
new AMap.Object3D.MeshLine();
|
||||
// $ExpectError
|
||||
new AMap.Object3D.MeshLine({});
|
||||
// $ExpectType MeshLine
|
||||
const testMeshLine = new AMap.Object3D.MeshLine({
|
||||
path: [lnglat],
|
||||
width: 1,
|
||||
height: 1,
|
||||
color: 'red'
|
||||
});
|
||||
// $ExpectType MeshLine
|
||||
new AMap.Object3D.MeshLine({
|
||||
path: [lnglat],
|
||||
color: [0, 0, 1, 1]
|
||||
});
|
||||
// $ExpectType MeshLine
|
||||
new AMap.Object3D.MeshLine({
|
||||
path: [[1, 2]]
|
||||
});
|
||||
// $ExpectType MeshLine
|
||||
new AMap.Object3D.MeshLine({
|
||||
path: [lnglat],
|
||||
unit: 'meter'
|
||||
});
|
||||
// $ExpectType MeshLine
|
||||
new AMap.Object3D.MeshLine({
|
||||
path: [pixel],
|
||||
unit: 'px'
|
||||
});
|
||||
// $ExpectError
|
||||
new AMap.Object3D.MeshLine({
|
||||
path: [lnglat],
|
||||
unit: 'px'
|
||||
});
|
||||
// $ExpectError
|
||||
new AMap.Object3D.MeshLine({
|
||||
path: [pixel],
|
||||
unit: 'meter'
|
||||
});
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshLine.geometry.vertices;
|
||||
// $ExpectError
|
||||
testMeshLine.geometry.vertices = [];
|
||||
testMeshLine.geometry.vertices.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshLine.geometry.vertexUVs;
|
||||
// $ExpectError
|
||||
testMeshLine.geometry.vertexUVs = [];
|
||||
testMeshLine.geometry.vertexUVs.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshLine.geometry.vertexColors;
|
||||
// $ExpectError
|
||||
testMeshLine.geometry.vertexColors = [];
|
||||
testMeshLine.geometry.vertexColors.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshLine.geometry.vertexColors;
|
||||
// $ExpectError
|
||||
testMeshLine.geometry.vertexColors = [];
|
||||
testMeshLine.geometry.vertexColors.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshLine.geometry.vertexIndices;
|
||||
// $ExpectError
|
||||
testMeshLine.geometry.vertexIndices = [];
|
||||
testMeshLine.geometry.vertexIndices.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshLine.geometry.directions;
|
||||
// $ExpectError
|
||||
testMeshLine.geometry.directions = [];
|
||||
testMeshLine.geometry.directions.shift();
|
||||
|
||||
// $ExpectType number[]
|
||||
testMeshLine.geometry.textureIndices;
|
||||
// $ExpectError
|
||||
testMeshLine.geometry.textureIndices = [];
|
||||
testMeshLine.geometry.textureIndices.shift();
|
||||
|
||||
// $ExpectType number
|
||||
testMeshLine.width;
|
||||
|
||||
// $ExpectType void
|
||||
testMeshLine.setPath([lnglat]);
|
||||
// $ExpectType void
|
||||
testMeshLine.setPath([lnglatTuple]);
|
||||
// $ExpectType void
|
||||
testMeshLine.setPath([pixel]);
|
||||
|
||||
// $ExpectType void
|
||||
testMeshLine.setWidth(10);
|
||||
|
||||
// $ExpectType void
|
||||
testMeshLine.setHeight(10);
|
||||
|
||||
// $ExpectType void
|
||||
testMeshLine.setColor('red');
|
||||
|
||||
/**
|
||||
* object3d/prism.ts
|
||||
*/
|
||||
|
||||
// $ExpectError
|
||||
new AMap.Object3D.Prism();
|
||||
// $ExpectError
|
||||
new AMap.Object3D.Prism({});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [lnglat],
|
||||
color: 'red'
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [lnglat],
|
||||
color: 'red',
|
||||
height: 1,
|
||||
color2: 'blue'
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [pixel],
|
||||
color: 'red'
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [lnglat],
|
||||
color: 'red'
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [[lnglat]],
|
||||
color: 'red'
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [[pixel]],
|
||||
color: 'red'
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [[lnglatTuple]],
|
||||
color: 'red'
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [lnglat],
|
||||
color: ['red']
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [lnglat],
|
||||
color: [1, 1, 1, 1]
|
||||
});
|
||||
// $ExpectType Prism
|
||||
new AMap.Object3D.Prism({
|
||||
path: [lnglat],
|
||||
color: [[1, 1, 1, 1]]
|
||||
});
|
||||
28
types/amap-js-api-map3d/geometry-3d.d.ts
vendored
Normal file
28
types/amap-js-api-map3d/geometry-3d.d.ts
vendored
Normal file
@@ -0,0 +1,28 @@
|
||||
declare namespace AMap {
|
||||
abstract class Geometry3D {
|
||||
readonly vertices: number[];
|
||||
readonly vertexUVs: number[];
|
||||
readonly vertexColors: number[];
|
||||
}
|
||||
|
||||
namespace Geometry3D {
|
||||
class Mesh extends Geometry3D {
|
||||
readonly type: 'mesh';
|
||||
readonly faces: number[];
|
||||
readonly textureIndices: number[];
|
||||
}
|
||||
|
||||
class Line extends Geometry3D {
|
||||
readonly type: 'line';
|
||||
readonly segments: number[];
|
||||
readonly textureIndices: number[];
|
||||
}
|
||||
|
||||
class Points extends Geometry3D {
|
||||
readonly type: 'points';
|
||||
readonly pointSizes: number[];
|
||||
readonly pointAreas: number[];
|
||||
readonly textureIndices: number[];
|
||||
}
|
||||
}
|
||||
}
|
||||
15
types/amap-js-api-map3d/index.d.ts
vendored
Normal file
15
types/amap-js-api-map3d/index.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Type definitions for non-npm package amap-js-api-map3d 1.4
|
||||
// Project: https://lbs.amap.com/api/javascript-api/reference/maps-3d
|
||||
// Definitions by: breeze9527 <https://github.com/breeze9527>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
/// <reference types="amap-js-api" />
|
||||
|
||||
/// <reference path="geometry-3d.d.ts" />
|
||||
/// <reference path="lights.d.ts" />
|
||||
/// <reference path="map3d.d.ts" />
|
||||
/// <reference path="object3d-group.d.ts" />
|
||||
/// <reference path="object3d-layer.d.ts" />
|
||||
/// <reference path="object3d.d.ts" />
|
||||
/// <reference path="vector3.d.ts" />
|
||||
17
types/amap-js-api-map3d/lights.d.ts
vendored
Normal file
17
types/amap-js-api-map3d/lights.d.ts
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
declare namespace AMap {
|
||||
namespace Lights {
|
||||
class AmbientLight {
|
||||
constructor(color: [number, number, number], intensity: number);
|
||||
setColor(color: [number, number, number]): void;
|
||||
setIntensity(intensity: number): void;
|
||||
}
|
||||
|
||||
class DirectionLight {
|
||||
constructor(direction: [number, number, number], color: [number, number, number], intensity: number);
|
||||
update(): void;
|
||||
setDirection(direction: [number, number, number]): void;
|
||||
setColor(direction: [number, number, number]): void;
|
||||
setIntensity(intensity: number): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
15
types/amap-js-api-map3d/map3d.d.ts
vendored
Normal file
15
types/amap-js-api-map3d/map3d.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
declare namespace AMap {
|
||||
namespace Map {
|
||||
interface Object3DResult {
|
||||
index: number;
|
||||
point: Vector3;
|
||||
distance: number;
|
||||
object: Object3D;
|
||||
}
|
||||
}
|
||||
interface Map {
|
||||
AmbientLight?: Lights.AmbientLight;
|
||||
DirectionLight?: Lights.DirectionLight;
|
||||
getObject3DByContainerPos(pixel: Pixel, layers?: Layer[], all?: boolean): Map.Object3DResult | null;
|
||||
}
|
||||
}
|
||||
8
types/amap-js-api-map3d/object3d-group.d.ts
vendored
Normal file
8
types/amap-js-api-map3d/object3d-group.d.ts
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
declare namespace AMap {
|
||||
class Object3DGroup<C extends Object3D = Object3D> extends Object3D {
|
||||
constructor();
|
||||
children: C[];
|
||||
add(object3d: C): void;
|
||||
remove(object3d: C): void;
|
||||
}
|
||||
}
|
||||
27
types/amap-js-api-map3d/object3d-layer.d.ts
vendored
Normal file
27
types/amap-js-api-map3d/object3d-layer.d.ts
vendored
Normal file
@@ -0,0 +1,27 @@
|
||||
declare namespace AMap {
|
||||
namespace Object3DLayer {
|
||||
interface Options {
|
||||
map?: Map;
|
||||
visible?: boolean;
|
||||
opacity?: number;
|
||||
zIndex?: number;
|
||||
zooms?: [number, number];
|
||||
}
|
||||
}
|
||||
|
||||
class Object3DLayer extends Layer {
|
||||
constructor(options?: Object3DLayer.Options)
|
||||
add(object3d: Object3D): void;
|
||||
remove(object3d: Object3D): void;
|
||||
clear(): void;
|
||||
reDraw(): void;
|
||||
|
||||
// internal
|
||||
setOption(options: {
|
||||
position?: number;
|
||||
scale?: number;
|
||||
height?: number;
|
||||
scene?: number;
|
||||
}): void;
|
||||
}
|
||||
}
|
||||
92
types/amap-js-api-map3d/object3d.d.ts
vendored
Normal file
92
types/amap-js-api-map3d/object3d.d.ts
vendored
Normal file
@@ -0,0 +1,92 @@
|
||||
declare namespace AMap {
|
||||
class Object3D {
|
||||
readonly geometry: Geometry3D;
|
||||
transparent: boolean;
|
||||
DEPTH_TEST: boolean;
|
||||
textures: Array<string | HTMLCanvasElement>;
|
||||
needUpdate: boolean;
|
||||
reDraw(): void;
|
||||
|
||||
// internal
|
||||
reset(): void;
|
||||
}
|
||||
|
||||
namespace Object3D {
|
||||
class Mesh extends Object3D {
|
||||
readonly geometry: Geometry3D.Mesh;
|
||||
}
|
||||
|
||||
class MeshAcceptLights extends Mesh {
|
||||
readonly geometry: Geometry3D.Mesh & { readonly vertexNormals: number[] };
|
||||
}
|
||||
|
||||
namespace Prism {
|
||||
interface Options {
|
||||
path: LngLat[] | Pixel[] | Array<LngLat[] | Pixel[] | Array<[number, number]>>;
|
||||
color: string | number[] | Array<string | number[]>;
|
||||
height?: number;
|
||||
color2?: string | number[] | Array<string | number[]>;
|
||||
}
|
||||
}
|
||||
class Prism extends MeshAcceptLights {
|
||||
constructor(options: Prism.Options);
|
||||
}
|
||||
|
||||
// tslint:disable-next-line
|
||||
class Wall extends Prism { }
|
||||
|
||||
class Line extends Object3D {
|
||||
readonly geometry: Geometry3D.Line;
|
||||
}
|
||||
|
||||
namespace ThinLine {
|
||||
interface Options {
|
||||
path: Array<[number, number]>;
|
||||
color: string;
|
||||
altitude?: number;
|
||||
dashArray?: number[];
|
||||
}
|
||||
}
|
||||
class ThinLine extends Line {
|
||||
constructor(options: ThinLine.Options);
|
||||
}
|
||||
|
||||
class Points extends Object3D {
|
||||
readonly geometry: Geometry3D.Points;
|
||||
borderColor: string;
|
||||
borderWeight: number;
|
||||
}
|
||||
|
||||
class RoundPoints extends Points {
|
||||
merge: boolean;
|
||||
}
|
||||
|
||||
namespace MeshLine {
|
||||
type Options = {
|
||||
width?: number;
|
||||
height?: number | number[];
|
||||
color?: string | number[];
|
||||
} & ({
|
||||
unit?: 'meter';
|
||||
path: Array<[number, number]> | LngLat[];
|
||||
} | {
|
||||
unit: 'px';
|
||||
path: Array<[number, number]> | Pixel[];
|
||||
});
|
||||
}
|
||||
// inherit from WideLine
|
||||
class MeshLine extends Object3D {
|
||||
constructor(options: MeshLine.Options);
|
||||
readonly geometry: Geometry3D & {
|
||||
readonly vertexIndices: number[];
|
||||
readonly directions: number[];
|
||||
readonly textureIndices: number[];
|
||||
};
|
||||
width: number;
|
||||
setPath(path: LngLat[] | Pixel[] | Array<[number, number]>): void;
|
||||
setWidth(width: number): void;
|
||||
setHeight(height: number | number[]): void;
|
||||
setColor(color: string): void;
|
||||
}
|
||||
}
|
||||
}
|
||||
31
types/amap-js-api-map3d/tsconfig.json
Normal file
31
types/amap-js-api-map3d/tsconfig.json
Normal file
@@ -0,0 +1,31 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noEmit": true,
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"geometry-3d.d.ts",
|
||||
"index.d.ts",
|
||||
"lights.d.ts",
|
||||
"map3d.d.ts",
|
||||
"object3d-group.d.ts",
|
||||
"object3d-layer.d.ts",
|
||||
"object3d.d.ts",
|
||||
"vector3.d.ts",
|
||||
"amap-js-api-map3d-tests.ts"
|
||||
]
|
||||
}
|
||||
16
types/amap-js-api-map3d/vector3.d.ts
vendored
Normal file
16
types/amap-js-api-map3d/vector3.d.ts
vendored
Normal file
@@ -0,0 +1,16 @@
|
||||
declare namespace AMap {
|
||||
class Vector3 {
|
||||
readonly elements: [number, number, number];
|
||||
constructor(elements: [number, number, number] | Vector3);
|
||||
set(x: number, y: number, z: number): void;
|
||||
dot(): number;
|
||||
clone(): Vector3;
|
||||
add(elements: [number, number, number] | Vector3): this;
|
||||
sub(elements: [number, number, number] | Vector3): this;
|
||||
addVectors(a: Vector3, b: Vector3): this;
|
||||
subVectors(a: Vector3, b: Vector3): this;
|
||||
crossVectors(a: Vector3, b: Vector3): this;
|
||||
normalize(): this;
|
||||
length(): number;
|
||||
}
|
||||
}
|
||||
@@ -46,4 +46,31 @@ function test_client() {
|
||||
if (!connection.isOpen && !connection.isRetrying && connection.session == null) {
|
||||
connection.open();
|
||||
}
|
||||
|
||||
var { isConnected, transport: { info: { protocol, type, url } }, defer } = connection;
|
||||
console.log(isConnected, protocol, type, url, defer);
|
||||
}
|
||||
|
||||
function test_custom_transport_factory() {
|
||||
autobahn.transports.register('custom', CustomTransportFactory)
|
||||
|
||||
var CustomFactoryFactory = autobahn.transports.get('');
|
||||
var customFactory = new CustomFactoryFactory({});
|
||||
var customTransport = customFactory.create()
|
||||
console.log(customTransport.info);
|
||||
}
|
||||
|
||||
class CustomTransportFactory {
|
||||
create(): autobahn.ITransport {
|
||||
return {
|
||||
onopen() {},
|
||||
onmessage(message: any[]) {},
|
||||
onclose(details: autobahn.ICloseEventDetails) {},
|
||||
send(message: any[]) {},
|
||||
close(errorCode: number, reason?: string) {},
|
||||
info: {type: 'custom'}
|
||||
};
|
||||
}
|
||||
|
||||
type: autobahn.TransportType = 'custom'
|
||||
}
|
||||
|
||||
48
types/autobahn/index.d.ts
vendored
48
types/autobahn/index.d.ts
vendored
@@ -1,6 +1,6 @@
|
||||
// Type definitions for AutobahnJS 0.9
|
||||
// Project: http://autobahn.ws/js/, https://github.com/crossbario/autobahn-js
|
||||
// Definitions by: Elad Zelingher <https://github.com/darkl>, Andy Hawkins <https://github.com/a904guy>, Wladimir Totino <https://github.com/valepu>, Mathias Teier <https://github.com/glenroy37>
|
||||
// Type definitions for AutobahnJS 18.10
|
||||
// Project: https://crossbar.io/autobahn/, https://github.com/crossbario/autobahn-js
|
||||
// Definitions by: Elad Zelingher <https://github.com/darkl>, Andy Hawkins <https://github.com/a904guy>, Wladimir Totino <https://github.com/valepu>, Mathias Teier <https://github.com/glenroy37>, Fran Rodriguez <https://github.com/spcfran>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="when" />
|
||||
@@ -190,9 +190,12 @@ declare namespace autobahn {
|
||||
export class Connection {
|
||||
constructor(options?: IConnectionOptions);
|
||||
|
||||
isOpen: boolean;
|
||||
isRetrying: boolean;
|
||||
session?: Session;
|
||||
readonly isConnected: boolean;
|
||||
readonly isOpen: boolean;
|
||||
readonly isRetrying: boolean;
|
||||
readonly transport: ITransport;
|
||||
readonly session?: Session;
|
||||
readonly defer?: DeferFactory;
|
||||
|
||||
open(): void;
|
||||
|
||||
@@ -205,7 +208,7 @@ declare namespace autobahn {
|
||||
interface ITransportDefinition {
|
||||
url?: string;
|
||||
protocols?: string[];
|
||||
type: string;
|
||||
type: TransportType;
|
||||
}
|
||||
|
||||
type DeferFactory = () => When.Promise<any>;
|
||||
@@ -226,7 +229,7 @@ declare namespace autobahn {
|
||||
url?: string;
|
||||
protocols?: string[];
|
||||
onchallenge?: OnChallengeHandler;
|
||||
realm?: string;
|
||||
realm: string;
|
||||
authmethods?: string[];
|
||||
authid?: string;
|
||||
}
|
||||
@@ -237,6 +240,19 @@ declare namespace autobahn {
|
||||
code: number;
|
||||
}
|
||||
|
||||
type DefaultTransportType = 'websocket' | 'longpoll' | 'rawsocket';
|
||||
|
||||
// Workaround to get intellisense on type unions of 'literals' | string.
|
||||
// See https://github.com/Microsoft/TypeScript/issues/29729
|
||||
type CustomTransportType = string & { zz_IGNORE_ME?: never };
|
||||
type TransportType = DefaultTransportType | CustomTransportType;
|
||||
|
||||
interface ITransportInfo {
|
||||
url?: string;
|
||||
protocol?: string;
|
||||
type: TransportType;
|
||||
}
|
||||
|
||||
interface ITransport {
|
||||
onopen: () => void;
|
||||
onmessage: (message: any[]) => void;
|
||||
@@ -244,19 +260,23 @@ declare namespace autobahn {
|
||||
|
||||
send(message: any[]): void;
|
||||
close(errorCode: number, reason?: string): void;
|
||||
info: ITransportInfo;
|
||||
}
|
||||
|
||||
interface ITransportFactory {
|
||||
// constructor(options: any);
|
||||
type: string;
|
||||
type: TransportType;
|
||||
create(): ITransport;
|
||||
}
|
||||
|
||||
interface ITransportFactoryFactory {
|
||||
new (options: any): ITransportFactory;
|
||||
}
|
||||
|
||||
interface ITransports {
|
||||
register(name: string, factory: any): void;
|
||||
isRegistered(name: string): boolean;
|
||||
get(name: string): any;
|
||||
list(): string[];
|
||||
register(name: TransportType, factory: ITransportFactoryFactory): void;
|
||||
isRegistered(name: TransportType): boolean;
|
||||
get(name: TransportType): ITransportFactoryFactory;
|
||||
list(): TransportType[];
|
||||
}
|
||||
|
||||
interface ILog {
|
||||
|
||||
@@ -6,6 +6,24 @@ let screen: blessed.Widgets.Screen = null;
|
||||
|
||||
// https://github.com/chjj/blessed/blob/master/test/widget-autopad.js
|
||||
|
||||
screen = blessed.screen({
|
||||
log: __dirname + "/logs/just-logs.log"
|
||||
});
|
||||
|
||||
screen = blessed.screen({
|
||||
log: __dirname + "/logs/just-logs.log",
|
||||
dump: false
|
||||
});
|
||||
|
||||
screen = blessed.screen({
|
||||
dump: __dirname + "/logs/logs-and-all-in-and-output.log"
|
||||
});
|
||||
|
||||
screen = blessed.screen({
|
||||
log: __dirname + "/logs/logs-and-all-in-and-output.log",
|
||||
dump: true
|
||||
});
|
||||
|
||||
screen = blessed.screen({
|
||||
dump: __dirname + "/logs/autopad.log",
|
||||
smartCSR: true,
|
||||
|
||||
8
types/blessed/index.d.ts
vendored
8
types/blessed/index.d.ts
vendored
@@ -1,6 +1,8 @@
|
||||
// Type definitions for blessed 0.1
|
||||
// Project: https://github.com/chjj/blessed
|
||||
// Definitions by: Bryn Austin Bellomy <https://github.com/brynbellomy>, Steve Kellock <https://github.com/skellock>
|
||||
// Definitions by: Bryn Austin Bellomy <https://github.com/brynbellomy>
|
||||
// Steve Kellock <https://github.com/skellock>
|
||||
// Max Brauer <https://github.com/mamachanko>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
// TypeScript Version: 2.1
|
||||
|
||||
@@ -925,12 +927,12 @@ export namespace Widgets {
|
||||
/**
|
||||
* Create a log file. See log method.
|
||||
*/
|
||||
log?(...msg: any[]): void;
|
||||
log?: string;
|
||||
|
||||
/**
|
||||
* Dump all output and input to desired file. Can be used together with log option if set as a boolean.
|
||||
*/
|
||||
dump?: string;
|
||||
dump?: string | boolean;
|
||||
|
||||
/**
|
||||
* Debug mode. Enables usage of the debug method. Also creates a debug console which will display when
|
||||
|
||||
100
types/bser/index.d.ts
vendored
Normal file
100
types/bser/index.d.ts
vendored
Normal file
@@ -0,0 +1,100 @@
|
||||
// Type definitions for bser 2.0
|
||||
// Project: https://facebook.github.io/watchman/docs/bser.html
|
||||
// Definitions by: Claas Ahlrichs <https://github.com/claasahl>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.7
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { EventEmitter } from "events";
|
||||
import Int64 = require("node-int64");
|
||||
|
||||
export type InputWrapper =
|
||||
| Buffer
|
||||
| string
|
||||
| NodeJS.TypedArray
|
||||
| DataView
|
||||
| ArrayBuffer
|
||||
| SharedArrayBuffer;
|
||||
export type IntWrapper = number | Int64;
|
||||
export type AnyWrapper = boolean | IntWrapper | null | string | object;
|
||||
|
||||
export class Accumulator {
|
||||
buf: Buffer;
|
||||
readOffset: number;
|
||||
writeOffset: number;
|
||||
|
||||
constructor(initsize?: number);
|
||||
|
||||
append(buf: InputWrapper): void;
|
||||
|
||||
assertReadableSize(size: number): void;
|
||||
|
||||
peekDouble(): number;
|
||||
|
||||
peekInt(size: number): IntWrapper;
|
||||
|
||||
peekString(size: number): string;
|
||||
|
||||
readAdvance(size: number): void;
|
||||
|
||||
readAvail(): number;
|
||||
|
||||
readDouble(): number;
|
||||
|
||||
// replace "IntWrapper" with "number"?
|
||||
readInt(bytes: number): IntWrapper;
|
||||
|
||||
readString(size: number): string;
|
||||
|
||||
reserve(size: number): void;
|
||||
|
||||
writeAvail(): number;
|
||||
|
||||
writeByte(value: number): void;
|
||||
|
||||
writeDouble(value: number): void;
|
||||
|
||||
writeInt(value: number, size: number): void;
|
||||
}
|
||||
|
||||
export class BunserBuf extends EventEmitter {
|
||||
buf: Accumulator;
|
||||
state: 0 | 1;
|
||||
// replace "IntWrapper" with "number"?
|
||||
pduLen?: false | IntWrapper;
|
||||
|
||||
constructor();
|
||||
|
||||
append(
|
||||
buf: InputWrapper,
|
||||
synchronous?: false
|
||||
): AnyWrapper | AnyWrapper[] | undefined;
|
||||
append(buf: InputWrapper, synchronous: true): void;
|
||||
|
||||
decodeAny(): AnyWrapper | AnyWrapper[];
|
||||
|
||||
decodeArray(): AnyWrapper[];
|
||||
|
||||
// replace "IntWrapper" with "number"?
|
||||
decodeInt(relaxSizeAsserts?: boolean): false | IntWrapper;
|
||||
|
||||
decodeObject(): object;
|
||||
|
||||
decodeString(): string;
|
||||
|
||||
decodeTemplate(): AnyWrapper[];
|
||||
|
||||
expectCode(expected: number): void;
|
||||
|
||||
process(synchronous?: false): AnyWrapper | AnyWrapper[] | undefined;
|
||||
process(synchronous: true): void;
|
||||
|
||||
processLater(): void;
|
||||
|
||||
raise(reason: string): void;
|
||||
}
|
||||
|
||||
export function dumpToBuffer(val: any): Buffer;
|
||||
|
||||
export function loadFromBuffer(input: InputWrapper): AnyWrapper | AnyWrapper[];
|
||||
4
types/bser/test/sample1.ts
Normal file
4
types/bser/test/sample1.ts
Normal file
@@ -0,0 +1,4 @@
|
||||
import * as bser from "bser";
|
||||
|
||||
const encoded = bser.dumpToBuffer(["hello"]);
|
||||
console.log(bser.loadFromBuffer(encoded)); // ['hello']
|
||||
7
types/bser/test/sample2.ts
Normal file
7
types/bser/test/sample2.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as bser from "bser";
|
||||
|
||||
const bunser = new bser.BunserBuf();
|
||||
|
||||
bunser.on("value", obj => {
|
||||
console.log(obj);
|
||||
});
|
||||
16
types/bser/test/sample3.ts
Normal file
16
types/bser/test/sample3.ts
Normal file
@@ -0,0 +1,16 @@
|
||||
import * as bser from "bser";
|
||||
import net from "net";
|
||||
|
||||
const obj = "sample data";
|
||||
const bunser = new bser.BunserBuf();
|
||||
|
||||
bunser.on("value", obj => {
|
||||
console.log("data from socket", obj);
|
||||
});
|
||||
|
||||
const socket = net.connect("/socket");
|
||||
|
||||
socket.on("data", buf => {
|
||||
bunser.append(buf);
|
||||
});
|
||||
socket.write(bser.dumpToBuffer(obj));
|
||||
86
types/bser/test/tests.ts
Normal file
86
types/bser/test/tests.ts
Normal file
@@ -0,0 +1,86 @@
|
||||
import * as bser from "bser";
|
||||
import Int64 from "node-int64";
|
||||
import * as assert from "assert";
|
||||
|
||||
// This is a hard-coded template representation from the C test suite
|
||||
const template =
|
||||
"\x00\x01\x03\x28" +
|
||||
"\x0b\x00\x03\x02\x02\x03\x04\x6e\x61\x6d\x65\x02" +
|
||||
"\x03\x03\x61\x67\x65\x03\x03\x02\x03\x04\x66\x72" +
|
||||
"\x65\x64\x03\x14\x02\x03\x04\x70\x65\x74\x65\x03" +
|
||||
"\x1e\x0c\x03\x19";
|
||||
|
||||
const val = bser.loadFromBuffer(template);
|
||||
assert.deepStrictEqual(val, [
|
||||
{ name: "fred", age: 20 },
|
||||
{ name: "pete", age: 30 },
|
||||
{ age: 25 }
|
||||
]);
|
||||
|
||||
function roundtrip(val: any) {
|
||||
const encoded = bser.dumpToBuffer(val);
|
||||
const decoded = bser.loadFromBuffer(encoded);
|
||||
assert.deepStrictEqual(decoded, val);
|
||||
}
|
||||
|
||||
const values_to_test = [
|
||||
1,
|
||||
"hello",
|
||||
1.5,
|
||||
false,
|
||||
true,
|
||||
new Int64("0x0123456789abcdef"),
|
||||
127,
|
||||
128,
|
||||
129,
|
||||
32767,
|
||||
32768,
|
||||
32769,
|
||||
65534,
|
||||
65536,
|
||||
65537,
|
||||
2147483647,
|
||||
2147483648,
|
||||
2147483649,
|
||||
null,
|
||||
[1, 2, 3],
|
||||
{ foo: "bar" },
|
||||
{ nested: { struct: "hello", list: [true, false, 1, "string"] } }
|
||||
];
|
||||
|
||||
for (const value of values_to_test) {
|
||||
roundtrip(value);
|
||||
}
|
||||
roundtrip(values_to_test);
|
||||
|
||||
// Verify Accumulator edge cases
|
||||
const acc = new bser.Accumulator(8);
|
||||
acc.append("hello");
|
||||
assert.equal(acc.readAvail(), 5);
|
||||
assert.equal(acc.readOffset, 0);
|
||||
assert.equal(acc.readString(3), "hel");
|
||||
assert.equal(acc.readOffset, 3);
|
||||
assert.equal(acc.readAvail(), 2);
|
||||
assert.equal(acc.writeAvail(), 3);
|
||||
|
||||
// This should trigger a shunt and not make the buffer bigger
|
||||
acc.reserve(5);
|
||||
assert.equal(acc.readOffset, 0, "shunted");
|
||||
assert.equal(acc.readAvail(), 2, "still have 2 available to read");
|
||||
assert.equal(acc.writeAvail(), 6, "2 left to read out of 8 total space");
|
||||
assert.equal(acc.peekString(2), "lo", "have the correct remainder");
|
||||
|
||||
// Don't include keys that have undefined values
|
||||
const res = bser.dumpToBuffer({ expression: undefined });
|
||||
assert.deepStrictEqual(bser.loadFromBuffer(res), {});
|
||||
|
||||
// Dump numbers without fraction to integers
|
||||
let buffer;
|
||||
buffer = bser.dumpToBuffer(1);
|
||||
assert.equal(buffer.toString("hex"), "000105020000000301");
|
||||
buffer = bser.dumpToBuffer(1.0);
|
||||
assert.equal(buffer.toString("hex"), "000105020000000301");
|
||||
|
||||
// Dump numbers with fraction to double
|
||||
buffer = bser.dumpToBuffer(1.1);
|
||||
assert.equal(buffer.toString("hex"), "00010509000000079a9999999999f13f");
|
||||
@@ -1,28 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"lib": ["es6"],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"typeRoots": ["../"],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"strictFunctionTypes": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"paths": {
|
||||
"@sindresorhus/df": [
|
||||
"sindresorhus__df"
|
||||
]
|
||||
}
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"sindresorhus__df-tests.ts"
|
||||
"test/tests.ts",
|
||||
"test/sample1.ts",
|
||||
"test/sample2.ts",
|
||||
"test/sample3.ts"
|
||||
]
|
||||
}
|
||||
@@ -70,6 +70,19 @@ videoQueue.add({video: 'http://example.com/video1.mov'});
|
||||
audioQueue.add({audio: 'http://example.com/audio1.mp3'});
|
||||
imageQueue.add({image: 'http://example.com/image1.tiff'});
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Test Redis Cluster connexion
|
||||
//
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
|
||||
const clusterQueue = new Queue('queue on redis cluster', {
|
||||
prefix: 'cluster-test',
|
||||
createClient: (clusterUri: Redis.ClusterNode) => {
|
||||
return new Redis.Cluster([{port: 6379, host: '127.0.0.1'}]);
|
||||
}
|
||||
});
|
||||
|
||||
//////////////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Re-using Redis Connections
|
||||
|
||||
4
types/bull/index.d.ts
vendored
4
types/bull/index.d.ts
vendored
@@ -49,9 +49,9 @@ declare namespace Bull {
|
||||
|
||||
/**
|
||||
* When specified, the `Queue` will use this function to create new `ioredis` client connections.
|
||||
* This is useful if you want to re-use connections.
|
||||
* This is useful if you want to re-use connections or connect to a Redis cluster.
|
||||
*/
|
||||
createClient?(type: 'client' | 'subscriber' | 'bclient', redisOpts?: Redis.RedisOptions): Redis.Redis;
|
||||
createClient?(type: 'client' | 'subscriber' | 'bclient', redisOpts?: Redis.RedisOptions): Redis.Redis | Redis.Cluster;
|
||||
|
||||
/**
|
||||
* Prefix to use for all redis keys
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import * as cacheManager from 'cache-manager'
|
||||
|
||||
const memoryCache = cacheManager.caching({ store: 'memory', max: 100, ttl: 10/*seconds*/ });
|
||||
const memoryCache: cacheManager.Cache = cacheManager.caching({ store: 'memory', max: 100, ttl: 10/*seconds*/ });
|
||||
const ttl = 5;
|
||||
|
||||
memoryCache.set('foo', 'bar', { ttl: ttl }, (err) => {
|
||||
|
||||
17
types/cache-manager/index.d.ts
vendored
17
types/cache-manager/index.d.ts
vendored
@@ -3,17 +3,17 @@
|
||||
// Definitions by: Simon Gausmann <https://github.com/GausSim>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
interface CachingConfig {
|
||||
export interface CachingConfig {
|
||||
ttl: number;
|
||||
}
|
||||
|
||||
interface StoreConfig extends CachingConfig {
|
||||
export interface StoreConfig extends CachingConfig {
|
||||
store: string;
|
||||
max?: number;
|
||||
isCacheableValue?: (value: any) => boolean;
|
||||
}
|
||||
|
||||
interface Cache {
|
||||
export interface Cache {
|
||||
set<T>(key: string, value: T, options: CachingConfig, callback?: (error: any) => void): void;
|
||||
set<T>(key: string, value: T, ttl: number, callback?: (error: any) => void): void;
|
||||
set<T>(key: string, value: T, options: CachingConfig): Promise<any>;
|
||||
@@ -31,12 +31,5 @@ interface Cache {
|
||||
del(key: string): Promise<any>;
|
||||
}
|
||||
|
||||
|
||||
|
||||
declare namespace cacheManager {
|
||||
function caching(IConfig: StoreConfig): Cache;
|
||||
function multiCaching(Caches: Cache[]): Cache;
|
||||
}
|
||||
|
||||
export = cacheManager;
|
||||
|
||||
export function caching(IConfig: StoreConfig): Cache;
|
||||
export function multiCaching(Caches: Cache[]): Cache;
|
||||
|
||||
20
types/cesium/index.d.ts
vendored
20
types/cesium/index.d.ts
vendored
@@ -5,7 +5,7 @@
|
||||
// Jared Szechy <https://github.com/szechyjs>
|
||||
// Radek Goláň jr. <https://github.com/golyalpha>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
// TypeScript Version: 3.0
|
||||
|
||||
// tslint:disable-next-line:export-just-namespace
|
||||
export = Cesium;
|
||||
@@ -312,7 +312,7 @@ declare namespace Cesium {
|
||||
clockRange: ClockRange;
|
||||
canAnimate: boolean;
|
||||
shouldAnimate: boolean;
|
||||
onTick: Event;
|
||||
onTick: Event<[Clock]>;
|
||||
constructor(options: {
|
||||
startTime?: JulianDate;
|
||||
stopTime?: JulianDate;
|
||||
@@ -704,11 +704,11 @@ declare namespace Cesium {
|
||||
constructor(options?: { tilingScheme?: TilingScheme; ellipsoid?: Ellipsoid });
|
||||
}
|
||||
|
||||
class Event {
|
||||
class Event<T extends any[] = any[]> {
|
||||
numberOfListeners: number;
|
||||
addEventListener(listener: (...args: any[]) => void, scope?: any): Event.RemoveCallback;
|
||||
removeEventListener(listener: (...args: any[]) => void, scope?: any): boolean;
|
||||
raiseEvent(...args: any[]): void;
|
||||
addEventListener(listener: (...args: T) => void, scope?: any): Event.RemoveCallback;
|
||||
removeEventListener(listener: (...args: T) => void, scope?: any): boolean;
|
||||
raiseEvent(...args: T): void;
|
||||
}
|
||||
|
||||
namespace Event {
|
||||
@@ -1512,7 +1512,7 @@ declare namespace Cesium {
|
||||
retry: boolean;
|
||||
error: Error;
|
||||
constructor(provider: ImageryProvider | TerrainProvider, message: string, x?: number, y?: number, level?: number, timesRetried?: number, error?: Error);
|
||||
static handleError(previousError: TileProviderError, provider: ImageryProvider | TerrainProvider, event: Event,
|
||||
static handleError(previousError: TileProviderError, provider: ImageryProvider | TerrainProvider, event: Event<[TileProviderError]>,
|
||||
message: string, x: number, y: number, level: number, retryFunction: TileProviderError.RetryFunction,
|
||||
errorDetails?: Error): TileProviderError;
|
||||
static handleSuccess(previousError: TileProviderError): void;
|
||||
@@ -1562,7 +1562,7 @@ declare namespace Cesium {
|
||||
}
|
||||
|
||||
class TimeIntervalCollection {
|
||||
readonly changedEvent: Event;
|
||||
readonly changedEvent: Event<[TimeIntervalCollection]>;
|
||||
readonly start: JulianDate;
|
||||
readonly isStartIncluded: boolean;
|
||||
readonly stop: JulianDate;
|
||||
@@ -4388,8 +4388,8 @@ declare namespace Cesium {
|
||||
allowDataSourcesToSuspendAnimation: boolean;
|
||||
trackedEntity: Entity;
|
||||
selectedEntity: Entity;
|
||||
readonly trackedEntityChanged: Event;
|
||||
readonly selectedEntityChanged: Event;
|
||||
readonly trackedEntityChanged: Event<[Entity?]>;
|
||||
readonly selectedEntityChanged: Event<[Entity?]>;
|
||||
readonly shadowMap: ShadowMap;
|
||||
readonly vrButton: VRButton;
|
||||
shadows: boolean;
|
||||
|
||||
@@ -0,0 +1,29 @@
|
||||
import * as CircularDependencyPlugin from 'circular-dependency-plugin';
|
||||
import * as webpack from 'webpack';
|
||||
|
||||
new CircularDependencyPlugin();
|
||||
new CircularDependencyPlugin({});
|
||||
|
||||
const MAX_CYCLES = 5;
|
||||
let numCyclesDetected = 0;
|
||||
|
||||
new CircularDependencyPlugin({
|
||||
allowAsyncCycles: false,
|
||||
cwd: process.cwd(),
|
||||
exclude: /a\.js|node_modules/,
|
||||
failOnError: true,
|
||||
onDetected({ module: webpackModuleRecord, paths, compilation }) {
|
||||
numCyclesDetected++;
|
||||
compilation.warnings.push(new Error(paths.join(' -> ')));
|
||||
},
|
||||
onStart({ compilation }) {
|
||||
numCyclesDetected = 0;
|
||||
},
|
||||
onEnd({ compilation }) {
|
||||
if (numCyclesDetected > MAX_CYCLES) {
|
||||
compilation.errors.push(new Error('Too many cycles'));
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
webpack({ plugins: [new CircularDependencyPlugin()] });
|
||||
30
types/circular-dependency-plugin/index.d.ts
vendored
Normal file
30
types/circular-dependency-plugin/index.d.ts
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
// Type definitions for circular-dependency-plugin 5.0
|
||||
// Project: https://github.com/aackerman/circular-dependency-plugin
|
||||
// Definitions by: Olegs Jeremejevs <https://github.com/jeremejevs>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
import { Plugin, Module, compilation } from 'webpack';
|
||||
|
||||
export = CircularDependencyPlugin;
|
||||
|
||||
declare class CircularDependencyPlugin extends Plugin {
|
||||
constructor(options?: CircularDependencyPlugin.Options);
|
||||
// Not exposing `isCyclic` because it isn't meant to be public, I believe
|
||||
}
|
||||
|
||||
declare namespace CircularDependencyPlugin {
|
||||
interface Options {
|
||||
allowAsyncCycles?: boolean;
|
||||
cwd?: string;
|
||||
exclude?: RegExp;
|
||||
failOnError?: boolean;
|
||||
onDetected?: (x: {
|
||||
module: Module;
|
||||
paths: string[];
|
||||
compilation: compilation.Compilation;
|
||||
}) => void;
|
||||
onEnd?: (x: { compilation: compilation.Compilation }) => void;
|
||||
onStart?: (x: { compilation: compilation.Compilation }) => void;
|
||||
}
|
||||
}
|
||||
@@ -18,6 +18,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"decompress-response-tests.ts"
|
||||
"circular-dependency-plugin-tests.ts"
|
||||
]
|
||||
}
|
||||
4
types/cytoscape/index.d.ts
vendored
4
types/cytoscape/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Cytoscape.js 3.3
|
||||
// Type definitions for Cytoscape.js 3.4
|
||||
// Project: http://js.cytoscape.org/
|
||||
// Definitions by: Fabian Schmidt and Fred Eisele <https://github.com/phreed>
|
||||
// Shenghan Gao <https://github.com/wy193777>
|
||||
@@ -3229,7 +3229,7 @@ declare namespace cytoscape {
|
||||
* This finds the shortest path from the starting node to all other nodes in the collection.
|
||||
* http://js.cytoscape.org/#eles.bellmanFord
|
||||
*/
|
||||
bellmanFort(options: SearchBellmanFordOptions): SearchBellmanFordResult;
|
||||
bellmanFord(options: SearchBellmanFordOptions): SearchBellmanFordResult;
|
||||
/**
|
||||
* Perform Kruskal's algorithm on the elements in the collection,
|
||||
* returning the minimum spanning tree, assuming undirected edges.
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
import decompressResponse = require("decompress-response");
|
||||
import http = require("http");
|
||||
|
||||
http.get("localhost", response => {
|
||||
response = decompressResponse(response);
|
||||
});
|
||||
11
types/decompress-response/index.d.ts
vendored
11
types/decompress-response/index.d.ts
vendored
@@ -1,11 +0,0 @@
|
||||
// Type definitions for decompress-response 3.3
|
||||
// Project: https://github.com/sindresorhus/decompress-response#readme
|
||||
// Definitions by: Daniel Rosenwasser <https://github.com/DanielRosenwasser>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import http = require("http");
|
||||
|
||||
export = decompress_response;
|
||||
declare function decompress_response(response: http.IncomingMessage): http.IncomingMessage;
|
||||
@@ -1,3 +0,0 @@
|
||||
import domLoaded = require("dom-loaded");
|
||||
|
||||
domLoaded.then(() => console.log("DOM is loaded"));
|
||||
7
types/dom-loaded/index.d.ts
vendored
7
types/dom-loaded/index.d.ts
vendored
@@ -1,7 +0,0 @@
|
||||
// Type definitions for dom-loaded 1.0
|
||||
// Project: https://github.com/sindresorhus/dom-loaded#readme
|
||||
// Definitions by: Lukas Tetzlaf <https://github.com/ltetzlaff>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare const domLoaded: Promise<void>;
|
||||
export = domLoaded;
|
||||
@@ -235,6 +235,15 @@ client.mget({
|
||||
// ...
|
||||
});
|
||||
|
||||
client.mget({
|
||||
routing: "myroute",
|
||||
body: {
|
||||
ids: [1, 2, 3]
|
||||
}
|
||||
}, (error, response) => {
|
||||
// ...
|
||||
});
|
||||
|
||||
client.search({
|
||||
index: 'myindex',
|
||||
q: 'title:test'
|
||||
|
||||
1
types/elasticsearch/index.d.ts
vendored
1
types/elasticsearch/index.d.ts
vendored
@@ -452,6 +452,7 @@ export interface MGetParams extends GenericParams {
|
||||
preference?: string;
|
||||
realtime?: boolean;
|
||||
refresh?: boolean;
|
||||
routing?: string;
|
||||
_source?: NameList;
|
||||
_sourceExclude?: NameList;
|
||||
_sourceInclude?: NameList;
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
import elementReady = require('element-ready');
|
||||
|
||||
const p = elementReady('#unicorn');
|
||||
|
||||
p.then(element => {
|
||||
const el: HTMLElement = element;
|
||||
});
|
||||
|
||||
p.cancel();
|
||||
10
types/element-ready/index.d.ts
vendored
10
types/element-ready/index.d.ts
vendored
@@ -1,10 +0,0 @@
|
||||
// Type definitions for element-ready 2.1
|
||||
// Project: https://github.com/sindresorhus/element-ready#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import pCancelable = require('p-cancelable');
|
||||
|
||||
export = elementReady;
|
||||
|
||||
declare function elementReady(selector: string): pCancelable.PCancelable<HTMLElement>;
|
||||
7
types/elo-rank/elo-rank-tests.ts
Normal file
7
types/elo-rank/elo-rank-tests.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import EloRank from "elo-rank";
|
||||
|
||||
const test = new EloRank();
|
||||
|
||||
test.getKFactor(); // $ExpectType number
|
||||
test.getExpected(1200, 1500); // $ExpectType number
|
||||
test.updateRating(test.getExpected(1200, 1500), 1300, 1500); // $ExpectType number
|
||||
15
types/elo-rank/index.d.ts
vendored
Normal file
15
types/elo-rank/index.d.ts
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
// Type definitions for elo-rank 1.0
|
||||
// Project: https://github.com/dmamills/elo-rank#readme
|
||||
// Definitions by: Antonio Pavlinovic <https://github.com/apavlinovic>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.7
|
||||
|
||||
declare class EloRank {
|
||||
constructor(kFactor?: number);
|
||||
setKFactor(kFactor: number): void;
|
||||
getKFactor(): number;
|
||||
getExpected(a: number, b: number): number;
|
||||
updateRating(expected: number, actual: number, current: number): number;
|
||||
}
|
||||
|
||||
export = EloRank;
|
||||
@@ -14,10 +14,11 @@
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"has-yarn-tests.ts"
|
||||
"elo-rank-tests.ts"
|
||||
]
|
||||
}
|
||||
2
types/ember/index.d.ts
vendored
2
types/ember/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for Ember.js 3.0
|
||||
// Type definitions for Ember.js 3.1
|
||||
// Project: http://emberjs.com/, https://github.com/emberjs/ember
|
||||
// Definitions by: Jed Mao <https://github.com/jedmao>
|
||||
// bttf <https://github.com/bttf>
|
||||
|
||||
@@ -14,8 +14,14 @@ class SessionService extends Ember.Service {
|
||||
currentUser: User;
|
||||
}
|
||||
|
||||
declare module '@ember/service' {
|
||||
interface Registry {
|
||||
session: SessionService;
|
||||
}
|
||||
}
|
||||
|
||||
const CurrentUserEmailHelper = Ember.Helper.extend({
|
||||
session: Ember.inject.service() as Ember.ComputedProperty<SessionService>,
|
||||
session: Ember.inject.service('session'),
|
||||
onNewUser: Ember.observer('session.currentUser', function(this: Ember.Helper) {
|
||||
this.recompute();
|
||||
}),
|
||||
|
||||
@@ -1,11 +0,0 @@
|
||||
import Controller from '@ember/controller';
|
||||
|
||||
Controller.extend ({
|
||||
queryParams: ['category'],
|
||||
category: null,
|
||||
isExpanded: false,
|
||||
|
||||
toggleBody() {
|
||||
this.toggleProperty('isExpanded');
|
||||
}
|
||||
});
|
||||
4
types/ember__controller/index.d.ts
vendored
4
types/ember__controller/index.d.ts
vendored
@@ -31,9 +31,11 @@ export interface ControllerMixin extends ActionHandler {
|
||||
export const ControllerMixin: Mixin<ControllerMixin>;
|
||||
// tslint:disable-next-line:no-empty-interface
|
||||
export default class Controller extends EmberObject.extend(ControllerMixin) {}
|
||||
export function inject(): ComputedProperty<Controller> & PropertyDecorator;
|
||||
export function inject<K extends keyof Registry>(
|
||||
name: K
|
||||
): ComputedProperty<Registry[K]>;
|
||||
): ComputedProperty<Registry[K]> & PropertyDecorator;
|
||||
export function inject(target: object, propertyKey: string | symbol): void;
|
||||
|
||||
// A type registry for Ember `Controller`s. Meant to be declaration-merged
|
||||
// so string lookups resolve to the correct type.
|
||||
|
||||
14
types/ember__controller/test/main.ts
Normal file
14
types/ember__controller/test/main.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import Controller, { inject } from "@ember/controller";
|
||||
|
||||
Controller.extend({
|
||||
queryParams: ["category"],
|
||||
category: null,
|
||||
isExpanded: false,
|
||||
|
||||
first: inject(),
|
||||
second: inject('second'),
|
||||
|
||||
toggleBody() {
|
||||
this.toggleProperty("isExpanded");
|
||||
}
|
||||
});
|
||||
26
types/ember__controller/test/octane.ts
Normal file
26
types/ember__controller/test/octane.ts
Normal file
@@ -0,0 +1,26 @@
|
||||
import Controller, { inject } from "@ember/controller";
|
||||
|
||||
class FirstController extends Controller {
|
||||
foo = "bar";
|
||||
@inject second: InstanceType<typeof SecondController>;
|
||||
@inject() otherSecond: InstanceType<typeof SecondController>;
|
||||
@inject("second") moreSecond: InstanceType<typeof SecondController>;
|
||||
|
||||
first() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
const SecondController = Controller.extend({
|
||||
foo: "bar",
|
||||
|
||||
second() {
|
||||
return "";
|
||||
}
|
||||
});
|
||||
|
||||
declare module "@ember/controller" {
|
||||
interface Registry {
|
||||
first: FirstController;
|
||||
second: InstanceType<typeof SecondController>;
|
||||
}
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"experimentalDecorators": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
@@ -25,6 +26,7 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"ember__controller-tests.ts"
|
||||
"test/main.ts",
|
||||
"test/octane.ts"
|
||||
]
|
||||
}
|
||||
|
||||
308
types/ember__object/computed.d.ts
vendored
308
types/ember__object/computed.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
import { computed } from '@ember/object';
|
||||
import { computed } from "@ember/object";
|
||||
|
||||
/**
|
||||
* A computed property transforms an objects function into a property.
|
||||
@@ -36,13 +36,70 @@ export default class ComputedProperty<Get, Set = Get> {
|
||||
meta(): {};
|
||||
}
|
||||
|
||||
export const alias: typeof computed.alias;
|
||||
export const and: typeof computed.and;
|
||||
export const bool: typeof computed.bool;
|
||||
export const collect: typeof computed.collect;
|
||||
export const deprecatingAlias: typeof computed.deprecatingAlias;
|
||||
export const empty: typeof computed.empty;
|
||||
export const equal: typeof computed.equal;
|
||||
/**
|
||||
* Creates a new property that is an alias for another property
|
||||
* on an object. Calls to `get` or `set` this property behave as
|
||||
* though they were called on the original property.
|
||||
*/
|
||||
export function alias(
|
||||
dependentKey: string
|
||||
): ComputedProperty<any> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property that performs a logical `and` on the
|
||||
* original values for the provided dependent properties.
|
||||
*/
|
||||
export function and(
|
||||
...dependentKeys: string[]
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property that converts the provided dependent property
|
||||
* into a boolean value.
|
||||
*/
|
||||
export function bool(
|
||||
dependentKey: string
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property that returns the array of values
|
||||
* for the provided dependent properties.
|
||||
*/
|
||||
export function collect(
|
||||
...dependentKeys: string[]
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* Creates a new property that is an alias for another property
|
||||
* on an object. Calls to `get` or `set` this property behave as
|
||||
* though they were called on the original property, but also
|
||||
* print a deprecation warning.
|
||||
*/
|
||||
export function deprecatingAlias(
|
||||
dependentKey: string,
|
||||
options: { id: string; until: string }
|
||||
): ComputedProperty<any> & PropertyDecorator;
|
||||
/**
|
||||
* @deprecated Missing deprecation options: https://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options
|
||||
*/
|
||||
export function deprecatingAlias(
|
||||
dependentKey: string,
|
||||
options?: { id?: string; until?: string }
|
||||
): ComputedProperty<any> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property that returns true if the value of the dependent
|
||||
* property is null, an empty string, empty array, or empty function.
|
||||
*/
|
||||
export function empty(
|
||||
dependentKey: string
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is equal to the given value.
|
||||
*/
|
||||
export function equal(
|
||||
dependentKey: string,
|
||||
value: any
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* Expands `pattern`, invoking `callback` for each expansion.
|
||||
*/
|
||||
@@ -50,28 +107,213 @@ export function expandProperties(
|
||||
pattern: string,
|
||||
callback: (expanded: string) => void
|
||||
): void;
|
||||
export const filter: typeof computed.filter;
|
||||
export const filterBy: typeof computed.filterBy;
|
||||
export const gt: typeof computed.gt;
|
||||
export const gte: typeof computed.gte;
|
||||
export const intersect: typeof computed.intersect;
|
||||
export const lt: typeof computed.lt;
|
||||
export const lte: typeof computed.lte;
|
||||
export const map: typeof computed.map;
|
||||
export const mapBy: typeof computed.mapBy;
|
||||
export const match: typeof computed.match;
|
||||
export const max: typeof computed.max;
|
||||
export const min: typeof computed.min;
|
||||
export const none: typeof computed.none;
|
||||
export const not: typeof computed.not;
|
||||
export const notEmpty: typeof computed.notEmpty;
|
||||
export const oneWay: typeof computed.oneWay;
|
||||
export const or: typeof computed.or;
|
||||
export const readOnly: typeof computed.readOnly;
|
||||
export const reads: typeof computed.reads;
|
||||
export const setDiff: typeof computed.setDiff;
|
||||
export const sort: typeof computed.sort;
|
||||
export const sum: typeof computed.sum;
|
||||
export const union: typeof computed.union;
|
||||
export const uniq: typeof computed.uniq;
|
||||
export const uniqBy: typeof computed.uniqBy;
|
||||
|
||||
/**
|
||||
* Filters the array by the callback.
|
||||
*/
|
||||
export function filter(
|
||||
dependentKey: string,
|
||||
callback: (value: any, index: number, array: any[]) => boolean
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* Filters the array by the property and value
|
||||
*/
|
||||
export function filterBy(
|
||||
dependentKey: string,
|
||||
propertyKey: string,
|
||||
value?: any
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is greater than the provided value.
|
||||
*/
|
||||
export function gt(
|
||||
dependentKey: string,
|
||||
value: number
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is greater than or equal to the provided value.
|
||||
*/
|
||||
export function gte(
|
||||
dependentKey: string,
|
||||
value: number
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property which returns a new array with all the elements
|
||||
* two or more dependent arrays have in common.
|
||||
*/
|
||||
export function intersect(
|
||||
...propertyKeys: string[]
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is less than the provided value.
|
||||
*/
|
||||
export function lt(
|
||||
dependentKey: string,
|
||||
value: number
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is less than or equal to the provided value.
|
||||
*/
|
||||
export function lte(
|
||||
dependentKey: string,
|
||||
value: number
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* Returns an array mapped via the callback
|
||||
*/
|
||||
export function map<U>(
|
||||
dependentKey: string,
|
||||
callback: (value: any, index: number, array: any[]) => U
|
||||
): ComputedProperty<U[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* Returns an array mapped to the specified key.
|
||||
*/
|
||||
export function mapBy(
|
||||
dependentKey: string,
|
||||
propertyKey: string
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property which matches the original value for the
|
||||
* dependent property against a given RegExp, returning `true`
|
||||
* if the value matches the RegExp and `false` if it does not.
|
||||
*/
|
||||
export function match(
|
||||
dependentKey: string,
|
||||
regexp: RegExp
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property that calculates the maximum value in the
|
||||
* dependent array. This will return `-Infinity` when the dependent
|
||||
* array is empty.
|
||||
*/
|
||||
export function max(
|
||||
dependentKey: string
|
||||
): ComputedProperty<number> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property that calculates the minimum value in the
|
||||
* dependent array. This will return `Infinity` when the dependent
|
||||
* array is empty.
|
||||
*/
|
||||
export function min(
|
||||
dependentKey: string
|
||||
): ComputedProperty<number> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property that returns true if the value of the dependent
|
||||
* property is null or undefined. This avoids errors from JSLint complaining
|
||||
* about use of ==, which can be technically confusing.
|
||||
*/
|
||||
export function none(
|
||||
dependentKey: string
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property that returns the inverse boolean value
|
||||
* of the original value for the dependent property.
|
||||
*/
|
||||
export function not(
|
||||
dependentKey: string
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property that returns true if the value of the dependent
|
||||
* property is NOT null, an empty string, empty array, or empty function.
|
||||
*/
|
||||
export function notEmpty(
|
||||
dependentKey: string
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* Where `computed.alias` aliases `get` and `set`, and allows for bidirectional
|
||||
* data flow, `computed.oneWay` only provides an aliased `get`. The `set` will
|
||||
* not mutate the upstream property, rather causes the current property to
|
||||
* become the value set. This causes the downstream property to permanently
|
||||
* diverge from the upstream property.
|
||||
*/
|
||||
export function oneWay(
|
||||
dependentKey: string
|
||||
): ComputedProperty<any> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property which performs a logical `or` on the
|
||||
* original values for the provided dependent properties.
|
||||
*/
|
||||
export function or(
|
||||
...dependentKeys: string[]
|
||||
): ComputedProperty<boolean> & PropertyDecorator;
|
||||
/**
|
||||
* Where `computed.oneWay` provides oneWay bindings, `computed.readOnly` provides
|
||||
* a readOnly one way binding. Very often when using `computed.oneWay` one does
|
||||
* not also want changes to propagate back up, as they will replace the value.
|
||||
*/
|
||||
export function readOnly(
|
||||
dependentKey: string
|
||||
): ComputedProperty<any> & PropertyDecorator;
|
||||
/**
|
||||
* This is a more semantically meaningful alias of `computed.oneWay`,
|
||||
* whose name is somewhat ambiguous as to which direction the data flows.
|
||||
*/
|
||||
export function reads(
|
||||
dependentKey: string
|
||||
): ComputedProperty<any> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property which returns a new array with all the
|
||||
* properties from the first dependent array that are not in the second
|
||||
* dependent array.
|
||||
*/
|
||||
export function setDiff(
|
||||
setAProperty: string,
|
||||
setBProperty: string
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property which returns a new array with all the
|
||||
* properties from the first dependent array sorted based on a property
|
||||
* or sort function.
|
||||
*/
|
||||
export function sort(
|
||||
itemsKey: string,
|
||||
sortDefinition: string | ((itemA: any, itemB: any) => number)
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
/**
|
||||
* A computed property that returns the sum of the values
|
||||
* in the dependent array.
|
||||
*/
|
||||
export function sum(
|
||||
dependentKey: string
|
||||
): ComputedProperty<number> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property which returns a new array with all the unique
|
||||
* elements from one or more dependent arrays.
|
||||
*/
|
||||
export function uniq(
|
||||
propertyKey: string
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property which returns a new array with all the unique
|
||||
* elements from one or more dependent arrays.
|
||||
*/
|
||||
export function union(
|
||||
...propertyKeys: string[]
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
/**
|
||||
* A computed property which returns a new array with all the unique
|
||||
* elements from an array, with uniqueness determined by specific key.
|
||||
*/
|
||||
export function uniqBy(
|
||||
dependentKey: string,
|
||||
propertyKey: string
|
||||
): ComputedProperty<any[]> & PropertyDecorator;
|
||||
|
||||
349
types/ember__object/index.d.ts
vendored
349
types/ember__object/index.d.ts
vendored
@@ -1,19 +1,20 @@
|
||||
// Type definitions for non-npm package @ember/object 3.0
|
||||
// Type definitions for non-npm package @ember/object 3.1
|
||||
// Project: https://emberjs.com/api/ember/3.4/modules/@ember%2Fobject
|
||||
// Definitions by: Mike North <https://github.com/mike-north>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import CoreObject from '@ember/object/core';
|
||||
import Observable from '@ember/object/observable';
|
||||
import CoreObject from "@ember/object/core";
|
||||
import Observable from "@ember/object/observable";
|
||||
import {
|
||||
ComputedPropertyCallback,
|
||||
UnwrapComputedPropertyGetter,
|
||||
UnwrapComputedPropertySetter,
|
||||
UnwrapComputedPropertyGetters,
|
||||
UnwrapComputedPropertySetters
|
||||
} from '@ember/object/-private/types';
|
||||
import ComputedProperty from '@ember/object/computed';
|
||||
UnwrapComputedPropertySetters,
|
||||
ExtractPropertyNamesOfType
|
||||
} from "@ember/object/-private/types";
|
||||
import ComputedProperty, * as ComputedNamespace from "@ember/object/computed";
|
||||
|
||||
/**
|
||||
* `Ember.Object` is the main base class for all Ember objects. It is a subclass
|
||||
@@ -21,252 +22,96 @@ import ComputedProperty from '@ember/object/computed';
|
||||
* see the documentation for each of these.
|
||||
*/
|
||||
export default class EmberObject extends CoreObject.extend(Observable) {}
|
||||
declare function computed(...deps: string[]): (target: object, propertyKey: string) => void;
|
||||
declare function computed<T>(
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
declare function computed<T>(
|
||||
k1: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
declare function computed<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
declare function computed<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
declare function computed<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
k4: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
declare function computed<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
k4: string,
|
||||
k5: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
declare function computed<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
k4: string,
|
||||
k5: string,
|
||||
k6: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
declare function computed(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
k4: string,
|
||||
k5: string,
|
||||
k6: string,
|
||||
k7: string,
|
||||
...rest: any[]
|
||||
): ComputedProperty<any>;
|
||||
|
||||
export const computed: {
|
||||
<T>(cb: ComputedPropertyCallback<T>): ComputedProperty<T>;
|
||||
<T>(k1: string, cb: ComputedPropertyCallback<T>): ComputedProperty<T>;
|
||||
<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
k4: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
k4: string,
|
||||
k5: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
<T>(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
k4: string,
|
||||
k5: string,
|
||||
k6: string,
|
||||
cb: ComputedPropertyCallback<T>
|
||||
): ComputedProperty<T>;
|
||||
(
|
||||
k1: string,
|
||||
k2: string,
|
||||
k3: string,
|
||||
k4: string,
|
||||
k5: string,
|
||||
k6: string,
|
||||
k7: string,
|
||||
...rest: any[]
|
||||
): ComputedProperty<any>;
|
||||
declare namespace computed {
|
||||
const empty: typeof ComputedNamespace.empty;
|
||||
const notEmpty: typeof ComputedNamespace.notEmpty;
|
||||
const none: typeof ComputedNamespace.none;
|
||||
const not: typeof ComputedNamespace.not;
|
||||
const bool: typeof ComputedNamespace.bool;
|
||||
const match: typeof ComputedNamespace.match;
|
||||
const equal: typeof ComputedNamespace.equal;
|
||||
const gt: typeof ComputedNamespace.gt;
|
||||
const gte: typeof ComputedNamespace.gte;
|
||||
const lt: typeof ComputedNamespace.lt;
|
||||
const lte: typeof ComputedNamespace.lte;
|
||||
const and: typeof ComputedNamespace.and;
|
||||
const or: typeof ComputedNamespace.or;
|
||||
const alias: typeof ComputedNamespace.alias;
|
||||
const oneWay: typeof ComputedNamespace.oneWay;
|
||||
const reads: typeof ComputedNamespace.reads;
|
||||
const readOnly: typeof ComputedNamespace.readOnly;
|
||||
const deprecatingAlias: typeof ComputedNamespace.deprecatingAlias;
|
||||
const sum: typeof ComputedNamespace.sum;
|
||||
const max: typeof ComputedNamespace.max;
|
||||
const min: typeof ComputedNamespace.min;
|
||||
const map: typeof ComputedNamespace.map;
|
||||
const mapBy: typeof ComputedNamespace.mapBy;
|
||||
const filter: typeof ComputedNamespace.filter;
|
||||
const filterBy: typeof ComputedNamespace.filterBy;
|
||||
const uniq: typeof ComputedNamespace.uniq;
|
||||
const uniqBy: typeof ComputedNamespace.uniqBy;
|
||||
const union: typeof ComputedNamespace.union;
|
||||
const intersect: typeof ComputedNamespace.intersect;
|
||||
const setDiff: typeof ComputedNamespace.setDiff;
|
||||
const collect: typeof ComputedNamespace.collect;
|
||||
const sort: typeof ComputedNamespace.sort;
|
||||
}
|
||||
|
||||
/**
|
||||
* A computed property that returns true if the value of the dependent
|
||||
* property is null, an empty string, empty array, or empty function.
|
||||
*/
|
||||
empty(dependentKey: string): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that returns true if the value of the dependent
|
||||
* property is NOT null, an empty string, empty array, or empty function.
|
||||
*/
|
||||
notEmpty(dependentKey: string): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that returns true if the value of the dependent
|
||||
* property is null or undefined. This avoids errors from JSLint complaining
|
||||
* about use of ==, which can be technically confusing.
|
||||
*/
|
||||
none(dependentKey: string): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that returns the inverse boolean value
|
||||
* of the original value for the dependent property.
|
||||
*/
|
||||
not(dependentKey: string): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that converts the provided dependent property
|
||||
* into a boolean value.
|
||||
*/
|
||||
bool(dependentKey: string): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property which matches the original value for the
|
||||
* dependent property against a given RegExp, returning `true`
|
||||
* if the value matches the RegExp and `false` if it does not.
|
||||
*/
|
||||
match(dependentKey: string, regexp: RegExp): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is equal to the given value.
|
||||
*/
|
||||
equal(dependentKey: string, value: any): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is greater than the provided value.
|
||||
*/
|
||||
gt(dependentKey: string, value: number): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is greater than or equal to the provided value.
|
||||
*/
|
||||
gte(dependentKey: string, value: number): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is less than the provided value.
|
||||
*/
|
||||
lt(dependentKey: string, value: number): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that returns true if the provided dependent property
|
||||
* is less than or equal to the provided value.
|
||||
*/
|
||||
lte(dependentKey: string, value: number): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property that performs a logical `and` on the
|
||||
* original values for the provided dependent properties.
|
||||
*/
|
||||
and(...dependentKeys: string[]): ComputedProperty<boolean>;
|
||||
/**
|
||||
* A computed property which performs a logical `or` on the
|
||||
* original values for the provided dependent properties.
|
||||
*/
|
||||
or(...dependentKeys: string[]): ComputedProperty<boolean>;
|
||||
/**
|
||||
* Creates a new property that is an alias for another property
|
||||
* on an object. Calls to `get` or `set` this property behave as
|
||||
* though they were called on the original property.
|
||||
*/
|
||||
alias(dependentKey: string): ComputedProperty<any>;
|
||||
/**
|
||||
* Where `computed.alias` aliases `get` and `set`, and allows for bidirectional
|
||||
* data flow, `computed.oneWay` only provides an aliased `get`. The `set` will
|
||||
* not mutate the upstream property, rather causes the current property to
|
||||
* become the value set. This causes the downstream property to permanently
|
||||
* diverge from the upstream property.
|
||||
*/
|
||||
oneWay(dependentKey: string): ComputedProperty<any>;
|
||||
/**
|
||||
* This is a more semantically meaningful alias of `computed.oneWay`,
|
||||
* whose name is somewhat ambiguous as to which direction the data flows.
|
||||
*/
|
||||
reads(dependentKey: string): ComputedProperty<any>;
|
||||
/**
|
||||
* Where `computed.oneWay` provides oneWay bindings, `computed.readOnly` provides
|
||||
* a readOnly one way binding. Very often when using `computed.oneWay` one does
|
||||
* not also want changes to propagate back up, as they will replace the value.
|
||||
*/
|
||||
readOnly(dependentKey: string): ComputedProperty<any>;
|
||||
/**
|
||||
* Creates a new property that is an alias for another property
|
||||
* on an object. Calls to `get` or `set` this property behave as
|
||||
* though they were called on the original property, but also
|
||||
* print a deprecation warning.
|
||||
*/
|
||||
deprecatingAlias(
|
||||
dependentKey: string,
|
||||
options: { id: string; until: string }
|
||||
): ComputedProperty<any>;
|
||||
/**
|
||||
* @deprecated Missing deprecation options: https://emberjs.com/deprecations/v2.x/#toc_ember-debug-function-options
|
||||
*/
|
||||
deprecatingAlias(
|
||||
dependentKey: string,
|
||||
options?: { id?: string; until?: string }
|
||||
): ComputedProperty<any>;
|
||||
/**
|
||||
* A computed property that returns the sum of the values
|
||||
* in the dependent array.
|
||||
*/
|
||||
sum(dependentKey: string): ComputedProperty<number>;
|
||||
/**
|
||||
* A computed property that calculates the maximum value in the
|
||||
* dependent array. This will return `-Infinity` when the dependent
|
||||
* array is empty.
|
||||
*/
|
||||
max(dependentKey: string): ComputedProperty<number>;
|
||||
/**
|
||||
* A computed property that calculates the minimum value in the
|
||||
* dependent array. This will return `Infinity` when the dependent
|
||||
* array is empty.
|
||||
*/
|
||||
min(dependentKey: string): ComputedProperty<number>;
|
||||
/**
|
||||
* Returns an array mapped via the callback
|
||||
*/
|
||||
map<U>(
|
||||
dependentKey: string,
|
||||
callback: (value: any, index: number, array: any[]) => U
|
||||
): ComputedProperty<U[]>;
|
||||
/**
|
||||
* Returns an array mapped to the specified key.
|
||||
*/
|
||||
mapBy(dependentKey: string, propertyKey: string): ComputedProperty<any[]>;
|
||||
/**
|
||||
* Filters the array by the callback.
|
||||
*/
|
||||
filter(
|
||||
dependentKey: string,
|
||||
callback: (value: any, index: number, array: any[]) => boolean
|
||||
): ComputedProperty<any[]>;
|
||||
/**
|
||||
* Filters the array by the property and value
|
||||
*/
|
||||
filterBy(
|
||||
dependentKey: string,
|
||||
propertyKey: string,
|
||||
value?: any
|
||||
): ComputedProperty<any[]>;
|
||||
/**
|
||||
* A computed property which returns a new array with all the unique
|
||||
* elements from one or more dependent arrays.
|
||||
*/
|
||||
uniq(propertyKey: string): ComputedProperty<any[]>;
|
||||
/**
|
||||
* A computed property which returns a new array with all the unique
|
||||
* elements from an array, with uniqueness determined by specific key.
|
||||
*/
|
||||
uniqBy(dependentKey: string, propertyKey: string): ComputedProperty<any[]>;
|
||||
/**
|
||||
* A computed property which returns a new array with all the unique
|
||||
* elements from one or more dependent arrays.
|
||||
*/
|
||||
union(...propertyKeys: string[]): ComputedProperty<any[]>;
|
||||
/**
|
||||
* A computed property which returns a new array with all the elements
|
||||
* two or more dependent arrays have in common.
|
||||
*/
|
||||
intersect(...propertyKeys: string[]): ComputedProperty<any[]>;
|
||||
/**
|
||||
* A computed property which returns a new array with all the
|
||||
* properties from the first dependent array that are not in the second
|
||||
* dependent array.
|
||||
*/
|
||||
setDiff(
|
||||
setAProperty: string,
|
||||
setBProperty: string
|
||||
): ComputedProperty<any[]>;
|
||||
/**
|
||||
* A computed property that returns the array of values
|
||||
* for the provided dependent properties.
|
||||
*/
|
||||
collect(...dependentKeys: string[]): ComputedProperty<any[]>;
|
||||
/**
|
||||
* A computed property which returns a new array with all the
|
||||
* properties from the first dependent array sorted based on a property
|
||||
* or sort function.
|
||||
*/
|
||||
sort(
|
||||
itemsKey: string,
|
||||
sortDefinition: string | ((itemA: any, itemB: any) => number)
|
||||
): ComputedProperty<any[]>;
|
||||
};
|
||||
export { computed };
|
||||
/**
|
||||
* Specify a method that observes property changes.
|
||||
*/
|
||||
@@ -387,7 +232,9 @@ export function defineProperty(
|
||||
|
||||
export function notifyPropertyChange(obj: object, keyName: string): void;
|
||||
|
||||
declare module '@ember/utils/-private/types' {
|
||||
export const action: MethodDecorator;
|
||||
|
||||
declare module "@ember/utils/-private/types" {
|
||||
interface TypeLookup {
|
||||
class: typeof EmberObject;
|
||||
instance: EmberObject;
|
||||
|
||||
217
types/ember__object/test/octane.ts
Normal file
217
types/ember__object/test/octane.ts
Normal file
@@ -0,0 +1,217 @@
|
||||
import { action, computed, default as EmberObject } from "@ember/object";
|
||||
import {
|
||||
alias,
|
||||
and,
|
||||
bool,
|
||||
collect,
|
||||
deprecatingAlias,
|
||||
empty,
|
||||
equal,
|
||||
filter,
|
||||
filterBy,
|
||||
gt,
|
||||
gte,
|
||||
intersect,
|
||||
lt,
|
||||
lte,
|
||||
map,
|
||||
mapBy,
|
||||
match,
|
||||
max,
|
||||
min,
|
||||
none,
|
||||
not,
|
||||
notEmpty,
|
||||
oneWay,
|
||||
or,
|
||||
readOnly,
|
||||
reads,
|
||||
setDiff,
|
||||
sort,
|
||||
sum,
|
||||
union,
|
||||
uniq,
|
||||
uniqBy
|
||||
} from "@ember/object/computed";
|
||||
|
||||
// Native class syntax
|
||||
class Foo extends EmberObject {
|
||||
firstName: string;
|
||||
lastName: string;
|
||||
|
||||
@action // $ExpectError
|
||||
bar: string;
|
||||
|
||||
@computed("firstName", "lastName")
|
||||
get fullName() {
|
||||
return `${this.firstName} ${this.lastName}`;
|
||||
}
|
||||
|
||||
@action
|
||||
foo() {}
|
||||
}
|
||||
|
||||
// Computed property macros
|
||||
|
||||
class Bar extends EmberObject {
|
||||
firstName: string;
|
||||
last: string;
|
||||
|
||||
values: number[];
|
||||
|
||||
@alias aliasTest0: string; // $ExpectError
|
||||
@alias() aliasTest1: string; // $ExpectError
|
||||
@alias("firstName") aliasTest2: string;
|
||||
|
||||
@and andTest0: boolean; // $ExpectError
|
||||
@and() andTest1: boolean;
|
||||
@and("firstName") andTest2: boolean;
|
||||
@and("firstName", "lastName") andTest3: boolean;
|
||||
|
||||
@bool boolTest0: boolean; // $ExpectError
|
||||
@bool() boolTest1: boolean; // $ExpectError
|
||||
@bool("firstName") boolTest2: boolean;
|
||||
|
||||
@collect collectTest0: any; // $ExpectError
|
||||
@collect() collectTest1: any;
|
||||
@collect("firstName") collectTest2: any;
|
||||
|
||||
@deprecatingAlias deprecatingAliasTest0: string; // $ExpectError
|
||||
@deprecatingAlias() deprecatingAliasTest1: string; // $ExpectError
|
||||
@deprecatingAlias("firstName") deprecatingAliasTest2: string;
|
||||
|
||||
@empty emptyTest0: boolean; // $ExpectError
|
||||
@empty() emptyTest1: boolean; // $ExpectError
|
||||
@empty("firstName") emptyTest2: boolean;
|
||||
|
||||
@equal equalTest0: boolean; // $ExpectError
|
||||
@equal() equalTest1: boolean; // $ExpectError
|
||||
@equal("firstName") equalTest2: boolean; // $ExpectError
|
||||
@equal("firstName", "lastName") equalTest3: boolean;
|
||||
|
||||
@filter filterTest1: string[]; // $ExpectError
|
||||
@filter() filterTest2: string[]; // $ExpectError
|
||||
@filter("firstName") filterTest3: string[]; // $ExpectError
|
||||
@filter("firstName", x => x) filterTest4: string[];
|
||||
|
||||
@filterBy filterByTest1: any[]; // $ExpectError
|
||||
@filterBy() filterByTest2: any[]; // $ExpectError
|
||||
@filterBy("firstName") filterByTest3: any[]; // $ExpectError
|
||||
@filterBy("firstName", "id") filterByTest4: any[];
|
||||
|
||||
@gt gtTest1: boolean; // $ExpectError
|
||||
@gt() gtTest2: boolean; // $ExpectError
|
||||
@gt("firstName") gtTest3: boolean; // $ExpectError
|
||||
@gt("firstName", 3) gtTest4: boolean;
|
||||
|
||||
@gte gteTest1: boolean; // $ExpectError
|
||||
@gte() gteTest2: boolean; // $ExpectError
|
||||
@gte("firstName") gteTest3: boolean; // $ExpectError
|
||||
@gte("firstName", 3) gteTest4: boolean;
|
||||
|
||||
@intersect intersectTest1: any; // $ExpectError
|
||||
@intersect() intersectTest2: any;
|
||||
@intersect("firstName") intersectTest3: any;
|
||||
@intersect("firstName", "lastName") intersectTest4: any;
|
||||
|
||||
@lt ltTest1: boolean; // $ExpectError
|
||||
@lt() ltTest2: boolean; // $ExpectError
|
||||
@lt("firstName") ltTest3: boolean; // $ExpectError
|
||||
@lt("firstName", 3) ltTest4: boolean;
|
||||
|
||||
@lte lteTest1: boolean; // $ExpectError
|
||||
@lte() lteTest2: boolean; // $ExpectError
|
||||
@lte("firstName") lteTest3: boolean; // $ExpectError
|
||||
@lte("firstName", 3) lteTest4: boolean;
|
||||
|
||||
@map mapTest1: string[]; // $ExpectError
|
||||
@map() mapTest2: string[]; // $ExpectError
|
||||
@map("firstName") mapTest3: string[]; // $ExpectError
|
||||
@map("firstName", x => x) mapTest4: string[];
|
||||
|
||||
@mapBy mapByTest1: any[]; // $ExpectError
|
||||
@mapBy() mapByTest2: any[]; // $ExpectError
|
||||
@mapBy("firstName") mapByTest3: any[]; // $ExpectError
|
||||
@mapBy("firstName", "id") mapByTest4: any[];
|
||||
|
||||
@match matchTest1: boolean; // $ExpectError
|
||||
@match() matchTest2: boolean; // $ExpectError
|
||||
@match("firstName") matchTest3: boolean; // $ExpectError
|
||||
@match("firstName", "abc") matchTest4: boolean; // $ExpectError
|
||||
@match("firstName", /\s+/) matchTest5: boolean;
|
||||
|
||||
@max maxTest1: number; // $ExpectError
|
||||
@max() maxTest2: number; // $ExpectError
|
||||
@max("values") maxTest3: number;
|
||||
@max("values", "a") maxTest4: number; // $ExpectError
|
||||
|
||||
@min minTest1: number; // $ExpectError
|
||||
@min() minTest2: number; // $ExpectError
|
||||
@min("values") minTest3: number;
|
||||
@min("values", "a") minTest4: number; // $ExpectError
|
||||
|
||||
@none noneTest1: number; // $ExpectError
|
||||
@none() noneTest2: number; // $ExpectError
|
||||
@none("values") noneTest3: number;
|
||||
@none("values", "a") noneTest4: number; // $ExpectError
|
||||
|
||||
@not notTest1: number; // $ExpectError
|
||||
@not() notTest2: number; // $ExpectError
|
||||
@not("values") notTest3: number;
|
||||
@not("values", "a") notTest4: number; // $ExpectError
|
||||
|
||||
@notEmpty notEmptyTest1: boolean; // $ExpectError
|
||||
@notEmpty() notEmptyTest2: boolean; // $ExpectError
|
||||
@notEmpty("firstName") notEmptyTest3: boolean;
|
||||
@notEmpty("firstName", "a") notEmptyTest4: boolean; // $ExpectError
|
||||
|
||||
@oneWay oneWayTest1: boolean; // $ExpectError
|
||||
@oneWay() oneWayTest2: boolean; // $ExpectError
|
||||
@oneWay("firstName") oneWayTest3: boolean;
|
||||
@oneWay("firstName", "b") oneWayTest4: boolean; // $ExpectError
|
||||
|
||||
@or orTest1: boolean; // $ExpectError
|
||||
@or() orTest2: boolean;
|
||||
@or("firstName") orTest3: boolean;
|
||||
@or("firstName", "lastName") orTest4: boolean;
|
||||
|
||||
@readOnly readOnlyTest1: boolean; // $ExpectError
|
||||
@readOnly() readOnlyTest2: boolean; // $ExpectError
|
||||
@readOnly("firstName") readOnlyTest3: boolean;
|
||||
|
||||
@reads readsTest1: boolean; // $ExpectError
|
||||
@reads() readsTest2: boolean; // $ExpectError
|
||||
@reads("firstName") readsTest3: boolean;
|
||||
@reads("firstName", "a") readsTest4: boolean; // $ExpectError
|
||||
|
||||
@setDiff setDiffTest1: number; // $ExpectError
|
||||
@setDiff() setDiffTest2: number; // $ExpectError
|
||||
@setDiff("values") setDiffTest3: number; // $ExpectError
|
||||
@setDiff("values", "otherThing") setDiffTest4: number;
|
||||
@setDiff("values", "otherThing", "a") setDiffTest5: number; // $ExpectError
|
||||
|
||||
@sort sortTest1: number; // $ExpectError
|
||||
@sort() sortTest2: number; // $ExpectError
|
||||
@sort("values") sortTest3: number; // $ExpectError
|
||||
@sort("values", "id") sortTest4: number;
|
||||
@sort("values", "id", "a") sortTest5: number; // $ExpectError
|
||||
@sort("values", (a, b) => a - b) sortTest6: number;
|
||||
|
||||
@sum sumTest1: number; // $ExpectError
|
||||
@sum() sumTest2: number; // $ExpectError
|
||||
@sum("values") sumTest3: number;
|
||||
|
||||
@union unionTest1: any; // $ExpectError
|
||||
@union() unionTest2: any;
|
||||
@union("firstName") unionTest3: any;
|
||||
@union("firstName", "lastName") unionTest4: any;
|
||||
|
||||
@uniq uniqTest1: number; // $ExpectError
|
||||
@uniq() uniqTest2: number; // $ExpectError
|
||||
@uniq("values") uniqTest3: number;
|
||||
|
||||
@uniqBy uniqByTest1: number; // $ExpectError
|
||||
@uniqBy() uniqByTest2: number; // $ExpectError
|
||||
@uniqBy("values") uniqByTest3: number; // $ExpectError
|
||||
@uniqBy("values", "id") uniqByTest4: number;
|
||||
}
|
||||
@@ -11,6 +11,7 @@
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"experimentalDecorators": true,
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
@@ -49,6 +50,7 @@
|
||||
"test/extend.ts",
|
||||
"test/object.ts",
|
||||
"test/observable.ts",
|
||||
"test/octane.ts",
|
||||
"test/proxy.ts",
|
||||
"test/reopen.ts"
|
||||
]
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
import Service, { inject } from "@ember/service";
|
||||
import EmberObject from "@ember/object";
|
||||
|
||||
class FirstSvc extends Service {
|
||||
foo = 'bar';
|
||||
first() { return ''; }
|
||||
}
|
||||
const SecondSvc = Service.extend({
|
||||
foo: 'bar',
|
||||
second() { return ''; }
|
||||
});
|
||||
|
||||
class ThirdSvc extends Service.extend({
|
||||
foo: 'bar',
|
||||
third() { return ''; }
|
||||
}) { }
|
||||
|
||||
declare module '@ember/service' {
|
||||
interface Registry {
|
||||
first: FirstSvc;
|
||||
second: InstanceType<typeof SecondSvc>;
|
||||
third: ThirdSvc;
|
||||
}
|
||||
}
|
||||
|
||||
const ServiceTriplet = EmberObject.extend({
|
||||
sFirst: inject('first'),
|
||||
sSecond: inject('second'),
|
||||
sThird: inject('third'),
|
||||
unknownService: inject()
|
||||
});
|
||||
|
||||
const obj = ServiceTriplet.create();
|
||||
|
||||
obj.get('sFirst'); // $ExpectType FirstSvc
|
||||
obj.get('sSecond').second(); // $ExpectType ""
|
||||
obj.get('sThird'); // $ExpectType ThirdSvc
|
||||
obj.get('unknownService'); // $ExpectType Service
|
||||
7
types/ember__service/index.d.ts
vendored
7
types/ember__service/index.d.ts
vendored
@@ -12,10 +12,9 @@ export default class Service extends EmberObject {}
|
||||
* Creates a property that lazily looks up a service in the container. There
|
||||
* are no restrictions as to what objects a service can be injected into.
|
||||
*/
|
||||
export function inject(): ComputedProperty<Service>;
|
||||
export function inject<K extends keyof Registry>(
|
||||
name: K
|
||||
): ComputedProperty<Registry[K]>;
|
||||
export function inject(): PropertyDecorator & ComputedProperty<Service>; // @inject() foo, foo: inject()
|
||||
export function inject(target: object, propertyKey: string | symbol): void; // @inject foo
|
||||
export function inject<K extends keyof Registry>(name: K): PropertyDecorator & ComputedProperty<Registry[K]>; // @inject('store') foo @inject() foo
|
||||
|
||||
// A type registry for Ember `Service`s. Meant to be declaration-merged so
|
||||
// string lookups resolve to the correct type.
|
||||
|
||||
44
types/ember__service/test/main.ts
Normal file
44
types/ember__service/test/main.ts
Normal file
@@ -0,0 +1,44 @@
|
||||
import Service, { inject } from "@ember/service";
|
||||
import EmberObject from "@ember/object";
|
||||
|
||||
class FirstSvc extends Service {
|
||||
foo = "bar";
|
||||
first() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
const SecondSvc = Service.extend({
|
||||
foo: "bar",
|
||||
second() {
|
||||
return "";
|
||||
}
|
||||
});
|
||||
|
||||
class ThirdSvc extends Service.extend({
|
||||
foo: "bar",
|
||||
third() {
|
||||
return "";
|
||||
}
|
||||
}) {}
|
||||
|
||||
declare module "@ember/service" {
|
||||
interface Registry {
|
||||
first: FirstSvc;
|
||||
second: InstanceType<typeof SecondSvc>;
|
||||
third: ThirdSvc;
|
||||
}
|
||||
}
|
||||
|
||||
const ServiceTriplet = EmberObject.extend({
|
||||
sFirst: inject("first"),
|
||||
sSecond: inject("second"),
|
||||
sThird: inject("third"),
|
||||
unknownService: inject()
|
||||
});
|
||||
|
||||
const obj = ServiceTriplet.create();
|
||||
|
||||
obj.get("sFirst"); // $ExpectType FirstSvc
|
||||
obj.get("sSecond").second(); // $ExpectType ""
|
||||
obj.get("sThird"); // $ExpectType ThirdSvc
|
||||
obj.get("unknownService"); // $ExpectType Service
|
||||
28
types/ember__service/test/octane.ts
Normal file
28
types/ember__service/test/octane.ts
Normal file
@@ -0,0 +1,28 @@
|
||||
import Service, { inject } from "@ember/service";
|
||||
import EmberObject from "@ember/object";
|
||||
|
||||
class FirstSvc extends Service {
|
||||
foo = "bar";
|
||||
first() {
|
||||
return "";
|
||||
}
|
||||
}
|
||||
const SecondSvc = Service.extend({
|
||||
foo: "bar",
|
||||
second() {
|
||||
return "";
|
||||
}
|
||||
});
|
||||
|
||||
declare module "@ember/service" {
|
||||
interface Registry {
|
||||
first: FirstSvc;
|
||||
second: InstanceType<typeof SecondSvc>;
|
||||
}
|
||||
}
|
||||
|
||||
class Foo extends EmberObject {
|
||||
@inject foo: FirstSvc;
|
||||
@inject("first") baz: FirstSvc;
|
||||
@inject() bar: FirstSvc;
|
||||
}
|
||||
@@ -10,6 +10,7 @@
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"experimentalDecorators": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
@@ -25,6 +26,7 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"ember__service-tests.ts"
|
||||
"test/main.ts",
|
||||
"test/octane.ts"
|
||||
]
|
||||
}
|
||||
|
||||
@@ -22,3 +22,12 @@ const logger = Bunyan.createLogger({
|
||||
const middleware5 = expressBunyan({
|
||||
logger
|
||||
});
|
||||
|
||||
expressBunyan({
|
||||
format: () => "some format",
|
||||
genReqId: req => req.header("foo") || "other",
|
||||
name: "foo_app",
|
||||
parseUA: false,
|
||||
serializers: Bunyan.stdSerializers,
|
||||
streams: [{ level: 'info', stream: process.stdout }]
|
||||
});
|
||||
|
||||
4
types/express-bunyan-logger/index.d.ts
vendored
4
types/express-bunyan-logger/index.d.ts
vendored
@@ -1,6 +1,7 @@
|
||||
// Type definitions for express-bunyan-logger 1.3
|
||||
// Project: https://github.com/villadora/express-bunyan-logger
|
||||
// Definitions by: Shrey Jain <https://github.com/shreyjain1994>
|
||||
// Matt R. Wilson <https://github.com/mastermatt>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
@@ -17,7 +18,7 @@ declare namespace Factory {
|
||||
type RequestIdGenFunction = (req: express.Request) => string;
|
||||
type LevelFunction = (status: number, err: Error | null, meta: any) => string;
|
||||
|
||||
interface Options {
|
||||
interface Options extends Partial<Bunyan.LoggerOptions> {
|
||||
logger?: Bunyan;
|
||||
format?: string | FormatFunction;
|
||||
parseUA?: boolean;
|
||||
@@ -26,7 +27,6 @@ declare namespace Factory {
|
||||
excludes?: string[];
|
||||
obfuscate?: string[];
|
||||
obfuscatePlaceholder?: string;
|
||||
serializers?: { [field: string]: Bunyan.Serializer };
|
||||
immediate?: boolean;
|
||||
genReqId?: RequestIdGenFunction;
|
||||
}
|
||||
|
||||
11
types/express-serve-static-core/index.d.ts
vendored
11
types/express-serve-static-core/index.d.ts
vendored
@@ -507,8 +507,7 @@ export interface Response extends http.ServerResponse, Express.Response {
|
||||
* res.send(new Buffer('wahoo'));
|
||||
* res.send({ some: 'json' });
|
||||
* res.send('<p>some html</p>');
|
||||
* res.send(404, 'Sorry, cant find that');
|
||||
* res.send(404);
|
||||
* res.status(404).send('Sorry, cant find that');
|
||||
*/
|
||||
send: Send;
|
||||
|
||||
@@ -519,8 +518,8 @@ export interface Response extends http.ServerResponse, Express.Response {
|
||||
*
|
||||
* res.json(null);
|
||||
* res.json({ user: 'tj' });
|
||||
* res.json(500, 'oh noes!');
|
||||
* res.json(404, 'I dont have that');
|
||||
* res.status(500).json('oh noes!');
|
||||
* res.status(404).json('I dont have that');
|
||||
*/
|
||||
json: Send;
|
||||
|
||||
@@ -531,8 +530,8 @@ export interface Response extends http.ServerResponse, Express.Response {
|
||||
*
|
||||
* res.jsonp(null);
|
||||
* res.jsonp({ user: 'tj' });
|
||||
* res.jsonp(500, 'oh noes!');
|
||||
* res.jsonp(404, 'I dont have that');
|
||||
* res.status(500).jsonp('oh noes!');
|
||||
* res.status(404).jsonp('I dont have that');
|
||||
*/
|
||||
jsonp: Send;
|
||||
|
||||
|
||||
10
types/fabric/fabric-impl.d.ts
vendored
10
types/fabric/fabric-impl.d.ts
vendored
@@ -2144,12 +2144,6 @@ export class ActiveSelection {
|
||||
* active object. no events fired.
|
||||
*/
|
||||
toGroup(): Group;
|
||||
/**
|
||||
* If returns true, deselection is cancelled.
|
||||
* @since 2.0.0
|
||||
* @return {Boolean} [cancel]
|
||||
*/
|
||||
onDeselect(): boolean;
|
||||
/**
|
||||
* Returns {@link fabric.ActiveSelection} instance from an object representation
|
||||
* @memberOf fabric.ActiveSelection
|
||||
@@ -3500,8 +3494,9 @@ export class Object {
|
||||
/**
|
||||
* This callback function is called every time _discardActiveObject or _setActiveObject
|
||||
* try to to deselect this object. If the function returns true, the process is cancelled
|
||||
* @return {Boolean} true to cancel selection
|
||||
*/
|
||||
onDeselect(): void;
|
||||
onDeselect(options: { e?: Event, object?: Object }): boolean;
|
||||
/**
|
||||
* This callback function is called every time _discardActiveObject or _setActiveObject
|
||||
* try to to select this object. If the function returns true, the process is cancelled
|
||||
@@ -4137,7 +4132,6 @@ export class IText extends Text {
|
||||
* Initializes all the interactive behavior of IText
|
||||
*/
|
||||
initBehavior(): void;
|
||||
onDeselect(): void;
|
||||
/**
|
||||
* Initializes "added" event handler
|
||||
*/
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
import filenamifyUrl = require("filenamify-url");
|
||||
|
||||
filenamifyUrl("http://sindresorhus.com/foo?bar=baz");
|
||||
|
||||
filenamifyUrl("http://sindresorhus.com/foo", { replacement: "🐴" });
|
||||
|
||||
filenamifyUrl.path("https://sindresorhus.com");
|
||||
7
types/filenamify-url/index.d.ts
vendored
7
types/filenamify-url/index.d.ts
vendored
@@ -1,7 +0,0 @@
|
||||
// Type definitions for filenamify-url 1.0
|
||||
// Project: https://github.com/sindresorhus/filenamify-url
|
||||
// Definitions by: Carlos Precioso <https://github.com/cprecioso>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
import * as filenamifyUrl from "filenamify";
|
||||
export = filenamifyUrl;
|
||||
@@ -1,10 +0,0 @@
|
||||
import filenamify = require('filenamify');
|
||||
|
||||
filenamify('<foo/bar>');
|
||||
// => 'foo!bar'
|
||||
|
||||
filenamify('foo:"bar"', {replacement: '🐴'});
|
||||
// => 'foo🐴bar'
|
||||
|
||||
filenamify.path('/some/!path');
|
||||
// => '/some/path'
|
||||
15
types/filenamify/index.d.ts
vendored
15
types/filenamify/index.d.ts
vendored
@@ -1,15 +0,0 @@
|
||||
// Type definitions for filenamify 2.0
|
||||
// Project: https://github.com/sindresorhus/filenamify
|
||||
// Definitions by: Junyoung Choi <https://github.com/rokt33r>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare function filenamify(input: string, options?: filenamify.Options): string;
|
||||
|
||||
declare namespace filenamify {
|
||||
interface Options {
|
||||
replacement: string;
|
||||
}
|
||||
function path(input: string, options?: Options): string;
|
||||
}
|
||||
|
||||
export = filenamify;
|
||||
@@ -1,5 +0,0 @@
|
||||
import fkill = require('fkill');
|
||||
|
||||
fkill(1337); // $ExpectType Promise<void>
|
||||
fkill('Safari'); // $ExpectType Promise<void>
|
||||
fkill([1337, 'Safari', ':8080']); // $ExpectType Promise<void>
|
||||
40
types/fkill/index.d.ts
vendored
40
types/fkill/index.d.ts
vendored
@@ -1,40 +0,0 @@
|
||||
// Type definitions for fkill 5.3
|
||||
// Project: https://github.com/sindresorhus/fkill#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = fkill;
|
||||
|
||||
/**
|
||||
* Fabulously kill processes. Cross-platform.
|
||||
*
|
||||
* @param input One or more process IDs/names/ports to kill.
|
||||
* To kill a port, prefix it with a colon. For example: `:8080`.
|
||||
*/
|
||||
declare function fkill(
|
||||
input: number | string | Array<string | number>,
|
||||
options?: fkill.Options
|
||||
): Promise<void>;
|
||||
|
||||
declare namespace fkill {
|
||||
interface Options {
|
||||
/**
|
||||
* Force kill the process.
|
||||
* @default false
|
||||
*/
|
||||
force?: boolean;
|
||||
|
||||
/**
|
||||
* Kill all child processes along with the parent process. *(Windows only)*
|
||||
* @default true
|
||||
*/
|
||||
tree?: boolean;
|
||||
|
||||
/**
|
||||
* Ignore capitalization when killing a process.
|
||||
* Note that the case is always ignored on Windows.
|
||||
* @default false
|
||||
*/
|
||||
ignoreCase?: boolean;
|
||||
}
|
||||
}
|
||||
@@ -140,3 +140,68 @@ let flikty4: Flickity = new Flickity(new HTMLElement(), {
|
||||
x3: 30
|
||||
}
|
||||
});
|
||||
|
||||
let flikty5: Flickity = new Flickity(new HTMLElement(), {
|
||||
on: {
|
||||
ready: () => {},
|
||||
change: (index) => {},
|
||||
select: (index) => {},
|
||||
settle: (index) => {},
|
||||
scroll: (progress) => {},
|
||||
dragStart: (event, pointer) => {},
|
||||
dragMove: (event, pointer, moveVector) => {},
|
||||
dragEnd: (event, pointer) => {},
|
||||
pointerDown: (event, pointer) => {},
|
||||
pointerMove: (event, pointer, moveVector) => {},
|
||||
pointerUp: (event, pointer) => {},
|
||||
staticClick: (event, pointer, cellElement, cellIndex) => {},
|
||||
lazyLoad: (event, cellElement) => {},
|
||||
bgLazyLoad: (event, element) => {},
|
||||
fullscreenChange: (isFullscreen) => {}
|
||||
}
|
||||
});
|
||||
|
||||
let fliktyBindings: Flickity.EventBindings = {
|
||||
ready: () => {},
|
||||
change: (index) => {},
|
||||
select: (index) => {},
|
||||
settle: (index) => {},
|
||||
scroll: (progress) => {},
|
||||
dragStart: (event, pointer) => {},
|
||||
dragMove: (event, pointer, moveVector) => {},
|
||||
dragEnd: (event, pointer) => {},
|
||||
pointerDown: (event, pointer) => {},
|
||||
pointerMove: (event, pointer, moveVector) => {},
|
||||
pointerUp: (event, pointer) => {},
|
||||
staticClick: (event, pointer, cellElement, cellIndex) => {},
|
||||
lazyLoad: (event, cellElement) => {},
|
||||
bgLazyLoad: (event, element) => {},
|
||||
fullscreenChange: (isFullscreen) => {}
|
||||
};
|
||||
|
||||
let fliktyOpts1: Flickity.Options = {
|
||||
initialIndex: 0,
|
||||
accessibility: true,
|
||||
asNavFor: "#nav-bar",
|
||||
autoPlay: true,
|
||||
cellAlign: "left",
|
||||
cellSelector: ".gallery-cell",
|
||||
contain: true,
|
||||
draggable: true,
|
||||
freeScroll: false,
|
||||
freeScrollFriction: 0.5,
|
||||
friction: 0.8,
|
||||
imagesLoaded: false,
|
||||
lazyLoad: false,
|
||||
pageDots: false,
|
||||
arrowShape: "arrow.svg",
|
||||
percentPosition: false,
|
||||
prevNextButtons: false,
|
||||
selectedAttraction: 0.050,
|
||||
setGallerySize: true,
|
||||
watchCSS: true,
|
||||
wrapAround: true,
|
||||
resize: true,
|
||||
rightToLeft: false,
|
||||
on: fliktyBindings
|
||||
};
|
||||
|
||||
510
types/flickity/index.d.ts
vendored
510
types/flickity/index.d.ts
vendored
@@ -1,7 +1,8 @@
|
||||
// Type definitions for Flickity 2.0
|
||||
// Type definitions for Flickity 2.2
|
||||
// Project: https://flickity.metafizzy.co
|
||||
// Definitions by: Chris McGrath <https://github.com/clmcgrath>
|
||||
// Michael Wagner <https://github.com/wagich>
|
||||
// Anthony Heber <https://github.com/aheber>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.3
|
||||
|
||||
@@ -10,7 +11,7 @@ export = Flickity;
|
||||
|
||||
declare global {
|
||||
interface JQuery {
|
||||
flickity(options?: FlickityOptions): this;
|
||||
flickity(options?: Flickity.Options): this;
|
||||
flickity(command: string, ...params: any[]): this;
|
||||
}
|
||||
}
|
||||
@@ -66,6 +67,309 @@ declare namespace Flickity {
|
||||
* Triggered after a background image has been loaded with bgLazyLoad.
|
||||
*/
|
||||
"bgLazyLoad";
|
||||
interface Options {
|
||||
/**
|
||||
* Specify selector for cell elements. cellSelector is useful if you have other elements in your gallery elements that are not cells.
|
||||
*
|
||||
* default: '.gallery-cell'
|
||||
*/
|
||||
cellSelector?: string;
|
||||
|
||||
/**
|
||||
* Zero-based index of the initial selected cell.
|
||||
*/
|
||||
initialIndex?: number;
|
||||
|
||||
/**
|
||||
* Enable keyboard navigation. Users can tab to a Flickity gallery, and pressing left & right keys to change cells.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
accessibility?: boolean;
|
||||
|
||||
/**
|
||||
* Sets the height of the gallery to the height of the tallest cell. Set to false if you prefer to size the gallery with CSS, rather than using the size of cells.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
setGallerySize?: boolean;
|
||||
|
||||
/**
|
||||
* Adjusts sizes and positions when window is resized.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
resize?: boolean;
|
||||
|
||||
/**
|
||||
* Align cells within the gallery element.
|
||||
* opttions: 'left', 'center', 'right'
|
||||
*
|
||||
* default: 'center'
|
||||
*/
|
||||
cellAlign?: string;
|
||||
|
||||
/**
|
||||
* Contains cells to gallery element to prevent excess scroll at beginning or end. Has no effect if wrapAround is enabled
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
contain?: boolean;
|
||||
|
||||
/**
|
||||
* Unloaded images have no size, which can throw off cell positions. To fix this, the imagesLoaded option re-positions cells once their images have loaded.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
imagesLoaded?: boolean;
|
||||
|
||||
/**
|
||||
* Sets positioning in percent values, rather than pixel values. If your cells do not have percent widths, we recommended percentPosition: false.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
percentPosition?: boolean;
|
||||
|
||||
/**
|
||||
* Enables right-to-left layout.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
rightToLeft?: boolean;
|
||||
|
||||
/**
|
||||
* Enables dragging and flicking
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
draggable?: boolean;
|
||||
|
||||
/**
|
||||
* Enables content to be freely scrolled and flicked without aligning cells to an end position.
|
||||
* Enable freeScroll and wrapAround and you can flick forever, man.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
freeScroll?: boolean;
|
||||
|
||||
/**
|
||||
* At the end of cells, wrap-around to the other end for infinite scrolling.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
wrapAround?: boolean;
|
||||
|
||||
/**
|
||||
* Groups cells together in slides. Flicking, page dots, and previous/next buttons are mapped to group slides, not individual cells.
|
||||
* `is-selected` class is added to the multiple cells in the selected slide.
|
||||
* If set to true, group cells that fit in carousel viewport.
|
||||
* If set to a number, group cells by that number.
|
||||
* If set to a percent string, group cells that fit in the percent of the width of the carousel viewport.
|
||||
*/
|
||||
groupCells?: boolean | number | string;
|
||||
|
||||
/**
|
||||
* Loads cell images when a cell is selected.
|
||||
* Set the image's URL to load with the `data-flickity-lazyload` attribute.
|
||||
* If set to `true`, lazyloads image in selected slide
|
||||
* If set to a number n, load images in selected slide and next n slides and previous n slides.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
lazyLoad?: boolean | number;
|
||||
|
||||
/**
|
||||
* Loads cell background image when a cell is selected.
|
||||
* Set the background image's URL to load with the `data-flickity-bg-lazyload` attribute.
|
||||
* If set to `true`, lazyloads background image in selected slide
|
||||
* If set to a number n, load background images in selected slide and next n slides and previous n slides.
|
||||
* bgLazyLoad requires the flickity-bg-lazyload package. This package is not included and must be installed separately.
|
||||
*/
|
||||
bgLazyLoad?: boolean | number;
|
||||
|
||||
/**
|
||||
* Automatically advances to the next cell.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
autoPlay?: boolean | number;
|
||||
|
||||
/**
|
||||
* Changes height of carousel to fit height of selected slide.
|
||||
*/
|
||||
adaptiveHeight?: boolean;
|
||||
|
||||
/**
|
||||
* You can enable and disable Flickity with CSS. watchCSS option watches the content of :after of the gallery element. Flickity is enabled if :after content is 'flickity'.
|
||||
* note: IE8 and Android 2.3 do not support watching :after. Flickity will be disabled when watchCSS: true. Set watchCSS: 'fallbackOn' to enable Flickity for these browsers.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
watchCSS?: boolean | string;
|
||||
|
||||
/**
|
||||
* Use one Flickity gallery as navigation for another.
|
||||
*
|
||||
* default: disabled
|
||||
*/
|
||||
asNavFor?: string | HTMLElement;
|
||||
|
||||
/**
|
||||
* The number of pixels a mouse or touch has to move before dragging begins. Increase dragThreshold to allow for more wiggle room for vertical page scrolling on touch devices.
|
||||
*
|
||||
* default: 3
|
||||
*/
|
||||
dragThreshold?: number;
|
||||
|
||||
/**
|
||||
* selectedAttraction attracts the position of the slider to the selected cell. Higher attraction makes the slider move faster. Lower makes it move slower.
|
||||
*
|
||||
* default: 0.025
|
||||
*/
|
||||
selectedAttraction?: number;
|
||||
|
||||
/**
|
||||
* Friction slows the movement of slider. Higher friction makes the slider feel stickier and less bouncy. Lower friction makes the slider feel looser and more wobbly.
|
||||
*
|
||||
* default: 0.28
|
||||
*/
|
||||
friction?: number;
|
||||
|
||||
/**
|
||||
* Slows movement of slider when freeScroll: true. Higher friction makes the slider feel stickier. Lower friction makes the slider feel looser.
|
||||
*
|
||||
* default: 0.075
|
||||
*/
|
||||
freeScrollFriction?: number;
|
||||
|
||||
/**
|
||||
* Creates and enables previous & next buttons.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
prevNextButtons?: boolean;
|
||||
|
||||
/**
|
||||
* Creates and enables paging dots.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
pageDots?: boolean;
|
||||
|
||||
/**
|
||||
* Draws the shape of the arrows in the previous & next buttons.
|
||||
* javascript dictionary of points or path to SVG file
|
||||
*/
|
||||
arrowShape?: string | { x0: number, x1: number, y1: number, x2: number, y2: number, x3: number };
|
||||
|
||||
/**
|
||||
* Bind events within Flickity's options by setting on to an Object. The object's keys should match the event names. on is useful for capturing events as Flickity is initialized, like ready
|
||||
*/
|
||||
on?: EventBindings;
|
||||
}
|
||||
|
||||
interface EventBindings {
|
||||
/**
|
||||
* Triggered after Flickity has been activated.
|
||||
*/
|
||||
ready?: () => void;
|
||||
|
||||
/**
|
||||
* Triggered when the selected slide is changed.
|
||||
*/
|
||||
change?: (index?: number) => void;
|
||||
|
||||
/**
|
||||
* Triggered when a slide is selected.
|
||||
* select is triggered any time a slide is selected, even on the same slide. change is triggered only when a different slide is selected.
|
||||
* This event was previously cellSelect in Flickity v1. cellSelect will continue to work in Flickity v2.
|
||||
*/
|
||||
select?: (index?: number) => void;
|
||||
cellSelect?: (index?: number) => void;
|
||||
/**
|
||||
* Triggered when the slider is settled at its end position.
|
||||
*/
|
||||
settle?: (index?: number) => void;
|
||||
|
||||
/**
|
||||
* Triggered when the slider moves.
|
||||
*/
|
||||
scroll?: (progress?: number) => void;
|
||||
|
||||
/**
|
||||
* Triggered when dragging starts and the slider starts moving.
|
||||
*/
|
||||
dragStart?: (
|
||||
event?: Event,
|
||||
pointer?: Element | Touch) => void;
|
||||
|
||||
/**
|
||||
* Triggered when dragging moves and the slider moves.
|
||||
*/
|
||||
dragMove?: (
|
||||
event?: Event,
|
||||
pointer?: Element | Touch,
|
||||
moveVector?: { x: number, y: number }) => void;
|
||||
|
||||
/**
|
||||
* Triggered when dragging ends.
|
||||
*/
|
||||
dragEnd?: (
|
||||
event: Event,
|
||||
pointer?: Element | Touch) => void;
|
||||
|
||||
/**
|
||||
* Triggered when the user's pointer (mouse, touch, pointer) presses down.
|
||||
*/
|
||||
pointerDown?: (
|
||||
event: Event,
|
||||
pointer?: Element | Touch) => void;
|
||||
|
||||
/**
|
||||
* Triggered when the user's pointer moves.
|
||||
*/
|
||||
pointerMove?: (
|
||||
event?: Event,
|
||||
pointer?: Element | Touch,
|
||||
moveVector?: { x: number, y: number }) => void;
|
||||
|
||||
/**
|
||||
* Triggered when the user's pointer unpresses.
|
||||
*/
|
||||
pointerUp?: (
|
||||
event?: Event,
|
||||
pointer?: Element | Touch) => void;
|
||||
|
||||
/**
|
||||
* Triggered when the user's pointer is pressed and unpressed and has not moved enough to start dragging.
|
||||
* click events are hard to detect with draggable UI, as they are triggered whenever a user drags.
|
||||
* Flickity's staticClick event resolves this, as it is triggered when the user has not dragged.
|
||||
*/
|
||||
staticClick?: (
|
||||
event?: Event,
|
||||
pointer?: Element | Touch,
|
||||
cellElement?: Element,
|
||||
cellIndex?: number) => void;
|
||||
|
||||
/**
|
||||
* Triggered after an image has been loaded with lazyLoad.
|
||||
*/
|
||||
lazyLoad?: (
|
||||
event?: Event,
|
||||
cellElement?: Element) => void;
|
||||
|
||||
/**
|
||||
* Triggered after a background image has been loaded with bgLazyLoad.
|
||||
*/
|
||||
bgLazyLoad?: (
|
||||
event?: Event,
|
||||
element?: Element) => void;
|
||||
|
||||
/**
|
||||
* Triggered after entering or exiting fullscreen view.
|
||||
*/
|
||||
fullscreenChange?: (isFullscreen?: boolean) => void;
|
||||
}
|
||||
}
|
||||
|
||||
declare class Flickity {
|
||||
@@ -73,9 +377,9 @@ declare class Flickity {
|
||||
* Initializes an new instance of Flickity .
|
||||
*
|
||||
* @param element Element selector string or container Element to initialize Flickity on
|
||||
* @param options (IFlickityOptions) Flickity options
|
||||
* @param options (IOptions) Flickity options
|
||||
*/
|
||||
constructor(selector: string | Element, options?: FlickityOptions);
|
||||
constructor(selector: string | Element, options?: Flickity.Options);
|
||||
|
||||
// properties
|
||||
|
||||
@@ -291,7 +595,7 @@ declare class Flickity {
|
||||
once(eventname: string, callback: (event?: Event, pointer?: Element | Touch, cellElement?: Element, cellIndex?: number) => any): void;
|
||||
|
||||
/**
|
||||
* one time event handler
|
||||
* one time event handl`er
|
||||
* @param eventName name of event (@see Flickity.FlickityEvents class for filckity supported events)
|
||||
* @param callback callback funtion to execute when event fires
|
||||
*/
|
||||
@@ -311,199 +615,3 @@ declare class Flickity {
|
||||
*/
|
||||
once(eventname: string, callback: (event?: Event, pointer?: Element | Touch) => any): void;
|
||||
}
|
||||
|
||||
interface FlickityOptions {
|
||||
/**
|
||||
* Specify selector for cell elements. cellSelector is useful if you have other elements in your gallery elements that are not cells.
|
||||
*
|
||||
* default: '.gallery-cell'
|
||||
*/
|
||||
cellSelector?: string;
|
||||
|
||||
/**
|
||||
* Zero-based index of the initial selected cell.
|
||||
*/
|
||||
initialIndex?: number;
|
||||
|
||||
/**
|
||||
* Enable keyboard navigation. Users can tab to a Flickity gallery, and pressing left & right keys to change cells.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
accessibility?: boolean;
|
||||
|
||||
/**
|
||||
* Sets the height of the gallery to the height of the tallest cell. Set to false if you prefer to size the gallery with CSS, rather than using the size of cells.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
setGallerySize?: boolean;
|
||||
|
||||
/**
|
||||
* Adjusts sizes and positions when window is resized.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
resize?: boolean;
|
||||
|
||||
/**
|
||||
* Align cells within the gallery element.
|
||||
* opttions: 'left', 'center', 'right'
|
||||
*
|
||||
* default: 'center'
|
||||
*/
|
||||
cellAlign?: string;
|
||||
|
||||
/**
|
||||
* Contains cells to gallery element to prevent excess scroll at beginning or end. Has no effect if wrapAround is enabled
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
contain?: boolean;
|
||||
|
||||
/**
|
||||
* Unloaded images have no size, which can throw off cell positions. To fix this, the imagesLoaded option re-positions cells once their images have loaded.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
imagesLoaded?: boolean;
|
||||
|
||||
/**
|
||||
* Sets positioning in percent values, rather than pixel values. If your cells do not have percent widths, we recommended percentPosition: false.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
percentPosition?: boolean;
|
||||
|
||||
/**
|
||||
* Enables right-to-left layout.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
rightToLeft?: boolean;
|
||||
|
||||
/**
|
||||
* Enables dragging and flicking
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
draggable?: boolean;
|
||||
|
||||
/**
|
||||
* Enables content to be freely scrolled and flicked without aligning cells to an end position.
|
||||
* Enable freeScroll and wrapAround and you can flick forever, man.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
freeScroll?: boolean;
|
||||
|
||||
/**
|
||||
* At the end of cells, wrap-around to the other end for infinite scrolling.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
wrapAround?: boolean;
|
||||
|
||||
/**
|
||||
* Groups cells together in slides. Flicking, page dots, and previous/next buttons are mapped to group slides, not individual cells.
|
||||
* `is-selected` class is added to the multiple cells in the selected slide.
|
||||
* If set to true, group cells that fit in carousel viewport.
|
||||
* If set to a number, group cells by that number.
|
||||
* If set to a percent string, group cells that fit in the percent of the width of the carousel viewport.
|
||||
*/
|
||||
groupCells?: boolean | number | string;
|
||||
|
||||
/**
|
||||
* Loads cell images when a cell is selected.
|
||||
* Set the image's URL to load with the `data-flickity-lazyload` attribute.
|
||||
* If set to `true`, lazyloads image in selected slide
|
||||
* If set to a number n, load images in selected slide and next n slides and previous n slides.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
lazyLoad?: boolean | number;
|
||||
|
||||
/**
|
||||
* Loads cell background image when a cell is selected.
|
||||
* Set the background image's URL to load with the `data-flickity-bg-lazyload` attribute.
|
||||
* If set to `true`, lazyloads background image in selected slide
|
||||
* If set to a number n, load background images in selected slide and next n slides and previous n slides.
|
||||
* bgLazyLoad requires the flickity-bg-lazyload package. This package is not included and must be installed separately.
|
||||
*/
|
||||
bgLazyLoad?: boolean | number;
|
||||
|
||||
/**
|
||||
* Automatically advances to the next cell.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
autoPlay?: boolean | number;
|
||||
|
||||
/**
|
||||
* Changes height of carousel to fit height of selected slide.
|
||||
*/
|
||||
adaptiveHeight?: boolean;
|
||||
|
||||
/**
|
||||
* You can enable and disable Flickity with CSS. watchCSS option watches the content of :after of the gallery element. Flickity is enabled if :after content is 'flickity'.
|
||||
* note: IE8 and Android 2.3 do not support watching :after. Flickity will be disabled when watchCSS: true. Set watchCSS: 'fallbackOn' to enable Flickity for these browsers.
|
||||
*
|
||||
* default: false
|
||||
*/
|
||||
watchCSS?: boolean | string;
|
||||
|
||||
/**
|
||||
* Use one Flickity gallery as navigation for another.
|
||||
*
|
||||
* default: disabled
|
||||
*/
|
||||
asNavFor?: string | HTMLElement;
|
||||
|
||||
/**
|
||||
* The number of pixels a mouse or touch has to move before dragging begins. Increase dragThreshold to allow for more wiggle room for vertical page scrolling on touch devices.
|
||||
*
|
||||
* default: 3
|
||||
*/
|
||||
dragThreshold?: number;
|
||||
|
||||
/**
|
||||
* selectedAttraction attracts the position of the slider to the selected cell. Higher attraction makes the slider move faster. Lower makes it move slower.
|
||||
*
|
||||
* default: 0.025
|
||||
*/
|
||||
selectedAttraction?: number;
|
||||
|
||||
/**
|
||||
* Friction slows the movement of slider. Higher friction makes the slider feel stickier and less bouncy. Lower friction makes the slider feel looser and more wobbly.
|
||||
*
|
||||
* default: 0.28
|
||||
*/
|
||||
friction?: number;
|
||||
|
||||
/**
|
||||
* Slows movement of slider when freeScroll: true. Higher friction makes the slider feel stickier. Lower friction makes the slider feel looser.
|
||||
*
|
||||
* default: 0.075
|
||||
*/
|
||||
freeScrollFriction?: number;
|
||||
|
||||
/**
|
||||
* Creates and enables previous & next buttons.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
prevNextButtons?: boolean;
|
||||
|
||||
/**
|
||||
* Creates and enables paging dots.
|
||||
*
|
||||
* default: true
|
||||
*/
|
||||
pageDots?: boolean;
|
||||
|
||||
/**
|
||||
* Draws the shape of the arrows in the previous & next buttons.
|
||||
* javascript dictionary of points or path to SVG file
|
||||
*/
|
||||
arrowShape?: string | { x0: number, x1: number, y1: number, x2: number, y2: number, x3: number };
|
||||
}
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
import getRes = require('get-res');
|
||||
|
||||
getRes(); // $ExpectType Promise<object[]>
|
||||
getRes(); // $ExpectType Promise<Resolution[]>
|
||||
|
||||
7
types/get-res/index.d.ts
vendored
7
types/get-res/index.d.ts
vendored
@@ -6,9 +6,14 @@
|
||||
|
||||
export = getRes;
|
||||
|
||||
interface Resolution {
|
||||
item: string;
|
||||
percent: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get ten most popular screen resolutions
|
||||
*
|
||||
* @returns An array with the details of ten most popular screen resolutions
|
||||
*/
|
||||
declare function getRes(): Promise<object[]>;
|
||||
declare function getRes(): Promise<Resolution[]>;
|
||||
|
||||
@@ -1,12 +0,0 @@
|
||||
import getStream = require("get-stream");
|
||||
|
||||
import * as fs from 'fs';
|
||||
|
||||
getStream(fs.createReadStream('foo'))
|
||||
.then(str => str.toLowerCase());
|
||||
|
||||
getStream.array<string>(fs.createReadStream('foo'))
|
||||
.then(values => values.join(', '));
|
||||
|
||||
getStream.buffer(fs.createReadStream('foo'))
|
||||
.then(buffer => buffer.byteLength);
|
||||
62
types/get-stream/index.d.ts
vendored
62
types/get-stream/index.d.ts
vendored
@@ -1,62 +0,0 @@
|
||||
// Type definitions for get-stream 3.0
|
||||
// Project: https://github.com/sindresorhus/get-stream#readme
|
||||
// Definitions by: Douglas Duteil <https://github.com/douglasduteil>
|
||||
// BendingBender <https://github.com/BendingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node" />
|
||||
|
||||
import { Stream } from 'stream';
|
||||
|
||||
interface Options {
|
||||
/**
|
||||
* Encoding of the incoming stream.
|
||||
* @default 'utf8'
|
||||
*/
|
||||
encoding?: BufferEncoding | 'buffer';
|
||||
/**
|
||||
* Maximum length of the returned string. If it exceeds this value before
|
||||
* the stream ends, the promise will be rejected.
|
||||
* @default Infinity
|
||||
*/
|
||||
maxBuffer?: number;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the stream as a string.
|
||||
* The methods returns a promise that resolves when the end event fires on the
|
||||
* stream, indicating that there is no more data to be read.
|
||||
* The stream is switched to flowing mode.
|
||||
*/
|
||||
declare function getStream(stream: Stream, options?: Options): Promise<string>;
|
||||
declare namespace getStream {
|
||||
/**
|
||||
* Get the `stream` as an array of values.
|
||||
*
|
||||
* It honors both the `maxBuffer` and `encoding` options.
|
||||
* The behavior changes slightly based on the encoding chosen:
|
||||
*
|
||||
* - When `encoding` is unset, it assumes an [object mode stream](https://nodesource.com/blog/understanding-object-streams/)
|
||||
* and collects values emitted from `stream` unmodified.
|
||||
* In this case `maxBuffer` refers to the number of items in the array
|
||||
* (not the sum of their sizes).
|
||||
*
|
||||
* - When `encoding` is set to `buffer`, it collects an array of buffers.
|
||||
* `maxBuffer` refers to the summed byte lengths of every buffer in the array.
|
||||
*
|
||||
* - When `encoding` is set to anything else, it collects an array of strings.
|
||||
* `maxBuffer` refers to the summed character lengths of every string in the array.
|
||||
*
|
||||
*/
|
||||
function array<T>(stream: Stream, options?: Options): Promise<T[]>;
|
||||
|
||||
/**
|
||||
* Get the stream as a buffer.
|
||||
*
|
||||
* It honors the maxBuffer option as above, but it refers to byte length
|
||||
* rather than string length.
|
||||
*/
|
||||
function buffer(stream: Stream, options?: Options): Promise<Buffer>;
|
||||
}
|
||||
|
||||
export = getStream;
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"get-stream-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-unnecessary-generics": false
|
||||
}
|
||||
}
|
||||
@@ -8,15 +8,17 @@ server.register({
|
||||
});
|
||||
|
||||
const options: auth.Options = {
|
||||
clearInvalid: true,
|
||||
cookie: 'session',
|
||||
domain: '.typescript.org',
|
||||
cookie: {
|
||||
clearInvalid: true,
|
||||
name: 'session',
|
||||
domain: '.typescript.org',
|
||||
password: 'abcdef',
|
||||
isSecure: true,
|
||||
ttl: 259200000,
|
||||
},
|
||||
keepAlive: true,
|
||||
password: 'abcdef',
|
||||
redirectTo: '/login',
|
||||
isSecure: true,
|
||||
appendNext: false,
|
||||
ttl: 259200000,
|
||||
validateFunc: async () => {
|
||||
return { valid: true };
|
||||
},
|
||||
|
||||
65
types/hapi-auth-cookie/index.d.ts
vendored
65
types/hapi-auth-cookie/index.d.ts
vendored
@@ -1,4 +1,4 @@
|
||||
// Type definitions for hapi-auth-cookie 9.1
|
||||
// Type definitions for hapi-auth-cookie 10.0
|
||||
// Project: https://github.com/hapijs/hapi-auth-cookie
|
||||
// Definitions by: Silas Rech <https://github.com/lenovouser>
|
||||
// Simon Schick <https://github.com/SimonSchick>
|
||||
@@ -32,51 +32,18 @@ declare module 'hapi' {
|
||||
declare namespace hapiAuthCookie {
|
||||
interface ValidateResponse { valid: boolean; credentials?: AuthCredentials; }
|
||||
type ValidateFunction = (request?: Request, session?: object) => Promise<ValidateResponse>;
|
||||
type RedirectToFunction = (request?: Request) => void;
|
||||
type RedirectToFunction = (request?: Request) => string;
|
||||
|
||||
/**
|
||||
* Options passed to 'hapi.auth.strategy' when this plugin is used
|
||||
*/
|
||||
interface Options {
|
||||
/**
|
||||
* The cookie name.
|
||||
* Cookie options.
|
||||
*
|
||||
* @default 'sid'
|
||||
* @default { name: 'sid', clearInvalid: false, isSameSite: 'Strict', isSecure: true, isHttpOnly: true }
|
||||
*/
|
||||
cookie?: string;
|
||||
|
||||
/**
|
||||
* Used for Iron cookie encoding.
|
||||
* Should be at least 32 characters long.
|
||||
*/
|
||||
password: string;
|
||||
|
||||
/**
|
||||
* Sets the cookie expires time in milliseconds.
|
||||
* Required when 'keepAlive' is true.
|
||||
* Defaults to single browser session (ends when browser closes).
|
||||
*/
|
||||
ttl?: number;
|
||||
|
||||
/**
|
||||
* Sets the cookie Domain value.
|
||||
* Defaults to none.
|
||||
*/
|
||||
domain?: string;
|
||||
|
||||
/**
|
||||
* Sets the cookie path value.
|
||||
*
|
||||
* @default '/'
|
||||
*/
|
||||
path?: string;
|
||||
|
||||
/**
|
||||
* Any authentication cookie that fails validation will be marked as expired in the response and cleared.
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
clearInvalid?: boolean;
|
||||
cookie?: ServerStateCookieOptions & { name: string };
|
||||
|
||||
/**
|
||||
* Automatically sets the session cookie after validation to extend the current session for a new TTL duration.
|
||||
@@ -85,28 +52,6 @@ declare namespace hapiAuthCookie {
|
||||
*/
|
||||
keepAlive?: boolean;
|
||||
|
||||
/**
|
||||
* If false omitted.
|
||||
* Other options Strict or Lax.
|
||||
*
|
||||
* @default 'Strict'
|
||||
*/
|
||||
isSameSite?: ServerStateCookieOptions['isSameSite'];
|
||||
|
||||
/**
|
||||
* If false, the cookie is allowed to be transmitted over insecure connections which exposes it to attacks.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
isSecure?: boolean;
|
||||
|
||||
/**
|
||||
* If false, the cookie will not include the 'HttpOnly' flag.
|
||||
*
|
||||
* @default true
|
||||
*/
|
||||
isHttpOnly?: boolean;
|
||||
|
||||
/**
|
||||
* Login URI or function that returns a URI to redirect unauthenticated requests to.
|
||||
* Note that it will only trigger when the authentication mode is 'required'.
|
||||
|
||||
@@ -1,4 +0,0 @@
|
||||
import hasYarn = require('has-yarn');
|
||||
|
||||
// $ExpectType boolean
|
||||
hasYarn('foo');
|
||||
8
types/has-yarn/index.d.ts
vendored
8
types/has-yarn/index.d.ts
vendored
@@ -1,8 +0,0 @@
|
||||
// Type definitions for has-yarn 1.0
|
||||
// Project: https://github.com/sindresorhus/has-yarn#readme
|
||||
// Definitions by: BendingBender <https://github.com/BendgingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export = hasYarn;
|
||||
|
||||
declare function hasYarn(cwd?: string): boolean;
|
||||
@@ -1,19 +0,0 @@
|
||||
import hasha = require('hasha');
|
||||
|
||||
let str: string | null;
|
||||
let buf: Buffer | null;
|
||||
|
||||
str = hasha('unicorn');
|
||||
str = hasha('unicorn', {algorithm: 'md5'});
|
||||
str = hasha('unicorn', {algorithm: 'md5', encoding: 'latin1'});
|
||||
buf = hasha('unicorn', {algorithm: 'md5', encoding: 'buffer'});
|
||||
|
||||
process.stdin.pipe(hasha.stream()).pipe(process.stdout);
|
||||
|
||||
hasha.fromStream(process.stdin).then(hash => str = hash);
|
||||
hasha.fromStream(process.stdin, {encoding: 'hex'}).then(hash => str = hash);
|
||||
hasha.fromStream(process.stdin, {encoding: 'buffer'}).then(hash => buf = hash);
|
||||
|
||||
hasha.fromFile('unicorn.png').then(hash => str = hash);
|
||||
hasha.fromFile('unicorn.png', {encoding: 'base64'}).then(hash => str = hash);
|
||||
hasha.fromFile('unicorn.png', {encoding: 'buffer'}).then(hash => buf = hash);
|
||||
38
types/hasha/index.d.ts
vendored
38
types/hasha/index.d.ts
vendored
@@ -1,38 +0,0 @@
|
||||
// Type definitions for hasha 3.0
|
||||
// Project: https://github.com/sindresorhus/hasha
|
||||
// Definitions by: BendingBender <https://github.com/BendgingBender>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="node"/>
|
||||
import * as crypto from "crypto";
|
||||
|
||||
export = hasha;
|
||||
|
||||
declare function hasha(input: hasha.HashaInput): string;
|
||||
declare function hasha<E extends hasha.ToStringEncoding>(input: hasha.HashaInput, options: hasha.HashaOptions<E>): string;
|
||||
declare function hasha<E extends 'buffer'>(input: hasha.HashaInput, options: hasha.HashaOptions<E>): Buffer;
|
||||
|
||||
declare namespace hasha {
|
||||
type HashaInput = string | string[] | Buffer | Buffer[];
|
||||
type ToStringEncoding = 'hex' | 'base64' | 'latin1' | 'binary' | undefined;
|
||||
type HashaEncoding = ToStringEncoding | 'buffer';
|
||||
|
||||
interface HashaOptions<E extends HashaEncoding> {
|
||||
encoding?: E;
|
||||
algorithm?: string;
|
||||
}
|
||||
|
||||
function stream(options?: HashaOptions<HashaEncoding>): crypto.Hash;
|
||||
|
||||
function fromStream(stream: NodeJS.ReadableStream): Promise<string | null>;
|
||||
function fromStream<E extends ToStringEncoding>(stream: NodeJS.ReadableStream, options?: HashaOptions<E>): Promise<string | null>;
|
||||
function fromStream<E extends 'buffer'>(stream: NodeJS.ReadableStream, options?: HashaOptions<E>): Promise<Buffer | null>;
|
||||
|
||||
function fromFile(filePath: string): Promise<string | null>;
|
||||
function fromFile<E extends ToStringEncoding>(filePath: string, options: HashaOptions<E>): Promise<string | null>;
|
||||
function fromFile<E extends 'buffer'>(filePath: string, options: HashaOptions<E>): Promise<Buffer | null>;
|
||||
|
||||
function fromFileSync(filePath: string): string;
|
||||
function fromFileSync<E extends ToStringEncoding>(filePath: string, options: HashaOptions<E>): string;
|
||||
function fromFileSync<E extends 'buffer'>(filePath: string, options: HashaOptions<E>): Buffer;
|
||||
}
|
||||
@@ -1,23 +0,0 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"hasha-tests.ts"
|
||||
]
|
||||
}
|
||||
@@ -1,6 +0,0 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json",
|
||||
"rules": {
|
||||
"no-unnecessary-generics": false
|
||||
}
|
||||
}
|
||||
4
types/highcharts/index.d.ts
vendored
4
types/highcharts/index.d.ts
vendored
@@ -5965,6 +5965,10 @@ declare namespace Highcharts {
|
||||
* Define the visual z index of the series.
|
||||
*/
|
||||
zIndex?: number;
|
||||
/**
|
||||
* When using any indicators, Define the indicators name like 'candlesticksss'.
|
||||
*/
|
||||
linkedTo?: string;
|
||||
}
|
||||
|
||||
interface SeriesOptions extends IndividualSeriesOptions, SeriesChart { }
|
||||
|
||||
25
types/ink-select-input/index.d.ts
vendored
Normal file
25
types/ink-select-input/index.d.ts
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
// Type definitions for ink-select-input 2.0
|
||||
// Project: https://github.com/vadimdemedes/ink-select-input#readme
|
||||
// Definitions by: Łukasz Ostrowski <https://github.com/lukostry>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
import { Component, InkComponent } from 'ink';
|
||||
|
||||
interface ItemOfSelectInput {
|
||||
label: string;
|
||||
value: any;
|
||||
}
|
||||
|
||||
interface SelectInputProps<T extends ItemOfSelectInput = ItemOfSelectInput> {
|
||||
focus?: boolean;
|
||||
indicatorComponent?: InkComponent;
|
||||
itemComponent?: InkComponent;
|
||||
items?: ReadonlyArray<T>;
|
||||
limit?: number;
|
||||
onSelect?: (item: T) => void;
|
||||
}
|
||||
|
||||
declare class SelectInput extends Component<SelectInputProps> { }
|
||||
|
||||
export = SelectInput;
|
||||
32
types/ink-select-input/ink-select-input-tests.tsx
Normal file
32
types/ink-select-input/ink-select-input-tests.tsx
Normal file
@@ -0,0 +1,32 @@
|
||||
/** @jsx h */
|
||||
import { h, InkComponent } from 'ink';
|
||||
import SelectInput from 'ink-select-input';
|
||||
// NOTE: `import SelectInput = require('ink-select-input');` will work as well.
|
||||
// If importing using ES6 default import as above,
|
||||
// `allowSyntheticDefaultImports` flag in compiler options needs to be set to `true`
|
||||
|
||||
interface DemoItem {
|
||||
label: string;
|
||||
value: string;
|
||||
}
|
||||
|
||||
const items: ReadonlyArray<DemoItem> = [{
|
||||
label: 'First',
|
||||
value: 'first'
|
||||
},
|
||||
{
|
||||
label: 'Second',
|
||||
value: 'second'
|
||||
},
|
||||
{
|
||||
label: 'Third',
|
||||
value: 'third'
|
||||
}];
|
||||
|
||||
const Demo: InkComponent = () => {
|
||||
const handleSelect = (item: DemoItem) => {
|
||||
console.log(item);
|
||||
};
|
||||
|
||||
return <SelectInput items={items} onSelect={handleSelect} />;
|
||||
};
|
||||
@@ -1,13 +1,15 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"allowSyntheticDefaultImports": true,
|
||||
"jsx": "react",
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"strictNullChecks": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
@@ -18,6 +20,6 @@
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"filenamify-url-tests.ts"
|
||||
"ink-select-input-tests.tsx"
|
||||
]
|
||||
}
|
||||
323
types/intersects/index.d.ts
vendored
Normal file
323
types/intersects/index.d.ts
vendored
Normal file
@@ -0,0 +1,323 @@
|
||||
// Type definitions for intersects 2.5
|
||||
// Project: https://github.com/davidfig/intersects#readme
|
||||
// Definitions by: Voxylu <https://github.com/voxylu>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
export function boxBox(
|
||||
x1: number,
|
||||
y1: number,
|
||||
w1: number,
|
||||
h1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
w2: number,
|
||||
h2: number
|
||||
): boolean;
|
||||
|
||||
export function boxCircle(
|
||||
xb: number,
|
||||
yb: number,
|
||||
wb: number,
|
||||
hb: number,
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number
|
||||
): boolean;
|
||||
|
||||
export function boxEllipse(
|
||||
xb: number,
|
||||
yb: number,
|
||||
wb: number,
|
||||
hb: number,
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number
|
||||
): boolean;
|
||||
|
||||
export function boxLine(
|
||||
xb: number,
|
||||
yb: number,
|
||||
wb: number,
|
||||
hb: number,
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number
|
||||
): boolean;
|
||||
|
||||
export function boxPoint(
|
||||
x1: number,
|
||||
y1: number,
|
||||
w1: number,
|
||||
h1: number,
|
||||
x2: number,
|
||||
y2: number
|
||||
): boolean;
|
||||
|
||||
export function boxPolygon(
|
||||
xb: number,
|
||||
yb: number,
|
||||
wb: number,
|
||||
hb: number,
|
||||
points: number[]
|
||||
): boolean;
|
||||
|
||||
export function circleBox(
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number,
|
||||
xb: number,
|
||||
yb: number,
|
||||
wb: number,
|
||||
hb: number
|
||||
): boolean;
|
||||
|
||||
export function circleCircle(
|
||||
x1: number,
|
||||
y1: number,
|
||||
r1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
r2: number
|
||||
): boolean;
|
||||
|
||||
export function circleEllipse(
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number,
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number
|
||||
): boolean;
|
||||
|
||||
export function circleLine(
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number,
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number
|
||||
): boolean;
|
||||
|
||||
export function circlePoint(
|
||||
x1: number,
|
||||
y1: number,
|
||||
r1: number,
|
||||
x2: number,
|
||||
y2: number
|
||||
): boolean;
|
||||
|
||||
export function circlePolygon(
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number,
|
||||
points: number[]
|
||||
): boolean;
|
||||
|
||||
export function ellipseBox(
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number,
|
||||
xb: number,
|
||||
yb: number,
|
||||
wb: number,
|
||||
hb: number
|
||||
): boolean;
|
||||
|
||||
export function ellipseCircle(
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number,
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number
|
||||
): boolean;
|
||||
|
||||
export function ellipseEllipse(
|
||||
x1: number,
|
||||
y1: number,
|
||||
r1x: number,
|
||||
r1y: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
r2x: number,
|
||||
r2y: number
|
||||
): boolean;
|
||||
|
||||
export function ellipseLine(
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number,
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number
|
||||
): boolean;
|
||||
|
||||
export function ellipsePoint(
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number,
|
||||
x1: number,
|
||||
y1: number
|
||||
): boolean;
|
||||
|
||||
export function ellipsePolygon(
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number,
|
||||
points: number[]
|
||||
): boolean;
|
||||
|
||||
export function lineBox(
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
xb: number,
|
||||
yb: number,
|
||||
wb: number,
|
||||
hb: number
|
||||
): boolean;
|
||||
|
||||
export function lineCircle(
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number
|
||||
): boolean;
|
||||
|
||||
export function lineEllipse(
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number
|
||||
): boolean;
|
||||
|
||||
export function lineLine(
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
x3: number,
|
||||
y3: number,
|
||||
x4: number,
|
||||
y4: number
|
||||
): boolean;
|
||||
|
||||
export function linePoint(
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
xp: number,
|
||||
yp: number,
|
||||
tolerance: number
|
||||
): boolean;
|
||||
|
||||
export function linePolygon(
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
points: number[],
|
||||
tolerance: number
|
||||
): boolean;
|
||||
|
||||
export function pointBox(
|
||||
x1: number,
|
||||
y1: number,
|
||||
xb: number,
|
||||
yb: number,
|
||||
wb: number,
|
||||
hb: number
|
||||
): boolean;
|
||||
|
||||
export function pointCircle(
|
||||
x1: number,
|
||||
y1: number,
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number
|
||||
): boolean;
|
||||
|
||||
export function pointEllipse(
|
||||
x1: number,
|
||||
y1: number,
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number
|
||||
): boolean;
|
||||
|
||||
export function pointLine(
|
||||
xp: number,
|
||||
yp: number,
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number
|
||||
): boolean;
|
||||
|
||||
export function pointPolygon(
|
||||
x1: number,
|
||||
y1: number,
|
||||
points: number[],
|
||||
tolerance: number
|
||||
): boolean;
|
||||
|
||||
export function polygonBox(
|
||||
points: number[],
|
||||
x: number,
|
||||
y: number,
|
||||
w: number,
|
||||
h: number
|
||||
): boolean;
|
||||
|
||||
export function polygonCircle(
|
||||
points: number[],
|
||||
xc: number,
|
||||
yc: number,
|
||||
rc: number
|
||||
): boolean;
|
||||
|
||||
export function polygonEllipse(
|
||||
points: number[],
|
||||
xe: number,
|
||||
ye: number,
|
||||
rex: number,
|
||||
rey: number
|
||||
): boolean;
|
||||
|
||||
export function polygonLine(
|
||||
points: number[],
|
||||
x1: number,
|
||||
y1: number,
|
||||
x2: number,
|
||||
y2: number,
|
||||
tolerance: number
|
||||
): boolean;
|
||||
|
||||
export function polygonPoint(
|
||||
points: number[],
|
||||
x: number,
|
||||
y: number,
|
||||
tolerance: number
|
||||
): boolean;
|
||||
|
||||
export function polygonPolygon(points1: number[], points2: number[]): boolean;
|
||||
12
types/intersects/intersects-tests.ts
Normal file
12
types/intersects/intersects-tests.ts
Normal file
@@ -0,0 +1,12 @@
|
||||
import { polygonBox, pointLine, circleEllipse } from 'intersects';
|
||||
|
||||
const res = polygonBox([2, 0, 4, 2, 0, 2], 1, 1, 2, 2);
|
||||
if (res) {
|
||||
// do something
|
||||
}
|
||||
|
||||
if (pointLine(0, 8, -5, 4, 7, 6)) {
|
||||
// do agian something
|
||||
}
|
||||
|
||||
const isGood = circleEllipse(0, 6, 9, 2, 4, 5, 1) ? 'yes' : 'no';
|
||||
@@ -12,5 +12,5 @@
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"strictFunctionTypes": true
|
||||
},
|
||||
"files": ["index.d.ts", "p-memoize-tests.ts"]
|
||||
"files": ["index.d.ts", "intersects-tests.ts"]
|
||||
}
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user