remove fetch specification

This commit is contained in:
tamaina 2021-09-21 03:24:36 +09:00
parent 2c847db097
commit e7de16db4a
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ import { getAcct } from '@/misc/acct';
import { getAccountFromId } from '@client/scripts/get-account-from-id'; import { getAccountFromId } from '@client/scripts/get-account-from-id';
import { appendLoginId } from '@client/scripts/login-id'; import { appendLoginId } from '@client/scripts/login-id';
export const apiFetch = new Misskey.api.APIClient({ origin, fetch }); export const apiFetch = new Misskey.api.APIClient({ origin });
export async function api<E extends keyof Misskey.Endpoints>(endpoint: E, userId: string, options?: Misskey.Endpoints[E]['req']) { export async function api<E extends keyof Misskey.Endpoints>(endpoint: E, userId: string, options?: Misskey.Endpoints[E]['req']) {
const account = await getAccountFromId(userId); const account = await getAccountFromId(userId);