@hemia/common 0.0.13 → 0.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,4 +4,4 @@ import { CanActivate, Type } from '../../interfaces';
|
|
|
4
4
|
* Decorador que vincula Guards al controlador o método.
|
|
5
5
|
* @param guards Una lista de clases Guard o instancias de Guard.
|
|
6
6
|
*/
|
|
7
|
-
export declare function UseGuards(...guards: (Type<CanActivate> | CanActivate | Function)[]): (target: object | Function, key?: string | symbol, descriptor?: PropertyDescriptor) =>
|
|
7
|
+
export declare function UseGuards(...guards: (Type<CanActivate> | CanActivate | Function)[]): (target: object | Function, key?: string | symbol, descriptor?: PropertyDescriptor) => any;
|
|
@@ -4,4 +4,4 @@ import { HemiaInterceptor, Type } from '../../interfaces';
|
|
|
4
4
|
* Decorador que vincula Interceptores al controlador o método.
|
|
5
5
|
* @param interceptors Una lista de clases Interceptor o instancias.
|
|
6
6
|
*/
|
|
7
|
-
export declare function UseInterceptors(...interceptors: (Type<HemiaInterceptor> | HemiaInterceptor | Function)[]): (target: object | Function, key?: string | symbol, descriptor?: PropertyDescriptor) =>
|
|
7
|
+
export declare function UseInterceptors(...interceptors: (Type<HemiaInterceptor> | HemiaInterceptor | Function)[]): (target: object | Function, key?: string | symbol, descriptor?: PropertyDescriptor) => any;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import 'reflect-metadata';
|
|
2
|
-
import { PipeTransform,
|
|
2
|
+
import { PipeTransform, PType } from '../../interfaces';
|
|
3
3
|
/**
|
|
4
4
|
* Decorador que vincula Pipes al controlador o método.
|
|
5
5
|
* @param pipes Una lista de clases Pipe o instancias de Pipe.
|
|
6
6
|
*/
|
|
7
|
-
export declare function UsePipes(...pipes: (
|
|
7
|
+
export declare function UsePipes(...pipes: (PType<PipeTransform> | PipeTransform | Function)[]): (target: object | Function, key?: string | symbol, descriptor?: PropertyDescriptor) => any;
|