10 lines
152 B
TypeScript
10 lines
152 B
TypeScript
|
|
||
|
class A {
|
||
|
constructor(private map: (value: number) => string) {
|
||
|
|
||
|
}
|
||
|
}
|
||
|
|
||
|
class B {
|
||
|
constructor() { super(value => String(value)); }
|
||
|
}
|