package server-reason-react
Source file Dom_storage.ml
1 2 3 4 5 6 7 8 9 10type t external getItem : string -> string option = "getItem" [@@mel.send.pipe: t] [@@mel.return null_to_opt] external setItem : string -> string -> unit = "setItem" [@@mel.send.pipe: t] external removeItem : string -> unit = "removeItem" [@@mel.send.pipe: t] external clear : unit = "clear" [@@mel.send.pipe: t] external key : int -> string option = "key" [@@mel.send.pipe: t] [@@mel.return null_to_opt] external length : t -> int = "length" [@@mel.get] (* external localStorage : t = "localStorage" *) (* external sessionStorage : t = "sessionStorage" *)