Typescript: Use class as interface
问题 I tried to use an Class as Interface for another class. With this I am trying to accomplish an up-to-date mockClass for Testing. This should be possible and is an favorable approach, as state in https://angular.io/guide/styleguide#interfaces And is demonstrate here: Export class as interface in Angular2 But strangely I'm getting an Error using Typescript 2.5.3 in VSCode 1.17.2 Error in class SpecialTest [ts] Class 'SpecialTest' incorrectly implements interface 'Test'. Types have separate