@nestia/core 0.1.1 → 0.1.2

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.
@@ -30,7 +30,7 @@ export declare namespace EncryptedRoute {
30
30
  const Get: {
31
31
  (path?: string | string[]): MethodDecorator;
32
32
  <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
33
- <T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator;
33
+ <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
34
34
  };
35
35
  /**
36
36
  * Encrypted router decorator function for the GET method.
@@ -41,7 +41,7 @@ export declare namespace EncryptedRoute {
41
41
  const Post: {
42
42
  (path?: string | string[]): MethodDecorator;
43
43
  <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
44
- <T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator;
44
+ <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
45
45
  };
46
46
  /**
47
47
  * Encrypted router decorator function for the PATCH method.
@@ -52,7 +52,7 @@ export declare namespace EncryptedRoute {
52
52
  const Patch: {
53
53
  (path?: string | string[]): MethodDecorator;
54
54
  <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
55
- <T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator;
55
+ <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
56
56
  };
57
57
  /**
58
58
  * Encrypted router decorator function for the PUT method.
@@ -63,7 +63,7 @@ export declare namespace EncryptedRoute {
63
63
  const Put: {
64
64
  (path?: string | string[]): MethodDecorator;
65
65
  <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
66
- <T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator;
66
+ <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
67
67
  };
68
68
  /**
69
69
  * Encrypted router decorator function for the DELETE method.
@@ -74,6 +74,6 @@ export declare namespace EncryptedRoute {
74
74
  const Delete: {
75
75
  (path?: string | string[]): MethodDecorator;
76
76
  <T>(stringify?: IResponseBodyStringifier<T> | undefined): MethodDecorator;
77
- <T_1>(path: string | string[], stringify: IResponseBodyStringifier<T_1>): MethodDecorator;
77
+ <T_1>(path: string | string[], stringify?: IResponseBodyStringifier<T_1> | undefined): MethodDecorator;
78
78
  };
79
79
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nestia/core",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "Super-fast validation decorators of NestJS",
5
5
  "main": "lib/index.js",
6
6
  "typings": "lib/index.d.ts",
@@ -97,7 +97,7 @@ export namespace EncryptedRoute {
97
97
  ): MethodDecorator;
98
98
  function route<T>(
99
99
  path: string | string[],
100
- stringify: IResponseBodyStringifier<T>,
100
+ stringify?: IResponseBodyStringifier<T>,
101
101
  ): MethodDecorator;
102
102
 
103
103
  function route(...args: any[]): MethodDecorator {