Skip to content

'infer' type parameters declarations aren't printed in quick info. #21836

Description

Found by Wesley Wigham (@weswigham)

type Alias<T> = T extends (infer U)[] ? U : never;

Request quick info on Alias.

Expected: type Alias<T> = T extends (infer U)[] ? U : never

Actual: type Alias<T> = T extends U[] ? U : never

Activity

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugA bug in TypeScriptDomain: LS: Quick FixesEditor-provided fixes, often called code actions.Domain: LS: Quick Infoe.g. hover text, tool-tips, and tooltips.Effort: DifficultGood luck.FixedA PR has been merged for this issue

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions