2023-04-02 21:31:39 -04:00
|
|
|
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;
|
2023-04-03 08:44:43 -04:00
|
|
|
};
|
|
|
|
export type Account = MastodonMap<AccountValues>;
|