I was just wondering whether it is possible to type static methods/properties on classes using implements, since that seems to type the instance of the class (non-static methods/properties) only. E.g.
type Foo = {
doSomething(): void;
};
// This works
class Bar implements Foo {
doSomething() {
return;
}
}
// Class 'Baz' incorrectly implements interface 'Foo'.
// Property 'doSomething' is missing in type 'Baz' but required in type 'Foo'.
class Baz implements Foo {
static doSomething() {
return;
}
}