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"; import type { PrivateMessageReportView } from "./PrivateMessageReportView";
export type ReportCombinedView = export type ReportCombinedView =
| { Post: PostReportView } | ({ type_: "Post" } & PostReportView)
| { Comment: CommentReportView } | ({ type_: "Comment" } & CommentReportView)
| { PrivateMessage: PrivateMessageReportView }; | ({ type_: "PrivateMessage" } & PrivateMessageReportView);