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