Type Alias WxPromise<T>

Source
Expand description

Promise type wrapper.

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

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