UNPKG

@fluent-form/core

Version:

An Angular dynamic forms library powered by Fluent API and JSON.

9 lines (8 loc) 337 B
import type { ValidatorFn } from '@angular/forms'; import type { AbstractSchema } from './schemas'; import type { SchemaType } from './schemas/interfaces'; export interface SchemaConfig<S extends AbstractSchema> { type: SchemaType; /** Add built-in validators from the schema. */ validators?: (schema: S) => ValidatorFn[]; }