method HonoRequest.prototype.paramimport { HonoRequest } from "https://dotland.deno.dev/x/hono@v4.3.9/mod.ts"; param<P2 extends ParamKeys<P> = ParamKeys<P>>(key: P2 extends `${infer _}?` ? never : P2): string.req.param() gets the path parameters. param<P2 extends RemoveQuestion<ParamKeys<P>> = RemoveQuestion<ParamKeys<P>>>(key: P2): string | undefinedparam(key: string): string | undefinedparam<P2 extends string = P>(): UnionToIntersection<ParamKeyToRecord<ParamKeys<P2>>>.req.param() gets the path parameters. ExamplesExample 1 const name = c.req.param('name') // or all parameters at once const { id, comment_id } = c.req.param() Type ParametersoptionalP2 extends ParamKeys<P> = ParamKeys<P>Parameterskey: P2 extends `${infer _}?` ? never : P2ReturnsstringType ParametersoptionalP2 extends RemoveQuestion<ParamKeys<P>> = RemoveQuestion<ParamKeys<P>>Parameterskey: P2Returnsstring | undefinedParameterskey: stringReturnsstring | undefinedType ParametersoptionalP2 extends string = PReturnsUnionToIntersection<ParamKeyToRecord<ParamKeys<P2>>>