10 lines
No EOL
170 B
TypeScript
10 lines
No EOL
170 B
TypeScript
|
|
class A<T1, T2> {
|
|
constructor(private map: (value: T1) => T2) {
|
|
|
|
}
|
|
}
|
|
|
|
class B extends A<number> {
|
|
constructor() { super(value => String(value)); }
|
|
} |