UNPKG

@elsikora/nestjs-crud-automator

Version:

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

18 lines (14 loc) 502 B
'use strict'; var enum_decorator = require('../../../../../decorator/api/property/enum.decorator.js'); class DtoPropertyFactoryEnum { create(metadata, entity, config, _method, _dtoType, _propertyName) { const { type, ...restProperties } = metadata; return enum_decorator.ApiPropertyEnum({ entity, ...config, ...restProperties, }); } } exports.DtoPropertyFactoryEnum = DtoPropertyFactoryEnum; //# sourceMappingURL=enum.class.js.map