mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
26 lines
1.5 KiB
Diff
26 lines
1.5 KiB
Diff
--- old.covariantCallbacks.errors.txt
|
|
+++ new.covariantCallbacks.errors.txt
|
|
@@= skipped -9, +9 lines =@@
|
|
Property 'b' is missing in type 'A' but required in type 'B'.
|
|
covariantCallbacks.ts(43,5): error TS2322: Type 'AList2' is not assignable to type 'BList2'.
|
|
Types of property 'forEach' are incompatible.
|
|
- Types of parameters 'cb' and 'cb' are incompatible.
|
|
- Type 'void' is not assignable to type 'boolean'.
|
|
+ Type '(cb: (item: A) => boolean) => void' is not assignable to type '(cb: (item: A) => void) => void'.
|
|
+ Types of parameters 'cb' and 'cb' are incompatible.
|
|
+ Type 'void' is not assignable to type 'boolean'.
|
|
covariantCallbacks.ts(56,5): error TS2322: Type 'AList3' is not assignable to type 'BList3'.
|
|
Types of property 'forEach' are incompatible.
|
|
Type '(cb: (item: A) => void) => void' is not assignable to type '(cb: (item: A, context: any) => void) => void'.
|
|
@@= skipped -87, +88 lines =@@
|
|
~
|
|
!!! error TS2322: Type 'AList2' is not assignable to type 'BList2'.
|
|
!!! error TS2322: Types of property 'forEach' are incompatible.
|
|
-!!! error TS2322: Types of parameters 'cb' and 'cb' are incompatible.
|
|
-!!! error TS2322: Type 'void' is not assignable to type 'boolean'.
|
|
+!!! error TS2322: Type '(cb: (item: A) => boolean) => void' is not assignable to type '(cb: (item: A) => void) => void'.
|
|
+!!! error TS2322: Types of parameters 'cb' and 'cb' are incompatible.
|
|
+!!! error TS2322: Type 'void' is not assignable to type 'boolean'.
|
|
}
|
|
|
|
interface AList3 {
|