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
node_modules/immutable/dist/immutable.js.flow:464
464: ): List<$NonMaybeType<T>>;
^^^^^^^^^^^^^^^^^^^^^^ List. This type is incompatible with
116: ): this;
^^^^ some incompatible instantiation of `this`
In order to resolve it, we have to replace this from the superclass implementation with _Iterable<K, $NonMaybeType<V>, KI, II, SI> and then insert overrides for all concrete types analogically to the List override. The same is done for .map method. Those workarounds exist because of flow limitations in handling generic class hierarchy.
The text was updated successfully, but these errors were encountered:
This currently throws a flow error
It is implemented in
Array
incore
. (Although the implementation is not ideal)For
immutable
it can be fixed with appropriate overrides for all types. For instance, forList<T>
the override should look like this.This works but causes the following flow error:
In order to resolve it, we have to replace
this
from the superclass implementation with_Iterable<K, $NonMaybeType<V>, KI, II, SI>
and then insert overrides for all concrete types analogically to theList
override. The same is done for.map
method. Those workarounds exist because of flow limitations in handling generic class hierarchy.The text was updated successfully, but these errors were encountered: