5 ms·
this is why I wish typescript added runtime checks in development. Worst case, it would throw a TS error in your browser any time a function call or a network r
by zackify 7y ago
this is why I wish typescript added runtime checks in development. Worst case, it would throw a TS error in your browser any time a function call or a network request didn’t match what you typed
- hazza1 7y agoyou don't really want the overhead of checking types on every call, you know where your applications entry points are - if you need checks add them.
- zackify 7y agobut I can’t add checks to the couple places I let users upload json for a form builder, for instance. No way to validate json with typescript natively. That would be awesome