chore: refine useRouter return type and update docs (#339)

This commit is contained in:
Jacob Marshall
2025-01-14 15:42:27 +00:00
committed by GitHub
parent 818a6bd2ff
commit 9b2f0aab32
2 changed files with 2 additions and 2 deletions
@@ -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`:
@@ -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