ToFormObject<T, Atomic, RawOuter>
ts
type ToFormObject<T, Atomic, RawOuter> = RawOuter extends true ? ToFlatFormObject<T, Atomic> : FormGroup<ToFlatFormObject<T, Atomic>>;Defined in: types/to-form.type.ts:15
Maps an object type T to either its raw flat form object or a FormGroup containing the corresponding controls/groups for all of its properties, depending on RawOuter.
Type Parameters
| Type Parameter | Description |
|---|---|
T | The source type to transform into a form-mapped structure. |
Atomic | Types that should be treated as primitives and mapped directly to a FormControl. Defaults to ToFormDefaultAtomic. |
RawOuter extends boolean | If true, the result is the raw mapped object type. If false, the result is wrapped in a FormGroup. |
Since
1.2.0
Author
Ian Wenneckers