Data Structures
Store Update​
type StoreUpdate = StoreSet | StoreDelete
Store Set​
interface StoreSet {
id: number,
key: string,
value: string
}
Store Delete​
interface StoreDelete {
id: number,
key: string
}
Store State​
// key (string), value(string)
type StoreState = Map<string, string>
Store Map​
// store (string), state(StoreState)
type StoreMap = Map<string, StoreState>