Fix defer not supporting resolving with a Promise<T> (#2216)
This commit is contained in:
committed by
GitHub
parent
fc5f0e8047
commit
5d54bf558c
+1
-1
@@ -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>;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user