You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In server API When we use getQuery() function to parse params from query, it provides type as QueryValue | QueryValue[].
It would be great if we could provide types to this params.
here the type of searchQuery is QueryValue | QueryValue[], but I want type to be string | undefined.It would be great If I could narrow down type to string | undefined.currently I am providing types using typeof for every param.
Describe the feature
In server API When we use
getQuery()
function to parse params from query, it provides type asQueryValue | QueryValue[]
.It would be great if we could provide types to this params.
check below code snippet.
here the type of searchQuery is
QueryValue | QueryValue[]
, but I want type to bestring | undefined
.It would be great If I could narrow down type tostring | undefined
.currently I am providing types using typeof for every param.reference: nuxt/nuxt#22262
Additional information
The text was updated successfully, but these errors were encountered: