Ask HN: What are your strategies for plugging the holes in TS?

2 points by triyambakam ↗ HN
I am a TS fanatic, but I still find it daunting to handle a codebase that imports libraries that may not have its own typings, or poor typings, or colleagues using `as` casts, etc. What defenses do you have in place to keep sane and healthy typesafe applications?

5 comments

[ 2.8 ms ] story [ 18.1 ms ] thread
Switching to a typeless language, like Elixir lmao
or in our case, Clojure which has heterogenous collections
Maybe have GPT refactor imports to fit your naming conventions. Na mean?
I don't follow
Use a transformer to transform the libraries you import to match your naming conventions. Naming conventions are the issue, right?