这是indexloc提供的服务,不要输入任何密码
Skip to content

2 - Get Return Type #37708

@rauf322

Description

@rauf322
type MyReturnType<T> = T extends (...args: never[]) => infer U ? U : T

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