UNPKG

571 BTypeScriptView Raw
1import type { Middleware } from 'redux';
2export interface ActionCreatorInvariantMiddlewareOptions {
3 /**
4 * The function to identify whether a value is an action creator.
5 * The default checks for a function with a static type property and match method.
6 */
7 isActionCreator?: (action: unknown) => action is Function & {
8 type?: unknown;
9 };
10}
11export declare function getMessage(type?: unknown): string;
12export declare function createActionCreatorInvariantMiddleware(options?: ActionCreatorInvariantMiddlewareOptions): Middleware;