Remove any union type

This commit is contained in:
Tim Wang
2018-03-26 10:41:58 +08:00
parent 8731027ec5
commit ebf695c819
2 changed files with 2 additions and 8 deletions

View File

@@ -175,7 +175,6 @@ export type NavigationScreenConfig<Options> =
export type NavigationComponent =
NavigationScreenComponent<any, any>
| NavigationNavigator<any, any, any>
| any;
export type NavigationScreenComponent<
Options = {},
@@ -189,7 +188,7 @@ export type NavigationNavigator<
Props = {}
> = React.ComponentType<NavigationNavigatorProps<Options, State> & Props> & {
router: NavigationRouter<State, Options>,
navigationOptions?: NavigationScreenConfig<Options> | any,
navigationOptions?: NavigationScreenConfig<Options>,
};
export interface NavigationParams {

View File

@@ -1,6 +1 @@
{
"extends": "dtslint/dt.json",
"rules": {
"no-any-union": false
}
}
{ "extends": "dtslint/dt.json" }