UNPKG

fireorm

Version:
19 lines 654 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.CustomRepository = void 0; var MetadataUtils_1 = require("../MetadataUtils"); /* Cannot enforce the type in target presumably becasuse Typescript cannot verify than the T from the entity param is the same T from the repository. Might be interesting to revisit later */ function CustomRepository(entity) { return function (target) { MetadataUtils_1.getMetadataStorage().setRepository({ entity: entity, target: target, }); }; } exports.CustomRepository = CustomRepository; //# sourceMappingURL=CustomRepository.js.map