UNPKG

ngx-typed-reactive-form

Version:

Make Angular Reactive Forms strongly typed with generics.

5 lines (4 loc) 278 B
import { Primitive } from './utility-types/primitive.type'; export declare type TypedFormBuilderConfig<T> = { [P in keyof T]: T[P] extends Primitive ? T[P] | [T[P], ...unknown[]] : T[P] extends Array<unknown> ? T[P] | [T[P], ...unknown[]] : TypedFormBuilderConfig<T[P]>; };