For the specific case I’d write it this way:
module SomeLib = {
@module("xx") @scope("default")
external exec: unit => int = "exec"
}
SomeLib.exec()
For the specific case I’d write it this way:
module SomeLib = {
@module("xx") @scope("default")
external exec: unit => int = "exec"
}
SomeLib.exec()