mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 02:31:34 +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