diff --git a/app/javascript/types/resources.ts b/app/javascript/types/resources.ts index 3b435ad71..28fad2719 100644 --- a/app/javascript/types/resources.ts +++ b/app/javascript/types/resources.ts @@ -1,4 +1,4 @@ -import type { MastodonMap } from './util'; +import type { Record } from 'immutable'; type AccountValues = { id: number; @@ -6,4 +6,5 @@ type AccountValues = { avatar_static: string; [key: string]: any; }; -export type Account = MastodonMap; + +export type Account = Record; diff --git a/app/javascript/types/util.ts b/app/javascript/types/util.ts index 94df0c919..5f2cf2cf0 100644 --- a/app/javascript/types/util.ts +++ b/app/javascript/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];