PromiseType<T>: T extends PromiseLike<infer U>
    ? U
    : T

Get the type of the value, that the Promise holds.

Type Parameters