Functions
currentPage
- currentPage(skip: number, pageSize: number): number
-
Parameters
-
skip: number
-
pageSize: number
Returns number
finalPage
- finalPage(pageSize: number, totalRecords: number): number
-
Parameters
-
pageSize: number
-
totalRecords: number
Returns number
fromResult
- fromResult(currentPage: number, pageSize: number): number
-
Parameters
-
currentPage: number
-
pageSize: number
Returns number
nextPage
- nextPage(currentPage: number, finalPage: number): number
-
Parameters
-
currentPage: number
-
finalPage: number
Returns number
previousPage
- previousPage(currentPage: number): number
-
Parameters
Returns number
toResult
- toResult(currentPage: number, pageSize: number, totalRecords: number): number
-
Parameters
-
currentPage: number
-
pageSize: number
-
totalRecords: number
Returns number