From 74b92fc246cdc93bc4894702c73964de93c0f85c Mon Sep 17 00:00:00 2001 From: "Marcus S. Abildskov" <8391194+marcus-sa@users.noreply.github.com> Date: Sun, 1 Oct 2023 18:55:51 +0200 Subject: [PATCH] fix(type-compiler): Node InferType did not pass test 'isEntityName' (#465) Fixes https://github.com/deepkit/deepkit-framework/issues/455 Author https://discord.com/channels/759513055117180999/956485210676002816/1138433915221196912 Signed-off-by: Marcus S. Abildskov <8391194+marcus-sa@users.noreply.github.com> --- packages/type-compiler/src/compiler.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/type-compiler/src/compiler.ts b/packages/type-compiler/src/compiler.ts index b2e0333f1..5ab12cbcb 100644 --- a/packages/type-compiler/src/compiler.ts +++ b/packages/type-compiler/src/compiler.ts @@ -2322,8 +2322,8 @@ export class ReflectionTransformer implements CustomTransformer { return node; }; - const updatedParameterType = visitEachChild(parameter.type, searchArgument, this.context); if (found && isIdentifier(parameter.name)) { + const updatedParameterType = visitEachChild(parameter.type, searchArgument, this.context); foundUsers.push({ type: updatedParameterType, parameterName: parameter.name }); } }