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

189 - Awaited #37702

@rauf322

Description

@rauf322
type MyAwaited<T> =
  T extends Promise<infer R>
    ? MyAwaited<R>
    : T extends { then: (onfulfilled: (arg: infer U) => any) => any }
      ? MyAwaited<U>
      : T

Metadata

Metadata

Assignees

No one assigned

    Labels

    189answerShare 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