When use a interface or class in Typescript [duplicate]
At it’s most basic, a class is essentially an object factory (ie. a blueprint of what an object is supposed to look like and then implemented), whereas an interface is a structure used solely for type-checking. While a class may have initialized properties and methods to help create objects, an interface essentially defines the properties … Read more