felicity-lims/webapp/models/pagination.ts
2023-04-10 03:29:10 +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;
}