diff --git a/common/src/types.ts b/common/src/types.ts index 506d8905a..c4646dc86 100644 --- a/common/src/types.ts +++ b/common/src/types.ts @@ -620,16 +620,18 @@ export interface MilestoneImportInfo { new: MilestoneImportStat; } -export type GoalOrigin = { - // The user set this goal by hand - origin: "manual"; -} & { - // This goal was set for the user by part of a milestone. - // If a goal in a milestone was already set for whatever reason - // that origin takes priority. - origin: "milestone"; - milestoneID: string; -}; +export type GoalOrigin = + | { + // The user set this goal by hand + origin: "manual"; + } + | { + // This goal was set for the user by part of a milestone. + // If a goal in a milestone was already set for whatever reason + // that origin takes priority. + origin: "milestone"; + milestoneID: string; + }; export type UserGoalDocument = MongoDBDocument & { goalID: string;