lib.es3.d.ts
for DefinitelyTyped libraries with legacy support
#46130
Labels
Declined
The issue was declined as something which matches the TypeScript vision
Suggestion
An idea for TypeScript
Suggestion
π Search Terms
es3 lib tsc
β Viability Checklist
My suggestion meets these guidelines:
β Suggestion
Adding a
lib.es3.d.ts
and--lib es3
option for thetsc
compiler.The file would provide every ES3 feature and TS utilities from
lib.es5.d.ts
.π Motivating Example
A large number of older libraries such as JQuery will target ES3 only.
You can find these on the DefinitelyTyped monorepo.
There should be the option to use these libraries without opting into ES5, for legacy support.
π» Use Cases
I've been writing a DefinitelyTyped package that depends on JQuery and supports IE8. Horrible but go figure.
Right now,
lib
can be left empty but that misses all the TS core utils and ES3 types.--lib ES5
which is not ideal but will have to do.The text was updated successfully, but these errors were encountered: