Closed koenpunt closed 5 years ago
It might actually be possible to generate the InterfaceType
as type InterfaceType = ImplementingTypeA | ImplementingTypeB
, since the union should give the same result.
It might actually be possible to generate the
InterfaceType
astype InterfaceType = ImplementingTypeA | ImplementingTypeB
, since the union should give the same result.
Unfortunately this doesn't have the same effect as explicitly rendering the fields. Will update this PR later on.
I'm wondering why you removed the InterfaceTypes
It wasn't intentional
because that's something that is actually really useful
Could you share your motivating use-case?
As implemented before in #149, this generates a typescript interface for every graphql interface.
I also made sure the generated field type unions have distinct types.