UnwrapPromise<P>: P extends Promise<infer R>
    ? R
    : P

Type Parameters

  • P