Storage2
The same as Dom.Storage, but with t
on first argument position for proper ->
usage.
t
REStype t
getItem
RESexternal getItem: (t, string) => option<string> = "getItem"
setItem
RESexternal setItem: (t, string, string) => unit = "setItem"
removeItem
RESexternal removeItem: (t, string) => unit = "removeItem"
clear
RESexternal clear: t => unit = "clear"
key
RESexternal key: (t, int) => option<string> = "key"
length
RESexternal length: t => int = "length"
localStorage
RES@val external localStorage: t = "localStorage"
sessionStorage
RES@val external sessionStorage: t = "sessionStorage"