1
0
mirror of https://github.com/tooot-app/app synced 2025-06-05 22:19:13 +02:00

Add promise type to fetches

This commit is contained in:
Zhiyuan Zheng
2020-12-15 00:01:48 +01:00
parent fe1ca72a3e
commit a3335a1f88
12 changed files with 50 additions and 24 deletions

View File

@ -1,6 +1,9 @@
import client from '@api/client'
export const accountFetch = async (key: string, { id }: { id: string }) => {
export const accountFetch = async (
key: string,
{ id }: { id: string }
): Promise<Mastodon.Account> => {
const res = await client({
method: 'get',
instance: 'local',