Expected Result
Maybe union types can be specified in any order:
?(Array<T> | T)
?(T | Array<T>)
Actual Result
The ordering does matter. Specifying the array first works correctly. While including the generic first causes an error.
I first noticed this error in React using flow version 0.53.1, but the examples provided above are for v0.59.0