@elsikora/nestjs-crud-automator
Version:
A library for automating the creation of CRUD operations in NestJS.
17 lines (14 loc) • 670 B
JavaScript
import { ErrorException } from '../../../error/exception.utility.js';
/**
* Prevents low-level controller facades from silently ignoring an uncompiled read scope.
* @param {object} routeConfig - Route configuration supplied to the facade.
* @param {IApiControllerReadPlan} [readPlan] - Factory-compiled read plan.
* @returns {void}
*/
function ApiControllerReadPlanAssert(routeConfig, readPlan) {
if (Reflect.has(routeConfig, "read") && !readPlan) {
throw ErrorException("Generated read configuration requires compilation by the @ApiController factory");
}
}
export { ApiControllerReadPlanAssert };
//# sourceMappingURL=assert-plan.utility.js.map