You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
And now I want to use that as a strongly typed form. However, I can't, because the form needs bar's type to be FormArray<ControlsOf<ISomeOtherThing>>, so I end up having to create something like:
Now that means I have to create methods to convert to/from those as well. This feels very heavy-handed, and I hope I'm missing something obvious here so that I don't have to create a bunch of almost duplicate types.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
My object is essentially defined like so
And now I want to use that as a strongly typed form. However, I can't, because the form needs
bar
's type to beFormArray<ControlsOf<ISomeOtherThing>>
, so I end up having to create something like:Now that means I have to create methods to convert to/from those as well. This feels very heavy-handed, and I hope I'm missing something obvious here so that I don't have to create a bunch of almost duplicate types.
I'm using version 4.0.4 with Angular 13.
Beta Was this translation helpful? Give feedback.
All reactions