felicity-lims/webapp/models/pagination.ts

18 lines
316 B
TypeScript
Raw Normal View History

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