mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-26 20:07:33 -07:00
82 lines
1.6 KiB
Markdown
82 lines
1.6 KiB
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
|
|
|
|
[Home](./index.md) > [calckey-js](./calckey-js.md) > [entities](./calckey-js.entities.md) > [Notification](./calckey-js.entities.notification.md)
|
|
|
|
## entities.Notification type
|
|
|
|
**Signature:**
|
|
|
|
```typescript
|
|
export declare type Notification = {
|
|
id: ID;
|
|
createdAt: DateString;
|
|
isRead: boolean;
|
|
} & (
|
|
| {
|
|
type: "reaction";
|
|
reaction: string;
|
|
user: User;
|
|
userId: User["id"];
|
|
note: Note;
|
|
}
|
|
| {
|
|
type: "reply";
|
|
user: User;
|
|
userId: User["id"];
|
|
note: Note;
|
|
}
|
|
| {
|
|
type: "renote";
|
|
user: User;
|
|
userId: User["id"];
|
|
note: Note;
|
|
}
|
|
| {
|
|
type: "quote";
|
|
user: User;
|
|
userId: User["id"];
|
|
note: Note;
|
|
}
|
|
| {
|
|
type: "mention";
|
|
user: User;
|
|
userId: User["id"];
|
|
note: Note;
|
|
}
|
|
| {
|
|
type: "pollVote";
|
|
user: User;
|
|
userId: User["id"];
|
|
note: Note;
|
|
}
|
|
| {
|
|
type: "follow";
|
|
user: User;
|
|
userId: User["id"];
|
|
}
|
|
| {
|
|
type: "followRequestAccepted";
|
|
user: User;
|
|
userId: User["id"];
|
|
}
|
|
| {
|
|
type: "receiveFollowRequest";
|
|
user: User;
|
|
userId: User["id"];
|
|
}
|
|
| {
|
|
type: "groupInvited";
|
|
invitation: UserGroup;
|
|
user: User;
|
|
userId: User["id"];
|
|
}
|
|
| {
|
|
type: "app";
|
|
header?: string | null;
|
|
body: string;
|
|
icon?: string | null;
|
|
}
|
|
);
|
|
```
|
|
**References:** [ID](./calckey-js.entities.id.md)<!-- -->, [DateString](./calckey-js.entities.datestring.md)<!-- -->, [User](./calckey-js.entities.user.md)<!-- -->, [Note](./calckey-js.entities.note.md)<!-- -->, [UserGroup](./calckey-js.entities.usergroup.md)
|
|
|