Skip to content

Commit

Permalink
[flow] Restrict ParamName to string (#5200)
Browse files Browse the repository at this point in the history
  • Loading branch information
AnneKlapwijk authored and Ashoat committed Nov 6, 2018
1 parent e34c724 commit cfa1eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/react-navigation.js
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ declare module 'react-navigation' {
eventName: string,
callback: NavigationEventCallback
) => NavigationEventSubscription,
getParam: <ParamName>(
getParam: <ParamName: string>(
paramName: ParamName,
fallback?: $ElementType<
$PropertyType<
Expand Down

0 comments on commit cfa1eb2

Please sign in to comment.