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
+1 -1
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>;
}