Skip to content

Commit

Permalink
Update NPM packages
Browse files Browse the repository at this point in the history
  • Loading branch information
AArnott committed Dec 10, 2020
1 parent b5b5de1 commit 58d7756
Show file tree
Hide file tree
Showing 2 changed files with 123 additions and 80 deletions.
4 changes: 2 additions & 2 deletions src/nerdbank-streams/src/Deferred.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
*/
export class Deferred<T> {
public readonly promise: Promise<T>;
private resolvePromise!: (value?: T | PromiseLike<T>) => void;
private resolvePromise!: (value: T | PromiseLike<T>) => void;
private rejectPromise!: (reason?: any) => void;
private _isResolved: boolean = false;
private _isRejected: boolean = false;
Expand Down Expand Up @@ -48,7 +48,7 @@ export class Deferred<T> {
* Resolves the promise.
* @param value The result of the promise.
*/
public resolve(value?: T | PromiseLike<T>): boolean {
public resolve(value: T | PromiseLike<T>): boolean {
if (this.isCompleted) {
return false;
}
Expand Down
Loading

0 comments on commit 58d7756

Please sign in to comment.