From: maximoosemine <42452897+maximoosemine@users.noreply.github.com> Date: Sat, 14 May 2022 23:51:29 +0000 (-0700) Subject: Change type to LocationQueryValue to accurately reflect source. (#1398) X-Git-Tag: v4.0.16~7 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0c7b3cb85b6558be617f8b5546be2741d828ebf6;p=thirdparty%2Fvuejs%2Frouter.git Change type to LocationQueryValue to accurately reflect source. (#1398) In the source, the type of RouteLocationNormalized.query is a Record. 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. --- diff --git a/docs/api/index.md b/docs/api/index.md index 6adb5201..08f506dc 100644 --- a/docs/api/index.md +++ b/docs/api/index.md @@ -1010,7 +1010,7 @@ Normalized route location. Does not have any [redirect records](#routerecordraw) ### query -- **Type**: `Record` +- **Type**: `Record` - **Details**: Dictionary of decoded query params extracted from the `search` section of the URL.