UNPKG

ntt-flow

Version:

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

22 lines (21 loc) 529 B
import { Reducer } from './Reducer'; declare const FIND = "FIND"; declare const QUERY = "QUERY"; export declare const fetchActions: { FIND: string; QUERY: string; }; interface FetchAction { FIND: { path: string[]; query: FlatObject; type: typeof FIND; }; QUERY: { path: string[]; payload: Content; type: typeof QUERY; }; } declare const reducePersistence: Reducer<any, FetchAction[keyof FetchAction]>; export default reducePersistence;