UNPKG

@elsikora/nestjs-crud-automator

Version:

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

18 lines (14 loc) 678 B
'use strict'; var metadataKey_constant = require('./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(metadataKey_constant.API_CONTROLLER_READ_PLAN_METADATA_KEY, plan, target, methodName); } exports.ApiControllerReadPlanSet = ApiControllerReadPlanSet; //# sourceMappingURL=set.utility.js.map