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