-
Notifications
You must be signed in to change notification settings - Fork 0
API reference
setItem(key: string, value: any): undefinedThe setItem method receives two values - the key and the value that should be set. The method is not returning anything. The key will be an observable - no matter if the key already existed or is a new key.
getItem(key: string): anyThe getItem method receives one argument - the key we want to access. It returns the value of the key.
removeItem(key: string): undefinedThe removeItem method receives one argument - the key we want to remove from the store. The return value is always undefined.
increaseItem(key: string, amount: number = 1): undefinedThe increaseItem method will increase the given key by amount (default is 1). The return value is undefined.
decreaseItem(key: string, amount: number = 1): undefinedThe decreaseItem method will decrease the given key by amount (default is 1). The return value is undefined.
A basic key/value interface
An interface for the store constructor
An interface for the store instance. This is the interface you'll want to use trough your application (if you're using TypeScript).