Promise type wrapper.
This is equivalent to Promise<WxVoid> when T is void, and Promise<WxResult<T>> otherwise.
Promise<WxVoid>
T
void
Promise<WxResult<T>>
type WxPromise<T> = Promise<(T extends void ? VoidOk : Ok<T>) | Err<WxError>>
Promise type wrapper.
This is equivalent to
Promise<WxVoid>whenTisvoid, andPromise<WxResult<T>>otherwise.