typescript 6.0.0-dev.20250924 → 6.0.0-dev.20250925
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_tsc.js +33 -68
- package/lib/lib.d.ts +0 -2
- package/lib/lib.decorators.d.ts +0 -2
- package/lib/lib.decorators.legacy.d.ts +0 -2
- package/lib/lib.dom.asynciterable.d.ts +0 -2
- package/lib/lib.dom.d.ts +0 -2
- package/lib/lib.dom.iterable.d.ts +0 -2
- package/lib/lib.es2015.collection.d.ts +0 -2
- package/lib/lib.es2015.core.d.ts +0 -2
- package/lib/lib.es2015.d.ts +0 -2
- package/lib/lib.es2015.generator.d.ts +0 -2
- package/lib/lib.es2015.iterable.d.ts +0 -2
- package/lib/lib.es2015.promise.d.ts +0 -2
- package/lib/lib.es2015.proxy.d.ts +0 -2
- package/lib/lib.es2015.reflect.d.ts +0 -2
- package/lib/lib.es2015.symbol.d.ts +0 -2
- package/lib/lib.es2015.symbol.wellknown.d.ts +0 -2
- package/lib/lib.es2016.array.include.d.ts +0 -2
- package/lib/lib.es2016.d.ts +0 -2
- package/lib/lib.es2016.full.d.ts +0 -2
- package/lib/lib.es2016.intl.d.ts +0 -2
- package/lib/lib.es2017.arraybuffer.d.ts +0 -2
- package/lib/lib.es2017.d.ts +0 -2
- package/lib/lib.es2017.date.d.ts +0 -2
- package/lib/lib.es2017.full.d.ts +0 -2
- package/lib/lib.es2017.intl.d.ts +0 -2
- package/lib/lib.es2017.object.d.ts +0 -2
- package/lib/lib.es2017.sharedmemory.d.ts +0 -2
- package/lib/lib.es2017.string.d.ts +0 -2
- package/lib/lib.es2017.typedarrays.d.ts +0 -2
- package/lib/lib.es2018.asyncgenerator.d.ts +0 -2
- package/lib/lib.es2018.asynciterable.d.ts +0 -2
- package/lib/lib.es2018.d.ts +0 -2
- package/lib/lib.es2018.full.d.ts +0 -2
- package/lib/lib.es2018.intl.d.ts +0 -2
- package/lib/lib.es2018.promise.d.ts +0 -2
- package/lib/lib.es2018.regexp.d.ts +0 -2
- package/lib/lib.es2019.array.d.ts +0 -2
- package/lib/lib.es2019.d.ts +0 -2
- package/lib/lib.es2019.full.d.ts +0 -2
- package/lib/lib.es2019.intl.d.ts +0 -2
- package/lib/lib.es2019.object.d.ts +0 -2
- package/lib/lib.es2019.string.d.ts +0 -2
- package/lib/lib.es2019.symbol.d.ts +0 -2
- package/lib/lib.es2020.bigint.d.ts +0 -2
- package/lib/lib.es2020.d.ts +0 -2
- package/lib/lib.es2020.date.d.ts +0 -2
- package/lib/lib.es2020.full.d.ts +0 -2
- package/lib/lib.es2020.intl.d.ts +0 -2
- package/lib/lib.es2020.number.d.ts +0 -2
- package/lib/lib.es2020.promise.d.ts +0 -2
- package/lib/lib.es2020.sharedmemory.d.ts +0 -2
- package/lib/lib.es2020.string.d.ts +0 -2
- package/lib/lib.es2020.symbol.wellknown.d.ts +0 -2
- package/lib/lib.es2021.d.ts +0 -2
- package/lib/lib.es2021.full.d.ts +0 -2
- package/lib/lib.es2021.intl.d.ts +0 -2
- package/lib/lib.es2021.promise.d.ts +0 -2
- package/lib/lib.es2021.string.d.ts +0 -2
- package/lib/lib.es2021.weakref.d.ts +0 -2
- package/lib/lib.es2022.array.d.ts +0 -2
- package/lib/lib.es2022.d.ts +0 -2
- package/lib/lib.es2022.error.d.ts +0 -2
- package/lib/lib.es2022.full.d.ts +0 -2
- package/lib/lib.es2022.intl.d.ts +0 -2
- package/lib/lib.es2022.object.d.ts +0 -2
- package/lib/lib.es2022.regexp.d.ts +0 -2
- package/lib/lib.es2022.string.d.ts +0 -2
- package/lib/lib.es2023.array.d.ts +0 -2
- package/lib/lib.es2023.collection.d.ts +0 -2
- package/lib/lib.es2023.d.ts +0 -2
- package/lib/lib.es2023.full.d.ts +0 -2
- package/lib/lib.es2023.intl.d.ts +0 -2
- package/lib/lib.es2024.arraybuffer.d.ts +0 -2
- package/lib/lib.es2024.collection.d.ts +0 -2
- package/lib/lib.es2024.d.ts +0 -2
- package/lib/lib.es2024.full.d.ts +0 -2
- package/lib/lib.es2024.object.d.ts +0 -2
- package/lib/lib.es2024.promise.d.ts +0 -2
- package/lib/lib.es2024.regexp.d.ts +0 -2
- package/lib/lib.es2024.sharedmemory.d.ts +0 -2
- package/lib/lib.es2024.string.d.ts +0 -2
- package/lib/lib.es5.d.ts +0 -2
- package/lib/lib.es6.d.ts +0 -2
- package/lib/lib.esnext.array.d.ts +0 -2
- package/lib/lib.esnext.collection.d.ts +0 -2
- package/lib/lib.esnext.d.ts +0 -2
- package/lib/lib.esnext.decorators.d.ts +0 -2
- package/lib/lib.esnext.disposable.d.ts +0 -2
- package/lib/lib.esnext.error.d.ts +0 -2
- package/lib/lib.esnext.float16.d.ts +0 -2
- package/lib/lib.esnext.full.d.ts +0 -2
- package/lib/lib.esnext.intl.d.ts +0 -2
- package/lib/lib.esnext.iterator.d.ts +0 -2
- package/lib/lib.esnext.promise.d.ts +0 -2
- package/lib/lib.esnext.sharedmemory.d.ts +0 -2
- package/lib/lib.scripthost.d.ts +0 -2
- package/lib/lib.webworker.asynciterable.d.ts +0 -2
- package/lib/lib.webworker.d.ts +0 -2
- package/lib/lib.webworker.importscripts.d.ts +0 -2
- package/lib/lib.webworker.iterable.d.ts +0 -2
- package/lib/typescript.d.ts +2 -8
- package/lib/typescript.js +48 -85
- package/package.json +2 -2
package/lib/_tsc.js
CHANGED
@@ -18,7 +18,7 @@ and limitations under the License.
|
|
18
18
|
|
19
19
|
// src/compiler/corePublic.ts
|
20
20
|
var versionMajorMinor = "6.0";
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20250925`;
|
22
22
|
|
23
23
|
// src/compiler/core.ts
|
24
24
|
var emptyArray = [];
|
@@ -18854,7 +18854,7 @@ function skipTypeCheckingIgnoringNoCheck(sourceFile, options, host) {
|
|
18854
18854
|
);
|
18855
18855
|
}
|
18856
18856
|
function skipTypeCheckingWorker(sourceFile, options, host, ignoreNoCheck) {
|
18857
|
-
return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && sourceFile
|
18857
|
+
return options.skipLibCheck && sourceFile.isDeclarationFile || options.skipDefaultLibCheck && host.isSourceFileDefaultLibrary(sourceFile) || !ignoreNoCheck && options.noCheck || host.isSourceOfProjectReferenceRedirect(sourceFile.fileName) || !canIncludeBindAndCheckDiagnostics(sourceFile, options);
|
18858
18858
|
}
|
18859
18859
|
function canIncludeBindAndCheckDiagnostics(sourceFile, options) {
|
18860
18860
|
if (!!sourceFile.checkJsDirective && sourceFile.checkJsDirective.enabled === false) return false;
|
@@ -24259,8 +24259,17 @@ function createNodeFactory(flags, baseFactory2) {
|
|
24259
24259
|
node.transformFlags = propagateChildrenFlags(node.statements) | propagateChildFlags(node.endOfFileToken);
|
24260
24260
|
return node;
|
24261
24261
|
}
|
24262
|
-
function updateSourceFile(node, statements, isDeclarationFile = node.isDeclarationFile, referencedFiles = node.referencedFiles, typeReferenceDirectives = node.typeReferenceDirectives,
|
24263
|
-
return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.
|
24262
|
+
function updateSourceFile(node, statements, isDeclarationFile = node.isDeclarationFile, referencedFiles = node.referencedFiles, typeReferenceDirectives = node.typeReferenceDirectives, _hasNoDefaultLib = false, libReferenceDirectives = node.libReferenceDirectives) {
|
24263
|
+
return node.statements !== statements || node.isDeclarationFile !== isDeclarationFile || node.referencedFiles !== referencedFiles || node.typeReferenceDirectives !== typeReferenceDirectives || node.libReferenceDirectives !== libReferenceDirectives ? update(cloneSourceFileWithChanges(
|
24264
|
+
node,
|
24265
|
+
statements,
|
24266
|
+
isDeclarationFile,
|
24267
|
+
referencedFiles,
|
24268
|
+
typeReferenceDirectives,
|
24269
|
+
/*hasNoDefaultLib*/
|
24270
|
+
false,
|
24271
|
+
libReferenceDirectives
|
24272
|
+
), node) : node;
|
24264
24273
|
}
|
24265
24274
|
function createBundle(sourceFiles) {
|
24266
24275
|
const node = createBaseNode(309 /* Bundle */);
|
@@ -24268,7 +24277,6 @@ function createNodeFactory(flags, baseFactory2) {
|
|
24268
24277
|
node.syntheticFileReferences = void 0;
|
24269
24278
|
node.syntheticTypeReferences = void 0;
|
24270
24279
|
node.syntheticLibReferences = void 0;
|
24271
|
-
node.hasNoDefaultLib = void 0;
|
24272
24280
|
return node;
|
24273
24281
|
}
|
24274
24282
|
function updateBundle(node, sourceFiles) {
|
@@ -36171,7 +36179,6 @@ function processPragmasIntoFields(context, reportDiagnostic) {
|
|
36171
36179
|
context.typeReferenceDirectives = [];
|
36172
36180
|
context.libReferenceDirectives = [];
|
36173
36181
|
context.amdDependencies = [];
|
36174
|
-
context.hasNoDefaultLib = false;
|
36175
36182
|
context.pragmas.forEach((entryOrList, key) => {
|
36176
36183
|
switch (key) {
|
36177
36184
|
case "reference": {
|
@@ -36182,7 +36189,6 @@ function processPragmasIntoFields(context, reportDiagnostic) {
|
|
36182
36189
|
const { types, lib, path, ["resolution-mode"]: res, preserve: _preserve } = arg.arguments;
|
36183
36190
|
const preserve = _preserve === "true" ? true : void 0;
|
36184
36191
|
if (arg.arguments["no-default-lib"] === "true") {
|
36185
|
-
context.hasNoDefaultLib = true;
|
36186
36192
|
} else if (types) {
|
36187
36193
|
const parsed = parseResolutionMode(res, types.pos, types.end, reportDiagnostic);
|
36188
36194
|
typeReferenceDirectives.push({ pos: types.pos, end: types.end, fileName: types.value, ...parsed ? { resolutionMode: parsed } : {}, ...preserve ? { preserve } : {} });
|
@@ -64080,14 +64086,14 @@ function createTypeChecker(host) {
|
|
64080
64086
|
let issuedElaboration = false;
|
64081
64087
|
if (!targetProp) {
|
64082
64088
|
const indexInfo = getApplicableIndexInfo(target, nameType);
|
64083
|
-
if (indexInfo && indexInfo.declaration && !getSourceFileOfNode(indexInfo.declaration)
|
64089
|
+
if (indexInfo && indexInfo.declaration && !host.isSourceFileDefaultLibrary(getSourceFileOfNode(indexInfo.declaration))) {
|
64084
64090
|
issuedElaboration = true;
|
64085
64091
|
addRelatedInfo(reportedDiag, createDiagnosticForNode(indexInfo.declaration, Diagnostics.The_expected_type_comes_from_this_index_signature));
|
64086
64092
|
}
|
64087
64093
|
}
|
64088
64094
|
if (!issuedElaboration && (targetProp && length(targetProp.declarations) || target.symbol && length(target.symbol.declarations))) {
|
64089
64095
|
const targetNode = targetProp && length(targetProp.declarations) ? targetProp.declarations[0] : target.symbol.declarations[0];
|
64090
|
-
if (!getSourceFileOfNode(targetNode)
|
64096
|
+
if (!host.isSourceFileDefaultLibrary(getSourceFileOfNode(targetNode))) {
|
64091
64097
|
addRelatedInfo(
|
64092
64098
|
reportedDiag,
|
64093
64099
|
createDiagnosticForNode(
|
@@ -113911,11 +113917,9 @@ function transformDeclarations(context) {
|
|
113911
113917
|
rawReferencedFiles = [];
|
113912
113918
|
rawTypeReferenceDirectives = [];
|
113913
113919
|
rawLibReferenceDirectives = [];
|
113914
|
-
let hasNoDefaultLib = false;
|
113915
113920
|
const bundle = factory2.createBundle(
|
113916
113921
|
map(node.sourceFiles, (sourceFile) => {
|
113917
113922
|
if (sourceFile.isDeclarationFile) return void 0;
|
113918
|
-
hasNoDefaultLib = hasNoDefaultLib || sourceFile.hasNoDefaultLib;
|
113919
113923
|
currentSourceFile = sourceFile;
|
113920
113924
|
enclosingDeclaration = sourceFile;
|
113921
113925
|
lateMarkedStatements = void 0;
|
@@ -113976,7 +113980,6 @@ function transformDeclarations(context) {
|
|
113976
113980
|
bundle.syntheticFileReferences = getReferencedFiles(outputFilePath2);
|
113977
113981
|
bundle.syntheticTypeReferences = getTypeReferences();
|
113978
113982
|
bundle.syntheticLibReferences = getLibReferences();
|
113979
|
-
bundle.hasNoDefaultLib = hasNoDefaultLib;
|
113980
113983
|
return bundle;
|
113981
113984
|
}
|
113982
113985
|
needsDeclare = true;
|
@@ -114017,7 +114020,8 @@ function transformDeclarations(context) {
|
|
114017
114020
|
true,
|
114018
114021
|
getReferencedFiles(outputFilePath),
|
114019
114022
|
getTypeReferences(),
|
114020
|
-
|
114023
|
+
/*hasNoDefaultLib*/
|
114024
|
+
false,
|
114021
114025
|
getLibReferences()
|
114022
114026
|
);
|
114023
114027
|
function collectFileReferences(sourceFile) {
|
@@ -119176,16 +119180,12 @@ function createPrinter(printerOptions = {}, handlers = {}) {
|
|
119176
119180
|
emitSourceFileWorker(node);
|
119177
119181
|
}
|
119178
119182
|
function emitSyntheticTripleSlashReferencesIfNeeded(node) {
|
119179
|
-
emitTripleSlashDirectives(
|
119183
|
+
emitTripleSlashDirectives(node.syntheticFileReferences || [], node.syntheticTypeReferences || [], node.syntheticLibReferences || []);
|
119180
119184
|
}
|
119181
119185
|
function emitTripleSlashDirectivesIfNeeded(node) {
|
119182
|
-
if (node.isDeclarationFile) emitTripleSlashDirectives(node.
|
119186
|
+
if (node.isDeclarationFile) emitTripleSlashDirectives(node.referencedFiles, node.typeReferenceDirectives, node.libReferenceDirectives);
|
119183
119187
|
}
|
119184
|
-
function emitTripleSlashDirectives(
|
119185
|
-
if (hasNoDefaultLib) {
|
119186
|
-
writeComment(`/// <reference no-default-lib="true"/>`);
|
119187
|
-
writeLine();
|
119188
|
-
}
|
119188
|
+
function emitTripleSlashDirectives(files, types, libs2) {
|
119189
119189
|
if (currentSourceFile && currentSourceFile.moduleName) {
|
119190
119190
|
writeComment(`/// <amd-module name="${currentSourceFile.moduleName}" />`);
|
119191
119191
|
writeLine();
|
@@ -122132,7 +122132,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
122132
122132
|
mark("beforeProgram");
|
122133
122133
|
const host = createProgramOptionsHost || createCompilerHost(options);
|
122134
122134
|
const configParsingHost = parseConfigHostFromCompilerHostLike(host);
|
122135
|
-
let skipDefaultLib = options.noLib;
|
122136
122135
|
const getDefaultLibraryFileName = memoize(() => host.getDefaultLibFileName(options));
|
122137
122136
|
const defaultLibraryPath = host.getDefaultLibLocation ? host.getDefaultLibLocation() : getDirectoryPath(getDefaultLibraryFileName());
|
122138
122137
|
let skipVerifyCompilerOptions = false;
|
@@ -122220,6 +122219,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
122220
122219
|
let redirectTargetsMap = createMultiMap();
|
122221
122220
|
let usesUriStyleNodeCoreModules;
|
122222
122221
|
const filesByName = /* @__PURE__ */ new Map();
|
122222
|
+
const libFiles = /* @__PURE__ */ new Set();
|
122223
122223
|
let missingFileNames = /* @__PURE__ */ new Map();
|
122224
122224
|
const filesByNameIgnoreCase = host.useCaseSensitiveFileNames() ? /* @__PURE__ */ new Map() : void 0;
|
122225
122225
|
let resolvedProjectReferences;
|
@@ -122281,8 +122281,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
122281
122281
|
name,
|
122282
122282
|
/*isDefaultLib*/
|
122283
122283
|
false,
|
122284
|
-
/*ignoreNoDefaultLib*/
|
122285
|
-
false,
|
122286
122284
|
{ kind: 0 /* RootFile */, index }
|
122287
122285
|
));
|
122288
122286
|
(_j = tracing) == null ? void 0 : _j.pop();
|
@@ -122314,15 +122312,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
122314
122312
|
}
|
122315
122313
|
(_n = tracing) == null ? void 0 : _n.pop();
|
122316
122314
|
}
|
122317
|
-
if (rootNames.length && !
|
122315
|
+
if (rootNames.length && !options.noLib) {
|
122318
122316
|
const defaultLibraryFileName = getDefaultLibraryFileName();
|
122319
122317
|
if (!options.lib && defaultLibraryFileName) {
|
122318
|
+
libFiles.add(toPath3(defaultLibraryFileName));
|
122320
122319
|
processRootFile(
|
122321
122320
|
defaultLibraryFileName,
|
122322
122321
|
/*isDefaultLib*/
|
122323
122322
|
true,
|
122324
|
-
/*ignoreNoDefaultLib*/
|
122325
|
-
false,
|
122326
122323
|
{ kind: 6 /* LibFile */ }
|
122327
122324
|
);
|
122328
122325
|
} else {
|
@@ -122331,8 +122328,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
122331
122328
|
pathForLibFile(libFileName),
|
122332
122329
|
/*isDefaultLib*/
|
122333
122330
|
true,
|
122334
|
-
/*ignoreNoDefaultLib*/
|
122335
|
-
false,
|
122336
122331
|
{ kind: 6 /* LibFile */, index }
|
122337
122332
|
);
|
122338
122333
|
});
|
@@ -122843,8 +122838,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
122843
122838
|
structureIsReused = 1 /* SafeModules */;
|
122844
122839
|
} else if (!arrayIsEqualTo(oldSourceFile.libReferenceDirectives, newSourceFile.libReferenceDirectives, fileReferenceIsEqualTo)) {
|
122845
122840
|
structureIsReused = 1 /* SafeModules */;
|
122846
|
-
} else if (oldSourceFile.hasNoDefaultLib !== newSourceFile.hasNoDefaultLib) {
|
122847
|
-
structureIsReused = 1 /* SafeModules */;
|
122848
122841
|
} else if (!arrayIsEqualTo(oldSourceFile.referencedFiles, newSourceFile.referencedFiles, fileReferenceIsEqualTo)) {
|
122849
122842
|
structureIsReused = 1 /* SafeModules */;
|
122850
122843
|
} else {
|
@@ -123026,24 +123019,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123026
123019
|
return !!sourceFilesFoundSearchingNodeModules.get(file.path);
|
123027
123020
|
}
|
123028
123021
|
function isSourceFileDefaultLibrary(file) {
|
123029
|
-
|
123030
|
-
return false;
|
123031
|
-
}
|
123032
|
-
if (file.hasNoDefaultLib) {
|
123033
|
-
return true;
|
123034
|
-
}
|
123035
|
-
if (options.noLib) {
|
123036
|
-
return false;
|
123037
|
-
}
|
123038
|
-
const equalityComparer = host.useCaseSensitiveFileNames() ? equateStringsCaseSensitive : equateStringsCaseInsensitive;
|
123039
|
-
if (!options.lib) {
|
123040
|
-
return equalityComparer(file.fileName, getDefaultLibraryFileName());
|
123041
|
-
} else {
|
123042
|
-
return some(options.lib, (libFileName) => {
|
123043
|
-
const resolvedLib = resolvedLibReferences.get(libFileName);
|
123044
|
-
return !!resolvedLib && equalityComparer(file.fileName, resolvedLib.actual);
|
123045
|
-
});
|
123046
|
-
}
|
123022
|
+
return libFiles.has(file.path);
|
123047
123023
|
}
|
123048
123024
|
function getTypeChecker() {
|
123049
123025
|
return typeChecker || (typeChecker = createTypeChecker(program));
|
@@ -123524,11 +123500,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123524
123500
|
function getConfigFileParsingDiagnostics2() {
|
123525
123501
|
return configFileParsingDiagnostics || emptyArray;
|
123526
123502
|
}
|
123527
|
-
function processRootFile(fileName, isDefaultLib,
|
123503
|
+
function processRootFile(fileName, isDefaultLib, reason) {
|
123528
123504
|
processSourceFile(
|
123529
123505
|
normalizePath(fileName),
|
123530
123506
|
isDefaultLib,
|
123531
|
-
ignoreNoDefaultLib,
|
123532
123507
|
/*packageId*/
|
123533
123508
|
void 0,
|
123534
123509
|
reason
|
@@ -123693,10 +123668,10 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123693
123668
|
return sourceFileWithAddedExtension;
|
123694
123669
|
}
|
123695
123670
|
}
|
123696
|
-
function processSourceFile(fileName, isDefaultLib,
|
123671
|
+
function processSourceFile(fileName, isDefaultLib, packageId, reason) {
|
123697
123672
|
getSourceFileFromReferenceWorker(
|
123698
123673
|
fileName,
|
123699
|
-
(fileName2) => findSourceFile(fileName2, isDefaultLib,
|
123674
|
+
(fileName2) => findSourceFile(fileName2, isDefaultLib, reason, packageId),
|
123700
123675
|
// TODO: GH#18217
|
123701
123676
|
(diagnostic, ...args) => addFilePreprocessingFileExplainingDiagnostic(
|
123702
123677
|
/*file*/
|
@@ -123713,8 +123688,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123713
123688
|
fileName,
|
123714
123689
|
/*isDefaultLib*/
|
123715
123690
|
false,
|
123716
|
-
/*ignoreNoDefaultLib*/
|
123717
|
-
false,
|
123718
123691
|
/*packageId*/
|
123719
123692
|
void 0,
|
123720
123693
|
reason
|
@@ -123740,14 +123713,14 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123740
123713
|
sourceFilesFoundSearchingNodeModules.set(path, currentNodeModulesDepth > 0);
|
123741
123714
|
return redirect;
|
123742
123715
|
}
|
123743
|
-
function findSourceFile(fileName, isDefaultLib,
|
123716
|
+
function findSourceFile(fileName, isDefaultLib, reason, packageId) {
|
123744
123717
|
var _a2, _b2;
|
123745
123718
|
(_a2 = tracing) == null ? void 0 : _a2.push(tracing.Phase.Program, "findSourceFile", {
|
123746
123719
|
fileName,
|
123747
123720
|
isDefaultLib: isDefaultLib || void 0,
|
123748
123721
|
fileIncludeKind: FileIncludeKind[reason.kind]
|
123749
123722
|
});
|
123750
|
-
const result = findSourceFileWorker(fileName, isDefaultLib,
|
123723
|
+
const result = findSourceFileWorker(fileName, isDefaultLib, reason, packageId);
|
123751
123724
|
(_b2 = tracing) == null ? void 0 : _b2.pop();
|
123752
123725
|
return result;
|
123753
123726
|
}
|
@@ -123757,7 +123730,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123757
123730
|
const setExternalModuleIndicator2 = getSetExternalModuleIndicator(options2);
|
123758
123731
|
return typeof result === "object" ? { ...result, languageVersion, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode } : { languageVersion, impliedNodeFormat: result, setExternalModuleIndicator: setExternalModuleIndicator2, jsDocParsingMode: host2.jsDocParsingMode };
|
123759
123732
|
}
|
123760
|
-
function findSourceFileWorker(fileName, isDefaultLib,
|
123733
|
+
function findSourceFileWorker(fileName, isDefaultLib, reason, packageId) {
|
123761
123734
|
var _a2, _b2;
|
123762
123735
|
const path = toPath3(fileName);
|
123763
123736
|
if (useSourceOfProjectReferenceRedirect) {
|
@@ -123767,7 +123740,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123767
123740
|
if (realPath2 !== path) source = getRedirectFromOutput(realPath2);
|
123768
123741
|
}
|
123769
123742
|
if (source == null ? void 0 : source.source) {
|
123770
|
-
const file2 = findSourceFile(source.source, isDefaultLib,
|
123743
|
+
const file2 = findSourceFile(source.source, isDefaultLib, reason, packageId);
|
123771
123744
|
if (file2) addFileToFilesByName(
|
123772
123745
|
file2,
|
123773
123746
|
path,
|
@@ -123887,7 +123860,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123887
123860
|
filesByNameIgnoreCase.set(pathLowerCase, file);
|
123888
123861
|
}
|
123889
123862
|
}
|
123890
|
-
skipDefaultLib = skipDefaultLib || file.hasNoDefaultLib && !ignoreNoDefaultLib;
|
123891
123863
|
if (!options.noResolve) {
|
123892
123864
|
processReferencedFiles(file, isDefaultLib);
|
123893
123865
|
processTypeReferenceDirectives(file);
|
@@ -123948,8 +123920,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123948
123920
|
processSourceFile(
|
123949
123921
|
resolveTripleslashReference(ref.fileName, file.fileName),
|
123950
123922
|
isDefaultLib,
|
123951
|
-
/*ignoreNoDefaultLib*/
|
123952
|
-
false,
|
123953
123923
|
/*packageId*/
|
123954
123924
|
void 0,
|
123955
123925
|
{ kind: 4 /* ReferenceFile */, file: file.path, index }
|
@@ -123990,8 +123960,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
123990
123960
|
resolvedTypeReferenceDirective.resolvedFileName,
|
123991
123961
|
/*isDefaultLib*/
|
123992
123962
|
false,
|
123993
|
-
/*ignoreNoDefaultLib*/
|
123994
|
-
false,
|
123995
123963
|
resolvedTypeReferenceDirective.packageId,
|
123996
123964
|
reason
|
123997
123965
|
);
|
@@ -124011,6 +123979,7 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
124011
123979
|
if (existing) return existing.actual;
|
124012
123980
|
const result = pathForLibFileWorker(libFileName);
|
124013
123981
|
(resolvedLibReferences ?? (resolvedLibReferences = /* @__PURE__ */ new Map())).set(libFileName, result);
|
123982
|
+
libFiles.add(toPath3(result.actual));
|
124014
123983
|
return result.actual;
|
124015
123984
|
}
|
124016
123985
|
function pathForLibFileWorker(libFileName) {
|
@@ -124069,8 +124038,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
124069
124038
|
pathForLibFile(libFileName),
|
124070
124039
|
/*isDefaultLib*/
|
124071
124040
|
true,
|
124072
|
-
/*ignoreNoDefaultLib*/
|
124073
|
-
true,
|
124074
124041
|
{ kind: 7 /* LibReferenceDirective */, file: file.path, index }
|
124075
124042
|
);
|
124076
124043
|
} else {
|
@@ -124118,8 +124085,6 @@ function createProgram(_rootNamesOrOptions, _options, _host, _oldProgram, _confi
|
|
124118
124085
|
resolvedFileName,
|
124119
124086
|
/*isDefaultLib*/
|
124120
124087
|
false,
|
124121
|
-
/*ignoreNoDefaultLib*/
|
124122
|
-
false,
|
124123
124088
|
{ kind: 3 /* Import */, file: file.path, index },
|
124124
124089
|
resolution.packageId
|
124125
124090
|
);
|
@@ -125872,7 +125837,7 @@ function createBuilderProgramState(newProgram, oldState) {
|
|
125872
125837
|
}
|
125873
125838
|
if (canCopySemanticDiagnostics) {
|
125874
125839
|
if (sourceFile.isDeclarationFile && !copyDeclarationFileDiagnostics) return;
|
125875
|
-
if (sourceFile
|
125840
|
+
if (newProgram.isSourceFileDefaultLibrary(sourceFile) && !copyLibFileDiagnostics) return;
|
125876
125841
|
const diagnostics = oldState.semanticDiagnosticsPerFile.get(sourceFilePath);
|
125877
125842
|
if (diagnostics) {
|
125878
125843
|
state.semanticDiagnosticsPerFile.set(
|
package/lib/lib.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es5" />
|
20
18
|
/// <reference lib="dom" />
|
21
19
|
/// <reference lib="webworker.importscripts" />
|
package/lib/lib.decorators.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
declare type ClassDecorator = <TFunction extends Function>(target: TFunction) => TFunction | void;
|
20
18
|
declare type PropertyDecorator = (target: Object, propertyKey: string | symbol) => void;
|
21
19
|
declare type MethodDecorator = <T>(target: Object, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<T>) => TypedPropertyDescriptor<T> | void;
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/////////////////////////////
|
20
18
|
/// Window Async Iterable APIs
|
21
19
|
/////////////////////////////
|
package/lib/lib.dom.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/////////////////////////////
|
20
18
|
/// Window Iterable APIs
|
21
19
|
/////////////////////////////
|
package/lib/lib.es2015.core.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
interface Array<T> {
|
20
18
|
/**
|
21
19
|
* Returns the value of the first element in the array where predicate is true, and undefined
|
package/lib/lib.es2015.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es5" />
|
20
18
|
/// <reference lib="es2015.core" />
|
21
19
|
/// <reference lib="es2015.collection" />
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es2015.iterable" />
|
20
18
|
|
21
19
|
interface Generator<T = unknown, TReturn = any, TNext = any> extends IteratorObject<T, TReturn, TNext> {
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
interface ProxyHandler<T extends object> {
|
20
18
|
/**
|
21
19
|
* A trap method for a function call.
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
declare namespace Reflect {
|
20
18
|
/**
|
21
19
|
* Calls the function with the specified object as the this value
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
interface Array<T> {
|
20
18
|
/**
|
21
19
|
* Determines whether an array includes a certain element, returning true or false as appropriate.
|
package/lib/lib.es2016.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es2015" />
|
20
18
|
/// <reference lib="es2016.array.include" />
|
21
19
|
/// <reference lib="es2016.intl" />
|
package/lib/lib.es2016.full.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es2016" />
|
20
18
|
/// <reference lib="dom" />
|
21
19
|
/// <reference lib="webworker.importscripts" />
|
package/lib/lib.es2016.intl.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
declare namespace Intl {
|
20
18
|
/**
|
21
19
|
* The `Intl.getCanonicalLocales()` method returns an array containing
|
package/lib/lib.es2017.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es2016" />
|
20
18
|
/// <reference lib="es2017.arraybuffer" />
|
21
19
|
/// <reference lib="es2017.date" />
|
package/lib/lib.es2017.date.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
interface DateConstructor {
|
20
18
|
/**
|
21
19
|
* Returns the number of milliseconds between midnight, January 1, 1970 Universal Coordinated Time (UTC) (or GMT) and the specified date.
|
package/lib/lib.es2017.full.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es2017" />
|
20
18
|
/// <reference lib="dom" />
|
21
19
|
/// <reference lib="webworker.importscripts" />
|
package/lib/lib.es2017.intl.d.ts
CHANGED
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
interface ObjectConstructor {
|
20
18
|
/**
|
21
19
|
* Returns an array of values of the enumerable own properties of an object
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es2015.symbol" />
|
20
18
|
/// <reference lib="es2015.symbol.wellknown" />
|
21
19
|
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
interface String {
|
20
18
|
/**
|
21
19
|
* Pads the current string with a given string (possibly repeated) so that the resulting string reaches a given length.
|
@@ -14,8 +14,6 @@ and limitations under the License.
|
|
14
14
|
***************************************************************************** */
|
15
15
|
|
16
16
|
|
17
|
-
/// <reference no-default-lib="true"/>
|
18
|
-
|
19
17
|
/// <reference lib="es2018.asynciterable" />
|
20
18
|
|
21
19
|
interface AsyncGenerator<T = unknown, TReturn = any, TNext = any> extends AsyncIteratorObject<T, TReturn, TNext> {
|