Whats the difference between using a class and interface?
As JB Nizet quite correctly points out, the deserialized JSON values that result from HTTP requests will never be instances of a class. While the dual role (see below) of the class construct in TypeScript makes it possible to use a class to describe the shape of these response values, it is a poor practice … Read more