1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-26 17:03:12 +03:00

[Combined] First pass of JS->TS for MatrixClient

This commit is contained in:
Travis Ralston
2021-05-27 23:09:40 -06:00
parent caab5befaa
commit 8a1d34c419
11 changed files with 5732 additions and 5673 deletions

View File

@@ -398,7 +398,7 @@ export function ensureNoTrailingSlash(url: string): string {
}
// Returns a promise which resolves with a given value after the given number of ms
export function sleep<T>(ms: number, value: T): Promise<T> {
export function sleep<T>(ms: number, value?: T): Promise<T> {
return new Promise((resolve => {
setTimeout(resolve, ms, value);
}));