Skip to content

difference in vs code tooltips for generic method #907

Closed
@ZimnitskiYury

Description

@ZimnitskiYury

difference in how new typescript works with generics:
old:
Image

new:
Image

method signature:

        const handleStep = async <T extends SendStep>(
            stepName: T,
            validationFn: (typeof SendProcess)[typeof stepName],
            ...args: Parameters<typeof validationFn>
        ) => {
               ///...
        }

Activity

jakebailey

jakebailey commented on May 22, 2025

@jakebailey
Member

This is a temporary problem; our type printing is not yet complete but will improve (or be fixed) with #791.

jakebailey

jakebailey commented on Jun 4, 2025

@jakebailey
Member

This should be fixed now, after #791 and other fixes.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @jakebailey@ZimnitskiYury

        Issue actions

          difference in vs code tooltips for generic method · Issue #907 · microsoft/typescript-go