heitorgandolfi/ipe-elm/1.0.0

Ipe

Elegant Storage for Elm

Storage Types

= Local
| Session

Storage type - Local or Session storage

Convert storage type to string for JavaScript interop

Error Types

type Error
= DecodeError Error
| NotFound

Storage operation errors

Commands

save : StorageType -> String -> Value -> Value

Create a save command payload

load : StorageType -> String -> Value

Create a load command payload

remove : StorageType -> String -> Value

Create a remove command payload

Decoders

decodeStorageResult : Decoder a -> Value -> Result Error a

Decode storage results from JavaScript