mirror of
https://github.com/puppeteer/puppeteer
synced 2024-06-14 14:02:48 +00:00
fix(common): fix generic type of _isClosedPromise
(#6579)
This commit is contained in:
parent
67da1cf866
commit
122f074f92
@ -44,7 +44,7 @@ export class Target {
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
_isClosedPromise: Promise<boolean>;
|
||||
_isClosedPromise: Promise<void>;
|
||||
/**
|
||||
* @internal
|
||||
*/
|
||||
@ -91,7 +91,7 @@ export class Target {
|
||||
openerPage.emit(PageEmittedEvents.Popup, popupPage);
|
||||
return true;
|
||||
});
|
||||
this._isClosedPromise = new Promise<boolean>(
|
||||
this._isClosedPromise = new Promise<void>(
|
||||
(fulfill) => (this._closedCallback = fulfill)
|
||||
);
|
||||
this._isInitialized =
|
||||
|
Loading…
Reference in New Issue
Block a user