• Creates a Promise with strongly typed error

    Type Parameters

    • T
    • E

    Parameters

    • executor: (
          resolve: (value: T | PromiseLike<T>) => void,
          reject: (reason: E) => void,
      ) => void

      Promise executor function

    Returns CustomPromise<T, E>

    Promise with typed error