UNPKG

642 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 *
10 * @publicApi
11 *
12 */
13function 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}
20exports.Client = Client;