@typescript-deploys/pr-build 5.2.0-pr-55034-8 → 5.2.0-pr-54935-17
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 +60 -19
- package/lib/tsserver.js +60 -19
- package/lib/tsserverlibrary.js +60 -19
- package/lib/typescript.js +60 -19
- package/package.json +2 -2
package/lib/tsc.js
CHANGED
|
@@ -48184,7 +48184,7 @@ function createTypeChecker(host) {
|
|
|
48184
48184
|
return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
|
|
48185
48185
|
}
|
|
48186
48186
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
48187
|
-
var _a;
|
|
48187
|
+
var _a, _b;
|
|
48188
48188
|
const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
|
|
48189
48189
|
const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
48190
48190
|
const saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -48234,17 +48234,57 @@ function createTypeChecker(host) {
|
|
|
48234
48234
|
context.reverseMappedStack.pop();
|
|
48235
48235
|
}
|
|
48236
48236
|
}
|
|
48237
|
-
|
|
48238
|
-
|
|
48239
|
-
|
|
48237
|
+
if (propertySymbol.flags & 98304 /* Accessor */) {
|
|
48238
|
+
if (propertySymbol.flags & 32768 /* GetAccessor */) {
|
|
48239
|
+
const getAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 177 /* GetAccessor */);
|
|
48240
|
+
const getAccessorSignature = factory.createGetAccessorDeclaration(
|
|
48241
|
+
/*modifiers*/
|
|
48242
|
+
void 0,
|
|
48243
|
+
propertyName,
|
|
48244
|
+
[],
|
|
48245
|
+
propertyTypeNode,
|
|
48246
|
+
/*body*/
|
|
48247
|
+
void 0
|
|
48248
|
+
);
|
|
48249
|
+
setCommentRange(getAccessorSignature, getAccessorDecl);
|
|
48250
|
+
typeElements.push(getAccessorSignature);
|
|
48251
|
+
}
|
|
48252
|
+
if (propertySymbol.flags & 65536 /* SetAccessor */) {
|
|
48253
|
+
const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
|
|
48254
|
+
const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
|
|
48255
|
+
const setAccessorSignature = factory.createSetAccessorDeclaration(
|
|
48256
|
+
/*modifiers*/
|
|
48257
|
+
void 0,
|
|
48258
|
+
propertyName,
|
|
48259
|
+
[factory.createParameterDeclaration(
|
|
48260
|
+
/*modifiers*/
|
|
48261
|
+
void 0,
|
|
48262
|
+
/*dotDotDotToken*/
|
|
48263
|
+
void 0,
|
|
48264
|
+
parameterName,
|
|
48265
|
+
/*questionToken*/
|
|
48266
|
+
void 0,
|
|
48267
|
+
propertyTypeNode
|
|
48268
|
+
)],
|
|
48269
|
+
/*body*/
|
|
48270
|
+
void 0
|
|
48271
|
+
);
|
|
48272
|
+
setCommentRange(setAccessorSignature, setAccessorDecl);
|
|
48273
|
+
typeElements.push(setAccessorSignature);
|
|
48274
|
+
}
|
|
48275
|
+
} else {
|
|
48276
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
48277
|
+
if (modifiers) {
|
|
48278
|
+
context.approximateLength += 9;
|
|
48279
|
+
}
|
|
48280
|
+
const propertySignature = factory.createPropertySignature(
|
|
48281
|
+
modifiers,
|
|
48282
|
+
propertyName,
|
|
48283
|
+
optionalToken,
|
|
48284
|
+
propertyTypeNode
|
|
48285
|
+
);
|
|
48286
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
48240
48287
|
}
|
|
48241
|
-
const propertySignature = factory.createPropertySignature(
|
|
48242
|
-
modifiers,
|
|
48243
|
-
propertyName,
|
|
48244
|
-
optionalToken,
|
|
48245
|
-
propertyTypeNode
|
|
48246
|
-
);
|
|
48247
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
48248
48288
|
function preserveCommentsOn(node) {
|
|
48249
48289
|
var _a2;
|
|
48250
48290
|
if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
|
|
@@ -63012,12 +63052,7 @@ function createTypeChecker(host) {
|
|
|
63012
63052
|
callback(getTypeAtPosition(source, i), getTypeAtPosition(target, i));
|
|
63013
63053
|
}
|
|
63014
63054
|
if (targetRestType) {
|
|
63015
|
-
callback(getRestTypeAtPosition(
|
|
63016
|
-
source,
|
|
63017
|
-
paramCount,
|
|
63018
|
-
/*readonly*/
|
|
63019
|
-
isConstTypeVariable(targetRestType)
|
|
63020
|
-
), targetRestType);
|
|
63055
|
+
callback(getRestTypeAtPosition(source, paramCount), targetRestType);
|
|
63021
63056
|
}
|
|
63022
63057
|
}
|
|
63023
63058
|
function applyToReturnTypes(source, target, callback) {
|
|
@@ -72122,7 +72157,7 @@ function createTypeChecker(host) {
|
|
|
72122
72157
|
}
|
|
72123
72158
|
return void 0;
|
|
72124
72159
|
}
|
|
72125
|
-
function getRestTypeAtPosition(source, pos
|
|
72160
|
+
function getRestTypeAtPosition(source, pos) {
|
|
72126
72161
|
const parameterCount = getParameterCount(source);
|
|
72127
72162
|
const minArgumentCount = getMinArgumentCount(source);
|
|
72128
72163
|
const restType = getEffectiveRestType(source);
|
|
@@ -72145,7 +72180,13 @@ function createTypeChecker(host) {
|
|
|
72145
72180
|
names.push(name);
|
|
72146
72181
|
}
|
|
72147
72182
|
}
|
|
72148
|
-
return createTupleType(
|
|
72183
|
+
return createTupleType(
|
|
72184
|
+
types,
|
|
72185
|
+
flags,
|
|
72186
|
+
/*readonly*/
|
|
72187
|
+
false,
|
|
72188
|
+
length(names) === length(types) ? names : void 0
|
|
72189
|
+
);
|
|
72149
72190
|
}
|
|
72150
72191
|
function getParameterCount(signature) {
|
|
72151
72192
|
const length2 = signature.parameters.length;
|
package/lib/tsserver.js
CHANGED
|
@@ -52891,7 +52891,7 @@ function createTypeChecker(host) {
|
|
|
52891
52891
|
return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
|
|
52892
52892
|
}
|
|
52893
52893
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
52894
|
-
var _a;
|
|
52894
|
+
var _a, _b;
|
|
52895
52895
|
const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
|
|
52896
52896
|
const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
52897
52897
|
const saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -52941,17 +52941,57 @@ function createTypeChecker(host) {
|
|
|
52941
52941
|
context.reverseMappedStack.pop();
|
|
52942
52942
|
}
|
|
52943
52943
|
}
|
|
52944
|
-
|
|
52945
|
-
|
|
52946
|
-
|
|
52944
|
+
if (propertySymbol.flags & 98304 /* Accessor */) {
|
|
52945
|
+
if (propertySymbol.flags & 32768 /* GetAccessor */) {
|
|
52946
|
+
const getAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 177 /* GetAccessor */);
|
|
52947
|
+
const getAccessorSignature = factory.createGetAccessorDeclaration(
|
|
52948
|
+
/*modifiers*/
|
|
52949
|
+
void 0,
|
|
52950
|
+
propertyName,
|
|
52951
|
+
[],
|
|
52952
|
+
propertyTypeNode,
|
|
52953
|
+
/*body*/
|
|
52954
|
+
void 0
|
|
52955
|
+
);
|
|
52956
|
+
setCommentRange(getAccessorSignature, getAccessorDecl);
|
|
52957
|
+
typeElements.push(getAccessorSignature);
|
|
52958
|
+
}
|
|
52959
|
+
if (propertySymbol.flags & 65536 /* SetAccessor */) {
|
|
52960
|
+
const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
|
|
52961
|
+
const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
|
|
52962
|
+
const setAccessorSignature = factory.createSetAccessorDeclaration(
|
|
52963
|
+
/*modifiers*/
|
|
52964
|
+
void 0,
|
|
52965
|
+
propertyName,
|
|
52966
|
+
[factory.createParameterDeclaration(
|
|
52967
|
+
/*modifiers*/
|
|
52968
|
+
void 0,
|
|
52969
|
+
/*dotDotDotToken*/
|
|
52970
|
+
void 0,
|
|
52971
|
+
parameterName,
|
|
52972
|
+
/*questionToken*/
|
|
52973
|
+
void 0,
|
|
52974
|
+
propertyTypeNode
|
|
52975
|
+
)],
|
|
52976
|
+
/*body*/
|
|
52977
|
+
void 0
|
|
52978
|
+
);
|
|
52979
|
+
setCommentRange(setAccessorSignature, setAccessorDecl);
|
|
52980
|
+
typeElements.push(setAccessorSignature);
|
|
52981
|
+
}
|
|
52982
|
+
} else {
|
|
52983
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
52984
|
+
if (modifiers) {
|
|
52985
|
+
context.approximateLength += 9;
|
|
52986
|
+
}
|
|
52987
|
+
const propertySignature = factory.createPropertySignature(
|
|
52988
|
+
modifiers,
|
|
52989
|
+
propertyName,
|
|
52990
|
+
optionalToken,
|
|
52991
|
+
propertyTypeNode
|
|
52992
|
+
);
|
|
52993
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
52947
52994
|
}
|
|
52948
|
-
const propertySignature = factory.createPropertySignature(
|
|
52949
|
-
modifiers,
|
|
52950
|
-
propertyName,
|
|
52951
|
-
optionalToken,
|
|
52952
|
-
propertyTypeNode
|
|
52953
|
-
);
|
|
52954
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
52955
52995
|
function preserveCommentsOn(node) {
|
|
52956
52996
|
var _a2;
|
|
52957
52997
|
if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
|
|
@@ -67719,12 +67759,7 @@ function createTypeChecker(host) {
|
|
|
67719
67759
|
callback(getTypeAtPosition(source, i), getTypeAtPosition(target, i));
|
|
67720
67760
|
}
|
|
67721
67761
|
if (targetRestType) {
|
|
67722
|
-
callback(getRestTypeAtPosition(
|
|
67723
|
-
source,
|
|
67724
|
-
paramCount,
|
|
67725
|
-
/*readonly*/
|
|
67726
|
-
isConstTypeVariable(targetRestType)
|
|
67727
|
-
), targetRestType);
|
|
67762
|
+
callback(getRestTypeAtPosition(source, paramCount), targetRestType);
|
|
67728
67763
|
}
|
|
67729
67764
|
}
|
|
67730
67765
|
function applyToReturnTypes(source, target, callback) {
|
|
@@ -76829,7 +76864,7 @@ function createTypeChecker(host) {
|
|
|
76829
76864
|
}
|
|
76830
76865
|
return void 0;
|
|
76831
76866
|
}
|
|
76832
|
-
function getRestTypeAtPosition(source, pos
|
|
76867
|
+
function getRestTypeAtPosition(source, pos) {
|
|
76833
76868
|
const parameterCount = getParameterCount(source);
|
|
76834
76869
|
const minArgumentCount = getMinArgumentCount(source);
|
|
76835
76870
|
const restType = getEffectiveRestType(source);
|
|
@@ -76852,7 +76887,13 @@ function createTypeChecker(host) {
|
|
|
76852
76887
|
names.push(name);
|
|
76853
76888
|
}
|
|
76854
76889
|
}
|
|
76855
|
-
return createTupleType(
|
|
76890
|
+
return createTupleType(
|
|
76891
|
+
types,
|
|
76892
|
+
flags,
|
|
76893
|
+
/*readonly*/
|
|
76894
|
+
false,
|
|
76895
|
+
length(names) === length(types) ? names : void 0
|
|
76896
|
+
);
|
|
76856
76897
|
}
|
|
76857
76898
|
function getParameterCount(signature) {
|
|
76858
76899
|
const length2 = signature.parameters.length;
|
package/lib/tsserverlibrary.js
CHANGED
|
@@ -50658,7 +50658,7 @@ ${lanes.join("\n")}
|
|
|
50658
50658
|
return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
|
|
50659
50659
|
}
|
|
50660
50660
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
50661
|
-
var _a;
|
|
50661
|
+
var _a, _b;
|
|
50662
50662
|
const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
|
|
50663
50663
|
const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
50664
50664
|
const saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -50708,17 +50708,57 @@ ${lanes.join("\n")}
|
|
|
50708
50708
|
context.reverseMappedStack.pop();
|
|
50709
50709
|
}
|
|
50710
50710
|
}
|
|
50711
|
-
|
|
50712
|
-
|
|
50713
|
-
|
|
50711
|
+
if (propertySymbol.flags & 98304 /* Accessor */) {
|
|
50712
|
+
if (propertySymbol.flags & 32768 /* GetAccessor */) {
|
|
50713
|
+
const getAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 177 /* GetAccessor */);
|
|
50714
|
+
const getAccessorSignature = factory.createGetAccessorDeclaration(
|
|
50715
|
+
/*modifiers*/
|
|
50716
|
+
void 0,
|
|
50717
|
+
propertyName,
|
|
50718
|
+
[],
|
|
50719
|
+
propertyTypeNode,
|
|
50720
|
+
/*body*/
|
|
50721
|
+
void 0
|
|
50722
|
+
);
|
|
50723
|
+
setCommentRange(getAccessorSignature, getAccessorDecl);
|
|
50724
|
+
typeElements.push(getAccessorSignature);
|
|
50725
|
+
}
|
|
50726
|
+
if (propertySymbol.flags & 65536 /* SetAccessor */) {
|
|
50727
|
+
const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
|
|
50728
|
+
const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
|
|
50729
|
+
const setAccessorSignature = factory.createSetAccessorDeclaration(
|
|
50730
|
+
/*modifiers*/
|
|
50731
|
+
void 0,
|
|
50732
|
+
propertyName,
|
|
50733
|
+
[factory.createParameterDeclaration(
|
|
50734
|
+
/*modifiers*/
|
|
50735
|
+
void 0,
|
|
50736
|
+
/*dotDotDotToken*/
|
|
50737
|
+
void 0,
|
|
50738
|
+
parameterName,
|
|
50739
|
+
/*questionToken*/
|
|
50740
|
+
void 0,
|
|
50741
|
+
propertyTypeNode
|
|
50742
|
+
)],
|
|
50743
|
+
/*body*/
|
|
50744
|
+
void 0
|
|
50745
|
+
);
|
|
50746
|
+
setCommentRange(setAccessorSignature, setAccessorDecl);
|
|
50747
|
+
typeElements.push(setAccessorSignature);
|
|
50748
|
+
}
|
|
50749
|
+
} else {
|
|
50750
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
50751
|
+
if (modifiers) {
|
|
50752
|
+
context.approximateLength += 9;
|
|
50753
|
+
}
|
|
50754
|
+
const propertySignature = factory.createPropertySignature(
|
|
50755
|
+
modifiers,
|
|
50756
|
+
propertyName,
|
|
50757
|
+
optionalToken,
|
|
50758
|
+
propertyTypeNode
|
|
50759
|
+
);
|
|
50760
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50714
50761
|
}
|
|
50715
|
-
const propertySignature = factory.createPropertySignature(
|
|
50716
|
-
modifiers,
|
|
50717
|
-
propertyName,
|
|
50718
|
-
optionalToken,
|
|
50719
|
-
propertyTypeNode
|
|
50720
|
-
);
|
|
50721
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50722
50762
|
function preserveCommentsOn(node) {
|
|
50723
50763
|
var _a2;
|
|
50724
50764
|
if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
|
|
@@ -65486,12 +65526,7 @@ ${lanes.join("\n")}
|
|
|
65486
65526
|
callback(getTypeAtPosition(source, i), getTypeAtPosition(target, i));
|
|
65487
65527
|
}
|
|
65488
65528
|
if (targetRestType) {
|
|
65489
|
-
callback(getRestTypeAtPosition(
|
|
65490
|
-
source,
|
|
65491
|
-
paramCount,
|
|
65492
|
-
/*readonly*/
|
|
65493
|
-
isConstTypeVariable(targetRestType)
|
|
65494
|
-
), targetRestType);
|
|
65529
|
+
callback(getRestTypeAtPosition(source, paramCount), targetRestType);
|
|
65495
65530
|
}
|
|
65496
65531
|
}
|
|
65497
65532
|
function applyToReturnTypes(source, target, callback) {
|
|
@@ -74596,7 +74631,7 @@ ${lanes.join("\n")}
|
|
|
74596
74631
|
}
|
|
74597
74632
|
return void 0;
|
|
74598
74633
|
}
|
|
74599
|
-
function getRestTypeAtPosition(source, pos
|
|
74634
|
+
function getRestTypeAtPosition(source, pos) {
|
|
74600
74635
|
const parameterCount = getParameterCount(source);
|
|
74601
74636
|
const minArgumentCount = getMinArgumentCount(source);
|
|
74602
74637
|
const restType = getEffectiveRestType(source);
|
|
@@ -74619,7 +74654,13 @@ ${lanes.join("\n")}
|
|
|
74619
74654
|
names.push(name);
|
|
74620
74655
|
}
|
|
74621
74656
|
}
|
|
74622
|
-
return createTupleType(
|
|
74657
|
+
return createTupleType(
|
|
74658
|
+
types,
|
|
74659
|
+
flags,
|
|
74660
|
+
/*readonly*/
|
|
74661
|
+
false,
|
|
74662
|
+
length(names) === length(types) ? names : void 0
|
|
74663
|
+
);
|
|
74623
74664
|
}
|
|
74624
74665
|
function getParameterCount(signature) {
|
|
74625
74666
|
const length2 = signature.parameters.length;
|
package/lib/typescript.js
CHANGED
|
@@ -50658,7 +50658,7 @@ ${lanes.join("\n")}
|
|
|
50658
50658
|
return !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */) && (contains(context.reverseMappedStack, propertySymbol) || ((_a = context.reverseMappedStack) == null ? void 0 : _a[0]) && !(getObjectFlags(last(context.reverseMappedStack).links.propertyType) & 16 /* Anonymous */));
|
|
50659
50659
|
}
|
|
50660
50660
|
function addPropertyToElementList(propertySymbol, context, typeElements) {
|
|
50661
|
-
var _a;
|
|
50661
|
+
var _a, _b;
|
|
50662
50662
|
const propertyIsReverseMapped = !!(getCheckFlags(propertySymbol) & 8192 /* ReverseMapped */);
|
|
50663
50663
|
const propertyType = shouldUsePlaceholderForProperty(propertySymbol, context) ? anyType : getNonMissingTypeOfSymbol(propertySymbol);
|
|
50664
50664
|
const saveEnclosingDeclaration = context.enclosingDeclaration;
|
|
@@ -50708,17 +50708,57 @@ ${lanes.join("\n")}
|
|
|
50708
50708
|
context.reverseMappedStack.pop();
|
|
50709
50709
|
}
|
|
50710
50710
|
}
|
|
50711
|
-
|
|
50712
|
-
|
|
50713
|
-
|
|
50711
|
+
if (propertySymbol.flags & 98304 /* Accessor */) {
|
|
50712
|
+
if (propertySymbol.flags & 32768 /* GetAccessor */) {
|
|
50713
|
+
const getAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 177 /* GetAccessor */);
|
|
50714
|
+
const getAccessorSignature = factory.createGetAccessorDeclaration(
|
|
50715
|
+
/*modifiers*/
|
|
50716
|
+
void 0,
|
|
50717
|
+
propertyName,
|
|
50718
|
+
[],
|
|
50719
|
+
propertyTypeNode,
|
|
50720
|
+
/*body*/
|
|
50721
|
+
void 0
|
|
50722
|
+
);
|
|
50723
|
+
setCommentRange(getAccessorSignature, getAccessorDecl);
|
|
50724
|
+
typeElements.push(getAccessorSignature);
|
|
50725
|
+
}
|
|
50726
|
+
if (propertySymbol.flags & 65536 /* SetAccessor */) {
|
|
50727
|
+
const setAccessorDecl = find(propertySymbol.declarations, (decl) => decl.kind === 178 /* SetAccessor */);
|
|
50728
|
+
const parameterName = ((_b = setAccessorDecl == null ? void 0 : setAccessorDecl.parameters) == null ? void 0 : _b.length) > 0 ? setAccessorDecl.parameters[0].name : "arg";
|
|
50729
|
+
const setAccessorSignature = factory.createSetAccessorDeclaration(
|
|
50730
|
+
/*modifiers*/
|
|
50731
|
+
void 0,
|
|
50732
|
+
propertyName,
|
|
50733
|
+
[factory.createParameterDeclaration(
|
|
50734
|
+
/*modifiers*/
|
|
50735
|
+
void 0,
|
|
50736
|
+
/*dotDotDotToken*/
|
|
50737
|
+
void 0,
|
|
50738
|
+
parameterName,
|
|
50739
|
+
/*questionToken*/
|
|
50740
|
+
void 0,
|
|
50741
|
+
propertyTypeNode
|
|
50742
|
+
)],
|
|
50743
|
+
/*body*/
|
|
50744
|
+
void 0
|
|
50745
|
+
);
|
|
50746
|
+
setCommentRange(setAccessorSignature, setAccessorDecl);
|
|
50747
|
+
typeElements.push(setAccessorSignature);
|
|
50748
|
+
}
|
|
50749
|
+
} else {
|
|
50750
|
+
const modifiers = isReadonlySymbol(propertySymbol) ? [factory.createToken(148 /* ReadonlyKeyword */)] : void 0;
|
|
50751
|
+
if (modifiers) {
|
|
50752
|
+
context.approximateLength += 9;
|
|
50753
|
+
}
|
|
50754
|
+
const propertySignature = factory.createPropertySignature(
|
|
50755
|
+
modifiers,
|
|
50756
|
+
propertyName,
|
|
50757
|
+
optionalToken,
|
|
50758
|
+
propertyTypeNode
|
|
50759
|
+
);
|
|
50760
|
+
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50714
50761
|
}
|
|
50715
|
-
const propertySignature = factory.createPropertySignature(
|
|
50716
|
-
modifiers,
|
|
50717
|
-
propertyName,
|
|
50718
|
-
optionalToken,
|
|
50719
|
-
propertyTypeNode
|
|
50720
|
-
);
|
|
50721
|
-
typeElements.push(preserveCommentsOn(propertySignature));
|
|
50722
50762
|
function preserveCommentsOn(node) {
|
|
50723
50763
|
var _a2;
|
|
50724
50764
|
if (some(propertySymbol.declarations, (d) => d.kind === 355 /* JSDocPropertyTag */)) {
|
|
@@ -65486,12 +65526,7 @@ ${lanes.join("\n")}
|
|
|
65486
65526
|
callback(getTypeAtPosition(source, i), getTypeAtPosition(target, i));
|
|
65487
65527
|
}
|
|
65488
65528
|
if (targetRestType) {
|
|
65489
|
-
callback(getRestTypeAtPosition(
|
|
65490
|
-
source,
|
|
65491
|
-
paramCount,
|
|
65492
|
-
/*readonly*/
|
|
65493
|
-
isConstTypeVariable(targetRestType)
|
|
65494
|
-
), targetRestType);
|
|
65529
|
+
callback(getRestTypeAtPosition(source, paramCount), targetRestType);
|
|
65495
65530
|
}
|
|
65496
65531
|
}
|
|
65497
65532
|
function applyToReturnTypes(source, target, callback) {
|
|
@@ -74596,7 +74631,7 @@ ${lanes.join("\n")}
|
|
|
74596
74631
|
}
|
|
74597
74632
|
return void 0;
|
|
74598
74633
|
}
|
|
74599
|
-
function getRestTypeAtPosition(source, pos
|
|
74634
|
+
function getRestTypeAtPosition(source, pos) {
|
|
74600
74635
|
const parameterCount = getParameterCount(source);
|
|
74601
74636
|
const minArgumentCount = getMinArgumentCount(source);
|
|
74602
74637
|
const restType = getEffectiveRestType(source);
|
|
@@ -74619,7 +74654,13 @@ ${lanes.join("\n")}
|
|
|
74619
74654
|
names.push(name);
|
|
74620
74655
|
}
|
|
74621
74656
|
}
|
|
74622
|
-
return createTupleType(
|
|
74657
|
+
return createTupleType(
|
|
74658
|
+
types,
|
|
74659
|
+
flags,
|
|
74660
|
+
/*readonly*/
|
|
74661
|
+
false,
|
|
74662
|
+
length(names) === length(types) ? names : void 0
|
|
74663
|
+
);
|
|
74623
74664
|
}
|
|
74624
74665
|
function getParameterCount(signature) {
|
|
74625
74666
|
const length2 = signature.parameters.length;
|
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.2.0-pr-
|
|
5
|
+
"version": "5.2.0-pr-54935-17",
|
|
6
6
|
"license": "Apache-2.0",
|
|
7
7
|
"description": "TypeScript is a language for application scale JavaScript development",
|
|
8
8
|
"keywords": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"node": "20.1.0",
|
|
115
115
|
"npm": "8.19.4"
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "97fed5392059d7b43492184c2a4b7fc2f5b764a8"
|
|
118
118
|
}
|