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