UNPKG

@elsikora/nestjs-crud-automator

Version:

A library for automating the creation of CRUD operations in NestJS.

14 lines (13 loc) 1.02 kB
import { IApiBaseEntity } from '../../../interface/api-base-entity.interface'; import { IApiRouteMetadata, IApiRouteRuntimeProperties } from '../../../interface/decorator/api'; /** * Applies request DTO metadata used by Nest Swagger for custom routes. * @template E - Entity type represented by the route metadata. * @param {object} target - Controller prototype that owns the custom route. * @param {string | symbol} propertyKey - Custom route method name. * @param {IApiRouteMetadata<E>} metadata - Route metadata used to resolve generated DTOs. * @param {IApiRouteRuntimeProperties<E, undefined>} runtimeProperties - Runtime route config containing dto/autoDto. * @param {PropertyDescriptor} descriptor - Custom route method descriptor. * @returns {void} */ export declare function ApiRouteApplyDtoMetadata<E extends IApiBaseEntity>(target: object, propertyKey: string | symbol, metadata: IApiRouteMetadata<E>, runtimeProperties: IApiRouteRuntimeProperties<E, undefined>, descriptor: PropertyDescriptor): void;