8 lines
151 B
TypeScript
8 lines
151 B
TypeScript
|
class A {
|
||
|
constructor(p:any) {}
|
||
|
}
|
||
|
|
||
|
class B extends A {
|
||
|
constructor() { super({ test: () => this.someMethod()}); }
|
||
|
someMethod() {}
|
||
|
}
|