UNPKG

nestwhats

Version:

A whatsapp-web.js wrapper for NestJS to create WhatsApp bots

13 lines (12 loc) 574 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ARG_INDEX_METADATA = void 0; exports.ArgIndex = ArgIndex; exports.ARG_INDEX_METADATA = Symbol("NESTWHATS::ARG_INDEX_METADATA"); function ArgIndex(index, options) { return (target, propertyKey) => { var _a; const existing = (_a = Reflect.getMetadata(exports.ARG_INDEX_METADATA, target)) !== null && _a !== void 0 ? _a : []; Reflect.defineMetadata(exports.ARG_INDEX_METADATA, [...existing, { propertyKey: String(propertyKey), index, options }], target); }; }