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
Giving a general type to flat requires some type machinery not (yet) available in Flow. The simple case is somewhat easy, and depending on your use case, you might be able to work around the issue by defining some overloaded function like:
Flow version: 0.198.2
Expected behavior
The resulting array should be all numbers.
Actual behavior
The problem seems to be the type definition itself, why is it like that?
https://github.com/facebook/flow/blob/main/lib/core.js#L832
The text was updated successfully, but these errors were encountered: