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

2 - Get Return Type #37706

@BernTheSeal

Description

@BernTheSeal

type MyReturnType<T extends (...args: any) => any> = T extends (...args: any) => infer R ? R : never

// your answers

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