You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Causes the compiler to issue an incomprehensible error message:
Class 'Baz' incorrectly implements interface 'BazInternal'.
Types of property 'equals' are incompatible.
Type '(other: Baz) => boolean' is not assignable to type '(other: Baz) => boolean'.
Types of parameters 'other' and 'other' are incompatible.
Type 'Baz' is not assignable to type 'Baz'.
Types of property 'bar' are incompatible.
Type '(handler: (event: DragEvent) => void) => void' is not assignable to type '(handler: (event: DragEvent) => void) => void'.
Types of parameters 'handler' and 'handler' are incompatible.
Type '(event: DragEvent) => void' is not assignable to type '(event: DragEvent) => void'.
Types of parameters 'event' and 'event' are incompatible.
Type 'DragEvent' is not assignable to type 'DragEvent'.
Property 'foo' is missing in type 'DragEvent'.
The relevant items are:
The signature for public bar should have been public bar(handler: (event: foo.DragEvent) => void)
To reproduce the error, the interface foo.DragEvent should have an additional method foo(): void; (in order to distinguish it from the type in lib.d.ts)
For the line Type 'Baz' is not assignable to type 'Baz' to be printed there should be both a class and an interface called Baz.
If we could actually get the Type 'Baz' is not assignable to type 'Baz'. portion fixed, then this would at least not be quite as crazy. Unfortunately we"re not doing that somewhere.
Class 'Baz' incorrectly implements interface 'BazInternal'.
Types of property 'equals' are incompatible.
Type '(other: Baz) => boolean' is not assignable to type '(other: Baz) => boolean'.
Types of parameters 'other' and 'other' are incompatible.
Type 'Baz' is not assignable to type 'foo.Baz'.
Types of property 'bar' are incompatible.
Type '(handler: (event: DragEvent) => void) => void' is not assignable to type '(handler: (event: DragEvent) => void) => void'.
Types of parameters 'handler' and 'handler' are incompatible.
Type '(event: DragEvent) => void' is not assignable to type '(event: DragEvent) => void'.
Types of parameters 'event' and 'event' are incompatible.
Type 'DragEvent' is not assignable to type 'foo.DragEvent'.
Property 'foo' is missing in type 'DragEvent'.
Hi,
TS: 1.4
The following code:
Causes the compiler to issue an incomprehensible error message:
The relevant items are:
public bar
should have beenpublic bar(handler: (event: foo.DragEvent) => void)
foo.DragEvent
should have an additional methodfoo(): void;
(in order to distinguish it from the type inlib.d.ts
)Type 'Baz' is not assignable to type 'Baz'
to be printed there should be both a class and an interface calledBaz
.Related issues: #1419 #1796
The text was updated successfully, but these errors were encountered: