← Back to context

Comment by miki123211

2 hours ago

The problem with helper functions is that they're often very easy to write, but very hard to figure out the types for.

Take a generic function that recursively converts snake_case object keys to pascalCase. That's about 10 lines of Javascript, you can write that in 2 mins if you're a competent dev. Figuring out the types for it can be done, but you really need a lot of ts expertise to pull it off.