diff --git a/src/app/pages/settings/chains/chain-formgroup.ts b/src/app/pages/settings/chains/chain-formgroup.ts new file mode 100644 index 0000000..e393c5c --- /dev/null +++ b/src/app/pages/settings/chains/chain-formgroup.ts @@ -0,0 +1,12 @@ +import { FormControl, FormGroup, Validators } from '@angular/forms'; + +export class ChainFormGroup extends FormGroup<{name: FormControl, image: FormControl}> { + constructor( + form = { + name: new FormControl('', Validators.required), + image: new FormControl(null), + }, + ) { + super(form); + } +}