Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/oak/mod.ts>RouteParams

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
type alias RouteParams
import { type RouteParams } from "https://deno.land/x/oak@v12.1.0/mod.ts";

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>