felicity-lims/webapp/models/pagination.ts

18 lines
333 B
TypeScript
Raw Normal View History

export interface IPageInfo {
2023-04-10 09:29:10 +08:00
endCursor?: string;
hasNextPage?: boolean;
hasPreviousPage?: boolean;
startCursor?: string;
2022-04-01 04:29:09 +08:00
}
export interface IPagination<T> {
2023-04-10 09:29:10 +08:00
items?: T[];
totalCount?: number;
pageInfo?: IPageInfo;
2022-04-01 04:29:09 +08:00
}
export interface IPaginationMeta {
2023-04-10 09:29:10 +08:00
totalCount?: number;
pageInfo?: IPageInfo;
}