Skip to content

Commit bb4bf64

Browse files
authored
Enable noImplicitOverride (#1045)
1 parent e5ee1e4 commit bb4bf64

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/tf/ROS2TFClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export default class ROS2TFClient extends BaseTFClient {
3131
* Create and send a new goal (or service request) to the tf2_web_republisher
3232
* based on the current list of TFs.
3333
*/
34-
updateGoal() {
34+
override updateGoal() {
3535
const goalMessage = {
3636
source_frames: Object.keys(this.frameInfos),
3737
target_frame: this.fixedFrame,

src/tf/TFClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export default class TFClient extends BaseTFClient {
5959
* Create and send a new goal (or service request) to the tf2_web_republisher
6060
* based on the current list of TFs.
6161
*/
62-
updateGoal() {
62+
override updateGoal() {
6363
const goalMessage: tf2_web_republisher.TFSubscriptionGoal = {
6464
source_frames: Object.keys(this.frameInfos),
6565
target_frame: this.fixedFrame,

tsconfig.build.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,11 @@
4141
"strictBindCallApply": true /* Check that the arguments for `bind`, `call`, and `apply` methods match the original function. */,
4242
"strictBuiltinIteratorReturn": true /* Built-in iterators are instantiated with a 'TReturn' type of 'undefined' instead of 'any'. */,
4343
"useUnknownInCatchVariables": true /* Default catch clause variables as `unknown` instead of `any`. */,
44+
"noImplicitOverride": true /* Ensure overriding members in derived classes are marked with an override modifier. */,
4445

4546
/* Rules to be enabled */
4647
"exactOptionalPropertyTypes": false /* Differentiate between undefined and not present when type checking */,
4748
"noImplicitAny": false /* Enable error reporting for expressions and declarations with an implied 'any' type. */,
48-
"noImplicitOverride": false /* Ensure overriding members in derived classes are marked with an override modifier. */,
4949
"noUncheckedIndexedAccess": false /* Add `undefined` to a type when accessed using an index. */,
5050
"strictFunctionTypes": false /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */,
5151
"strictPropertyInitialization": false /* Check for class properties that are declared but not set in the constructor. */,

0 commit comments

Comments
 (0)