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
Is this request related to a problem? Please describe.
I found myself having to extract common types into one base type, but because i have like 10 types in which not every field is in common it makes it very unpleasant to have to manually check if this field exists on every type.
ofc in reality this doesn't look so nice, fields are mixed together, file is long etc.
Describe the solution you'd like
Select all the types/interfaces and extract fields they have into new type/interface above or below it. Basic version of this feature could only extract from simple types that do not use & or extends
The text was updated successfully, but these errors were encountered:
I like this suggestion @ArinCantCode. We could indeed detect similar patterns and suggest extracting the common parts together like we do when you extract all occurrences of a variable.
Is this request related to a problem? Please describe.
I found myself having to extract common types into one base type, but because i have like 10 types in which not every field is in common it makes it very unpleasant to have to manually check if this field exists on every type.
ofc in reality this doesn't look so nice, fields are mixed together, file is long etc.
Describe the solution you'd like
Select all the types/interfaces and extract fields they have into new type/interface above or below it. Basic version of this feature could only extract from simple types that do not use
&
orextends
The text was updated successfully, but these errors were encountered: