API / Dom / Dom_storage

Dom_storage

t

type t = Dom_storage2.t

getItem

let getItem: (t, string) => option<string>

getItem

let getItem: (string, t) => option<string>

setItem

let setItem: (t, string, string) => unit

setItem

let setItem: (string, string, t) => unit

removeItem

let removeItem: (t, string) => unit

removeItem

let removeItem: (string, t) => unit

clear

let clear: t => unit

key

let key: (t, int) => option<string>

key

let key: (int, t) => option<string>

length

let length: t => int

localStorage

let localStorage: t

sessionStorage

let sessionStorage: t