/** * A Flux Standard Action * * @template P - The action payload * @template M - The action meta */ export interface FluxStandardAction

{ type: string; payload: P; meta?: M; } /** * A Leaf Standard Action * * @template P - The action payload * @template M - The action meta */ export interface LeafStandardAction

extends FluxStandardAction { leaf: LeafActionData; } /** * A Leaf Compound Action (as created by bundle) */ export interface LeafCompoundAction extends FluxStandardAction<(LeafStandardAction | LeafCompoundAction)[]> { leaf: { compound: true; bundled: string[]; }; } /** * The 'leaf' property of an action * created by the Redux-Leaves create API */ export interface LeafActionData { path: (string | number)[]; creatorKey: string; CREATOR_KEY: string; compound: false; custom?: boolean; } export declare type LeafActionTypeConfigFunction = (leaf: LeafActionData) => string; export declare type LeafActionTypeConfig = string | LeafActionTypeConfigFunction;