1
0
mirror of https://github.com/matrix-org/matrix-js-sdk.git synced 2025-11-25 05:23:13 +03:00

Fix defer not supporting resolving with a Promise<T> (#2216)

This commit is contained in:
Michael Telatynski
2022-03-03 21:41:23 +00:00
committed by GitHub
parent fc5f0e8047
commit 5d54bf558c

View File

@@ -443,7 +443,7 @@ export function isNullOrUndefined(val: any): boolean {
}
export interface IDeferred<T> {
resolve: (value: T) => void;
resolve: (value: T | Promise<T>) => void;
reject: (reason?: any) => void;
promise: Promise<T>;
}