alapa
Version:
A cutting-edge web development framework designed to revolutionize the way developers build modern web applications.
23 lines (22 loc) • 1.04 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.OpenApiSummary = OpenApiSummary;
function OpenApiSummary() {
return function (
// eslint-disable-next-line @typescript-eslint/no-explicit-any
target, propertyKey, descriptor) {
console.log(target, propertyKey, descriptor.value); // property instead of propertyKey
// Reflect.defineMetadata(ROUTE_KEY, route, target, propertyKey);
// Reflect.defineMetadata(METHOD_KEY, method, target, propertyKey);
// console.log(target, propertyKey); // property instead of propertyKey
// temporalCollections["objects"].push(propertyKey);
// if (!temporalCollections["routes"]) {
// temporalCollections["routes"] = {};
// }
// temporalCollections["routes"][propertyKey] = route;
// if (!temporalCollections["methods"]) {
// temporalCollections["methods"] = {};
// }
// temporalCollections["methods"][propertyKey] = method;
};
}
;