Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions tests/baselines/reference/user/async.log
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ node_modules/async/autoInject.js(160,28): error TS2695: Left side of comma opera
node_modules/async/autoInject.js(164,14): error TS2695: Left side of comma operator is unused and has no side effects.
node_modules/async/autoInject.js(168,6): error TS2695: Left side of comma operator is unused and has no side effects.
node_modules/async/cargo.js(62,12): error TS2304: Cannot find name 'AsyncFunction'.
node_modules/async/cargo.js(67,14): error TS2304: Cannot find name 'module'.
node_modules/async/cargo.js(67,20): error TS1005: '}' expected.
node_modules/async/cargo.js(92,11): error TS2695: Left side of comma operator is unused and has no side effects.
node_modules/async/compose.js(8,37): error TS2695: Left side of comma operator is unused and has no side effects.
Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/user/axios-src.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Exit Code: 1
Standard output:
lib/adapters/http.js(12,19): error TS2307: Cannot find module './../../package.json'.
lib/adapters/http.js(12,19): error TS2732: Cannot find module './../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
lib/adapters/http.js(83,22): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
lib/adapters/http.js(189,23): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string | undefined'.
Expand Down
278 changes: 114 additions & 164 deletions tests/baselines/reference/user/chrome-devtools-frontend.log

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion tests/baselines/reference/user/create-react-app.log
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ packages/create-react-app/createReactApp.js(47,24): error TS2307: Cannot find mo
packages/create-react-app/createReactApp.js(49,28): error TS2307: Cannot find module 'hyperquest'.
packages/create-react-app/createReactApp.js(50,25): error TS2307: Cannot find module 'envinfo'.
packages/create-react-app/createReactApp.js(52,30): error TS2307: Cannot find module 'react-dev-utils/workspaceUtils'.
packages/create-react-app/createReactApp.js(53,29): error TS2307: Cannot find module './package.json'.
packages/create-react-app/createReactApp.js(53,29): error TS2732: Cannot find module './package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
packages/create-react-app/createReactApp.js(771,20): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
packages/create-react-app/index.js(45,5): error TS2365: Operator '<' cannot be applied to types 'string' and 'number'.
Expand All @@ -48,6 +48,7 @@ packages/react-dev-utils/__tests__/ignoredFiles.test.js(40,3): error TS2304: Can
packages/react-dev-utils/__tests__/ignoredFiles.test.js(46,5): error TS2304: Cannot find name 'expect'.
packages/react-dev-utils/__tests__/ignoredFiles.test.js(49,3): error TS2304: Cannot find name 'it'.
packages/react-dev-utils/__tests__/ignoredFiles.test.js(53,5): error TS2304: Cannot find name 'expect'.
packages/react-dev-utils/browsersHelper.js(9,30): error TS2307: Cannot find module 'browserslist'.
packages/react-dev-utils/browsersHelper.js(13,23): error TS2307: Cannot find module 'pkg-up'.
packages/react-dev-utils/browsersHelper.js(61,36): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'.
packages/react-dev-utils/browsersHelper.js(97,25): error TS2538: Type 'undefined' cannot be used as an index type.
Expand Down
6 changes: 3 additions & 3 deletions tests/baselines/reference/user/lodash.log
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ node_modules/lodash/_baseUniq.js(39,5): error TS2322: Type 'SetCache' is not ass
node_modules/lodash/_baseUniq.js(62,15): error TS2554: Expected 2 arguments, but got 3.
node_modules/lodash/_cloneArrayBuffer.js(11,16): error TS2351: Cannot use 'new' with an expression whose type lacks a call or construct signature.
node_modules/lodash/_cloneBuffer.js(4,69): error TS2339: Property 'nodeType' does not exist on type '{}'.
node_modules/lodash/_cloneBuffer.js(7,80): error TS2339: Property 'nodeType' does not exist on type 'NodeModule'.
node_modules/lodash/_cloneBuffer.js(7,80): error TS2339: Property 'nodeType' does not exist on type '{ "../../../tests/cases/user/lodash/node_modules/lodash/_cloneBuffer": {}; }'.
node_modules/lodash/_copySymbols.js(13,29): error TS2554: Expected 0 arguments, but got 1.
node_modules/lodash/_copySymbolsIn.js(13,29): error TS2554: Expected 0 arguments, but got 1.
node_modules/lodash/_createAggregator.js(19,37): error TS2554: Expected 0-1 arguments, but got 2.
Expand Down Expand Up @@ -146,7 +146,7 @@ node_modules/lodash/_isLaziable.js(24,14): error TS2554: Expected 0 arguments, b
node_modules/lodash/_memoizeCapped.js(22,22): error TS2339: Property 'cache' does not exist on type 'Function'.
node_modules/lodash/_mergeData.js(60,26): error TS2554: Expected 4 arguments, but got 3.
node_modules/lodash/_mergeData.js(67,26): error TS2554: Expected 4 arguments, but got 3.
node_modules/lodash/_nodeUtil.js(7,80): error TS2339: Property 'nodeType' does not exist on type 'NodeModule'.
node_modules/lodash/_nodeUtil.js(7,80): error TS2339: Property 'nodeType' does not exist on type '{ "../../../tests/cases/user/lodash/node_modules/lodash/_nodeUtil": any; }'.
node_modules/lodash/_nodeUtil.js(13,47): error TS2339: Property 'process' does not exist on type 'boolean | Global'.
Property 'process' does not exist on type 'false'.
node_modules/lodash/_overRest.js(20,42): error TS2532: Object is possibly 'undefined'.
Expand Down Expand Up @@ -326,7 +326,7 @@ node_modules/lodash/fp.js(2,18): error TS2554: Expected 3-4 arguments, but got 2
node_modules/lodash/includes.js(24,10): error TS1003: Identifier expected.
node_modules/lodash/includes.js(24,10): error TS8024: JSDoc '@param' tag has name '', but there is no parameter with that name.
node_modules/lodash/intersectionBy.js(41,32): error TS2554: Expected 0-1 arguments, but got 2.
node_modules/lodash/isBuffer.js(8,80): error TS2339: Property 'nodeType' does not exist on type 'NodeModule'.
node_modules/lodash/isBuffer.js(8,80): error TS2339: Property 'nodeType' does not exist on type '{ "../../../tests/cases/user/lodash/node_modules/lodash/isBuffer": any; }'.
node_modules/lodash/isEqual.js(32,10): error TS2554: Expected 3-5 arguments, but got 2.
node_modules/lodash/isEqualWith.js(38,59): error TS2345: Argument of type 'undefined' is not assignable to parameter of type 'boolean'.
node_modules/lodash/iteratee.js(50,74): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'.
Expand Down
14 changes: 8 additions & 6 deletions tests/baselines/reference/user/npm.log
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ node_modules/npm/bin/npm-cli.js(68,9): error TS2339: Property 'argv' does not ex
node_modules/npm/bin/npm-cli.js(68,26): error TS2339: Property 'command' does not exist on type 'typeof EventEmitter'.
node_modules/npm/bin/npm-cli.js(69,9): error TS2339: Property 'command' does not exist on type 'typeof EventEmitter'.
node_modules/npm/bin/npm-cli.js(75,7): error TS2339: Property 'load' does not exist on type 'typeof EventEmitter'.
node_modules/npm/bin/npm-cli.js(78,27): error TS2307: Cannot find module '../package.json'.
node_modules/npm/bin/npm-cli.js(78,27): error TS2732: Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
node_modules/npm/bin/npm-cli.js(85,30): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
node_modules/npm/bin/npm-cli.js(86,32): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
node_modules/npm/bin/npm-cli.js(121,9): error TS2339: Property 'commands' does not exist on type 'typeof EventEmitter'.
Expand Down Expand Up @@ -564,6 +564,7 @@ node_modules/npm/lib/npm.js(429,38): error TS2339: Property 'config' does not ex
node_modules/npm/lib/npm.js(439,33): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/npm.js(445,34): error TS2339: Property 'commands' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/npm.js(460,13): error TS2339: Property 'commands' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/npm.js(465,7): error TS2367: This condition will always return 'false' since the types 'NodeModule | undefined' and '{ "../../../tests/cases/user/npm/node_modules/npm/lib/npm": typeof EventEmitter; }' have no overlap.
node_modules/npm/lib/outdated.js(36,16): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/outdated.js(71,30): error TS2339: Property 'dir' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/outdated.js(74,11): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
Expand Down Expand Up @@ -824,6 +825,7 @@ node_modules/npm/lib/utils/locker.js(28,20): error TS2339: Property 'config' doe
node_modules/npm/lib/utils/locker.js(29,17): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/utils/locker.js(65,15): error TS2339: Property 'code' does not exist on type 'Error'.
node_modules/npm/lib/utils/map-to-registry.js(98,45): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/utils/metrics-launch.js(6,5): error TS2367: This condition will always return 'false' since the types 'NodeModule | undefined' and '{ "../../../tests/cases/user/npm/node_modules/npm/lib/utils/metrics-launch": () => ChildProcess | undefined; }' have no overlap.
node_modules/npm/lib/utils/metrics-launch.js(12,14): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/utils/metrics-launch.js(13,36): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
node_modules/npm/lib/utils/metrics-launch.js(14,30): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'.
Expand Down Expand Up @@ -900,7 +902,7 @@ node_modules/npm/scripts/index-build.js(23,15): error TS2531: Object is possibly
node_modules/npm/scripts/index-build.js(23,22): error TS2531: Object is possibly 'null'.
node_modules/npm/scripts/index-build.js(24,15): error TS2531: Object is possibly 'null'.
node_modules/npm/scripts/index-build.js(24,22): error TS2531: Object is possibly 'null'.
node_modules/npm/scripts/publish-tag.js(2,36): error TS2307: Cannot find module '../package.json'.
node_modules/npm/scripts/publish-tag.js(2,36): error TS2732: Cannot find module '../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
node_modules/npm/test/broken-under-nyc-and-travis/lifecycle-path.js(7,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/broken-under-nyc-and-travis/lifecycle-path.js(18,23): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'.
Type 'undefined' is not assignable to type 'string'.
Expand Down Expand Up @@ -1008,10 +1010,10 @@ node_modules/npm/test/network/legacy-url-dep.js(2,20): error TS2307: Cannot find
node_modules/npm/test/network/legacy-url-dep.js(10,21): error TS2307: Cannot find module 'tacks'.
node_modules/npm/test/network/registry.js(5,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/network/registry.js(29,47): error TS2339: Property '_extend' does not exist on type 'typeof import("util")'.
node_modules/npm/test/tap/00-check-mock-dep.js(12,20): error TS2307: Cannot find module 'npm-registry-mock/package.json'.
node_modules/npm/test/tap/00-check-mock-dep.js(13,19): error TS2307: Cannot find module '../../package.json'.
node_modules/npm/test/tap/00-check-mock-dep.js(12,20): error TS2732: Cannot find module 'npm-registry-mock/package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
node_modules/npm/test/tap/00-check-mock-dep.js(13,19): error TS2732: Cannot find module '../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
node_modules/npm/test/tap/00-verify-bundle-deps.js(1,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/tap/00-verify-bundle-deps.js(3,24): error TS2307: Cannot find module '../../package.json'.
node_modules/npm/test/tap/00-verify-bundle-deps.js(3,24): error TS2732: Cannot find module '../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
node_modules/npm/test/tap/00-verify-ls-ok.js(2,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/tap/00-verify-no-scoped.js(3,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/tap/404-parent.js(2,20): error TS2307: Cannot find module 'tap'.
Expand Down Expand Up @@ -1634,7 +1636,7 @@ node_modules/npm/test/tap/tagged-version-matching.js(8,47): error TS2339: Proper
node_modules/npm/test/tap/team.js(1,18): error TS2307: Cannot find module 'npm-registry-mock'.
node_modules/npm/test/tap/team.js(3,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/tap/test-run-ls.js(2,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/tap/test-run-ls.js(5,26): error TS2307: Cannot find module '../../package.json'.
node_modules/npm/test/tap/test-run-ls.js(5,26): error TS2732: Cannot find module '../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
node_modules/npm/test/tap/tree-style.js(3,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/tap/umask-lifecycle.js(6,20): error TS2307: Cannot find module 'tap'.
node_modules/npm/test/tap/uninstall-in-reverse.js(2,20): error TS2307: Cannot find module 'tap'.
Expand Down
4 changes: 2 additions & 2 deletions tests/baselines/reference/user/prettier.log
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Exit Code: 1
Standard output:
index.js(3,25): error TS2307: Cannot find module './package.json'.
index.js(3,25): error TS2732: Cannot find module './package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
index.js(138,21): error TS2532: Object is possibly 'undefined'.
src/cli/util.js(262,64): error TS2339: Property 'length' does not exist on type 'Ignore'.
src/cli/util.js(335,52): error TS2339: Property 'length' does not exist on type 'Ignore'.
Expand Down Expand Up @@ -96,7 +96,7 @@ src/main/core-options.js(187,3): error TS2322: Type '{ since: string; category:
src/main/parser.js(61,9): error TS2345: Argument of type 'PropertyDescriptor | undefined' is not assignable to parameter of type 'PropertyDescriptor & ThisType<any>'.
Type 'undefined' is not assignable to type 'PropertyDescriptor & ThisType<any>'.
Type 'undefined' is not assignable to type 'PropertyDescriptor'.
src/main/support.js(5,32): error TS2307: Cannot find module '../../package.json'.
src/main/support.js(5,32): error TS2732: Cannot find module '../../package.json'. Consider using '--resolveJsonModule' to import module with '.json' extension
src/main/support.js(36,24): error TS2339: Property 'name' does not exist on type 'never'.
src/main/support.js(36,35): error TS2339: Property 'name' does not exist on type 'never'.
src/main/support.js(36,48): error TS2339: Property 'name' does not exist on type 'never'.
Expand Down
7 changes: 7 additions & 0 deletions tests/baselines/reference/user/webpack.log
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Exit Code: 1
Standard output:
lib/NormalModule.js(163,12): error TS2451: Cannot redeclare block-scoped variable 'module'.



Standard error: