Make fetch function optional (#148)

This commit is contained in:
SleeplessOne1917 2023-06-26 22:35:23 +00:00 committed by GitHub
parent ad1d89ed20
commit f577df0a07
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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