How to make sure a class implements an interface, and has no properties besides those needed to implement that interface?
interface A { a: string; } class Klass implements A { a: string; // make sure Klass has a:string; b: number; //this should throw - make sure it implements ONLY interface A }
2.1m questions
2.1m answers
60 comments
57.0k users