parent
9775d02a15
commit
902b2175df
@ -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