UNPKG

@russ-b/nestjs-common-tools

Version:
20 lines 670 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ApiPropertyOptionalIfAvailable = ApiPropertyOptionalIfAvailable; function loadApiPropertyOptionalDecorator() { try { const swaggerModule = require('@nestjs/swagger'); return swaggerModule.ApiPropertyOptional; } catch { return undefined; } } function ApiPropertyOptionalIfAvailable(options) { const apiPropertyOptional = loadApiPropertyOptionalDecorator(); if (!apiPropertyOptional) { return () => undefined; } return apiPropertyOptional(options); } //# sourceMappingURL=api-property-optional-if-available.decorator.js.map