remove fetch specification

This commit is contained in:
tamaina 2021-09-21 03:24:36 +09:00
parent 2c847db097
commit e7de16db4a

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);