Skip to content

Commit

Permalink
fix(type-compiler): correctly resolve runtime type parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Oct 1, 2023
1 parent 855a185 commit 4f1dd35
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions packages/type-compiler/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2322,9 +2322,11 @@ export class ReflectionTransformer implements CustomTransformer {
return node;
};

if (found && isIdentifier(parameter.name)) {
if (isIdentifier(parameter.name)) {
const updatedParameterType = visitEachChild(parameter.type, searchArgument, this.context);
foundUsers.push({ type: updatedParameterType, parameterName: parameter.name });
if (found) {
foundUsers.push({ type: updatedParameterType, parameterName: parameter.name });
}
}
}
}
Expand Down

0 comments on commit 4f1dd35

Please sign in to comment.