I would like to get the input parameter of the class method as type in typescript. I try the code below:
class A {
method(a: number){
return a + a;
}
}
type B = Parameters<A.method>
But no luck. Is there any method to extract the input parameter of the class method as type? Thank you.