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

NameConstraintDefaultDescription
TNamestringstring-
TConfig-unknown-

Properties

NameTypeDescription
wrapperName TNameUnique identifier for the wrapper type
loadComponent LazyComponentLoaderLazy-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 undefined. Use wrapperProps<YourConfig>() to thread the config type.