index.ts
abstract class Foo {
constructor() {}
className = "Foo";
}
class FooChild extends Foo {
constructor() {
super();
}
}
// const foo = new Foo(); // Error
const fooChild = new FooChild();
fooChild.className; // "Foo"
index.ts
abstract class Foo {
constructor() {}
className = "Foo";
}
class FooChild extends Foo {
constructor() {
super();
}
}
// const foo = new Foo(); // Error
const fooChild = new FooChild();
fooChild.className; // "Foo"