Brr_io.StorageStorage objects.
See Web Storage API
The type for Storage objects.
val local : Brr.Window.t -> tlocal w is the storage saved accross page sessions for the window's origin.
val session : Brr.Window.t -> tsession w is the storage cleared when the page session ends for the window's origin.
val length : t -> intlength s is the number of items in s.
key s i is the name of the ith key. (N.B. local storage can race with other tabs)
val set_item : t -> Jstr.t -> Jstr.t -> (unit, Jv.Error.t) Stdlib.resultset_item s k v sets the value of k to v in s. An error is returned if the value could not be set (no permission or quota exceeded).
remove_item s k removes the value of k from s. If k has no value this does nothing.
module Ev : sig ... endStorage event.