diff --git a/app/javascript/flavours/glitch/types/resources.ts b/app/javascript/flavours/glitch/types/resources.ts index 2346c659a..28fad2719 100644 --- a/app/javascript/flavours/glitch/types/resources.ts +++ b/app/javascript/flavours/glitch/types/resources.ts @@ -1,9 +1,10 @@ -import type { MastodonMap } from './util'; +import type { Record } from 'immutable'; type AccountValues = { id: number; avatar: string; avatar_static: string; [key: string]: any; -} -export type Account = MastodonMap +}; + +export type Account = Record; diff --git a/app/javascript/flavours/glitch/types/util.ts b/app/javascript/flavours/glitch/types/util.ts index 94df0c919..5f2cf2cf0 100644 --- a/app/javascript/flavours/glitch/types/util.ts +++ b/app/javascript/flavours/glitch/types/util.ts @@ -1,7 +1 @@ -export interface MastodonMap { - get(key: K): T[K]; - has(key: K): boolean; - set(key: K, value: T[K]): this; -} - export type ValueOf = T[keyof T];