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.
You should not need ‘any’ in code written in TypeScript from the beginning.