News for hackers. Stuff that matters.
Re:A 'CSS reset' for TypeScript, improving types for common ... by bazoom42 on Friday March 03, 2023 @10:23AM (#35010785)
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.

Re:A 'CSS reset' for TypeScript, improving types for common ... by schwartzworld on Friday March 03, 2023 @10:38AM (#35010972)
Sure, 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.