Import helpers skips __assign when target >= ES6

Instead, Object.assign is emitted.
This commit is contained in:
Nathan Shively-Sanders
2017-01-30 12:42:19 -08:00
parent 46cdac1ec7
commit cca68adf87
5 changed files with 28 additions and 13 deletions
+3 -1
View File
@@ -7,9 +7,11 @@ declare var dec: any;
}
const o = { a: 1 };
const y = { ...o };
// @filename: tslib.d.ts
export declare function __extends(d: Function, b: Function): void;
export declare function __assign(t: any, ...sources: any[]): any;
export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any;
export declare function __param(paramIndex: number, decorator: Function): Function;
export declare function __metadata(metadataKey: any, metadataValue: any): Function;