fix compile errors for fetch-likes

This commit is contained in:
mrjvs
2023-09-27 19:50:55 +02:00
parent 2a2a3adc24
commit f53a0c52a0
4 changed files with 7 additions and 7 deletions

View File

@@ -1,9 +1,9 @@
import { serializeBody } from '@/fetchers/body';
import { makeFullUrl } from '@/fetchers/common';
import { FetchType } from '@/fetchers/fetch';
import { FetchLike } from '@/fetchers/fetch';
import { Fetcher } from '@/fetchers/types';
export function makeStandardFetcher(f: FetchType): Fetcher {
export function makeStandardFetcher(f: FetchLike): Fetcher {
const normalFetch: Fetcher = async (url, ops) => {
const fullUrl = makeFullUrl(url, ops);
const seralizedBody = serializeBody(ops.body);