Classes with interfaces in typescript

Viewed 45

Is it bad practice to use class as type in typescript? Is it good practice to create class from interface and when we need a type somewhere just to use interface, and when we need a method, us DI to inject class;

interface:

interface

class:

class

0 Answers
Related