Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

MatchFn

import type { MatchFn } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";

The match function. Part of Match. Implements matcher for particular unit type.

type MatchFn<Result, ExtraOptions = Record<string, unknown>> = (str: string, options?: MatchFnOptions<Result> & ExtraOptions) => MatchFnResult<Result> | null;

§Type Parameters

§
Result
[src]
§
ExtraOptions = Record<string, unknown>
[src]

§Type

§
(str: string, options?: MatchFnOptions<Result> & ExtraOptions) => MatchFnResult<Result> | null
[src]