8 lines
		
	
	
	
		
			367 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			8 lines
		
	
	
	
		
			367 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { apiRequestGet, apiRequestDelete } from 'mastodon/api';
 | |
| import type { ApiSuggestionJSON } from 'mastodon/api_types/suggestions';
 | |
| 
 | |
| export const apiGetSuggestions = (limit: number) =>
 | |
|   apiRequestGet<ApiSuggestionJSON[]>('v2/suggestions', { limit });
 | |
| 
 | |
| export const apiDeleteSuggestion = (accountId: string) =>
 | |
|   apiRequestDelete(`v1/suggestions/${accountId}`);
 |