( service: string | undefined, method?: string, )
| 102 | export function GrpcMethod(service?: string): MethodDecorator; |
| 103 | export function GrpcMethod(service: string, method?: string): MethodDecorator; |
| 104 | export function GrpcMethod( |
| 105 | service: string | undefined, |
| 106 | method?: string, |
| 107 | ): MethodDecorator { |
| 108 | return ( |
| 109 | target: object, |
| 110 | key: string | symbol, |
| 111 | descriptor: PropertyDescriptor, |
| 112 | ) => { |
| 113 | const metadata = createGrpcMethodMetadata(target, key, service, method); |
| 114 | return MessagePattern(metadata, Transport.GRPC)(target, key, descriptor); |
| 115 | }; |
| 116 | } |
| 117 | |
| 118 | /** |
| 119 | * Registers gRPC call through RX handler for service and method |
no test coverage detected