diff --git a/CHANGELOG.md b/CHANGELOG.md index f1eeb49fd2..972887ef54 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1 +1,2 @@ +- Notificationsの型を修正 - MessagingMessageの型を修正 diff --git a/etc/misskey-js.api.md b/etc/misskey-js.api.md index 362b73a99f..3095a7917c 100644 --- a/etc/misskey-js.api.md +++ b/etc/misskey-js.api.md @@ -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) diff --git a/src/entities.ts b/src/entities.ts index 87c8134637..f21036d960 100644 --- a/src/entities.ts +++ b/src/entities.ts @@ -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 = {