I have a interface export from other package, and I need to implement it using class. However typescript can not auto infer the parameter type. Is there any way to get the method parameter automatically by ts ?
interface Interface {
hello(param: {a: number}): void
}
class A implements Interface {
hello(param) { // param is any
// how can i get the param type automatically ?
}
}
const B : Interface = {
hello(param) {// {a: number}
}
}