News for hackers. Stuff that matters.
Re:A 'CSS reset' for TypeScript, improving types for common ... by Gigachad on Friday March 03, 2023 @05:33AM (#35007906)
This is a bit of a problem imo. It’s super easy to forget to add a type somewhere and then it just defaults to any. I’d prefer no implicit any so you have to knowingly set something as untyped.

It’s also just flat out impossible in many other languages because the compiler actually needs to know the types for performance reasons.

Re:A 'CSS reset' for TypeScript, improving types for common ... by gchq-7703 on Friday March 03, 2023 @06:00AM (#35008056)
This is possible with a single `tsconfig.json` change[0]. This is also the default mode if you've set the 'strict' flag.

[0] https://www.typescriptlang.org/tsconfig#noImplicitAny