forked from quic-issues/427e7578-d7bf-49c8-aee9-2dd999e25316
implemented frontend including separate message system; started to implement backend
This commit is contained in:
22
yjs-poll/node_modules/lib0/dist/promise.d.ts
generated
vendored
Normal file
22
yjs-poll/node_modules/lib0/dist/promise.d.ts
generated
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
export function create<T>(f: (arg0: PromiseResolve<T>, arg1: (arg0: Error) => void) => any): Promise<T>;
|
||||
export function createEmpty(f: (arg0: () => void, arg1: (arg0: Error) => void) => void): Promise<void>;
|
||||
/**
|
||||
* `Promise.all` wait for all promises in the array to resolve and return the result
|
||||
* @template {unknown[] | []} PS
|
||||
*
|
||||
* @param {PS} ps
|
||||
* @return {Promise<{ -readonly [P in keyof PS]: Awaited<PS[P]> }>}
|
||||
*/
|
||||
export const all: {
|
||||
<T>(values: Iterable<T | PromiseLike<T>>): Promise<Awaited<T>[]>;
|
||||
<T extends readonly unknown[] | []>(values: T): Promise<{ -readonly [P in keyof T]: Awaited<T[P]>; }>;
|
||||
};
|
||||
export function reject(reason?: Error): Promise<never>;
|
||||
export function resolve<T>(res: T | void): Promise<T | void>;
|
||||
export function resolveWith<T>(res: T): Promise<T>;
|
||||
export function until(timeout: number, check: () => boolean, intervalResolution?: number): Promise<void>;
|
||||
export function untilAsync(check: () => Promise<boolean> | boolean, timeout?: number, intervalResolution?: number): Promise<void>;
|
||||
export function wait(timeout: number): Promise<undefined>;
|
||||
export function isPromise(p: any): boolean;
|
||||
export type PromiseResolve<T> = (result?: T | PromiseLike<T> | undefined) => any;
|
||||
//# sourceMappingURL=promise.d.ts.map
|
||||
Reference in New Issue
Block a user