In our Typescript based project, we are looking to ensure that class methods are typed or have a default resolvable type assignment, but are not sure what eslint rule code do this.
As examples of what we want to be permissible:
class MyClass {
myMethod(arg1: String, arg2 = true) {
//
}
}
As opposed to:
class MyClass {
myMethod(arg1, arg2) {
//
}
}
I did look around and couldn’t see how to achieve this.