mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
10 lines
252 B
TypeScript
10 lines
252 B
TypeScript
|
// Derived interfaces no longer hide signatures from base types, so these signatures are always compatible.
|
||
|
interface Base {
|
||
|
(): string;
|
||
|
new (x: string): number;
|
||
|
}
|
||
|
|
||
|
interface Derived extends Base {
|
||
|
(): number;
|
||
|
new (x: string): string;
|
||
|
}
|