Closed
Description
TypeScript Version: 3.7.0-dev.20191010
Search Terms:
--declaration
- getter
- d.ts
Repo:
For the TS file foo.ts
:
export class Foo {
get bar(): boolean { return true; }
}
- Run
tsc foo.ts --declaration
Expected
In TS 3.6, the output d.ts
uses readonly
:
export declare class Foo {
readonly bar: boolean;
}
Actual behavior:
In TS 3.7, the output d.ts
use a getter instead:
export declare class Foo {
get bar(): boolean;
}