fix(angular): overlay not found

fixes #15349
This commit is contained in:
Manu Mtz.-Almeida
2018-08-29 01:13:19 +02:00
parent 57d2f578aa
commit 8dfc52f63d
10 changed files with 17 additions and 17 deletions

View File

@ -30,7 +30,7 @@ export class ToastController implements OverlayController {
* Get the most recently opened toast overlay.
*/
@Method()
async getTop(): Promise<HTMLIonToastElement> {
async getTop(): Promise<HTMLIonToastElement | undefined> {
return getOverlay(this.doc, 'ion-toast') as HTMLIonToastElement;
}
}