From 12b8fcfb3fd0d5ae6fb60b6ec04e3aa995e5289d Mon Sep 17 00:00:00 2001 From: arnfaldur Date: Mon, 19 Feb 2024 14:36:43 +0100 Subject: [PATCH] Add code 2740 to known errors (#208) --- source/lib/compiler.ts | 1 + source/lib/interfaces.ts | 1 + 2 files changed, 2 insertions(+) diff --git a/source/lib/compiler.ts b/source/lib/compiler.ts index c9f7e64..7c06a7f 100644 --- a/source/lib/compiler.ts +++ b/source/lib/compiler.ts @@ -28,6 +28,7 @@ const expectErrorDiagnosticCodesToIgnore = new Set([ DiagnosticCode.NoOverloadExpectsCountOfArguments, DiagnosticCode.NoOverloadExpectsCountOfTypeArguments, DiagnosticCode.NoOverloadMatches, + DiagnosticCode.Type1IsMissingPropertiesFromType2, DiagnosticCode.PropertyMissingInType1ButRequiredInType2, DiagnosticCode.TypeHasNoPropertiesInCommonWith, DiagnosticCode.ThisContextOfTypeNotAssignableToMethodOfThisType, diff --git a/source/lib/interfaces.ts b/source/lib/interfaces.ts index a6ded45..f48de48 100644 --- a/source/lib/interfaces.ts +++ b/source/lib/interfaces.ts @@ -57,6 +57,7 @@ export enum DiagnosticCode { IndexSignatureOnlyPermitsReading = 2542, NoOverloadExpectsCountOfArguments = 2575, ThisContextOfTypeNotAssignableToMethodOfThisType = 2684, + Type1IsMissingPropertiesFromType2 = 2740, PropertyMissingInType1ButRequiredInType2 = 2741, NoOverloadExpectsCountOfTypeArguments = 2743, NoOverloadMatches = 2769,