From 2c5141e5ed3697f4fc7c07ee859aff2bb71e1493 Mon Sep 17 00:00:00 2001 From: Renaud Chaput Date: Wed, 3 May 2023 13:32:11 +0200 Subject: [PATCH] [Glitch] Remove MastodonMap TS type Port 7bc13c1ca3ea4d61d651cb261e7be119b9bb58cb to glitch-soc Signed-off-by: Claire --- app/javascript/flavours/glitch/types/resources.ts | 7 ++++--- app/javascript/flavours/glitch/types/util.ts | 6 ------ 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/app/javascript/flavours/glitch/types/resources.ts b/app/javascript/flavours/glitch/types/resources.ts index 2346c659a6..28fad2719a 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 94df0c9198..5f2cf2cf07 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];