Type

MapperFn

@ng-forge/dynamic-forms

Mapper function that converts a field definition to component inputs.

Mappers run within an injection context and can inject FIELD_SIGNAL_CONTEXT. Returns a Signal to enable reactive updates when dependencies change.

Signature

type MapperFn<T extends FieldDef<unknown>> = (input: T) => Signal<Record<string, unknown>>;

Type Parameters

NameConstraintDefaultDescription
TFieldDef<unknown>--