Closed pronebird closed 6 years ago
I realized that Flow picks up the definition for function on the first evaluation so the right thing to do is to add a generic parameter, i.e:
const Constraint = <T>(constraintValue: Node<T>) => oneOf(string, object({
only: constraintValue,
}));
Hi,
I am having lots of issues after upgrading to Flow 0.66.
I have the following helper for
oneOf()
:Emits the following error when used with Flow 0.66:
It seems that once I nest
oneOf
something terrible happens.