I have a CMS that provides data via GQL. I am generating frontend types using graphql-codegen (I don't think this is part of the problem, just context).
I have a function that is responsible for creating all the dynamic components on the page. The functionality is working but the types have an error — "conflicting types in some constituents".
I've read the correspondence problem macro, but I feel like in this specific example, I should be able to use some sort of type guard with a generic? But maybe my instinct is wrong...