@nova-ts/core
Version:
A serverside framework used to build scalable application
20 lines (18 loc) • 553 B
JavaScript
import {
NovaConstant
} from "./chunk-INEUQFI4.js";
// src/Factory/ParameterFactory.ts
function createParameterDecorator(resolver) {
return (target, propertyKey, parameterIndex) => {
const existing = Reflect.getMetadata(NovaConstant.ControllerParameter, target, propertyKey) || [];
existing.push({
index: Number(parameterIndex),
resolver
});
Reflect.defineMetadata(NovaConstant.ControllerParameter, existing, target, propertyKey);
};
}
export {
createParameterDecorator
};
//# sourceMappingURL=chunk-U74ZPA45.js.map