* @description * Constructs a new `FormRecord` instance. Accepts a single generic argument, which is an object * containing all the keys and corresponding inner control types. * * @param controls A collection of child controls. The key for each child is the name * under which it is re
(
controls: {[key: string]: T},
options: AbstractControlOptions | null = null,
)
| 302 | * | submit'). |
| 303 | */ |
| 304 | record<T>( |
| 305 | controls: {[key: string]: T}, |
| 306 | options: AbstractControlOptions | null = null, |
| 307 | ): FormRecord<ɵElement<T, null>> { |
| 308 | const reducedControls = this._reduceControls(controls); |
| 309 | // Cast to `any` because the inferred types are not as specific as Element. |
| 310 | return new FormRecord(reducedControls, options) as any; |
| 311 | } |
| 312 | |
| 313 | /** @deprecated Use `nonNullable` instead. */ |
| 314 | control<T>( |
no test coverage detected