News for hackers. Stuff that matters.
Re:Problems with TypeScript by valand on Wednesday January 15, 2020 @02:20PM (#22057482)
TS compiled can still be faulty if the app is injected with data of different type

Runtime type checks is the lost link between static checks at compile time and arbitrary i/o data type in compiled js code.

You define a type in a similar way you would define TS types. At compile time it would give you the typescript type checks. At runtime it will help you determine if data has the correct type exactly as your typescript app expected.

There is extra work though, handling error if there is a faulty data type

There are no comments on this comment yet.