Unwrap a Promise type (built-in Awaited exists in newer TS)
type P = Promise<string>;type U = UnwrapPromise<P>; // string Copy
type P = Promise<string>;type U = UnwrapPromise<P>; // string
Unwrap a Promise type (built-in Awaited exists in newer TS)