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