Hacker News new | ask | show | jobs
by chrismbarr 3654 days ago
Maybe initially, but that `any` type really defeats the purpose of having types in the first place. Where I work we have several 100% TS apps and we've banned the `any` type except for very rare exceptions. It's always better to define a type so that it can be easily used elsewhere, and it also helps prevent typos.
1 comments

for data objects (no methods) you could at least use Object instead of any, this should prevent anyone from calling methods on it.