<!-- 🚨 STOP 🚨 𝗦𝗧𝗢𝗣 🚨 𝑺𝑻𝑶𝑷 🚨 Half of all issues filed here are duplicates, answered in the FAQ, or not appropriate for the bug tracker. Even if you think you've found a *bug*, please read the FAQ first, especially the Common "Bugs" That Aren't Bugs section! Please help us by doing the following steps before logging an issue: * Search: https://github.com/Microsoft/TypeScript/search?type=Issues * Read the FAQ: https://github.com/Microsoft/TypeScript/wiki/FAQ Please fill in the *entire* template below. --> <!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. --> **TypeScript Version:** 3.7.0-dev.20191010 <!-- Search terms you tried before logging this (so others can find this issue more easily) --> **Search Terms:** - `--declaration` - getter - d.ts **Repo:** For the TS file `foo.ts`: ```ts export class Foo { get bar(): boolean { return true; } } ``` 1. Run `tsc foo.ts --declaration` **Expected** In TS 3.6, the output `d.ts` uses `readonly`: ```ts export declare class Foo { readonly bar: boolean; } ``` **Actual behavior:** In TS 3.7, the output `d.ts` use a getter instead: ```ts export declare class Foo { get bar(): boolean; } ```