Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
return function (target, name, descriptor) {
Guard.stringIsNotEmpty(eventType, 'eventType passed to an eventTransformFor decorator must not be \'\'');
let metadata: EspMetadata = EspDecoratorUtil.getOrCreateMetaData(target.constructor);
metadata.addEvent(
name,
eventType,
DecoratorTypes.custom,
observationStage,
null
);
return descriptor;
};
}
return function (target, name, descriptor) {
Guard.stringIsNotEmpty(eventType, 'eventType passed to an observeStoreEvent decorator must not be \'\'');
let metadata: EspMetadata = EspDecoratorUtil.getOrCreateMetaData(target.constructor);
metadata.addEvent(
name,
eventType,
DecoratorTypes.custom,
observationStage,
null
);
return descriptor;
};
}