Open
Description
Repro
export class Foo {
constructor(prop: string);
constructor(readonly prop: string) {}
}
export class Bar {
constructor(prop: string);
constructor(prop: string, other: boolean);
constructor(readonly prop: string, other?: boolean) {}
}
Expected
Same output as TS where the parameter property is hoisted and is declared separate to the constructor:
export declare class Foo {
readonly prop: string;
constructor(prop: string);
}
export declare class Bar {
readonly prop: string;
constructor(prop: string);
constructor(prop: string, other: boolean);
}
Actual
The property is omitted entirely:
export declare class Foo {
constructor(prop: string);
}
export declare class Bar {
constructor(prop: string);
constructor(prop: string, other: boolean);
}