Make all arguments for Options optional

next-redux-wrapper uses Options -- a separate PR can add arguments there.
This commit is contained in:
Danny Cochran
2017-08-15 07:47:06 -07:00
committed by GitHub
parent 3342c4d879
commit 2da9431df1
+2 -2
View File
@@ -164,7 +164,7 @@ interface MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps> {
(stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps): TMergedProps;
}
interface Options<TStateProps, TOwnProps, TMergedProps = any> extends ConnectOptions {
interface Options<TStateProps = any, TOwnProps = any, TMergedProps = any> extends ConnectOptions {
/**
* If true, implements shouldComponentUpdate and shallowly compares the result of mergeProps,
* preventing unnecessary updates, assuming that the component is a “pure” component
@@ -181,7 +181,7 @@ interface Options<TStateProps, TOwnProps, TMergedProps = any> extends ConnectOpt
areStatesEqual?: (nextState: any, prevState: any) => boolean;
/**
* When pure, compares incoming store state to its previous value.
* When pure, compares incoming props to its previous value.
* @default shallowEqual
*/
areOwnPropsEqual?: (nextOwnProps: TOwnProps, prevOwnProps: TOwnProps) => boolean;