Showing 2 of 6 total issues
Function attributesDecorator
has 45 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function attributesDecorator(schema, schemaOptions = {}) {
if (typeof schemaOptions !== 'object') {
throw Errors.classAsSecondParam(schemaOptions);
}
Function decorator
has 40 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
return function decorator(Class) {
const WrapperClass = new Proxy(Class, {
construct(target, constructorArgs, newTarget) {
const instance = Reflect.construct(target, constructorArgs, newTarget);
const passedAttributes = Object.assign({}, constructorArgs[0]);