Skip to content

Commit a652da9

Browse files
committed
Restore optional generic for Selector type
1 parent ae2918c commit a652da9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/connect/selectorFactory.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ export type SelectorFactory<S, TProps, TOwnProps, TFactoryOptions> = (
77
factoryOptions: TFactoryOptions
88
) => Selector<S, TProps, TOwnProps>
99

10-
export type Selector<S, TProps, TOwnProps> = TOwnProps extends null | undefined
10+
export type Selector<S, TProps, TOwnProps = null> = TOwnProps extends
11+
| null
12+
| undefined
1113
? (state: S) => TProps
1214
: (state: S, ownProps: TOwnProps) => TProps
1315

0 commit comments

Comments
 (0)