Optional
options: null | NumberFormatOptionsOptional
cultureToCurrencyCode: { Services accessor. Note: Not passed into the constructor because this object should be created before ValidationServices itself. So it gets assigned when ValidationService.dataTypeFormatterService is assigned a value.
Provides access to services.
Protected
hasProtected
optionsProtected
expectedThe DataTypeLookup key(s) that this class supports.
Evaluates the parameters to determine if its format() method should handle the value with those same parameters. It should always match the DataTypeLookupKey. It does not have to evaluate the cultureID, as there are implementations where the format() function handles eve
Such as 'en-US' and 'en'
Use its format() method when true. Do not use format() when false.
Protected
prepProtected
matchingProtected
formatIf the value is a Number, it uses Intl.NumberFormat. If it is null, it returns the empty string. Anything else is an error.
Optional
options: null | NumberFormatOptionsif Null, it uses the options supplied in the constructor or DefaultOptions function.
Protected
getProtected
supportsCreates a formatted string for the value, applying the goals of the DataTypeLookupKey and making it culture specific.
Protected
resolveGenerated using TypeDoc v0.25.12
For LookupKey.Currency. Formats the number as a currency. Converts any number using the Intl library's NumberFormat feature. It shows the currency symbol, which is not actually built into the Intl library. Thus we need to support it by letting you supply a CurrencyCode into the constructor, along with a list of cultures that support the code.