Closed Pierrci closed 5 years ago
Just submitted the related PR
It seems the PR was merged so I'm going to close this, thanks for the issue!
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.
Bug Report
Ionic version:
[x] 4.x
Current behavior: In the angular package, the return type of the
getTop
method inOverlayBaseController
isPromise<Overlay>
Expected behavior: The return type should be
Promise<Overlay | undefined>
Steps to reproduce: Use any component extending
OverlayBaseController
and call thegetTop
method without any alert currently present. With theAlertController
for example, returned object will be of typePromise<HTMLIonAlertElement>
, while it should bePromise<HTMLIonAlertElement | undefined>
.Related code:
Other information:
Ionic info: