Skip to content

Commit 52dff3e

Browse files
authored
Merge pull request #692 from samchon/features/assertClone
Fix samchon/typia#880 - `any` type comes when `assertClone` option.
2 parents 4ed877c + 8bc784e commit 52dff3e

File tree

5 files changed

+13
-12
lines changed

5 files changed

+13
-12
lines changed

packages/core/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nestia/core",
3-
"version": "2.3.10",
3+
"version": "2.3.11",
44
"description": "Super-fast validation decorators of NestJS",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -34,7 +34,7 @@
3434
},
3535
"homepage": "https://nestia.io",
3636
"dependencies": {
37-
"@nestia/fetcher": "^2.3.10",
37+
"@nestia/fetcher": "^2.3.11",
3838
"@nestjs/common": ">=7.0.1",
3939
"@nestjs/core": ">=7.0.1",
4040
"@nestjs/platform-express": ">=7.0.1",
@@ -47,7 +47,7 @@
4747
"typia": "^5.2.6"
4848
},
4949
"peerDependencies": {
50-
"@nestia/fetcher": ">=2.3.10",
50+
"@nestia/fetcher": ">=2.3.11",
5151
"@nestjs/common": ">=7.0.1",
5252
"@nestjs/core": ">=7.0.1",
5353
"@nestjs/platform-express": ">=7.0.1",

packages/core/src/decorators/TypedBody.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {
66
import type express from "express";
77
import type { FastifyRequest } from "fastify";
88

9-
import { assert, is, validate } from "typia";
9+
import { assert, is, misc, validate } from "typia";
1010

1111
import { IRequestBodyValidator } from "../options/IRequestBodyValidator";
1212
import { validate_request_body } from "./internal/validate_request_body";
@@ -47,6 +47,7 @@ export function TypedBody<T>(
4747
})();
4848
}
4949

50+
Object.assign(TypedBody, misc.clone);
5051
Object.assign(TypedBody, is);
5152
Object.assign(TypedBody, assert);
5253
Object.assign(TypedBody, validate);

packages/fetcher/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nestia/fetcher",
3-
"version": "2.3.10",
3+
"version": "2.3.11",
44
"description": "Fetcher library of Nestia SDK",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",

packages/sdk/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@nestia/sdk",
3-
"version": "2.3.10",
3+
"version": "2.3.11",
44
"description": "Nestia SDK and Swagger generator",
55
"main": "lib/index.js",
66
"typings": "lib/index.d.ts",
@@ -35,7 +35,7 @@
3535
},
3636
"homepage": "https://nestia.io",
3737
"dependencies": {
38-
"@nestia/fetcher": "^2.3.10",
38+
"@nestia/fetcher": "^2.3.11",
3939
"cli": "^1.0.1",
4040
"get-function-location": "^2.0.0",
4141
"glob": "^7.2.0",
@@ -47,7 +47,7 @@
4747
"typia": "^5.2.6"
4848
},
4949
"peerDependencies": {
50-
"@nestia/fetcher": ">=2.3.10",
50+
"@nestia/fetcher": ">=2.3.11",
5151
"@nestjs/common": ">=7.0.1",
5252
"@nestjs/core": ">=7.0.1",
5353
"reflect-metadata": ">=0.1.12",

test/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"private": true,
33
"name": "@nestia/test",
4-
"version": "2.3.10",
4+
"version": "2.3.11",
55
"description": "Test program of Nestia",
66
"main": "index.js",
77
"scripts": {
@@ -37,9 +37,9 @@
3737
"typia": "^5.2.6",
3838
"uuid": "^9.0.0",
3939
"nestia": "^4.5.0",
40-
"@nestia/core": "^2.3.10",
40+
"@nestia/core": "^2.3.11",
4141
"@nestia/e2e": "^0.3.6",
42-
"@nestia/fetcher": "^2.3.10",
43-
"@nestia/sdk": "^2.3.10"
42+
"@nestia/fetcher": "^2.3.11",
43+
"@nestia/sdk": "^2.3.11"
4444
}
4545
}

0 commit comments

Comments
 (0)