mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
Update index.d.ts
This commit is contained in:
Vendored
+1
-1
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user