mirror of
https://github.com/LemmyNet/lemmy-js-client.git
synced 2024-11-26 06:11:14 +00:00
Make fetch function optional (#148)
This commit is contained in:
parent
ad1d89ed20
commit
f577df0a07
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ export class LemmyHttp {
|
||||||
constructor(
|
constructor(
|
||||||
baseUrl: string,
|
baseUrl: string,
|
||||||
options?: {
|
options?: {
|
||||||
fetchFunction: typeof fetch;
|
fetchFunction?: typeof fetch;
|
||||||
headers?: { [key: string]: string };
|
headers?: { [key: string]: string };
|
||||||
}
|
}
|
||||||
) {
|
) {
|
||||||
|
|
Loading…
Reference in a new issue