feat: cache for publish widget

This commit is contained in:
Anthony Fu 2022-11-21 14:55:31 +08:00
parent 5d5cdebb56
commit 193d1cf5c5
9 changed files with 149 additions and 43 deletions

View file

@ -1,4 +1,4 @@
import type { AccountCredentials } from 'masto'
import type { AccountCredentials, Emoji, Instance } from 'masto'
export interface AppInfo {
id: string
@ -17,3 +17,9 @@ export interface UserLogin {
}
export type PaginatorState = 'idle' | 'loading' | 'done' | 'error'
export interface ServerInfo extends Instance {
server: string
timeUpdated: number
customEmojis?: Record<string, Emoji>
}