How to implement a Typescript interface to an es5-style “class”?
I assume that you want es5-style class implementation, which is declared to conform to IDog interface, and type-checked by the compiler to ensure that it really conforms to that interface. Bad news – TypeScript does not support that. You can make TypeScript to think that es5 Dog is a class that implements IDog, but you … Read more