mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-04 03:09:39 -06:00
Add new option "libReplacement" (#60829)
This commit is contained in:
parent
c5058f0066
commit
220706eb03
@ -865,6 +865,14 @@ const commandOptionsWithoutBuild: CommandLineOption[] = [
|
||||
affectsBuildInfo: true,
|
||||
affectsSemanticDiagnostics: true,
|
||||
},
|
||||
{
|
||||
name: "libReplacement",
|
||||
type: "boolean",
|
||||
affectsProgramStructure: true,
|
||||
category: Diagnostics.Language_and_Environment,
|
||||
description: Diagnostics.Enable_lib_replacement,
|
||||
defaultValueDescription: true,
|
||||
},
|
||||
|
||||
// Strict Type Checks
|
||||
{
|
||||
|
||||
@ -6502,6 +6502,10 @@
|
||||
"category": "Error",
|
||||
"code": 6807
|
||||
},
|
||||
"Enable lib replacement.": {
|
||||
"category": "Message",
|
||||
"code": 6808
|
||||
},
|
||||
|
||||
"one of:": {
|
||||
"category": "Message",
|
||||
|
||||
@ -3937,6 +3937,17 @@ export function createProgram(_rootNamesOrOptions: readonly string[] | CreatePro
|
||||
const existing = resolvedLibProcessing?.get(libFileName);
|
||||
if (existing) return existing;
|
||||
|
||||
if (options.libReplacement === false) {
|
||||
const result: LibResolution = {
|
||||
resolution: {
|
||||
resolvedModule: undefined,
|
||||
},
|
||||
actual: combinePaths(defaultLibraryPath, libFileName),
|
||||
};
|
||||
(resolvedLibProcessing ??= new Map()).set(libFileName, result);
|
||||
return result;
|
||||
}
|
||||
|
||||
if (structureIsReused !== StructureIsReused.Not && oldProgram && !hasInvalidatedLibResolutions(libFileName)) {
|
||||
const oldResolution = oldProgram.resolvedLibReferences?.get(libFileName);
|
||||
if (oldResolution) {
|
||||
|
||||
@ -7411,6 +7411,7 @@ export interface CompilerOptions {
|
||||
/** @deprecated */
|
||||
keyofStringsOnly?: boolean;
|
||||
lib?: string[];
|
||||
libReplacement?: boolean;
|
||||
/** @internal */ listEmittedFiles?: boolean;
|
||||
/** @internal */ listFiles?: boolean;
|
||||
/** @internal */ explainFiles?: boolean;
|
||||
|
||||
@ -21,23 +21,23 @@ function getSysForLibResolution(libRedirection?: boolean, forTsserver?: boolean)
|
||||
/// <reference lib="es5"/>
|
||||
`,
|
||||
"/home/src/workspace/projects/project1/tsconfig.json": jsonToReadableText({
|
||||
compilerOptions: { composite: true, typeRoots: ["./typeroot1"], lib: ["es5", "dom"], traceResolution: true },
|
||||
compilerOptions: { composite: true, typeRoots: ["./typeroot1"], lib: ["es5", "dom"], traceResolution: true, libReplacement: libRedirection },
|
||||
}),
|
||||
"/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts": `export type TheNum = "type1";`,
|
||||
"/home/src/workspace/projects/project2/utils.d.ts": `export const y = 10;`,
|
||||
"/home/src/workspace/projects/project2/index.ts": `export const y = 10`,
|
||||
"/home/src/workspace/projects/project2/tsconfig.json": jsonToReadableText({
|
||||
compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true },
|
||||
compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true, libReplacement: libRedirection },
|
||||
}),
|
||||
"/home/src/workspace/projects/project3/utils.d.ts": `export const y = 10;`,
|
||||
"/home/src/workspace/projects/project3/index.ts": `export const z = 10`,
|
||||
"/home/src/workspace/projects/project3/tsconfig.json": jsonToReadableText({
|
||||
compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true },
|
||||
compilerOptions: { composite: true, lib: ["es5", "dom"], traceResolution: true, libReplacement: libRedirection },
|
||||
}),
|
||||
"/home/src/workspace/projects/project4/utils.d.ts": `export const y = 10;`,
|
||||
"/home/src/workspace/projects/project4/index.ts": `export const z = 10`,
|
||||
"/home/src/workspace/projects/project4/tsconfig.json": jsonToReadableText({
|
||||
compilerOptions: { composite: true, lib: ["esnext", "dom", "webworker"], traceResolution: true },
|
||||
compilerOptions: { composite: true, lib: ["esnext", "dom", "webworker"], traceResolution: true, libReplacement: libRedirection },
|
||||
}),
|
||||
[getTypeScriptLibTestLocation("dom")]: "interface DOMInterface { }",
|
||||
[getTypeScriptLibTestLocation("webworker")]: "interface WebWorkerInterface { }",
|
||||
@ -71,6 +71,7 @@ function getLibResolutionEditOptions(
|
||||
typeRoots: ["./typeroot1", "./typeroot2"],
|
||||
lib: ["es5", "dom"],
|
||||
traceResolution: true,
|
||||
libReplacement: true,
|
||||
},
|
||||
}),
|
||||
),
|
||||
@ -90,6 +91,7 @@ function getLibResolutionEditOptions(
|
||||
typeRoots: ["./typeroot1"],
|
||||
lib: ["es5", "dom"],
|
||||
traceResolution: true,
|
||||
libReplacement: true,
|
||||
},
|
||||
}),
|
||||
);
|
||||
@ -235,6 +237,7 @@ export function getSysForLibResolutionUnknown(): TestServerHost {
|
||||
compilerOptions: {
|
||||
composite: true,
|
||||
traceResolution: true,
|
||||
libReplacement: true,
|
||||
},
|
||||
}),
|
||||
[getTypeScriptLibTestLocation("webworker")]: "interface WebWorkerInterface { }",
|
||||
|
||||
@ -7027,6 +7027,7 @@ declare namespace ts {
|
||||
/** @deprecated */
|
||||
keyofStringsOnly?: boolean;
|
||||
lib?: string[];
|
||||
libReplacement?: boolean;
|
||||
locale?: string;
|
||||
mapRoot?: string;
|
||||
maxNodeModuleJsDepth?: number;
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es5", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
"jsx": "react", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
"lib": ["es5","es2015.promise"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
"lib": ["es5","es2015.core"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -14,6 +14,7 @@
|
||||
"target": "es2016", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */
|
||||
// "lib": [], /* Specify a set of bundled library declaration files that describe the target runtime environment. */
|
||||
// "jsx": "preserve", /* Specify what JSX code is generated. */
|
||||
// "libReplacement": true, /* Enable lib replacement. */
|
||||
// "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */
|
||||
// "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */
|
||||
// "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */
|
||||
|
||||
@ -0,0 +1,5 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
@ -0,0 +1 @@
|
||||
[]
|
||||
File diff suppressed because it is too large
Load Diff
@ -11,4 +11,5 @@ index.ts(6,1): error TS2304: Cannot find name 'window'.
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'window'.
|
||||
!!! error TS2304: Cannot find name 'window'.
|
||||
|
||||
@ -8,7 +8,8 @@ const a: ABC = { abc: "Hello" }
|
||||
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
window.localStorage
|
||||
|
||||
|
||||
//// [index.js]
|
||||
/// <reference lib="dom" />
|
||||
|
||||
@ -15,3 +15,4 @@ const a: ABC = { abc: "Hello" }
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
|
||||
|
||||
@ -12,5 +12,6 @@
|
||||
window.localStorage
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'window'.
|
||||
|
||||
==== /somepath/node_modules/@typescript/lib-dom/index.d.ts (0 errors) ====
|
||||
interface ABC { abc: string }
|
||||
@ -8,7 +8,8 @@ const a: ABC = { abc: "Hello" }
|
||||
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
window.localStorage
|
||||
|
||||
|
||||
//// [index.js]
|
||||
/// <reference lib="dom" />
|
||||
|
||||
@ -10,6 +10,7 @@ const a: ABC = { abc: "Hello" }
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
|
||||
=== /somepath/node_modules/@typescript/lib-dom/index.d.ts ===
|
||||
interface ABC { abc: string }
|
||||
>ABC : Symbol(ABC, Decl(index.d.ts, 0, 0))
|
||||
|
||||
@ -13,4 +13,5 @@ index.ts(6,1): error TS2304: Cannot find name 'window'.
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'window'.
|
||||
!!! error TS2304: Cannot find name 'window'.
|
||||
|
||||
@ -10,7 +10,8 @@ const a: DOMIterable = { abc: "Hello" }
|
||||
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
window.localStorage
|
||||
|
||||
|
||||
//// [index.js]
|
||||
/// <reference lib="dom.iterable" />
|
||||
|
||||
@ -18,3 +18,4 @@ const a: DOMIterable = { abc: "Hello" }
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
|
||||
|
||||
@ -12,6 +12,7 @@
|
||||
window.localStorage
|
||||
~~~~~~
|
||||
!!! error TS2304: Cannot find name 'window'.
|
||||
|
||||
==== /somepath/node_modules/@typescript/lib-dom/index.d.ts (0 errors) ====
|
||||
// NOOP
|
||||
==== /somepath/node_modules/@typescript/lib-dom/iterable.d.ts (0 errors) ====
|
||||
|
||||
@ -10,7 +10,8 @@ const a: DOMIterable = { abc: "Hello" }
|
||||
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
window.localStorage
|
||||
|
||||
|
||||
//// [index.js]
|
||||
/// <reference lib="dom.iterable" />
|
||||
|
||||
@ -10,6 +10,7 @@ const a: DOMIterable = { abc: "Hello" }
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
|
||||
=== /somepath/node_modules/@typescript/lib-dom/index.d.ts ===
|
||||
|
||||
// NOOP
|
||||
|
||||
@ -29,7 +29,8 @@ export const x = "type1";
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,7 +51,8 @@ export const y = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +70,8 @@ export const z = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +90,8 @@ export const z = 10
|
||||
"dom",
|
||||
"webworker"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -863,6 +867,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"explainFiles": true,
|
||||
"tscBuild": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project1/tsconfig.json"
|
||||
@ -915,6 +920,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"explainFiles": true,
|
||||
"tscBuild": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project2/tsconfig.json"
|
||||
@ -949,6 +955,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"explainFiles": true,
|
||||
"tscBuild": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project3/tsconfig.json"
|
||||
@ -984,6 +991,7 @@ Program options: {
|
||||
"lib.webworker.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"explainFiles": true,
|
||||
"tscBuild": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project4/tsconfig.json"
|
||||
|
||||
@ -29,7 +29,8 @@ export const x = "type1";
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,7 +51,8 @@ export const y = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +70,8 @@ export const z = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +90,8 @@ export const z = 10
|
||||
"dom",
|
||||
"webworker"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -976,6 +980,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"explainFiles": true,
|
||||
"extendedDiagnostics": true,
|
||||
@ -1030,6 +1035,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"explainFiles": true,
|
||||
"extendedDiagnostics": true,
|
||||
@ -1066,6 +1072,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"explainFiles": true,
|
||||
"extendedDiagnostics": true,
|
||||
@ -1103,6 +1110,7 @@ Program options: {
|
||||
"lib.webworker.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"explainFiles": true,
|
||||
"extendedDiagnostics": true,
|
||||
|
||||
@ -578,6 +578,11 @@ Specify a set of bundled library declaration files that describe the target runt
|
||||
one or more: es5, es6/es2015, es7/es2016, es2017, es2018, es2019, es2020, es2021, es2022, es2023, es2024, esnext, dom, dom.iterable, dom.asynciterable, webworker, webworker.importscripts, webworker.iterable, webworker.asynciterable, scripthost, es2015.core, es2015.collection, es2015.generator, es2015.iterable, es2015.promise, es2015.proxy, es2015.reflect, es2015.symbol, es2015.symbol.wellknown, es2016.array.include, es2016.intl, es2017.arraybuffer, es2017.date, es2017.object, es2017.sharedmemory, es2017.string, es2017.intl, es2017.typedarrays, es2018.asyncgenerator, es2018.asynciterable/esnext.asynciterable, es2018.intl, es2018.promise, es2018.regexp, es2019.array, es2019.object, es2019.string, es2019.symbol/esnext.symbol, es2019.intl, es2020.bigint/esnext.bigint, es2020.date, es2020.promise, es2020.sharedmemory, es2020.string, es2020.symbol.wellknown, es2020.intl, es2020.number, es2021.promise, es2021.string, es2021.weakref/esnext.weakref, es2021.intl, es2022.array, es2022.error, es2022.intl, es2022.object, es2022.string, es2022.regexp, es2023.array, es2023.collection, es2023.intl, es2024.arraybuffer, es2024.collection, es2024.object/esnext.object, es2024.promise, es2024.regexp/esnext.regexp, es2024.sharedmemory, es2024.string/esnext.string, esnext.array, esnext.collection, esnext.intl, esnext.disposable, esnext.promise, esnext.decorators, esnext.iterator, esnext.float16, decorators, decorators.legacy
|
||||
default: undefined
|
||||
|
||||
[94m--libReplacement[39m
|
||||
Enable lib replacement.
|
||||
type: boolean
|
||||
default: true
|
||||
|
||||
[94m--moduleDetection[39m
|
||||
Control what method is used to detect module-format JS files.
|
||||
one of: legacy, auto, force
|
||||
|
||||
@ -22,7 +22,8 @@ export const x = "type1";
|
||||
{
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -236,6 +237,7 @@ Program root files: [
|
||||
Program options: {
|
||||
"composite": true,
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project1/tsconfig.json"
|
||||
|
||||
@ -29,7 +29,8 @@ export const x = "type1";
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,7 +51,8 @@ export const y = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +70,8 @@ export const z = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +90,8 @@ export const z = 10
|
||||
"dom",
|
||||
"webworker"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -456,6 +460,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project1/tsconfig.json"
|
||||
|
||||
@ -29,7 +29,8 @@ export const x = "type1";
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,7 +51,8 @@ export const y = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +70,8 @@ export const z = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +90,8 @@ export const z = 10
|
||||
"dom",
|
||||
"webworker"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -22,7 +22,8 @@ export const x = "type1";
|
||||
{
|
||||
"compilerOptions": {
|
||||
"composite": true,
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -57,7 +58,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/tsconfig.
|
||||
Synchronizing program
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/core.d.ts","/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts"]
|
||||
options: {"composite":true,"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/core.d.ts 250 undefined Source file
|
||||
FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/file.ts 250 undefined Source file
|
||||
FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/file2.ts 250 undefined Source file
|
||||
@ -300,6 +301,7 @@ Program root files: [
|
||||
Program options: {
|
||||
"composite": true,
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -363,7 +365,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/core.d.ts","/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts"]
|
||||
options: {"composite":true,"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved.
|
||||
[96mproject1/file2.ts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS2727: [0mCannot find lib definition for 'webworker2'. Did you mean 'webworker'?
|
||||
|
||||
@ -508,6 +510,7 @@ Program root files: [
|
||||
Program options: {
|
||||
"composite": true,
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -561,7 +564,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts"]
|
||||
options: {"composite":true,"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved.
|
||||
FileWatcher:: Close:: WatchInfo: /home/src/workspace/projects/project1/core.d.ts 250 undefined Source file
|
||||
[96mproject1/file2.ts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS2727: [0mCannot find lib definition for 'webworker2'. Did you mean 'webworker'?
|
||||
@ -723,6 +726,7 @@ Program root files: [
|
||||
Program options: {
|
||||
"composite": true,
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -773,7 +777,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts"]
|
||||
options: {"composite":true,"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved.
|
||||
[96mproject1/file2.ts[0m:[93m1[0m:[93m21[0m - [91merror[0m[90m TS2727: [0mCannot find lib definition for 'webworker2'. Did you mean 'webworker'?
|
||||
|
||||
@ -896,6 +900,7 @@ Program root files: [
|
||||
Program options: {
|
||||
"composite": true,
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -948,7 +953,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts"]
|
||||
options: {"composite":true,"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
======== Resolving module '@typescript/lib-webworker' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts'. ========
|
||||
Explicitly specified module resolution kind: 'Node10'.
|
||||
Loading module '@typescript/lib-webworker' from 'node_modules' folder, target file types: TypeScript, Declaration.
|
||||
@ -1141,6 +1146,7 @@ Program root files: [
|
||||
Program options: {
|
||||
"composite": true,
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
|
||||
@ -29,7 +29,8 @@ export const x = "type1";
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,7 +51,8 @@ export const y = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +70,8 @@ export const z = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +90,8 @@ export const z = 10
|
||||
"dom",
|
||||
"webworker"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -167,7 +171,7 @@ FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/tsconfig.
|
||||
Synchronizing program
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/core.d.ts","/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/core.d.ts 250 undefined Source file
|
||||
FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/file.ts 250 undefined Source file
|
||||
FileWatcher:: Added:: WatchInfo: /home/src/workspace/projects/project1/file2.ts 250 undefined Source file
|
||||
@ -546,6 +550,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -621,7 +626,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/core.d.ts","/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups.
|
||||
@ -956,6 +961,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -1027,7 +1033,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/core.d.ts","/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups.
|
||||
@ -1236,6 +1242,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -1292,7 +1299,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
Reusing resolution of module '@typescript/lib-webworker' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/index.d.ts'.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
@ -1535,6 +1542,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -1599,7 +1607,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups.
|
||||
@ -1901,6 +1909,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -1957,7 +1966,8 @@ Input::
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -1983,7 +1993,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1","/home/src/workspace/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1","/home/src/workspace/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
Reusing resolution of module '@typescript/lib-webworker' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/index.d.ts'.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
@ -2129,6 +2139,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -2167,7 +2178,8 @@ Input::
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -2202,7 +2214,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
Reusing resolution of module '@typescript/lib-webworker' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was successfully resolved to '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/index.d.ts'.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
@ -2508,6 +2520,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -2579,7 +2592,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups.
|
||||
@ -2865,6 +2878,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -2945,7 +2959,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-scripthost/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups.
|
||||
@ -3223,6 +3237,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
|
||||
@ -1757,7 +1757,8 @@ Input::
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -1783,7 +1784,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1","/home/src/workspace/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1","/home/src/workspace/projects/project1/typeroot2"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
Reusing resolution of module '@typescript/lib-webworker' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved.
|
||||
Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved.
|
||||
Reusing resolution of module '@typescript/lib-es5' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved.
|
||||
@ -1883,6 +1884,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -1921,7 +1923,8 @@ Input::
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -1954,7 +1957,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
Reusing resolution of module '@typescript/lib-webworker' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.webworker.d.ts__.ts' of old program, it was not resolved.
|
||||
Reusing resolution of module '@typescript/lib-scripthost' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.scripthost.d.ts__.ts' of old program, it was not resolved.
|
||||
Reusing resolution of module '@typescript/lib-es5' from '/home/src/workspace/projects/project1/__lib_node_modules_lookup_lib.es5.d.ts__.ts' of old program, it was not resolved.
|
||||
@ -2215,6 +2218,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -2299,7 +2303,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-dom/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups.
|
||||
@ -2557,6 +2561,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
@ -2627,7 +2632,7 @@ Synchronizing program
|
||||
|
||||
CreatingProgramWith::
|
||||
roots: ["/home/src/workspace/projects/project1/file.ts","/home/src/workspace/projects/project1/file2.ts","/home/src/workspace/projects/project1/index.ts","/home/src/workspace/projects/project1/utils.d.ts","/home/src/workspace/projects/project1/typeroot1/sometype/index.d.ts"]
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
options: {"composite":true,"typeRoots":["/home/src/workspace/projects/project1/typeroot1"],"lib":["lib.es5.d.ts","lib.dom.d.ts"],"traceResolution":true,"libReplacement":true,"watch":true,"project":"/home/src/workspace/projects/project1","explainFiles":true,"extendedDiagnostics":true,"configFilePath":"/home/src/workspace/projects/project1/tsconfig.json"}
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/lib-webworker/package.json' does not exist.
|
||||
File '/home/src/workspace/projects/node_modules/@typescript/package.json' does not exist according to earlier cached lookups.
|
||||
File '/home/src/workspace/projects/node_modules/package.json' does not exist according to earlier cached lookups.
|
||||
@ -2901,6 +2906,7 @@ Program options: {
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"watch": true,
|
||||
"project": "/home/src/workspace/projects/project1",
|
||||
"explainFiles": true,
|
||||
|
||||
@ -29,7 +29,8 @@ export const x = "type1";
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -50,7 +51,8 @@ export const y = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -68,7 +70,8 @@ export const z = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -87,7 +90,8 @@ export const z = 10
|
||||
"dom",
|
||||
"webworker"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -32,7 +32,8 @@ export const x = "type1";
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -53,7 +54,8 @@ export const y = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -71,7 +73,8 @@ export const z = 10
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -90,7 +93,8 @@ export const z = 10
|
||||
"dom",
|
||||
"webworker"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -192,6 +196,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspace/projects/project1/tsconfig.
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project1/tsconfig.json"
|
||||
}
|
||||
}
|
||||
@ -410,7 +415,8 @@ Info seq [hh:mm:ss:mss] event:
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
},
|
||||
"typeAcquisition": {
|
||||
"enable": false,
|
||||
@ -1625,7 +1631,8 @@ Before running Timeout callback:: count: 2
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -1670,6 +1677,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspace/projects/project1/tsconfig.
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project1/tsconfig.json"
|
||||
}
|
||||
}
|
||||
@ -1869,7 +1877,8 @@ Before running Timeout callback:: count: 3
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -1964,6 +1973,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspace/projects/project1/tsconfig.
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project1/tsconfig.json"
|
||||
}
|
||||
}
|
||||
|
||||
@ -1427,7 +1427,8 @@ Before running Timeout callback:: count: 2
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -1472,6 +1473,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspace/projects/project1/tsconfig.
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project1/tsconfig.json"
|
||||
}
|
||||
}
|
||||
@ -1629,7 +1631,8 @@ Before running Timeout callback:: count: 3
|
||||
"es5",
|
||||
"dom"
|
||||
],
|
||||
"traceResolution": true
|
||||
"traceResolution": true,
|
||||
"libReplacement": true
|
||||
}
|
||||
}
|
||||
|
||||
@ -1726,6 +1729,7 @@ Info seq [hh:mm:ss:mss] Config: /home/src/workspace/projects/project1/tsconfig.
|
||||
"lib.dom.d.ts"
|
||||
],
|
||||
"traceResolution": true,
|
||||
"libReplacement": true,
|
||||
"configFilePath": "/home/src/workspace/projects/project1/tsconfig.json"
|
||||
}
|
||||
}
|
||||
|
||||
5
tests/cases/compiler/libReplacement.ts
Normal file
5
tests/cases/compiler/libReplacement.ts
Normal file
@ -0,0 +1,5 @@
|
||||
// @lib: esnext
|
||||
// @traceResolution: true
|
||||
// @noTypesAndSymbols: true
|
||||
// @noEmit: true
|
||||
// @libReplacement: true,false
|
||||
@ -1,4 +1,5 @@
|
||||
// @traceResolution: true
|
||||
// @libReplacement: true
|
||||
|
||||
// @Filename: /node_modules/@typescript/lib-dom/index.d.ts
|
||||
interface ABC { abc: string }
|
||||
@ -8,4 +9,4 @@ const a: ABC = { abc: "Hello" }
|
||||
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
window.localStorage
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @traceResolution: true
|
||||
// @libReplacement: true
|
||||
|
||||
// @Filename: /somepath/node_modules/@typescript/lib-dom/index.d.ts
|
||||
interface ABC { abc: string }
|
||||
@ -10,4 +11,4 @@ const a: ABC = { abc: "Hello" }
|
||||
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
window.localStorage
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @traceResolution: true
|
||||
// @libReplacement: true
|
||||
|
||||
// @Filename: /node_modules/@typescript/lib-dom/index.d.ts
|
||||
// NOOP
|
||||
@ -10,4 +11,4 @@ const a: DOMIterable = { abc: "Hello" }
|
||||
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
window.localStorage
|
||||
|
||||
@ -1,4 +1,5 @@
|
||||
// @traceResolution: true
|
||||
// @libReplacement: true
|
||||
|
||||
// @Filename: /somepath/node_modules/@typescript/lib-dom/index.d.ts
|
||||
// NOOP
|
||||
@ -12,4 +13,4 @@ const a: DOMIterable = { abc: "Hello" }
|
||||
|
||||
// This should fail because libdom has been replaced
|
||||
// by the module above ^
|
||||
window.localStorage
|
||||
window.localStorage
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user