Skip to content

Commit

Permalink
Change type to LocationQueryValue to accurately reflect source. (#1398)
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 14, 2022
1 parent 20ac2d1 commit 0c7b3cb
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 0c7b3cb

Please sign in to comment.