UNPKG

@haku-sci/utils

Version:

utils from haku-sci. Library only

13 lines 585 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TCP_PARAM_METADATA_KEY = void 0; exports.TcpParam = TcpParam; exports.TCP_PARAM_METADATA_KEY = 'tcp:param'; function TcpParam(name) { return (target, propertyKey, parameterIndex) => { const existing = Reflect.getMetadata(exports.TCP_PARAM_METADATA_KEY, target, propertyKey) ?? []; existing.push({ index: parameterIndex, name }); Reflect.defineMetadata(exports.TCP_PARAM_METADATA_KEY, existing, target, propertyKey); }; } //# sourceMappingURL=tcp-param.decorator.js.map