Skip to content

Commit

Permalink
add explicit types
Browse files Browse the repository at this point in the history
  • Loading branch information
billdami committed Jul 31, 2020
1 parent 8e94e94 commit f997f9b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions addon/mixins/controller-pagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ export default function ControllerPaginationClass<T extends ConcreteSubclass<any
sort: NativeArray<any> = A();
hasMore: boolean = true;
limit: number = 10;
isLoadingPage = false;
pagingRootKey = 'page';
filterRootKey = 'filter';
includeKey = 'include';
isLoadingPage: boolean = false;
pagingRootKey: string | null = 'page';
filterRootKey: string | null = 'filter';
includeKey: string = 'include';

@or('isLoadingPage', 'isLoadingRoute') isLoadingModels!: boolean;
@readOnly('model.length') offset: number | undefined;
Expand Down

0 comments on commit f997f9b

Please sign in to comment.