Skip to content

Commit 6ed7691

Browse files
ReferenceType instances should export the reflection id to JSON
1 parent 9722310 commit 6ed7691

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/td/models/types/ReferenceType.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,11 @@ module td
7070
var result:any = super.toObject();
7171
result.type = 'reference';
7272
result.name = this.name;
73-
result.symbolID = this.symbolID;
73+
74+
if (this.reflection) {
75+
result.id = this.reflection.id;
76+
}
77+
7478
return result;
7579
}
7680

0 commit comments

Comments
 (0)