It will complain that type of arg is any
interface Foo {
foo(arg: string): void
}
class FooImpl implements Foo {
foo(arg) { console.log(arg) }
}
I can of course specify that it's string but it's repetitive.
Maybe there's a way to tune TypeScript to make it infer that it's string automatically?
foofunction with different arguments. Some signature merging is needed.