News for hackers. Stuff that matters.
Re:TypeScript 4.1 by schwede on Friday November 20, 2020 @01:32AM (#25157820)
They are probably talking about accepting serialized data coming from a network request. Typescript doesn’t help at the edge if you just cast your JSON blob into your application model.
Re:TypeScript 4.1 by andyfleming on Friday November 20, 2020 @01:50AM (#25157890)
That's why you actually have to validate at the edge. TypeScript doesn't really change that fact. It only makes the decision of how you handle it explicit.