@typescript-deploys/pr-build 5.4.0-pr-57122-12 → 5.4.0-pr-57133-2
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 +6 -10
- package/lib/tsserver.js +6 -10
- package/lib/typescript.js +2310 -11
- package/lib/typingsInstaller.js +1 -1
- 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 = "5.4";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20240123`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -55309,15 +55309,11 @@ function createTypeChecker(host) {
|
|
|
55309
55309
|
return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type));
|
|
55310
55310
|
}
|
|
55311
55311
|
function getResolvedApparentTypeOfMappedType(type) {
|
|
55312
|
-
const
|
|
55313
|
-
|
|
55314
|
-
|
|
55315
|
-
|
|
55316
|
-
|
|
55317
|
-
const baseConstraint = getBaseConstraintOfType(constraint.type);
|
|
55318
|
-
if (baseConstraint && everyType(baseConstraint, isArrayOrTupleType)) {
|
|
55319
|
-
return instantiateType(target, prependTypeMapping(typeVariable, baseConstraint, type.mapper));
|
|
55320
|
-
}
|
|
55312
|
+
const typeVariable = getHomomorphicTypeVariable(type);
|
|
55313
|
+
if (typeVariable && !type.declaration.nameType) {
|
|
55314
|
+
const constraint = getConstraintOfTypeParameter(typeVariable);
|
|
55315
|
+
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
55316
|
+
return instantiateType(type, prependTypeMapping(typeVariable, constraint, type.mapper));
|
|
55321
55317
|
}
|
|
55322
55318
|
}
|
|
55323
55319
|
return type;
|
package/lib/tsserver.js
CHANGED
|
@@ -2340,7 +2340,7 @@ module.exports = __toCommonJS(server_exports);
|
|
|
2340
2340
|
|
|
2341
2341
|
// src/compiler/corePublic.ts
|
|
2342
2342
|
var versionMajorMinor = "5.4";
|
|
2343
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2343
|
+
var version = `${versionMajorMinor}.0-insiders.20240123`;
|
|
2344
2344
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2345
2345
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2346
2346
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -60044,15 +60044,11 @@ function createTypeChecker(host) {
|
|
|
60044
60044
|
return type.resolvedApparentType || (type.resolvedApparentType = getResolvedApparentTypeOfMappedType(type));
|
|
60045
60045
|
}
|
|
60046
60046
|
function getResolvedApparentTypeOfMappedType(type) {
|
|
60047
|
-
const
|
|
60048
|
-
|
|
60049
|
-
|
|
60050
|
-
|
|
60051
|
-
|
|
60052
|
-
const baseConstraint = getBaseConstraintOfType(constraint.type);
|
|
60053
|
-
if (baseConstraint && everyType(baseConstraint, isArrayOrTupleType)) {
|
|
60054
|
-
return instantiateType(target, prependTypeMapping(typeVariable, baseConstraint, type.mapper));
|
|
60055
|
-
}
|
|
60047
|
+
const typeVariable = getHomomorphicTypeVariable(type);
|
|
60048
|
+
if (typeVariable && !type.declaration.nameType) {
|
|
60049
|
+
const constraint = getConstraintOfTypeParameter(typeVariable);
|
|
60050
|
+
if (constraint && everyType(constraint, isArrayOrTupleType)) {
|
|
60051
|
+
return instantiateType(type, prependTypeMapping(typeVariable, constraint, type.mapper));
|
|
60056
60052
|
}
|
|
60057
60053
|
}
|
|
60058
60054
|
return type;
|