mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-07-06 15:24:36 -05:00
Merge pull request #121 from afractal/patch-1
fixed typo in Typescript 1.7 section
@@ -2611,7 +2611,7 @@ f2({ x: 1, y: 1 });
|
||||
|
||||
## Support for decorators when targeting ES3
|
||||
|
||||
Decorators are now allowed when targeting ES3. TypeScript 1.7 removes the ES5-specific use of `reduceRight` from the `__decorate` helper. The changes also inline calls `Object.getOwnPropertyDescriptor` and `Object.defineProperty` in a backwards-compatible fashion that allows for a to clean up the emit for ES5 and later by removing various repetitive calls to the aforementioned `Object` methods.
|
||||
Decorators are now allowed when targeting ES3. TypeScript 1.7 removes the ES5-specific use of `reduceRight` from the `__decorate` helper. The changes also inline calls to `Object.getOwnPropertyDescriptor` and `Object.defineProperty` in a backwards-compatible fashion that allows for clean up of the emit for ES5 and later by removing various repetitive calls to the aforementioned `Object` methods.
|
||||
|
||||
|
||||
# TypeScript 1.6
|
||||
|
||||
Reference in New Issue
Block a user