refactor(all): make all method return a promise

This commit is contained in:
Manu Mtz.-Almeida
2018-08-28 18:16:10 +02:00
parent 5d32115684
commit 1d46973785
53 changed files with 307 additions and 442 deletions

View File

@ -157,8 +157,8 @@ export class Content {
}
@Method()
getScrollElement(): HTMLElement {
return this.scrollEl;
getScrollElement(): Promise<HTMLElement> {
return Promise.resolve(this.scrollEl);
}
/**
@ -182,7 +182,7 @@ export class Content {
* Scroll by a specified X/Y distance in the component
*/
@Method()
scrollByPoint(x: number, y: number, duration: number): Promise<any> {
scrollByPoint(x: number, y: number, duration: number): Promise<void> {
return this.scrollToPoint(x + this.scrollEl.scrollLeft, y + this.scrollEl.scrollTop, duration);
}