We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bc57a97 commit 8816befCopy full SHA for 8816bef
src/deferred-promise.ts
@@ -5,8 +5,8 @@ type DeferredPromiseOptions<T> = {
5
6
/** Creates a promise and exposes its resolve and reject methods, with an optional timeout. */
7
export class DeferredPromise<T> extends Promise<T> {
8
- resolve!: (value: T) => void;
9
- reject!: (reason: unknown) => void;
+ resolve: (value: T) => void;
+ reject: (reason: unknown) => void;
10
private timeoutId?: NodeJS.Timeout;
11
12
constructor(
0 commit comments