mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-07 16:27:06 +00:00
The redux typings use `export`, not `declare module`, and so don't need /// <reference types="redux" /> as well as the import.
12 lines
643 B
TypeScript
12 lines
643 B
TypeScript
// Type definitions for redux-immutable-state-invariant v2.0.0
|
|
// Project: https://github.com/leoasis/redux-immutable-state-invariant
|
|
// Definitions by: Remo H. Jansen <https://github.com/remojansen>, Ben Rogers <https://github.com/highflying>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
import * as Redux from "redux";
|
|
|
|
type isImmutableDefault = (value: any) => boolean;
|
|
type immutableStateInvariantMiddlewareInterface = (isImmutable?: isImmutableDefault) => Redux.Middleware;
|
|
declare let immutableStateInvariantMiddleware: immutableStateInvariantMiddlewareInterface;
|
|
export default immutableStateInvariantMiddleware;
|