Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Convert MatrixChat to a TypeScript class #4462

Merged
merged 11 commits into from
Apr 30, 2020
13 changes: 13 additions & 0 deletions src/@types/global.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>>;
}
t3chguy marked this conversation as resolved.
Show resolved Hide resolved
}
Loading