fix: add merge to the navigate types

This commit is contained in:
Kyle Fang
2021-08-02 12:09:53 +08:00
parent 2084fb859f
commit cb8d8cc1e7

View File

@@ -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;
/**