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"
2024-01-27 15:40:46
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"