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 | function Client(metadata) {
|
11 | return (target, propertyKey) => {
|
12 | Reflect.set(target, propertyKey, null);
|
13 | Reflect.defineMetadata(constants_1.CLIENT_METADATA, true, target, propertyKey);
|
14 | Reflect.defineMetadata(constants_1.CLIENT_CONFIGURATION_METADATA, metadata, target, propertyKey);
|
15 | };
|
16 | }
|
17 | exports.Client = Client;
|