When this code:
class Test {
private test(a: string);
private test(a: number);
private test(a: any) {
console.log(a);
}
public test2(a: string);
public test2(a: number);
public test2(a: any) {
console.log(a);
}
}
new Test();
is compiled with the --declaration flag the output is:
declare class Test {
private test(a);
private test(a);
test2(a: string): any;
test2(a: number): any;
}
the type information is missing from test.