Commit f17b96f 1 parent 57d5bee commit f17b96f Copy full SHA for f17b96f
File tree 3 files changed +4
-0
lines changed
test/fixtures/expect-error/values
3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -56,6 +56,7 @@ const expectErrorDiagnosticCodesToIgnore = new Set<DiagnosticCode>([
56
56
DiagnosticCode . RuntimeWillInvokeDecoratorWithXArgumentsButDecoratorExpectsY ,
57
57
DiagnosticCode . RuntimeWillInvokeDecoratorWithXArgumentsButDecoratorExpectsAtLeastY ,
58
58
DiagnosticCode . AcceptsTooFewArgumentsToBeUsedAsDecoratorHere ,
59
+ DiagnosticCode . PropertyDoesNotExistOnTypeDidYouMean ,
59
60
] ) ;
60
61
61
62
type IgnoreDiagnosticResult = 'preserve' | 'ignore' | Location ;
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export enum DiagnosticCode {
42
42
PropertyDoesNotExistOnType = 2339 ,
43
43
ArgumentTypeIsNotAssignableToParameterType = 2345 ,
44
44
CannotAssignToReadOnlyProperty = 2540 ,
45
+ PropertyDoesNotExistOnTypeDidYouMean = 2551 ,
45
46
ExpectedArgumentsButGotOther = 2554 ,
46
47
ExpectedAtLeastArgumentsButGotOther = 2555 ,
47
48
TypeHasNoPropertiesInCommonWith = 2559 ,
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ expectError(() => {
38
38
triggerSuggestion . fooOrBar = 'fooo' ;
39
39
} )
40
40
41
+ expectError ( triggerSuggestion . fooOrBars ) ;
42
+
41
43
expectError ( ( ) => {
42
44
const foo : ReadonlyKeys = {
43
45
bar : 'baz' ,
You can’t perform that action at this time.
0 commit comments