Module Brr.App

module App: sig .. end


val env : string -> default:'a -> (string -> 'a) -> 'a
env var ~default parse lookups var in the environment, parses it with parse and returns the result. Lookups th the query string of window.location for the first matching var=value pair.

User requested quit

val quit : unit Note.event
quit occurs whenever the user requested to quit. The browser window is closing and it's your last chance to peform something.


val run : ?name:string -> (unit -> unit) -> unit