API/SearchParamsInput
SearchParamsInput
src/types/search-params-input.type.tstype
A page URL’s query, in any of the shapes routers hand it over:
URLSearchParams— React Router’suseSearchParams(), and Next’suseSearchParams(), whoseReadonlyURLSearchParamsextends it- a query string, with or without its leading
? - the record a Next page receives as
searchParams, where a repeated key holds an array
Definition
Section titled “Definition”type SearchParamsInput = URLSearchParams | string | Readonly<Record<string, string | readonly string[] | undefined>>