1 | export function create<T>(f: (arg0: PromiseResolve<T>, arg1: (arg0: Error) => void) => any): Promise<T>;
|
2 | export function createEmpty(f: (arg0: () => void, arg1: (arg0: Error) => void) => void): Promise<void>;
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export const all: {
|
11 | <T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
|
12 | <T_1 extends [] | readonly unknown[]>(values: T_1): Promise<{ -readonly [P in keyof T_1]: Awaited<T_1[P]>; }>;
|
13 | };
|
14 | export function reject(reason?: Error | undefined): Promise<never>;
|
15 | export function resolve<T>(res: void | T): Promise<void | T>;
|
16 | export function resolveWith<T>(res: T): Promise<T>;
|
17 | export function until(timeout: number, check: () => boolean, intervalResolution?: number | undefined): Promise<void>;
|
18 | export function wait(timeout: number): Promise<undefined>;
|
19 | export function isPromise(p: any): boolean;
|
20 | export type PromiseResolve<T> = (result?: T | PromiseLike<T> | undefined) => any;
|
21 |
|
\ | No newline at end of file |