mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
857 B
Plaintext
20 lines
857 B
Plaintext
addMoreOverloadsToBaseSignature.ts(5,11): error TS2430: Interface 'Bar' incorrectly extends interface 'Foo'.
|
|
Types of property 'f' are incompatible.
|
|
Type '(key: string) => string' is not assignable to type '() => string'.
|
|
Target signature provides too few arguments. Expected 1 or more, but got 0.
|
|
|
|
|
|
==== addMoreOverloadsToBaseSignature.ts (1 errors) ====
|
|
interface Foo {
|
|
f(): string;
|
|
}
|
|
|
|
interface Bar extends Foo {
|
|
~~~
|
|
!!! error TS2430: Interface 'Bar' incorrectly extends interface 'Foo'.
|
|
!!! error TS2430: Types of property 'f' are incompatible.
|
|
!!! error TS2430: Type '(key: string) => string' is not assignable to type '() => string'.
|
|
!!! error TS2430: Target signature provides too few arguments. Expected 1 or more, but got 0.
|
|
f(key: string): string;
|
|
}
|
|
|