Comment by LudwigNagasena
2 years ago
> places where JS makes more sense (eg libraries that would otherwise need to have very abstract types)
If your library is hard to type, it is a code smell. In my opinion, such libraries could benefit from TS a lot.
libraries if they are popular in general are expected to work with a wide variety of code. Supporting code smell is a feature.
Can you share some examples of libraries you feel benefit from this sort of unlimited flexibility?
jquery
variety of code is one thing, your library can be used in thousands of places, doesn't mean it have to do thousands of different things