You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
333 B

import { Service } from '../../../di/src/decorator/Service.ts'
const service = Service()
/**
* Class decorator that designates a class as a lifecycle unit. Also applies the service decorator.
* @constructor
*/
const Unit = (): ClassDecorator => {
return (target) => {
return service(target)
}
}
export { Unit }