MatchFnOptions
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.