TypeScript abstract method using lambda/arrow function
My understanding of Typescript specifications is that when you are declaring
public def = (): void => {
this.setting = false;
}
You are actually declaring a property
called def
and not a method
on the Base
class.
Properties cannot (unfortunately IMHO) be abstracted in Typescript: https://github.com/Microsoft/TypeScript/issues/4669