From aa4f9518615fe9f3c127315f24458ead3b24a2cf Mon Sep 17 00:00:00 2001 From: typescript-bot Date: Thu, 25 Jun 2020 17:11:51 +0000 Subject: [PATCH] Update user baselines --- tests/baselines/reference/docker/vue-next.log | 50 +++---------------- tests/baselines/reference/user/async.log | 6 +++ .../user/chrome-devtools-frontend.log | 23 ++++++++- .../reference/user/enhanced-resolve.log | 2 + tests/baselines/reference/user/lodash.log | 15 ++++++ tests/baselines/reference/user/npm.log | 6 +++ tests/baselines/reference/user/prettier.log | 2 + tests/baselines/reference/user/uglify-js.log | 2 + tests/baselines/reference/user/webpack.log | 29 +++++++++++ 9 files changed, 91 insertions(+), 44 deletions(-) diff --git a/tests/baselines/reference/docker/vue-next.log b/tests/baselines/reference/docker/vue-next.log index 9588d285d48d1..0f936680838b3 100644 --- a/tests/baselines/reference/docker/vue-next.log +++ b/tests/baselines/reference/docker/vue-next.log @@ -21,18 +21,6 @@ The API report is up to date: temp/compiler-sfc.api.md Writing package typings: /vue-next/packages/compiler-sfc/dist/compiler-sfc.d.ts Writing package typings: /vue-next/dist/compiler-sfc.d.ts API Extractor completed successfully. -Rolling up type definitions for compiler-ssr... -Writing: /vue-next/temp/compiler-ssr.api.json -The API report is up to date: temp/compiler-ssr.api.md -Writing package typings: /vue-next/packages/compiler-ssr/dist/compiler-ssr.d.ts -Writing package typings: /vue-next/dist/compiler-ssr.d.ts -API Extractor completed successfully. -Rolling up type definitions for reactivity... -Writing: /vue-next/temp/reactivity.api.json -The API report is up to date: temp/reactivity.api.md -Writing package typings: /vue-next/packages/reactivity/dist/reactivity.d.ts -Writing package typings: /vue-next/dist/reactivity.d.ts -API Extractor completed successfully. @@ -87,33 +75,11 @@ Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:75:5 - (TS7 Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:76:5 - (TS7022) 'enterActiveClass' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:77:5 - (TS7022) 'enterToClass' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. /vue-next/packages/compiler-ssr/src/index.ts → packages/compiler-ssr/dist/compiler-ssr.cjs.js... -created packages/compiler-ssr/dist/compiler-ssr.cjs.js in ?s -Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:71:5 - (TS7022) 'name' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. -Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:75:5 - (TS7022) 'enterFromClass' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. -Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:76:5 - (TS7022) 'enterActiveClass' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. -Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:77:5 - (TS7022) 'enterToClass' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. -/vue-next/packages/reactivity/src/index.ts → packages/reactivity/dist/reactivity.esm-bundler.js... -created packages/reactivity/dist/reactivity.esm-bundler.js in ?s -/vue-next/packages/reactivity/src/index.ts → packages/reactivity/dist/reactivity.esm-browser.js... -created packages/reactivity/dist/reactivity.esm-browser.js in ?s -/vue-next/packages/reactivity/src/index.ts → packages/reactivity/dist/reactivity.cjs.js... -created packages/reactivity/dist/reactivity.cjs.js in ?s -/vue-next/packages/reactivity/src/index.ts → packages/reactivity/dist/reactivity.global.js... -created packages/reactivity/dist/reactivity.global.js in ?s -/vue-next/packages/reactivity/src/index.ts → packages/reactivity/dist/reactivity.esm-browser.prod.js... -created packages/reactivity/dist/reactivity.esm-browser.prod.js in ?s -/vue-next/packages/reactivity/src/index.ts → packages/reactivity/dist/reactivity.cjs.prod.js... -created packages/reactivity/dist/reactivity.cjs.prod.js in ?s -/vue-next/packages/reactivity/src/index.ts → packages/reactivity/dist/reactivity.global.prod.js... -created packages/reactivity/dist/reactivity.global.prod.js in ?s -Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:71:5 - (TS7022) 'name' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. -Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:75:5 - (TS7022) 'enterFromClass' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. -Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:76:5 - (TS7022) 'enterActiveClass' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. -Warning: /vue-next/packages/runtime-dom/src/components/Transition.ts:77:5 - (TS7022) 'enterToClass' implicitly has type 'any' because it does not have a type annotation and is referenced directly or indirectly in its own initializer. -/vue-next/packages/runtime-core/src/index.ts → packages/runtime-core/dist/runtime-core.esm-bundler.js... -[!] (plugin rpt2) Error: /vue-next/packages/runtime-core/src/apiInject.ts(40,9): semantic error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. -packages/runtime-core/src/apiInject.ts -Error: /vue-next/packages/runtime-core/src/apiInject.ts(40,9): semantic error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'. +[!] (plugin rpt2) Error: /vue-next/packages/compiler-ssr/src/transforms/ssrTransformComponent.ts(268,14): semantic error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +packages/compiler-ssr/src/transforms/ssrTransformComponent.ts +Error: /vue-next/packages/compiler-ssr/src/transforms/ssrTransformComponent.ts(268,14): semantic error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. at error (/vue-next/node_modules/rollup/dist/shared/rollup.js:5154:30) at throwPluginError (/vue-next/node_modules/rollup/dist/shared/rollup.js:17381:12) at Object.error (/vue-next/node_modules/rollup/dist/shared/rollup.js:18002:24) @@ -124,7 +90,7 @@ Error: /vue-next/packages/runtime-core/src/apiInject.ts(40,9): semantic error TS at forEach (/vue-next/node_modules/rollup-plugin-typescript2/node_modules/lodash/lodash.js:9342:14) at _.each (/vue-next/node_modules/rollup-plugin-typescript2/src/print-diagnostics.ts:9:2) at Object.transform (/vue-next/node_modules/rollup-plugin-typescript2/src/index.ts:242:5) -(node:18) UnhandledPromiseRejectionWarning: Error: Command failed with exit code 1: rollup -c --environment COMMIT:f54be6a,NODE_ENV:production,TARGET:runtime-core,TYPES:true +(node:17) UnhandledPromiseRejectionWarning: Error: Command failed with exit code 1: rollup -c --environment COMMIT:f54be6a,NODE_ENV:production,TARGET:compiler-ssr,TYPES:true at makeError (/vue-next/node_modules/execa/lib/error.js:59:11) at handlePromise (/vue-next/node_modules/execa/index.js:114:26) at processTicksAndRejections (internal/process/task_queues.js:97:5) @@ -132,5 +98,5 @@ Error: /vue-next/packages/runtime-core/src/apiInject.ts(40,9): semantic error TS at async buildAll (/vue-next/scripts/build.js:50:5) at async run (/vue-next/scripts/build.js:40:5) (Use `node --trace-warnings ...` to show where the warning was created) -(node:18) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) -(node:18) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. +(node:17) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1) +(node:17) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code. diff --git a/tests/baselines/reference/user/async.log b/tests/baselines/reference/user/async.log index 87937f08addf7..cd37d74a42c4d 100644 --- a/tests/baselines/reference/user/async.log +++ b/tests/baselines/reference/user/async.log @@ -103,8 +103,12 @@ node_modules/async/dist/async.js(1509,9): error TS2322: Type 'null' is not assig node_modules/async/dist/async.js(1578,20): error TS2722: Cannot invoke an object which is possibly 'undefined'. node_modules/async/dist/async.js(1580,51): error TS2532: Object is possibly 'undefined'. node_modules/async/dist/async.js(1622,17): error TS2722: Cannot invoke an object which is possibly 'undefined'. +node_modules/async/dist/async.js(1664,46): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/async/dist/async.js(1681,26): error TS1016: A required parameter cannot follow an optional parameter. node_modules/async/dist/async.js(1687,30): error TS2532: Object is possibly 'undefined'. +node_modules/async/dist/async.js(1739,21): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[] | undefined'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/async/dist/async.js(1761,7): error TS2532: Object is possibly 'undefined'. node_modules/async/dist/async.js(1762,14): error TS2532: Object is possibly 'undefined'. node_modules/async/dist/async.js(1762,45): error TS2532: Object is possibly 'undefined'. @@ -154,6 +158,8 @@ node_modules/async/dist/async.js(3828,14): error TS2339: Property 'unmemoized' d node_modules/async/dist/async.js(3848,23): error TS1003: Identifier expected. node_modules/async/dist/async.js(3848,24): error TS1003: Identifier expected. node_modules/async/dist/async.js(3848,25): error TS1003: Identifier expected. +node_modules/async/dist/async.js(4374,28): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[] | undefined'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/async/dist/async.js(4381,5): error TS2322: Type 'any[] | {}' is not assignable to type 'any[]'. Type '{}' is missing the following properties from type 'any[]': length, pop, push, concat, and 28 more. node_modules/async/dist/async.js(4570,22): error TS1016: A required parameter cannot follow an optional parameter. diff --git a/tests/baselines/reference/user/chrome-devtools-frontend.log b/tests/baselines/reference/user/chrome-devtools-frontend.log index 908e5343cadef..749d81b000f3e 100644 --- a/tests/baselines/reference/user/chrome-devtools-frontend.log +++ b/tests/baselines/reference/user/chrome-devtools-frontend.log @@ -6164,6 +6164,8 @@ node_modules/chrome-devtools-frontend/front_end/formatter_worker/ESTreeWalker.js Type 'TemplateLiteralNode' is missing the following properties from type 'Node': start, end, type, body, and 16 more. node_modules/chrome-devtools-frontend/front_end/formatter_worker/ESTreeWalker.js(63,57): error TS2345: Argument of type 'TemplateLiteralNode' is not assignable to parameter of type 'Node'. node_modules/chrome-devtools-frontend/front_end/formatter_worker/ESTreeWalker.js(65,66): error TS2345: Argument of type 'TemplateLiteralNode' is not assignable to parameter of type 'Node'. +node_modules/chrome-devtools-frontend/front_end/formatter_worker/ESTreeWalker.js(70,27): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'Node[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'Node[]'. node_modules/chrome-devtools-frontend/front_end/formatter_worker/FormattedContentBuilder.js(47,39): error TS2339: Property 'peekLast' does not exist on type 'any[]'. node_modules/chrome-devtools-frontend/front_end/formatter_worker/FormatterWorker.js(43,13): error TS1345: An expression of type 'void' cannot be tested for truthiness node_modules/chrome-devtools-frontend/front_end/formatter_worker/FormatterWorker.js(44,24): error TS2339: Property 'token' does not exist on type 'void'. @@ -6345,8 +6347,23 @@ node_modules/chrome-devtools-frontend/front_end/formatter_worker/acorn/acorn_loo node_modules/chrome-devtools-frontend/front_end/formatter_worker/acorn/acorn_loose.js(258,55): error TS2339: Property 'end' does not exist on type 'true'. node_modules/chrome-devtools-frontend/front_end/formatter_worker/acorn/acorn_loose.js(1365,5): error TS2339: Property 'next' does not exist on type 'LooseParser'. node_modules/chrome-devtools-frontend/front_end/formatter_worker/acorn/acorn_loose.js(1366,12): error TS2339: Property 'parseTopLevel' does not exist on type 'LooseParser'. -node_modules/chrome-devtools-frontend/front_end/har_importer/HARImporter.js(16,32): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -node_modules/chrome-devtools-frontend/front_end/har_importer/HARImporter.js(16,52): error TS2363: The right-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARFormat.js(98,63): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARFormat.js(101,36): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARFormat.js(176,58): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARFormat.js(178,58): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARFormat.js(180,66): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARFormat.js(198,58): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARFormat.js(200,58): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARFormat.js(261,66): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +node_modules/chrome-devtools-frontend/front_end/har_importer/HARImporter.js(26,11): error TS2403: Subsequent variable declarations must have the same type. Variable 'page' must be of type 'any', but here has type 'HARPage'. node_modules/chrome-devtools-frontend/front_end/har_importer/HARImporter.js(46,5): error TS2322: Type 'Date' is not assignable to type 'number'. node_modules/chrome-devtools-frontend/front_end/heap_profiler_test_runner/HeapProfilerTestRunner.js(320,70): error TS2339: Property 'heap_profiler' does not exist on type 'any[]'. node_modules/chrome-devtools-frontend/front_end/heap_profiler_test_runner/HeapProfilerTestRunner.js(321,35): error TS2339: Property 'heap_profiler' does not exist on type 'any[]'. @@ -12646,6 +12663,8 @@ node_modules/chrome-devtools-frontend/front_end/ui/SettingsUI.js(106,33): error node_modules/chrome-devtools-frontend/front_end/ui/SettingsUI.js(107,25): error TS2339: Property 'checked' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/ui/SettingsUI.js(119,27): error TS2339: Property 'createChild' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/ui/SettingsUI.js(133,24): error TS2555: Expected at least 2 arguments, but got 1. +node_modules/chrome-devtools-frontend/front_end/ui/SettingsUI.js(139,59): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type '{ text: string; value: any; raw: boolean; }[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type '{ text: string; value: any; raw: boolean; }[]'. node_modules/chrome-devtools-frontend/front_end/ui/SettingsUI.js(155,15): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value. node_modules/chrome-devtools-frontend/front_end/ui/ShortcutRegistry.js(15,5): error TS2322: Type 'Multimap.Multimap' is not assignable to type 'Multimap'. Type 'string | K' is not assignable to type 'K'. diff --git a/tests/baselines/reference/user/enhanced-resolve.log b/tests/baselines/reference/user/enhanced-resolve.log index b3c6f9f821216..73c1e27a04569 100644 --- a/tests/baselines/reference/user/enhanced-resolve.log +++ b/tests/baselines/reference/user/enhanced-resolve.log @@ -40,6 +40,8 @@ node_modules/enhanced-resolve/lib/Resolver.js(189,18): error TS2339: Property 'p node_modules/enhanced-resolve/lib/Resolver.js(210,13): error TS2339: Property 'details' does not exist on type 'Error'. node_modules/enhanced-resolve/lib/Resolver.js(211,13): error TS2339: Property 'missing' does not exist on type 'Error'. node_modules/enhanced-resolve/lib/Resolver.js(262,20): error TS2339: Property 'recursion' does not exist on type 'Error'. +node_modules/enhanced-resolve/lib/ResolverFactory.js(331,17): error TS2339: Property 'push' does not exist on type 'any[] | readonly any[]'. + Property 'push' does not exist on type 'readonly any[]'. node_modules/enhanced-resolve/lib/concord.js(80,30): error TS2531: Object is possibly 'null'. node_modules/enhanced-resolve/lib/concord.js(81,17): error TS2531: Object is possibly 'null'. diff --git a/tests/baselines/reference/user/lodash.log b/tests/baselines/reference/user/lodash.log index 211d49f478d64..ef79554e1f5b6 100644 --- a/tests/baselines/reference/user/lodash.log +++ b/tests/baselines/reference/user/lodash.log @@ -87,10 +87,14 @@ node_modules/lodash/_baseSlice.js(22,3): error TS2532: Object is possibly 'undef node_modules/lodash/_baseSlice.js(26,35): error TS2532: Object is possibly 'undefined'. node_modules/lodash/_baseSortBy.js(14,14): error TS2345: Argument of type 'Function' is not assignable to parameter of type '(a: any, b: any) => number'. Type 'Function' provides no match for the signature '(a: any, b: any): number'. +node_modules/lodash/_baseToString.js(28,21): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[] | undefined'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/lodash/_baseUniq.js(30,5): error TS2322: Type '(array?: any[] | undefined, value: any, comparator: Function) => boolean' is not assignable to type '(array?: any[] | undefined, value: any) => boolean'. node_modules/lodash/_baseUniq.js(39,5): error TS2322: Type 'SetCache' is not assignable to type 'any[]'. node_modules/lodash/_baseUniq.js(62,40): error TS2554: Expected 2 arguments, but got 3. node_modules/lodash/_baseWrapperValue.js(18,21): error TS2339: Property 'value' does not exist on type 'LazyWrapper'. +node_modules/lodash/_castPath.js(16,5): error TS2322: Type 'any[] | readonly any[]' is not assignable to type 'any[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/lodash/_cloneArrayBuffer.js(11,20): error TS2351: This expression is not constructable. Type 'Function' has no construct signatures. node_modules/lodash/_cloneBuffer.js(4,69): error TS2339: Property 'nodeType' does not exist on type '(buffer: Buffer, isDeep?: boolean | undefined) => Buffer'. @@ -194,6 +198,7 @@ node_modules/lodash/bind.js(55,6): error TS2339: Property 'placeholder' does not node_modules/lodash/bindKey.js(62,53): error TS2454: Variable 'holders' is used before being assigned. node_modules/lodash/bindKey.js(66,9): error TS2339: Property 'placeholder' does not exist on type 'Function'. node_modules/lodash/castArray.js(10,15): error TS8029: JSDoc '@param' tag has name 'value', but there is no parameter with that name. It would match 'arguments' if it had an array type. +node_modules/lodash/castArray.js(41,3): error TS4104: The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/lodash/chain.js(33,16): error TS2348: Value of type 'typeof lodash' is not callable. Did you mean to include 'new'? node_modules/lodash/chunk.js(30,29): error TS1016: A required parameter cannot follow an optional parameter. node_modules/lodash/clamp.js(23,31): error TS1016: A required parameter cannot follow an optional parameter. @@ -203,6 +208,8 @@ node_modules/lodash/clone.js(33,27): error TS2345: Argument of type 'number' is node_modules/lodash/cloneDeep.js(26,27): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'. node_modules/lodash/cloneDeepWith.js(37,27): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'. node_modules/lodash/cloneWith.js(39,27): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'. +node_modules/lodash/concat.js(40,47): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/lodash/conforms.js(32,41): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'. node_modules/lodash/core.js(77,82): error TS2339: Property 'nodeType' does not exist on type 'NodeModule'. node_modules/lodash/core.js(540,31): error TS2322: Type '(value: any) => boolean' is not assignable to type 'boolean | undefined'. @@ -244,12 +251,16 @@ node_modules/lodash/core.js(1442,29): error TS2532: Object is possibly 'undefine node_modules/lodash/core.js(1445,29): error TS2532: Object is possibly 'undefined'. node_modules/lodash/core.js(1446,24): error TS2532: Object is possibly 'undefined'. node_modules/lodash/core.js(1449,17): error TS2538: Type 'undefined' cannot be used as an index type. +node_modules/lodash/core.js(1519,49): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/lodash/core.js(1566,57): error TS2554: Expected 1 arguments, but got 2. node_modules/lodash/core.js(1709,41): error TS2532: Object is possibly 'undefined'. node_modules/lodash/core.js(1745,18): error TS2348: Value of type 'typeof lodash' is not callable. Did you mean to include 'new'? node_modules/lodash/core.js(1897,41): error TS1016: A required parameter cannot follow an optional parameter. node_modules/lodash/core.js(2167,40): error TS1016: A required parameter cannot follow an optional parameter. node_modules/lodash/core.js(2183,41): error TS8024: JSDoc '@param' tag has name 'iteratees', but there is no parameter with that name. +node_modules/lodash/core.js(2416,39): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/lodash/core.js(2473,21): error TS1345: An expression of type 'void' cannot be tested for truthiness node_modules/lodash/core.js(2473,37): error TS2554: Expected 0 arguments, but got 1. node_modules/lodash/core.js(2644,12): error TS2554: Expected 3-5 arguments, but got 2. @@ -387,6 +398,8 @@ node_modules/lodash/nthArg.js(28,26): error TS2345: Argument of type 'number | u Type 'undefined' is not assignable to type 'number'. node_modules/lodash/omit.js(48,32): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean'. node_modules/lodash/orderBy.js(33,49): error TS1016: A required parameter cannot follow an optional parameter. +node_modules/lodash/overArgs.js(46,16): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[] | undefined'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/lodash/parseInt.js(34,34): error TS1016: A required parameter cannot follow an optional parameter. node_modules/lodash/partial.js(48,9): error TS2339: Property 'placeholder' does not exist on type 'Function'. node_modules/lodash/partialRight.js(47,14): error TS2339: Property 'placeholder' does not exist on type 'Function'. @@ -431,6 +444,8 @@ node_modules/lodash/throttle.js(60,30): error TS2532: Object is possibly 'undefi node_modules/lodash/throttle.js(64,5): error TS2322: Type 'number | undefined' is not assignable to type 'number'. Type 'undefined' is not assignable to type 'number'. node_modules/lodash/toLower.js(11,21): error TS8024: JSDoc '@param' tag has name 'string', but there is no parameter with that name. +node_modules/lodash/toPath.js(28,21): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[] | undefined'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. node_modules/lodash/toUpper.js(11,21): error TS8024: JSDoc '@param' tag has name 'string', but there is no parameter with that name. node_modules/lodash/transform.js(46,37): error TS2554: Expected 0-1 arguments, but got 2. node_modules/lodash/transform.js(60,12): error TS2722: Cannot invoke an object which is possibly 'undefined'. diff --git a/tests/baselines/reference/user/npm.log b/tests/baselines/reference/user/npm.log index 47d49ca39a371..3ff9833461ac4 100644 --- a/tests/baselines/reference/user/npm.log +++ b/tests/baselines/reference/user/npm.log @@ -100,6 +100,8 @@ node_modules/npm/lib/completion.js(51,7): error TS2339: Property 'code' does not node_modules/npm/lib/completion.js(52,7): error TS2339: Property 'errno' does not exist on type 'Error'. node_modules/npm/lib/completion.js(129,9): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/completion.js(135,13): error TS2339: Property 'commands' does not exist on type 'typeof EventEmitter'. +node_modules/npm/lib/completion.js(193,35): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. node_modules/npm/lib/completion.js(247,23): error TS2339: Property 'fullList' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/config.js(74,18): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/config.js(83,15): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. @@ -610,6 +612,8 @@ node_modules/npm/lib/npm.js(428,37): error TS2339: Property 'config' does not ex node_modules/npm/lib/npm.js(429,38): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. 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(454,11): error TS2322: Type 'any[] | readonly any[]' is not assignable to type 'any[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. 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 'Module | undefined' and '{ "\"../../../tests/cases/user/npm/node_modules/npm/lib/npm\"": typeof EventEmitter.EventEmitter; }' have no overlap. node_modules/npm/lib/outdated.js(36,16): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. @@ -951,6 +955,8 @@ node_modules/npm/lib/view.js(415,74): error TS2339: Property 'color' does not ex node_modules/npm/lib/view.js(417,47): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/view.js(420,16): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/view.js(429,11): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. +node_modules/npm/lib/view.js(455,17): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. node_modules/npm/lib/visnup.js(41,14): error TS2339: Property 'commands' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/whoami.js(15,22): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/whoami.js(18,18): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index 92da1d389651e..2a8baf09a1887 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -2,6 +2,8 @@ Exit Code: 2 Standard output: src/main/comments.js(325,5): error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation. src/main/comments.js(326,5): error TS2775: Assertions require every name in the call target to be declared with an explicit type annotation. +src/main/massage-ast.js(5,16): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. diff --git a/tests/baselines/reference/user/uglify-js.log b/tests/baselines/reference/user/uglify-js.log index 113e29cbc6290..af2c980416d89 100644 --- a/tests/baselines/reference/user/uglify-js.log +++ b/tests/baselines/reference/user/uglify-js.log @@ -52,6 +52,8 @@ node_modules/uglify-js/lib/compress.js(2437,53): error TS2345: Argument of type node_modules/uglify-js/lib/compress.js(2472,26): error TS2403: Subsequent variable declarations must have the same type. Variable 'i' must be of type 'number', but here has type 'any'. node_modules/uglify-js/lib/compress.js(2628,39): error TS2554: Expected 2 arguments, but got 1. node_modules/uglify-js/lib/compress.js(2651,34): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3070,33): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. node_modules/uglify-js/lib/compress.js(3096,35): error TS2554: Expected 2 arguments, but got 1. node_modules/uglify-js/lib/compress.js(3291,44): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/compress.js(3512,55): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'. diff --git a/tests/baselines/reference/user/webpack.log b/tests/baselines/reference/user/webpack.log index 0c2300962f61c..a627cf1cadd5d 100644 --- a/tests/baselines/reference/user/webpack.log +++ b/tests/baselines/reference/user/webpack.log @@ -2,6 +2,35 @@ Exit Code: 2 Standard output: lib/ContextModule.js(352,32): error TS2345: Argument of type 'Pick' is not assignable to parameter of type 'ContextOptions & ContextModuleOptionsExtras'. Property 'resolveOptions' is missing in type 'Pick' but required in type 'ContextModuleOptionsExtras'. +lib/DefinePlugin.js(48,8): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +lib/ModuleFilenameHelpers.js(157,15): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +lib/cli.js(379,12): error TS2339: Property 'push' does not exist on type 'any[] | readonly any[]'. + Property 'push' does not exist on type 'readonly any[]'. +lib/cli.js(385,6): error TS2542: Index signature in type 'any[] | readonly any[]' only permits reading. +lib/cli.js(426,11): error TS2339: Property 'push' does not exist on type 'any[] | readonly any[]'. + Property 'push' does not exist on type 'readonly any[]'. +lib/cli.js(432,5): error TS2542: Index signature in type 'any[] | readonly any[]' only permits reading. +lib/container/options.js(34,29): error TS2345: Argument of type 'string | readonly any[]' is not assignable to parameter of type 'string | string[]'. + Type 'readonly any[]' is not assignable to type 'string | string[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'string[]'. +lib/dependencies/JsonExportsDependency.js(20,16): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +lib/rules/RuleSetCompiler.js(162,60): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. +lib/rules/RuleSetCompiler.js(170,60): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'any[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'any[]'. +lib/rules/RuleSetCompiler.js(224,28): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +lib/rules/UseEffectRulePlugin.js(109,21): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +lib/rules/UseEffectRulePlugin.js(123,21): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other. +lib/webpack.js(108,34): error TS2345: Argument of type 'any[] | readonly any[]' is not assignable to parameter of type 'WebpackOptions[]'. + The type 'readonly any[]' is 'readonly' and cannot be assigned to the mutable type 'WebpackOptions[]'. +lib/webpack.js(110,26): error TS2349: This expression is not callable. + Each member of the union type '((callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[]) | ((callbackfn: (value: any, index: number, array: readonly any[]) => U, thisArg?: any) => U[])' has signatures, but none of those signatures are compatible with each other.