From 355af9753821cd316b89d936d1ede08fb5e88816 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Mon, 2 Dec 2024 18:04:52 -0500 Subject: [PATCH] Use internal tagging. --- src/types/ReportCombinedView.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/types/ReportCombinedView.ts b/src/types/ReportCombinedView.ts index d9e8a5c..b8d4420 100644 --- a/src/types/ReportCombinedView.ts +++ b/src/types/ReportCombinedView.ts @@ -4,6 +4,6 @@ import type { PostReportView } from "./PostReportView"; import type { PrivateMessageReportView } from "./PrivateMessageReportView"; export type ReportCombinedView = - | { Post: PostReportView } - | { Comment: CommentReportView } - | { PrivateMessage: PrivateMessageReportView }; + | ({ type_: "Post" } & PostReportView) + | ({ type_: "Comment" } & CommentReportView) + | ({ type_: "PrivateMessage" } & PrivateMessageReportView);