format
This commit is contained in:
parent
3a30f6ce59
commit
12fae0d238
|
@ -53,8 +53,8 @@ export type ReduxMiddleware = (
|
||||||
|
|
||||||
type Reducer = (state: any, action: ReduxAction) => any;
|
type Reducer = (state: any, action: ReduxAction) => any;
|
||||||
|
|
||||||
type StoreCreator = (reducer: Reducer, preloadedState?: any) => ReduxStoreHandler
|
type StoreCreator = (reducer: Reducer, preloadedState?: any) => ReduxStoreHandler;
|
||||||
type StoreEnhancer = (next: StoreCreator) => StoreCreator
|
type StoreEnhancer = (next: StoreCreator) => StoreCreator;
|
||||||
|
|
||||||
function mergeData(state, data) {
|
function mergeData(state, data) {
|
||||||
if (!data) {
|
if (!data) {
|
||||||
|
|
|
@ -92,7 +92,7 @@ type Connector<OwnProps, MergedProps> = (Component: OriginalComponent<MergedProp
|
||||||
type ConnectOption<State = any> = {
|
type ConnectOption<State = any> = {
|
||||||
areStatesEqual?: (oldState: State, newState: State) => boolean;
|
areStatesEqual?: (oldState: State, newState: State) => boolean;
|
||||||
context?: Context;
|
context?: Context;
|
||||||
forwardRef?: boolean
|
forwardRef?: boolean;
|
||||||
}
|
}
|
||||||
|
|
||||||
export function connect<StateProps, DispatchProps, OwnProps, MergedProps>(
|
export function connect<StateProps, DispatchProps, OwnProps, MergedProps>(
|
||||||
|
|
Loading…
Reference in New Issue