Skip to content

Use '@override' decorator for methods overriden by subclass #3451

Answered by kubk
gcattan asked this question in Q&A
Discussion options

You must be logged in to vote

TypeScript has a setting to force adding override TS keyword to child's methods: https://dev.to/lioness100/introducing-typescript-override-keyword-4b36

It is not the same as adding Mobx override keyword, but it might be helpful to run it once to detect what methods require adding @override Mobx decorator

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
3 replies
@gcattan
Comment options

@urugator
Comment options

@gcattan
Comment options

Answer selected by gcattan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants