@solid-nestjs/rest-api
Version:
solid-nestjs Rest-API utilities
18 lines • 801 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.CrudControllerStructure = CrudControllerStructure;
const common_1 = require("@solid-nestjs/common");
/**
* Initializes and returns a `CrudControllerStructure` object with the provided input.
*
* This generic function ensures that the entity ID is filled in the input structure before returning it.
* It is intended to be used as a utility for setting up CRUD controller structures with strong typing.
*
* @param input - The CRUD controller structure to initialize.
* @returns The initialized CRUD controller structure with entity ID filled.
*/
function CrudControllerStructure(input) {
(0, common_1.fillEntityId)(input);
return input;
}
//# sourceMappingURL=crud-controller-structure.interface.js.map