-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix warnings: override is needed #210
Conversation
@@ -27,7 +27,7 @@ export class Source extends BaseSource<Params> { | |||
return inputLength - preEditLength; | |||
} | |||
|
|||
async gather( | |||
override async gather( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For abstract method override
keyword is not necessary. Please see microsoft/TypeScript#47250 for the reason.
override async gather( | |
async gather( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have read the issue.
It is not necessary.
But to add override is requested in the issue?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, indeed.
@@ -70,11 +70,11 @@ export class Source extends BaseSource<Params> { | |||
}; | |||
} | |||
|
|||
params() { | |||
override params() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
override params() { | |
params() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same with microsoft/TypeScript#47250.
override
keyword is needed.