**TypeScript Version:** 2.5.2 **Code** ``` function someDecorator(target, key) { } class MyClass { @someDecorator field: ClientRect; } ``` The transpiled output contains the following code: ``` __decorate([ someDecorator, __metadata("design:type", ClientRect) ], Greeter.prototype, "field", void 0); ``` **Expected behavior:** Runs without error on Chrome v61+. **Actual behavior:** Running the above code in Chrome v61 fails with the error: `Uncaught ReferenceError: ClientRect is not defined`. This is due to two related issues: 1) Chrome replaced `ClientRect` with `DOMRect`: https://groups.google.com/a/chromium.org/forum/#!msg/blink-reviews/vxvUqqj2Gnw/4sbTv97SBgAJ 2) `lib.d.ts` hasn't been updated to reflect the above change. https://github.com/Microsoft/TypeScript/issues/11085
TypeScript Version: 2.5.2
Code
The transpiled output contains the following code:
Expected behavior:
Runs without error on Chrome v61+.
Actual behavior:
Running the above code in Chrome v61 fails with the error:
Uncaught ReferenceError: ClientRect is not defined.This is due to two related issues:
ClientRectwithDOMRect: https://groups.google.com/a/chromium.org/forum/#!msg/blink-reviews/vxvUqqj2Gnw/4sbTv97SBgAJlib.d.tshasn't been updated to reflect the above change. Inconsistents with ClientRect definition #11085