UNPKG

@euk-labs/nest-beltz

Version:

2 lines (1 loc) 601 B
import{a as t}from"../chunk-NMCIOGD2.js";import{applyDecorators as p}from"@nestjs/common";import{ApiExtraModels as n,getSchemaPath as o}from"@nestjs/swagger";import{OkResponse as a}from"./ok-response.decorator";const y=(e,r)=>p(n(e),a(t({content:{"application-json":{schema:{properties:{items:{type:"array",items:{$ref:o(e)}},meta:{type:"object",properties:{totalItems:{type:"number",nullable:!0},itemCount:{type:"number",nullable:!0},itemsPerPage:{type:"number",nullable:!0},totalPages:{type:"number",nullable:!0},currentPage:{type:"number",nullable:!0}}}}}}}},r)));export{y as PaginatedOkResponse};