An even simpler example demonstrating the same problem, with a different error:
let f: array<int> => Belt.Set.Int.t = Belt.Set.Int.fromArray
yields:
[E] Line 1, column 38:
This function is a curried function where an uncurried function is expected
How do you specify a curried function type of arity 1?