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

Commit 9b07229

Browse files
jshosomichiAshoat
authored andcommitted
Update index.d.ts for compile errers (#56)
1 parent 8b2eb1e commit 9b07229

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

index.d.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ declare module 'react-navigation-redux-helpers' {
77
NavigationDispatch,
88
NavigationScreenProp
99
} from 'react-navigation';
10-
import React from 'react';
10+
import * as React from 'react';
1111
import { Middleware, Reducer, Dispatch } from 'redux';
1212

1313
export type Navigator = NavigationContainer;
@@ -19,8 +19,8 @@ declare module 'react-navigation-redux-helpers' {
1919

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

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

0 commit comments

Comments
 (0)