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
[docs-infra] keyof member is duplicated in a union #1818
The parser preserves keyof as one node, and formatType turns it into text only after the union has already deduped and ordered its members, so its keys never take part.
Only happens on an inline property. Written as export type X = 'size' | keyof Config the alias name is shown instead, so nothing expands.
Related, same cause: keyof Config & string documents as 'size' | 'color' & string, which reads as 'size' | ('color' & string).
The same bug in externalTypes.ts was fixed in #1817; formatType.ts still has it.
changed the title [-][docs-infra] Expanded keyof unions are not flattened into the enclosing union[/-][+][docs-infra] Flatten preserved keyof members into the enclosing union[/+]on Aug 27, 2026
changed the title [-][docs-infra] Flatten preserved keyof members into the enclosing union[/-][+][docs-infra] keyof member is duplicated in a union[/+]on Aug 27, 2026
Fixed in #1817 (fa9c8ed). 'size' | keyof Config now documents as 'size' | 'color'.
The intersection half is left alone — it is pre-existing (a type parameter with a union constraint reaches the same path) and has no known occurrence on a real page.
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
Activity
[-][docs-infra] Expanded keyof unions are not flattened into the enclosing union[/-][+][docs-infra] Flatten preserved keyof members into the enclosing union[/+][-][docs-infra] Flatten preserved keyof members into the enclosing union[/-][+][docs-infra] keyof member is duplicated in a union[/+]Janpot commentedon Aug 27, 2026
Fixed in #1817 (fa9c8ed).
'size' | keyof Confignow documents as'size' | 'color'.The intersection half is left alone — it is pre-existing (a type parameter with a union constraint reaches the same path) and has no known occurrence on a real page.
github-actions commentedon Aug 27, 2026
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.