fix(common): fix generic type of _isClosedPromise (#6579)

This commit is contained in:
ExE Boss 2020-11-04 07:42:23 +01:00 committed by GitHub
parent 67da1cf866
commit 122f074f92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -44,7 +44,7 @@ export class Target {
/** /**
* @internal * @internal
*/ */
_isClosedPromise: Promise<boolean>; _isClosedPromise: Promise<void>;
/** /**
* @internal * @internal
*/ */
@ -91,7 +91,7 @@ export class Target {
openerPage.emit(PageEmittedEvents.Popup, popupPage); openerPage.emit(PageEmittedEvents.Popup, popupPage);
return true; return true;
}); });
this._isClosedPromise = new Promise<boolean>( this._isClosedPromise = new Promise<void>(
(fulfill) => (this._closedCallback = fulfill) (fulfill) => (this._closedCallback = fulfill)
); );
this._isInitialized = this._isInitialized =