3 ms·
It depends on how much you want to lie to yourself. At the end of the day, Javascript is still a dynamic language where you might be loading dependencies from
by madeofpalk 5y ago
It depends on how much you want to lie to yourself.
At the end of the day, Javascript is still a dynamic language where you might be loading dependencies from outside your build chain. It's up to you to decide how defensive/safe you want to be I guess. I don't think there's a wrong answer.
- runawaybottle 5y agoAnd this is the dirty truth about Typescript in modern frontend. The truth of the matter is, the true type of everything that hits the backend is type any, because it could truly be anything. You can run from it all you want, but compile time checking won’t save you from the JavaScript gods (who are merciless). Better get those run time null checks in. I dare you to connect to a real time api and rely on your type checking, it ain’t gonna happen.