Module DataTypes/Types/IDataTypeCheckGenerator

Used to automatically generate a Condition used for Data Type Check based on the DataTypeLookupKey. Only supports IInputValueHost.

By default, automatic generation uses the DataTypeCheckCondition.

That condition determines an error when ValueHost.NativeValue is undefined, which is a result of a conversion of InputValue fails.

There are other ways to check a data type. Strings with a well defined pattern will often be the same as they were between InputValue and NativeValue, aside from trimming spaces. So the NativeValue is a string that will need to be checked against a regular expression or some other rule that confirms the string matches requirements.

Thats when you create one of these and register it with autoGenerateDataTypeCheckService.

You can also prevent autogeneration for a given dataTypeLookupKey by returning null instead of a condition in createCondition(). Register your implementation with ValidationServices.autoGenerateDataTypeCheckService.

Index

Interfaces

Generated using TypeDoc v0.25.12