UNPKG

@elsikora/nestjs-crud-automator

Version:

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

12 lines (11 loc) 826 B
import { IApiBaseEntity } from '../../../../interface/api-base-entity.interface'; import { IApiControllerPropertiesRouteBaseRelationsResponse } from '../../../../interface/decorator/api'; /** * Projects loaded relation objects into the configured response reference shape. * @template E - Entity type that owns the relation configuration. * @template R - Response value type. * @param {IApiControllerPropertiesRouteBaseRelationsResponse<E> | undefined} relationConfig - Response relation projection configuration. * @param {R} response - Response value to project. * @returns {R} Response value with projected relation references. */ export declare function ApiRouteProjectRelationResponse<E extends IApiBaseEntity, R>(relationConfig: IApiControllerPropertiesRouteBaseRelationsResponse<E> | undefined, response: R): R;