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
{{ message }}
Repository navigation
Commit a418cb7
Browse filesBrowse the repository at this point in the historyBrowse files
Compare without reporting errors before reporting them
Reporting the errors of a comparison builds their messages as it goes,
printing the types involved, also for nested comparisons whose errors
are discarded once the comparison falls back to one that succeeds, as
comparing type arguments by variance does before comparing types
structurally. With noErrorTruncation, printing large types that way can
take minutes and gigabytes even when no error is reported at all, and
the instantiations it makes can report excessive depth (TS2589) where
checking alone does not. A comparison that reports errors first
compares without reporting them, and compares again, reporting them,
only if that fails. One elaboration changes, as the comparison that
reports errors finds a different failing member first, and traces list
types in a different order.
!!! error TS2430: The types returned by 'map(...).size' are incompatible between these types.
386
-
!!! error TS2430: Type 'number | undefined' is not assignable to type 'number'.
387
-
!!! error TS2430: Type 'undefined' is not assignable to type 'number'.
387
+
!!! error TS2430: The types returned by 'map(...).filter' are incompatible between these types.
388
+
!!! error TS2430: Type '{ <F extends M>(predicate: (value: M, key: K, iter: Seq<K, M>) => value is F, context?: any): Seq<K, F>; (predicate: (value: M, key: K, iter: Seq<K, M>) => any, context?: any): Seq<K, M>; }' is not assignable to type '{ <F extends M>(predicate: (value: M, key: K, iter: Collection<K, M>) => value is F, context?: any): Collection<K, F>; (predicate: (value: M, key: K, iter: Collection<K, M>) => any, context?: any): Collection<K, M>; }'.
389
+
!!! error TS2430: Types of parameters 'predicate' and 'predicate' are incompatible.
390
+
!!! error TS2430: Type '(value: M, key: K, iter: Collection<K, M>) => any' is not assignable to type '(value: M, key: K, iter: Seq<K, M>) => value is any'.
391
+
!!! error TS2430: Signature '(value: M, key: K, iter: Collection<K, M>): any' must be a type predicate.
0 commit comments