Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
fix: allow passing partial params to setParams (#177)
Browse files Browse the repository at this point in the history
Since params get merged, no need to send them all I think :)
  • Loading branch information
Titozzz authored and satya164 committed Nov 19, 2019
1 parent cb426d0 commit c3e9e45
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ export type NavigationHelpers<
* @param params Params object for the current route.
*/
setParams<RouteName extends keyof ParamList>(
params: ParamList[RouteName]
params: Partial<ParamList[RouteName]>
): void;
};

Expand Down Expand Up @@ -409,7 +409,7 @@ export type NavigationProp<
*
* @param params Params object for the current route.
*/
setParams(params: ParamList[RouteName]): void;
setParams(params: Partial<ParamList[RouteName]>): void;

/**
* Update the options for the route.
Expand Down

0 comments on commit c3e9e45

Please sign in to comment.