From 89625b0b04c6bb09bee571cf4df29ebe58cdaee9 Mon Sep 17 00:00:00 2001 From: Shravya Ramesh Date: Fri, 21 May 2021 11:33:08 -0700 Subject: Add return type for load tagg users function --- src/utils/search.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/utils/search.ts b/src/utils/search.ts index b3abce9c..789acbc3 100644 --- a/src/utils/search.ts +++ b/src/utils/search.ts @@ -143,7 +143,9 @@ export const getRecentlySearchedCategories = async (): Promise< /* * Retrieves and returns a list of suggested tagg users */ -export const loadTaggUserSuggestions = async () => { +export const loadTaggUserSuggestions = async (): Promise< + ProfilePreviewType[] +> => { const searchResults = await loadSearchResults(`${SEARCH_ENDPOINT_SUGGESTED}`); return searchResults?.users; }; -- cgit v1.2.3-70-g09d2