From 4a4f72b245350d36bae115950d5a6012f7ccc6e9 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 17 Jun 2024 11:15:07 +0200 Subject: [PATCH 1/2] Rename enum field --- source/lib/compiler.ts | 2 +- source/lib/interfaces.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/lib/compiler.ts b/source/lib/compiler.ts index 0535bcf..14e2cff 100644 --- a/source/lib/compiler.ts +++ b/source/lib/compiler.ts @@ -28,7 +28,7 @@ const expectErrorDiagnosticCodesToIgnore = new Set([ DiagnosticCode.NoOverloadExpectsCountOfArguments, DiagnosticCode.NoOverloadExpectsCountOfTypeArguments, DiagnosticCode.NoOverloadMatches, - DiagnosticCode.Type1IsMissingPropertiesFromType2, + DiagnosticCode.Type1IsMissingPropertiesFromType2Variant2, DiagnosticCode.PropertyMissingInType1ButRequiredInType2, DiagnosticCode.TypeHasNoPropertiesInCommonWith, DiagnosticCode.ThisContextOfTypeNotAssignableToMethodOfThisType, diff --git a/source/lib/interfaces.ts b/source/lib/interfaces.ts index 0feb021..763450c 100644 --- a/source/lib/interfaces.ts +++ b/source/lib/interfaces.ts @@ -58,7 +58,7 @@ export enum DiagnosticCode { IndexSignatureOnlyPermitsReading = 2542, NoOverloadExpectsCountOfArguments = 2575, ThisContextOfTypeNotAssignableToMethodOfThisType = 2684, - Type1IsMissingPropertiesFromType2 = 2740, + Type1IsMissingPropertiesFromType2Variant2 = 2740, PropertyMissingInType1ButRequiredInType2 = 2741, NoOverloadExpectsCountOfTypeArguments = 2743, NoOverloadMatches = 2769, From 17fe5661b7760feb99936d2d5dd7983684f2a8b4 Mon Sep 17 00:00:00 2001 From: Vincent Driessen Date: Mon, 17 Jun 2024 11:23:08 +0200 Subject: [PATCH 2/2] Add TS2739 to list of known errors --- 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 14e2cff..3ca4e21 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.Type1IsMissingPropertiesFromType2Variant1, DiagnosticCode.Type1IsMissingPropertiesFromType2Variant2, DiagnosticCode.PropertyMissingInType1ButRequiredInType2, DiagnosticCode.TypeHasNoPropertiesInCommonWith, diff --git a/source/lib/interfaces.ts b/source/lib/interfaces.ts index 763450c..f2c5688 100644 --- a/source/lib/interfaces.ts +++ b/source/lib/interfaces.ts @@ -58,6 +58,7 @@ export enum DiagnosticCode { IndexSignatureOnlyPermitsReading = 2542, NoOverloadExpectsCountOfArguments = 2575, ThisContextOfTypeNotAssignableToMethodOfThisType = 2684, + Type1IsMissingPropertiesFromType2Variant1 = 2739, Type1IsMissingPropertiesFromType2Variant2 = 2740, PropertyMissingInType1ButRequiredInType2 = 2741, NoOverloadExpectsCountOfTypeArguments = 2743,