typescript 5.3.0-dev.20231024 → 5.3.0-dev.20231025
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/lib.es2023.array.d.ts +11 -11
- package/lib/tsc.js +52 -52
- package/lib/tsserver.js +42946 -36811
- package/lib/typescript.js +10274 -8343
- package/lib/typingsInstaller.js +1 -1
- package/package.json +3 -2
|
@@ -209,7 +209,7 @@ interface Int8Array {
|
|
|
209
209
|
* Copies and sorts the array.
|
|
210
210
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
211
211
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
212
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
212
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
213
213
|
* ```ts
|
|
214
214
|
* const myNums = Uint8Array.from([11, 2, 22, 1]);
|
|
215
215
|
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
|
|
@@ -273,7 +273,7 @@ interface Uint8Array {
|
|
|
273
273
|
* Copies and sorts the array.
|
|
274
274
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
275
275
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
276
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
276
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
277
277
|
* ```ts
|
|
278
278
|
* const myNums = Uint8Array.from([11, 2, 22, 1]);
|
|
279
279
|
* myNums.toSorted((a, b) => a - b) // Uint8Array(4) [1, 2, 11, 22]
|
|
@@ -345,7 +345,7 @@ interface Uint8ClampedArray {
|
|
|
345
345
|
* Copies and sorts the array.
|
|
346
346
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
347
347
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
348
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
348
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
349
349
|
* ```ts
|
|
350
350
|
* const myNums = Uint8ClampedArray.from([11, 2, 22, 1]);
|
|
351
351
|
* myNums.toSorted((a, b) => a - b) // Uint8ClampedArray(4) [1, 2, 11, 22]
|
|
@@ -409,7 +409,7 @@ interface Int16Array {
|
|
|
409
409
|
* Copies and sorts the array.
|
|
410
410
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
411
411
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
412
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
412
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
413
413
|
* ```ts
|
|
414
414
|
* const myNums = Int16Array.from([11, 2, -22, 1]);
|
|
415
415
|
* myNums.toSorted((a, b) => a - b) // Int16Array(4) [-22, 1, 2, 11]
|
|
@@ -481,7 +481,7 @@ interface Uint16Array {
|
|
|
481
481
|
* Copies and sorts the array.
|
|
482
482
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
483
483
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
484
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
484
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
485
485
|
* ```ts
|
|
486
486
|
* const myNums = Uint16Array.from([11, 2, 22, 1]);
|
|
487
487
|
* myNums.toSorted((a, b) => a - b) // Uint16Array(4) [1, 2, 11, 22]
|
|
@@ -545,7 +545,7 @@ interface Int32Array {
|
|
|
545
545
|
* Copies and sorts the array.
|
|
546
546
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
547
547
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
548
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
548
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
549
549
|
* ```ts
|
|
550
550
|
* const myNums = Int32Array.from([11, 2, -22, 1]);
|
|
551
551
|
* myNums.toSorted((a, b) => a - b) // Int32Array(4) [-22, 1, 2, 11]
|
|
@@ -617,7 +617,7 @@ interface Uint32Array {
|
|
|
617
617
|
* Copies and sorts the array.
|
|
618
618
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
619
619
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
620
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
620
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
621
621
|
* ```ts
|
|
622
622
|
* const myNums = Uint32Array.from([11, 2, 22, 1]);
|
|
623
623
|
* myNums.toSorted((a, b) => a - b) // Uint32Array(4) [1, 2, 11, 22]
|
|
@@ -689,7 +689,7 @@ interface Float32Array {
|
|
|
689
689
|
* Copies and sorts the array.
|
|
690
690
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
691
691
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
692
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
692
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
693
693
|
* ```ts
|
|
694
694
|
* const myNums = Float32Array.from([11.25, 2, -22.5, 1]);
|
|
695
695
|
* myNums.toSorted((a, b) => a - b) // Float32Array(4) [-22.5, 1, 2, 11.5]
|
|
@@ -761,7 +761,7 @@ interface Float64Array {
|
|
|
761
761
|
* Copies and sorts the array.
|
|
762
762
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
763
763
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
764
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
764
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
765
765
|
* ```ts
|
|
766
766
|
* const myNums = Float64Array.from([11.25, 2, -22.5, 1]);
|
|
767
767
|
* myNums.toSorted((a, b) => a - b) // Float64Array(4) [-22.5, 1, 2, 11.5]
|
|
@@ -833,7 +833,7 @@ interface BigInt64Array {
|
|
|
833
833
|
* Copies and sorts the array.
|
|
834
834
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
835
835
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
836
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
836
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
837
837
|
* ```ts
|
|
838
838
|
* const myNums = BigInt64Array.from([11n, 2n, -22n, 1n]);
|
|
839
839
|
* myNums.toSorted((a, b) => Number(a - b)) // BigInt64Array(4) [-22n, 1n, 2n, 11n]
|
|
@@ -905,7 +905,7 @@ interface BigUint64Array {
|
|
|
905
905
|
* Copies and sorts the array.
|
|
906
906
|
* @param compareFn Function used to determine the order of the elements. It is expected to return
|
|
907
907
|
* a negative value if the first argument is less than the second argument, zero if they're equal, and a positive
|
|
908
|
-
* value otherwise. If omitted, the elements are sorted in ascending
|
|
908
|
+
* value otherwise. If omitted, the elements are sorted in ascending order.
|
|
909
909
|
* ```ts
|
|
910
910
|
* const myNums = BigUint64Array.from([11n, 2n, 22n, 1n]);
|
|
911
911
|
* myNums.toSorted((a, b) => Number(a - b)) // BigUint64Array(4) [1n, 2n, 11n, 22n]
|
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 = "5.3";
|
|
21
|
-
var version = `${versionMajorMinor}.0-dev.
|
|
21
|
+
var version = `${versionMajorMinor}.0-dev.20231025`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -42747,10 +42747,10 @@ function tryGetModuleNameFromPaths(relativeToBaseUrl, paths, allowedEndings, hos
|
|
|
42747
42747
|
return ending !== 0 /* Minimal */ || value === processEnding(relativeToBaseUrl, [ending], compilerOptions, host);
|
|
42748
42748
|
}
|
|
42749
42749
|
}
|
|
42750
|
-
function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName,
|
|
42751
|
-
if (typeof
|
|
42750
|
+
function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, exports2, conditions, mode = 0 /* Exact */) {
|
|
42751
|
+
if (typeof exports2 === "string") {
|
|
42752
42752
|
const pathOrPattern = getNormalizedAbsolutePath(
|
|
42753
|
-
combinePaths(packageDirectory,
|
|
42753
|
+
combinePaths(packageDirectory, exports2),
|
|
42754
42754
|
/*currentDirectory*/
|
|
42755
42755
|
void 0
|
|
42756
42756
|
);
|
|
@@ -42770,7 +42770,7 @@ function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory,
|
|
|
42770
42770
|
false
|
|
42771
42771
|
);
|
|
42772
42772
|
return { moduleFileToTry: getNormalizedAbsolutePath(
|
|
42773
|
-
combinePaths(combinePaths(packageName,
|
|
42773
|
+
combinePaths(combinePaths(packageName, exports2), fragment),
|
|
42774
42774
|
/*currentDirectory*/
|
|
42775
42775
|
void 0
|
|
42776
42776
|
) };
|
|
@@ -42790,23 +42790,23 @@ function tryGetModuleNameFromExports(options, targetFilePath, packageDirectory,
|
|
|
42790
42790
|
}
|
|
42791
42791
|
break;
|
|
42792
42792
|
}
|
|
42793
|
-
} else if (Array.isArray(
|
|
42794
|
-
return forEach(
|
|
42795
|
-
} else if (typeof
|
|
42796
|
-
if (allKeysStartWithDot(
|
|
42797
|
-
return forEach(getOwnKeys(
|
|
42793
|
+
} else if (Array.isArray(exports2)) {
|
|
42794
|
+
return forEach(exports2, (e) => tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, e, conditions));
|
|
42795
|
+
} else if (typeof exports2 === "object" && exports2 !== null) {
|
|
42796
|
+
if (allKeysStartWithDot(exports2)) {
|
|
42797
|
+
return forEach(getOwnKeys(exports2), (k) => {
|
|
42798
42798
|
const subPackageName = getNormalizedAbsolutePath(
|
|
42799
42799
|
combinePaths(packageName, k),
|
|
42800
42800
|
/*currentDirectory*/
|
|
42801
42801
|
void 0
|
|
42802
42802
|
);
|
|
42803
42803
|
const mode2 = endsWith(k, "/") ? 1 /* Directory */ : k.includes("*") ? 2 /* Pattern */ : 0 /* Exact */;
|
|
42804
|
-
return tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, subPackageName,
|
|
42804
|
+
return tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, subPackageName, exports2[k], conditions, mode2);
|
|
42805
42805
|
});
|
|
42806
42806
|
} else {
|
|
42807
|
-
for (const key of getOwnKeys(
|
|
42807
|
+
for (const key of getOwnKeys(exports2)) {
|
|
42808
42808
|
if (key === "default" || conditions.includes(key) || isApplicableVersionedTypesKey(conditions, key)) {
|
|
42809
|
-
const subTarget =
|
|
42809
|
+
const subTarget = exports2[key];
|
|
42810
42810
|
const result = tryGetModuleNameFromExports(options, targetFilePath, packageDirectory, packageName, subTarget, conditions, mode);
|
|
42811
42811
|
if (result) {
|
|
42812
42812
|
return result;
|
|
@@ -45888,13 +45888,13 @@ function createTypeChecker(host) {
|
|
|
45888
45888
|
function reportNonExportedMember(node, name, declarationName, moduleSymbol, moduleName) {
|
|
45889
45889
|
var _a, _b;
|
|
45890
45890
|
const localSymbol = (_b = (_a = tryCast(moduleSymbol.valueDeclaration, canHaveLocals)) == null ? void 0 : _a.locals) == null ? void 0 : _b.get(name.escapedText);
|
|
45891
|
-
const
|
|
45891
|
+
const exports2 = moduleSymbol.exports;
|
|
45892
45892
|
if (localSymbol) {
|
|
45893
|
-
const exportedEqualsSymbol =
|
|
45893
|
+
const exportedEqualsSymbol = exports2 == null ? void 0 : exports2.get("export=" /* ExportEquals */);
|
|
45894
45894
|
if (exportedEqualsSymbol) {
|
|
45895
45895
|
getSymbolIfSameReference(exportedEqualsSymbol, localSymbol) ? reportInvalidImportEqualsExportMember(node, name, declarationName, moduleName) : error(name, Diagnostics.Module_0_has_no_exported_member_1, moduleName, declarationName);
|
|
45896
45896
|
} else {
|
|
45897
|
-
const exportedSymbol =
|
|
45897
|
+
const exportedSymbol = exports2 ? find(symbolsToArray(exports2), (symbol) => !!getSymbolIfSameReference(symbol, localSymbol)) : void 0;
|
|
45898
45898
|
const diagnostic = exportedSymbol ? error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_exported_as_2, moduleName, declarationName, symbolToString(exportedSymbol)) : error(name, Diagnostics.Module_0_declares_1_locally_but_it_is_not_exported, moduleName, declarationName);
|
|
45899
45899
|
if (localSymbol.declarations) {
|
|
45900
45900
|
addRelatedInfo(diagnostic, ...map(localSymbol.declarations, (decl, index) => createDiagnosticForNode(decl, index === 0 ? Diagnostics._0_is_declared_here : Diagnostics.and_here, declarationName)));
|
|
@@ -46758,19 +46758,19 @@ function createTypeChecker(host) {
|
|
|
46758
46758
|
return symbolsToArray(getExportsOfModule(moduleSymbol));
|
|
46759
46759
|
}
|
|
46760
46760
|
function getExportsAndPropertiesOfModule(moduleSymbol) {
|
|
46761
|
-
const
|
|
46761
|
+
const exports2 = getExportsOfModuleAsArray(moduleSymbol);
|
|
46762
46762
|
const exportEquals = resolveExternalModuleSymbol(moduleSymbol);
|
|
46763
46763
|
if (exportEquals !== moduleSymbol) {
|
|
46764
46764
|
const type = getTypeOfSymbol(exportEquals);
|
|
46765
46765
|
if (shouldTreatPropertiesOfExternalModuleAsExports(type)) {
|
|
46766
|
-
addRange(
|
|
46766
|
+
addRange(exports2, getPropertiesOfType(type));
|
|
46767
46767
|
}
|
|
46768
46768
|
}
|
|
46769
|
-
return
|
|
46769
|
+
return exports2;
|
|
46770
46770
|
}
|
|
46771
46771
|
function forEachExportAndPropertyOfModule(moduleSymbol, cb) {
|
|
46772
|
-
const
|
|
46773
|
-
|
|
46772
|
+
const exports2 = getExportsOfModule(moduleSymbol);
|
|
46773
|
+
exports2.forEach((symbol, key) => {
|
|
46774
46774
|
if (!isReservedMemberName(key)) {
|
|
46775
46775
|
cb(symbol, key);
|
|
46776
46776
|
}
|
|
@@ -46813,8 +46813,8 @@ function createTypeChecker(host) {
|
|
|
46813
46813
|
function getExportsOfModule(moduleSymbol) {
|
|
46814
46814
|
const links = getSymbolLinks(moduleSymbol);
|
|
46815
46815
|
if (!links.resolvedExports) {
|
|
46816
|
-
const { exports, typeOnlyExportStarMap } = getExportsOfModuleWorker(moduleSymbol);
|
|
46817
|
-
links.resolvedExports =
|
|
46816
|
+
const { exports: exports2, typeOnlyExportStarMap } = getExportsOfModuleWorker(moduleSymbol);
|
|
46817
|
+
links.resolvedExports = exports2;
|
|
46818
46818
|
links.typeOnlyExportStarMap = typeOnlyExportStarMap;
|
|
46819
46819
|
}
|
|
46820
46820
|
return links.resolvedExports;
|
|
@@ -46848,12 +46848,12 @@ function createTypeChecker(host) {
|
|
|
46848
46848
|
let typeOnlyExportStarMap;
|
|
46849
46849
|
const nonTypeOnlyNames = /* @__PURE__ */ new Set();
|
|
46850
46850
|
moduleSymbol = resolveExternalModuleSymbol(moduleSymbol);
|
|
46851
|
-
const
|
|
46851
|
+
const exports2 = visit(moduleSymbol) || emptySymbols;
|
|
46852
46852
|
if (typeOnlyExportStarMap) {
|
|
46853
46853
|
nonTypeOnlyNames.forEach((name) => typeOnlyExportStarMap.delete(name));
|
|
46854
46854
|
}
|
|
46855
46855
|
return {
|
|
46856
|
-
exports,
|
|
46856
|
+
exports: exports2,
|
|
46857
46857
|
typeOnlyExportStarMap
|
|
46858
46858
|
};
|
|
46859
46859
|
function visit(symbol, exportStar, isTypeOnly) {
|
|
@@ -47038,12 +47038,12 @@ function createTypeChecker(host) {
|
|
|
47038
47038
|
if (exportEquals && getSymbolIfSameReference(exportEquals, symbol)) {
|
|
47039
47039
|
return container;
|
|
47040
47040
|
}
|
|
47041
|
-
const
|
|
47042
|
-
const quick =
|
|
47041
|
+
const exports2 = getExportsOfSymbol(container);
|
|
47042
|
+
const quick = exports2.get(symbol.escapedName);
|
|
47043
47043
|
if (quick && getSymbolIfSameReference(quick, symbol)) {
|
|
47044
47044
|
return quick;
|
|
47045
47045
|
}
|
|
47046
|
-
return forEachEntry(
|
|
47046
|
+
return forEachEntry(exports2, (exported) => {
|
|
47047
47047
|
if (getSymbolIfSameReference(exported, symbol)) {
|
|
47048
47048
|
return exported;
|
|
47049
47049
|
}
|
|
@@ -49242,8 +49242,8 @@ function createTypeChecker(host) {
|
|
|
49242
49242
|
context.flags ^= 16777216 /* InInitialEntityName */;
|
|
49243
49243
|
} else {
|
|
49244
49244
|
if (parent && getExportsOfSymbol(parent)) {
|
|
49245
|
-
const
|
|
49246
|
-
forEachEntry(
|
|
49245
|
+
const exports2 = getExportsOfSymbol(parent);
|
|
49246
|
+
forEachEntry(exports2, (ex, name) => {
|
|
49247
49247
|
if (getSymbolIfSameReference(ex, symbol2) && !isLateBoundName(name) && name !== "export=" /* ExportEquals */) {
|
|
49248
49248
|
symbolName2 = unescapeLeadingUnderscores(name);
|
|
49249
49249
|
return true;
|
|
@@ -49867,8 +49867,8 @@ function createTypeChecker(host) {
|
|
|
49867
49867
|
return statements;
|
|
49868
49868
|
}
|
|
49869
49869
|
function mergeExportDeclarations(statements) {
|
|
49870
|
-
const
|
|
49871
|
-
if (length(
|
|
49870
|
+
const exports2 = filter(statements, (d) => isExportDeclaration(d) && !d.moduleSpecifier && !!d.exportClause && isNamedExports(d.exportClause));
|
|
49871
|
+
if (length(exports2) > 1) {
|
|
49872
49872
|
const nonExports = filter(statements, (d) => !isExportDeclaration(d) || !!d.moduleSpecifier || !d.exportClause);
|
|
49873
49873
|
statements = [
|
|
49874
49874
|
...nonExports,
|
|
@@ -49877,7 +49877,7 @@ function createTypeChecker(host) {
|
|
|
49877
49877
|
void 0,
|
|
49878
49878
|
/*isTypeOnly*/
|
|
49879
49879
|
false,
|
|
49880
|
-
factory.createNamedExports(flatMap(
|
|
49880
|
+
factory.createNamedExports(flatMap(exports2, (e) => cast(e.exportClause, isNamedExports).elements)),
|
|
49881
49881
|
/*moduleSpecifier*/
|
|
49882
49882
|
void 0
|
|
49883
49883
|
)
|
|
@@ -50254,8 +50254,8 @@ function createTypeChecker(host) {
|
|
|
50254
50254
|
);
|
|
50255
50255
|
}
|
|
50256
50256
|
function getNamespaceMembersForSerialization(symbol) {
|
|
50257
|
-
const
|
|
50258
|
-
return !
|
|
50257
|
+
const exports2 = getExportsOfSymbol(symbol);
|
|
50258
|
+
return !exports2 ? [] : filter(arrayFrom(exports2.values()), (m) => isNamespaceMember(m) && isIdentifierText(m.escapedName, 99 /* ESNext */));
|
|
50259
50259
|
}
|
|
50260
50260
|
function isTypeOnlyNamespace(symbol) {
|
|
50261
50261
|
return every(getNamespaceMembersForSerialization(symbol), (m) => !(getSymbolFlags(resolveSymbol(m)) & 111551 /* Value */));
|
|
@@ -52057,19 +52057,19 @@ function createTypeChecker(host) {
|
|
|
52057
52057
|
if (!isInJSFile(decl) || !init || !isObjectLiteralExpression(init) || init.properties.length) {
|
|
52058
52058
|
return void 0;
|
|
52059
52059
|
}
|
|
52060
|
-
const
|
|
52060
|
+
const exports2 = createSymbolTable();
|
|
52061
52061
|
while (isBinaryExpression(decl) || isPropertyAccessExpression(decl)) {
|
|
52062
52062
|
const s2 = getSymbolOfNode(decl);
|
|
52063
52063
|
if ((_a = s2 == null ? void 0 : s2.exports) == null ? void 0 : _a.size) {
|
|
52064
|
-
mergeSymbolTable(
|
|
52064
|
+
mergeSymbolTable(exports2, s2.exports);
|
|
52065
52065
|
}
|
|
52066
52066
|
decl = isBinaryExpression(decl) ? decl.parent : decl.parent.parent;
|
|
52067
52067
|
}
|
|
52068
52068
|
const s = getSymbolOfNode(decl);
|
|
52069
52069
|
if ((_b = s == null ? void 0 : s.exports) == null ? void 0 : _b.size) {
|
|
52070
|
-
mergeSymbolTable(
|
|
52070
|
+
mergeSymbolTable(exports2, s.exports);
|
|
52071
52071
|
}
|
|
52072
|
-
const type = createAnonymousType(symbol,
|
|
52072
|
+
const type = createAnonymousType(symbol, exports2, emptyArray, emptyArray, emptyArray);
|
|
52073
52073
|
type.objectFlags |= 4096 /* JSLiteral */;
|
|
52074
52074
|
return type;
|
|
52075
52075
|
}
|
|
@@ -69034,8 +69034,8 @@ function createTypeChecker(host) {
|
|
|
69034
69034
|
}
|
|
69035
69035
|
function getJsxType(name, location) {
|
|
69036
69036
|
const namespace = getJsxNamespaceAt(location);
|
|
69037
|
-
const
|
|
69038
|
-
const typeSymbol =
|
|
69037
|
+
const exports2 = namespace && getExportsOfSymbol(namespace);
|
|
69038
|
+
const typeSymbol = exports2 && getSymbol(exports2, name, 788968 /* Type */);
|
|
69039
69039
|
return typeSymbol ? getDeclaredTypeOfSymbol(typeSymbol) : errorType;
|
|
69040
69040
|
}
|
|
69041
69041
|
function getIntrinsicTagSymbol(node) {
|
|
@@ -71859,8 +71859,8 @@ function createTypeChecker(host) {
|
|
|
71859
71859
|
}
|
|
71860
71860
|
function createSignatureForJSXIntrinsic(node, result) {
|
|
71861
71861
|
const namespace = getJsxNamespaceAt(node);
|
|
71862
|
-
const
|
|
71863
|
-
const typeSymbol =
|
|
71862
|
+
const exports2 = namespace && getExportsOfSymbol(namespace);
|
|
71863
|
+
const typeSymbol = exports2 && getSymbol(exports2, JsxNames.Element, 788968 /* Type */);
|
|
71864
71864
|
const returnNode = typeSymbol && nodeBuilder.symbolToEntityName(typeSymbol, 788968 /* Type */, node);
|
|
71865
71865
|
const declaration = factory.createFunctionTypeNode(
|
|
71866
71866
|
/*typeParameters*/
|
|
@@ -80567,9 +80567,9 @@ function createTypeChecker(host) {
|
|
|
80567
80567
|
error(declaration, Diagnostics.An_export_assignment_cannot_be_used_in_a_module_with_other_exported_elements);
|
|
80568
80568
|
}
|
|
80569
80569
|
}
|
|
80570
|
-
const
|
|
80571
|
-
if (
|
|
80572
|
-
|
|
80570
|
+
const exports2 = getExportsOfModule(moduleSymbol);
|
|
80571
|
+
if (exports2) {
|
|
80572
|
+
exports2.forEach(({ declarations, flags }, id) => {
|
|
80573
80573
|
if (id === "__export") {
|
|
80574
80574
|
return;
|
|
80575
80575
|
}
|
|
@@ -82425,8 +82425,8 @@ function createTypeChecker(host) {
|
|
|
82425
82425
|
return false;
|
|
82426
82426
|
if (importTarget === file)
|
|
82427
82427
|
return false;
|
|
82428
|
-
const
|
|
82429
|
-
for (const s of arrayFrom(
|
|
82428
|
+
const exports2 = getExportsOfModule(file.symbol);
|
|
82429
|
+
for (const s of arrayFrom(exports2.values())) {
|
|
82430
82430
|
if (s.mergeId) {
|
|
82431
82431
|
const merged = getMergedSymbol(s);
|
|
82432
82432
|
if (merged.declarations) {
|
|
@@ -105568,7 +105568,7 @@ function transformSystemModule(context) {
|
|
|
105568
105568
|
const exportStarFunction = factory2.createUniqueName("exportStar");
|
|
105569
105569
|
const m = factory2.createIdentifier("m");
|
|
105570
105570
|
const n = factory2.createIdentifier("n");
|
|
105571
|
-
const
|
|
105571
|
+
const exports2 = factory2.createIdentifier("exports");
|
|
105572
105572
|
let condition = factory2.createStrictInequality(n, factory2.createStringLiteral("default"));
|
|
105573
105573
|
if (localNames) {
|
|
105574
105574
|
condition = factory2.createLogicalAnd(
|
|
@@ -105607,7 +105607,7 @@ function transformSystemModule(context) {
|
|
|
105607
105607
|
void 0,
|
|
105608
105608
|
factory2.createVariableDeclarationList([
|
|
105609
105609
|
factory2.createVariableDeclaration(
|
|
105610
|
-
|
|
105610
|
+
exports2,
|
|
105611
105611
|
/*exclamationToken*/
|
|
105612
105612
|
void 0,
|
|
105613
105613
|
/*type*/
|
|
@@ -105627,7 +105627,7 @@ function transformSystemModule(context) {
|
|
|
105627
105627
|
condition,
|
|
105628
105628
|
factory2.createExpressionStatement(
|
|
105629
105629
|
factory2.createAssignment(
|
|
105630
|
-
factory2.createElementAccessExpression(
|
|
105630
|
+
factory2.createElementAccessExpression(exports2, n),
|
|
105631
105631
|
factory2.createElementAccessExpression(m, n)
|
|
105632
105632
|
)
|
|
105633
105633
|
)
|
|
@@ -105641,7 +105641,7 @@ function transformSystemModule(context) {
|
|
|
105641
105641
|
exportFunction,
|
|
105642
105642
|
/*typeArguments*/
|
|
105643
105643
|
void 0,
|
|
105644
|
-
[
|
|
105644
|
+
[exports2]
|
|
105645
105645
|
)
|
|
105646
105646
|
)
|
|
105647
105647
|
],
|