blob: 372ff7523bf7b6983839aef0d5b9d17278631cce (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
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>;
|