UNPKG

622 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.Client = void 0;
4const constants_1 = require("../constants");
5/**
6 * Attaches the `ClientProxy` instance to the given property
7 *
8 * @param {ClientOptions} metadata optional client metadata
9 */
10function 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}
17exports.Client = Client;