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
test.js:117
5: const bar: Foo = foo.find((val: Foo) => val.id > 1)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ undefined. This type is incompatible with
5: const bar: Foo = foo.find((val: Foo) => val.id > 1)
^^^ object type
The text was updated successfully, but these errors were encountered:
Everything below was tested with flow-bin 0.41.0, where the following declaration is in place:
In order to get this past Flow, I have to
const bar: any
. Curiously, this works:If I use an inexact type, I get a more generic error:
The text was updated successfully, but these errors were encountered: