I am currently working on an Angular reactive form and have defined an interface as follows:
export interface LoginForm {
username: FormControl<string>,
password: FormConrtol<string>
}
My goal now is to create another interface that represents the value of the form:
export interface LoginFormValue {
username: string,
password: string
}
As my forms contain numerous attributes, I am looking for an automated way to generate the type for the form value. Is there a way to achieve this automatically?