what is difference between class and interface in typescript?
Learn TypeScript the right way! A class is a blueprint from which we can create objects that share the same configuration - properties and methods. An interface is a group of related properties and methods that describe an object, but neither provides implementation nor initialisation for them.