You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
lib.es3.d.ts for DefinitelyTyped libraries with legacy supportΒ #46130
Adding a lib.es3.d.ts and --lib es3 option for the tsc 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
What do you want to use this for?
I've been writing a DefinitelyTyped package that depends on JQuery and supports IE8. Horrible but go figure.
What shortcomings exist with current approaches?
Right now, lib can be left empty but that misses all the TS core utils and ES3 types.
What workarounds are you using in the meantime? --lib ES5 which is not ideal but will have to do.
Activity
andrewbranch commentedon Oct 1, 2021
You should be able to do this yourself with #45771. I donβt think weβre going to invest in targeting ES3 at this point π