From 79df2a5ca8967241ce7a62c2a886853d406e0a92 Mon Sep 17 00:00:00 2001 From: Dessalines Date: Wed, 24 May 2023 23:13:03 -0400 Subject: [PATCH] Add missing response types in http client. (#124) --- src/http.ts | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/src/http.ts b/src/http.ts index 0561470..69a0159 100644 --- a/src/http.ts +++ b/src/http.ts @@ -29,11 +29,13 @@ import { CreatePostReport } from "./types/CreatePostReport"; import { CreatePrivateMessage } from "./types/CreatePrivateMessage"; import { CreatePrivateMessageReport } from "./types/CreatePrivateMessageReport"; import { CreateSite } from "./types/CreateSite"; +import { CustomEmojiResponse } from "./types/CustomEmojiResponse"; import { DeleteAccount } from "./types/DeleteAccount"; import { DeleteAccountResponse } from "./types/DeleteAccountResponse"; import { DeleteComment } from "./types/DeleteComment"; import { DeleteCommunity } from "./types/DeleteCommunity"; import { DeleteCustomEmoji } from "./types/DeleteCustomEmoji"; +import { DeleteCustomEmojiResponse } from "./types/DeleteCustomEmojiResponse"; import { DeletePost } from "./types/DeletePost"; import { DeletePrivateMessage } from "./types/DeletePrivateMessage"; import { DistinguishComment } from "./types/DistinguishComment"; @@ -54,6 +56,7 @@ import { GetCommentsResponse } from "./types/GetCommentsResponse"; import { GetCommunity } from "./types/GetCommunity"; import { GetCommunityResponse } from "./types/GetCommunityResponse"; import { GetFederatedInstances } from "./types/GetFederatedInstances"; +import { GetFederatedInstancesResponse } from "./types/GetFederatedInstancesResponse"; import { GetModlog } from "./types/GetModlog"; import { GetModlogResponse } from "./types/GetModlogResponse"; import { GetPersonDetails } from "./types/GetPersonDetails"; @@ -1191,7 +1194,11 @@ export class LemmyHttp { * `HTTP.POST /custom_emoji` */ async createCustomEmoji(form: CreateCustomEmoji) { - return this.wrapper(HttpType.Post, "/custom_emoji", form); + return this.wrapper( + HttpType.Post, + "/custom_emoji", + form + ); } /** @@ -1200,7 +1207,11 @@ export class LemmyHttp { * `HTTP.PUT /custom_emoji` */ async editCustomEmoji(form: EditCustomEmoji) { - return this.wrapper(HttpType.Put, "/custom_emoji", form); + return this.wrapper( + HttpType.Put, + "/custom_emoji", + form + ); } /** @@ -1209,7 +1220,11 @@ export class LemmyHttp { * `HTTP.Post /custom_emoji/delete` */ async deleteCustomEmoji(form: DeleteCustomEmoji) { - return this.wrapper(HttpType.Post, "/custom_emoji/delete", form); + return this.wrapper( + HttpType.Post, + "/custom_emoji/delete", + form + ); } /** @@ -1218,7 +1233,11 @@ export class LemmyHttp { * `HTTP.Get /federated_instances` */ async getFederatedInstances(form: GetFederatedInstances) { - return this.wrapper(HttpType.Get, "/federated_instances", form); + return this.wrapper( + HttpType.Get, + "/federated_instances", + form + ); } /**