API / Dom / Storage2

Storage2

t

RESCRIPT
type t

getItem

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

setItem

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

removeItem

RESCRIPT
let removeItem: (t, string) => unit

clear

RESCRIPT
let clear: t => unit

key

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

length

RESCRIPT
let length: t => int

localStorage

RESCRIPT
let localStorage: t

sessionStorage

RESCRIPT
let sessionStorage: t