mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
refactor(all): make all method return a promise
This commit is contained in:
@ -30,7 +30,7 @@ export class ToastController implements OverlayController {
|
||||
* Get the most recently opened toast overlay.
|
||||
*/
|
||||
@Method()
|
||||
getTop(): HTMLIonToastElement {
|
||||
async getTop(): Promise<HTMLIonToastElement> {
|
||||
return getOverlay(this.doc, 'ion-toast') as HTMLIonToastElement;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user