Skip to content

2 - Get Return Type #37768

@theidentify

Description

@theidentify
type MyReturnType<T> = T extends (...a: any[]) => infer R ? R : never

Metadata

Metadata

Assignees

No one assigned

    Labels

    2answerShare answers/solutions to a questionenin English

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions