Skip to content

Instantly share code, notes, and snippets.

@ezequieltejada
Last active December 8, 2020 08:37
Show Gist options
  • Save ezequieltejada/b0790771ae53f6fe605257c9fae9ed7c to your computer and use it in GitHub Desktop.
Save ezequieltejada/b0790771ae53f6fe605257c9fae9ed7c to your computer and use it in GitHub Desktop.
FormGroup Config type for subform implementation.
export type FormGroupConfig<T> = {
[P in keyof T]: [
T[P] | { value: T[P]; disabled: boolean },
(AbstractControlOptions | ValidatorFn | ValidatorFn[])?
];
};
@ezequieltejada
Copy link
Author

ezequieltejada commented Dec 8, 2020

Got from Medium Post
Thank you @tomastrajan

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment