Provides a way to associate any value with a datatype lookupkey based on its actual datatype. This interface is implemented for number as "Number", Date as "Date", Boolean as "Boolean", and String as "String". Register your implementation with ValidationServices.dataTypeIdentifierService.

interface IDataTypeIdentifier {
    dataTypeLookupKey: string;
    supportsValue(value): boolean;
    sampleValue(): any;
}

Implemented by

Properties

dataTypeLookupKey: string

The unique lookup key you will use to identify this native data type.

Methods

  • Returns a sample value that is representative of the DataTypeLookupKey. Used by ConfigAnalysis to get a value that can be passed into services that take a live value, such as converters, parsers and formatters.

    Returns any

Generated using TypeDoc v0.25.12