Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
PaginationMetaDto
import { Trace } from 'traceflow'; import { PaginationMetaDto } from 'src/dto/pagination-meta.dto'; export class PaginationFunction { @Trace({ name: 'Crear paginación', type: 'method' }) static createPaginationMeta(total: number, page: number, limit: number): PaginationMetaDto { const totalPages = Math.ceil(total / limit); return { total, page, limit, totalPages, hasNextPage: page < totalPages, hasPreviousPage: page > 1, }; } }