UNPKG

@nestjs/common

Version:

Nest - modern, fast, powerful node.js web framework (@common)

11 lines (10 loc) 569 B
/** * Function that returns a new decorator that applies all decorators provided by param * * Useful to build new decorators (or a decorator factory) encapsulating multiple decorators related with the same feature * * @param decorators one or more decorators (e.g., `ApplyGuard(...)`) * * @publicApi */ export declare function applyDecorators(...decorators: Array<ClassDecorator | MethodDecorator | PropertyDecorator>): <TFunction extends Function, Y>(target: object | TFunction, propertyKey?: string | symbol, descriptor?: TypedPropertyDescriptor<Y>) => void;