RemoveCommentForm,
SearchForm,
CommentResponse,
+ GetCommunityForm,
CommunityForm,
DeleteCommunityForm,
RemoveCommunityForm,
return api.client.createCommunity(form);
}
+export async function getCommunity(
+ api: API,
+ id: number,
+): Promise<CommunityResponse> {
+ let form: GetCommunityForm = {
+ id,
+ };
+ return api.client.getCommunity(form);
+}
+
export async function deleteCommunity(
api: API,
deleted: boolean,