File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
test/fixtures/expect-error/values Expand file tree Collapse file tree 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>([
5656 DiagnosticCode . RuntimeWillInvokeDecoratorWithXArgumentsButDecoratorExpectsY ,
5757 DiagnosticCode . RuntimeWillInvokeDecoratorWithXArgumentsButDecoratorExpectsAtLeastY ,
5858 DiagnosticCode . AcceptsTooFewArgumentsToBeUsedAsDecoratorHere ,
59+ DiagnosticCode . PropertyDoesNotExistOnTypeDidYouMean ,
5960] ) ;
6061
6162type IgnoreDiagnosticResult = 'preserve' | 'ignore' | Location ;
Original file line number Diff line number Diff line change @@ -42,6 +42,7 @@ export enum DiagnosticCode {
4242 PropertyDoesNotExistOnType = 2339 ,
4343 ArgumentTypeIsNotAssignableToParameterType = 2345 ,
4444 CannotAssignToReadOnlyProperty = 2540 ,
45+ PropertyDoesNotExistOnTypeDidYouMean = 2551 ,
4546 ExpectedArgumentsButGotOther = 2554 ,
4647 ExpectedAtLeastArgumentsButGotOther = 2555 ,
4748 TypeHasNoPropertiesInCommonWith = 2559 ,
Original file line number Diff line number Diff line change @@ -38,6 +38,8 @@ expectError(() => {
3838 triggerSuggestion . fooOrBar = 'fooo' ;
3939} )
4040
41+ expectError ( triggerSuggestion . fooOrBars ) ;
42+
4143expectError ( ( ) => {
4244 const foo : ReadonlyKeys = {
4345 bar : 'baz' ,
You can’t perform that action at this time.
0 commit comments