|
| 1 | +diff --git a/node_modules/@react-navigation/core/lib/typescript/src/types.d.ts b/node_modules/@react-navigation/core/lib/typescript/src/types.d.ts |
| 2 | +index a116b25..621590c 100644 |
| 3 | +--- a/node_modules/@react-navigation/core/lib/typescript/src/types.d.ts |
| 4 | ++++ b/node_modules/@react-navigation/core/lib/typescript/src/types.d.ts |
| 5 | +@@ -142,22 +142,22 @@ declare type NavigationHelpersCommon<ParamList extends ParamListBase, State exte |
| 6 | + * @param name Name of the route to navigate to. |
| 7 | + * @param [params] Params object for the route. |
| 8 | + */ |
| 9 | +- navigate<RouteName extends keyof ParamList>(...args: RouteName extends unknown ? undefined extends ParamList[RouteName] ? [screen: RouteName] | [screen: RouteName, params: ParamList[RouteName]] : [screen: RouteName, params: ParamList[RouteName]] : never): void; |
| 10 | ++ navigate<RouteName extends keyof ParamList>(...args: undefined extends ParamList[RouteName] |
| 11 | ++ ? [screen: RouteName] | [screen: RouteName, params: ParamList[RouteName]] |
| 12 | ++ : [screen: RouteName, params: ParamList[RouteName]]): void; |
| 13 | + /** |
| 14 | + * Navigate to a route in current navigation tree. |
| 15 | + * |
| 16 | + * @param route Object with `key` or `name` for the route to navigate to, and a `params` object. |
| 17 | + */ |
| 18 | +- navigate<RouteName extends keyof ParamList>(options: RouteName extends unknown ? { |
| 19 | +- key: string; |
| 20 | +- params?: ParamList[RouteName]; |
| 21 | +- merge?: boolean; |
| 22 | +- } | { |
| 23 | +- name: RouteName; |
| 24 | +- key?: string; |
| 25 | +- params: ParamList[RouteName]; |
| 26 | +- merge?: boolean; |
| 27 | +- } : never): void; |
| 28 | ++ navigate<RouteName extends keyof ParamList>(options: |
| 29 | ++ | { key: string; params?: ParamList[RouteName]; merge?: boolean } |
| 30 | ++ | { |
| 31 | ++ name: RouteName; |
| 32 | ++ key?: string; |
| 33 | ++ params: ParamList[RouteName]; |
| 34 | ++ merge?: boolean; |
| 35 | ++ }): void; |
| 36 | + /** |
| 37 | + * Reset the navigation state to the provided state. |
| 38 | + * |
| 39 | +@@ -324,14 +324,14 @@ export declare type RouteConfigComponent<ParamList extends ParamListBase, RouteN |
| 40 | + /** |
| 41 | + * React component to render for this screen. |
| 42 | + */ |
| 43 | +- component: ScreenComponentType<ParamList, RouteName>; |
| 44 | ++ component: React.ComponentType<any>; |
| 45 | + getComponent?: never; |
| 46 | + children?: never; |
| 47 | + } | { |
| 48 | + /** |
| 49 | + * Lazily get a React component to render for this screen. |
| 50 | + */ |
| 51 | +- getComponent: () => ScreenComponentType<ParamList, RouteName>; |
| 52 | ++ getComponent: () => React.ComponentType<any>; |
| 53 | + component?: never; |
| 54 | + children?: never; |
| 55 | + } | { |
0 commit comments