mirror of
https://github.com/element-hq/element-web
synced 2024-11-28 12:28:50 +03:00
C
Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
d915e613dc
commit
01abb61e9a
3 changed files with 291 additions and 242 deletions
13
src/@types/global.d.ts
vendored
13
src/@types/global.d.ts
vendored
|
@ -37,4 +37,17 @@ declare global {
|
|||
interface StorageEstimate {
|
||||
usageDetails?: {[key: string]: number};
|
||||
}
|
||||
|
||||
export interface ISettledFulfilled<T> {
|
||||
status: "fulfilled";
|
||||
value: T;
|
||||
}
|
||||
export interface ISettledRejected {
|
||||
status: "rejected";
|
||||
reason: any;
|
||||
}
|
||||
|
||||
interface PromiseConstructor {
|
||||
allSettled<T>(promises: Promise<T>[]): Promise<Array<ISettledFulfilled<T> | ISettledRejected>>;
|
||||
}
|
||||
}
|
||||
|
|
File diff suppressed because it is too large
Load diff
|
@ -33,7 +33,7 @@ export async function timeout<T>(promise: Promise<T>, timeoutValue: T, ms: numbe
|
|||
}
|
||||
|
||||
export interface IDeferred<T> {
|
||||
resolve: (T) => void;
|
||||
resolve: (value: T) => void;
|
||||
reject: (any) => void;
|
||||
promise: Promise<T>;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue