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 {
        prospectCount
      }
    }
    buyingTeam @include(if: $withContacts) { // conditionally present
      ...DealBuyingTeamFragment
    }

where DealBuyingTeamFragment has a lot more fields.

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

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

Is this defined behavior?