|
|
|
|
|
by qudat
1401 days ago
|
|
Thanks for reading the article! > That is the whole point in creating a library. To hide complexity in a nice easy to use interface/API. I think that's a fair point, but generating types that satisfy all use cases is very challenging to get right -- disproportionately so. I could see a world where -- without proper tooling and growing complexity -- typescript libraries becomes so difficult to maintain that people give up or burn out. Maybe that's a pessimistic outlook but I already feel that way some days. |
|
If you write a library in TypeScript, determining what types are present as part of the interface is one of the very first thing that should be done.