mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-02-10 22:47:02 +08:00
[flow] Restrict ParamName to string (#5200)
This commit is contained in:
@@ -533,7 +533,7 @@ declare module 'react-navigation' {
|
||||
eventName: string,
|
||||
callback: NavigationEventCallback
|
||||
) => NavigationEventSubscription,
|
||||
getParam: <ParamName>(
|
||||
getParam: <ParamName: string>(
|
||||
paramName: ParamName,
|
||||
fallback?: $ElementType<
|
||||
$PropertyType<
|
||||
|
||||
Reference in New Issue
Block a user