diff --git a/types/react-navigation/v2/index.d.ts b/types/react-navigation/v2/index.d.ts index 36251eba5b..561558d540 100644 --- a/types/react-navigation/v2/index.d.ts +++ b/types/react-navigation/v2/index.d.ts @@ -46,11 +46,11 @@ export type HeaderMode = 'float' | 'screen' | 'none'; export interface HeaderForceInset { horizontal?: string; - vertical?: string, - left?: string, - right?: string, - top?: string, - bottom?: string, + vertical?: string; + left?: string; + right?: string; + top?: string; + bottom?: string; } export interface HeaderProps extends NavigationSceneRendererProps { @@ -665,8 +665,8 @@ export interface NavigationContainerProps { action: NavigationAction ) => void | null | undefined; navigation?: NavigationScreenProp; - persistenceKey?: string | null | undefined; - renderLoadingExperimental?: React.ComponentType<{}>, + persistenceKey?: string | null; + renderLoadingExperimental?: React.ComponentType; screenProps?: any; navigationOptions?: O; style?: StyleProp; @@ -987,14 +987,14 @@ export interface NavigationDescriptor { key: string; state: NavigationLeafRoute | NavigationStateRoute; navigation: NavigationScreenProp; - getComponent: () => React.ComponentType<{}>; + getComponent: () => React.ComponentType; } export type NavigationView = React.ComponentType<{ descriptors: { [key: string]: NavigationDescriptor }; } & NavigationInjectedProps>; -export function createNavigator( +export function createNavigator( view: NavigationView, router: NavigationRouter, navigatorConfig?: {} | null, diff --git a/types/react-navigation/v2/tslint.json b/types/react-navigation/v2/tslint.json index 3db14f85ea..b1439230db 100644 --- a/types/react-navigation/v2/tslint.json +++ b/types/react-navigation/v2/tslint.json @@ -1 +1,7 @@ -{ "extends": "dtslint/dt.json" } +{ + "extends": "dtslint/dt.json", + "rules": { + // TODO + "no-any-union": false + } +}