Generated types not working as expected with directive (@include)

Hello, I’m having an issue with the codegeneration tool for typescript. I have a query like this:

    buyingTeam { // always present
      buckets {
    buyingTeam @include(if: $withContacts) { // conditionally present

where DealBuyingTeamFragment has a lot more fields.

There should be two types created, one for the optional query fragment and one for the fragment that’s always there.

The generated code only ‘sees’ the one on top.

Is this defined behavior?