mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
@ -30,7 +30,7 @@ export class AlertController implements OverlayController {
|
||||
* Get the most recently opened alert overlay.
|
||||
*/
|
||||
@Method()
|
||||
async getTop(): Promise<HTMLIonAlertElement> {
|
||||
async getTop(): Promise<HTMLIonAlertElement | undefined> {
|
||||
return getOverlay(this.doc, 'ion-alert') as HTMLIonAlertElement;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user