Unwrap a Promise type.
Type to unwrap
Extracts the resolved value type of a Promise. Returns type as-is if not a Promise.
type P = Promise< string >;type U = UnwrapPromise< P >; // string Copy
type P = Promise< string >;type U = UnwrapPromise< P >; // string
Unwrap a Promise type.