mirror of
https://github.com/zhigang1992/react-navigation.git
synced 2026-04-29 04:45:19 +08:00
[flow] Restrict ParamName to string (#5200)
This commit is contained in:
committed by
Ashoat Tevosyan
parent
e34c724106
commit
cfa1eb2eff
2
flow/react-navigation.js
vendored
2
flow/react-navigation.js
vendored
@@ -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