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 }); } }