9 lines
559 B
TypeScript
9 lines
559 B
TypeScript
|
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;
|