updux/dist/effects.d.ts

9 lines
559 B
TypeScript
Raw Normal View History

2025-01-31 18:16:41 +00:00
import * as rtk from '@reduxjs/toolkit';
import { AugmentedMiddlewareAPI } from './types.js';
export interface EffectMiddleware<D, A = rtk.AnyAction> {
(api: AugmentedMiddlewareAPI<D>): (next: rtk.Dispatch<rtk.AnyAction>) => (action: A) => any;
}
export declare function buildEffects(localEffects: any, subduxes?: {}): any[];
export declare function buildEffectsMiddleware(effects?: any[], actions?: {}, selectors?: {}): (api: any) => (originalNext: any) => any;
export declare const augmentMiddlewareApi: (api: any, actions: any, selectors: any) => any;