mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-03-06 22:39:41 +08:00
fix: fix the type of NavigationJumpToActionPayload (#6210)
As mentioned in https://reactnavigation.org/docs/en/switch-actions.html the param which's name is 'key' of `SwitchActions.jumpTo()` should be optional
This commit is contained in:
committed by
Satyajit Sahoo
parent
3aee211c73
commit
2b27bcd134
2
typescript/react-navigation.d.ts
vendored
2
typescript/react-navigation.d.ts
vendored
@@ -345,7 +345,7 @@ declare module 'react-navigation' {
|
||||
|
||||
export interface NavigationJumpToActionPayload {
|
||||
routeName: string;
|
||||
key: string;
|
||||
key?: string;
|
||||
params?: NavigationParams;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user