From cc31c6e4577c7b9bdd262077fc708f612d0aeeb2 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 17 Jun 2024 12:17:53 +0200 Subject: [PATCH] Add `ts2739` to known errors (#216) --- source/lib/compiler.ts | 3 ++- source/lib/interfaces.ts | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/source/lib/compiler.ts b/source/lib/compiler.ts index 0535bcf..3ca4e21 100644 --- a/source/lib/compiler.ts +++ b/source/lib/compiler.ts @@ -28,7 +28,8 @@ const expectErrorDiagnosticCodesToIgnore = new Set([ DiagnosticCode.NoOverloadExpectsCountOfArguments, DiagnosticCode.NoOverloadExpectsCountOfTypeArguments, DiagnosticCode.NoOverloadMatches, - DiagnosticCode.Type1IsMissingPropertiesFromType2, + DiagnosticCode.Type1IsMissingPropertiesFromType2Variant1, + DiagnosticCode.Type1IsMissingPropertiesFromType2Variant2, DiagnosticCode.PropertyMissingInType1ButRequiredInType2, DiagnosticCode.TypeHasNoPropertiesInCommonWith, DiagnosticCode.ThisContextOfTypeNotAssignableToMethodOfThisType, diff --git a/source/lib/interfaces.ts b/source/lib/interfaces.ts index 0feb021..f2c5688 100644 --- a/source/lib/interfaces.ts +++ b/source/lib/interfaces.ts @@ -58,7 +58,8 @@ export enum DiagnosticCode { IndexSignatureOnlyPermitsReading = 2542, NoOverloadExpectsCountOfArguments = 2575, ThisContextOfTypeNotAssignableToMethodOfThisType = 2684, - Type1IsMissingPropertiesFromType2 = 2740, + Type1IsMissingPropertiesFromType2Variant1 = 2739, + Type1IsMissingPropertiesFromType2Variant2 = 2740, PropertyMissingInType1ButRequiredInType2 = 2741, NoOverloadExpectsCountOfTypeArguments = 2743, NoOverloadMatches = 2769,