UNPKG

@wepublish/api

Version:
14 lines (13 loc) 378 B
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>>;