-
Notifications
You must be signed in to change notification settings - Fork 471
Closed
Labels
Description
When using @bs.string and @bs.obj together, I get an unexpected result. I think the code itself should self-explained
[@bs.obj] external makeProps: (~foo: [@bs.string] [ |`bar |`baz ] =?, unit) => _ = "";
let make = (~foo=?, _children) => {
Js.log(
makeProps(~foo?, ())
)
};
make(~foo=`bar, ());
The expected result should be {foo: "bar"}
zploskey