TypeScript Casting Gotchas

Below are two TypeScript “gotchas” that I have come across while writing my first TypeScript app. 1) Here we are creating an instance of the customer class and calling a method to write some data to the console. Then the object is turned into JSON and then parsed and cast as a customer class. There […]