Skip to content

Commit 55482ec

Browse files
authored
Export SetURLSearchParams type (#10444)
1 parent 4ccdc11 commit 55482ec

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
"react-router-dom": patch
3+
"react-router-native": patch
4+
---
5+
6+
Export `SetURLSearchParams` type

packages/react-router-dom/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -916,7 +916,7 @@ export function useSearchParams(
916916
return [searchParams, setSearchParams];
917917
}
918918

919-
type SetURLSearchParams = (
919+
export type SetURLSearchParams = (
920920
nextInit?:
921921
| URLSearchParamsInit
922922
| ((prev: URLSearchParams) => URLSearchParamsInit),

packages/react-router-native/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ export function useSearchParams(
323323
return [searchParams, setSearchParams];
324324
}
325325

326-
type SetURLSearchParams = (
326+
export type SetURLSearchParams = (
327327
nextInit?:
328328
| URLSearchParamsInit
329329
| ((prev: URLSearchParams) => URLSearchParamsInit),

0 commit comments

Comments
 (0)