package server-reason-react

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file Dom_storage.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
type 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" *)
OCaml

Innovation. Community. Security.