tslib
tslib copied to clipboard
Runtime library for TypeScript helpers.
**TypeScript** PR: > `Reflect.decorate` is not on a standards track and has no active proposal being championed in TC39. > We have no idea if `Reflect.decorate` will get added to...
Unless I'm misunderstanding something, I'd expect `modules/index.js` to re-export `../tslib.es6.js` instead of `../tslib.js`. https://github.com/microsoft/tslib/blob/master/modules/index.js#L1 I'm basing my statement on the understanding that `exports['.']['import']` should point to some "modern" code: https://github.com/microsoft/tslib/blob/master/package.json#L29-L34...
I think the "import" specifier in the exports section should also point to ES6 Version: https://github.com/microsoft/tslib/blob/481d35218af580ec37a6a8f6b836b80cb1a245b3/package.json#L32 see spec: https://nodejs.org/api/packages.html#approach-1-use-an-es-module-wrapper Node.js implements the following conditions: "import" - matches when the package...
If you were to call `__extends(Foo, null)`, it would cause incorrect behaviour for `extendStatics`, as `Foo` is supposed to inherit from `%Function.prototype%` in that case, instead of also inheriting from `null`.
Added clarification for npm usage and `module: "amd"`
``` import { __decorate, __metadata } from "tslib"; ^^^^^^^^^^ SyntaxError: The requested module 'tslib' does not provide an export named '__decorate' ```
When building my Angular 12 library application i'm getting a new deprecation warning after updating to Angular 12. *My warning message (local folders): (node:9872) [DEP0148] DeprecationWarning: Use of deprecated folder...
This TypeScript code (a Jasmine test): describe("array spread operator", function() { it('should be able to spread arguments', function() { let argumentsArray; function testFunction() { argumentsArray = [...arguments]; } (testFunction as...
Hey, i recently updated my tslib to last version. I use @types/css-font-loading-module on my project as well. The following error started to appear: ``` Error: node_modules/typescript/lib/lib.dom.d.ts:4256:11 - error TS2430: Interface...
**While running angular 12 version getting the below runtime error , in and around googled not getting correct solution Having typescript "typescript": "4.2", "tslib": "^2.3.1"** ========= below are errors are...