I am seeking a method to inherit the parameter types of a parent's constructor into the child's constructor. For example:
class B extends A {
constructor (input) {
super(input);
}
}
I attempted the following:
class B extends A {
constructor (input : ConstructorParameters<typeof super>) {
super(input);
}
}
However, I encountered an error from eslint stating 'super' is not defined.