Skip to content
This repository was archived by the owner on Jan 18, 2022. It is now read-only.

Commit 7bc4e49

Browse files
wdAshoat
authored andcommitted
[TypeScript] Allow passed-on props in reduxifyNavigator HOC (#72)
``` function reduxifyNavigator<State: NavigationState, Props: RequiredProps<State>>( ``` According to source code, `reduxifyNavigator` should accept `State` and `Props` as it's params.
1 parent 0005c33 commit 7bc4e49

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

index.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ declare module 'react-navigation-redux-helpers' {
1919

2020
export function createNavigationReducer(navigator: Navigator): Reducer<ReducerState>;
2121

22-
export function reduxifyNavigator<S>(
22+
export function reduxifyNavigator<S, P>(
2323
navigator: Navigator,
2424
key: string,
25-
): React.ComponentType<{ state: NavigationState; dispatch: NavigationDispatch }>;
25+
): React.ComponentType<{ state: NavigationState; dispatch: NavigationDispatch } & P>;
2626
}

0 commit comments

Comments
 (0)