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

x/path_to_regexp/index.ts>MatchFunction

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

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

definition: (path: string) => Match<P>