UNPKG

@sustain/core

Version:

Sustain is a Framework that is barely used despedcies to make stable and sustainable apps

13 lines (10 loc) 402 B
import { INTERCEPTORS } from "../constants"; function createDecorator() { return (interceptors: any[] = []) => { return function (target: any, propertyKey: string, descriptor: PropertyDescriptor) { Reflect.defineMetadata(INTERCEPTORS, interceptors, descriptor.value); return descriptor; } } } export const Interceptors = createDecorator();