TypeScript Bot d5bcb6f904 Cherry-pick PR #35058 into release-3.7 (#35241)
Component commits:
8ae5a8cfce useDefineForClassFields skips emit of ambient properties
Previously:

```ts
class C {
  declare p
}
```

would incorrectly emit

```js
class C {
    constructor() {
        Object.defineProperty(this, "p", {
            enumerable: true,
            configurable: true,
            writable: true,
            value: void 0
        });
    }
}
```

when useDefineForClassFields was turned on (for targets <ESNext).

0ec9c04896 Fix bug for ESNext as well
This moves the check earlier in the pipeline.

e1aa034a7a update baselines
2019-11-22 14:52:31 -08:00
..