Files
coopgo/node_modules/@reduxjs/toolkit/dist/actionCreatorInvariantMiddleware.d.ts
sgauthier 6e64e138e2
All checks were successful
Publish To Prod / deploy_and_publish (push) Successful in 35s
planning
2024-10-14 09:15:30 +02:00

13 lines
571 B
TypeScript

import type { Middleware } from 'redux';
export interface ActionCreatorInvariantMiddlewareOptions {
/**
* The function to identify whether a value is an action creator.
* The default checks for a function with a static type property and match method.
*/
isActionCreator?: (action: unknown) => action is Function & {
type?: unknown;
};
}
export declare function getMessage(type?: unknown): string;
export declare function createActionCreatorInvariantMiddleware(options?: ActionCreatorInvariantMiddlewareOptions): Middleware;