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) • 967 B
TypeScript
import { Reducer } from './Reducer';
declare const DELETE = "DELETE";
declare const GET = "GET";
declare const PATCH = "PATCH";
declare const POST = "POST";
declare const PUT = "PUT";
export declare const odataActions: {
DELETE: string;
GET: string;
PATCH: string;
POST: string;
PUT: string;
};
interface ODataAction {
DELETE: {
path: string[];
query: FlatObject;
type: typeof DELETE;
};
GET: {
path: string[];
payload: Content;
type: typeof GET;
};
PATCH: {
path: string[];
payload: Content;
type: typeof PATCH;
};
POST: {
path: string[];
payload: Content;
type: typeof POST;
};
PUT: {
path: string[];
payload: Content;
type: typeof PUT;
};
}
declare const reduceOData: Reducer<any, ODataAction[keyof ODataAction]>;
export default reduceOData;