diff --git a/benchmark/package.json b/benchmark/package.json index 5c707397e4..44741825ab 100644 --- a/benchmark/package.json +++ b/benchmark/package.json @@ -72,6 +72,6 @@ "suppress-warnings": "^1.0.2", "tstl": "^3.0.0", "uuid": "^9.0.1", - "typia": "../typia-6.10.0.tgz" + "typia": "../typia-6.10.1-dev.20240913.tgz" } } \ No newline at end of file diff --git a/errors/package.json b/errors/package.json index 8178eef9ad..dc5e46ff19 100644 --- a/errors/package.json +++ b/errors/package.json @@ -32,6 +32,6 @@ "typescript": "^5.3.2" }, "dependencies": { - "typia": "../typia-6.10.0.tgz" + "typia": "../typia-6.10.1-dev.20240913.tgz" } } \ No newline at end of file diff --git a/package.json b/package.json index cc93f427b9..ff033c6486 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "typia", - "version": "6.10.0", + "version": "6.10.1-dev.20240913", "description": "Superfast runtime validators with only one line", "main": "lib/index.js", "typings": "lib/index.d.ts", diff --git a/src/transformers/features/llm/LlmApplicationTransformer.ts b/src/transformers/features/llm/LlmApplicationTransformer.ts index f39324c9c3..8d23805b80 100644 --- a/src/transformers/features/llm/LlmApplicationTransformer.ts +++ b/src/transformers/features/llm/LlmApplicationTransformer.ts @@ -56,7 +56,8 @@ export namespace LlmApplicationTransformer { const schema: ILlmApplication = LlmApplicationProgrammer.write( result.data, ); - + const literal: ts.Expression = LiteralFactory.generate(schema); + if (!expression.arguments?.[0]) return literal; return ExpressionFactory.selfCall( ts.factory.createBlock( [ @@ -68,12 +69,7 @@ export namespace LlmApplicationTransformer { TypeFactory.keyword("any"), ), undefined, - [ - ts.factory.createIdentifier("app"), - ...(expression.arguments?.[0] - ? [expression.arguments[0]] - : []), - ], + [ts.factory.createIdentifier("app"), expression.arguments[0]], ), ), ts.factory.createReturnStatement( diff --git a/test-esm/package.json b/test-esm/package.json index e836d8530f..2717ef5f68 100644 --- a/test-esm/package.json +++ b/test-esm/package.json @@ -36,6 +36,6 @@ "typescript": "^5.4.5" }, "dependencies": { - "typia": "../typia-6.10.0.tgz" + "typia": "../typia-6.10.1-dev.20240913.tgz" } } \ No newline at end of file diff --git a/test/package.json b/test/package.json index 080f193f67..134ad01c79 100644 --- a/test/package.json +++ b/test/package.json @@ -52,6 +52,6 @@ "suppress-warnings": "^1.0.2", "tstl": "^3.0.0", "uuid": "^9.0.1", - "typia": "../typia-6.10.0.tgz" + "typia": "../typia-6.10.1-dev.20240913.tgz" } } \ No newline at end of file