mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Updated redux-immutable-state-invariant for v2.0.0 (#16040)
This commit is contained in:
parent
4340843152
commit
0691dc0101
@ -1,6 +1,6 @@
|
||||
// Type definitions for react-router-redux v1.2.0
|
||||
// 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>
|
||||
// Definitions by: Remo H. Jansen <https://github.com/remojansen>, Ben Rogers <https://github.com/highflying>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
/// <reference types="redux" />
|
||||
@ -10,4 +10,4 @@ import * as Redux from "redux";
|
||||
type isImmutableDefault = (value: any) => boolean;
|
||||
type immutableStateInvariantMiddlewareInterface = (isImmutable?: isImmutableDefault) => Redux.Middleware;
|
||||
declare let immutableStateInvariantMiddleware: immutableStateInvariantMiddlewareInterface;
|
||||
export = immutableStateInvariantMiddleware;
|
||||
export default immutableStateInvariantMiddleware;
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
|
||||
import { applyMiddleware } from "redux";
|
||||
import * as immutableStateInvariantMiddleware from "redux-immutable-state-invariant";
|
||||
import immutableStateInvariantMiddleware from "redux-immutable-state-invariant";
|
||||
|
||||
applyMiddleware(immutableStateInvariantMiddleware());
|
||||
|
||||
Loading…
Reference in New Issue
Block a user