refactor: switch to v1 instance api
V2 instance api is too new, and we should support more versions.
This commit is contained in:
parent
d415638bd9
commit
c5573cb10b
2 changed files with 9 additions and 15 deletions
|
@ -27,12 +27,6 @@ export interface ElkMasto extends mastodon.Client {
|
|||
|
||||
export type PaginatorState = 'idle' | 'loading' | 'done' | 'error'
|
||||
|
||||
export interface ServerInfo extends mastodon.v2.Instance {
|
||||
server: string
|
||||
timeUpdated: number
|
||||
customEmojis?: Record<string, mastodon.v1.CustomEmoji>
|
||||
}
|
||||
|
||||
export interface GroupedNotifications {
|
||||
id: string
|
||||
type: Exclude<string, 'grouped-reblogs-and-favourites'>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue