Type Alias WxPromise<T>

WxPromise: Promise<(T extends void ? VoidOk : Ok<T>) | Err<WxError>>

Promise type wrapper.

This is equivalent to Promise<WxVoid> when T is void, and Promise<WxResult<T>> otherwise.

Type Parameters

  • T