Interface
WrapperRegistration
@ng-forge/dynamic-forms
User-facing wrapper registration shape used with createWrappers(...).
Extends WrapperTypeDefinition with an optional props field that
carries the wrapper's config type (via wrapperProps) for later
inference by InferWrapperRegistry.
Signature
interface WrapperRegistration<
TName extends string = string,
TConfig = unknown
>Type Parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
TName | string | string | - |
TConfig | - | unknown | - |
Properties
| Name | Type | Description |
|---|---|---|
wrapperName | TName | Unique identifier for the wrapper type |
loadComponent | LazyComponentLoader | Lazy-loader for the wrapper component |
types ? | readonly string[] | Field types this wrapper auto-applies to (merged lowest-priority during wrapper resolution) |
props ? | TConfig | Type carrier only — runtime value is always |
packages/dynamic-forms/src/lib/wrappers/create-wrappers.ts:10