API / Dom / Dom_storage2

Dom_storage2

t

type t

getItem

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

setItem

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

removeItem

let removeItem: (t, string) => unit

clear

let clear: t => unit

key

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

length

let length: t => int

localStorage

let localStorage: t

sessionStorage

let sessionStorage: t