monkeeShark/packages/megalodon/src/misskey/entities/notification.ts

18 lines
428 B
TypeScript
Raw Normal View History

2023-09-23 16:49:47 +00:00
/// <reference path="user.ts" />
/// <reference path="note.ts" />
namespace MisskeyEntity {
2023-09-24 23:20:03 +00:00
export type Notification = {
id: string;
createdAt: string;
// https://github.com/syuilo/misskey/blob/056942391aee135eb6c77aaa63f6ed5741d701a6/src/models/entities/notification.ts#L50-L62
type: NotificationType;
userId: string;
user: User;
note?: Note;
reaction?: string;
};
2023-09-23 16:49:47 +00:00
2023-09-24 23:20:03 +00:00
export type NotificationType = string;
2023-09-23 16:49:47 +00:00
}