From 9efaa3fd23fd797503791c1673a1768e15c43c58 Mon Sep 17 00:00:00 2001 From: typescript-bot Date: Wed, 23 Oct 2019 20:40:36 +0000 Subject: [PATCH] Update user baselines --- tests/baselines/reference/user/prettier.log | 2 + tests/baselines/reference/user/puppeteer.log | 16 +-- tests/baselines/reference/user/uglify-js.log | 143 +++++++++---------- 3 files changed, 81 insertions(+), 80 deletions(-) diff --git a/tests/baselines/reference/user/prettier.log b/tests/baselines/reference/user/prettier.log index e3d9770165022..9bbd1ee82249a 100644 --- a/tests/baselines/reference/user/prettier.log +++ b/tests/baselines/reference/user/prettier.log @@ -36,6 +36,8 @@ src/cli/util.js(693,22): error TS2339: Property 'name' does not exist on type 'n src/cli/util.js(693,46): error TS2339: Property 'alias' does not exist on type 'never'. src/common/create-ignorer.js(34,19): error TS2349: This expression is not callable. Type 'typeof import("/prettier/prettier/node_modules/ignore/index")' has no call signatures. +src/common/get-file-info.js(36,27): error TS2339: Property 'resolveConfig' does not exist on type '{ ignorePath?: string | undefined; withNodeModules?: boolean | undefined; plugins: any; }'. +src/common/get-file-info.js(59,25): error TS2339: Property 'resolveConfig' does not exist on type '{ ignorePath?: string | undefined; withNodeModules?: boolean | undefined; plugins: any; }'. src/common/parser-create-error.js(8,9): error TS2339: Property 'loc' does not exist on type 'SyntaxError'. src/config/resolve-config.js(14,12): error TS2571: Object is of type 'unknown'. src/config/resolve-config.js(50,16): error TS2571: Object is of type 'unknown'. diff --git a/tests/baselines/reference/user/puppeteer.log b/tests/baselines/reference/user/puppeteer.log index c4c986b90976e..f368b2682599b 100644 --- a/tests/baselines/reference/user/puppeteer.log +++ b/tests/baselines/reference/user/puppeteer.log @@ -1,17 +1,17 @@ Exit Code: 1 Standard output: lib/Accessibility.js(134,15): error TS2503: Cannot find namespace 'Protocol'. -lib/Accessibility.js(341,7): error TS2322: Type 'string | number | boolean' is not assignable to type 'never'. +lib/Accessibility.js(344,7): error TS2322: Type 'string | number | boolean' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'. -lib/Accessibility.js(364,7): error TS2322: Type 'string | number | true' is not assignable to type 'never'. +lib/Accessibility.js(367,7): error TS2322: Type 'string | number | true' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'. -lib/Accessibility.js(376,7): error TS2322: Type 'boolean | "mixed"' is not assignable to type 'never'. +lib/Accessibility.js(379,7): error TS2322: Type 'boolean | "mixed"' is not assignable to type 'never'. Type 'false' is not assignable to type 'never'. -lib/Accessibility.js(387,7): error TS2322: Type 'string | number | boolean' is not assignable to type 'never'. +lib/Accessibility.js(390,7): error TS2322: Type 'string | number | boolean' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'. -lib/Accessibility.js(400,7): error TS2322: Type 'string | number | true' is not assignable to type 'never'. +lib/Accessibility.js(403,7): error TS2322: Type 'string | number | true' is not assignable to type 'never'. Type 'string' is not assignable to type 'never'. -lib/Accessibility.js(406,22): error TS2503: Cannot find namespace 'Protocol'. +lib/Accessibility.js(409,22): error TS2503: Cannot find namespace 'Protocol'. lib/Browser.js(109,15): error TS2503: Cannot find namespace 'Protocol'. lib/Browser.js(116,58): error TS2322: Type 'Promise' is not assignable to type 'Promise'. Type 'CDPSession' is not assignable to type 'Puppeteer.CDPSession'. @@ -64,8 +64,8 @@ lib/Page.js(520,15): error TS2503: Cannot find namespace 'Protocol'. lib/Page.js(530,15): error TS2503: Cannot find namespace 'Protocol'. lib/Page.js(555,15): error TS2503: Cannot find namespace 'Protocol'. lib/Page.js(608,14): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(915,19): error TS2503: Cannot find namespace 'Protocol'. -lib/Page.js(1316,15): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(944,19): error TS2503: Cannot find namespace 'Protocol'. +lib/Page.js(1354,15): error TS2503: Cannot find namespace 'Protocol'. lib/Target.js(23,15): error TS2503: Cannot find namespace 'Protocol'. lib/Target.js(87,7): error TS2322: Type 'Promise' is not assignable to type 'Promise'. Type 'Worker | Worker' is not assignable to type 'Worker'. diff --git a/tests/baselines/reference/user/uglify-js.log b/tests/baselines/reference/user/uglify-js.log index 7827e8cc799d3..2a892b5f50eb1 100644 --- a/tests/baselines/reference/user/uglify-js.log +++ b/tests/baselines/reference/user/uglify-js.log @@ -23,82 +23,81 @@ node_modules/uglify-js/lib/compress.js(1251,87): error TS2322: Type 'false' is n node_modules/uglify-js/lib/compress.js(1259,29): error TS2322: Type 'false' is not assignable to type 'never'. node_modules/uglify-js/lib/compress.js(1368,53): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/compress.js(1469,38): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(1579,42): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(1611,41): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(1723,49): error TS2345: Argument of type 'number[]' is not assignable to parameter of type '[number, number, ...never[]]'. +node_modules/uglify-js/lib/compress.js(1549,42): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(1581,41): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(1693,49): error TS2345: Argument of type 'number[]' is not assignable to parameter of type '[number, number, ...never[]]'. Type 'number[]' is missing the following properties from type '[number, number, ...never[]]': 0, 1 -node_modules/uglify-js/lib/compress.js(2046,59): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(2084,53): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[number, number, ...never[]]'. +node_modules/uglify-js/lib/compress.js(2016,59): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(2054,53): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[number, number, ...never[]]'. Type 'any[]' is missing the following properties from type '[number, number, ...never[]]': 0, 1 -node_modules/uglify-js/lib/compress.js(2232,34): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(2958,42): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3412,38): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3436,33): error TS2322: Type '"f"' is not assignable to type 'boolean'. -node_modules/uglify-js/lib/compress.js(3570,33): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3623,29): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3641,29): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(3666,75): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3741,63): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3862,12): error TS2339: Property 'push' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(3941,38): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(3962,24): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(3972,28): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. -node_modules/uglify-js/lib/compress.js(4206,17): error TS2447: The '|=' operator is not allowed for boolean types. Consider using '||' instead. -node_modules/uglify-js/lib/compress.js(4269,45): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(4380,33): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(4678,17): error TS2403: Subsequent variable declarations must have the same type. Variable 'body' must be of type 'any[]', but here has type 'any'. -node_modules/uglify-js/lib/compress.js(4762,37): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(4970,57): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[string | RegExp, (string | undefined)?]'. +node_modules/uglify-js/lib/compress.js(2202,34): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(2928,42): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3382,38): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3406,33): error TS2322: Type '"f"' is not assignable to type 'boolean'. +node_modules/uglify-js/lib/compress.js(3540,33): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3593,29): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3611,29): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(3636,75): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3711,63): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3838,12): error TS2339: Property 'push' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(3917,38): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(3938,24): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(3948,28): error TS2339: Property 'parent' does not exist on type 'TreeTransformer'. +node_modules/uglify-js/lib/compress.js(4182,17): error TS2447: The '|=' operator is not allowed for boolean types. Consider using '||' instead. +node_modules/uglify-js/lib/compress.js(4245,45): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(4356,33): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(4654,17): error TS2403: Subsequent variable declarations must have the same type. Variable 'body' must be of type 'any[]', but here has type 'any'. +node_modules/uglify-js/lib/compress.js(4738,37): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(4946,57): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[string | RegExp, (string | undefined)?]'. Property '0' is missing in type 'any[]' but required in type '[string | RegExp, (string | undefined)?]'. -node_modules/uglify-js/lib/compress.js(5134,45): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(5141,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'code' must be of type 'string', but here has type '{ get: () => string; toString: () => string; indent: () => void; indentation: () => number; current_width: () => number; should_break: () => boolean; has_parens: () => boolean; newline: () => void; print: (str: any) => void; ... 23 more ...; parent: (n: any) => any; }'. -node_modules/uglify-js/lib/compress.js(5145,36): error TS2532: Object is possibly 'undefined'. -node_modules/uglify-js/lib/compress.js(5150,41): error TS2339: Property 'get' does not exist on type 'string'. -node_modules/uglify-js/lib/compress.js(5667,18): error TS2454: Variable 'is_strict_comparison' is used before being assigned. -node_modules/uglify-js/lib/compress.js(6174,25): error TS2367: This condition will always return 'false' since the types 'boolean' and 'string' have no overlap. -node_modules/uglify-js/lib/compress.js(6201,47): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(6276,39): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(6348,39): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(6354,41): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/compress.js(6799,43): error TS2454: Variable 'property' is used before being assigned. -node_modules/uglify-js/lib/compress.js(6814,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'value' must be of type 'number', but here has type 'any'. -node_modules/uglify-js/lib/compress.js(6817,46): error TS2339: Property 'has_side_effects' does not exist on type 'number'. -node_modules/uglify-js/lib/compress.js(6823,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'value' must be of type 'number', but here has type 'any'. -node_modules/uglify-js/lib/compress.js(6861,34): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(5110,45): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(5117,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'code' must be of type 'string', but here has type '{ get: () => string; toString: () => string; indent: () => void; indentation: () => number; current_width: () => number; should_break: () => boolean; has_parens: () => boolean; newline: () => void; print: (str: any) => void; ... 23 more ...; parent: (n: any) => any; }'. +node_modules/uglify-js/lib/compress.js(5121,36): error TS2532: Object is possibly 'undefined'. +node_modules/uglify-js/lib/compress.js(5126,41): error TS2339: Property 'get' does not exist on type 'string'. +node_modules/uglify-js/lib/compress.js(5643,18): error TS2454: Variable 'is_strict_comparison' is used before being assigned. +node_modules/uglify-js/lib/compress.js(6150,25): error TS2367: This condition will always return 'false' since the types 'boolean' and 'string' have no overlap. +node_modules/uglify-js/lib/compress.js(6178,47): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(6253,39): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(6325,39): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(6331,41): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/compress.js(6776,43): error TS2454: Variable 'property' is used before being assigned. +node_modules/uglify-js/lib/compress.js(6791,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'value' must be of type 'number', but here has type 'any'. +node_modules/uglify-js/lib/compress.js(6794,46): error TS2339: Property 'has_side_effects' does not exist on type 'number'. +node_modules/uglify-js/lib/compress.js(6800,25): error TS2403: Subsequent variable declarations must have the same type. Variable 'value' must be of type 'number', but here has type 'any'. +node_modules/uglify-js/lib/compress.js(6838,34): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/minify.js(186,75): error TS2339: Property 'compress' does not exist on type 'Compressor'. node_modules/uglify-js/lib/mozilla-ast.js(566,33): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/output.js(234,25): error TS2554: Expected 0 arguments, but got 2. -node_modules/uglify-js/lib/output.js(458,37): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/output.js(762,38): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/output.js(1158,44): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/output.js(1459,58): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. -node_modules/uglify-js/lib/parse.js(361,20): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'. +node_modules/uglify-js/lib/output.js(232,25): error TS2554: Expected 0 arguments, but got 2. +node_modules/uglify-js/lib/output.js(456,37): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/output.js(759,38): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/output.js(1153,44): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/output.js(1454,58): error TS2362: The left-hand side of an arithmetic operation must be of type 'any', 'number', 'bigint' or an enum type. +node_modules/uglify-js/lib/parse.js(358,20): error TS2345: Argument of type 'number | undefined' is not assignable to parameter of type 'number'. Type 'undefined' is not assignable to type 'number'. -node_modules/uglify-js/lib/parse.js(443,32): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. -node_modules/uglify-js/lib/parse.js(454,32): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. -node_modules/uglify-js/lib/parse.js(505,20): error TS2339: Property 'raw_source' does not exist on type 'RegExp'. -node_modules/uglify-js/lib/parse.js(616,57): error TS2339: Property 'push' does not exist on type 'never'. -node_modules/uglify-js/lib/parse.js(626,32): error TS2345: Argument of type 'never[]' is not assignable to parameter of type 'never'. -node_modules/uglify-js/lib/parse.js(632,40): error TS2339: Property 'length' does not exist on type 'never'. -node_modules/uglify-js/lib/parse.js(733,13): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(769,69): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(769,83): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(813,31): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(819,17): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(823,21): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(828,43): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(847,21): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(866,21): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(981,23): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. -node_modules/uglify-js/lib/parse.js(1095,9): error TS2322: Type 'any[]' is not assignable to type 'never[]'. +node_modules/uglify-js/lib/parse.js(437,32): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. +node_modules/uglify-js/lib/parse.js(448,32): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. +node_modules/uglify-js/lib/parse.js(498,20): error TS2339: Property 'raw_source' does not exist on type 'RegExp'. +node_modules/uglify-js/lib/parse.js(606,57): error TS2339: Property 'push' does not exist on type 'never'. +node_modules/uglify-js/lib/parse.js(612,32): error TS2345: Argument of type 'never[]' is not assignable to parameter of type 'never'. +node_modules/uglify-js/lib/parse.js(705,13): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(738,69): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(738,83): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(782,31): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(788,17): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(792,21): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(797,43): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(816,21): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(835,21): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(950,23): error TS2345: Argument of type 'any' is not assignable to parameter of type 'never'. +node_modules/uglify-js/lib/parse.js(1064,9): error TS2322: Type 'any[]' is not assignable to type 'never[]'. Type 'any' is not assignable to type 'never'. -node_modules/uglify-js/lib/parse.js(1152,17): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(1320,32): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(1420,20): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(1426,20): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(1512,48): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(1538,35): error TS2531: Object is possibly 'null'. -node_modules/uglify-js/lib/parse.js(1583,52): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(1121,17): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(1289,32): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(1389,20): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(1395,20): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(1481,48): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(1507,35): error TS2531: Object is possibly 'null'. +node_modules/uglify-js/lib/parse.js(1552,52): error TS2531: Object is possibly 'null'. node_modules/uglify-js/lib/propmangle.js(69,18): error TS2339: Property 'prototype' does not exist on type 'ObjectConstructor | FunctionConstructor | StringConstructor | BooleanConstructor | NumberConstructor | ... 4 more ... | ArrayConstructor'. Property 'prototype' does not exist on type 'Math'. node_modules/uglify-js/lib/propmangle.js(70,45): error TS2339: Property 'prototype' does not exist on type 'ObjectConstructor | FunctionConstructor | StringConstructor | BooleanConstructor | NumberConstructor | ... 4 more ... | ArrayConstructor'. @@ -111,9 +110,9 @@ node_modules/uglify-js/lib/scope.js(89,35): error TS2339: Property 'defun' does node_modules/uglify-js/lib/scope.js(103,29): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/scope.js(158,29): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/scope.js(193,47): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/scope.js(414,29): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/scope.js(477,30): error TS2554: Expected 0 arguments, but got 1. -node_modules/uglify-js/lib/scope.js(502,30): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/scope.js(412,29): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/scope.js(475,30): error TS2554: Expected 0 arguments, but got 1. +node_modules/uglify-js/lib/scope.js(500,30): error TS2554: Expected 0 arguments, but got 1. node_modules/uglify-js/lib/sourcemap.js(55,25): error TS2304: Cannot find name 'MOZ_SourceMap'. node_modules/uglify-js/lib/sourcemap.js(61,23): error TS2304: Cannot find name 'MOZ_SourceMap'. node_modules/uglify-js/tools/exit.js(10,37): error TS2345: Argument of type 'any[]' is not assignable to parameter of type '[(number | undefined)?]'.