UNPKG

@elsikora/nestjs-crud-automator

Version:

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

16 lines (13 loc) 636 B
import { API_CONTROLLER_READ_PLAN_METADATA_KEY } from './metadata-key.constant.js'; /** * Attaches a compiled generated-read plan to a controller method. * @param {object} target - Controller prototype that owns the generated method. * @param {string} methodName - Generated controller method name. * @param {IApiControllerReadPlan} plan - Validated route-local read plan. * @returns {void} */ function ApiControllerReadPlanSet(target, methodName, plan) { Reflect.defineMetadata(API_CONTROLLER_READ_PLAN_METADATA_KEY, plan, target, methodName); } export { ApiControllerReadPlanSet }; //# sourceMappingURL=set.utility.js.map