Remove MastodonMap TS type (#24807)
This commit is contained in:
		@@ -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<AccountValues>;
 | 
			
		||||
 | 
			
		||||
export type Account = Record<AccountValues>;
 | 
			
		||||
 
 | 
			
		||||
@@ -1,7 +1 @@
 | 
			
		||||
export 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;
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
export type ValueOf<T> = T[keyof T];
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user