Types for the LocalStorage module.
A convenience type for values in the store. Same as Json.Encode.Value.
The operation that caused your wrapper Msg to be sent.
For real ports, you'll only ever see GetItemOperation.
For simluated ports, you'll see the others as well, because you have to save the updated state.
Wrap up your ports.
You'll usually create one of these with LocalStorage.realRealPorts or DictPorts.make.
Your update Msg will receive one, if you're using simulated ports.
A Dict that stores key/value pairs for the simulated ports.
The required signature of your localStorage.getItem port.
The required signature of your localStorage.setItem port.
The required signature of your localStorage.clear port.
Dict.empty
A convenience type for keys in the store. Same as
String.