- makePromise<T, E>(
executor: (
resolve: (value: T | PromiseLike<T>) => void,
reject: (reason: E) => void,
) => void,
): CustomPromise<T, E> Parameters
- executor: (
resolve: (value: T | PromiseLike<T>) => void,
reject: (reason: E) => void,
) => void
Promise with typed error
Creates a Promise with strongly typed error