actionCreatorInvariantMiddleware.d.ts 571 B

123456789101112
  1. import type { Middleware } from 'redux';
  2. export 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. }
  11. export declare function getMessage(type?: unknown): string;
  12. export declare function createActionCreatorInvariantMiddleware(options?: ActionCreatorInvariantMiddlewareOptions): Middleware;