Last active
December 8, 2020 08:37
-
-
Save ezequieltejada/b0790771ae53f6fe605257c9fae9ed7c to your computer and use it in GitHub Desktop.
FormGroup Config type for subform implementation.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export type FormGroupConfig<T> = { | |
[P in keyof T]: [ | |
T[P] | { value: T[P]; disabled: boolean }, | |
(AbstractControlOptions | ValidatorFn | ValidatorFn[])? | |
]; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Got from Medium Post
Thank you @tomastrajan