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

MatchFnOptions

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.