relay-compiler
generates invalid Typescript for @raw_response_type
+ combination of conditional and non-conditional fragments
#4914
Labels
Given the code below:
Relay compiler generates the following types (notice the
account
field is listed twice):Which typescript interprets by using the first declaration of a given field and ignoring all others, leading to errors like:
This very reproduction can be found at https://github.com/vhfmag/relay-ts-typegen-issue-repro
Instead, relay compiler should generate something like:
The text was updated successfully, but these errors were encountered: