tables.maxlengthvalidator.md

January 18, 2023 ยท View on GitHub

Home > @datashaper/tables > maxLengthValidator

maxLengthValidator() function

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

Signature:

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

Parameters

ParameterTypeDescription
fieldField
includeIndexesboolean

Returns:

ValidationFunction | undefined

Contents

  1. 1maxLengthValidator() function
  2. 2Parameters