Type alias PromiseDeconstructed<T>
PromiseDeconstructed<T>: {
p: Promise<T>;
rejectP: ((reason?: any) => void);
resolveP: ((value: T | PromiseLike<T>) => void);
}
Type declaration
-
p: Promise<T>
-
rejectP: ((reason?: any) => void)
-
- (reason?: any): void
-
Returns void
-
resolveP: ((value: T | PromiseLike<T>) => void)
-
- (value: T | PromiseLike<T>): void
-
Parameters
-
value: T | PromiseLike<T>
Returns void
Deconstructed promise