diff --git a/tslib.d.ts b/tslib.d.ts index 08217ba..f2c78e7 100644 --- a/tslib.d.ts +++ b/tslib.d.ts @@ -27,4 +27,5 @@ export declare function __spread(...args: any[]): any[]; export declare function __await(v: any): any; export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; export declare function __asyncDelegator(o: any): any; -export declare function __asyncValues(o: any): any; \ No newline at end of file +export declare function __asyncValues(o: any): any; +export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; \ No newline at end of file diff --git a/tslib.es6.js b/tslib.es6.js index 7f08388..a86ce73 100644 --- a/tslib.es6.js +++ b/tslib.es6.js @@ -159,3 +159,8 @@ export function __asyncValues(o) { var m = o[Symbol.asyncIterator]; return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); } + +export function __makeTemplateObject(cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; +}; diff --git a/tslib.js b/tslib.js index 4b4db2c..5fe3931 100644 --- a/tslib.js +++ b/tslib.js @@ -29,6 +29,7 @@ var __await; var __asyncGenerator; var __asyncDelegator; var __asyncValues; +var __makeTemplateObject; (function (factory) { var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; if (typeof define === "function" && define.amd) { @@ -197,6 +198,11 @@ var __asyncValues; return m ? m.call(o) : typeof __values === "function" ? __values(o) : o[Symbol.iterator](); }; + __makeTemplateObject = function (cooked, raw) { + if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } + return cooked; + }; + exporter("__extends", __extends); exporter("__assign", __assign); exporter("__rest", __rest); @@ -213,4 +219,5 @@ var __asyncValues; exporter("__asyncGenerator", __asyncGenerator); exporter("__asyncDelegator", __asyncDelegator); exporter("__asyncValues", __asyncValues); + exporter("__makeTemplateObject", __makeTemplateObject); });