UNPKG

@elsikora/nestjs-crud-automator

Version:

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

17 lines (14 loc) 710 B
import { ErrorException } from '../../../error/exception.utility.js'; /** * Prevents low-level controller facades from silently ignoring an uncompiled identity alias. * @param {object} routeConfig - Route configuration supplied to the facade. * @param {IApiControllerIdentityPlan} [identityPlan] - Factory-compiled identity plan. * @returns {void} */ function ApiControllerIdentityPlanAssert(routeConfig, identityPlan) { if (Reflect.has(routeConfig, "identity") && !identityPlan) { throw ErrorException("Generated identity configuration requires compilation by the @ApiController factory"); } } export { ApiControllerIdentityPlanAssert }; //# sourceMappingURL=assert-plan.utility.js.map