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

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

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.

2 Likes

Valid point. One approach is to use:

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