make default arguments {} instead of any

This commit is contained in:
Danny Cochran
2017-08-15 12:47:50 -07:00
committed by GitHub
parent 2da9431df1
commit d38522bd72

View File

@@ -164,7 +164,7 @@ interface MergeProps<TStateProps, TDispatchProps, TOwnProps, TMergedProps> {
(stateProps: TStateProps, dispatchProps: TDispatchProps, ownProps: TOwnProps): TMergedProps;
}
interface Options<TStateProps = any, TOwnProps = any, TMergedProps = any> extends ConnectOptions {
interface Options<TStateProps = {}, TOwnProps = {}, TMergedProps = {}> extends ConnectOptions {
/**
* If true, implements shouldComponentUpdate and shallowly compares the result of mergeProps,
* preventing unnecessary updates, assuming that the component is a “pure” component