UNPKG

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