Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

useParams

Returns an object of key/value pairs of the dynamic params from the current URL that were matched by the route path.

function useParams<ParamsOrKey extends string | Record<string, string | undefined> = string>(): Readonly<[ParamsOrKey] extends [string] ? Params<ParamsOrKey> : Partial<ParamsOrKey>>;
§
useParams<ParamsOrKey extends string | Record<string, string | undefined> = string>(): Readonly<[ParamsOrKey] extends [string] ? Params<ParamsOrKey> : Partial<ParamsOrKey>>
[src]

§Type Parameters

§
ParamsOrKey extends string | Record<string, string | undefined> = string
[src]

§Return Type

§
Readonly<[ParamsOrKey] extends [string] ? Params<ParamsOrKey> : Partial<ParamsOrKey>>
[src]