From 6d22ac767db0a8419e3cc24ac8eedaf3cc5878b2 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Thu, 14 Mar 2024 15:13:24 -0400 Subject: [PATCH] Default param. --- src/http.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/http.ts b/src/http.ts index 1c06d10..64b4ec7 100644 --- a/src/http.ts +++ b/src/http.ts @@ -297,7 +297,7 @@ export class LemmyHttp { * * `HTTP.GET /user/list_media` */ - listMedia(form: ListMedia) { + listMedia(form: ListMedia = {}) { return this.#wrapper( HttpType.Get, "/user/list_media", @@ -310,7 +310,7 @@ export class LemmyHttp { * * `HTTP.GET /admin/list_all_media` */ - listAllMedia(form: ListMedia) { + listAllMedia(form: ListMedia = {}) { return this.#wrapper( HttpType.Get, "/admin/list_all_media",