UNPKG

@reduxjs/toolkit

Version:

The official, opinionated, batteries-included toolset for efficient Redux development

11 lines (10 loc) 747 B
import type { AnyAction, Middleware, ThunkDispatch } from '@reduxjs/toolkit'; import type { EndpointDefinitions, FullTagDescription } from '../../endpointDefinitions'; import type { RootState } from '../apiState'; import type { BuildMiddlewareInput } from './types'; export declare function buildMiddleware<Definitions extends EndpointDefinitions, ReducerPath extends string, TagTypes extends string>(input: BuildMiddlewareInput<Definitions, ReducerPath, TagTypes>): { middleware: Middleware<{}, RootState<Definitions, string, ReducerPath>, ThunkDispatch<any, any, AnyAction>>; actions: { invalidateTags: import("@reduxjs/toolkit").ActionCreatorWithPayload<(TagTypes | FullTagDescription<TagTypes>)[], string>; }; };