I have a function with optional lebeled parameter, for example:
let foo = (~name=1, value) => value + name
And in the interface file:
let foo: (~?name: int, int) => int
But the interface file is always get reformated to
let foo: (~name: int, int) => int
And the compiler will complain:
Values do not match:
let foo: (~?name: int, int) => int
is not included in
let foo: (~name: int, int) => int
So is there any other way to write interface for these functions?