@@ -3179,7 +3179,7 @@ namespace ts {
31793179 result.pattern = pattern;
31803180 }
31813181 if (hasComputedProperties) {
3182- result.inObjectLiteralPatternWithComputedProperties = hasComputedProperties;
3182+ result.isObjectLiteralPatternWithComputedProperties = hasComputedProperties;
31833183 }
31843184 return result;
31853185 }
@@ -6650,7 +6650,7 @@ namespace ts {
66506650
66516651 function hasExcessProperties(source: FreshObjectLiteralType, target: Type, reportErrors: boolean): boolean {
66526652 if (maybeTypeOfKind(target, TypeFlags.ObjectType) &&
6653- (!(target.flags & TypeFlags.ObjectType) || !(target as ObjectType).inObjectLiteralPatternWithComputedProperties )) {
6653+ (!(target.flags & TypeFlags.ObjectType) || !(target as ObjectType).isObjectLiteralPatternWithComputedProperties )) {
66546654 for (const prop of getPropertiesOfObjectType(source)) {
66556655 if (!isKnownProperty(target, prop.name)) {
66566656 if (reportErrors) {
@@ -10311,7 +10311,7 @@ namespace ts {
1031110311 }
1031210312 }
1031310313 else if (contextualTypeHasPattern &&
10314- !(contextualType.flags & TypeFlags.ObjectType && (contextualType as ObjectType).inObjectLiteralPatternWithComputedProperties )) {
10314+ !(contextualType.flags & TypeFlags.ObjectType && (contextualType as ObjectType).isObjectLiteralPatternWithComputedProperties )) {
1031510315 // If object literal is contextually typed by the implied type of a binding pattern, and if the
1031610316 // binding pattern specifies a default value for the property, make the property optional.
1031710317 const impliedProp = getPropertyOfType(contextualType, member.name);
@@ -10378,7 +10378,7 @@ namespace ts {
1037810378 const freshObjectLiteralFlag = compilerOptions.suppressExcessPropertyErrors ? 0 : TypeFlags.FreshLiteral;
1037910379 result.flags |= TypeFlags.ObjectLiteral | TypeFlags.ContainsObjectLiteral | freshObjectLiteralFlag | (typeFlags & TypeFlags.PropagatingFlags);
1038010380 if (patternWithComputedProperties) {
10381- result.inObjectLiteralPatternWithComputedProperties = patternWithComputedProperties;
10381+ result.isObjectLiteralPatternWithComputedProperties = patternWithComputedProperties;
1038210382 }
1038310383 if (inDestructuringPattern) {
1038410384 result.pattern = node;
0 commit comments