mirror of
https://github.com/tuono-labs/tuono
synced 2026-07-25 21:02:45 -07:00
chore: refine useRouter return type and update docs (#339)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user