Skip to content

Commit

Permalink
try type fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jtoar committed Sep 3, 2022
1 parent ec0d49d commit 76020e1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/router/src/active-route-loader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ interface Props {
path: string
spec: Spec
delay?: number
params?: Record<string, string>
params?: Record<string, unknown>
whileLoadingPage?: () => React.ReactElement | null
children?: React.ReactNode
}
Expand Down
4 changes: 2 additions & 2 deletions packages/router/src/util.ts
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,10 @@ export const parseSearch = (
) => {
const searchParams = new URLSearchParams(search)

return [...searchParams.keys()].reduce(
return [...searchParams.keys()].reduce<Record<string, string>>(
(params, key) => ({
...params,
[key]: searchParams.get(key),
[key]: searchParams.get(key) as string,
}),
{}
)
Expand Down

0 comments on commit 76020e1

Please sign in to comment.