@definitelytyped/dts-critic 0.0.110 → 0.0.112-next.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.full.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/parsimmon/index.d.ts","../../typescript-versions/dist/index.d.ts","../../header-parser/dist/index.d.ts","../../../node_modules/@types/semver/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/ts3.6/base.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/base.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/rimraf/index.d.ts","../../../node_modules/@types/command-exists/index.d.ts","../../../node_modules/typescript/lib/typescript.d.ts","../../../node_modules/@types/tmp/index.d.ts","../index.ts","../develop.ts","../../../node_modules/@types/strip-json-comments/index.d.ts","../dt.ts","../../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../node_modules/jest-diff/build/types.d.ts","../../../node_modules/jest-diff/build/diffLines.d.ts","../../../node_modules/jest-diff/build/printDiffs.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/pretty-format/build/types.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/jest/ts3.2/index.d.ts","../index.test.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"32b8443be144970b813b9dd72dcdba2059fbdfdae4d3a50c4d8a158ed6057bbe","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","2893564a05d3bbe2a4d812dfd5ad3d7a6981a754283b695272d6ead03f638b67","19b32dcf848f5a494e0220509b2ce6bb5f85ef8d82ed1d48d1c4c255133a2936","fc2d14a3ead15a52a6f000148c4d89b1fd0d8d80b5773ec634aee079ec6c7648","4a825b1e80b4bd281b0e1945c6b814ff8b7d047e324227a1b2208ef06c2a8897","87352bb579421f6938177a53bb66e8514067b4872ccaa5fe08ddbca56364570c",{"version":"25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d","affectsGlobalScope":true},"d20f08527645f62facb2d66c2b7bd31ea964b59c897d00bddb1efe8c13890b72","5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1","674bedbfd2004e233e2a266a3d2286e524f0d58787a98522d834d6ccda1d215a","714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef",{"version":"23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096","affectsGlobalScope":true},"0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83","d53b352a01645c470a0d8c31bf290ba791fc28ade0ce187a4a50f5c2f826f75e","5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed","2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317",{"version":"06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70","affectsGlobalScope":true},{"version":"bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb","affectsGlobalScope":true},"a106a0bea088b70879ac88ff606dc253c0cc474ea05ad3a282b8bfb1091ae576","c98ce957db9eebd75f53edda3f6893e05ab2d2283b5667b18e31bcdb6427ed10","1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7","9aff68f1b847b846d3d50a58c9f8f99389bedd0258d1b1c201f11b97ecfd36f8","1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba","05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466","8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340","f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657","32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc","0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca","ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f",{"version":"06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e","affectsGlobalScope":true},"a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8","f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3","73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da","8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71","d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25","94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa","2d713cbcbd5bcc38d91546eaeea7bb1c8686dc4a2995a28556d957b1b9de11d9","bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3","0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a","3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837","631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9","2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7","da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14","141a943e5690105898a67537a470f70b56d0e183441b56051d929e902376b7b2","ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877","515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf","ae68a04912ee5a0f589276f9ec60b095f8c40d48128a4575b3fdd7d93806931c","19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","9c4c395e927045b324877acdc4bfb95f128f36bc9f073266a2f0342495075a4f","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","c9a517452529a17888b3bf8e2722d2b38edc80ba4dbbd7f01cdb0ff8596320b2","bbfbfa714a8f9fdf10e9483b4abd82ccb546fc0fc069ad80d0a254fa40930e98","7f647733e485f6d60b6f810609624e1fb6a17de177dbe91815145f18ea85500f","cb4e3cdb76aaeeff876966d8cfcd39c72429a639b86828a9c5582f83e6b539bc","6c4deecb50044ea86ece0347ab55a0b48f769c553f8010fb42af2d4ae4f54513","ab6aa3a65d473871ee093e3b7b71ed0f9c69e07d1d4295f45c9efd91a771241d","e2ff3c637446d324b9a037eeee4a6e1642107d7807800b68dcdbad427594d9b5","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true},"cbddcc417865b0a8e5ebee1383102e4a8c9b4c8f758a776dff3a0b9dca231e78"],"options":{"allowUnreachableCode":false,"allowUnusedLabels":false,"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[50,51,84,85],[99,101],[102],[82],[40],[81,82],[41],[42,50,51,58,67],[42,43,50,58],[74],[45,46,51,59],[46,67],[47,48,50,58],[48],[49,50],[50],[50,51,52,67,73],[51,52],[53,58,67,73],[50,51,53,54,58,67,70,73],[53,55,70,73],[83],[50,56],[57,73],[48,50,58,67],[59],[60],[40,61],[72],[63],[64],[50,65],[65,66,74,76],[50,67],[68],[69],[58,70],[71],[39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],[58,72],[64,73],[67,75],[76],[80],[50,52,67,73,76,77],[67,78],[51,84,86],[33],[95,96],[95,96,97,98],[100],[34,37,42,51,60,91],[51,91,93],[91,103],[34,37,38,42,51,59,60,87,88,89,90],[35,36]],"referencedMap":[[86,1],[102,2],[103,3],[82,4],[40,5],[83,6],[41,7],[42,8],[43,9],[44,10],[45,11],[46,12],[47,13],[48,14],[49,15],[50,16],[51,17],[52,18],[53,19],[54,20],[55,21],[84,22],[56,23],[57,24],[58,25],[59,26],[60,27],[61,28],[62,29],[63,30],[64,31],[65,32],[66,33],[67,34],[68,35],[69,36],[70,37],[71,38],[81,39],[72,40],[73,41],[74,10],[75,42],[76,43],[80,44],[77,45],[78,46],[87,47],[34,48],[97,49],[99,50],[98,49],[101,51],[92,52],[94,53],[104,54],[91,55],[37,56]],"exportedModulesMap":[[86,1],[102,2],[103,3],[82,4],[40,5],[83,6],[41,7],[42,8],[43,9],[44,10],[45,11],[46,12],[47,13],[48,14],[49,15],[50,16],[51,17],[52,18],[53,19],[54,20],[55,21],[84,22],[56,23],[57,24],[58,25],[59,26],[60,27],[61,28],[62,29],[63,30],[64,31],[65,32],[66,33],[67,34],[68,35],[69,36],[70,37],[71,38],[81,39],[72,40],[73,41],[74,10],[75,42],[76,43],[80,44],[77,45],[78,46],[87,47],[34,48],[97,49],[99,50],[98,49],[101,51],[92,52],[94,53],[104,54],[91,55],[37,56]],"semanticDiagnosticsPerFile":[88,86,102,103,85,82,40,83,41,42,43,44,45,46,47,48,49,50,51,52,39,79,53,54,55,84,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,81,72,73,74,75,76,80,77,78,35,87,38,93,90,33,34,95,97,99,98,96,101,100,6,7,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,32,27,28,29,30,1,31,9,8,89,92,94,104,91,37,36]},"version":"4.5.5"}
1
+ {"program":{"fileNames":["../../../node_modules/typescript/lib/lib.es5.d.ts","../../../node_modules/typescript/lib/lib.es2015.d.ts","../../../node_modules/typescript/lib/lib.es2016.d.ts","../../../node_modules/typescript/lib/lib.es2017.d.ts","../../../node_modules/typescript/lib/lib.es2018.d.ts","../../../node_modules/typescript/lib/lib.dom.d.ts","../../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../../../node_modules/typescript/lib/lib.scripthost.d.ts","../../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../../node_modules/typescript/lib/lib.es2018.full.d.ts","../../../node_modules/@types/yargs-parser/index.d.ts","../../../node_modules/@types/yargs/index.d.ts","../../../node_modules/@types/parsimmon/index.d.ts","../../typescript-versions/dist/index.d.ts","../../header-parser/dist/index.d.ts","../../../node_modules/@types/semver/index.d.ts","../../../node_modules/@types/node/globals.d.ts","../../../node_modules/@types/node/async_hooks.d.ts","../../../node_modules/@types/node/buffer.d.ts","../../../node_modules/@types/node/child_process.d.ts","../../../node_modules/@types/node/cluster.d.ts","../../../node_modules/@types/node/console.d.ts","../../../node_modules/@types/node/constants.d.ts","../../../node_modules/@types/node/crypto.d.ts","../../../node_modules/@types/node/dgram.d.ts","../../../node_modules/@types/node/dns.d.ts","../../../node_modules/@types/node/domain.d.ts","../../../node_modules/@types/node/events.d.ts","../../../node_modules/@types/node/fs.d.ts","../../../node_modules/@types/node/fs/promises.d.ts","../../../node_modules/@types/node/http.d.ts","../../../node_modules/@types/node/http2.d.ts","../../../node_modules/@types/node/https.d.ts","../../../node_modules/@types/node/inspector.d.ts","../../../node_modules/@types/node/module.d.ts","../../../node_modules/@types/node/net.d.ts","../../../node_modules/@types/node/os.d.ts","../../../node_modules/@types/node/path.d.ts","../../../node_modules/@types/node/perf_hooks.d.ts","../../../node_modules/@types/node/process.d.ts","../../../node_modules/@types/node/punycode.d.ts","../../../node_modules/@types/node/querystring.d.ts","../../../node_modules/@types/node/readline.d.ts","../../../node_modules/@types/node/repl.d.ts","../../../node_modules/@types/node/stream.d.ts","../../../node_modules/@types/node/string_decoder.d.ts","../../../node_modules/@types/node/timers.d.ts","../../../node_modules/@types/node/tls.d.ts","../../../node_modules/@types/node/trace_events.d.ts","../../../node_modules/@types/node/tty.d.ts","../../../node_modules/@types/node/url.d.ts","../../../node_modules/@types/node/util.d.ts","../../../node_modules/@types/node/v8.d.ts","../../../node_modules/@types/node/vm.d.ts","../../../node_modules/@types/node/worker_threads.d.ts","../../../node_modules/@types/node/zlib.d.ts","../../../node_modules/@types/node/globals.global.d.ts","../../../node_modules/@types/node/wasi.d.ts","../../../node_modules/@types/node/ts3.6/base.d.ts","../../../node_modules/@types/node/assert.d.ts","../../../node_modules/@types/node/base.d.ts","../../../node_modules/@types/node/index.d.ts","../../../node_modules/@types/minimatch/index.d.ts","../../../node_modules/@types/glob/index.d.ts","../../../node_modules/@types/rimraf/index.d.ts","../../../node_modules/@types/command-exists/index.d.ts","../../../node_modules/typescript/lib/typescript.d.ts","../../../node_modules/@types/tmp/index.d.ts","../index.ts","../develop.ts","../../../node_modules/@types/strip-json-comments/index.d.ts","../dt.ts","../../../node_modules/jest-diff/build/cleanupSemantic.d.ts","../../../node_modules/jest-diff/build/types.d.ts","../../../node_modules/jest-diff/build/diffLines.d.ts","../../../node_modules/jest-diff/build/printDiffs.d.ts","../../../node_modules/jest-diff/build/index.d.ts","../../../node_modules/pretty-format/build/types.d.ts","../../../node_modules/pretty-format/build/index.d.ts","../../../node_modules/@types/jest/index.d.ts","../../../node_modules/@types/jest/ts3.2/index.d.ts","../index.test.ts"],"fileInfos":[{"version":"89f78430e422a0f06d13019d60d5a45b37ec2d28e67eb647f73b1b0d19a46b72","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"abba1071bfd89e55e88a054b0c851ea3e8a494c340d0f3fab19eb18f6afb0c9e","affectsGlobalScope":true},{"version":"927cb2b60048e1395b183bf74b2b80a75bdb1dbe384e1d9fac654313ea2fb136","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"d8996609230d17e90484a2dd58f22668f9a05a3bfe00bfb1d6271171e54a31fb","affectsGlobalScope":true},{"version":"43fb1d932e4966a39a41b464a12a81899d9ae5f2c829063f5571b6b87e6d2f9c","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"4378fc8122ec9d1a685b01eb66c46f62aba6b239ca7228bb6483bcf8259ee493","affectsGlobalScope":true},{"version":"0d5f52b3174bee6edb81260ebcd792692c32c81fd55499d69531496f3f2b25e7","affectsGlobalScope":true},{"version":"810627a82ac06fb5166da5ada4159c4ec11978dfbb0805fe804c86406dab8357","affectsGlobalScope":true},{"version":"62d80405c46c3f4c527ee657ae9d43fda65a0bf582292429aea1e69144a522a6","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"75ec0bdd727d887f1b79ed6619412ea72ba3c81d92d0787ccb64bab18d261f14","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"12a310447c5d23c7d0d5ca2af606e3bd08afda69100166730ab92c62999ebb9d","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"1b3fe904465430e030c93239a348f05e1be80640d91f2f004c3512c2c2c89f34","affectsGlobalScope":true},{"version":"10bbdc1981b8d9310ee75bfac28ee0477bb2353e8529da8cff7cb26c409cb5e8","affectsGlobalScope":true},"32b8443be144970b813b9dd72dcdba2059fbdfdae4d3a50c4d8a158ed6057bbe","f7e133b20ee2669b6c0e5d7f0cd510868c57cd64b283e68c7f598e30ce9d76d2","2893564a05d3bbe2a4d812dfd5ad3d7a6981a754283b695272d6ead03f638b67","19b32dcf848f5a494e0220509b2ce6bb5f85ef8d82ed1d48d1c4c255133a2936","483459a7490e7f82203422961e2ceb0c0a139bc41d8454c7f1e210774bd1738d","4a825b1e80b4bd281b0e1945c6b814ff8b7d047e324227a1b2208ef06c2a8897","87352bb579421f6938177a53bb66e8514067b4872ccaa5fe08ddbca56364570c",{"version":"25b4a0c4fab47c373ee49df4c239826ee3430019fc0c1b5e59edc3e398b7468d","affectsGlobalScope":true},"d20f08527645f62facb2d66c2b7bd31ea964b59c897d00bddb1efe8c13890b72","5726b5ce952dc5beaeb08d5f64236632501568a54a390363d2339ba1dc5393b1","674bedbfd2004e233e2a266a3d2286e524f0d58787a98522d834d6ccda1d215a","714637d594e1a38a075091fe464ca91c6abc0b154784b4287f6883200e28ccef",{"version":"23edba5f47d3409810c563fe8034ae2c59e718e1ef8570f4152ccdde1915a096","affectsGlobalScope":true},"0e9c55f894ca2d9cf63b5b0d43a8cec1772dd560233fd16275bc7a485eb82f83","d53b352a01645c470a0d8c31bf290ba791fc28ade0ce187a4a50f5c2f826f75e","5f0a09de75bd965c21dc6d73671ba88830272f9ed62897bb0aa9754b369b1eed","2b34e7fcba9e1f24e7f54ba5c8be5a8895b0b8b444ccf6548e04acdee0899317",{"version":"06d2be99c3dd2ff52114d02ee443ba486ab482423df1941d3c97d6a92e924d70","affectsGlobalScope":true},{"version":"bfd4f140c07091b5e8a963c89e6fa3f44b6cfcbc11471b465cf63e2d020ad0eb","affectsGlobalScope":true},"a106a0bea088b70879ac88ff606dc253c0cc474ea05ad3a282b8bfb1091ae576","c98ce957db9eebd75f53edda3f6893e05ab2d2283b5667b18e31bcdb6427ed10","1f08bd8305d4a789a68f71ab622156dfff993aa51a2aa58b9ccf166cc6f9fcf7","9aff68f1b847b846d3d50a58c9f8f99389bedd0258d1b1c201f11b97ecfd36f8","1978992206803f5761e99e893d93b25abc818c5fe619674fdf2ae02b29f641ba","05fbe81f09fc455a2c343d2458d2b3c600c90b92b22926be765ee79326be9466","8e7d6dae9e19bbe47600dcfd4418db85b30ae7351474ea0aad5e628f9845d340","f20ea392f7f27feb7a90e5a24319a4e365b07bf83c39a547711fe7ff9df68657","32542c4660ecda892a333a533feedba31738ee538ef6a78eb73af647137bc3fc","0ecacea5047d1a7d350e7049dbd22f26435be5e8736a81a56afec5b3264db1ca","ffcb4ebde21f83370ed402583888b28651d2eb7f05bfec9482eb46d82adedd7f",{"version":"06c004006016a51c4d1855527a523562c329dc44c473931c65f10373281f730e","affectsGlobalScope":true},"a7b43c69f9602d198825e403ee34e5d64f83c48b391b2897e8c0e6f72bca35f8","f4a3fc4efc6944e7b7bd4ccfa45e0df68b6359808e6cf9d061f04fd964a7b2d3","73cad675aead7a2c05cf934e7e700c61d84b2037ac1d576c3f751199b25331da","8c3137ba3583ec18484429ec1c8eff89efdc42730542f157b38b102fdccc0c71","d84300d886b45a198c346158e4ff7ae361cc7bc1c3deab44afb3db7de56b5d25","94ca7beec4e274d32362b54e0133152f7b4be9487db7b005070c03880b6363aa","2d713cbcbd5bcc38d91546eaeea7bb1c8686dc4a2995a28556d957b1b9de11d9","bbf21f210782db4193359010a4710786add43e3b50aa42fc0d371f45b4e4d8d3","0b7733d83619ac4e3963e2a9f7c75dc1e9af6850cb2354c9554977813092c10a","3ce933f0c3955f67f67eb7d6b5c83c2c54a18472c1d6f2bb651e51dd40c84837","631e96db896d645f7132c488ad34a16d71fd2be9f44696f8c98289ee1c8cbfa9","2c77230d381cba81eb6f87cda2fbfff6c0427c6546c2e2590110effff37c58f7","da86ee9a2f09a4583db1d5e37815894967e1f694ad9f3c25e84e0e4d40411e14","141a943e5690105898a67537a470f70b56d0e183441b56051d929e902376b7b2","ddc086b1adac44e2fccf55422da1e90fa970e659d77f99712422a421564b4877","515ef1d99036ff0dafa5bf738e02222edea94e0d97a0aa0ff277ac5e96b57977",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"780058f4a804c8bdcdd2f60e7af64b2bc57d149c1586ee3db732a84d659a50bf","ae68a04912ee5a0f589276f9ec60b095f8c40d48128a4575b3fdd7d93806931c","19d580a3b42ad5caeaee266ae958260e23f2df0549ee201c886c8bd7a4f01d4e","e61a21e9418f279bc480394a94d1581b2dee73747adcbdef999b6737e34d721b","9c4c395e927045b324877acdc4bfb95f128f36bc9f073266a2f0342495075a4f","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","fd326577c62145816fe1acc306c734c2396487f76719d3785d4e825b34540b33","f4cf5f0ad1cfb0ceebbe4fbe8aaf0aa728e899c99cc36ec6c0c4b8f6e8a84c83","c9a517452529a17888b3bf8e2722d2b38edc80ba4dbbd7f01cdb0ff8596320b2","bbfbfa714a8f9fdf10e9483b4abd82ccb546fc0fc069ad80d0a254fa40930e98","7f647733e485f6d60b6f810609624e1fb6a17de177dbe91815145f18ea85500f","761745f7b38824c8b79fdc7ce6051e9fedab4d4b8ce35fa8af0f91151e893922","a80070be3e8b2e3de84d0ecf33fd906d0b825a72720a40a2eb9c6270a2f9fe82","ab6aa3a65d473871ee093e3b7b71ed0f9c69e07d1d4295f45c9efd91a771241d","e2ff3c637446d324b9a037eeee4a6e1642107d7807800b68dcdbad427594d9b5","e222104af6cb9415238ad358488b74d76eceeff238c1268ec6e85655b05341da","69da61a7b5093dac77fa3bec8be95dcf9a74c95a0e9161edb98bb24e30e439d2","eba230221317c985ab1953ccc3edc517f248b37db4fef7875cb2c8d08aff7be7","b83e796810e475da3564c6515bc0ae9577070596a33d89299b7d99f94ecfd921","b4439890c168d646357928431100daac5cbdee1d345a34e6bf6eca9f3abe22bc","5d72971a459517c44c1379dab9ed248e87a61ba0a1e0f25c9d67e1e640cd9a09","02d734976af36f4273d930bea88b3e62adf6b078cf120c1c63d49aa8d8427c5c",{"version":"f624e578325b8c58e55b30c998b1f4c3ec1b61a9fa66373da4250c89b7880d44","affectsGlobalScope":true},{"version":"d3002f620eab4bf6476c9da5c0efb2041d46f7df8b3032a5631bd206abef2c75","affectsGlobalScope":true},"2251b45cd952140bf6e6739fd80b91b6844e3a8753b1922c37a82add91a1976f"],"options":{"allowUnreachableCode":false,"allowUnusedLabels":false,"composite":true,"declaration":true,"esModuleInterop":true,"module":1,"noFallthroughCasesInSwitch":true,"noImplicitReturns":true,"noUnusedLocals":true,"noUnusedParameters":true,"outDir":"./","sourceMap":true,"strict":true,"target":5},"fileIdsList":[[50,51,84,85],[99,101],[102],[82],[40],[81,82],[41],[42,50,51,58,67],[42,43,50,58],[74],[45,46,51,59],[46,67],[47,48,50,58],[48],[49,50],[50],[50,51,52,67,73],[51,52],[53,58,67,73],[50,51,53,54,58,67,70,73],[53,55,70,73],[83],[50,56],[57,73],[48,50,58,67],[59],[60],[40,61],[72],[63],[64],[50,65],[65,66,74,76],[50,67],[68],[69],[58,70],[71],[39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80],[58,72],[64,73],[67,75],[76],[80],[50,52,67,73,76,77],[67,78],[51,84,86],[33],[95,96],[95,96,97,98],[100],[34,37,42,51,60,91],[51,91,93],[91,103],[34,37,38,42,51,59,60,87,88,89,90],[35,36]],"referencedMap":[[86,1],[102,2],[103,3],[82,4],[40,5],[83,6],[41,7],[42,8],[43,9],[44,10],[45,11],[46,12],[47,13],[48,14],[49,15],[50,16],[51,17],[52,18],[53,19],[54,20],[55,21],[84,22],[56,23],[57,24],[58,25],[59,26],[60,27],[61,28],[62,29],[63,30],[64,31],[65,32],[66,33],[67,34],[68,35],[69,36],[70,37],[71,38],[81,39],[72,40],[73,41],[74,10],[75,42],[76,43],[80,44],[77,45],[78,46],[87,47],[34,48],[97,49],[99,50],[98,49],[101,51],[92,52],[94,53],[104,54],[91,55],[37,56]],"exportedModulesMap":[[86,1],[102,2],[103,3],[82,4],[40,5],[83,6],[41,7],[42,8],[43,9],[44,10],[45,11],[46,12],[47,13],[48,14],[49,15],[50,16],[51,17],[52,18],[53,19],[54,20],[55,21],[84,22],[56,23],[57,24],[58,25],[59,26],[60,27],[61,28],[62,29],[63,30],[64,31],[65,32],[66,33],[67,34],[68,35],[69,36],[70,37],[71,38],[81,39],[72,40],[73,41],[74,10],[75,42],[76,43],[80,44],[77,45],[78,46],[87,47],[34,48],[97,49],[99,50],[98,49],[101,51],[92,52],[94,53],[104,54],[91,55],[37,56]],"semanticDiagnosticsPerFile":[88,86,102,103,85,82,40,83,41,42,43,44,45,46,47,48,49,50,51,52,39,79,53,54,55,84,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,81,72,73,74,75,76,80,77,78,35,87,38,93,90,33,34,95,97,99,98,96,101,100,6,7,11,10,2,12,13,14,15,16,17,18,19,3,4,23,20,21,22,24,25,26,5,32,27,28,29,30,1,31,9,8,89,92,94,104,91,37,36]},"version":"4.5.5"}
package/index.test.ts CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  dtsCritic,
8
8
  checkSource,
9
9
  ErrorKind,
10
- ExportErrorKind
10
+ ExportErrorKind,
11
11
  } from "./index";
12
12
 
13
13
  function suite(description: string, tests: { [s: string]: () => void }) {
@@ -33,19 +33,19 @@ suite("findDtsName", {
33
33
  },
34
34
  emptyDirectory() {
35
35
  expect(findDtsName("")).toBe("DefinitelyTyped-tools");
36
- }
36
+ },
37
37
  });
38
38
  suite("getNpmInfo", {
39
39
  nonNpm() {
40
- expect(getNpmInfo("parseltongue")).toEqual({ isNpm: false });
40
+ expect(getNpmInfo("wenceslas")).toEqual({ isNpm: false });
41
41
  },
42
42
  npm() {
43
43
  expect(getNpmInfo("typescript")).toEqual({
44
44
  isNpm: true,
45
45
  versions: expect.arrayContaining(["3.7.5"]),
46
- tags: expect.objectContaining({ latest: expect.stringContaining("") })
46
+ tags: expect.objectContaining({ latest: expect.stringContaining("") }),
47
47
  });
48
- }
48
+ },
49
49
  });
50
50
  suite("dtToNpmName", {
51
51
  nonScoped() {
@@ -53,7 +53,7 @@ suite("dtToNpmName", {
53
53
  },
54
54
  scoped() {
55
55
  expect(dtToNpmName("babel__core")).toBe("@babel/core");
56
- }
56
+ },
57
57
  });
58
58
  suite("parseExportErrorKind", {
59
59
  existent() {
@@ -64,7 +64,7 @@ suite("parseExportErrorKind", {
64
64
  },
65
65
  nonexistent() {
66
66
  expect(parseExportErrorKind("FakeError")).toBe(undefined);
67
- }
67
+ },
68
68
  });
69
69
 
70
70
  const allErrors: Map<ExportErrorKind, true> = new Map([
@@ -73,7 +73,7 @@ const allErrors: Map<ExportErrorKind, true> = new Map([
73
73
  [ErrorKind.JsSignatureNotInDts, true],
74
74
  [ErrorKind.DtsSignatureNotInJs, true],
75
75
  [ErrorKind.DtsPropertyNotInJs, true],
76
- [ErrorKind.JsPropertyNotInDts, true]
76
+ [ErrorKind.JsPropertyNotInDts, true],
77
77
  ]);
78
78
 
79
79
  function testsource(filename: string) {
@@ -100,8 +100,8 @@ suite("checkSource", {
100
100
  {
101
101
  kind: ErrorKind.JsPropertyNotInDts,
102
102
  message: `The declaration doesn't match the JavaScript module 'missingJsProperty'. Reason:
103
- The JavaScript module exports a property named 'foo', which is missing from the declaration module.`
104
- }
103
+ The JavaScript module exports a property named 'foo', which is missing from the declaration module.`,
104
+ },
105
105
  ])
106
106
  );
107
107
  },
@@ -133,9 +133,9 @@ The JavaScript module exports a property named 'foo', which is missing from the
133
133
  The declaration module exports a property named 'foo', which is missing from the JavaScript module.`,
134
134
  position: {
135
135
  start: 65,
136
- length: 11
137
- }
138
- }
136
+ length: 11,
137
+ },
138
+ },
139
139
  ])
140
140
  );
141
141
  },
@@ -159,9 +159,9 @@ The most common way to resolve this error is to use 'export =' syntax instead of
159
159
  To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require.`,
160
160
  position: {
161
161
  start: 0,
162
- length: 32
163
- }
164
- }
162
+ length: 33,
163
+ },
164
+ },
165
165
  ])
166
166
  );
167
167
  },
@@ -179,8 +179,8 @@ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/h
179
179
  {
180
180
  kind: ErrorKind.JsSignatureNotInDts,
181
181
  message: `The declaration doesn't match the JavaScript module 'missingJsSignatureExportEquals'. Reason:
182
- The JavaScript module can be called or constructed, but the declaration module cannot.`
183
- }
182
+ The JavaScript module can be called or constructed, but the declaration module cannot.`,
183
+ },
184
184
  ])
185
185
  );
186
186
  },
@@ -201,8 +201,8 @@ The JavaScript module can be called or constructed, but the declaration module c
201
201
  The JavaScript module can be called or constructed, but the declaration module cannot.
202
202
 
203
203
  The most common way to resolve this error is to use 'export =' syntax.
204
- To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require.`
205
- }
204
+ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require.`,
205
+ },
206
206
  ])
207
207
  );
208
208
  },
@@ -220,8 +220,8 @@ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/h
220
220
  {
221
221
  kind: ErrorKind.DtsSignatureNotInJs,
222
222
  message: `The declaration doesn't match the JavaScript module 'missingDtsSignature'. Reason:
223
- The declaration module can be called or constructed, but the JavaScript module cannot.`
224
- }
223
+ The declaration module can be called or constructed, but the JavaScript module cannot.`,
224
+ },
225
225
  ])
226
226
  );
227
227
  },
@@ -241,18 +241,18 @@ The declaration module can be called or constructed, but the JavaScript module c
241
241
  message: `The declaration doesn't match the JavaScript module 'missingExportEquals'. Reason:
242
242
  The declaration should use 'export =' syntax because the JavaScript source uses 'module.exports =' syntax and 'module.exports' can be called or constructed.
243
243
 
244
- To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require.`
245
- }
244
+ To learn more about 'export =' syntax, see https://www.typescriptlang.org/docs/handbook/modules.html#export--and-import--require.`,
245
+ },
246
246
  ])
247
247
  );
248
- }
248
+ },
249
249
  });
250
250
  suite("dtsCritic", {
251
251
  noErrors() {
252
252
  expect(dtsCritic(testsource("dts-critic.d.ts"), testsource("dts-critic.js"))).toEqual([]);
253
253
  },
254
254
  noMatchingNpmPackage() {
255
- expect(dtsCritic(testsource("parseltongue.d.ts"))).toEqual([
255
+ expect(dtsCritic(testsource("wenceslas.d.ts"))).toEqual([
256
256
  {
257
257
  kind: ErrorKind.NoMatchingNpmPackage,
258
258
  message: `Declaration file must have a matching npm package.
@@ -261,10 +261,10 @@ To resolve this error, either:
261
261
  2. Add a Definitely Typed header with the first line
262
262
 
263
263
 
264
- // Type definitions for non-npm package parseltongue-browser
264
+ // Type definitions for non-npm package wenceslas-browser
265
265
 
266
- Add -browser to the end of your name to make sure it doesn't conflict with existing npm packages.`
267
- }
266
+ Add -browser to the end of your name to make sure it doesn't conflict with existing npm packages.`,
267
+ },
268
268
  ]);
269
269
  },
270
270
  noMatchingNpmVersion() {
@@ -272,8 +272,8 @@ Add -browser to the end of your name to make sure it doesn't conflict with exist
272
272
  {
273
273
  kind: ErrorKind.NoMatchingNpmVersion,
274
274
  message: expect.stringContaining(`The types for 'typescript' must match a version that exists on npm.
275
- You should copy the major and minor version from the package on npm.`)
276
- }
275
+ You should copy the major and minor version from the package on npm.`),
276
+ },
277
277
  ]);
278
278
  },
279
279
  nonNpmHasMatchingPackage() {
@@ -284,8 +284,8 @@ You should copy the major and minor version from the package on npm.`)
284
284
  Try adding -browser to the end of the name to get
285
285
 
286
286
  tslib-browser
287
- `
288
- }
287
+ `,
288
+ },
289
289
  ]);
290
- }
290
+ },
291
291
  });
package/index.ts CHANGED
@@ -28,14 +28,14 @@ export enum ErrorKind {
28
28
  /** JavaScript module has signatures, but declaration module does not. */
29
29
  JsSignatureNotInDts = "JsSignatureNotInDts",
30
30
  /** Declaration module has signatures, but JavaScript module does not. */
31
- DtsSignatureNotInJs = "DtsSignatureNotInJs"
31
+ DtsSignatureNotInJs = "DtsSignatureNotInJs",
32
32
  }
33
33
 
34
34
  export enum Mode {
35
35
  /** Checks based only on the package name and on the declaration's DefinitelyTyped header. */
36
36
  NameOnly = "name-only",
37
37
  /** Checks based on the source JavaScript code, in addition to the checks performed in name-only mode. */
38
- Code = "code"
38
+ Code = "code",
39
39
  }
40
40
 
41
41
  export function parseMode(mode: string): Mode | undefined {
@@ -150,23 +150,23 @@ function main() {
150
150
  )
151
151
  .option("dts", {
152
152
  describe: "Path of declaration file to be critiqued.",
153
- type: "string"
153
+ type: "string",
154
154
  })
155
155
  .demandOption("dts", "Please provide a path to a d.ts file for me to critique.")
156
156
  .option("js", {
157
157
  describe: "Path of JavaScript file to be used as source.",
158
- type: "string"
158
+ type: "string",
159
159
  })
160
160
  .option("mode", {
161
161
  describe: "Mode defines what checks will be performed.",
162
162
  type: "string",
163
163
  default: Mode.NameOnly,
164
- choices: [Mode.NameOnly, Mode.Code]
164
+ choices: [Mode.NameOnly, Mode.Code],
165
165
  })
166
166
  .option("debug", {
167
167
  describe: "Turn debug logging on.",
168
168
  type: "boolean",
169
- default: false
169
+ default: false,
170
170
  })
171
171
  .help().argv;
172
172
 
@@ -193,7 +193,7 @@ const npmNotFound = "E404";
193
193
  export function getNpmInfo(name: string): NpmInfo {
194
194
  const npmName = dtToNpmName(name);
195
195
  const infoResult = cp.spawnSync("npm", ["info", npmName, "--json", "--silent", "versions", "dist-tags"], {
196
- encoding: "utf8"
196
+ encoding: "utf8",
197
197
  });
198
198
  const info = JSON.parse(infoResult.stdout || infoResult.stderr);
199
199
  if (info.error !== undefined) {
@@ -209,7 +209,7 @@ export function getNpmInfo(name: string): NpmInfo {
209
209
  return {
210
210
  isNpm: true,
211
211
  versions: info.versions as string[],
212
- tags: info["dist-tags"] as { [tag: string]: string | undefined }
212
+ tags: info["dist-tags"] as { [tag: string]: string | undefined },
213
213
  };
214
214
  }
215
215
 
@@ -224,7 +224,7 @@ function checkNonNpm(name: string, npmInfo: NpmInfo): NonNpmError | undefined {
224
224
  Try adding -browser to the end of the name to get
225
225
 
226
226
  ${name}-browser
227
- `
227
+ `,
228
228
  };
229
229
  }
230
230
  return undefined;
@@ -246,7 +246,7 @@ To resolve this error, either:
246
246
 
247
247
  // Type definitions for non-npm package ${name}-browser
248
248
 
249
- Add -browser to the end of your name to make sure it doesn't conflict with existing npm packages.`
249
+ Add -browser to the end of your name to make sure it doesn't conflict with existing npm packages.`,
250
250
  };
251
251
  }
252
252
  const target = getHeaderVersion(header);
@@ -264,7 +264,7 @@ You should copy the major and minor version from the package on npm.
264
264
  To resolve this error, change the version in the header, ${headerstring},
265
265
  to match one on npm: ${verstring}.
266
266
 
267
- For example, if you're trying to match the latest version, use ${lateststring}.`
267
+ For example, if you're trying to match the latest version, use ${lateststring}.`,
268
268
  };
269
269
  }
270
270
  return npmVersion;
@@ -358,7 +358,7 @@ export function checkSource(
358
358
  console.log(formatDebug(name, diagnostics));
359
359
  }
360
360
 
361
- return diagnostics.errors.filter(err => enabledErrors.get(err.kind) ?? defaultErrors.includes(err.kind));
361
+ return diagnostics.errors.filter((err) => enabledErrors.get(err.kind) ?? defaultErrors.includes(err.kind));
362
362
  }
363
363
 
364
364
  function formatDebug(name: string, diagnostics: ExportsDiagnostics): string {
@@ -403,13 +403,13 @@ function formatType(type: ts.Type): string {
403
403
  const properties = type.getProperties();
404
404
  if (properties.length > 0) {
405
405
  lines.push("Type's properties:");
406
- lines.push(...properties.map(p => p.getName()));
406
+ lines.push(...properties.map((p) => p.getName()));
407
407
  }
408
408
 
409
409
  const signatures = type.getConstructSignatures().concat(type.getCallSignatures());
410
410
  if (signatures.length > 0) {
411
411
  lines.push("Type's signatures:");
412
- lines.push(...signatures.map(s => checker.signatureToString(s)));
412
+ lines.push(...signatures.map((s) => checker.signatureToString(s)));
413
413
  }
414
414
  lines.push(`Type string: ${checker.typeToString(type)}`);
415
415
  return lines.join("\n");
@@ -422,7 +422,7 @@ const exportEqualsLink = "https://www.typescriptlang.org/docs/handbook/modules.h
422
422
  */
423
423
  function checkExports(name: string, dtsPath: string, sourcePath: string): ExportsDiagnostics {
424
424
  const tscOpts = {
425
- allowJs: true
425
+ allowJs: true,
426
426
  };
427
427
 
428
428
  const jsProgram = ts.createProgram([sourcePath], tscOpts);
@@ -448,7 +448,7 @@ function checkExports(name: string, dtsPath: string, sourcePath: string): Export
448
448
  message: `The declaration doesn't match the JavaScript module '${name}'. Reason:
449
449
  The declaration should use 'export =' syntax because the JavaScript source uses 'module.exports =' syntax and ${sourceDiagnostics.exportEquals.result.reason}.
450
450
 
451
- To learn more about 'export =' syntax, see ${exportEqualsLink}.`
451
+ To learn more about 'export =' syntax, see ${exportEqualsLink}.`,
452
452
  } as const;
453
453
  errors.push(error);
454
454
  }
@@ -472,7 +472,7 @@ To learn more about 'export =' syntax, see ${exportEqualsLink}.`
472
472
  The declaration specifies 'export default' but the JavaScript source does not mention 'default' anywhere.
473
473
 
474
474
  The most common way to resolve this error is to use 'export =' syntax instead of 'export default'.
475
- To learn more about 'export =' syntax, see ${exportEqualsLink}.`
475
+ To learn more about 'export =' syntax, see ${exportEqualsLink}.`,
476
476
  });
477
477
  }
478
478
 
@@ -481,7 +481,7 @@ To learn more about 'export =' syntax, see ${exportEqualsLink}.`
481
481
  jsExportType: sourceDiagnostics.exportType,
482
482
  dtsExportKind: dtsDiagnostics.exportKind,
483
483
  dtsExportType: dtsDiagnostics.exportType,
484
- errors
484
+ errors,
485
485
  };
486
486
  }
487
487
 
@@ -616,12 +616,12 @@ function inspectDts(dtsPath: string, name: string): DtsExportDiagnostics {
616
616
  function createDtProgram(dtsPath: string): ts.Program {
617
617
  const dtsDir = path.dirname(dtsPath);
618
618
  const configPath = path.join(dtsDir, "tsconfig.json");
619
- const { config } = ts.readConfigFile(configPath, p => fs.readFileSync(p, { encoding: "utf8" }));
619
+ const { config } = ts.readConfigFile(configPath, (p) => fs.readFileSync(p, { encoding: "utf8" }));
620
620
  const parseConfigHost: ts.ParseConfigHost = {
621
621
  fileExists: fs.existsSync,
622
622
  readDirectory: ts.sys.readDirectory,
623
- readFile: file => fs.readFileSync(file, { encoding: "utf8" }),
624
- useCaseSensitiveFileNames: true
623
+ readFile: (file) => fs.readFileSync(file, { encoding: "utf8" }),
624
+ useCaseSensitiveFileNames: true,
625
625
  };
626
626
  const parsed = ts.parseJsonConfigFileContent(config, parseConfigHost, path.resolve(dtsDir));
627
627
  const host = ts.createCompilerHost(parsed.options, true);
@@ -633,9 +633,9 @@ function getDtsModuleSymbol(
633
633
  checker: ts.TypeChecker,
634
634
  name: string
635
635
  ): InferenceResult<ts.Symbol> {
636
- if (matches(sourceFile, node => ts.isModuleDeclaration(node))) {
636
+ if (matches(sourceFile, (node) => ts.isModuleDeclaration(node))) {
637
637
  const npmName = dtToNpmName(name);
638
- const moduleSymbol = checker.getAmbientModules().find(symbol => symbol.getName() === `"${npmName}"`);
638
+ const moduleSymbol = checker.getAmbientModules().find((symbol) => symbol.getName() === `"${npmName}"`);
639
639
  if (moduleSymbol) {
640
640
  return inferenceSuccess(moduleSymbol);
641
641
  }
@@ -699,7 +699,7 @@ function getDtsDefaultExport(sourceFile: ts.SourceFile, moduleType: InferenceRes
699
699
  if (exportDefault > -1 && src.indexOf("export =") === -1 && !/declare module ['"]/.test(src)) {
700
700
  return {
701
701
  start: exportDefault,
702
- length: "export default".length
702
+ length: "export default".length,
703
703
  };
704
704
  }
705
705
  return undefined;
@@ -709,7 +709,7 @@ function getDtsDefaultExport(sourceFile: ts.SourceFile, moduleType: InferenceRes
709
709
  if (exportDefault?.declarations) {
710
710
  return {
711
711
  start: exportDefault.declarations[0].getStart(),
712
- length: exportDefault.declarations[0].getWidth()
712
+ length: exportDefault.declarations[0].getWidth(),
713
713
  };
714
714
  }
715
715
  return undefined;
@@ -757,7 +757,7 @@ function exportTypesCompatibility(
757
757
  errors.push({
758
758
  kind: ErrorKind.JsSignatureNotInDts,
759
759
  message: `The declaration doesn't match the JavaScript module '${name}'. Reason:
760
- The JavaScript module can be called or constructed, but the declaration module cannot.`
760
+ The JavaScript module can be called or constructed, but the declaration module cannot.`,
761
761
  });
762
762
  } else {
763
763
  errors.push({
@@ -766,7 +766,7 @@ The JavaScript module can be called or constructed, but the declaration module c
766
766
  The JavaScript module can be called or constructed, but the declaration module cannot.
767
767
 
768
768
  The most common way to resolve this error is to use 'export =' syntax.
769
- To learn more about 'export =' syntax, see ${exportEqualsLink}.`
769
+ To learn more about 'export =' syntax, see ${exportEqualsLink}.`,
770
770
  });
771
771
  }
772
772
  }
@@ -775,7 +775,7 @@ To learn more about 'export =' syntax, see ${exportEqualsLink}.`
775
775
  errors.push({
776
776
  kind: ErrorKind.DtsSignatureNotInJs,
777
777
  message: `The declaration doesn't match the JavaScript module '${name}'. Reason:
778
- The declaration module can be called or constructed, but the JavaScript module cannot.`
778
+ The declaration module can be called or constructed, but the JavaScript module cannot.`,
779
779
  });
780
780
  }
781
781
 
@@ -784,11 +784,11 @@ The declaration module can be called or constructed, but the JavaScript module c
784
784
  for (const sourceProperty of sourceProperties) {
785
785
  // TODO: check `prototype` properties.
786
786
  if (ignoreProperty(sourceProperty)) continue;
787
- if (!dtsProperties.find(s => s.getName() === sourceProperty.getName())) {
787
+ if (!dtsProperties.find((s) => s.getName() === sourceProperty.getName())) {
788
788
  errors.push({
789
789
  kind: ErrorKind.JsPropertyNotInDts,
790
790
  message: `The declaration doesn't match the JavaScript module '${name}'. Reason:
791
- The JavaScript module exports a property named '${sourceProperty.getName()}', which is missing from the declaration module.`
791
+ The JavaScript module exports a property named '${sourceProperty.getName()}', which is missing from the declaration module.`,
792
792
  });
793
793
  }
794
794
  }
@@ -796,18 +796,18 @@ The JavaScript module exports a property named '${sourceProperty.getName()}', wh
796
796
  for (const dtsProperty of dtsProperties) {
797
797
  // TODO: check `prototype` properties.
798
798
  if (ignoreProperty(dtsProperty)) continue;
799
- if (!sourceProperties.find(s => s.getName() === dtsProperty.getName())) {
799
+ if (!sourceProperties.find((s) => s.getName() === dtsProperty.getName())) {
800
800
  const error: MissingExport = {
801
801
  kind: ErrorKind.DtsPropertyNotInJs,
802
802
  message: `The declaration doesn't match the JavaScript module '${name}'. Reason:
803
- The declaration module exports a property named '${dtsProperty.getName()}', which is missing from the JavaScript module.`
803
+ The declaration module exports a property named '${dtsProperty.getName()}', which is missing from the JavaScript module.`,
804
804
  };
805
805
  const declaration =
806
806
  dtsProperty.declarations && dtsProperty.declarations.length > 0 ? dtsProperty.declarations[0] : undefined;
807
807
  if (declaration) {
808
808
  error.position = {
809
809
  start: declaration.getStart(),
810
- length: declaration.getWidth()
810
+ length: declaration.getWidth(),
811
811
  };
812
812
  }
813
813
  errors.push(error);
@@ -831,7 +831,7 @@ function isExportConstruct(node: ts.Node): boolean {
831
831
 
832
832
  function hasExportModifier(node: ts.Node): boolean {
833
833
  if (node.modifiers) {
834
- return node.modifiers.some(modifier => modifier.kind === ts.SyntaxKind.ExportKeyword);
834
+ return node.modifiers.some((modifier) => modifier.kind === ts.SyntaxKind.ExportKeyword);
835
835
  }
836
836
  return false;
837
837
  }
@@ -952,7 +952,7 @@ interface JsExportsInfo {
952
952
 
953
953
  enum JsExportKind {
954
954
  CommonJs = "CommonJs",
955
- ES6 = "ES6"
955
+ ES6 = "ES6",
956
956
  }
957
957
 
958
958
  interface ExportEqualsDiagnostics {
@@ -962,12 +962,12 @@ interface ExportEqualsDiagnostics {
962
962
 
963
963
  enum ExportEqualsJudgement {
964
964
  Required = "Required",
965
- NotRequired = "Not required"
965
+ NotRequired = "Not required",
966
966
  }
967
967
 
968
968
  enum DtsExportKind {
969
969
  ExportEquals = "export =",
970
- ES6Like = "ES6-like"
970
+ ES6Like = "ES6-like",
971
971
  }
972
972
 
973
973
  interface DtsExportDiagnostics {
@@ -992,7 +992,7 @@ type InferenceResult<T> = InferenceError | InferenceSuccess<T>;
992
992
 
993
993
  enum InferenceResultKind {
994
994
  Error,
995
- Success
995
+ Success,
996
996
  }
997
997
 
998
998
  interface InferenceError {
package/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@definitelytyped/dts-critic",
3
- "version": "0.0.110",
3
+ "version": "0.0.112-next.10",
4
4
  "author": "Nathan Shively-Sanders",
5
5
  "description": "Checks a new .d.ts against the Javascript source and tells you what problems it has",
6
6
  "publishConfig": {
7
7
  "access": "public"
8
8
  },
9
9
  "dependencies": {
10
- "@definitelytyped/header-parser": "^0.0.110",
10
+ "@definitelytyped/header-parser": "^0.0.112-next.9",
11
11
  "command-exists": "^1.2.8",
12
12
  "rimraf": "^3.0.2",
13
13
  "semver": "^6.2.0",
@@ -51,5 +51,5 @@
51
51
  "engines": {
52
52
  "node": ">=10.17.0"
53
53
  },
54
- "gitHead": "ba1541f65fb16cd425ff27bca413c97219a55d5b"
54
+ "gitHead": "e2ac9d36de10b7689a1bc152688636230f398f0b"
55
55
  }
@@ -1 +1 @@
1
- export default function(): void;
1
+ export default function (): void;
@@ -1 +1 @@
1
- export default function(): void;
1
+ export default function (): void;