Encountering an error:
🔴 Class 'Entity' defines instance member property 'method', but extended class '(Anonymous class)' defines it as instance member function
The code in question is:
export abstract class Entity {
abstract method: () => void
}
const e = new (class extends Entity {
method(): void {
return;
}
});
An issue similar to this was found on github but the reasoning behind it was unclear: https://github.com/Microsoft/TypeScript/issues/9722
Does anyone have insight into what might be causing this problem?