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;
}§Properties
§
valueCallback?: MatchValueCallback<string, Result>
[src]@example
const matchResult = locale.match.ordinalNumber('1st')
if (matchResult) {
matchResult.value = valueCallback(matchResult.value)
}
§
width?: LocaleWidth
[src]The width to use matching the value, defines how short or long the matched string might be.