Post

ts discriminated union handling works better at the top level than with nested structures, if you switch to `as const` ```ts const b2 = 'kozijn' as const; const a2: A2 = { nested: { b: b2, c: null, }, }; ``` the error goes away.

It's deliberately typed as both kozijn/schuifpui, because the point was that b2 is dynamic input. I may have oversimplified the example a bit 😄