interface IFoo {
method: (ha: string) => void;
}
class Foo implements IFoo {
public method(ha) {}
}
Hovering the 'ha' parameter in the class method says
Parameter 'ha' implicitly has an 'any' type, but a better type may be inferred from usage
Since the class impelements the interface, isn't it supposed to match the interface types? If you try to give parameter 'ha' a different type from string, say number, it, it errors that it's not assignable to type string, which makes sense.
So, why do I need to assign the type of ha both in the interface and in the class? Is this intended behaviour?