UNPKG

ngx-vest-forms

Version:

Opinionated template-driven forms library for Angular

8 lines (7 loc) 219 B
/** * Sometimes we want to make every property of a type * required, but also child properties recursively */ export type DeepRequired<T> = { [K in keyof T]-?: T[K] extends object ? DeepRequired<T[K]> : T[K]; };