From 34ffefb922bb222cdafdc1db364536f6a77e4d45 Mon Sep 17 00:00:00 2001 From: TypeScript Bot Date: Wed, 10 Jul 2019 13:00:30 -0700 Subject: [PATCH] Update user baselines (#32324) --- .../baselines/reference/docker/azure-sdk.log | 106 +++++++++-- .../reference/docker/office-ui-fabric.log | 4 +- tests/baselines/reference/user/acorn.log | 20 ++- .../reference/user/adonis-framework.log | 28 +-- tests/baselines/reference/user/axios-src.log | 2 + .../user/chrome-devtools-frontend.log | 170 +++++++++++------- .../reference/user/enhanced-resolve.log | 27 ++- tests/baselines/reference/user/lodash.log | 42 +++-- tests/baselines/reference/user/mqtt.log | 8 + tests/baselines/reference/user/npm.log | 116 +++++++++--- tests/baselines/reference/user/npmlog.log | 9 +- tests/baselines/reference/user/prettier.log | 106 ++++++++--- tests/baselines/reference/user/util.log | 8 +- 13 files changed, 469 insertions(+), 177 deletions(-) create mode 100644 tests/baselines/reference/user/mqtt.log diff --git a/tests/baselines/reference/docker/azure-sdk.log b/tests/baselines/reference/docker/azure-sdk.log index 011937533de..5cda0e70df3 100644 --- a/tests/baselines/reference/docker/azure-sdk.log +++ b/tests/baselines/reference/docker/azure-sdk.log @@ -5,9 +5,16 @@ Rush Multi-Project Build Tool 5.7.3 - https://rushjs.io Starting "rush rebuild" Executing a maximum of 1 simultaneous processes... [@azure/cosmos] started -XX of XX: [@azure/cosmos] completed successfully in ? seconds +npm ERR! code ELIFECYCLE +npm ERR! errno 2 +npm ERR! @azure/cosmos@X.X.X compile: `echo Using TypeScript && tsc --version && tsc -p tsconfig.prod.json --pretty` +npm ERR! Exit status 2 +npm ERR! +npm ERR! Failed at the @azure/cosmos@X.X.X compile script. +npm ERR! This is probably not a problem with npm. There is likely additional logging output above. +npm ERR! A complete log of this run can be found in: +npm ERR! /root/.npm/_logs/2019-07-10T13_39_33_862Z-debug.log [@azure/service-bus] started -Warning: You have changed the public API signature for this project. Updating review/service-bus.api.md [@azure/storage-blob] started XX of XX: [@azure/storage-blob] completed successfully in ? seconds [@azure/storage-datalake] started @@ -22,8 +29,12 @@ XX of XX: [@azure/template] completed successfully in ? seconds XX of XX: [@azure/abort-controller] completed successfully in ? seconds [@azure/core-asynciterator-polyfill] started XX of XX: [@azure/core-asynciterator-polyfill] completed successfully in ? seconds +[@azure/core-auth] started +XX of XX: [@azure/core-auth] completed successfully in ? seconds [@azure/core-http] started XX of XX: [@azure/core-http] completed successfully in ? seconds +[@azure/core-arm] started +XX of XX: [@azure/core-arm] completed successfully in ? seconds [@azure/core-paging] started XX of XX: [@azure/core-paging] completed successfully in ? seconds [@azure/event-processor-host] started @@ -33,24 +44,37 @@ XX of XX: [testhub] completed successfully in ? seconds [@azure/identity] started XX of XX: [@azure/identity] completed successfully in ? seconds [@azure/keyvault-certificates] started -XX of XX: [@azure/keyvault-certificates] completed successfully in ? seconds [@azure/keyvault-keys] started -XX of XX: [@azure/keyvault-keys] completed successfully in ? seconds +npm ERR! code ELIFECYCLE +npm ERR! errno 2 +npm ERR! @azure/keyvault-keys@X.X.X-preview.2 extract-api: `tsc -p . && api-extractor run --local` +npm ERR! Exit status 2 +npm ERR! +npm ERR! Failed at the @azure/keyvault-keys@X.X.X-preview.2 extract-api script. +npm ERR! This is probably not a problem with npm. There is likely additional logging output above. +npm ERR! A complete log of this run can be found in: +npm ERR! /root/.npm/_logs/2019-07-10T13_41_42_464Z-debug.log [@azure/keyvault-secrets] started -XX of XX: [@azure/keyvault-secrets] completed successfully in ? seconds +npm ERR! code ELIFECYCLE +npm ERR! errno 2 +npm ERR! @azure/keyvault-secrets@X.X.X-preview.2 extract-api: `tsc -p . && api-extractor run --local` +npm ERR! Exit status 2 +npm ERR! +npm ERR! Failed at the @azure/keyvault-secrets@X.X.X-preview.2 extract-api script. +npm ERR! This is probably not a problem with npm. There is likely additional logging output above. +npm ERR! A complete log of this run can be found in: +npm ERR! /root/.npm/_logs/2019-07-10T13_41_46_371Z-debug.log [@azure/core-amqp] started -SUCCESS (16) +SUCCESS (14) ================================ @azure/abort-controller (? seconds) +@azure/core-arm (? seconds) @azure/core-asynciterator-polyfill (? seconds) +@azure/core-auth (? seconds) @azure/core-http (? seconds) @azure/core-paging (? seconds) -@azure/cosmos (? seconds) @azure/event-processor-host (? seconds) @azure/identity (? seconds) -@azure/keyvault-certificates (? seconds) -@azure/keyvault-keys (? seconds) -@azure/keyvault-secrets (? seconds) @azure/storage-blob (? seconds) @azure/storage-datalake (? seconds) @azure/storage-file (? seconds) @@ -58,16 +82,11 @@ SUCCESS (16) @azure/template (? seconds) testhub (? seconds) ================================ -SUCCESS WITH WARNINGS (1) -================================ -@azure/service-bus (? seconds) -Warning: You have changed the public API signature for this project. Updating review/service-bus.api.md -================================ BLOCKED (1) ================================ @azure/event-hubs ================================ -FAILURE (1) +FAILURE (6) ================================ @azure/core-amqp (? seconds) >>> @azure/core-amqp @@ -75,6 +94,50 @@ tsc -p . && rollup -c 2>&1 src/errors.ts(586,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type 'typeof ConditionErrorNameMapper'. src/errors.ts(607,34): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type 'typeof SystemErrorConditionMapper'. src/errors.ts(608,20): error TS7053: Element implicitly has an 'any' type because expression of type 'any' can't be used to index type 'typeof ConditionErrorNameMapper'. +@azure/cosmos ( ? seconds) +npm ERR! code ELIFECYCLE +npm ERR! errno 2 +npm ERR! @azure/cosmos@X.X.X compile: `echo Using TypeScript && tsc --version && tsc -p tsconfig.prod.json --pretty` +npm ERR! Exit status 2 +npm ERR! +npm ERR! Failed at the @azure/cosmos@X.X.X compile script. +npm ERR! This is probably not a problem with npm. There is likely additional logging output above. +npm ERR! A complete log of this run can be found in: +npm ERR! /root/.npm/_logs/2019-07-10T13_39_33_862Z-debug.log +@azure/keyvault-certificates (? seconds) +>>> @azure/keyvault-certificates +tsc && rollup -c rollup.config.js 2>&1 +error TS2318: Cannot find global type 'AsyncGenerator'. +src/index.ts(154,60): error TS2739: Type '{}' is missing the following properties from type 'AsyncIterableIterator': [Symbol.asyncIterator], next +src/index.ts(180,128): error TS2322: Type '{}' is not assignable to type 'AsyncIterableIterator'. +src/index.ts(232,101): error TS2739: Type '{}' is missing the following properties from type 'AsyncIterableIterator': [Symbol.asyncIterator], next +src/index.ts(381,103): error TS2739: Type '{}' is missing the following properties from type 'AsyncIterableIterator': [Symbol.asyncIterator], next +@azure/keyvault-keys (? seconds) +npm ERR! code ELIFECYCLE +npm ERR! errno 2 +npm ERR! @azure/keyvault-keys@X.X.X-preview.2 extract-api: `tsc -p . && api-extractor run --local` +npm ERR! Exit status 2 +npm ERR! +npm ERR! Failed at the @azure/keyvault-keys@X.X.X-preview.2 extract-api script. +npm ERR! This is probably not a problem with npm. There is likely additional logging output above. +npm ERR! A complete log of this run can be found in: +npm ERR! /root/.npm/_logs/2019-07-10T13_41_42_464Z-debug.log +@azure/keyvault-secrets (? seconds) +npm ERR! code ELIFECYCLE +npm ERR! errno 2 +npm ERR! @azure/keyvault-secrets@X.X.X-preview.2 extract-api: `tsc -p . && api-extractor run --local` +npm ERR! Exit status 2 +npm ERR! +npm ERR! Failed at the @azure/keyvault-secrets@X.X.X-preview.2 extract-api script. +npm ERR! This is probably not a problem with npm. There is likely additional logging output above. +npm ERR! A complete log of this run can be found in: +npm ERR! /root/.npm/_logs/2019-07-10T13_41_46_371Z-debug.log +@azure/service-bus ( ? seconds) +>>> @azure/service-bus +tsc -p . && rollup -c 2>&1 && npm run extract-api +error TS2318: Cannot find global type 'AsyncGenerator'. +src/receiver.ts(193,32): error TS2739: Type '{}' is missing the following properties from type 'AsyncIterableIterator': [Symbol.asyncIterator], next +src/receiver.ts(742,32): error TS2322: Type '{}' is not assignable to type 'AsyncIterableIterator'. ================================ Error: Project(s) failed to build rush rebuild - Errors! ( ? seconds) @@ -83,7 +146,16 @@ rush rebuild - Errors! ( ? seconds) Standard error: Your version of Node.js (X.X.X) has not been tested with this release of Rush. The Rush team will not accept issue reports for it. Please consider upgrading Rush or downgrading Node.js. -XX of XX: [@azure/service-bus] completed with warnings in ? seconds +XX of XX: [@azure/cosmos] failed to build! +XX of XX: [@azure/service-bus] failed to build! +XX of XX: [@azure/keyvault-certificates] failed to build! +XX of XX: [@azure/keyvault-keys] failed to build! +XX of XX: [@azure/keyvault-secrets] failed to build! XX of XX: [@azure/core-amqp] failed to build! XX of XX: [@azure/event-hubs] blocked by [@azure/core-amqp]! [@azure/core-amqp] Returned error code: 2 +[@azure/cosmos] Returned error code: 2 +[@azure/keyvault-certificates] Returned error code: 2 +[@azure/keyvault-keys] Returned error code: 2 +[@azure/keyvault-secrets] Returned error code: 2 +[@azure/service-bus] Returned error code: 2 diff --git a/tests/baselines/reference/docker/office-ui-fabric.log b/tests/baselines/reference/docker/office-ui-fabric.log index f2b746a7e28..70e9ab2cc7b 100644 --- a/tests/baselines/reference/docker/office-ui-fabric.log +++ b/tests/baselines/reference/docker/office-ui-fabric.log @@ -205,7 +205,7 @@ ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed [XX:XX:XX XM] x ------------------------------------ [XX:XX:XX XM] x Error: Command failed: /usr/local/bin/node /office-ui-fabric-react/common/temp/node_modules/jest/bin/jest.js --config /office-ui-fabric-react/packages/foundation/jest.config.js --passWithNoTests --colors at ChildProcess. (/office-ui-fabric-react/common/temp/node_modules/.registry.npmjs.org/just-scripts-utils/0.8.1/node_modules/just-scripts-utils/lib/exec.js:70:31) - at ChildProcess.emit (events.js:200:13) + at ChildProcess.emit (events.js:203:13) at ChildProcess.EventEmitter.emit (domain.js:494:23) at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) [XX:XX:XX XM] x ------------------------------------ @@ -297,7 +297,7 @@ ts-jest[versions] (WARN) Version X.X.X-insiders.xxxxxxxx of typescript installed [XX:XX:XX XM] x ------------------------------------ [XX:XX:XX XM] x Error: Command failed: /usr/local/bin/node /office-ui-fabric-react/common/temp/node_modules/jest/bin/jest.js --config /office-ui-fabric-react/packages/foundation/jest.config.js --passWithNoTests --colors at ChildProcess. (/office-ui-fabric-react/common/temp/node_modules/.registry.npmjs.org/just-scripts-utils/0.8.1/node_modules/just-scripts-utils/lib/exec.js:70:31) - at ChildProcess.emit (events.js:200:13) + at ChildProcess.emit (events.js:203:13) at ChildProcess.EventEmitter.emit (domain.js:494:23) at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12) [XX:XX:XX XM] x ------------------------------------ diff --git a/tests/baselines/reference/user/acorn.log b/tests/baselines/reference/user/acorn.log index d1e557d3bc1..042e1bd7680 100644 --- a/tests/baselines/reference/user/acorn.log +++ b/tests/baselines/reference/user/acorn.log @@ -1,10 +1,22 @@ Exit Code: 1 Standard output: node_modules/acorn/bin/_acorn.js(51,30): error TS2339: Property 'getToken' does not exist on type 'Parser'. -node_modules/acorn/bin/_acorn.js(59,59): error TS2345: Argument of type '2 | null' is not assignable to parameter of type 'string | number | undefined'. - Type 'null' is not assignable to type 'string | number | undefined'. -node_modules/acorn/bin/_acorn.js(63,23): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'. - Type 'undefined' is not assignable to type 'string | number | Buffer | URL'. +node_modules/acorn/bin/_acorn.js(59,30): error TS2769: No overload matches this call. + Overload 1 of 2, '(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string', gave the following error. + Argument of type 'null' is not assignable to parameter of type '((this: any, key: string, value: any) => any) | undefined'. + Overload 2 of 2, '(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string', gave the following error. + Argument of type '2 | null' is not assignable to parameter of type 'string | number | undefined'. + Type 'null' is not assignable to type 'string | number | undefined'. +node_modules/acorn/bin/_acorn.js(63,23): error TS2769: No overload matches this call. + Overload 1 of 3, '(path: string | number | Buffer | URL, options?: { encoding?: null | undefined; flag?: string | undefined; } | null | undefined): Buffer', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'. + Type 'undefined' is not assignable to type 'string | number | Buffer | URL'. + Overload 2 of 3, '(path: string | number | Buffer | URL, options: string | { encoding: string; flag?: string | undefined; }): string', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'. + Type 'undefined' is not assignable to type 'string | number | Buffer | URL'. + Overload 3 of 3, '(path: string | number | Buffer | URL, options?: string | { encoding?: string | null | undefined; flag?: string | undefined; } | null | undefined): string | Buffer', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string | number | Buffer | URL'. + Type 'undefined' is not assignable to type 'string | number | Buffer | URL'. node_modules/acorn/bin/run_test262.js(3,21): error TS2307: Cannot find module 'test262-parser-runner'. node_modules/acorn/dist/acorn.es.js(36,1): error TS2322: Type 'null' is not assignable to type 'string'. node_modules/acorn/dist/acorn.es.js(36,32): error TS2322: Type 'null' is not assignable to type 'string'. diff --git a/tests/baselines/reference/user/adonis-framework.log b/tests/baselines/reference/user/adonis-framework.log index 211e61740b6..e3b19b5de04 100644 --- a/tests/baselines/reference/user/adonis-framework.log +++ b/tests/baselines/reference/user/adonis-framework.log @@ -19,11 +19,19 @@ node_modules/adonis-framework/src/Config/index.js(37,15): error TS2304: Cannot f node_modules/adonis-framework/src/Config/index.js(39,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Config/index.js(58,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Encryption/index.js(53,15): error TS2304: Cannot find name 'Mixed'. -node_modules/adonis-framework/src/Encryption/index.js(71,34): error TS2345: Argument of type 'string' is not assignable to parameter of type '"utf8" | "ascii" | "binary" | undefined'. +node_modules/adonis-framework/src/Encryption/index.js(71,34): error TS2769: No overload matches this call. + Overload 1 of 4, '(data: Binary, input_encoding: undefined, output_encoding: HexBase64BinaryEncoding): string', gave the following error. + Argument of type 'string' is not assignable to parameter of type 'undefined'. + Overload 2 of 4, '(data: string, input_encoding: "utf8" | "ascii" | "binary" | undefined, output_encoding: HexBase64BinaryEncoding): string', gave the following error. + Argument of type 'string' is not assignable to parameter of type '"utf8" | "ascii" | "binary" | undefined'. node_modules/adonis-framework/src/Encryption/index.js(77,50): error TS2345: Argument of type 'Buffer' is not assignable to parameter of type 'string'. node_modules/adonis-framework/src/Encryption/index.js(85,23): error TS8024: JSDoc '@param' tag has name 'value', but there is no parameter with that name. node_modules/adonis-framework/src/Encryption/index.js(87,15): error TS2304: Cannot find name 'Mixed'. -node_modules/adonis-framework/src/Encryption/index.js(101,62): error TS2345: Argument of type 'string' is not assignable to parameter of type 'Utf8AsciiBinaryEncoding'. +node_modules/adonis-framework/src/Encryption/index.js(101,21): error TS2769: No overload matches this call. + Overload 1 of 4, '(data: Binary, input_encoding: undefined, output_encoding: Utf8AsciiBinaryEncoding): string', gave the following error. + Argument of type '"base64"' is not assignable to parameter of type 'undefined'. + Overload 2 of 4, '(data: string, input_encoding: "binary" | "base64" | "hex" | undefined, output_encoding: Utf8AsciiBinaryEncoding): string', gave the following error. + Argument of type 'string' is not assignable to parameter of type 'Utf8AsciiBinaryEncoding'. node_modules/adonis-framework/src/Encryption/index.js(114,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Encryption/index.js(119,23): error TS2554: Expected 2 arguments, but got 1. node_modules/adonis-framework/src/Encryption/index.js(183,15): error TS2304: Cannot find name 'Mixed'. @@ -164,14 +172,14 @@ node_modules/adonis-framework/src/Server/index.js(252,24): error TS1005: '}' exp node_modules/adonis-framework/src/Session/CookieManager.js(45,14): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Session/CookieManager.js(60,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Session/CookieManager.js(72,15): error TS2304: Cannot find name 'Stirng'. -node_modules/adonis-framework/src/Session/Drivers/Cookie/index.js(77,15): error TS2322: Type 'IterableIterator' is not assignable to type 'boolean'. -node_modules/adonis-framework/src/Session/Drivers/Cookie/index.js(88,15): error TS2322: Type 'IterableIterator' is not assignable to type 'boolean'. +node_modules/adonis-framework/src/Session/Drivers/Cookie/index.js(77,15): error TS2322: Type 'Generator' is not assignable to type 'boolean'. +node_modules/adonis-framework/src/Session/Drivers/Cookie/index.js(88,15): error TS2322: Type 'Generator' is not assignable to type 'boolean'. node_modules/adonis-framework/src/Session/Drivers/Cookie/index.js(118,14): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. node_modules/adonis-framework/src/Session/Drivers/File/index.js(25,14): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. node_modules/adonis-framework/src/Session/Drivers/File/index.js(79,15): error TS2505: A generator cannot have a 'void' type annotation. node_modules/adonis-framework/src/Session/Drivers/Redis/index.js(23,14): error TS1056: Accessors are only available when targeting ECMAScript 5 and higher. -node_modules/adonis-framework/src/Session/Drivers/Redis/index.js(59,15): error TS2322: Type 'IterableIterator' is not assignable to type 'boolean'. -node_modules/adonis-framework/src/Session/Drivers/Redis/index.js(72,15): error TS2322: Type 'IterableIterator' is not assignable to type 'boolean'. +node_modules/adonis-framework/src/Session/Drivers/Redis/index.js(59,15): error TS2322: Type 'Generator' is not assignable to type 'boolean'. +node_modules/adonis-framework/src/Session/Drivers/Redis/index.js(72,15): error TS2322: Type 'Generator' is not assignable to type 'boolean'. node_modules/adonis-framework/src/Session/SessionManager.js(13,21): error TS2307: Cannot find module 'adonis-fold'. node_modules/adonis-framework/src/Session/SessionManager.js(69,22): error TS2339: Property 'drivers' does not exist on type 'Function'. node_modules/adonis-framework/src/Session/SessionManager.js(69,49): error TS2339: Property 'drivers' does not exist on type 'Function'. @@ -194,15 +202,15 @@ node_modules/adonis-framework/src/Session/index.js(107,92): error TS2339: Proper node_modules/adonis-framework/src/Session/index.js(107,126): error TS2339: Property 'driver' does not exist on type 'Function'. node_modules/adonis-framework/src/Session/index.js(123,23): error TS2532: Object is possibly 'undefined'. node_modules/adonis-framework/src/Session/index.js(137,5): error TS2532: Object is possibly 'undefined'. -node_modules/adonis-framework/src/Session/index.js(168,15): error TS2322: Type 'IterableIterator' is not assignable to type 'boolean'. +node_modules/adonis-framework/src/Session/index.js(168,15): error TS2322: Type 'Generator' is not assignable to type 'boolean'. node_modules/adonis-framework/src/Session/index.js(199,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Session/index.js(201,15): error TS2304: Cannot find name 'Mixed'. -node_modules/adonis-framework/src/Session/index.js(204,15): error TS2322: Type 'IterableIterator' is not assignable to type 'boolean'. -node_modules/adonis-framework/src/Session/index.js(234,15): error TS2322: Type 'IterableIterator' is not assignable to type 'boolean'. +node_modules/adonis-framework/src/Session/index.js(204,15): error TS2322: Type 'Generator' is not assignable to type 'boolean'. +node_modules/adonis-framework/src/Session/index.js(234,15): error TS2322: Type 'Generator' is not assignable to type 'boolean'. node_modules/adonis-framework/src/Session/index.js(247,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Session/index.js(249,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Session/index.js(267,15): error TS2304: Cannot find name 'Mixed'. -node_modules/adonis-framework/src/Session/index.js(287,15): error TS2322: Type 'IterableIterator' is not assignable to type 'boolean'. +node_modules/adonis-framework/src/Session/index.js(287,15): error TS2322: Type 'Generator' is not assignable to type 'boolean'. node_modules/adonis-framework/src/Session/index.js(293,12): error TS2532: Object is possibly 'undefined'. node_modules/adonis-framework/src/View/Form/index.js(75,11): error TS2532: Object is possibly 'undefined'. node_modules/adonis-framework/src/View/Form/index.js(115,15): error TS2304: Cannot find name 'Mixed'. diff --git a/tests/baselines/reference/user/axios-src.log b/tests/baselines/reference/user/axios-src.log index 088a83ccd2e..9193929eb71 100644 --- a/tests/baselines/reference/user/axios-src.log +++ b/tests/baselines/reference/user/axios-src.log @@ -1,5 +1,7 @@ Exit Code: 1 Standard output: +../../../../../built/local/lib.es2015.iterable.d.ts(41,6): error TS2300: Duplicate identifier 'IteratorResult'. +../../../../../node_modules/@types/node/index.d.ts(77,11): error TS2300: Duplicate identifier 'IteratorResult'. 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(85,22): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'. diff --git a/tests/baselines/reference/user/chrome-devtools-frontend.log b/tests/baselines/reference/user/chrome-devtools-frontend.log index 228ae3113bd..e4350b2ad4a 100644 --- a/tests/baselines/reference/user/chrome-devtools-frontend.log +++ b/tests/baselines/reference/user/chrome-devtools-frontend.log @@ -11,8 +11,10 @@ Standard output: ../../../../built/local/lib.dom.d.ts(12625,13): error TS2300: Duplicate identifier 'Request'. ../../../../built/local/lib.dom.d.ts(17341,11): error TS2300: Duplicate identifier 'Window'. ../../../../built/local/lib.dom.d.ts(17475,13): error TS2300: Duplicate identifier 'Window'. +../../../../built/local/lib.es2015.iterable.d.ts(41,6): error TS2300: Duplicate identifier 'IteratorResult'. ../../../../built/local/lib.es5.d.ts(1416,11): error TS2300: Duplicate identifier 'ArrayLike'. ../../../../built/local/lib.es5.d.ts(1452,6): error TS2300: Duplicate identifier 'Record'. +../../../../node_modules/@types/node/index.d.ts(77,11): error TS2300: Duplicate identifier 'IteratorResult'. ../../../../node_modules/@types/node/index.d.ts(150,13): error TS2403: Subsequent variable declarations must have the same type. Variable 'module' must be of type '{}', but here has type 'NodeModule'. node_modules/chrome-devtools-frontend/front_end/Runtime.js(43,8): error TS2339: Property '_importScriptPathPrefix' does not exist on type 'Window'. node_modules/chrome-devtools-frontend/front_end/Runtime.js(77,16): error TS7014: Function type, which lacks return-type annotation, implicitly has an 'any' return type. @@ -722,7 +724,11 @@ node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighth node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(15687,1): error TS2304: Cannot find name 'fs'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(15694,1): error TS2322: Type 'Promise' is not assignable to type 'Promise'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(15695,1): error TS2304: Cannot find name 'fs'. -node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(15695,78): error TS2345: Argument of type '0' is not assignable to parameter of type '(string | number)[]'. +node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(15695,78): error TS2769: No overload matches this call. + Overload 1 of 2, '(value: any, replacer?: (this: any, key: string, value: any) => any, space?: string | number): string', gave the following error. + Argument of type '0' is not assignable to parameter of type '(this: any, key: string, value: any) => any'. + Overload 2 of 2, '(value: any, replacer?: (string | number)[], space?: string | number): string', gave the following error. + Argument of type '0' is not assignable to parameter of type '(string | number)[]'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(15791,19): error TS2304: Cannot find name 'fs'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(15810,1): error TS2304: Cannot find name 'fs'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(15814,1): error TS2304: Cannot find name 'fs'. @@ -908,9 +914,11 @@ node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighth node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(29961,8): error TS2339: Property 'on' does not exist on type 'Stream'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(29962,8): error TS2339: Property 'on' does not exist on type 'Stream'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(30114,5): error TS2403: Subsequent variable declarations must have the same type. Variable 'end' must be of type 'any', but here has type 'number'. -node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(30311,40): error TS2345: Argument of type '(x: string) => string | number' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. - Type 'string | number' is not assignable to type 'string'. - Type 'number' is not assignable to type 'string'. +node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(30311,40): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(x: string) => string | number' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. + Type 'string | number' is not assignable to type 'string'. + Type 'number' is not assignable to type 'string'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(30729,1): error TS2323: Cannot redeclare exported variable 'isArray'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(30734,1): error TS2323: Cannot redeclare exported variable 'isBoolean'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(30739,1): error TS2323: Cannot redeclare exported variable 'isNull'. @@ -3456,7 +3464,11 @@ node_modules/chrome-devtools-frontend/front_end/cm/codemirror.js(8795,39): error Property 'offset' does not exist on type '{ node: any; start: number; end: number; collapse: any; coverStart: any; coverEnd: any; }'. node_modules/chrome-devtools-frontend/front_end/cm/codemirror.js(8799,38): error TS2339: Property 'offset' does not exist on type '{ node: any; start: number; end: number; collapse: any; coverStart: any; coverEnd: any; } | { node: any; offset: number; }'. Property 'offset' does not exist on type '{ node: any; start: number; end: number; collapse: any; coverStart: any; coverEnd: any; }'. -node_modules/chrome-devtools-frontend/front_end/cm/codemirror.js(8817,16): error TS2345: Argument of type 'boolean' is not assignable to parameter of type 'number'. +node_modules/chrome-devtools-frontend/front_end/cm/codemirror.js(8817,16): error TS2769: No overload matches this call. + Overload 1 of 2, '(timeoutId: Timer): void', gave the following error. + Argument of type 'boolean' is not assignable to parameter of type 'Timer'. + Overload 2 of 2, '(handle?: number): void', gave the following error. + Argument of type 'boolean' is not assignable to parameter of type 'number'. node_modules/chrome-devtools-frontend/front_end/cm/codemirror.js(8818,3): error TS2322: Type 'Timer' is not assignable to type 'boolean'. node_modules/chrome-devtools-frontend/front_end/cm/codemirror.js(8840,24): error TS2339: Property 'div' does not exist on type 'ContentEditableInput'. node_modules/chrome-devtools-frontend/front_end/cm/codemirror.js(8847,10): error TS2339: Property 'div' does not exist on type 'ContentEditableInput'. @@ -5084,11 +5096,23 @@ node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(27 node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(279,24): error TS2339: Property 'getComponentSelection' does not exist on type 'Node'. node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(289,16): error TS2339: Property 'window' does not exist on type 'Node'. node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(293,19): error TS2339: Property 'removeChildren' does not exist on type 'Element'. -node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(305,42): error TS2559: Type 'string' has no properties in common with type 'ElementCreationOptions'. +node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(305,10): error TS2769: No overload matches this call. + Overload 1 of 3, '(tagName: "object" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdi" | ... 99 more ... | "wbr", options?: ElementCreationOptions): HTMLElement | ... 70 more ... | HTMLUListElement', gave the following error. + Argument of type 'string' is not assignable to parameter of type '"object" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdi" | ... 99 more ... | "wbr"'. + Overload 2 of 3, '(tagName: "listing" | "xmp", options?: ElementCreationOptions): HTMLPreElement', gave the following error. + Argument of type 'string' is not assignable to parameter of type '"listing" | "xmp"'. + Overload 3 of 3, '(tagName: string, options?: ElementCreationOptions): HTMLElement', gave the following error. + Type 'string' has no properties in common with type 'ElementCreationOptions'. node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(314,34): error TS2345: Argument of type 'string | number' is not assignable to parameter of type 'string'. Type 'number' is not assignable to type 'string'. node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(323,20): error TS2339: Property 'createElementWithClass' does not exist on type 'Document'. -node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(324,49): error TS2559: Type 'string' has no properties in common with type 'ElementCreationOptions'. +node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(324,17): error TS2769: No overload matches this call. + Overload 1 of 3, '(tagName: "object" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdi" | ... 99 more ... | "wbr", options?: ElementCreationOptions): HTMLElement | ... 70 more ... | HTMLUListElement', gave the following error. + Argument of type 'string' is not assignable to parameter of type '"object" | "link" | "small" | "sub" | "sup" | "track" | "progress" | "a" | "abbr" | "address" | "applet" | "area" | "article" | "aside" | "audio" | "b" | "base" | "basefont" | "bdi" | ... 99 more ... | "wbr"'. + Overload 2 of 3, '(tagName: "listing" | "xmp", options?: ElementCreationOptions): HTMLPreElement', gave the following error. + Argument of type 'string' is not assignable to parameter of type '"listing" | "xmp"'. + Overload 3 of 3, '(tagName: string, options?: ElementCreationOptions): HTMLElement', gave the following error. + Type 'string' has no properties in common with type 'ElementCreationOptions'. node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(338,19): error TS2339: Property 'createElementWithClass' does not exist on type 'Document'. node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(346,20): error TS2551: Property 'createSVGElement' does not exist on type 'Document'. Did you mean 'createElementNS'? node_modules/chrome-devtools-frontend/front_end/dom_extension/DOMExtension.js(360,19): error TS2551: Property 'createSVGElement' does not exist on type 'Document'. Did you mean 'createElementNS'? @@ -5222,21 +5246,25 @@ node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js( node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(52,56): error TS2555: Expected at least 2 arguments, but got 1. node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(58,78): error TS2555: Expected at least 2 arguments, but got 1. node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(73,12): error TS2339: Property '_filterRegex' does not exist on type 'ComputedStyleWidget'. -node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(91,24): error TS2345: Argument of type '(Promise | Promise)[]' is not assignable to parameter of type 'Iterable>'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator | Promise>' is not assignable to type '() => Iterator>'. - Type 'IterableIterator | Promise>' is not assignable to type 'Iterator>'. - Types of property 'next' are incompatible. - Type '{ (value?: any): IteratorResult | Promise>; (value?: any): IteratorResult | Promise>; }' is not assignable to type '{ (value?: any): IteratorResult>; (value?: any): IteratorResult>; }'. - Type 'IteratorResult | Promise>' is not assignable to type 'IteratorResult>'. - Type 'Promise | Promise' is not assignable to type 'ComputedStyle | PromiseLike'. - Type 'Promise' is not assignable to type 'ComputedStyle | PromiseLike'. - Type 'Promise' is not assignable to type 'PromiseLike'. - Types of property 'then' are incompatible. - Type '(onfulfilled?: (value: CSSMatchedStyles) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise<...>' is not assignable to type '(onfulfilled?: (value: ComputedStyle) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. - Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. - Types of parameters 'value' and 'value' are incompatible. - Property 'computedStyle' is missing in type 'CSSMatchedStyles' but required in type 'ComputedStyle'. +node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(91,24): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(Promise | Promise)[]' is not assignable to parameter of type 'Iterable>'. + Types of property '[Symbol.iterator]' are incompatible. + Type '() => IterableIterator | Promise>' is not assignable to type '() => Iterator, any, undefined>'. + Type 'IterableIterator | Promise>' is not assignable to type 'Iterator, any, undefined>'. + Types of property 'next' are incompatible. + Type '{ (...args: [] | [undefined]): IteratorResult | Promise, any>; (value?: any): IteratorResult | Promise, any>; }' is not assignable to type '{ (...args: [] | [undefined]): IteratorResult, any>; (value?: any): IteratorResult, any>; }'. + Type 'IteratorResult | Promise, any>' is not assignable to type 'IteratorResult, any>'. + Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorResult, any>'. + Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorYieldResult>'. + Type 'Promise | Promise' is not assignable to type 'ComputedStyle | PromiseLike'. + Type 'Promise' is not assignable to type 'ComputedStyle | PromiseLike'. + Type 'Promise' is not assignable to type 'PromiseLike'. + Types of property 'then' are incompatible. + Type '(onfulfilled?: (value: CSSMatchedStyles) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise<...>' is not assignable to type '(onfulfilled?: (value: ComputedStyle) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. + Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. + Types of parameters 'value' and 'value' are incompatible. + Property 'computedStyle' is missing in type 'CSSMatchedStyles' but required in type 'ComputedStyle'. node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(147,52): error TS2339: Property 'keysArray' does not exist on type 'Map'. node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(179,50): error TS2339: Property 'createChild' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/elements/ComputedStyleWidget.js(200,74): error TS2339: Property 'consume' does not exist on type 'Event'. @@ -5530,21 +5558,25 @@ node_modules/chrome-devtools-frontend/front_end/elements/InspectElementModeContr Type 'T' is not assignable to type 'OverlayModel'. node_modules/chrome-devtools-frontend/front_end/elements/InspectElementModeController.js(91,24): error TS2694: Namespace 'Protocol' has no exported member 'Overlay'. node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(56,27): error TS2339: Property 'removeChildren' does not exist on type 'Element'. -node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(82,24): error TS2345: Argument of type '(Promise> | Promise)[]' is not assignable to parameter of type 'Iterable | PromiseLike>>'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator> | Promise>' is not assignable to type '() => Iterator | PromiseLike>>'. - Type 'IterableIterator> | Promise>' is not assignable to type 'Iterator | PromiseLike>>'. - Types of property 'next' are incompatible. - Type '{ (value?: any): IteratorResult> | Promise>; (value?: any): IteratorResult> | Promise>; }' is not assignable to type '{ (value?: any): IteratorResult | PromiseLike>>; (value?: any): IteratorResult | PromiseLike>>; }'. - Type 'IteratorResult> | Promise>' is not assignable to type 'IteratorResult | PromiseLike>>'. - Type 'Promise> | Promise' is not assignable to type 'Map | PromiseLike>'. - Type 'Promise' is not assignable to type 'Map | PromiseLike>'. - Type 'Promise' is not assignable to type 'PromiseLike>'. - Types of property 'then' are incompatible. - Type '(onfulfilled?: (value: InlineStyleResult) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise<...>' is not assignable to type ', TResult2 = never>(onfulfilled?: (value: Map) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike<...>'. - Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. - Types of parameters 'value' and 'value' are incompatible. - Type 'InlineStyleResult' is missing the following properties from type 'Map': clear, delete, forEach, get, and 8 more. +node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(82,24): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(Promise> | Promise)[]' is not assignable to parameter of type 'Iterable | PromiseLike>>'. + Types of property '[Symbol.iterator]' are incompatible. + Type '() => IterableIterator> | Promise>' is not assignable to type '() => Iterator | PromiseLike>, any, undefined>'. + Type 'IterableIterator> | Promise>' is not assignable to type 'Iterator | PromiseLike>, any, undefined>'. + Types of property 'next' are incompatible. + Type '{ (...args: [] | [undefined]): IteratorResult> | Promise, any>; (value?: any): IteratorResult> | Promise, any>; }' is not assignable to type '{ (...args: [] | [undefined]): IteratorResult | PromiseLike>, any>; (value?: any): IteratorResult | PromiseLike>, any>; }'. + Type 'IteratorResult> | Promise, any>' is not assignable to type 'IteratorResult | PromiseLike>, any>'. + Type 'IteratorYieldResult> | Promise>' is not assignable to type 'IteratorResult | PromiseLike>, any>'. + Type 'IteratorYieldResult> | Promise>' is not assignable to type 'IteratorYieldResult | PromiseLike>>'. + Type 'Promise> | Promise' is not assignable to type 'Map | PromiseLike>'. + Type 'Promise' is not assignable to type 'Map | PromiseLike>'. + Type 'Promise' is not assignable to type 'PromiseLike>'. + Types of property 'then' are incompatible. + Type '(onfulfilled?: (value: InlineStyleResult) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise<...>' is not assignable to type ', TResult2 = never>(onfulfilled?: (value: Map) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike<...>'. + Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. + Types of parameters 'value' and 'value' are incompatible. + Type 'InlineStyleResult' is missing the following properties from type 'Map': clear, delete, forEach, get, and 8 more. node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(120,11): error TS2339: Property 'consume' does not exist on type 'Event'. node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(164,22): error TS2339: Property 'toFixedIfFloating' does not exist on type 'NumberConstructor'. node_modules/chrome-devtools-frontend/front_end/elements/MetricsSidebarPane.js(179,18): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. @@ -8181,8 +8213,13 @@ node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.j node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.js(267,17): error TS2304: Cannot find name 'FileEntry'. node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.js(278,17): error TS2304: Cannot find name 'FileError'. node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.js(317,14): error TS7014: Function type, which lacks return-type annotation, implicitly has an 'any' return type. -node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.js(344,31): error TS2345: Argument of type 'string | ArrayBuffer' is not assignable to parameter of type 'string'. - Type 'ArrayBuffer' is not assignable to type 'string'. +node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.js(344,31): error TS2769: No overload matches this call. + Overload 1 of 2, '(rawString: string): string', gave the following error. + Argument of type 'string | ArrayBuffer' is not assignable to parameter of type 'string'. + Type 'ArrayBuffer' is not assignable to type 'string'. + Overload 2 of 2, '(data: string): string', gave the following error. + Argument of type 'string | ArrayBuffer' is not assignable to parameter of type 'string'. + Type 'ArrayBuffer' is not assignable to type 'string'. node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.js(357,14): error TS7014: Function type, which lacks return-type annotation, implicitly has an 'any' return type. node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.js(364,17): error TS2304: Cannot find name 'FileEntry'. node_modules/chrome-devtools-frontend/front_end/persistence/IsolatedFileSystem.js(372,17): error TS2304: Cannot find name 'FileWriter'. @@ -8286,8 +8323,7 @@ node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(402,8): er node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(403,23): error TS2345: Argument of type 'string' is not assignable to parameter of type 'number'. node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(412,16): error TS2339: Property 'isValid' does not exist on type 'Date'. node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(419,16): error TS2339: Property 'toISO8601Compact' does not exist on type 'Date'. -node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(545,5): error TS2322: Type '{ value: (comparator: (arg0: number, arg1: number) => number, leftBound: number, rightBound: number, sortWindowLeft: number, sortWindowRight: number) => number[]; }' is not assignable to type 'number[]'. - Object literal may only specify known properties, but 'value' does not exist in type 'number[]'. Did you mean to write 'values'? +node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(560,7): error TS2740: Type '{ value: (comparator: (arg0: number, arg1: number) => number, leftBound: number, rightBound: number, sortWindowLeft: number, sortWindowRight: number) => number[]; }' is missing the following properties from type 'number[]': length, pop, push, concat, and 28 more. node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(716,84): error TS2339: Property 'lowerBound' does not exist on type 'any[]'. node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(718,84): error TS2339: Property 'upperBound' does not exist on type 'any[]'. node_modules/chrome-devtools-frontend/front_end/platform/utilities.js(720,83): error TS2339: Property 'lowerBound' does not exist on type 'any[]'. @@ -12619,12 +12655,12 @@ node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js( node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1260,29): error TS2339: Property 'MetadataEvents' does not exist on type 'typeof TimelineModel'. node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1423,31): error TS2694: Namespace 'TimelineModel' has no exported member 'InvalidationCause'. node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1433,61): error TS2694: Namespace 'Protocol' has no exported member 'Runtime'. -node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1524,30): error TS2488: Type 'Iterator' must have a '[Symbol.iterator]()' method that returns an iterator. +node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1524,30): error TS2488: Type 'Iterator' must have a '[Symbol.iterator]()' method that returns an iterator. node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1532,22): error TS2339: Property 'linkedRecalcStyleEvent' does not exist on type 'InvalidationTrackingEvent'. node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1548,18): error TS2339: Property 'linkedRecalcStyleEvent' does not exist on type 'InvalidationTrackingEvent'. node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1600,23): error TS2339: Property 'linkedRecalcStyleEvent' does not exist on type 'InvalidationTrackingEvent'. -node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1609,30): error TS2488: Type 'Iterator' must have a '[Symbol.iterator]()' method that returns an iterator. -node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1642,30): error TS2488: Type 'Iterator' must have a '[Symbol.iterator]()' method that returns an iterator. +node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1609,30): error TS2488: Type 'Iterator' must have a '[Symbol.iterator]()' method that returns an iterator. +node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1642,30): error TS2488: Type 'Iterator' must have a '[Symbol.iterator]()' method that returns an iterator. node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1709,67): error TS2339: Property '_asyncEvents' does not exist on type 'typeof TimelineAsyncEventTracker'. node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1714,49): error TS2339: Property '_asyncEvents' does not exist on type 'typeof TimelineAsyncEventTracker'. node_modules/chrome-devtools-frontend/front_end/timeline_model/TimelineModel.js(1730,45): error TS2339: Property '_asyncEvents' does not exist on type 'typeof TimelineAsyncEventTracker'. @@ -13524,25 +13560,31 @@ node_modules/chrome-devtools-frontend/front_end/ui/View.js(411,5): error TS2322: Property '_vbox' does not exist on type '{ appendApplicableItems(locationName: string): void; appendView(view: { viewId(): string; title(): string; isCloseable(): boolean; isTransient(): boolean; toolbarItems(): Promise; widget(): Promise<...>; disposeView(): void; }, insertBefore?: { ...; }): void; showView(view: { ...; }, insertBefore?: { ...'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(440,18): error TS2339: Property 'tabIndex' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(454,38): error TS2339: Property 'hasFocus' does not exist on type 'Element'. -node_modules/chrome-devtools-frontend/front_end/ui/View.js(461,44): error TS2345: Argument of type '(Promise | Promise)[]' is not assignable to parameter of type 'Iterable>'. - Types of property '[Symbol.iterator]' are incompatible. - Type '() => IterableIterator | Promise>' is not assignable to type '() => Iterator>'. - Type 'IterableIterator | Promise>' is not assignable to type 'Iterator>'. - Types of property 'next' are incompatible. - Type '{ (value?: any): IteratorResult | Promise>; (value?: any): IteratorResult | Promise>; }' is not assignable to type '{ (value?: any): IteratorResult>; (value?: any): IteratorResult>; }'. - Type 'IteratorResult | Promise>' is not assignable to type 'IteratorResult>'. - Type 'Promise | Promise' is not assignable to type 'void | PromiseLike'. - Type 'Promise' is not assignable to type 'void | PromiseLike'. - Type 'Promise' is not assignable to type 'PromiseLike'. - Types of property 'then' are incompatible. - Type '(onfulfilled?: (value: ToolbarItem[]) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise' is not assignable to type '(onfulfilled?: (value: void) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. - Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. - Types of parameters 'value' and 'value' are incompatible. - Type 'ToolbarItem[]' is not assignable to type 'void'. +node_modules/chrome-devtools-frontend/front_end/ui/View.js(461,44): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(Promise | Promise)[]' is not assignable to parameter of type 'Iterable>'. + Types of property '[Symbol.iterator]' are incompatible. + Type '() => IterableIterator | Promise>' is not assignable to type '() => Iterator, any, undefined>'. + Type 'IterableIterator | Promise>' is not assignable to type 'Iterator, any, undefined>'. + Types of property 'next' are incompatible. + Type '{ (...args: [] | [undefined]): IteratorResult | Promise, any>; (value?: any): IteratorResult | Promise, any>; }' is not assignable to type '{ (...args: [] | [undefined]): IteratorResult, any>; (value?: any): IteratorResult, any>; }'. + Type 'IteratorResult | Promise, any>' is not assignable to type 'IteratorResult, any>'. + Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorResult, any>'. + Type 'IteratorYieldResult | Promise>' is not assignable to type 'IteratorYieldResult>'. + Type 'Promise | Promise' is not assignable to type 'void | PromiseLike'. + Type 'Promise' is not assignable to type 'void | PromiseLike'. + Type 'Promise' is not assignable to type 'PromiseLike'. + Types of property 'then' are incompatible. + Type '(onfulfilled?: (value: ToolbarItem[]) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => Promise' is not assignable to type '(onfulfilled?: (value: void) => TResult1 | PromiseLike, onrejected?: (reason: any) => TResult2 | PromiseLike) => PromiseLike'. + Types of parameters 'onfulfilled' and 'onfulfilled' are incompatible. + Types of parameters 'value' and 'value' are incompatible. + Type 'ToolbarItem[]' is not assignable to type 'void'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(495,24): error TS2339: Property 'createTextChild' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(496,24): error TS2339: Property 'tabIndex' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(501,25): error TS2339: Property 'createChild' does not exist on type 'Element'. -node_modules/chrome-devtools-frontend/front_end/ui/View.js(520,44): error TS2345: Argument of type '(Promise | Promise)[]' is not assignable to parameter of type 'Iterable>'. +node_modules/chrome-devtools-frontend/front_end/ui/View.js(520,44): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(Promise | Promise)[]' is not assignable to parameter of type 'Iterable>'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(556,36): error TS2339: Property 'keyCode' does not exist on type 'Event'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(558,22): error TS2339: Property 'key' does not exist on type 'Event'. node_modules/chrome-devtools-frontend/front_end/ui/View.js(560,22): error TS2339: Property 'key' does not exist on type 'Event'. @@ -13615,8 +13657,12 @@ node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(56,19): error TS23 node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(75,15): error TS7014: Function type, which lacks return-type annotation, implicitly has an 'any' return type. node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(82,15): error TS7014: Function type, which lacks return-type annotation, implicitly has an 'any' return type. node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(89,15): error TS7014: Function type, which lacks return-type annotation, implicitly has an 'any' return type. -node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(100,79): error TS2345: Argument of type '{ passive: boolean; capture: false; }' is not assignable to parameter of type 'boolean | EventListenerOptions'. - Object literal may only specify known properties, and 'passive' does not exist in type 'EventListenerOptions'. +node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(100,7): error TS2769: No overload matches this call. + Overload 1 of 2, '(type: "fullscreenchange" | "fullscreenerror", listener: (this: Element, ev: Event) => any, options?: boolean | EventListenerOptions): void', gave the following error. + Argument of type '"scroll"' is not assignable to parameter of type '"fullscreenchange" | "fullscreenerror"'. + Overload 2 of 2, '(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | EventListenerOptions): void', gave the following error. + Argument of type '{ passive: boolean; capture: false; }' is not assignable to parameter of type 'boolean | EventListenerOptions'. + Object literal may only specify known properties, and 'passive' does not exist in type 'EventListenerOptions'. node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(108,19): error TS2551: Property '_scrollTop' does not exist on type 'Element'. Did you mean 'scrollTop'? node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(109,37): error TS2551: Property '_scrollTop' does not exist on type 'Element'. Did you mean 'scrollTop'? node_modules/chrome-devtools-frontend/front_end/ui/XWidget.js(110,19): error TS2551: Property '_scrollLeft' does not exist on type 'Element'. Did you mean 'scrollLeft'? diff --git a/tests/baselines/reference/user/enhanced-resolve.log b/tests/baselines/reference/user/enhanced-resolve.log index 7dd284bf166..44f7c0712d0 100644 --- a/tests/baselines/reference/user/enhanced-resolve.log +++ b/tests/baselines/reference/user/enhanced-resolve.log @@ -1,11 +1,26 @@ Exit Code: 1 Standard output: -node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(116,18): error TS2345: Argument of type 'Timeout | null' is not assignable to parameter of type 'number | undefined'. - Type 'null' is not assignable to type 'number | undefined'. -node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(129,18): error TS2345: Argument of type 'Timeout | null' is not assignable to parameter of type 'number | undefined'. - Type 'null' is not assignable to type 'number | undefined'. -node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(147,18): error TS2345: Argument of type 'Timeout | null' is not assignable to parameter of type 'number | undefined'. - Type 'null' is not assignable to type 'number | undefined'. +node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(116,18): error TS2769: No overload matches this call. + Overload 1 of 2, '(intervalId: Timeout): void', gave the following error. + Argument of type 'Timeout | null' is not assignable to parameter of type 'Timeout'. + Type 'null' is not assignable to type 'Timeout'. + Overload 2 of 2, '(handle?: number | undefined): void', gave the following error. + Argument of type 'Timeout | null' is not assignable to parameter of type 'number | undefined'. + Type 'null' is not assignable to type 'number | undefined'. +node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(129,18): error TS2769: No overload matches this call. + Overload 1 of 2, '(intervalId: Timeout): void', gave the following error. + Argument of type 'Timeout | null' is not assignable to parameter of type 'Timeout'. + Type 'null' is not assignable to type 'Timeout'. + Overload 2 of 2, '(handle?: number | undefined): void', gave the following error. + Argument of type 'Timeout | null' is not assignable to parameter of type 'number | undefined'. + Type 'null' is not assignable to type 'number | undefined'. +node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(147,18): error TS2769: No overload matches this call. + Overload 1 of 2, '(intervalId: Timeout): void', gave the following error. + Argument of type 'Timeout | null' is not assignable to parameter of type 'Timeout'. + Type 'null' is not assignable to type 'Timeout'. + Overload 2 of 2, '(handle?: number | undefined): void', gave the following error. + Argument of type 'Timeout | null' is not assignable to parameter of type 'number | undefined'. + Type 'null' is not assignable to type 'number | undefined'. node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(176,19): error TS2322: Type 'null' is not assignable to type '(path: any, callback: any) => void'. node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(179,23): error TS2322: Type 'null' is not assignable to type '(path: any) => any'. node_modules/enhanced-resolve/lib/CachedInputFileSystem.js(182,22): error TS2322: Type 'null' is not assignable to type '(path: any, callback: any) => void'. diff --git a/tests/baselines/reference/user/lodash.log b/tests/baselines/reference/user/lodash.log index 4ff6cd2fa20..26b289dd425 100644 --- a/tests/baselines/reference/user/lodash.log +++ b/tests/baselines/reference/user/lodash.log @@ -31,7 +31,7 @@ node_modules/lodash/_baseClone.js(92,16): error TS2362: The left-hand side of an node_modules/lodash/_baseClone.js(93,16): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. node_modules/lodash/_baseClone.js(115,33): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean | undefined'. node_modules/lodash/_baseClone.js(128,43): error TS2345: Argument of type 'number' is not assignable to parameter of type 'boolean | undefined'. -node_modules/lodash/_baseClone.js(157,17): error TS2552: Cannot find name 'keysIn'. Did you mean 'keys'? +node_modules/lodash/_baseClone.js(151,17): error TS2552: Cannot find name 'keysIn'. Did you mean 'keys'? node_modules/lodash/_baseDifference.js(37,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/_baseDifference.js(43,5): error TS2740: Type 'SetCache' is missing the following properties from type 'any[]': length, pop, concat, join, and 27 more. node_modules/lodash/_baseDifference.js(60,42): error TS2554: Expected 2 arguments, but got 3. @@ -251,8 +251,10 @@ node_modules/lodash/core.js(3245,58): error TS2345: Argument of type 'string | a Type 'any[]' is not assignable to type 'string | number | symbol'. Type 'any[]' is not assignable to type 'string'. node_modules/lodash/core.js(3354,53): error TS2538: Type 'any[]' cannot be used as an index type. -node_modules/lodash/core.js(3424,41): error TS2345: Argument of type 'Function' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. - Type 'Function' provides no match for the signature '(substring: string, ...args: any[]): string'. +node_modules/lodash/core.js(3424,41): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'Function' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. + Type 'Function' provides no match for the signature '(substring: string, ...args: any[]): string'. node_modules/lodash/core.js(3573,51): error TS2532: Object is possibly 'undefined'. node_modules/lodash/core.js(3590,63): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type 'any[]'. Type 'IArguments' is missing the following properties from type 'any[]': pop, push, concat, join, and 26 more. @@ -273,7 +275,9 @@ node_modules/lodash/debounce.js(85,43): error TS2532: Object is possibly 'undefi node_modules/lodash/debounce.js(86,30): error TS2532: Object is possibly 'undefined'. node_modules/lodash/debounce.js(111,23): error TS2532: Object is possibly 'undefined'. node_modules/lodash/debounce.js(125,65): error TS2532: Object is possibly 'undefined'. -node_modules/lodash/deburr.js(42,44): error TS2345: Argument of type 'Function' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. +node_modules/lodash/deburr.js(42,44): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'Function' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. node_modules/lodash/difference.js(29,52): error TS2345: Argument of type '(value: any) => boolean' is not assignable to parameter of type 'boolean | undefined'. Type '(value: any) => boolean' is not assignable to type 'true'. node_modules/lodash/differenceBy.js(40,52): error TS2345: Argument of type '(value: any) => boolean' is not assignable to parameter of type 'boolean | undefined'. @@ -287,7 +291,9 @@ node_modules/lodash/dropRight.js(13,10): error TS1003: Identifier expected. node_modules/lodash/dropRight.js(13,10): error TS8024: JSDoc '@param' tag has name '', but there is no parameter with that name. node_modules/lodash/dropRightWhile.js(41,48): error TS2554: Expected 0-1 arguments, but got 2. node_modules/lodash/dropWhile.js(41,48): error TS2554: Expected 0-1 arguments, but got 2. -node_modules/lodash/escape.js(39,39): error TS2345: Argument of type 'Function' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. +node_modules/lodash/escape.js(39,39): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'Function' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. node_modules/lodash/every.js(23,10): error TS1003: Identifier expected. node_modules/lodash/every.js(23,10): error TS8024: JSDoc '@param' tag has name '', but there is no parameter with that name. node_modules/lodash/every.js(53,51): error TS2554: Expected 0-1 arguments, but got 2. @@ -378,6 +384,8 @@ node_modules/lodash/nthArg.js(28,26): error TS2345: Argument of type 'number | u 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(18,10): error TS1003: Identifier expected. node_modules/lodash/orderBy.js(18,10): error TS8024: JSDoc '@param' tag has name '', but there is no parameter with that name. +node_modules/lodash/org.js(8,22): error TS2307: Cannot find module 'moment'. +node_modules/lodash/org.js(9,19): error TS2307: Cannot find module 'ncp'. node_modules/lodash/parseInt.js(24,10): error TS1003: Identifier expected. node_modules/lodash/parseInt.js(24,10): error TS8024: JSDoc '@param' tag has name '', but there is no parameter with that name. node_modules/lodash/partial.js(48,9): error TS2339: Property 'placeholder' does not exist on type 'Function'. @@ -411,16 +419,16 @@ node_modules/lodash/takeRight.js(13,10): error TS1003: Identifier expected. node_modules/lodash/takeRight.js(13,10): error TS8024: JSDoc '@param' tag has name '', but there is no parameter with that name. node_modules/lodash/takeRightWhile.js(41,48): error TS2554: Expected 0-1 arguments, but got 2. node_modules/lodash/takeWhile.js(41,48): error TS2554: Expected 0-1 arguments, but got 2. -node_modules/lodash/template.js(65,10): error TS1003: Identifier expected. -node_modules/lodash/template.js(65,10): error TS8024: JSDoc '@param' tag has name '', but there is no parameter with that name. -node_modules/lodash/template.js(146,34): error TS2532: Object is possibly 'undefined'. -node_modules/lodash/template.js(153,21): error TS2532: Object is possibly 'undefined'. -node_modules/lodash/template.js(158,6): error TS2532: Object is possibly 'undefined'. -node_modules/lodash/template.js(161,6): error TS2532: Object is possibly 'undefined'. -node_modules/lodash/template.js(165,34): error TS2532: Object is possibly 'undefined'. -node_modules/lodash/template.js(171,15): error TS2532: Object is possibly 'undefined'. -node_modules/lodash/template.js(196,18): error TS2532: Object is possibly 'undefined'. -node_modules/lodash/template.js(225,21): error TS2345: Argument of type 'any[]' is not assignable to parameter of type 'string'. +node_modules/lodash/template.js(71,10): error TS1003: Identifier expected. +node_modules/lodash/template.js(71,10): error TS8024: JSDoc '@param' tag has name '', but there is no parameter with that name. +node_modules/lodash/template.js(152,34): error TS2532: Object is possibly 'undefined'. +node_modules/lodash/template.js(159,21): error TS2532: Object is possibly 'undefined'. +node_modules/lodash/template.js(164,6): error TS2532: Object is possibly 'undefined'. +node_modules/lodash/template.js(167,6): error TS2532: Object is possibly 'undefined'. +node_modules/lodash/template.js(176,9): error TS2532: Object is possibly 'undefined'. +node_modules/lodash/template.js(184,15): error TS2532: Object is possibly 'undefined'. +node_modules/lodash/template.js(211,62): error TS2532: Object is possibly 'undefined'. +node_modules/lodash/template.js(240,21): error TS2345: Argument of type 'any[]' is not assignable to parameter of type 'string'. node_modules/lodash/templateSettings.js(63,12): error TS2322: Type '{ 'escape': (string?: string | undefined) => string; }' is not assignable to type 'Function'. Object literal may only specify known properties, and ''escape'' does not exist in type 'Function'. node_modules/lodash/throttle.js(59,28): error TS2532: Object is possibly 'undefined'. @@ -445,7 +453,9 @@ node_modules/lodash/truncate.js(62,30): error TS2532: Object is possibly 'undefi node_modules/lodash/truncate.js(78,16): error TS2454: Variable 'strSymbols' is used before being assigned. node_modules/lodash/truncate.js(85,7): error TS2454: Variable 'strSymbols' is used before being assigned. node_modules/lodash/unary.js(19,10): error TS2554: Expected 3 arguments, but got 2. -node_modules/lodash/unescape.js(30,37): error TS2345: Argument of type 'Function' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. +node_modules/lodash/unescape.js(30,37): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'Function' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. node_modules/lodash/union.js(23,42): error TS2345: Argument of type '(value: any) => boolean' is not assignable to parameter of type 'boolean | undefined'. Type '(value: any) => boolean' is not assignable to type 'true'. node_modules/lodash/unionBy.js(36,42): error TS2345: Argument of type '(value: any) => boolean' is not assignable to parameter of type 'boolean | undefined'. diff --git a/tests/baselines/reference/user/mqtt.log b/tests/baselines/reference/user/mqtt.log new file mode 100644 index 00000000000..54141b16777 --- /dev/null +++ b/tests/baselines/reference/user/mqtt.log @@ -0,0 +1,8 @@ +Exit Code: 1 +Standard output: +../../../../built/local/lib.es2015.iterable.d.ts(41,6): error TS2300: Duplicate identifier 'IteratorResult'. +../../../../node_modules/@types/node/index.d.ts(77,11): error TS2300: Duplicate identifier 'IteratorResult'. + + + +Standard error: diff --git a/tests/baselines/reference/user/npm.log b/tests/baselines/reference/user/npm.log index d00bf5aac17..25f27b16669 100644 --- a/tests/baselines/reference/user/npm.log +++ b/tests/baselines/reference/user/npm.log @@ -171,9 +171,11 @@ node_modules/npm/lib/config/core.js(307,8): error TS2339: Property 'sources' doe node_modules/npm/lib/config/core.js(308,8): error TS2339: Property 'push' does not exist on type 'Conf'. node_modules/npm/lib/config/core.js(309,8): error TS2339: Property '_await' does not exist on type 'Conf'. node_modules/npm/lib/config/core.js(333,10): error TS2339: Property 'emit' does not exist on type 'Conf'. -node_modules/npm/lib/config/core.js(409,29): error TS2345: Argument of type '(orig: string, esc: any, name: any) => string | undefined' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. - Type 'string | undefined' is not assignable to type 'string'. - Type 'undefined' is not assignable to type 'string'. +node_modules/npm/lib/config/core.js(409,29): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(orig: string, esc: any, name: any) => string | undefined' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. + Type 'string | undefined' is not assignable to type 'string'. + Type 'undefined' is not assignable to type 'string'. node_modules/npm/lib/config/defaults.js(20,52): error TS2345: Argument of type 'never[]' is not assignable to parameter of type '[any, ...any[]]'. Property '0' is missing in type 'never[]' but required in type '[any, ...any[]]'. node_modules/npm/lib/config/gentle-fs.js(16,11): error TS2339: Property 'prefix' does not exist on type 'typeof EventEmitter'. @@ -282,7 +284,11 @@ node_modules/npm/lib/doctor.js(90,24): error TS2339: Property 'config' does not node_modules/npm/lib/doctor.js(108,92): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/doctor/check-files-permission.js(11,14): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/doctor/check-files-permission.js(11,38): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. -node_modules/npm/lib/doctor/verify-cached-files.js(10,90): error TS2345: Argument of type '2' is not assignable to parameter of type '(string | number)[] | null | undefined'. +node_modules/npm/lib/doctor/verify-cached-files.js(10,90): error TS2769: No overload matches this call. + Overload 1 of 2, '(value: any, replacer?: ((this: any, key: string, value: any) => any) | undefined, space?: string | number | undefined): string', gave the following error. + Argument of type '2' is not assignable to parameter of type '((this: any, key: string, value: any) => any) | undefined'. + Overload 2 of 2, '(value: any, replacer?: (string | number)[] | null | undefined, space?: string | number | undefined): string', gave the following error. + Argument of type '2' is not assignable to parameter of type '(string | number)[] | null | undefined'. node_modules/npm/lib/edit.js(18,15): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/edit.js(27,28): error TS2339: Property 'dir' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/edit.js(32,11): error TS2339: Property 'commands' does not exist on type 'typeof EventEmitter'. @@ -353,8 +359,12 @@ node_modules/npm/lib/install.js(273,7): error TS2532: Object is possibly 'undefi node_modules/npm/lib/install.js(273,7): error TS2684: The 'this' context of type '((err: any, ...args: any[]) => any) | undefined' is not assignable to method's 'this' of type '(this: null, err?: any, ...args: any[]) => any'. Type 'undefined' is not assignable to type '(this: null, err?: any, ...args: any[]) => any'. node_modules/npm/lib/install.js(340,25): error TS2339: Property 'failing' does not exist on type 'Installer'. -node_modules/npm/lib/install.js(369,18): error TS2345: Argument of type '"time"' is not assignable to parameter of type 'Signals'. -node_modules/npm/lib/install.js(376,16): error TS2345: Argument of type '"timeEnd"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/install.js(369,18): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"time"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/install.js(376,16): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"timeEnd"' is not assignable to parameter of type 'Signals'. node_modules/npm/lib/install.js(519,40): error TS2339: Property 'globalPrefix' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/install.js(597,12): error TS2339: Property 'failing' does not exist on type 'Installer'. node_modules/npm/lib/install.js(614,12): error TS2339: Property 'failing' does not exist on type 'Installer'. @@ -388,8 +398,12 @@ node_modules/npm/lib/install/action/refresh-package-json.js(31,43): error TS2339 node_modules/npm/lib/install/action/remove.js(25,37): error TS2339: Property 'prefix' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/install/action/remove.js(25,51): error TS2339: Property 'prefix' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/install/actions.js(126,24): error TS2339: Property 'limit' does not exist on type 'typeof EventEmitter'. -node_modules/npm/lib/install/actions.js(168,16): error TS2345: Argument of type '"time"' is not assignable to parameter of type 'Signals'. -node_modules/npm/lib/install/actions.js(171,16): error TS2345: Argument of type '"timeEnd"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/install/actions.js(168,16): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"time"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/install/actions.js(171,16): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"timeEnd"' is not assignable to parameter of type 'Signals'. node_modules/npm/lib/install/and-add-parent-to-errors.js(9,10): error TS2339: Property 'parent' does not exist on type 'Error'. node_modules/npm/lib/install/audit.js(32,19): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/install/audit.js(89,17): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. @@ -521,7 +535,9 @@ node_modules/npm/lib/ls.js(538,12): error TS2339: Property 'config' does not exi node_modules/npm/lib/ls.js(544,56): error TS2339: Property 'globalDir' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/npm.js(5,13): error TS2551: Property 'echo' does not exist on type '{ Echo(s: any): void; StdErr: TextStreamWriter; StdOut: TextStreamWriter; Arguments: { length: number; Item(n: number): string; }; ScriptFullName: string; Quit(exitCode?: number | undefined): number; ... 12 more ...; Sleep(intTime: number): void; }'. Did you mean 'Echo'? node_modules/npm/lib/npm.js(12,13): error TS2551: Property 'quit' does not exist on type '{ Echo(s: any): void; StdErr: TextStreamWriter; StdOut: TextStreamWriter; Arguments: { length: number; Item(n: number): string; }; ScriptFullName: string; Quit(exitCode?: number | undefined): number; ... 12 more ...; Sleep(intTime: number): void; }'. Did you mean 'Quit'? -node_modules/npm/lib/npm.js(30,14): error TS2345: Argument of type '"log"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/npm.js(30,14): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"log"' is not assignable to parameter of type 'Signals'. node_modules/npm/lib/npm.js(58,7): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/npm.js(68,7): error TS2339: Property 'commands' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/npm.js(71,7): error TS2339: Property 'limit' does not exist on type 'typeof EventEmitter'. @@ -677,9 +693,13 @@ node_modules/npm/lib/run-script.js(35,22): error TS2339: Property 'localPrefix' node_modules/npm/lib/run-script.js(46,26): error TS2339: Property 'localPrefix' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/run-script.js(56,20): error TS2339: Property 'localPrefix' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/run-script.js(66,28): error TS2339: Property 'localPrefix' does not exist on type 'typeof EventEmitter'. -node_modules/npm/lib/run-script.js(77,22): error TS2322: Type 'string' is not assignable to type 'never'. -node_modules/npm/lib/run-script.js(77,33): error TS2322: Type 'string' is not assignable to type 'never'. -node_modules/npm/lib/run-script.js(77,36): error TS2322: Type 'string' is not assignable to type 'never'. +node_modules/npm/lib/run-script.js(77,12): error TS2769: No overload matches this call. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Type 'string' is not assignable to type 'never'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Type 'string' is not assignable to type 'never'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Type 'string' is not assignable to type 'never'. node_modules/npm/lib/run-script.js(94,13): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/run-script.js(99,13): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/run-script.js(148,22): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. @@ -783,8 +803,12 @@ node_modules/npm/lib/utils/completion/installed-shallow.js(79,14): error TS2339: node_modules/npm/lib/utils/error-handler.js(12,21): error TS2339: Property 'rollbacks' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/utils/error-handler.js(23,36): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/utils/error-handler.js(29,16): error TS2339: Property 'version' does not exist on type 'typeof EventEmitter'. -node_modules/npm/lib/utils/error-handler.js(33,12): error TS2345: Argument of type '"timing"' is not assignable to parameter of type 'Signals'. -node_modules/npm/lib/utils/error-handler.js(38,16): error TS2345: Argument of type '"timeEnd"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/utils/error-handler.js(33,12): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"timing"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/utils/error-handler.js(38,16): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"timeEnd"' is not assignable to parameter of type 'Signals'. node_modules/npm/lib/utils/error-handler.js(40,11): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/utils/error-handler.js(40,32): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/utils/error-handler.js(43,39): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. @@ -838,8 +862,12 @@ node_modules/npm/lib/utils/metrics.js(62,7): error TS2339: Property 'load' does node_modules/npm/lib/utils/metrics.js(64,9): error TS2339: Property 'registry' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/utils/metrics.js(65,9): error TS2339: Property 'registry' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/utils/output.js(6,30): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type '[any?, ...any[]]'. -node_modules/npm/lib/utils/perf.js(9,12): error TS2345: Argument of type '"time"' is not assignable to parameter of type 'Signals'. -node_modules/npm/lib/utils/perf.js(10,12): error TS2345: Argument of type '"timeEnd"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/utils/perf.js(9,12): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"time"' is not assignable to parameter of type 'Signals'. +node_modules/npm/lib/utils/perf.js(10,12): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"timeEnd"' is not assignable to parameter of type 'Signals'. node_modules/npm/lib/utils/read-local-package.js(7,11): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/utils/read-local-package.js(9,29): error TS2339: Property 'prefix' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/utils/spawn.js(26,8): error TS2339: Property 'file' does not exist on type 'Error'. @@ -852,7 +880,11 @@ node_modules/npm/lib/utils/spawn.js(45,10): error TS2339: Property 'stdout' does node_modules/npm/lib/utils/spawn.js(46,10): error TS2339: Property 'stderr' does not exist on type 'EventEmitter'. node_modules/npm/lib/utils/spawn.js(47,10): error TS2339: Property 'kill' does not exist on type 'EventEmitter'. node_modules/npm/lib/utils/temp-filename.js(6,29): error TS2339: Property 'tmp' does not exist on type 'typeof EventEmitter'. -node_modules/npm/lib/utils/usage.js(8,21): error TS2345: Argument of type 'string' is not assignable to parameter of type 'ConcatArray'. +node_modules/npm/lib/utils/usage.js(8,21): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type 'string' is not assignable to parameter of type 'ConcatArray'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type 'string' is not assignable to parameter of type 'ConcatArray'. node_modules/npm/lib/version.js(24,27): error TS2339: Property 'version' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/version.js(82,22): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. node_modules/npm/lib/version.js(97,12): error TS2339: Property 'config' does not exist on type 'typeof EventEmitter'. @@ -951,7 +983,11 @@ node_modules/npm/test/need-npm5-update/need-outdated/update-symlink.js(6,20): er node_modules/npm/test/need-npm5-update/need-outdated/update-symlink.js(8,22): error TS2307: Cannot find module '../common-tap.js'. node_modules/npm/test/need-npm5-update/outdated-depth-deep.js(3,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/need-npm5-update/outdated-depth-deep.js(5,18): error TS2307: Cannot find module 'npm-registry-mock'. -node_modules/npm/test/need-npm5-update/outdated-depth-deep.js(69,52): error TS2322: Type 'number' is not assignable to type 'string'. +node_modules/npm/test/need-npm5-update/outdated-depth-deep.js(69,52): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): string[]', gave the following error. + Type 'number' is not assignable to type 'string'. + Overload 2 of 2, '(...items: (string | ConcatArray)[]): string[]', gave the following error. + Type 'number' is not assignable to type 'string'. node_modules/npm/test/need-npm5-update/outdated-depth-integer.js(2,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/need-npm5-update/outdated-depth-integer.js(5,18): error TS2307: Cannot find module 'npm-registry-mock'. node_modules/npm/test/need-npm5-update/outdated-depth-integer.js(55,9): error TS2339: Property 'load' does not exist on type 'typeof EventEmitter'. @@ -1483,9 +1519,15 @@ node_modules/npm/test/tap/prepublish-only.js(6,21): error TS2307: Cannot find mo node_modules/npm/test/tap/prepublish.js(3,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/process-logger.js(2,22): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/process-logger.js(7,61): error TS2554: Expected 1-3 arguments, but got 4. -node_modules/npm/test/tap/process-logger.js(8,37): error TS2345: Argument of type '"log"' is not assignable to parameter of type 'Signals'. -node_modules/npm/test/tap/process-logger.js(9,37): error TS2345: Argument of type '"log"' is not assignable to parameter of type 'Signals'. -node_modules/npm/test/tap/process-logger.js(10,37): error TS2345: Argument of type '"log"' is not assignable to parameter of type 'Signals'. +node_modules/npm/test/tap/process-logger.js(8,37): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"log"' is not assignable to parameter of type 'Signals'. +node_modules/npm/test/tap/process-logger.js(9,37): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"log"' is not assignable to parameter of type 'Signals'. +node_modules/npm/test/tap/process-logger.js(10,37): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '"log"' is not assignable to parameter of type 'Signals'. node_modules/npm/test/tap/progress-config.js(3,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/progress-config.js(12,29): error TS2307: Cannot find module 'require-inject'. node_modules/npm/test/tap/prune-dev-dep-cycle.js(4,20): error TS2307: Cannot find module 'tap'. @@ -1515,8 +1557,12 @@ node_modules/npm/test/tap/publish-scoped.js(4,20): error TS2307: Cannot find mod node_modules/npm/test/tap/publish-scoped.js(8,18): error TS2307: Cannot find module 'npm-registry-mock'. node_modules/npm/test/tap/publish.js(8,33): error TS2307: Cannot find module 'npm-registry-mock'. node_modules/npm/test/tap/publish.js(11,22): error TS2307: Cannot find module 'tap'. -node_modules/npm/test/tap/publish.js(56,47): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string | RegExp'. -node_modules/npm/test/tap/publish.js(117,45): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string | RegExp'. +node_modules/npm/test/tap/publish.js(56,47): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'number' is not assignable to parameter of type 'string | RegExp'. +node_modules/npm/test/tap/publish.js(117,45): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type 'number' is not assignable to parameter of type 'string | RegExp'. node_modules/npm/test/tap/pwd-prefix.js(5,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/referer.js(2,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/repo.js(2,18): error TS2307: Cannot find module 'npm-registry-mock'. @@ -1527,10 +1573,26 @@ node_modules/npm/test/tap/retry-on-stale-cache.js(6,47): error TS2339: Property node_modules/npm/test/tap/retry-on-stale-cache.js(7,21): error TS2307: Cannot find module 'tacks'. node_modules/npm/test/tap/run-script-filter-private.js(6,20): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/run-script.js(5,20): error TS2307: Cannot find module 'tap'. -node_modules/npm/test/tap/run-script.js(213,18): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. - Type 'undefined' is not assignable to type 'string'. -node_modules/npm/test/tap/run-script.js(256,18): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. - Type 'undefined' is not assignable to type 'string'. +node_modules/npm/test/tap/run-script.js(213,18): error TS2769: No overload matches this call. + Overload 1 of 3, '(pattern: string | RegExp, flags?: string | undefined): RegExp', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string | RegExp'. + Type 'undefined' is not assignable to type 'string | RegExp'. + Overload 2 of 3, '(pattern: string | RegExp): RegExp', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string | RegExp'. + Type 'undefined' is not assignable to type 'string | RegExp'. + Overload 3 of 3, '(pattern: string, flags?: string | undefined): RegExp', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string'. + Type 'undefined' is not assignable to type 'string'. +node_modules/npm/test/tap/run-script.js(256,18): error TS2769: No overload matches this call. + Overload 1 of 3, '(pattern: string | RegExp, flags?: string | undefined): RegExp', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string | RegExp'. + Type 'undefined' is not assignable to type 'string | RegExp'. + Overload 2 of 3, '(pattern: string | RegExp): RegExp', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string | RegExp'. + Type 'undefined' is not assignable to type 'string | RegExp'. + Overload 3 of 3, '(pattern: string, flags?: string | undefined): RegExp', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string'. + Type 'undefined' is not assignable to type 'string'. node_modules/npm/test/tap/save-optional.js(3,22): error TS2307: Cannot find module 'tap'. node_modules/npm/test/tap/save-optional.js(4,20): error TS2307: Cannot find module 'npm-registry-mock'. node_modules/npm/test/tap/save-optional.js(5,23): error TS2307: Cannot find module 'tacks'. diff --git a/tests/baselines/reference/user/npmlog.log b/tests/baselines/reference/user/npmlog.log index 3bd136ecd23..1e6284674e3 100644 --- a/tests/baselines/reference/user/npmlog.log +++ b/tests/baselines/reference/user/npmlog.log @@ -7,8 +7,13 @@ node_modules/npmlog/log.js(155,8): error TS2551: Property '_paused' does not exi node_modules/npmlog/log.js(194,37): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[any, ...any[]]'. Property '0' is missing in type 'any[]' but required in type '[any, ...any[]]'. node_modules/npmlog/log.js(218,12): error TS2551: Property '_paused' does not exist on type 'typeof EventEmitter'. Did you mean 'pause'? -node_modules/npmlog/log.js(271,16): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. - Type 'undefined' is not assignable to type 'string'. +node_modules/npmlog/log.js(271,16): error TS2769: No overload matches this call. + Overload 1 of 2, '(buffer: string | Uint8Array | Buffer, cb?: ((err?: Error | null | undefined) => void) | undefined): boolean', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string | Uint8Array | Buffer'. + Type 'undefined' is not assignable to type 'string | Uint8Array | Buffer'. + Overload 2 of 2, '(str: string, encoding?: string | undefined, cb?: ((err?: Error | null | undefined) => void) | undefined): boolean', gave the following error. + Argument of type 'string | undefined' is not assignable to parameter of type 'string'. + Type 'undefined' is not assignable to type 'string'. diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index 4bebd0414b1..e0c8a987cd3 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -1,5 +1,7 @@ Exit Code: 1 Standard output: +../../../../../built/local/lib.es2015.iterable.d.ts(41,6): error TS2300: Duplicate identifier 'IteratorResult'. +../../../../../node_modules/@types/node/index.d.ts(77,11): error TS2300: Duplicate identifier 'IteratorResult'. node_modules/@typescript-eslint/typescript-estree/dist/parser.d.ts(1,8): error TS1259: Module '"/prettier/prettier/node_modules/typescript/lib/typescript"' can only be default-imported using the 'esModuleInterop' flag src/cli/util.js(60,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'number | undefined'. src/cli/util.js(119,38): error TS2339: Property 'sync' does not exist on type '(...args: any[]) => any'. @@ -114,17 +116,36 @@ src/language-html/parser-html.js(161,14): error TS2339: Property 'tagDefinition' src/language-html/parser-html.js(194,29): error TS2345: Argument of type '{ type: any; value: any; raw: any; }' is not assignable to parameter of type 'Node'. Type '{ type: any; value: any; raw: any; }' is missing the following properties from type 'Node': sourceSpan, visit src/language-html/preprocess.js(28,19): error TS2554: Expected 0-1 arguments, but got 2. -src/language-html/printer-html.js(313,13): error TS2345: Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. - Type '""' is not assignable to type 'ConcatArray'. -src/language-html/printer-html.js(470,11): error TS2345: Argument of type '{ type: string; parts: any; }[]' is not assignable to parameter of type 'ConcatArray'. - Types of property 'slice' are incompatible. - Type '(start?: number | undefined, end?: number | undefined) => { type: string; parts: any; }[]' is not assignable to type '(start?: number | undefined, end?: number | undefined) => never[]'. - Type '{ type: string; parts: any; }[]' is not assignable to type 'never[]'. - Type '{ type: string; parts: any; }' is not assignable to type 'never'. -src/language-html/printer-html.js(491,11): error TS2345: Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. - Type '""' is not assignable to type 'ConcatArray'. -src/language-html/printer-html.js(514,11): error TS2345: Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. - Type '""' is not assignable to type 'ConcatArray'. +src/language-html/printer-html.js(313,13): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. + Type '""' is not assignable to type 'ConcatArray'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. + Type '""' is not assignable to type 'ConcatArray'. +src/language-html/printer-html.js(470,11): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '{ type: string; parts: any; }[]' is not assignable to parameter of type 'ConcatArray'. + Types of property 'slice' are incompatible. + Type '(start?: number | undefined, end?: number | undefined) => { type: string; parts: any; }[]' is not assignable to type '(start?: number | undefined, end?: number | undefined) => never[]'. + Type '{ type: string; parts: any; }[]' is not assignable to type 'never[]'. + Type '{ type: string; parts: any; }' is not assignable to type 'never'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '{ type: string; parts: any; }[]' is not assignable to parameter of type 'ConcatArray'. +src/language-html/printer-html.js(491,11): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. + Type '""' is not assignable to type 'ConcatArray'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. + Type '""' is not assignable to type 'ConcatArray'. +src/language-html/printer-html.js(514,11): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. + Type '""' is not assignable to type 'ConcatArray'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '"" | ">" | "/>" | "}}" | "]>" | ">" | "[endif]-->" | "]>"' is not assignable to parameter of type 'ConcatArray'. + Type '""' is not assignable to type 'ConcatArray'. src/language-html/printer-html.js(637,55): error TS2554: Expected 0 arguments, but got 1. src/language-html/syntax-vue.js(14,11): error TS2339: Property 'left' does not exist on type '{ left: string; operator: any; right: any; } | undefined'. src/language-html/syntax-vue.js(14,17): error TS2339: Property 'operator' does not exist on type '{ left: string; operator: any; right: any; } | undefined'. @@ -155,17 +176,32 @@ src/language-js/printer-estree.js(262,36): error TS2304: Cannot find name 'Doc'. src/language-js/printer-estree.js(263,62): error TS2304: Cannot find name 'Doc'. src/language-js/printer-estree.js(270,12): error TS2304: Cannot find name 'FastPath'. src/language-js/printer-estree.js(271,12): error TS2304: Cannot find name 'Options'. -src/language-js/printer-estree.js(397,9): error TS2345: Argument of type '{ type: string; parts: any; } | { type: string; contents: any; n: any; }' is not assignable to parameter of type 'ConcatArray'. - Type '{ type: string; parts: any; }' is missing the following properties from type 'ConcatArray': length, join, slice -src/language-js/printer-estree.js(1470,28): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; } | ConcatArray'. - Type '{ type: string; parts: any; }' is missing the following properties from type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }': id, contents, break, expandedStates +src/language-js/printer-estree.js(397,9): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '{ type: string; parts: any; } | { type: string; contents: any; n: any; }' is not assignable to parameter of type 'ConcatArray'. + Type '{ type: string; parts: any; }' is missing the following properties from type 'ConcatArray': length, join, slice + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '{ type: string; parts: any; } | { type: string; contents: any; n: any; }' is not assignable to parameter of type 'ConcatArray'. + Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. +src/language-js/printer-estree.js(1470,28): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): (string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; })[]', gave the following error. + Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. + Type '{ type: string; parts: any; }' is missing the following properties from type 'ConcatArray': length, join, slice + Overload 2 of 2, '(...items: (string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; } | ConcatArray)[]): (string | { ...; })[]', gave the following error. + Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string | { type: string; id: any; contents: any; break: boolean; expandedStates: any; } | ConcatArray'. + Type '{ type: string; parts: any; }' is missing the following properties from type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }': id, contents, break, expandedStates src/language-js/printer-estree.js(1890,20): error TS2345: Argument of type '" "' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. src/language-js/printer-estree.js(1892,20): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. src/language-js/printer-estree.js(1894,18): error TS2345: Argument of type '"while ("' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. src/language-js/printer-estree.js(1903,9): error TS2345: Argument of type '")"' is not assignable to parameter of type '{ type: string; id: any; contents: any; break: boolean; expandedStates: any; }'. src/language-js/printer-estree.js(2426,28): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. -src/language-js/printer-estree.js(3513,11): error TS2345: Argument of type 'never[] | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. - Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. +src/language-js/printer-estree.js(3513,11): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type 'never[] | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. + Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type 'never[] | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. + Type '{ type: string; parts: any; }' is not assignable to type 'ConcatArray'. src/language-js/printer-estree.js(4031,23): error TS2532: Object is possibly 'undefined'. src/language-js/printer-estree.js(4032,24): error TS2532: Object is possibly 'undefined'. src/language-js/printer-estree.js(4360,5): error TS2345: Argument of type '"" | { type: string; parts: any; } | { type: string; contents: any; }' is not assignable to parameter of type 'string'. @@ -174,13 +210,17 @@ src/language-js/printer-estree.js(4364,16): error TS2345: Argument of type '{ ty src/language-js/printer-estree.js(4406,9): error TS2345: Argument of type '{ type: string; parts: any; }' is not assignable to parameter of type 'string'. src/language-js/printer-estree.js(4708,9): error TS2554: Expected 0-2 arguments, but got 3. src/language-js/printer-estree.js(5939,55): error TS2554: Expected 0-1 arguments, but got 2. -src/language-js/printer-estree.js(5975,7): error TS2345: Argument of type '(string | number)[]' is not assignable to parameter of type '((childPath: any) => any) | ConcatArray<(childPath: any) => any>'. - Type '(string | number)[]' is not assignable to type 'ConcatArray<(childPath: any) => any>'. - Types of property 'slice' are incompatible. - Type '(start?: number | undefined, end?: number | undefined) => (string | number)[]' is not assignable to type '(start?: number | undefined, end?: number | undefined) => ((childPath: any) => any)[]'. - Type '(string | number)[]' is not assignable to type '((childPath: any) => any)[]'. - Type 'string | number' is not assignable to type '(childPath: any) => any'. - Type 'string' is not assignable to type '(childPath: any) => any'. +src/language-js/printer-estree.js(5975,7): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray<(childPath: any) => any>[]): ((childPath: any) => any)[]', gave the following error. + Argument of type '(string | number)[]' is not assignable to parameter of type 'ConcatArray<(childPath: any) => any>'. + Types of property 'slice' are incompatible. + Type '(start?: number | undefined, end?: number | undefined) => (string | number)[]' is not assignable to type '(start?: number | undefined, end?: number | undefined) => ((childPath: any) => any)[]'. + Type '(string | number)[]' is not assignable to type '((childPath: any) => any)[]'. + Type 'string | number' is not assignable to type '(childPath: any) => any'. + Type 'string' is not assignable to type '(childPath: any) => any'. + Overload 2 of 2, '(...items: (((childPath: any) => any) | ConcatArray<(childPath: any) => any>)[]): ((childPath: any) => any)[]', gave the following error. + Argument of type '(string | number)[]' is not assignable to parameter of type '((childPath: any) => any) | ConcatArray<(childPath: any) => any>'. + Type '(string | number)[]' is not assignable to type 'ConcatArray<(childPath: any) => any>'. src/language-markdown/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/markdown'. src/language-markdown/index.js(20,5): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. @@ -192,8 +232,13 @@ src/language-markdown/utils.js(208,39): error TS2345: Argument of type 'any[]' i src/language-yaml/index.js(8,26): error TS2307: Cannot find module 'linguist-languages/data/yaml'. src/language-yaml/index.js(8,59): error TS2345: Argument of type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' is not assignable to parameter of type '{ extend: any; override: any; }'. Property 'extend' is missing in type '{ override: { since: string; parsers: string[]; vscodeLanguageIds: string[]; }; }' but required in type '{ extend: any; override: any; }'. -src/language-yaml/printer-yaml.js(226,41): error TS2345: Argument of type '"" | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. - Type '""' is not assignable to type 'ConcatArray'. +src/language-yaml/printer-yaml.js(226,41): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '"" | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. + Type '""' is not assignable to type 'ConcatArray'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type '"" | { type: string; parts: any; }' is not assignable to parameter of type 'ConcatArray'. + Type '""' is not assignable to type 'ConcatArray'. src/main/core-options.js(51,43): error TS1005: '}' expected. src/main/core-options.js(63,5): error TS2322: Type '{ since: string; category: string; type: "int"; default: number; range: { start: number; end: number; step: number; }; description: any; cliCategory: string; }' is not assignable to type 'OptionInfo'. Object literal may only specify known properties, and 'cliCategory' does not exist in type 'OptionInfo'. @@ -241,8 +286,13 @@ src/main/options-normalizer.js(90,44): error TS2345: Argument of type '{ name: s Object literal may only specify known properties, and 'name' does not exist in type 'SchemaHandlers'. src/main/options-normalizer.js(99,11): error TS2345: Argument of type '{ name: any; sourceName: any; }' is not assignable to parameter of type 'SchemaHandlers'. Object literal may only specify known properties, and 'name' does not exist in type 'SchemaHandlers'. -src/main/options-normalizer.js(143,13): error TS2345: Argument of type 'string | never[]' is not assignable to parameter of type 'ConcatArray'. - Type 'string' is not assignable to type 'ConcatArray'. +src/main/options-normalizer.js(143,13): error TS2769: No overload matches this call. + Overload 1 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type 'string | never[]' is not assignable to parameter of type 'ConcatArray'. + Type 'string' is not assignable to type 'ConcatArray'. + Overload 2 of 2, '(...items: ConcatArray[]): never[]', gave the following error. + Argument of type 'string | never[]' is not assignable to parameter of type 'ConcatArray'. + Type 'string' is not assignable to type 'ConcatArray'. src/main/options-normalizer.js(198,51): error TS2559: Type '{ name: any; }' has no properties in common with type 'SchemaHandlers'. src/main/parser.js(21,44): error TS2345: Argument of type 'PropertyDescriptor | undefined' is not assignable to parameter of type 'PropertyDescriptor & ThisType'. Type 'undefined' is not assignable to type 'PropertyDescriptor & ThisType'. diff --git a/tests/baselines/reference/user/util.log b/tests/baselines/reference/user/util.log index 0236e8e452b..5ede8516f9d 100644 --- a/tests/baselines/reference/user/util.log +++ b/tests/baselines/reference/user/util.log @@ -1,9 +1,11 @@ Exit Code: 1 Standard output: node_modules/util/util.js(27,20): error TS2555: Expected at least 2 arguments, but got 1. -node_modules/util/util.js(35,45): error TS2345: Argument of type '(x: string) => string | number' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. - Type 'string | number' is not assignable to type 'string'. - Type 'number' is not assignable to type 'string'. +node_modules/util/util.js(35,45): error TS2769: No overload matches this call. + The last overload gave the following error. + Argument of type '(x: string) => string | number' is not assignable to parameter of type '(substring: string, ...args: any[]) => string'. + Type 'string | number' is not assignable to type 'string'. + Type 'number' is not assignable to type 'string'. node_modules/util/util.js(55,20): error TS2555: Expected at least 2 arguments, but got 1. node_modules/util/util.js(73,15): error TS2339: Property 'noDeprecation' does not exist on type 'Process'. node_modules/util/util.js(80,19): error TS2339: Property 'throwDeprecation' does not exist on type 'Process'.