Implementing another class (or classes as interfaces)

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

class Bar implements Foo {
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?
Dec 16, 2013 at 9:21 PM
This has been possible since 0.9 and is a permanent feature of the language.