@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
15 lines (14 loc) • 786 B
TypeScript
import { TApiPropertyBaseProperties } from '../type/decorator/api/property/base/properties.type';
/**
* Applies class-transformer exposure to neutral manual DTO properties without marking them
* as Swagger response-only fields.
*
* Explicit response-only properties (`isResponse: true`) still rely on the decorator-specific
* response branch that uses `ApiResponseProperty()`.
* @param {object} target - Decorated DTO prototype.
* @param {string | symbol} propertyKey - Decorated property key.
* @param {TApiPropertyBaseProperties} properties - Crud-automator property options.
*/
export declare function ApplyAutoDtoResponseExposure(target: object, propertyKey: string | symbol, properties: {
isExpose?: boolean;
} & Pick<TApiPropertyBaseProperties, "isResponse">): void;