3 ms·
The point is if you have existing JavaScript you want to integrate with TypeScript. You should not need ‘any’ in code written in TypeScript from the beginning.
by bazoom42 4y ago
The point is if you have existing JavaScript you want to integrate with TypeScript.
You should not need ‘any’ in code written in TypeScript from the beginning.
- schwartzworld 4y agoSure, but at least with unknown you will have done some narrowing. Writing Typescript well requires some fundamentally different patterns than javascript. Adding types afterward is like pulling out your teeth slowly.