felicity-lims/webapp/models/pagination.ts
2023-11-10 08:05:15 +02:00

17 lines
333 B
TypeScript

export interface IPageInfo {
endCursor?: string;
hasNextPage?: boolean;
hasPreviousPage?: boolean;
startCursor?: string;
}
export interface IPagination<T> {
items?: T[];
totalCount?: number;
pageInfo?: IPageInfo;
}
export interface IPaginationMeta {
totalCount?: number;
pageInfo?: IPageInfo;
}