tslib
tslib copied to clipboard
Runtime library for TypeScript helpers.
The ESM specification was introduced together with the ES6 (or ES2015) features like: - let - const - Object.assign - Classes For this reason two `tslib.es6.js` metods like: `__extends`, `__assign`...
Tagged tslib versions don't seem to correspond in any obvious way to TypeScript versions. I want to be able to confidently import the right tslib version to work with a...
Hi, We are from the ApplicationInsights team and on updating the npm package to 1.13.0 we are now getting this error. We are currently using ts v2.5.3 and as of...
Hi, I've noticed that the behavior of "__extends" with regards to defining the "constructor" property is unexpected when you target "es5". Try the following example in the TypeScript playground: ```...
I've run across what appears to be a bug with __importStar when cyclical dependencies are involved. I've replicated the issue this sandbox: [https://codesandbox.io/s/eloquent-khayyam-nn14o?file=/src/tsFile.ts](https://codesandbox.io/s/eloquent-khayyam-nn14o?file=/src/tsFile.ts) Which contains 3 key files: index.js ```...
Is there a reason why tslib is pushing the helper functions to the window object when module.exports is available? -> https://github.com/Microsoft/tslib/blob/master/tslib.js#L38
So, apparently we need these helpers (quite like polyfills) to target platforms, which don't have some of the newer features yet (like `async`/`await`). Ok. However, if I target `es2017`, `es2018`...
I am working on a project using the [Angular Starter](https://github.com/gdi2290/angular-starter). While compiling for production using AOT I get the error in the title. This only happens on 1.9.3 as reverting...
Hi All, There seems to be an issue with tslib once you try to use es5 polyfill. As an example: We are writing a code on ES3/AngularJS and deploy it...
Helper style is somewhat inconsistent, and there are some trailing semicolons in some places but not others, for example in the es6 version: ```js export function __asyncValues(o) { if (!Symbol.asyncIterator)...