Skip to content

Commit

Permalink
fix: Notificationsの型を修正 (#27)
Browse files Browse the repository at this point in the history
* Update entities.ts

* Update entities.ts

* extract

* fix app define
extract

* appの定義を修正

* 改行コード修正

* add changelog

* fix

Co-authored-by: syuilo <[email protected]>
  • Loading branch information
tamaina and syuilo authored Sep 20, 2021
1 parent fa98dab commit f278390
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
- Notificationsの型を修正
- MessagingMessageの型を修正
6 changes: 5 additions & 1 deletion etc/misskey-js.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
8 changes: 6 additions & 2 deletions src/entities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand Down

0 comments on commit f278390

Please sign in to comment.