Make fetch function optional

This commit is contained in:
SleeplessOne1917 2023-06-22 08:06:35 -04:00
parent 54a9059f8d
commit 76e17c6c02

View file

@ -158,7 +158,7 @@ export class LemmyHttp {
constructor(
baseUrl: string,
options?: {
fetchFunction: typeof fetch;
fetchFunction?: typeof fetch;
headers?: { [key: string]: string };
}
) {