Sets up a function to lazy load the configuration when any of the other functions are called. This function can be set after some initial registration. It will be discarded immediately after its used.
Provides access to services.
Converts the native value to a string that can be shown to the user. Result includes the successfully converted value or validation error information.
Formatting uses localization. It uses IDataTypeFormatter classes, which may handle multiple cultures. When searching for a formatter, it tries the ValidationServices.activeCultureID first and if no formatter is supplied for that culture, it has a chain of fallback cultures that you supply in the constructor.
Optional
lookupKey: null | stringIf not supplied, a lookup key is created based on the native value type. If you need alternative formatting or are supporting a user defined type, always pass in the associated lookup key. They can be found in the LookupKeys module.
successfully converted value or validation error information.
Finds the IDataTypeFormatter associated with the lookup key and this class's own CultureID.
A matching IDataTypeFormatter or null if none match.
Registers an instance of the interface supported by this service. It may replace an existing one, as determined by the subclass. Replace supported on: IDataTypeIdentifier
Returns the full collection.
If the user needs to abandon this instance, they should use this to clean up active resources (like timers) and to release memory that would stall the garbage collector from disposing this object. It should assign any object reference to undefined as a strong indicator that the object has been disposed.
Generated using TypeDoc v0.25.12
Service for formatting data types used within tokens of error messages using IDataTypeFormatter instances.