From c3e9e4578e98aa5b0635949a288e19eaeec12c85 Mon Sep 17 00:00:00 2001 From: Thibault Malbranche Date: Tue, 19 Nov 2019 22:58:44 +0100 Subject: [PATCH] fix: allow passing partial params to `setParams` (#177) Since params get merged, no need to send them all I think :) --- packages/core/src/types.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/core/src/types.tsx b/packages/core/src/types.tsx index 3ebd6293..684a163f 100644 --- a/packages/core/src/types.tsx +++ b/packages/core/src/types.tsx @@ -371,7 +371,7 @@ export type NavigationHelpers< * @param params Params object for the current route. */ setParams( - params: ParamList[RouteName] + params: Partial ): void; }; @@ -409,7 +409,7 @@ export type NavigationProp< * * @param params Params object for the current route. */ - setParams(params: ParamList[RouteName]): void; + setParams(params: Partial): void; /** * Update the options for the route.