Implementing another class (or classes as interfaces)

Topics: General, Language Specification
Dec 16, 2013 at 7:17 PM
The following works in 0.9.5 (not sure how long it has been possible)
class Foo {
   
   method(){}
}

class Bar implements Foo {
    
    method(){}
}
It basically lets you treat a class as an interface, for use in mixins and elsewhere I'm assuming.

Is this experimental or a permanent feature of TypeScript? In other words can we start using it?
Coordinator
Dec 16, 2013 at 8:21 PM
This has been possible since 0.9 and is a permanent feature of the language.