Type Alias Deferred<T, E>

Deferred: CustomPromise<T, E> & {
    reject: (arg: E) => void;
    resolve: (arg: T) => void;
}

Promise with exposed resolve/reject functions and typed error

Type Parameters

  • T
  • E = T