chore: revert apply decorators signature (regression)

This commit is contained in:
Kamil Myśliwiec
2024-11-21 10:41:37 +01:00
parent 212d07fcbf
commit 03a61e9728
2 changed files with 1 additions and 37 deletions

View File

@@ -1,39 +1,3 @@
/**
* 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 function applyDecorators(
...decorators: Array<ClassDecorator>
): ClassDecorator;
/**
* 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 function applyDecorators(
...decorators: Array<MethodDecorator>
): MethodDecorator;
/**
* 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 function applyDecorators(
...decorators: Array<PropertyDecorator>
): PropertyDecorator;
/**
* Function that returns a new decorator that applies all decorators provided by param
*

View File

@@ -1,6 +1,6 @@
import { expect } from 'chai';
import { applyDecorators, UseGuards } from '../../decorators';
import { GUARDS_METADATA } from '../../constants';
import { applyDecorators, UseGuards } from '../../decorators';
import { CanActivate } from '../../interfaces';
describe('applyDecorators', () => {