To reproduce the issue, run the following commands:
git clone [email protected]:justin-schroeder/generics-discriminated-union-reproduction.git
cd generics-discriminated-union-reproduction
npm install
npm run dev // or npm run build
The intended reproduction will produce: