@nestia/core
Advanced tools
Comparing version 0.1.0 to 0.1.1
@@ -0,1 +1,2 @@ | ||
import { IResponseBodyStringifier } from "../options/IResponseBodyStringifier"; | ||
/** | ||
@@ -31,4 +32,4 @@ * Encrypted router decorator functions. | ||
(path?: string | string[]): MethodDecorator; | ||
(stringify?: ((input: any) => string) | undefined): MethodDecorator; | ||
(path: string | string[], stringify: (input: any) => string): MethodDecorator; | ||
<T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator; | ||
<T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator; | ||
}; | ||
@@ -43,4 +44,4 @@ /** | ||
(path?: string | string[]): MethodDecorator; | ||
(stringify?: ((input: any) => string) | undefined): MethodDecorator; | ||
(path: string | string[], stringify: (input: any) => string): MethodDecorator; | ||
<T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator; | ||
<T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator; | ||
}; | ||
@@ -55,4 +56,4 @@ /** | ||
(path?: string | string[]): MethodDecorator; | ||
(stringify?: ((input: any) => string) | undefined): MethodDecorator; | ||
(path: string | string[], stringify: (input: any) => string): MethodDecorator; | ||
<T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator; | ||
<T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator; | ||
}; | ||
@@ -67,4 +68,4 @@ /** | ||
(path?: string | string[]): MethodDecorator; | ||
(stringify?: ((input: any) => string) | undefined): MethodDecorator; | ||
(path: string | string[], stringify: (input: any) => string): MethodDecorator; | ||
<T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator; | ||
<T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator; | ||
}; | ||
@@ -79,5 +80,5 @@ /** | ||
(path?: string | string[]): MethodDecorator; | ||
(stringify?: ((input: any) => string) | undefined): MethodDecorator; | ||
(path: string | string[], stringify: (input: any) => string): MethodDecorator; | ||
<T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator; | ||
<T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator; | ||
}; | ||
} |
{ | ||
"name": "@nestia/core", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Super-fast validation decorators of NestJS", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -24,2 +24,3 @@ import { AesPkcs5, IEncryptionPassword } from "@nestia/fetcher"; | ||
import { IResponseBodyStringifier } from "../options/IResponseBodyStringifier"; | ||
import { Singleton } from "../utils/Singleton"; | ||
@@ -95,6 +96,8 @@ import { ENCRYPTION_METADATA_KEY } from "./internal/EncryptedConstant"; | ||
function route(path?: string | string[]): MethodDecorator; | ||
function route(stringify?: (input: any) => string): MethodDecorator; | ||
function route( | ||
function route<T>( | ||
stringify?: IResponseBodyStringifier<T>, | ||
): MethodDecorator; | ||
function route<T>( | ||
path: string | string[], | ||
stringify: (input: any) => string, | ||
stringify: IResponseBodyStringifier<T>, | ||
): MethodDecorator; | ||
@@ -101,0 +104,0 @@ |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198825
3830