Title kinda says it all.
I get the rather unhelpful error on my return as
Type '{ __typename: "Crumbs"; kind: string; }' is not assignable to type 'Food extends { kind: infer U; } ? { __typename: "Crumbs"; kind: U; } : never'.ts(2322)
Can anybody help explain? Or can anyone think of a better example to teach infer with? I was working up to this example and went from function signatures --> generics --> constraining generics with extends --> and finally I needed an example of using infer in the return. So if there's any way I could salvage this example, that'd be much appreciated