Brr : register a onMouseUp function on global (window) object

      Brr.Ev.listen Brr.Ev.mouseup (fun _e -> Brr.Console.log [ "onMouseUp" ]) (;

Everything type checks, except for the last part. How do I get the global window object in a type correct manner ?

Why don’t you reply with the answer you found or explain why the question is not relevant instead of deleting yours posts. Deleting post repeatedly generate noise for everybody with no added value.


Valid point. One approach is to use:

(Brr.Document.as_target Brr.G.document)