Ended up using
let mathRect: (t, Vec2.t, int, int) => Math.Shape.t = %raw(`
function (k, pos, width, height) {
return new k.Rect(pos, width, height);
}
`)
Ended up using
let mathRect: (t, Vec2.t, int, int) => Math.Shape.t = %raw(`
function (k, pos, width, height) {
return new k.Rect(pos, width, height);
}
`)