MCPcopy
hub / github.com/nestjs/nest / Client

Function Client

packages/microservices/decorators/client.decorator.ts:12–23  ·  view source on GitHub ↗
(metadata?: ClientOptions)

Source from the content-addressed store, hash-verified

10 *
11 */
12export function Client(metadata?: ClientOptions): PropertyDecorator {
13 return (target: object, propertyKey: string | symbol): void => {
14 Reflect.set(target, propertyKey, null);
15 Reflect.defineMetadata(CLIENT_METADATA, true, target, propertyKey);
16 Reflect.defineMetadata(
17 CLIENT_CONFIGURATION_METADATA,
18 metadata,
19 target,
20 propertyKey,
21 );
22 };
23}

Callers 13

TestClass · 0.90
TestComponentClass · 0.90
AppControllerClass · 0.90
GrpcControllerClass · 0.90
AppControllerClass · 0.90
KafkaControllerClass · 0.90
RedisControllerClass · 0.90

Calls 1

setMethod · 0.65

Tested by

no test coverage detected