1 | ;
|
2 | Object.defineProperty(exports, "__esModule", { value: true });
|
3 | exports.Client = void 0;
|
4 | const constants_1 = require("../constants");
|
5 | /**
|
6 | * Attaches the `ClientProxy` instance to the given property
|
7 | *
|
8 | * @param {ClientOptions} metadata optional client metadata
|
9 | *
|
10 | * @publicApi
|
11 | *
|
12 | */
|
13 | function Client(metadata) {
|
14 | return (target, propertyKey) => {
|
15 | Reflect.set(target, propertyKey, null);
|
16 | Reflect.defineMetadata(constants_1.CLIENT_METADATA, true, target, propertyKey);
|
17 | Reflect.defineMetadata(constants_1.CLIENT_CONFIGURATION_METADATA, metadata, target, propertyKey);
|
18 | };
|
19 | }
|
20 | exports.Client = Client;
|