You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
TS 7: declaration emit property order depends on which other files are in the program #64727
It also changes with --checkers, since that decides which files share a checker.
🙂 Expected behavior
Same b.d.ts either way. 6.0.3 prints { status: string; user?: undefined; } in both cases.
⏯ Additional information about the issue
getUndefinedProperty caches the synthetic user?: undefined symbol by property name, so whichever object literal widens user first on that checker wins, and its declaration position decides where user prints in later, unrelated types. Keying the cache by the source property symbol fixes it. Happy to send the PR.
Activity
maschwenk commentedon Oct 10, 2026
I have no idea if this is something we care about or not so please feel free to dismiss
jakebailey commentedon Oct 12, 2026
This is definitely something to fix yes
maschwenk commentedon Oct 12, 2026
Possible fix here