Skip to content

fix: Fix union inline joining not generating enums#1427

Merged
mrousavy merged 4 commits into
mainfrom
fix/fix-union-plus-one
Jun 30, 2026
Merged

fix: Fix union inline joining not generating enums#1427
mrousavy merged 4 commits into
mainfrom
fix/fix-union-plus-one

Conversation

@mrousavy

Copy link
Copy Markdown
Owner

Fixes an issue where union enums cannot be inline joined with other values, like so:

type Format = 'rgb' | 'yuv' | 'raw'
type TargetFormat = Format | 'any'

This was because the union constituents method didn't flatten the type at first.

@vercel

vercel Bot commented Jun 30, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
nitro-docs Skipped Skipped Jun 30, 2026 9:00am

Request Review

@mrousavy mrousavy merged commit 9c0172b into main Jun 30, 2026
19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant