ExtendablePromise
import { ExtendablePromise } from "https://raw.githubusercontent.com/worker-tools/extendable-promise/master/index.ts";
class ExtendablePromise<T = unknown> implements Promise<PromiseSettledResult<T>[]> { }
constructor(f?: T | PromiseLike<T>);
get settled();
readonly [Symbol.toStringTag]: string;
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<PromiseSettledResult<T>[] | TResult>;
then<TResult1 = PromiseSettledResult<T>[], TResult2 = never>(onfulfilled?: ((value: PromiseSettledResult<T>[]) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>;
waitUntil(f?: T | PromiseLike<T>);
§Implements
§
Promise<PromiseSettledResult<T>[]>
[src]§Properties
§Methods
§
catch<TResult = never>(onrejected?: ((reason: any) => TResult | PromiseLike<TResult>) | null): Promise<PromiseSettledResult<T>[] | TResult>
[src]§
finally(onfinally?: (() => void) | null): Promise<PromiseSettledResult<T>[]>
[src]§
then<TResult1 = PromiseSettledResult<T>[], TResult2 = never>(onfulfilled?: ((value: PromiseSettledResult<T>[]) => TResult1 | PromiseLike<TResult1>) | null, onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | null): Promise<TResult1 | TResult2>
[src]