From f577df0a071f1d7bba4a1a0f3b66e5e57d2d8ae3 Mon Sep 17 00:00:00 2001 From: SleeplessOne1917 Date: Mon, 26 Jun 2023 22:35:23 +0000 Subject: [PATCH] Make fetch function optional (#148) --- src/http.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/http.ts b/src/http.ts index e401adb..4fe1ecb 100644 --- a/src/http.ts +++ b/src/http.ts @@ -158,7 +158,7 @@ export class LemmyHttp { constructor( baseUrl: string, options?: { - fetchFunction: typeof fetch; + fetchFunction?: typeof fetch; headers?: { [key: string]: string }; } ) {