literate-couscous

View the Project on GitHub posva/literate-couscous

Home > vue-router > parseQuery

parseQuery() function

Transforms a queryString into a LocationQuery object. Accept both, a version with the leading ? and without Should work as URLSearchParams

Signature:

export declare function parseQuery(search: string): LocationQuery;

Parameters

Parameter Type Description
search string search string to parse

Returns:

LocationQuery

a query object