tables.validatecolumn.md
June 23, 2023 ยท View on GitHub
Home > @datashaper/tables > validateColumn
validateColumn() function
Validates a column against a Field definition's constraints.
Signature:
export declare function validateColumn(table: ColumnTable, field: Field, includeIndexes: boolean): ValidationResult;
Parameters
| Parameter | Type | Description |
|---|---|---|
| table | ColumnTable | the table to validate |
| field | Field | |
| includeIndexes | boolean | indicate whether to include the indexes of the row instances that failed validation |
Returns:
ValidationResult