@typescript-deploys/pr-build 5.8.0-pr-60454-3 → 5.8.0-pr-60898-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 +4 -11
- package/lib/typescript.d.ts +1 -0
- package/lib/typescript.js +24 -23
- package/package.json +1 -1
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.8";
|
|
21
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
21
|
+
var version = `${versionMajorMinor}.0-insiders.20250118`;
|
|
22
22
|
|
|
23
23
|
// src/compiler/core.ts
|
|
24
24
|
var emptyArray = [];
|
|
@@ -18875,7 +18875,7 @@ function isValidBigIntString(s, roundTripOnly) {
|
|
|
18875
18875
|
return success && result === 10 /* BigIntLiteral */ && scanner.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner.getTokenValue()) }));
|
|
18876
18876
|
}
|
|
18877
18877
|
function isValidTypeOnlyAliasUseSite(useSite) {
|
|
18878
|
-
return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
|
|
18878
|
+
return !!(useSite.flags & 33554432 /* Ambient */) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
|
|
18879
18879
|
}
|
|
18880
18880
|
function isShorthandPropertyNameUseSite(useSite) {
|
|
18881
18881
|
return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;
|
|
@@ -35209,6 +35209,7 @@ var Parser;
|
|
|
35209
35209
|
const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
|
|
35210
35210
|
const res = finishNode(node, pos);
|
|
35211
35211
|
if (usedBrace) {
|
|
35212
|
+
skipWhitespace();
|
|
35212
35213
|
parseExpected(20 /* CloseBraceToken */);
|
|
35213
35214
|
}
|
|
35214
35215
|
return res;
|
|
@@ -46455,6 +46456,7 @@ function createTypeChecker(host) {
|
|
|
46455
46456
|
getNumberLiteralType,
|
|
46456
46457
|
getBigIntType: () => bigintType,
|
|
46457
46458
|
getBigIntLiteralType,
|
|
46459
|
+
getUnknownType: () => unknownType,
|
|
46458
46460
|
createPromiseType,
|
|
46459
46461
|
createArrayType,
|
|
46460
46462
|
getElementTypeOfArrayType,
|
|
@@ -73123,7 +73125,6 @@ function createTypeChecker(host) {
|
|
|
73123
73125
|
return links.immediateTarget;
|
|
73124
73126
|
}
|
|
73125
73127
|
function checkObjectLiteral(node, checkMode = 0 /* Normal */) {
|
|
73126
|
-
var _a;
|
|
73127
73128
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
73128
73129
|
checkGrammarObjectLiteralExpression(node, inDestructuringPattern);
|
|
73129
73130
|
const allPropertiesTable = strictNullChecks ? createSymbolTable() : void 0;
|
|
@@ -73197,14 +73198,6 @@ function createTypeChecker(host) {
|
|
|
73197
73198
|
prop.links.target = member;
|
|
73198
73199
|
member = prop;
|
|
73199
73200
|
allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);
|
|
73200
|
-
if (contextualType) {
|
|
73201
|
-
forEach((_a = getPropertyOfType(contextualType, member.escapedName)) == null ? void 0 : _a.declarations, (declaration) => {
|
|
73202
|
-
const symbol = getSymbolOfDeclaration(declaration);
|
|
73203
|
-
if (isDeprecatedSymbol(symbol) && symbol.declarations && isTypeAssignableTo(type, getTypeOfSymbol(symbol))) {
|
|
73204
|
-
addDeprecatedSuggestion(memberDecl.name, symbol.declarations, member.escapedName);
|
|
73205
|
-
}
|
|
73206
|
-
});
|
|
73207
|
-
}
|
|
73208
73201
|
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) {
|
|
73209
73202
|
const inferenceContext = getInferenceContext(node);
|
|
73210
73203
|
Debug.assert(inferenceContext);
|
package/lib/typescript.d.ts
CHANGED
|
@@ -6288,6 +6288,7 @@ declare namespace ts {
|
|
|
6288
6288
|
getBigIntType(): Type;
|
|
6289
6289
|
getBigIntLiteralType(value: PseudoBigInt): BigIntLiteralType;
|
|
6290
6290
|
getBooleanType(): Type;
|
|
6291
|
+
getUnknownType(): Type;
|
|
6291
6292
|
getFalseType(): Type;
|
|
6292
6293
|
getTrueType(): Type;
|
|
6293
6294
|
getVoidType(): Type;
|
package/lib/typescript.js
CHANGED
|
@@ -2285,7 +2285,7 @@ module.exports = __toCommonJS(typescript_exports);
|
|
|
2285
2285
|
|
|
2286
2286
|
// src/compiler/corePublic.ts
|
|
2287
2287
|
var versionMajorMinor = "5.8";
|
|
2288
|
-
var version = `${versionMajorMinor}.0-insiders.
|
|
2288
|
+
var version = `${versionMajorMinor}.0-insiders.20250118`;
|
|
2289
2289
|
var Comparison = /* @__PURE__ */ ((Comparison3) => {
|
|
2290
2290
|
Comparison3[Comparison3["LessThan"] = -1] = "LessThan";
|
|
2291
2291
|
Comparison3[Comparison3["EqualTo"] = 0] = "EqualTo";
|
|
@@ -22865,7 +22865,7 @@ function isValidBigIntString(s, roundTripOnly) {
|
|
|
22865
22865
|
return success && result === 10 /* BigIntLiteral */ && scanner2.getTokenEnd() === s.length + 1 && !(flags & 512 /* ContainsSeparator */) && (!roundTripOnly || s === pseudoBigIntToString({ negative, base10Value: parsePseudoBigInt(scanner2.getTokenValue()) }));
|
|
22866
22866
|
}
|
|
22867
22867
|
function isValidTypeOnlyAliasUseSite(useSite) {
|
|
22868
|
-
return !!(useSite.flags & 33554432 /* Ambient */) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
|
|
22868
|
+
return !!(useSite.flags & 33554432 /* Ambient */) || isInJSDoc(useSite) || isPartOfTypeQuery(useSite) || isIdentifierInNonEmittingHeritageClause(useSite) || isPartOfPossiblyValidTypeOrAbstractComputedPropertyName(useSite) || !(isExpressionNode(useSite) || isShorthandPropertyNameUseSite(useSite));
|
|
22869
22869
|
}
|
|
22870
22870
|
function isShorthandPropertyNameUseSite(useSite) {
|
|
22871
22871
|
return isIdentifier(useSite) && isShorthandPropertyAssignment(useSite.parent) && useSite.parent.name === useSite;
|
|
@@ -39469,6 +39469,7 @@ var Parser;
|
|
|
39469
39469
|
const node = factory2.createExpressionWithTypeArguments(expression, typeArguments);
|
|
39470
39470
|
const res = finishNode(node, pos);
|
|
39471
39471
|
if (usedBrace) {
|
|
39472
|
+
skipWhitespace();
|
|
39472
39473
|
parseExpected(20 /* CloseBraceToken */);
|
|
39473
39474
|
}
|
|
39474
39475
|
return res;
|
|
@@ -51065,6 +51066,7 @@ function createTypeChecker(host) {
|
|
|
51065
51066
|
getNumberLiteralType,
|
|
51066
51067
|
getBigIntType: () => bigintType,
|
|
51067
51068
|
getBigIntLiteralType,
|
|
51069
|
+
getUnknownType: () => unknownType,
|
|
51068
51070
|
createPromiseType,
|
|
51069
51071
|
createArrayType,
|
|
51070
51072
|
getElementTypeOfArrayType,
|
|
@@ -77733,7 +77735,6 @@ function createTypeChecker(host) {
|
|
|
77733
77735
|
return links.immediateTarget;
|
|
77734
77736
|
}
|
|
77735
77737
|
function checkObjectLiteral(node, checkMode = 0 /* Normal */) {
|
|
77736
|
-
var _a;
|
|
77737
77738
|
const inDestructuringPattern = isAssignmentTarget(node);
|
|
77738
77739
|
checkGrammarObjectLiteralExpression(node, inDestructuringPattern);
|
|
77739
77740
|
const allPropertiesTable = strictNullChecks ? createSymbolTable() : void 0;
|
|
@@ -77807,14 +77808,6 @@ function createTypeChecker(host) {
|
|
|
77807
77808
|
prop.links.target = member;
|
|
77808
77809
|
member = prop;
|
|
77809
77810
|
allPropertiesTable == null ? void 0 : allPropertiesTable.set(prop.escapedName, prop);
|
|
77810
|
-
if (contextualType) {
|
|
77811
|
-
forEach((_a = getPropertyOfType(contextualType, member.escapedName)) == null ? void 0 : _a.declarations, (declaration) => {
|
|
77812
|
-
const symbol = getSymbolOfDeclaration(declaration);
|
|
77813
|
-
if (isDeprecatedSymbol(symbol) && symbol.declarations && isTypeAssignableTo(type, getTypeOfSymbol(symbol))) {
|
|
77814
|
-
addDeprecatedSuggestion(memberDecl.name, symbol.declarations, member.escapedName);
|
|
77815
|
-
}
|
|
77816
|
-
});
|
|
77817
|
-
}
|
|
77818
77811
|
if (contextualType && checkMode & 2 /* Inferential */ && !(checkMode & 4 /* SkipContextSensitive */) && (memberDecl.kind === 303 /* PropertyAssignment */ || memberDecl.kind === 174 /* MethodDeclaration */) && isContextSensitive(memberDecl)) {
|
|
77819
77812
|
const inferenceContext = getInferenceContext(node);
|
|
77820
77813
|
Debug.assert(inferenceContext);
|
|
@@ -173135,7 +173128,7 @@ var Core;
|
|
|
173135
173128
|
} else {
|
|
173136
173129
|
addIfImplementation(body);
|
|
173137
173130
|
}
|
|
173138
|
-
} else if (isAssertionExpression(typeHavingNode)) {
|
|
173131
|
+
} else if (isAssertionExpression(typeHavingNode) || isSatisfiesExpression(typeHavingNode)) {
|
|
173139
173132
|
addIfImplementation(typeHavingNode.expression);
|
|
173140
173133
|
}
|
|
173141
173134
|
}
|
|
@@ -174367,22 +174360,24 @@ function provideInlayHints(context) {
|
|
|
174367
174360
|
if (!signature) {
|
|
174368
174361
|
return;
|
|
174369
174362
|
}
|
|
174370
|
-
|
|
174371
|
-
|
|
174372
|
-
if (
|
|
174373
|
-
|
|
174374
|
-
}
|
|
174375
|
-
const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(param);
|
|
174376
|
-
if (effectiveTypeAnnotation) {
|
|
174377
|
-
continue;
|
|
174363
|
+
let pos = 0;
|
|
174364
|
+
for (const param of node.parameters) {
|
|
174365
|
+
if (isHintableDeclaration(param)) {
|
|
174366
|
+
addParameterTypeHint(param, parameterIsThisKeyword(param) ? signature.thisParameter : signature.parameters[pos]);
|
|
174378
174367
|
}
|
|
174379
|
-
|
|
174380
|
-
if (!typeHints) {
|
|
174368
|
+
if (parameterIsThisKeyword(param)) {
|
|
174381
174369
|
continue;
|
|
174382
174370
|
}
|
|
174383
|
-
|
|
174371
|
+
pos++;
|
|
174384
174372
|
}
|
|
174385
174373
|
}
|
|
174374
|
+
function addParameterTypeHint(node, symbol) {
|
|
174375
|
+
const effectiveTypeAnnotation = getEffectiveTypeAnnotationNode(node);
|
|
174376
|
+
if (effectiveTypeAnnotation || symbol === void 0) return;
|
|
174377
|
+
const typeHints = getParameterDeclarationTypeHints(symbol);
|
|
174378
|
+
if (typeHints === void 0) return;
|
|
174379
|
+
addTypeHints(typeHints, node.questionToken ? node.questionToken.end : node.name.end);
|
|
174380
|
+
}
|
|
174386
174381
|
function getParameterDeclarationTypeHints(symbol) {
|
|
174387
174382
|
const valueDeclaration = symbol.valueDeclaration;
|
|
174388
174383
|
if (!valueDeclaration || !isParameter(valueDeclaration)) {
|
|
@@ -182189,6 +182184,12 @@ var SmartIndenter;
|
|
|
182189
182184
|
return false;
|
|
182190
182185
|
}
|
|
182191
182186
|
break;
|
|
182187
|
+
case 258 /* TryStatement */:
|
|
182188
|
+
const tryStatement = parent2;
|
|
182189
|
+
if (tryStatement.finallyBlock && tryStatement.finallyBlock === child) {
|
|
182190
|
+
return false;
|
|
182191
|
+
}
|
|
182192
|
+
break;
|
|
182192
182193
|
}
|
|
182193
182194
|
return indentByDefault;
|
|
182194
182195
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@typescript-deploys/pr-build",
|
|
3
3
|
"author": "Microsoft Corp.",
|
|
4
4
|
"homepage": "https://www.typescriptlang.org/",
|
|
5
|
-
"version": "5.8.0-pr-
|
|
5
|
+
"version": "5.8.0-pr-60898-2",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|