/*! Copyright (c) 2019, XAPPmedia */ import { KeyValue, KeyValueStore } from "./KeyValueStore"; export type StorageActionAdd = "ADD"; export type StorageActionAppend = "APPEND"; export type StorageActionDelete = "DELETE"; export type StorageActionSet = "SET"; export type StorageActionSubtract = "SUBTRACT"; export type StorageActionType = StorageActionAdd | StorageActionAppend | StorageActionDelete | StorageActionSet | StorageActionSubtract; export type StorageActionExecutor = (storage: S, keyValue: KeyValue) => S;