Function
wrapperProps
@ng-forge/dynamic-forms
Zero-cost type carrier used in wrapper registrations.
Returns undefined at runtime but is typed as T, so TypeScript can
thread a wrapper's config type through createWrappers(...) into the
InferWrapperRegistry<typeof ...> utility without requiring users to
hand-write the augmentation shape.
Signature
function wrapperProps<
T
>(): TType Parameters
| Name | Constraint | Default | Description |
|---|---|---|---|
T | - | - | - |
Returns
T
Examples
const wrappers = createWrappers(
{
wrapperName: 'section',
loadComponent: () => import('./section-wrapper'),
props: wrapperProps<SectionWrapper>(),
},
);
declare module '@ng-forge/dynamic-forms' {
interface FieldRegistryWrappers extends InferWrapperRegistry<typeof wrappers> {}
}packages/dynamic-forms/src/lib/wrappers/wrapper-props.ts:24