Check that the JS code is a function of the arity specified by the type annotation. E.g.: this is fine as the arity of the type matches the arity of JS. ```res let canUseCanvas: unit => bool = %raw(` function canUseCanvas() { return !!document.createElement('canvas').getContext; } `) ```