From 98fa7249ca8a470abebb096fd2a070ed8fdab178 Mon Sep 17 00:00:00 2001 From: zkldi <20380519+zkldi@users.noreply.github.com> Date: Sun, 27 Feb 2022 04:31:26 +0000 Subject: [PATCH] How did I mess that up? --- common/src/types.ts | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) 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;