@nestjs/microservices
Version:
Microservices for NestJS: message and event handlers over Kafka, RabbitMQ, NATS, Redis, MQTT, gRPC or TCP.
6 lines (5 loc) • 573 B
TypeScript
import type { ParameterDecoratorOptions, PipeTransform, Type } from '@nestjs/common';
import 'reflect-metadata';
import { RpcParamtype } from '../enums/rpc-paramtype.enum.js';
export declare function createRpcParamDecorator(paramtype: RpcParamtype): (...pipes: (Type<PipeTransform> | PipeTransform)[]) => ParameterDecorator;
export declare const createPipesRpcParamDecorator: (paramtype: RpcParamtype) => (data?: any, optionsOrPipe?: ParameterDecoratorOptions | Type<PipeTransform> | PipeTransform, ...pipes: (Type<PipeTransform> | PipeTransform)[]) => ParameterDecorator;