@fluent-form/core
Version:
An Angular dynamic forms library powered by Fluent API and JSON.
9 lines (8 loc) • 423 B
TypeScript
import type { SafeAny } from '@ngify/core';
import type { AbstractSchema, SchemaType } from '../schemas';
export type SchemaSelector = '*' | string | SchemaType | (string | SchemaType)[];
export type SchemaPatchFn<S extends AbstractSchema> = (schema: S & Record<string, SafeAny>) => S;
export interface SchemaPatcher<S extends AbstractSchema = AbstractSchema> {
selector: SchemaSelector;
patch: SchemaPatchFn<S>;
}