News for hackers. Stuff that matters.
Re:Using TypeScript with React by zackify on Thursday August 22, 2019 @01:47PM (#20770634)
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
Re:Using TypeScript with React by hazza1 on Thursday August 22, 2019 @01:58PM (#20770750)
you 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.
Re:Using TypeScript with React by zackify on Thursday September 05, 2019 @12:26AM (#20883827)
but 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