fix: Notificationsの型を修正 #27

Merged
tamaina merged 9 commits from fix-notification into develop 2021-09-20 17:50:36 +00:00
3 changed files with 12 additions and 3 deletions

View file

@ -1 +1,2 @@
- Notificationsの型を修正
- MessagingMessageの型を修正

View file

@ -2275,10 +2275,14 @@ type Notification_2 = {
userId: User['id'];
} | {
type: 'groupInvited';
invitation: UserGroup;
user: User;
userId: User['id'];
} | {
type: 'app';
header?: string | null;
body: string;
icon: string;
icon?: string | null;
});
// @public (undocumented)

View file

@ -150,11 +150,15 @@ export type Notification = {
user: User;
userId: User['id'];
} | {
type: 'groupInvited'; // TODO
type: 'groupInvited';
invitation: UserGroup;
user: User;
userId: User['id'];
} | {
type: 'app';
header?: string | null;
body: string;
icon: string;
icon?: string | null;
});
export type MessagingMessage = {