Use internal tagging.

This commit is contained in:
Dessalines 2024-12-02 18:04:52 -05:00
parent 54e4b0a707
commit 355af97538

View file

@ -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);