Skip to content

Commit

Permalink
fix(type-compiler): Node InferType did not pass test 'isEntityName'
Browse files Browse the repository at this point in the history
Fixes deepkit#455

Author: https://discord.com/channels/759513055117180999/956485210676002816/1138433915221196912

Signed-off-by: Marcus S. Abildskov <8391194+marcus-sa@users.noreply.github.com>
  • Loading branch information
marcus-sa committed Aug 9, 2023
1 parent 3fd48ea commit f5cba6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/type-compiler/src/compiler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2308,8 +2308,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 });
}
}
Expand Down

0 comments on commit f5cba6f

Please sign in to comment.