Skip to content

Commit

Permalink
chore: ensure we detect the new Ref shortcut correctly with ts-morph
Browse files Browse the repository at this point in the history
  • Loading branch information
B4nan committed Nov 2, 2022
1 parent 2cbb129 commit 5b0c115
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/reflection/src/TsMorphMetadataProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ export class TsMorphMetadataProvider extends MetadataProvider {

this.processWrapper(prop, 'IdentifiedReference');
this.processWrapper(prop, 'Reference');
this.processWrapper(prop, 'Ref');
this.processWrapper(prop, 'Collection');
}

Expand Down Expand Up @@ -156,7 +157,7 @@ export class TsMorphMetadataProvider extends MetadataProvider {

prop.type = m[1];

if (['Reference', 'IdentifiedReference'].includes(wrapper)) {
if (['Ref', 'Reference', 'IdentifiedReference'].includes(wrapper)) {
prop.wrappedReference = true;
}
}
Expand Down

0 comments on commit 5b0c115

Please sign in to comment.