14 lines
197 B
TypeScript
14 lines
197 B
TypeScript
interface Options {
|
|
value: number;
|
|
}
|
|
|
|
class Super {
|
|
constructor(value:number) {
|
|
}
|
|
}
|
|
|
|
class Sub extends Super {
|
|
constructor(public options:Options) {
|
|
super(options.value);
|
|
}
|
|
}
|