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
Hmm this is an interesting scenario. This will probably require you to make your own type making use of the package's more granular types. Something like the below might work as a quick fix:
// raw typesexporttypeParentZone={readonlyid: string;readonlyname: string;}exporttypeChildrenZone={readonlyid: string;readonlyname: string;}exporttypeZone={readonlyparent: ParentZone[];readonlychildren: ChildrenZone[];}
// form type(s)exporttypeZoneForm=FormGroup<{parent: AngularFormArrayShallow<ParentZone[]>;children: AngularFormArray<ChildrenZone[]>;}>;
You could also do something like the below example where you still use our types, but override/modify one of the properties that differs from the norm of the package type you use (shallow versus deep). This could be nice if your type/object you are recreating (like above) is rather large in terms of number of properties.
// form type(s)typeModify<T,R>=Omit<T,keyofR>&R;exporttypeZoneForm=Modify<AngularForm<Zone>,{parent: AngularFormArrayShallow<ParentZone[]>}>
Let me know if this doesn't help, happy to try and figure out additional paths if need be. I don't think the package types themselves need to change in this regard, but I am open to it if need be.
I have the following type in my code:
Sorry for the poor creativity but in my code the two types are obviously different from each other. In this example, I want my form to be as this:
Currently it's one way or the other. Is there a workaround for this or do you have a suggestion on how I could get the result I want?
The text was updated successfully, but these errors were encountered: