diff --git a/types/react-redux/index.d.ts b/types/react-redux/index.d.ts index ea6c1c71c8..5adeb43612 100644 --- a/types/react-redux/index.d.ts +++ b/types/react-redux/index.d.ts @@ -352,7 +352,7 @@ export function connectAdvanced( export type SelectorFactory = (dispatch: Dispatch, factoryOptions: TFactoryOptions) => Selector; -export type Selector = TOwnProps extends null +export type Selector = TOwnProps extends null | undefined ? (state: S) => TProps : (state: S, ownProps: TOwnProps) => TProps;