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

Commit

Permalink
Merge pull request #4462 from matrix-org/t3chguy/app_load4
Browse files Browse the repository at this point in the history
Convert MatrixChat to a TypeScript class
  • Loading branch information
t3chguy authored Apr 30, 2020
2 parents 7b775a8 + 9c916cc commit c19338b
Show file tree
Hide file tree
Showing 3 changed files with 486 additions and 439 deletions.
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>>;
}
}
Loading

0 comments on commit c19338b

Please sign in to comment.