build: update to rules_typescript 0.25.1 (#28625)

Updated a spot in the compiler which assumed es5 downlevelling get ready for es2015 devmode in the future.

PR Close #28625
This commit is contained in:
Greg Magolan
2019-02-08 14:01:51 -08:00
committed by Igor Minar
parent 9ae14db343
commit ebffde7143
90 changed files with 174 additions and 1940 deletions

View File

@ -22,13 +22,16 @@ interface OtherMetadataType extends SomeMetadataType {
class SomeMetadata implements SomeMetadataType {
plainProp: string;
private _getterProp: string;
get getterProp(): string { return this._getterProp; }
arrayProp: any[];
constructor(options: SomeMetadataType) {
this.plainProp = options.plainProp !;
this._getterProp = options.getterProp !;
this.arrayProp = options.arrayProp !;
Object.defineProperty(this, 'getterProp', {
enumerable: true, // getters are non-enumerable by default in es2015
get: () => this._getterProp,
});
}
}