Skip to content

[docs] Type generation cannot represent the unresolved conditional and indexed-access types #1800

Done

Description

@Janpot

https://github.com/mui/base-ui-mosaic/pull/419#discussion_r3810910523

A generic type alias whose body is a conditional on its own type parameters can't be resolved while generic, so its docs merged every branch. Mosaic's DataGridRowCell, guarded by IsAny<Columns>, showed columnId: any.

#1955 resolves these in the extractor, differently from the displayGenerics proposal in #1342. Instead of showing generics, it picks the branch every caller gets: the condition is checked with each tested type parameter set to its constraint and to never, and when both agree the export resolves to that branch with the constraints substituted. Type parameters the condition doesn't test stay generic, and when no single branch holds the merged rendering is kept.

Activity

  1. added
    status: waiting for maintainer
    on Aug 20, 2026
  2. Janpot commented on Aug 21, 2026

    @Janpot
    MemberAuthor

    Closing in favor for #1342

  3. github-actions commented on Aug 21, 2026

    @github-actions

    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.

  4. removed
    status: waiting for maintainer
    on Aug 21, 2026
  5. added
    docs
    on Aug 21, 2026
  6. reopened this on Oct 29, 2026
  7. added
    scope: docs-infra
    on Oct 29, 2026
  8. self-assigned this
    on Oct 29, 2026
  9. github-actions commented on Dec 1, 2026

    @github-actions

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

docsscope: docs-infra

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions