Closed rbuckton closed 4 years ago
I don't see that as an issue since 2.1 is also the first version of TypeScript that supported tslib
/--importHelpers
: http://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-1.html#support-for-external-helpers-library-tslib
Would adding the following solve this?
/// <reference lib="es2015.collection"/>
Or would it cause unintended consequences?
Would adding the following solve this?
/// <reference lib="es2015.collection"/>
Or would it cause unintended consequences?
This would pull the collection
in every consumer of tslib.d.ts
, would it?
/// <reference lib />
doesn't work for older versions. Honestly, tslib isn't meant to be used directly, so even having these types be accurate isn't useful.
Unfortunately,
WeakMap
may not be declared when using tslib with a project that has"lib": ["es5"]
set.Fixes: #93