mirror of
https://github.com/zkldi/Tachi.git
synced 2026-10-02 03:48:14 +03:00
fix: Place notifBody inside a body prop
The previous behaviour has issues with typescript expanding types. This implementation does not, so we're gonna roll with that instead.
This commit is contained in:
+2
-2
@@ -1500,7 +1500,7 @@ interface BaseNotification {
|
||||
read: boolean;
|
||||
}
|
||||
|
||||
export type NotificationTypes =
|
||||
export type NotificationBody =
|
||||
| {
|
||||
// Emitted when the user is rivalled by someone.
|
||||
type: "RIVALED_BY";
|
||||
@@ -1518,4 +1518,4 @@ export type NotificationTypes =
|
||||
};
|
||||
};
|
||||
|
||||
export type NotificationDocument = BaseNotification & NotificationTypes;
|
||||
export type NotificationDocument = BaseNotification & { body: NotificationBody };
|
||||
|
||||
Reference in New Issue
Block a user