fix: work through how i want to return the api response with the data property being of the right type.

This commit is contained in:
StevanFreeborn
2023-02-01 21:21:39 -06:00
parent 5a6c5094e9
commit 4952bf30ec
9 changed files with 164 additions and 39 deletions
+5 -3
View File
@@ -2,12 +2,14 @@ export class PagedResponse<T> {
public items: T[];
public pageNumber: number;
public pageSize: number;
public totalCount: number;
public totalPages: number;
public totalRecords: number;
constructor(items: T[], pageNumber: number, pageSize: number, totalCount: number) {
constructor(items: T[], pageNumber: number, pageSize: number, totalPages: number, totalRecords: number) {
this.items = items;
this.pageNumber = pageNumber;
this.pageSize = pageSize;
this.totalCount = totalCount;
this.totalPages = totalPages;
this.totalRecords = totalRecords;
}
}