Skip to content

Commit 5d54bf5

Browse files
authored
Fix defer not supporting resolving with a Promise<T> (#2216)
1 parent fc5f0e8 commit 5d54bf5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ export function isNullOrUndefined(val: any): boolean {
443443
}
444444

445445
export interface IDeferred<T> {
446-
resolve: (value: T) => void;
446+
resolve: (value: T | Promise<T>) => void;
447447
reject: (reason?: any) => void;
448448
promise: Promise<T>;
449449
}

0 commit comments

Comments
 (0)