UNPKG

@takentrade/takentrade-libs

Version:
18 lines (17 loc) 534 B
export interface PaginationOptions { /** The page value from the client. It is used to evaluate the value of `offset` and `skip`. Defaults to 1. */ page?: number; /** The number of rows to take */ limit?: number; /** The number of rows to skip */ offset?: number; /** Logically same as offset. */ skip?: number; } export interface PaginatedResult<R = unknown> { records: R[]; /** The total number of records matched across all pages */ count: number; limit: number; page: number; }