kit
    Preparing search index...
    • Get parsed query parameters as object dictionary (from URL or given query string)

      Type Parameters

      • T extends Record<string | number, unknown>

      Parameters

      • Optionalurl: string

        A URL which contains a ?, e.g. ?myparam=x or https://a.com?myparams=x. If not provided it defaults reading the current URL query string with location.search. Through this argument you can use this same function to parse, for instance, the query params of the href of a <a href="..."> HTML tag.

      Returns T