UNPKG

@solid-nestjs/rest-api

Version:

solid-nestjs Rest-API utilities

19 lines 830 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DataControllerStructure = DataControllerStructure; const common_1 = require("@solid-nestjs/common"); /** * A utility function to initialize and return a `DataControllerStructure` object. * * This function ensures that the provided `input` structure has its entity ID field filled * by invoking the `fillEntityId` helper. It is generic over several types to provide strong * type safety for various data controller scenarios. * * @param input - The data controller structure to initialize. * @returns The initialized data controller structure with the entity ID filled. */ function DataControllerStructure(input) { (0, common_1.fillEntityId)(input); return input; } //# sourceMappingURL=data-controller-structure.interface.js.map