mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-01-12 22:51:18 +08:00
fix: add merge to the navigate types
This commit is contained in:
@@ -200,8 +200,13 @@ type NavigationHelpersCommon<
|
||||
*/
|
||||
navigate<RouteName extends keyof ParamList>(
|
||||
options:
|
||||
| { key: string; params?: ParamList[RouteName] }
|
||||
| { name: RouteName; key?: string; params: ParamList[RouteName] }
|
||||
| { key: string; params?: ParamList[RouteName]; merge?: boolean }
|
||||
| {
|
||||
name: RouteName;
|
||||
key?: string;
|
||||
params: ParamList[RouteName];
|
||||
merge?: boolean;
|
||||
}
|
||||
): void;
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user