@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
10 lines (9 loc) • 611 B
TypeScript
import { EApiDtoType, EApiRouteType } from '../../../../enum/index';
/**
* Pushes DTO auto-context onto the provided DTO prototype so property decorators can read it later.
* @param {object} target - DTO prototype to annotate.
* @param {EApiRouteType} method - Route method currently being generated.
* @param {EApiDtoType} dtoType - DTO type currently being generated.
* @param {WeakSet<object>} [visited] - Set of visited prototypes to avoid infinite recursion.
*/
export declare function DtoAutoContextPush(target: object, method: EApiRouteType, dtoType: EApiDtoType, visited?: WeakSet<object>): void;