Skip to content

Commit

Permalink
chore: refine useRouter return type and update docs (#339)
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobhq authored Jan 14, 2025
1 parent 818a6bd commit 9b2f0aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export default function IndexPage() {
## `router` object
- `pathname`: `string` - Returns the current path name
- `query`: `Record<string, unknown>` - This object contains all the query params of the current route
- `query`: `Record<string, string>` - This object contains all the query params of the current route
The following methods are included inside `router`:
Expand Down
2 changes: 1 addition & 1 deletion packages/tuono-router/src/hooks/useRouter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ interface UseRouterResult {
/**
* This object contains all the query params of the current route
*/
query: Record<string, unknown>
query: Record<string, string>

/**
* Returns the current pathname
Expand Down

0 comments on commit 9b2f0aa

Please sign in to comment.