fix: add merge to the navigate types (#9777)

This commit is contained in:
Zhigang Fang
2021-08-03 17:24:17 +08:00
committed by GitHub
parent 8f4daef5b3
commit be8532c086

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