Skip to main content
Module

x/path_to_regexp/index.ts>MatchFunction

Turn a path string such as `/user/:name` into a regular expression
Extremely Popular
Latest
type alias MatchFunction
import { type MatchFunction } from "https://deno.land/x/path_to_regexp@v6.2.1/index.ts";

The match function takes a string and returns whether it matched the path.

Type Parameters

optional
P extends object = object
definition: (path: string) => Match<P>