From e8f9664e12242bfd397cc1a60834096b83f92ee1 Mon Sep 17 00:00:00 2001 From: typescript-bot Date: Thu, 5 May 2022 23:08:57 +0000 Subject: [PATCH] Update user baselines +cc @sandersn --- .../reference/user/adonis-framework.log | 4 +- .../user/chrome-devtools-frontend.log | 12 +-- tests/baselines/reference/user/discord.js.log | 18 ++++ tests/baselines/reference/user/firebase.log | 7 ++ .../reference/user/follow-redirects.log | 12 +-- tests/baselines/reference/user/mqtt.log | 8 ++ tests/baselines/reference/user/npm.log | 88 +++++++++---------- tests/baselines/reference/user/soap.log | 8 ++ tests/baselines/reference/user/uglify-js.log | 2 +- tests/baselines/reference/user/vue.log | 9 +- tests/baselines/reference/user/vuex.log | 5 +- 11 files changed, 113 insertions(+), 60 deletions(-) create mode 100644 tests/baselines/reference/user/discord.js.log create mode 100644 tests/baselines/reference/user/firebase.log create mode 100644 tests/baselines/reference/user/mqtt.log create mode 100644 tests/baselines/reference/user/soap.log diff --git a/tests/baselines/reference/user/adonis-framework.log b/tests/baselines/reference/user/adonis-framework.log index 63817a27f30a4..2228d4339c7d7 100644 --- a/tests/baselines/reference/user/adonis-framework.log +++ b/tests/baselines/reference/user/adonis-framework.log @@ -63,7 +63,7 @@ node_modules/adonis-framework/src/Env/index.js(54,15): error TS2304: Cannot find node_modules/adonis-framework/src/Env/index.js(56,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Env/index.js(80,15): error TS2304: Cannot find name 'Mixed'. node_modules/adonis-framework/src/Event/index.js(13,21): error TS2307: Cannot find module 'adonis-fold' or its corresponding type declarations. -node_modules/adonis-framework/src/Event/index.js(128,12): error TS2322: Type '() => {}[]' is not assignable to type 'any[]'. +node_modules/adonis-framework/src/Event/index.js(128,12): error TS2740: Type '() => {}[]' is missing the following properties from type 'any[]': pop, push, concat, join, and 28 more. node_modules/adonis-framework/src/Event/index.js(153,25): error TS2339: Property 'wildcard' does not exist on type 'EventEmitter2'. node_modules/adonis-framework/src/Event/index.js(188,17): error TS2304: Cannot find name 'Spread'. node_modules/adonis-framework/src/Event/index.js(201,27): error TS2345: Argument of type 'IArguments' is not assignable to parameter of type 'Spread[]'. @@ -238,7 +238,7 @@ node_modules/adonis-framework/src/Session/index.js(265,12): error TS1359: Identi 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 '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/Static/index.js(45,18): error TS2810: Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments. +node_modules/adonis-framework/src/Static/index.js(45,18): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'? 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'. node_modules/adonis-framework/src/View/Form/index.js(147,63): error TS2345: Argument of type 'string | any[]' is not assignable to parameter of type 'any[]'. diff --git a/tests/baselines/reference/user/chrome-devtools-frontend.log b/tests/baselines/reference/user/chrome-devtools-frontend.log index 6c992bce10217..a0281e8dba010 100644 --- a/tests/baselines/reference/user/chrome-devtools-frontend.log +++ b/tests/baselines/reference/user/chrome-devtools-frontend.log @@ -1,6 +1,6 @@ Exit Code: null Standard output: -../../../../built/local/lib.es5.d.ts(1529,11): error TS2300: Duplicate identifier 'ArrayLike'. +../../../../built/local/lib.es5.d.ts(1523,11): error TS2300: Duplicate identifier 'ArrayLike'. ../../../../node_modules/@types/node/globals.d.ts(34,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 & typeof globalThis'. 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. @@ -11,7 +11,7 @@ node_modules/chrome-devtools-frontend/front_end/Runtime.js(270,9): error TS2322: Type 'void' is not assignable to type 'undefined'. node_modules/chrome-devtools-frontend/front_end/Runtime.js(280,5): error TS2322: Type 'Promise' is not assignable to type 'Promise'. node_modules/chrome-devtools-frontend/front_end/Runtime.js(525,9): error TS2322: Type 'Window' is not assignable to type 'Window & typeof globalThis'. - Type 'Window' is missing the following properties from type 'typeof globalThis': globalThis, eval, parseInt, parseFloat, and 889 more. + Type 'Window' is missing the following properties from type 'typeof globalThis': globalThis, eval, parseInt, parseFloat, and 873 more. node_modules/chrome-devtools-frontend/front_end/Runtime.js(527,55): error TS2352: Conversion of type 'Window & typeof globalThis' to type 'new () => any' may be a mistake because neither type sufficiently overlaps with the other. If this was intentional, convert the expression to 'unknown' first. Type 'Window & typeof globalThis' provides no match for the signature 'new (): any'. node_modules/chrome-devtools-frontend/front_end/Runtime.js(539,24): error TS2351: This expression is not constructable. @@ -22,7 +22,7 @@ node_modules/chrome-devtools-frontend/front_end/Runtime.js(705,5): error TS2322: node_modules/chrome-devtools-frontend/front_end/Runtime.js(715,7): error TS2322: Type 'Promise' is not assignable to type 'Promise'. node_modules/chrome-devtools-frontend/front_end/Runtime.js(729,7): error TS2322: Type 'Promise' is not assignable to type 'Promise'. node_modules/chrome-devtools-frontend/front_end/Runtime.js(746,5): error TS2322: Type 'Window | {}' is not assignable to type 'Window'. - Type '{}' is missing the following properties from type 'Window': clientInformation, closed, customElements, devicePixelRatio, and 193 more. + Type '{}' is missing the following properties from type 'Window': clientInformation, closed, customElements, devicePixelRatio, and 192 more. node_modules/chrome-devtools-frontend/front_end/Runtime.js(1083,15): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value. node_modules/chrome-devtools-frontend/front_end/Runtime.js(1088,15): error TS2355: A function whose declared type is neither 'void' nor 'any' must return a value. node_modules/chrome-devtools-frontend/front_end/Tests.js(107,5): error TS2322: Type 'Timeout' is not assignable to type 'number'. @@ -267,6 +267,7 @@ node_modules/chrome-devtools-frontend/front_end/animation/AnimationModel.js(778, node_modules/chrome-devtools-frontend/front_end/animation/AnimationModel.js(811,11): error TS2339: Property 'AnimationModel' does not exist on type '{ new (effect?: AnimationEffect, timeline?: AnimationTimeline): Animation; prototype: Animation; }'. node_modules/chrome-devtools-frontend/front_end/animation/AnimationScreenshotPopover.js(7,11): error TS2339: Property 'AnimationScreenshotPopover' does not exist on type '{ new (effect?: AnimationEffect, timeline?: AnimationTimeline): Animation; prototype: Animation; }'. node_modules/chrome-devtools-frontend/front_end/animation/AnimationScreenshotPopover.js(18,39): error TS2345: Argument of type 'new (width?: number, height?: number) => HTMLImageElement' is not assignable to parameter of type 'Node'. + Type 'new (width?: number, height?: number) => HTMLImageElement' is missing the following properties from type 'Node': baseURI, childNodes, firstChild, isConnected, and 46 more. node_modules/chrome-devtools-frontend/front_end/animation/AnimationScreenshotPopover.js(19,13): error TS2339: Property 'style' does not exist on type 'new (width?: number, height?: number) => HTMLImageElement'. node_modules/chrome-devtools-frontend/front_end/animation/AnimationScreenshotPopover.js(22,21): error TS2339: Property 'style' does not exist on type 'new (width?: number, height?: number) => HTMLImageElement'. node_modules/chrome-devtools-frontend/front_end/animation/AnimationScreenshotPopover.js(23,45): error TS2339: Property 'createChild' does not exist on type 'Element'. @@ -3442,8 +3443,6 @@ node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighth node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(68410,39): error TS2339: Property 'height' does not exist on type 'constructor'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(69037,13): error TS2339: Property 'displayName' does not exist on type '(image: any, quality: any) => any'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(69550,21): error TS2345: Argument of type 'number' is not assignable to parameter of type 'string'. -node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(70231,38): error TS2339: Property 'version' does not exist on type 'SemVer | {}'. - Property 'version' does not exist on type '{}'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(70747,4): error TS2531: Object is possibly 'null'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(70747,26): error TS2531: Object is possibly 'null'. node_modules/chrome-devtools-frontend/front_end/audits2_worker/lighthouse/lighthouse-background.js(70753,6): error TS2531: Object is possibly 'null'. @@ -6130,6 +6129,9 @@ node_modules/chrome-devtools-frontend/front_end/emulation/MediaQueryInspector.js node_modules/chrome-devtools-frontend/front_end/emulation/MediaQueryInspector.js(266,32): error TS2339: Property 'createChild' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/emulation/MediaQueryInspector.js(271,14): error TS2339: Property 'createChild' does not exist on type 'Element'. node_modules/chrome-devtools-frontend/front_end/emulation/MediaQueryInspector.js(272,33): error TS2339: Property 'createChild' does not exist on type 'Element'. +node_modules/chrome-devtools-frontend/front_end/emulation/MediaQueryInspector.js(277,14): error TS2339: Property 'createChild' does not exist on type 'Element'. +node_modules/chrome-devtools-frontend/front_end/emulation/MediaQueryInspector.js(281,32): error TS2339: Property 'createChild' does not exist on type 'Element'. +node_modules/chrome-devtools-frontend/front_end/emulation/MediaQueryInspector.js(285,14): error TS2339: Property 'createChild' does not exist on type 'Element'. diff --git a/tests/baselines/reference/user/discord.js.log b/tests/baselines/reference/user/discord.js.log new file mode 100644 index 0000000000000..e9e5ac9287324 --- /dev/null +++ b/tests/baselines/reference/user/discord.js.log @@ -0,0 +1,18 @@ +Exit Code: 2 +Standard output: +node_modules/discord.js/typings/index.d.ts(52,30): error TS2307: Cannot find module 'node:child_process' or its corresponding type declarations. +node_modules/discord.js/typings/index.d.ts(53,30): error TS2307: Cannot find module 'node:events' or its corresponding type declarations. +node_modules/discord.js/typings/index.d.ts(54,30): error TS2307: Cannot find module 'node:https' or its corresponding type declarations. +node_modules/discord.js/typings/index.d.ts(56,24): error TS2307: Cannot find module 'node:stream' or its corresponding type declarations. +node_modules/discord.js/typings/index.d.ts(57,37): error TS2307: Cannot find module 'node:worker_threads' or its corresponding type declarations. +node_modules/discord.js/typings/index.d.ts(658,28): error TS2694: Namespace 'NodeJS' has no exported member 'Timeout'. +node_modules/discord.js/typings/index.d.ts(659,32): error TS2694: Namespace 'NodeJS' has no exported member 'Timeout'. +node_modules/discord.js/typings/index.d.ts(1435,27): error TS2694: Namespace 'NodeJS' has no exported member 'Timeout'. +node_modules/discord.js/typings/index.d.ts(2194,47): error TS2694: Namespace 'NodeJS' has no exported member 'Timeout'. +node_modules/discord.js/typings/index.d.ts(2611,102): error TS2694: Namespace 'NodeJS' has no exported member 'Timeout'. +node_modules/discord.js/typings/index.d.ts(2613,32): error TS2694: Namespace 'NodeJS' has no exported member 'Timeout'. +node_modules/discord.js/typings/index.d.ts(2616,32): error TS2694: Namespace 'NodeJS' has no exported member 'Timeout'. + + + +Standard error: diff --git a/tests/baselines/reference/user/firebase.log b/tests/baselines/reference/user/firebase.log new file mode 100644 index 0000000000000..314eab733cbb0 --- /dev/null +++ b/tests/baselines/reference/user/firebase.log @@ -0,0 +1,7 @@ +Exit Code: 2 +Standard output: +index.ts(1,27): error TS2307: Cannot find module 'firebase' or its corresponding type declarations. + + + +Standard error: diff --git a/tests/baselines/reference/user/follow-redirects.log b/tests/baselines/reference/user/follow-redirects.log index 4614e8cfe4414..e5e30ced1b50b 100644 --- a/tests/baselines/reference/user/follow-redirects.log +++ b/tests/baselines/reference/user/follow-redirects.log @@ -28,14 +28,14 @@ node_modules/follow-redirects/index.js(266,10): error TS2339: Property 'emit' do node_modules/follow-redirects/index.js(302,16): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. node_modules/follow-redirects/index.js(346,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. node_modules/follow-redirects/index.js(361,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(385,35): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. +node_modules/follow-redirects/index.js(396,35): 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/follow-redirects/index.js(393,31): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. +node_modules/follow-redirects/index.js(404,31): 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/follow-redirects/index.js(396,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(422,12): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(433,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. -node_modules/follow-redirects/index.js(555,25): error TS2339: Property 'code' does not exist on type 'Error'. +node_modules/follow-redirects/index.js(407,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(441,12): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(452,10): error TS2339: Property 'emit' does not exist on type 'RedirectableRequest'. +node_modules/follow-redirects/index.js(574,25): error TS2339: Property 'code' does not exist on type 'Error'. diff --git a/tests/baselines/reference/user/mqtt.log b/tests/baselines/reference/user/mqtt.log new file mode 100644 index 0000000000000..ec41e8ba7f33e --- /dev/null +++ b/tests/baselines/reference/user/mqtt.log @@ -0,0 +1,8 @@ +Exit Code: 2 +Standard output: +node_modules/mqtt/types/lib/client-options.d.ts(3,31): error TS7016: Could not find a declaration file for module 'ws'. '../../../tests/cases/user/mqtt/node_modules/ws/index.js' implicitly has an 'any' type. + Try `npm i --save-dev @types/ws` if it exists or add a new declaration (.d.ts) file containing `declare module 'ws';` + + + +Standard error: diff --git a/tests/baselines/reference/user/npm.log b/tests/baselines/reference/user/npm.log index 0e59b2162282a..881762c81a5f9 100644 --- a/tests/baselines/reference/user/npm.log +++ b/tests/baselines/reference/user/npm.log @@ -53,15 +53,15 @@ lib/commands/completion.js(59,26): error TS2345: Argument of type 'string | unde Type 'undefined' is not assignable to type 'string'. lib/commands/completion.js(60,26): error TS2345: Argument of type 'string | undefined' is not assignable to parameter of type 'string'. Type 'undefined' is not assignable to type 'string'. -lib/commands/completion.js(220,9): error TS2810: Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments. -lib/commands/completion.js(232,7): error TS2810: Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments. +lib/commands/completion.js(220,9): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'? +lib/commands/completion.js(232,7): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'? lib/commands/config.js(47,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Config'. lib/commands/config.js(104,9): error TS2339: Property 'warn' does not exist on type '{}'. lib/commands/config.js(109,9): error TS2339: Property 'disableProgress' does not exist on type '{}'. lib/commands/config.js(134,11): error TS2339: Property 'enableProgress' does not exist on type '{}'. lib/commands/config.js(145,11): error TS2339: Property 'info' does not exist on type '{}'. lib/commands/config.js(148,13): error TS2339: Property 'warn' does not exist on type '{}'. -lib/commands/config.js(236,16): error TS2810: Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments. +lib/commands/config.js(236,16): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'? lib/commands/dedupe.js(9,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Dedupe'. lib/commands/dedupe.js(27,10): error TS2339: Property 'code' does not exist on type 'Error'. lib/commands/deprecate.js(11,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Deprecate'. @@ -83,29 +83,26 @@ lib/commands/dist-tag.js(170,11): error TS2339: Property 'error' does not exist lib/commands/dist-tag.js(178,24): error TS2532: Object is possibly 'undefined'. lib/commands/docs.js(8,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Docs'. lib/commands/docs.js(37,9): error TS2339: Property 'silly' does not exist on type '{}'. -lib/commands/doctor.js(41,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Doctor'. -lib/commands/doctor.js(46,9): error TS2339: Property 'info' does not exist on type '{}'. -lib/commands/doctor.js(98,19): error TS2345: Argument of type 'boolean' is not assignable to parameter of type 'string | any[]'. -lib/commands/doctor.js(98,36): error TS2538: Type 'any[]' cannot be used as an index type. -lib/commands/doctor.js(100,19): error TS2345: Argument of type 'boolean' is not assignable to parameter of type 'string | any[]'. -lib/commands/doctor.js(112,11): error TS2322: Type 'string | false | any[]' is not assignable to type 'boolean'. - Type 'string' is not assignable to type 'boolean'. -lib/commands/doctor.js(118,11): error TS2322: Type 'string | false | any[]' is not assignable to type 'boolean'. -lib/commands/doctor.js(141,25): error TS2339: Property 'newItem' does not exist on type '{}'. -lib/commands/doctor.js(147,27): error TS2571: Object is of type 'unknown'. -lib/commands/doctor.js(148,15): error TS2571: Object is of type 'unknown'. -lib/commands/doctor.js(148,40): error TS2571: Object is of type 'unknown'. -lib/commands/doctor.js(150,15): error TS2571: Object is of type 'unknown'. -lib/commands/doctor.js(158,25): error TS2339: Property 'newItem' does not exist on type '{}'. -lib/commands/doctor.js(177,25): error TS2339: Property 'newItem' does not exist on type '{}'. -lib/commands/doctor.js(207,25): error TS2339: Property 'newItem' does not exist on type '{}'. -lib/commands/doctor.js(272,25): error TS2339: Property 'newItem' does not exist on type '{}'. -lib/commands/doctor.js(285,25): error TS2339: Property 'newItem' does not exist on type '{}'. +lib/commands/doctor.js(40,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Doctor'. +lib/commands/doctor.js(45,9): error TS2339: Property 'info' does not exist on type '{}'. +lib/commands/doctor.js(97,19): error TS2345: Argument of type 'boolean' is not assignable to parameter of type 'string | any[]'. +lib/commands/doctor.js(97,36): error TS2538: Type 'any[]' cannot be used as an index type. +lib/commands/doctor.js(99,19): error TS2345: Argument of type 'boolean' is not assignable to parameter of type 'string | any[]'. +lib/commands/doctor.js(131,25): error TS2339: Property 'newItem' does not exist on type '{}'. +lib/commands/doctor.js(137,27): error TS2571: Object is of type 'unknown'. +lib/commands/doctor.js(138,15): error TS2571: Object is of type 'unknown'. +lib/commands/doctor.js(138,40): error TS2571: Object is of type 'unknown'. +lib/commands/doctor.js(140,15): error TS2571: Object is of type 'unknown'. +lib/commands/doctor.js(148,25): error TS2339: Property 'newItem' does not exist on type '{}'. +lib/commands/doctor.js(167,25): error TS2339: Property 'newItem' does not exist on type '{}'. +lib/commands/doctor.js(197,25): error TS2339: Property 'newItem' does not exist on type '{}'. +lib/commands/doctor.js(262,25): error TS2339: Property 'newItem' does not exist on type '{}'. +lib/commands/doctor.js(275,25): error TS2339: Property 'newItem' does not exist on type '{}'. lib/commands/edit.js(34,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Edit'. lib/commands/exec.js(40,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Exec'. lib/commands/exec.js(51,24): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. lib/commands/exec.js(51,37): error TS2525: Initializer provides no value for this binding element and the binding element has no default value. -lib/commands/exec.js(94,24): error TS2532: Object is possibly 'undefined'. +lib/commands/exec.js(97,24): error TS2532: Object is possibly 'undefined'. lib/commands/explain.js(12,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Explain'. lib/commands/explain.js(24,33): error TS2554: Expected 0-1 arguments, but got 2. lib/commands/explore.js(13,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Explore'. @@ -131,7 +128,7 @@ lib/commands/help.js(134,35): error TS2769: No overload matches this call. Type 'string' is not assignable to type 'StdioOptions | undefined'. lib/commands/help.js(136,12): error TS2339: Property 'on' does not exist on type 'never'. The intersection 'ChildProcessWithoutNullStreams & ChildProcessByStdio & ... 7 more ... & ChildProcess' was reduced to 'never' because property 'stdin' has conflicting types in some constituents. -lib/commands/help.js(141,16): error TS2810: Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments. +lib/commands/help.js(141,16): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'? lib/commands/hook.js(9,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Hook'. lib/commands/init.js(18,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Init'. lib/commands/init.js(129,9): error TS2339: Property 'pause' does not exist on type '{}'. @@ -140,7 +137,7 @@ lib/commands/init.js(151,13): error TS2339: Property 'resume' does not exist on lib/commands/init.js(152,13): error TS2339: Property 'enableProgress' does not exist on type '{}'. lib/commands/init.js(153,13): error TS2339: Property 'silly' does not exist on type '{}'. lib/commands/init.js(155,15): error TS2339: Property 'warn' does not exist on type '{}'. -lib/commands/init.js(156,18): error TS2810: Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments. +lib/commands/init.js(156,18): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'? lib/commands/init.js(161,15): error TS2339: Property 'info' does not exist on type '{}'. lib/commands/install-ci-test.js(8,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'InstallCITest'. lib/commands/install-test.js(8,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'InstallTest'. @@ -163,12 +160,14 @@ lib/commands/outdated.js(261,9): error TS2571: Object is of type 'unknown'. lib/commands/outdated.js(262,9): error TS2571: Object is of type 'unknown'. lib/commands/outdated.js(263,9): error TS2571: Object is of type 'unknown'. lib/commands/owner.js(21,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Owner'. -lib/commands/owner.js(99,11): error TS2339: Property 'error' does not exist on type '{}'. -lib/commands/owner.js(125,9): error TS2339: Property 'verbose' does not exist on type '{}'. -lib/commands/owner.js(134,11): error TS2339: Property 'error' does not exist on type '{}'. -lib/commands/owner.js(152,13): error TS2339: Property 'info' does not exist on type '{}'. -lib/commands/owner.js(166,13): error TS2339: Property 'info' does not exist on type '{}'. -lib/commands/owner.js(202,65): error TS2571: Object is of type 'unknown'. +lib/commands/owner.js(91,13): error TS2339: Property 'warn' does not exist on type '{}'. +lib/commands/owner.js(96,26): error TS2532: Object is possibly 'undefined'. +lib/commands/owner.js(122,11): error TS2339: Property 'error' does not exist on type '{}'. +lib/commands/owner.js(148,9): error TS2339: Property 'verbose' does not exist on type '{}'. +lib/commands/owner.js(157,11): error TS2339: Property 'error' does not exist on type '{}'. +lib/commands/owner.js(175,13): error TS2339: Property 'info' does not exist on type '{}'. +lib/commands/owner.js(189,13): error TS2339: Property 'info' does not exist on type '{}'. +lib/commands/owner.js(225,65): error TS2571: Object is of type 'unknown'. lib/commands/pack.js(10,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Pack'. lib/commands/pack.js(70,11): error TS2339: Property 'warn' does not exist on type '{}'. lib/commands/pack.js(75,26): error TS2488: Type 'any[] | undefined' must have a '[Symbol.iterator]()' method that returns an iterator. @@ -191,13 +190,13 @@ lib/commands/profile.js(331,9): error TS2339: Property 'info' does not exist on lib/commands/profile.js(361,9): error TS2339: Property 'info' does not exist on type '{}'. lib/commands/profile.js(395,9): error TS2339: Property 'info' does not exist on type '{}'. lib/commands/prune.js(8,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Prune'. -lib/commands/publish.js(30,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Publish'. -lib/commands/publish.js(52,9): error TS2339: Property 'verbose' does not exist on type '{}'. -lib/commands/publish.js(106,13): error TS2339: Property 'warn' does not exist on type '{}'. -lib/commands/publish.js(112,9): error TS2339: Property 'notice' does not exist on type '{}'. -lib/commands/publish.js(158,37): error TS2532: Object is possibly 'undefined'. -lib/commands/publish.js(163,13): error TS2571: Object is of type 'unknown'. -lib/commands/publish.js(164,15): error TS2339: Property 'warn' does not exist on type '{}'. +lib/commands/publish.js(29,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Publish'. +lib/commands/publish.js(51,9): error TS2339: Property 'verbose' does not exist on type '{}'. +lib/commands/publish.js(105,13): error TS2339: Property 'warn' does not exist on type '{}'. +lib/commands/publish.js(111,9): error TS2339: Property 'notice' does not exist on type '{}'. +lib/commands/publish.js(155,37): error TS2532: Object is possibly 'undefined'. +lib/commands/publish.js(160,13): error TS2571: Object is of type 'unknown'. +lib/commands/publish.js(161,15): error TS2339: Property 'warn' does not exist on type '{}'. lib/commands/rebuild.js(10,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Rebuild'. lib/commands/rebuild.js(24,33): error TS2554: Expected 0-1 arguments, but got 2. lib/commands/repo.js(10,10): error TS2699: Static property 'name' conflicts with built-in property 'Function.name' of constructor function 'Repo'. @@ -300,12 +299,13 @@ lib/npm.js(271,47): error TS2345: Argument of type '{ (value: any, replacer?: (( Types of parameters 'replacer' and 'index' are incompatible. Type 'number' is not assignable to type '(this: any, key: string, value: any) => any'. lib/npm.js(293,11): error TS2339: Property 'verbose' does not exist on type '{}'. -lib/npm.js(434,7): error TS2322: Type 'string' is not assignable to type 'null'. -lib/npm.js(436,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string'. -lib/npm.js(441,9): error TS2339: Property 'clearProgress' does not exist on type '{}'. -lib/npm.js(444,9): error TS2339: Property 'showProgress' does not exist on type '{}'. -lib/npm.js(448,9): error TS2339: Property 'clearProgress' does not exist on type '{}'. -lib/npm.js(451,9): error TS2339: Property 'showProgress' does not exist on type '{}'. +lib/npm.js(331,7): error TS2322: Type 'Chalk' is not assignable to type 'null'. +lib/npm.js(445,7): error TS2322: Type 'string' is not assignable to type 'null'. +lib/npm.js(447,44): error TS2345: Argument of type 'null' is not assignable to parameter of type 'string'. +lib/npm.js(452,9): error TS2339: Property 'clearProgress' does not exist on type '{}'. +lib/npm.js(455,9): error TS2339: Property 'showProgress' does not exist on type '{}'. +lib/npm.js(459,9): error TS2339: Property 'clearProgress' does not exist on type '{}'. +lib/npm.js(462,9): error TS2339: Property 'showProgress' does not exist on type '{}'. lib/search/format-package-stream.js(41,19): error TS2339: Property 'emit' does not exist on type 'JSONOutputStream'. lib/utils/audit-error.js(20,7): error TS2339: Property 'warn' does not exist on type '{}'. lib/utils/config/definition.js(43,52): error TS2339: Property 'default' does not exist on type 'Definition'. @@ -395,7 +395,7 @@ lib/utils/log-file.js(236,11): error TS2339: Property 'silly' does not exist on lib/utils/log-file.js(242,15): error TS2339: Property 'silly' does not exist on type '{}'. lib/utils/log-file.js(246,11): error TS2339: Property 'warn' does not exist on type '{}'. lib/utils/log-file.js(248,11): error TS2339: Property 'silly' does not exist on type '{}'. -lib/utils/open-url.js(49,14): error TS2810: Expected 1 argument, but got 0. 'new Promise()' needs a JSDoc hint to produce a 'resolve' that can be called without arguments. +lib/utils/open-url.js(49,14): error TS2794: Expected 1 arguments, but got 0. Did you forget to include 'void' in your type argument to 'Promise'? lib/utils/otplease.js(6,9): error TS2571: Object is of type 'unknown'. lib/utils/otplease.js(6,33): error TS2571: Object is of type 'unknown'. lib/utils/otplease.js(6,78): error TS2571: Object is of type 'unknown'. diff --git a/tests/baselines/reference/user/soap.log b/tests/baselines/reference/user/soap.log new file mode 100644 index 0000000000000..9e3c563c96b60 --- /dev/null +++ b/tests/baselines/reference/user/soap.log @@ -0,0 +1,8 @@ +Exit Code: 2 +Standard output: +node_modules/soap/lib/wsdl/index.d.ts(1,22): error TS7016: Could not find a declaration file for module 'sax'. '../../../tests/cases/user/soap/node_modules/sax/lib/sax.js' implicitly has an 'any' type. + Try `npm i --save-dev @types/sax` if it exists or add a new declaration (.d.ts) file containing `declare module 'sax';` + + + +Standard error: diff --git a/tests/baselines/reference/user/uglify-js.log b/tests/baselines/reference/user/uglify-js.log index 9c5a13e3322f8..3020427724414 100644 --- a/tests/baselines/reference/user/uglify-js.log +++ b/tests/baselines/reference/user/uglify-js.log @@ -55,7 +55,7 @@ node_modules/uglify-js/lib/compress.js(2298,42): error TS2532: Object is possibl node_modules/uglify-js/lib/compress.js(2298,54): error TS2365: Operator '+' cannot be applied to types 'number' and 'boolean'. node_modules/uglify-js/lib/compress.js(2311,25): error TS2322: Type 'boolean' is not assignable to type 'number'. node_modules/uglify-js/lib/compress.js(2315,25): error TS2322: Type 'boolean' is not assignable to type 'never'. -node_modules/uglify-js/lib/compress.js(2316,35): error TS2339: Property 'single_use' does not exist on type 'never'. +node_modules/uglify-js/lib/compress.js(2316,25): error TS2322: Type 'boolean' is not assignable to type 'never'. node_modules/uglify-js/lib/compress.js(2560,65): error TS2339: Property 'find_parent' does not exist on type 'TreeWalker'. node_modules/uglify-js/lib/compress.js(2563,45): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/compress.js(2742,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. diff --git a/tests/baselines/reference/user/vue.log b/tests/baselines/reference/user/vue.log index 81b2ee9c22d4b..10d87a37a8b78 100644 --- a/tests/baselines/reference/user/vue.log +++ b/tests/baselines/reference/user/vue.log @@ -1,6 +1,13 @@ Exit Code: 2 Standard output: -node_modules/@vue/runtime-core/dist/runtime-core.d.ts(1826,33): error TS2344: Type 'HostElement' does not satisfy the constraint 'RendererElement'. +node_modules/@babel/parser/typings/babel-parser.d.ts(14,23): error TS2307: Cannot find module '@babel/types' or its corresponding type declarations. +node_modules/@babel/parser/typings/babel-parser.d.ts(22,23): error TS2307: Cannot find module '@babel/types' or its corresponding type declarations. +node_modules/@vue/compiler-core/dist/compiler-core.d.ts(1,57): error TS2307: Cannot find module '@babel/types' or its corresponding type declarations. +node_modules/@vue/compiler-core/dist/compiler-core.d.ts(2,45): error TS2307: Cannot find module '@babel/types' or its corresponding type declarations. +node_modules/@vue/compiler-core/dist/compiler-core.d.ts(4,33): error TS2307: Cannot find module '@babel/types' or its corresponding type declarations. +node_modules/@vue/compiler-core/dist/compiler-core.d.ts(5,37): error TS2307: Cannot find module '@babel/types' or its corresponding type declarations. +node_modules/@vue/compiler-core/dist/compiler-core.d.ts(6,37): error TS2307: Cannot find module '@babel/types' or its corresponding type declarations. +node_modules/@vue/compiler-core/dist/compiler-core.d.ts(8,30): error TS2307: Cannot find module '@babel/types' or its corresponding type declarations. diff --git a/tests/baselines/reference/user/vuex.log b/tests/baselines/reference/user/vuex.log index 81b2ee9c22d4b..527539fc2363c 100644 --- a/tests/baselines/reference/user/vuex.log +++ b/tests/baselines/reference/user/vuex.log @@ -1,6 +1,9 @@ Exit Code: 2 Standard output: -node_modules/@vue/runtime-core/dist/runtime-core.d.ts(1826,33): error TS2344: Type 'HostElement' does not satisfy the constraint 'RendererElement'. +node_modules/vuex/types/helpers.d.ts(1,10): error TS2614: Module '"vue"' has no exported member 'ComponentPublicInstance'. Did you mean to use 'import ComponentPublicInstance from "vue"' instead? +node_modules/vuex/types/index.d.ts(1,10): error TS2614: Module '"vue"' has no exported member 'App'. Did you mean to use 'import App from "vue"' instead? +node_modules/vuex/types/index.d.ts(1,29): error TS2614: Module '"vue"' has no exported member 'InjectionKey'. Did you mean to use 'import InjectionKey from "vue"' instead? +node_modules/vuex/types/vue.d.ts(5,10): error TS2614: Module '"vue"' has no exported member 'ComponentCustomOptions'. Did you mean to use 'import ComponentCustomOptions from "vue"' instead?