Skip to content

Commit

Permalink
Fix defer not supporting resolving with a Promise<T> (#2216)
Browse files Browse the repository at this point in the history
  • Loading branch information
t3chguy authored Mar 3, 2022
1 parent fc5f0e8 commit 5d54bf5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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>;
}
Expand Down

0 comments on commit 5d54bf5

Please sign in to comment.