Update index.d.ts

This commit is contained in:
Vincent Langlet
2019-01-24 22:13:38 +01:00
committed by GitHub
parent cfc7e73a3d
commit 2b40beb290
+1 -1
View File
@@ -352,7 +352,7 @@ export function connectAdvanced<S, TProps, TOwnProps, TFactoryOptions = {}>(
export type SelectorFactory<S, TProps, TOwnProps, TFactoryOptions> =
(dispatch: Dispatch<Action>, factoryOptions: TFactoryOptions) => Selector<S, TProps, TOwnProps>;
export type Selector<S, TProps, TOwnProps = null> = TOwnProps extends null
export type Selector<S, TProps, TOwnProps = null> = TOwnProps extends null | undefined
? (state: S) => TProps
: (state: S, ownProps: TOwnProps) => TProps;