UNPKG

@zuu/owl

Version:

Zuu's Experimental GraphQL Implementation

20 lines 714 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const getMetadataStorage_1 = require("../metadata/getMetadataStorage"); const errors_1 = require("../errors"); function Ctx(propertyName) { return (prototype, propertyKey, parameterIndex) => { if (typeof propertyKey === "symbol") { throw new errors_1.SymbolKeysNotSupportedError(); } getMetadataStorage_1.getMetadataStorage().collectHandlerParamMetadata({ kind: "context", target: prototype.constructor, methodName: propertyKey, index: parameterIndex, propertyName, }); }; } exports.Ctx = Ctx; //# sourceMappingURL=Ctx.js.map