Skip to content

Commit

Permalink
Add code 2561 to known errors (#205)
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Jan 3, 2024
1 parent 0d3756f commit 6896a11
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions source/lib/compiler.ts
Expand Up @@ -44,6 +44,7 @@ const expectErrorDiagnosticCodesToIgnore = new Set<DiagnosticCode>([
DiagnosticCode.MemberMustHaveOverrideModifier,
DiagnosticCode.StringLiteralTypeIsNotAssignableToUnionTypeWithSuggestion,
DiagnosticCode.ObjectLiteralMayOnlySpecifyKnownProperties,
DiagnosticCode.ObjectLiteralMayOnlySpecifyKnownProperties2,
]);

type IgnoreDiagnosticResult = 'preserve' | 'ignore' | Location;
Expand Down
1 change: 1 addition & 0 deletions source/lib/interfaces.ts
Expand Up @@ -40,6 +40,7 @@ export enum DiagnosticCode {
OnlyVoidFunctionIsNewCallable = 2350,
ExpressionNotConstructable = 2351,
ObjectLiteralMayOnlySpecifyKnownProperties = 2353,
ObjectLiteralMayOnlySpecifyKnownProperties2 = 2561,
TypeNotAssignableWithExactOptionalPropertyTypes = 2375,
TypeNotAssignableToParameterWithExactOptionalPropertyTypes = 2379,
TypeNotAssignableTypeOfTargetWithExactOptionalPropertyTypes = 2412,
Expand Down

0 comments on commit 6896a11

Please sign in to comment.