Skip to content

Commit cc31c6e

Browse files
authored
Add ts2739 to known errors (#216)
1 parent fa33d83 commit cc31c6e

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

source/lib/compiler.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const expectErrorDiagnosticCodesToIgnore = new Set<DiagnosticCode>([
2828
DiagnosticCode.NoOverloadExpectsCountOfArguments,
2929
DiagnosticCode.NoOverloadExpectsCountOfTypeArguments,
3030
DiagnosticCode.NoOverloadMatches,
31-
DiagnosticCode.Type1IsMissingPropertiesFromType2,
31+
DiagnosticCode.Type1IsMissingPropertiesFromType2Variant1,
32+
DiagnosticCode.Type1IsMissingPropertiesFromType2Variant2,
3233
DiagnosticCode.PropertyMissingInType1ButRequiredInType2,
3334
DiagnosticCode.TypeHasNoPropertiesInCommonWith,
3435
DiagnosticCode.ThisContextOfTypeNotAssignableToMethodOfThisType,

source/lib/interfaces.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,8 @@ export enum DiagnosticCode {
5858
IndexSignatureOnlyPermitsReading = 2542,
5959
NoOverloadExpectsCountOfArguments = 2575,
6060
ThisContextOfTypeNotAssignableToMethodOfThisType = 2684,
61-
Type1IsMissingPropertiesFromType2 = 2740,
61+
Type1IsMissingPropertiesFromType2Variant1 = 2739,
62+
Type1IsMissingPropertiesFromType2Variant2 = 2740,
6263
PropertyMissingInType1ButRequiredInType2 = 2741,
6364
NoOverloadExpectsCountOfTypeArguments = 2743,
6465
NoOverloadMatches = 2769,

0 commit comments

Comments
 (0)