@nestia/core 1.6.4-dev.20230817 → 1.6.4-dev.20230817-3
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.
|
@@ -11,14 +11,14 @@ import "reflect-metadata";
|
|
|
11
11
|
* but only affects to the swagger documents generation. Also, it does not affect to
|
|
12
12
|
* the SDK library generation yet, but will be used in the future.
|
|
13
13
|
*
|
|
14
|
-
* @param status Status number or pattern like "
|
|
14
|
+
* @param status Status number or pattern like "2XX", "3XX", "4XX", "5XX"
|
|
15
15
|
* @param description Description about the exception
|
|
16
16
|
* @returns Method decorator
|
|
17
17
|
*
|
|
18
18
|
* @author Jeongho Nam - https://github.com/samchon
|
|
19
19
|
* @deprecated
|
|
20
20
|
*/
|
|
21
|
-
export declare function TypedException(status: number | "
|
|
21
|
+
export declare function TypedException(status: number | "2XX" | "3XX" | "4XX" | "5XX", description?: string | undefined): never;
|
|
22
22
|
/**
|
|
23
23
|
* Exception decorator.
|
|
24
24
|
*
|
|
@@ -30,10 +30,10 @@ export declare function TypedException(status: number | "2xx" | "3xx" | "4xx" |
|
|
|
30
30
|
* the SDK library generation yet, but will be used in the future.
|
|
31
31
|
*
|
|
32
32
|
* @template T Type of the exception
|
|
33
|
-
* @param status Status number or pattern like "
|
|
33
|
+
* @param status Status number or pattern like "2XX", "3XX", "4XX", "5XX"
|
|
34
34
|
* @param description Description about the exception
|
|
35
35
|
* @returns Method decorator
|
|
36
36
|
*
|
|
37
37
|
* @author Jeongho Nam - https://github.com/samchon
|
|
38
38
|
*/
|
|
39
|
-
export declare function TypedException<T extends object>(status: number | "
|
|
39
|
+
export declare function TypedException<T extends object>(status: number | "2XX" | "3XX" | "4XX" | "5XX", description?: string | undefined): MethodDecorator;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nestia/core",
|
|
3
|
-
"version": "1.6.4-dev.20230817",
|
|
3
|
+
"version": "1.6.4-dev.20230817-3",
|
|
4
4
|
"description": "Super-fast validation decorators of NestJS",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
},
|
|
35
35
|
"homepage": "https://nestia.io",
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@nestia/fetcher": "^1.6.4-dev.20230817",
|
|
37
|
+
"@nestia/fetcher": "^1.6.4-dev.20230817-3",
|
|
38
38
|
"@nestjs/common": ">= 7.0.1",
|
|
39
39
|
"@nestjs/core": ">= 7.0.1",
|
|
40
40
|
"@nestjs/platform-express": ">= 7.0.1",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"typia": "^4.2.3"
|
|
48
48
|
},
|
|
49
49
|
"peerDependencies": {
|
|
50
|
-
"@nestia/fetcher": ">= 1.6.4-dev.20230817",
|
|
50
|
+
"@nestia/fetcher": ">= 1.6.4-dev.20230817-3",
|
|
51
51
|
"@nestjs/common": ">= 7.0.1",
|
|
52
52
|
"@nestjs/core": ">= 7.0.1",
|
|
53
53
|
"@nestjs/platform-express": ">= 7.0.1",
|
|
@@ -12,7 +12,7 @@ import "reflect-metadata";
|
|
|
12
12
|
* but only affects to the swagger documents generation. Also, it does not affect to
|
|
13
13
|
* the SDK library generation yet, but will be used in the future.
|
|
14
14
|
*
|
|
15
|
-
* @param status Status number or pattern like "
|
|
15
|
+
* @param status Status number or pattern like "2XX", "3XX", "4XX", "5XX"
|
|
16
16
|
* @param description Description about the exception
|
|
17
17
|
* @returns Method decorator
|
|
18
18
|
*
|
|
@@ -20,7 +20,7 @@ import "reflect-metadata";
|
|
|
20
20
|
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
export function TypedException(
|
|
23
|
-
status: number | "
|
|
23
|
+
status: number | "2XX" | "3XX" | "4XX" | "5XX",
|
|
24
24
|
description?: string | undefined,
|
|
25
25
|
): never;
|
|
26
26
|
|
|
@@ -35,14 +35,14 @@ export function TypedException(
|
|
|
35
35
|
* the SDK library generation yet, but will be used in the future.
|
|
36
36
|
*
|
|
37
37
|
* @template T Type of the exception
|
|
38
|
-
* @param status Status number or pattern like "
|
|
38
|
+
* @param status Status number or pattern like "2XX", "3XX", "4XX", "5XX"
|
|
39
39
|
* @param description Description about the exception
|
|
40
40
|
* @returns Method decorator
|
|
41
41
|
*
|
|
42
42
|
* @author Jeongho Nam - https://github.com/samchon
|
|
43
43
|
*/
|
|
44
44
|
export function TypedException<T extends object>(
|
|
45
|
-
status: number | "
|
|
45
|
+
status: number | "2XX" | "3XX" | "4XX" | "5XX",
|
|
46
46
|
description?: string | undefined,
|
|
47
47
|
): MethodDecorator;
|
|
48
48
|
|
|
@@ -50,7 +50,7 @@ export function TypedException<T extends object>(
|
|
|
50
50
|
* @internal
|
|
51
51
|
*/
|
|
52
52
|
export function TypedException<T extends object>(
|
|
53
|
-
status: number | "
|
|
53
|
+
status: number | "2XX" | "3XX" | "4XX" | "5XX",
|
|
54
54
|
description?: string | undefined,
|
|
55
55
|
type?: string | undefined,
|
|
56
56
|
): MethodDecorator {
|
|
@@ -84,7 +84,7 @@ export function TypedException<T extends object>(
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
interface IProps {
|
|
87
|
-
status: number | "
|
|
87
|
+
status: number | "2XX" | "3XX" | "4XX" | "5XX";
|
|
88
88
|
description?: string | undefined;
|
|
89
89
|
type: string;
|
|
90
90
|
}
|