Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/hex/src/service/deps.ts>oak.RouteParams

An ecosystem delivering practices, philosophy and portability.
Go to Latest
type alias oak.RouteParams
import { type oak } from "https://deno.land/x/hex@0.5.15/src/service/deps.ts";
const { RouteParams } = oak;

Type Parameters

Route extends string
definition: string extends Route ? ParamsDictionary : Route extends `${string}(${string}` ? ParamsDictionary : Route extends `${string}:${infer Rest}` ? (GetRouteParams<Rest> extends never ? ParamsDictionary : GetRouteParams<Rest> extends `${infer ParamName}?` ? [P in ParamName]?: string : [P in GetRouteParams<Rest>]: string) & (Rest extends `${GetRouteParams<Rest>}${infer Next}` ? RouteParams<Next> : unknown) : Record<string | number, string | undefined>