Closed
Description
TypeScript Version: 3.6.3 VS 3.7-beta/nightly (from playground)
Search Terms: discriminated union, intersection type, tag in intersection, extract by tag
Code
We tried the new TS 3.7rc in our project and encountered a problem with our generated types. The types are generated by GraphQLCodegen.
Our code compiles without errors or warning in TS 3.6.3 but has compile errors in 3.7rc and in the nightly build of the playground.
We reduced the code to get the following situation in the playground:
The error seems to occur, when I try to use the Extract type on a field that is added in an intersection type.
Expected behavior:
No errors in TS 3.7