My definition of a TypeScript-friendly library: I don’t have to “opt-in” to...
My definition of a TypeScript-friendly library:
I don’t have to “opt-in” to types. It’s automatic. I call APIs, enjoy rich autocomplete support, and get strongly typed responses back.
Thus, 3 smells:
1. Casting via “as”
2. Generic args
3. Having to remember to type something.
A couple more:
4. Types should be included. No separate install required.
5. Using the library with TS shouldn’t require checking the docs or Googling for tricks.