UNPKG

@eddaic/nestjs-decorators

Version:

Additional decorators intended for use with NestJS framework.

21 lines (20 loc) 672 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApiPropertyUri = ApiPropertyUri; exports.ApiPropertyUriOptional = ApiPropertyUriOptional; const api_property_decorator_1 = require("@nestjs/swagger/dist/decorators/api-property.decorator"); function ApiPropertyUri(options) { return (0, api_property_decorator_1.createApiPropertyDecorator)({ type: 'string', format: 'uri', ...options, }); } function ApiPropertyUriOptional(options) { return (0, api_property_decorator_1.createApiPropertyDecorator)({ ...options, format: 'uri', required: false, type: 'string', }); }