Storage
t
type t
getItem
external getItem: (string, t) => option<string> = "getItem"
setItem
external setItem: (string, string, t) => unit = "setItem"
removeItem
external removeItem: (string, t) => unit = "removeItem"
clear
external clear: t => unit = "clear"
key
external key: (int, t) => option<string> = "key"
length
external length: t => int = "length"
localStorage
@val external localStorage: t = "localStorage"
sessionStorage
@val external sessionStorage: t = "sessionStorage"