UNPKG

@zuu/owl

Version:

Zuu's Experimental GraphQL Implementation

27 lines 861 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const findType_1 = require("./findType"); const errors_1 = require("../errors"); function getParamInfo({ prototype, propertyKey, parameterIndex, returnTypeFunc, options = {}, }) { if (typeof propertyKey === "symbol") { throw new errors_1.SymbolKeysNotSupportedError(); } const { getType, typeOptions } = findType_1.findType({ metadataKey: "design:paramtypes", prototype, propertyKey, parameterIndex, returnTypeFunc, typeOptions: options, }); return { target: prototype.constructor, methodName: propertyKey, index: parameterIndex, getType, typeOptions, validate: options.validate, }; } exports.getParamInfo = getParamInfo; //# sourceMappingURL=params.js.map