Skip to content

Commit

Permalink
Merge pull request #4 from frenchrabbit/dev
Browse files Browse the repository at this point in the history
fix: fix types
  • Loading branch information
maddocnc committed Oct 23, 2023
2 parents 17b0a53 + 03c8657 commit bb37b33
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/paginated-result.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ export class PaginatedResult<T> {
/**
* total pages count
*/
totalPages?: number = undefined
totalPages: number = 1

/**
* items per page
Expand Down Expand Up @@ -45,6 +45,6 @@ export class PaginatedResult<T> {
* The starting index/serial/chronological number of first document in current page.
* (Eg: if page=2 and limit=10, then pagingCounter will be 11)
*/
pagingCounter?: number = undefined
pagingCounter: number = 0

}

0 comments on commit bb37b33

Please sign in to comment.