You've already forked matrix-js-sdk
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:
committed by
GitHub
parent
fc5f0e8047
commit
5d54bf558c
@@ -443,7 +443,7 @@ export function isNullOrUndefined(val: any): boolean {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export interface IDeferred<T> {
|
export interface IDeferred<T> {
|
||||||
resolve: (value: T) => void;
|
resolve: (value: T | Promise<T>) => void;
|
||||||
reject: (reason?: any) => void;
|
reject: (reason?: any) => void;
|
||||||
promise: Promise<T>;
|
promise: Promise<T>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user