sharkey/packages/megalodon/src/entities/announcement.ts

41 lines
822 B
TypeScript
Raw Normal View History

2023-09-24 01:49:47 +09:00
/// <reference path="emoji.ts" />
namespace Entity {
export type Announcement = {
id: string
content: string
starts_at: string | null
ends_at: string | null
published: boolean
all_day: boolean
published_at: string
updated_at: string | null
read: boolean | null
mentions: Array<AnnouncementAccount>
statuses: Array<AnnouncementStatus>
tags: Array<StatusTag>
emojis: Array<Emoji>
reactions: Array<AnnouncementReaction>
}
2023-09-24 01:49:47 +09:00
export type AnnouncementAccount = {
id: string
username: string
url: string
acct: string
}
2023-09-24 01:49:47 +09:00
export type AnnouncementStatus = {
id: string
url: string
}
export type AnnouncementReaction = {
name: string
count: number
me: boolean | null
url: string | null
static_url: string | null
}
2023-09-24 01:49:47 +09:00
}