tables.enumvalidator.md

January 18, 2023 ยท View on GitHub

Home > @datashaper/tables > enumValidator

enumValidator() function

Constructs a function that validates a column against the enum constraint.

Signature:

export declare function enumValidator(field: Field, includeIndexes: boolean): ValidationFunction | undefined;

Parameters

ParameterTypeDescription
fieldField
includeIndexesboolean

Returns:

ValidationFunction | undefined