top | item 20826240

(no title)

abritinthebay | 6 years ago

I used to be the same way and I found it came from overuse of types in some applications I worked on. I know the TypeScript working group at Netflix found the same thing.

Generally it's best to let its type inference do as much work as possible and then add types to help it. Simple input and output types in functions can help a lot too.

Too many types in TypeScript is, imo, a net negative to a project. It sounds counter-intuitive but has been borne out by practical use cases at multiple large companies that I've worked at.

discuss

order

No comments yet.