Skip to content

Commit

Permalink
chore(type): correctly copy annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
marcj committed Jan 29, 2024
1 parent f2091d0 commit fb60c95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/type/src/reflection/type.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1264,7 +1264,7 @@ export function copyAndSetParent<T extends ParentLessType>(inc: T, parent?: Type
type.annotations = {};
//we have to make copies of each annotation since they get modified when intersected
for (const prop of Object.getOwnPropertySymbols(inc.annotations)) {
type.annotations[prop] = inc.annotations[prop].slice();
if (inc.annotations[prop]) type.annotations[prop] = inc.annotations[prop].slice();
}
}
if (inc.decorators) type.decorators = inc.decorators.slice();
Expand Down

0 comments on commit fb60c95

Please sign in to comment.