Skip to content

Commit

Permalink
Change type to LocationQueryValue to accurately reflect source.
Browse files Browse the repository at this point in the history
In the source, the type of RouteLocationNormalized.query is a Record<string, LocationQueryValue | LocationQueryValue[]>.  LocationQueryValue isn't exactly a string, but is a (string | null). I think it makes sense to update the docs, especially since LocationQueryValue isn't assignable to string.
  • Loading branch information
maximoosemine committed May 13, 2022
1 parent 20ac2d1 commit f93fe89
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,7 @@ Normalized route location. Does not have any [redirect records](#routerecordraw)

### query

- **Type**: `Record<string, string | string[]>`
- **Type**: `Record<string, LocationQueryValue | LocationQueryValue[]>`
- **Details**:

Dictionary of decoded query params extracted from the `search` section of the URL.
Expand Down

0 comments on commit f93fe89

Please sign in to comment.