I've read the tslint rules here and while it looks like the typedef rule's call-signature option is what I want, it doesn't complain about the lack of a return type.
call-signature
Anyone know the rule (f one exists) to enforce return types on class methods?
Turns out this can be done via:
"typedef": [ true, "call-signature", "property-declaration" ]
More info: https://palantir.github.io/tslint/rules/typedef/
2.1m questions
2.1m answers
60 comments
57.0k users