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

MatchFnOptions

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

The MatchFn function options.

interface MatchFnOptions <Result> {
valueCallback?: MatchValueCallback<string, Result>;
width?: LocaleWidth;
}

§Type Parameters

§
Result
[src]

§Properties

§
valueCallback?: MatchValueCallback<string, Result>
[src]
@example
const matchResult = locale.match.ordinalNumber('1st')
if (matchResult) {
  matchResult.value = valueCallback(matchResult.value)
}
§

The width to use matching the value, defines how short or long the matched string might be.