felicity-lims/webapp/models/pagination.ts

18 lines
333 B
TypeScript
Raw Permalink Normal View History

2023-11-10 14:05:15 +08:00
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;
}