PromiseType<P>: P extends Promise<infer T> ? T : never

Type Parameters

  • P

Generated using TypeDoc