@wepublish/api
Version:
API core for we.publish.
14 lines (13 loc) • 378 B
TypeScript
import { Type } from '@nestjs/common';
export declare class PageInfo {
hasPreviousPage: boolean;
hasNextPage: boolean;
startCursor?: string;
endCursor?: string;
}
export interface PaginatedObjectType<T> {
nodes: T[];
totalCount: number;
pageInfo: PageInfo;
}
export declare function PaginatedType<T>(classRef: Type<T>): Type<PaginatedObjectType<T>>;