UNPKG

@nexica/nestjs-trpc

Version:
14 lines 633 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.createParameterDecorator = createParameterDecorator; require("reflect-metadata"); function createParameterDecorator(metadataKey) { return function () { return (target, propertyKey, parameterIndex) => { const existingParameters = Reflect.getMetadata(metadataKey, target.constructor, propertyKey) || []; existingParameters.push(parameterIndex); Reflect.defineMetadata(metadataKey, existingParameters, target.constructor, propertyKey); }; }; } //# sourceMappingURL=parameter.decorator.js.map