From 491c0ad67b0795671c64398219aea30c817fe598 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 5 Nov 2024 10:40:07 +0100 Subject: [PATCH] lint --- src/http.ts | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/http.ts b/src/http.ts index 12179b4..2d69587 100644 --- a/src/http.ts +++ b/src/http.ts @@ -488,26 +488,36 @@ export class LemmyHttp { ); } - getCommunityPendingFollowsCount(community_id: CommunityId) { + getCommunityPendingFollowsCount( + community_id: CommunityId, + options?: RequestOptions, + ) { const form: GetCommunityPendingFollowsCount = { community_id }; return this.#wrapper< GetCommunityPendingFollowsCount, GetCommunityPendingFollowsCountResponse - >(HttpType.Get, "/community/pending_follows/count", form); + >(HttpType.Get, "/community/pending_follows/count", form, options); } - listCommunityPendingFollows(form: ListCommunityPendingFollows) { + listCommunityPendingFollows( + form: ListCommunityPendingFollows, + options?: RequestOptions, + ) { return this.#wrapper< ListCommunityPendingFollows, ListCommunityPendingFollowsResponse - >(HttpType.Get, "/community/pending_follows/list", form); + >(HttpType.Get, "/community/pending_follows/list", form, options); } - approveCommunityPendingFollow(form: ApproveCommunityPendingFollower) { + approveCommunityPendingFollow( + form: ApproveCommunityPendingFollower, + options?: RequestOptions, + ) { return this.#wrapper( HttpType.Post, "/community/pending_follows/approve", form, + options, ); }