import { FormGroup, FormControl } from '@angular/forms'; export type ControlsOf> = { [K in keyof T]: T[K] extends Record ? FormGroup> : FormControl; }; export interface IProfile { username: string; email: string; gender: string; city: string; address: string; company: string; mobile: string; tele: string; website: string; date: string; }