Skip to content

Commit

Permalink
fix(typings): ensure compat typings for abstract repeater
Browse files Browse the repository at this point in the history
  • Loading branch information
bigopon committed Apr 19, 2022
1 parent 37b09e4 commit 812b3fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/abstract-repeater.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class AbstractRepeater {
* @param {Boolean} skipAnimation Should the removal animation be skipped?
* @return {Promise|null}
*/
removeAllViews(returnToCache?: boolean, skipAnimation?: boolean): (any | Promise<any>)[] {
removeAllViews(returnToCache?: boolean, skipAnimation?: boolean): any {
throw new Error('subclass must implement `removeAllViews`');
}

Expand All @@ -100,7 +100,7 @@ export class AbstractRepeater {
* @param {Boolean} returnToCache Should the view be returned to the view cache?
* @param {Boolean} skipAnimation Should the removal animation be skipped?
*/
removeViews(viewsToRemove: Array<View>, returnToCache?: boolean, skipAnimation?: boolean): (any | Promise<any>)[] {
removeViews(viewsToRemove: Array<View>, returnToCache?: boolean, skipAnimation?: boolean): any {
throw new Error('subclass must implement `removeView`');
}

Expand All @@ -111,7 +111,7 @@ export class AbstractRepeater {
* @param {Boolean} returnToCache Should the view be returned to the view cache?
* @param {Boolean} skipAnimation Should the removal animation be skipped?
*/
removeView(index: number, returnToCache?: boolean, skipAnimation?: boolean): any | Promise<any> {
removeView(index: number, returnToCache?: boolean, skipAnimation?: boolean): any {
throw new Error('subclass must implement `removeView`');
}

Expand Down

0 comments on commit 812b3fa

Please sign in to comment.