UNPKG

ntt-flow

Version:

The sequence of initialization, modification, aggregation, or other processes through which a data entity passes from instantiation to persistence.

43 lines (42 loc) 1.05 kB
import { Reducer } from './Reducer'; declare const CREATE = "CREATE"; declare const DESTROY = "DESTROY"; declare const DISCARD = "DISCARD"; declare const MERGE = "MERGE"; declare const UPDATE = "UPDATE"; export declare const odataActions: { CREATE: string; DESTROY: string; DISCARD: string; MERGE: string; UPDATE: string; }; interface PersistenceAction { CREATE: { path: string[]; query: FlatObject; type: typeof CREATE; }; DESTROY: { path: string[]; payload: Content; type: typeof DESTROY; }; DISCARD: { path: string[]; payload: Content; type: typeof DISCARD; }; MERGE: { path: string[]; payload: Content; type: typeof MERGE; }; UPDATE: { path: string[]; payload: Content; type: typeof UPDATE; }; } declare const reducePersistence: Reducer<any, PersistenceAction[keyof PersistenceAction]>; export default reducePersistence;