parent
f3af434c25
commit
5f0d2b6e3b
2 changed files with 14 additions and 1 deletions
@ -0,0 +1,13 @@ |
||||
interface MastodonMap<T> { |
||||
get<K extends keyof T>(key: K): T[K]; |
||||
has<K extends keyof T>(key: K): boolean; |
||||
set<K extends keyof T>(key: K, value: T[K]): this; |
||||
} |
||||
|
||||
type AccountValues = { |
||||
id: number; |
||||
avatar: string; |
||||
avatar_static: string; |
||||
[key: string]: any; |
||||
} |
||||
export type Account = MastodonMap<AccountValues> |
Loading…
Reference in new issue