Skip to content

Commit 6896a11

Browse files
authored
Add code 2561 to known errors (#205)
1 parent 0d3756f commit 6896a11

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

source/lib/compiler.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ const expectErrorDiagnosticCodesToIgnore = new Set<DiagnosticCode>([
4444
DiagnosticCode.MemberMustHaveOverrideModifier,
4545
DiagnosticCode.StringLiteralTypeIsNotAssignableToUnionTypeWithSuggestion,
4646
DiagnosticCode.ObjectLiteralMayOnlySpecifyKnownProperties,
47+
DiagnosticCode.ObjectLiteralMayOnlySpecifyKnownProperties2,
4748
]);
4849

4950
type IgnoreDiagnosticResult = 'preserve' | 'ignore' | Location;

source/lib/interfaces.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ export enum DiagnosticCode {
4040
OnlyVoidFunctionIsNewCallable = 2350,
4141
ExpressionNotConstructable = 2351,
4242
ObjectLiteralMayOnlySpecifyKnownProperties = 2353,
43+
ObjectLiteralMayOnlySpecifyKnownProperties2 = 2561,
4344
TypeNotAssignableWithExactOptionalPropertyTypes = 2375,
4445
TypeNotAssignableToParameterWithExactOptionalPropertyTypes = 2379,
4546
TypeNotAssignableTypeOfTargetWithExactOptionalPropertyTypes = 2412,

0 commit comments

Comments
 (0)