Merge pull request #167 from LemmyNet/update_prettier_3_0_0

Upgrade prettier.
This commit is contained in:
SleeplessOne1917 2023-07-14 20:47:44 +00:00 committed by GitHub
commit 2b757d39ec
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 83 additions and 83 deletions

View file

@ -37,7 +37,7 @@
"eslint-plugin-prettier": "^4.2.1", "eslint-plugin-prettier": "^4.2.1",
"husky": "^8.0.3", "husky": "^8.0.3",
"lint-staged": "^13.2.2", "lint-staged": "^13.2.2",
"prettier": "^2.8.8", "prettier": "^3.0.0",
"prettier-plugin-import-sort": "^0.0.7", "prettier-plugin-import-sort": "^0.0.7",
"prettier-plugin-organize-imports": "^3.2.2", "prettier-plugin-organize-imports": "^3.2.2",
"prettier-plugin-packagejson": "^2.4.3", "prettier-plugin-packagejson": "^2.4.3",

View file

@ -160,7 +160,7 @@ export class LemmyHttp {
options?: { options?: {
fetchFunction?: typeof fetch; fetchFunction?: typeof fetch;
headers?: { [key: string]: string }; headers?: { [key: string]: string };
} },
) { ) {
this.#apiUrl = `${baseUrl.replace(/\/+$/, "")}/api/${VERSION}`; this.#apiUrl = `${baseUrl.replace(/\/+$/, "")}/api/${VERSION}`;
this.#pictrsUrl = `${baseUrl}/pictrs/image`; this.#pictrsUrl = `${baseUrl}/pictrs/image`;
@ -191,7 +191,7 @@ export class LemmyHttp {
return this.#wrapper<CreateSite, SiteResponse>( return this.#wrapper<CreateSite, SiteResponse>(
HttpType.Post, HttpType.Post,
"/site", "/site",
form form,
); );
} }
@ -213,7 +213,7 @@ export class LemmyHttp {
return this.#wrapper<LeaveAdmin, GetSiteResponse>( return this.#wrapper<LeaveAdmin, GetSiteResponse>(
HttpType.Post, HttpType.Post,
"/user/leave_admin", "/user/leave_admin",
form form,
); );
} }
@ -226,7 +226,7 @@ export class LemmyHttp {
return this.#wrapper<GetModlog, GetModlogResponse>( return this.#wrapper<GetModlog, GetModlogResponse>(
HttpType.Get, HttpType.Get,
"/modlog", "/modlog",
form form,
); );
} }
@ -248,7 +248,7 @@ export class LemmyHttp {
return this.#wrapper<ResolveObject, ResolveObjectResponse>( return this.#wrapper<ResolveObject, ResolveObjectResponse>(
HttpType.Get, HttpType.Get,
"/resolve_object", "/resolve_object",
form form,
); );
} }
@ -261,7 +261,7 @@ export class LemmyHttp {
return this.#wrapper<CreateCommunity, CommunityResponse>( return this.#wrapper<CreateCommunity, CommunityResponse>(
HttpType.Post, HttpType.Post,
"/community", "/community",
form form,
); );
} }
@ -274,7 +274,7 @@ export class LemmyHttp {
return this.#wrapper<GetCommunity, GetCommunityResponse>( return this.#wrapper<GetCommunity, GetCommunityResponse>(
HttpType.Get, HttpType.Get,
"/community", "/community",
form form,
); );
} }
@ -287,7 +287,7 @@ export class LemmyHttp {
return this.#wrapper<EditCommunity, CommunityResponse>( return this.#wrapper<EditCommunity, CommunityResponse>(
HttpType.Put, HttpType.Put,
"/community", "/community",
form form,
); );
} }
@ -300,7 +300,7 @@ export class LemmyHttp {
return this.#wrapper<ListCommunities, ListCommunitiesResponse>( return this.#wrapper<ListCommunities, ListCommunitiesResponse>(
HttpType.Get, HttpType.Get,
"/community/list", "/community/list",
form form,
); );
} }
@ -313,7 +313,7 @@ export class LemmyHttp {
return this.#wrapper<FollowCommunity, CommunityResponse>( return this.#wrapper<FollowCommunity, CommunityResponse>(
HttpType.Post, HttpType.Post,
"/community/follow", "/community/follow",
form form,
); );
} }
@ -326,7 +326,7 @@ export class LemmyHttp {
return this.#wrapper<BlockCommunity, BlockCommunityResponse>( return this.#wrapper<BlockCommunity, BlockCommunityResponse>(
HttpType.Post, HttpType.Post,
"/community/block", "/community/block",
form form,
); );
} }
@ -339,7 +339,7 @@ export class LemmyHttp {
return this.#wrapper<DeleteCommunity, CommunityResponse>( return this.#wrapper<DeleteCommunity, CommunityResponse>(
HttpType.Post, HttpType.Post,
"/community/delete", "/community/delete",
form form,
); );
} }
@ -352,7 +352,7 @@ export class LemmyHttp {
return this.#wrapper<RemoveCommunity, CommunityResponse>( return this.#wrapper<RemoveCommunity, CommunityResponse>(
HttpType.Post, HttpType.Post,
"/community/remove", "/community/remove",
form form,
); );
} }
@ -365,7 +365,7 @@ export class LemmyHttp {
return this.#wrapper<TransferCommunity, GetCommunityResponse>( return this.#wrapper<TransferCommunity, GetCommunityResponse>(
HttpType.Post, HttpType.Post,
"/community/transfer", "/community/transfer",
form form,
); );
} }
@ -378,7 +378,7 @@ export class LemmyHttp {
return this.#wrapper<BanFromCommunity, BanFromCommunityResponse>( return this.#wrapper<BanFromCommunity, BanFromCommunityResponse>(
HttpType.Post, HttpType.Post,
"/community/ban_user", "/community/ban_user",
form form,
); );
} }
@ -391,7 +391,7 @@ export class LemmyHttp {
return this.#wrapper<AddModToCommunity, AddModToCommunityResponse>( return this.#wrapper<AddModToCommunity, AddModToCommunityResponse>(
HttpType.Post, HttpType.Post,
"/community/mod", "/community/mod",
form form,
); );
} }
@ -404,7 +404,7 @@ export class LemmyHttp {
return this.#wrapper<CreatePost, PostResponse>( return this.#wrapper<CreatePost, PostResponse>(
HttpType.Post, HttpType.Post,
"/post", "/post",
form form,
); );
} }
@ -435,7 +435,7 @@ export class LemmyHttp {
return this.#wrapper<DeletePost, PostResponse>( return this.#wrapper<DeletePost, PostResponse>(
HttpType.Post, HttpType.Post,
"/post/delete", "/post/delete",
form form,
); );
} }
@ -448,7 +448,7 @@ export class LemmyHttp {
return this.#wrapper<RemovePost, PostResponse>( return this.#wrapper<RemovePost, PostResponse>(
HttpType.Post, HttpType.Post,
"/post/remove", "/post/remove",
form form,
); );
} }
@ -461,7 +461,7 @@ export class LemmyHttp {
return this.#wrapper<MarkPostAsRead, PostResponse>( return this.#wrapper<MarkPostAsRead, PostResponse>(
HttpType.Post, HttpType.Post,
"/post/mark_as_read", "/post/mark_as_read",
form form,
); );
} }
@ -474,7 +474,7 @@ export class LemmyHttp {
return this.#wrapper<LockPost, PostResponse>( return this.#wrapper<LockPost, PostResponse>(
HttpType.Post, HttpType.Post,
"/post/lock", "/post/lock",
form form,
); );
} }
@ -487,7 +487,7 @@ export class LemmyHttp {
return this.#wrapper<FeaturePost, PostResponse>( return this.#wrapper<FeaturePost, PostResponse>(
HttpType.Post, HttpType.Post,
"/post/feature", "/post/feature",
form form,
); );
} }
@ -500,7 +500,7 @@ export class LemmyHttp {
return this.#wrapper<GetPosts, GetPostsResponse>( return this.#wrapper<GetPosts, GetPostsResponse>(
HttpType.Get, HttpType.Get,
"/post/list", "/post/list",
form form,
); );
} }
@ -513,7 +513,7 @@ export class LemmyHttp {
return this.#wrapper<CreatePostLike, PostResponse>( return this.#wrapper<CreatePostLike, PostResponse>(
HttpType.Post, HttpType.Post,
"/post/like", "/post/like",
form form,
); );
} }
@ -526,7 +526,7 @@ export class LemmyHttp {
return this.#wrapper<SavePost, PostResponse>( return this.#wrapper<SavePost, PostResponse>(
HttpType.Put, HttpType.Put,
"/post/save", "/post/save",
form form,
); );
} }
@ -539,7 +539,7 @@ export class LemmyHttp {
return this.#wrapper<CreatePostReport, PostReportResponse>( return this.#wrapper<CreatePostReport, PostReportResponse>(
HttpType.Post, HttpType.Post,
"/post/report", "/post/report",
form form,
); );
} }
@ -552,7 +552,7 @@ export class LemmyHttp {
return this.#wrapper<ResolvePostReport, PostReportResponse>( return this.#wrapper<ResolvePostReport, PostReportResponse>(
HttpType.Put, HttpType.Put,
"/post/report/resolve", "/post/report/resolve",
form form,
); );
} }
@ -565,7 +565,7 @@ export class LemmyHttp {
return this.#wrapper<ListPostReports, ListPostReportsResponse>( return this.#wrapper<ListPostReports, ListPostReportsResponse>(
HttpType.Get, HttpType.Get,
"/post/report/list", "/post/report/list",
form form,
); );
} }
@ -578,7 +578,7 @@ export class LemmyHttp {
return this.#wrapper<GetSiteMetadata, GetSiteMetadataResponse>( return this.#wrapper<GetSiteMetadata, GetSiteMetadataResponse>(
HttpType.Get, HttpType.Get,
"/post/site_metadata", "/post/site_metadata",
form form,
); );
} }
@ -591,7 +591,7 @@ export class LemmyHttp {
return this.#wrapper<CreateComment, CommentResponse>( return this.#wrapper<CreateComment, CommentResponse>(
HttpType.Post, HttpType.Post,
"/comment", "/comment",
form form,
); );
} }
@ -604,7 +604,7 @@ export class LemmyHttp {
return this.#wrapper<EditComment, CommentResponse>( return this.#wrapper<EditComment, CommentResponse>(
HttpType.Put, HttpType.Put,
"/comment", "/comment",
form form,
); );
} }
@ -617,7 +617,7 @@ export class LemmyHttp {
return this.#wrapper<DeleteComment, CommentResponse>( return this.#wrapper<DeleteComment, CommentResponse>(
HttpType.Post, HttpType.Post,
"/comment/delete", "/comment/delete",
form form,
); );
} }
@ -630,7 +630,7 @@ export class LemmyHttp {
return this.#wrapper<RemoveComment, CommentResponse>( return this.#wrapper<RemoveComment, CommentResponse>(
HttpType.Post, HttpType.Post,
"/comment/remove", "/comment/remove",
form form,
); );
} }
@ -643,7 +643,7 @@ export class LemmyHttp {
return this.#wrapper<MarkCommentReplyAsRead, CommentReplyResponse>( return this.#wrapper<MarkCommentReplyAsRead, CommentReplyResponse>(
HttpType.Post, HttpType.Post,
"/comment/mark_as_read", "/comment/mark_as_read",
form form,
); );
} }
@ -656,7 +656,7 @@ export class LemmyHttp {
return this.#wrapper<CreateCommentLike, CommentResponse>( return this.#wrapper<CreateCommentLike, CommentResponse>(
HttpType.Post, HttpType.Post,
"/comment/like", "/comment/like",
form form,
); );
} }
@ -669,7 +669,7 @@ export class LemmyHttp {
return this.#wrapper<SaveComment, CommentResponse>( return this.#wrapper<SaveComment, CommentResponse>(
HttpType.Put, HttpType.Put,
"/comment/save", "/comment/save",
form form,
); );
} }
@ -682,7 +682,7 @@ export class LemmyHttp {
return this.#wrapper<DistinguishComment, CommentResponse>( return this.#wrapper<DistinguishComment, CommentResponse>(
HttpType.Post, HttpType.Post,
"/comment/distinguish", "/comment/distinguish",
form form,
); );
} }
@ -695,7 +695,7 @@ export class LemmyHttp {
return this.#wrapper<GetComments, GetCommentsResponse>( return this.#wrapper<GetComments, GetCommentsResponse>(
HttpType.Get, HttpType.Get,
"/comment/list", "/comment/list",
form form,
); );
} }
@ -708,7 +708,7 @@ export class LemmyHttp {
return this.#wrapper<GetComment, CommentResponse>( return this.#wrapper<GetComment, CommentResponse>(
HttpType.Get, HttpType.Get,
"/comment", "/comment",
form form,
); );
} }
@ -721,7 +721,7 @@ export class LemmyHttp {
return this.#wrapper<CreateCommentReport, CommentReportResponse>( return this.#wrapper<CreateCommentReport, CommentReportResponse>(
HttpType.Post, HttpType.Post,
"/comment/report", "/comment/report",
form form,
); );
} }
@ -734,7 +734,7 @@ export class LemmyHttp {
return this.#wrapper<ResolveCommentReport, CommentReportResponse>( return this.#wrapper<ResolveCommentReport, CommentReportResponse>(
HttpType.Put, HttpType.Put,
"/comment/report/resolve", "/comment/report/resolve",
form form,
); );
} }
@ -747,7 +747,7 @@ export class LemmyHttp {
return this.#wrapper<ListCommentReports, ListCommentReportsResponse>( return this.#wrapper<ListCommentReports, ListCommentReportsResponse>(
HttpType.Get, HttpType.Get,
"/comment/report/list", "/comment/report/list",
form form,
); );
} }
@ -760,7 +760,7 @@ export class LemmyHttp {
return this.#wrapper<GetPrivateMessages, PrivateMessagesResponse>( return this.#wrapper<GetPrivateMessages, PrivateMessagesResponse>(
HttpType.Get, HttpType.Get,
"/private_message/list", "/private_message/list",
form form,
); );
} }
@ -773,7 +773,7 @@ export class LemmyHttp {
return this.#wrapper<CreatePrivateMessage, PrivateMessageResponse>( return this.#wrapper<CreatePrivateMessage, PrivateMessageResponse>(
HttpType.Post, HttpType.Post,
"/private_message", "/private_message",
form form,
); );
} }
@ -786,7 +786,7 @@ export class LemmyHttp {
return this.#wrapper<EditPrivateMessage, PrivateMessageResponse>( return this.#wrapper<EditPrivateMessage, PrivateMessageResponse>(
HttpType.Put, HttpType.Put,
"/private_message", "/private_message",
form form,
); );
} }
@ -799,7 +799,7 @@ export class LemmyHttp {
return this.#wrapper<DeletePrivateMessage, PrivateMessageResponse>( return this.#wrapper<DeletePrivateMessage, PrivateMessageResponse>(
HttpType.Post, HttpType.Post,
"/private_message/delete", "/private_message/delete",
form form,
); );
} }
@ -812,7 +812,7 @@ export class LemmyHttp {
return this.#wrapper<MarkPrivateMessageAsRead, PrivateMessageResponse>( return this.#wrapper<MarkPrivateMessageAsRead, PrivateMessageResponse>(
HttpType.Post, HttpType.Post,
"/private_message/mark_as_read", "/private_message/mark_as_read",
form form,
); );
} }
@ -861,7 +861,7 @@ export class LemmyHttp {
return this.#wrapper<Register, LoginResponse>( return this.#wrapper<Register, LoginResponse>(
HttpType.Post, HttpType.Post,
"/user/register", "/user/register",
form form,
); );
} }
@ -874,7 +874,7 @@ export class LemmyHttp {
return this.#wrapper<Login, LoginResponse>( return this.#wrapper<Login, LoginResponse>(
HttpType.Post, HttpType.Post,
"/user/login", "/user/login",
form form,
); );
} }
@ -887,7 +887,7 @@ export class LemmyHttp {
return this.#wrapper<GetPersonDetails, GetPersonDetailsResponse>( return this.#wrapper<GetPersonDetails, GetPersonDetailsResponse>(
HttpType.Get, HttpType.Get,
"/user", "/user",
form form,
); );
} }
@ -900,7 +900,7 @@ export class LemmyHttp {
return this.#wrapper<GetPersonMentions, GetPersonMentionsResponse>( return this.#wrapper<GetPersonMentions, GetPersonMentionsResponse>(
HttpType.Get, HttpType.Get,
"/user/mention", "/user/mention",
form form,
); );
} }
@ -913,7 +913,7 @@ export class LemmyHttp {
return this.#wrapper<MarkPersonMentionAsRead, PersonMentionResponse>( return this.#wrapper<MarkPersonMentionAsRead, PersonMentionResponse>(
HttpType.Post, HttpType.Post,
"/user/mention/mark_as_read", "/user/mention/mark_as_read",
form form,
); );
} }
@ -926,7 +926,7 @@ export class LemmyHttp {
return this.#wrapper<GetReplies, GetRepliesResponse>( return this.#wrapper<GetReplies, GetRepliesResponse>(
HttpType.Get, HttpType.Get,
"/user/replies", "/user/replies",
form form,
); );
} }
@ -939,7 +939,7 @@ export class LemmyHttp {
return this.#wrapper<BanPerson, BanPersonResponse>( return this.#wrapper<BanPerson, BanPersonResponse>(
HttpType.Post, HttpType.Post,
"/user/ban", "/user/ban",
form form,
); );
} }
@ -952,7 +952,7 @@ export class LemmyHttp {
return this.#wrapper<GetBannedPersons, BannedPersonsResponse>( return this.#wrapper<GetBannedPersons, BannedPersonsResponse>(
HttpType.Get, HttpType.Get,
"/user/banned", "/user/banned",
form form,
); );
} }
@ -965,7 +965,7 @@ export class LemmyHttp {
return this.#wrapper<BlockPerson, BlockPersonResponse>( return this.#wrapper<BlockPerson, BlockPersonResponse>(
HttpType.Post, HttpType.Post,
"/user/block", "/user/block",
form form,
); );
} }
@ -978,7 +978,7 @@ export class LemmyHttp {
return this.#wrapper<GetCaptcha, GetCaptchaResponse>( return this.#wrapper<GetCaptcha, GetCaptchaResponse>(
HttpType.Get, HttpType.Get,
"/user/get_captcha", "/user/get_captcha",
form form,
); );
} }
@ -991,7 +991,7 @@ export class LemmyHttp {
return this.#wrapper<DeleteAccount, DeleteAccountResponse>( return this.#wrapper<DeleteAccount, DeleteAccountResponse>(
HttpType.Post, HttpType.Post,
"/user/delete_account", "/user/delete_account",
form form,
); );
} }
@ -1004,7 +1004,7 @@ export class LemmyHttp {
return this.#wrapper<PasswordReset, PasswordResetResponse>( return this.#wrapper<PasswordReset, PasswordResetResponse>(
HttpType.Post, HttpType.Post,
"/user/password_reset", "/user/password_reset",
form form,
); );
} }
@ -1017,7 +1017,7 @@ export class LemmyHttp {
return this.#wrapper<PasswordChangeAfterReset, LoginResponse>( return this.#wrapper<PasswordChangeAfterReset, LoginResponse>(
HttpType.Post, HttpType.Post,
"/user/password_change", "/user/password_change",
form form,
); );
} }
@ -1030,7 +1030,7 @@ export class LemmyHttp {
return this.#wrapper<MarkAllAsRead, GetRepliesResponse>( return this.#wrapper<MarkAllAsRead, GetRepliesResponse>(
HttpType.Post, HttpType.Post,
"/user/mark_all_as_read", "/user/mark_all_as_read",
form form,
); );
} }
@ -1043,7 +1043,7 @@ export class LemmyHttp {
return this.#wrapper<SaveUserSettings, LoginResponse>( return this.#wrapper<SaveUserSettings, LoginResponse>(
HttpType.Put, HttpType.Put,
"/user/save_user_settings", "/user/save_user_settings",
form form,
); );
} }
@ -1056,7 +1056,7 @@ export class LemmyHttp {
return this.#wrapper<ChangePassword, LoginResponse>( return this.#wrapper<ChangePassword, LoginResponse>(
HttpType.Put, HttpType.Put,
"/user/change_password", "/user/change_password",
form form,
); );
} }
@ -1069,7 +1069,7 @@ export class LemmyHttp {
return this.#wrapper<GetReportCount, GetReportCountResponse>( return this.#wrapper<GetReportCount, GetReportCountResponse>(
HttpType.Get, HttpType.Get,
"/user/report_count", "/user/report_count",
form form,
); );
} }
@ -1082,7 +1082,7 @@ export class LemmyHttp {
return this.#wrapper<GetUnreadCount, GetUnreadCountResponse>( return this.#wrapper<GetUnreadCount, GetUnreadCountResponse>(
HttpType.Get, HttpType.Get,
"/user/unread_count", "/user/unread_count",
form form,
); );
} }
@ -1095,7 +1095,7 @@ export class LemmyHttp {
return this.#wrapper<VerifyEmail, VerifyEmailResponse>( return this.#wrapper<VerifyEmail, VerifyEmailResponse>(
HttpType.Post, HttpType.Post,
"/user/verify_email", "/user/verify_email",
form form,
); );
} }
@ -1108,7 +1108,7 @@ export class LemmyHttp {
return this.#wrapper<AddAdmin, AddAdminResponse>( return this.#wrapper<AddAdmin, AddAdminResponse>(
HttpType.Post, HttpType.Post,
"/admin/add", "/admin/add",
form form,
); );
} }
@ -1118,7 +1118,7 @@ export class LemmyHttp {
* `HTTP.GET /admin/registration_application/count` * `HTTP.GET /admin/registration_application/count`
*/ */
getUnreadRegistrationApplicationCount( getUnreadRegistrationApplicationCount(
form: GetUnreadRegistrationApplicationCount form: GetUnreadRegistrationApplicationCount,
) { ) {
return this.#wrapper< return this.#wrapper<
GetUnreadRegistrationApplicationCount, GetUnreadRegistrationApplicationCount,
@ -1159,7 +1159,7 @@ export class LemmyHttp {
return this.#wrapper<PurgePerson, PurgeItemResponse>( return this.#wrapper<PurgePerson, PurgeItemResponse>(
HttpType.Post, HttpType.Post,
"/admin/purge/person", "/admin/purge/person",
form form,
); );
} }
@ -1172,7 +1172,7 @@ export class LemmyHttp {
return this.#wrapper<PurgeCommunity, PurgeItemResponse>( return this.#wrapper<PurgeCommunity, PurgeItemResponse>(
HttpType.Post, HttpType.Post,
"/admin/purge/community", "/admin/purge/community",
form form,
); );
} }
@ -1185,7 +1185,7 @@ export class LemmyHttp {
return this.#wrapper<PurgePost, PurgeItemResponse>( return this.#wrapper<PurgePost, PurgeItemResponse>(
HttpType.Post, HttpType.Post,
"/admin/purge/post", "/admin/purge/post",
form form,
); );
} }
@ -1198,7 +1198,7 @@ export class LemmyHttp {
return this.#wrapper<PurgeComment, PurgeItemResponse>( return this.#wrapper<PurgeComment, PurgeItemResponse>(
HttpType.Post, HttpType.Post,
"/admin/purge/comment", "/admin/purge/comment",
form form,
); );
} }
@ -1211,7 +1211,7 @@ export class LemmyHttp {
return this.#wrapper<CreateCustomEmoji, CustomEmojiResponse>( return this.#wrapper<CreateCustomEmoji, CustomEmojiResponse>(
HttpType.Post, HttpType.Post,
"/custom_emoji", "/custom_emoji",
form form,
); );
} }
@ -1224,7 +1224,7 @@ export class LemmyHttp {
return this.#wrapper<EditCustomEmoji, CustomEmojiResponse>( return this.#wrapper<EditCustomEmoji, CustomEmojiResponse>(
HttpType.Put, HttpType.Put,
"/custom_emoji", "/custom_emoji",
form form,
); );
} }
@ -1237,7 +1237,7 @@ export class LemmyHttp {
return this.#wrapper<DeleteCustomEmoji, DeleteCustomEmojiResponse>( return this.#wrapper<DeleteCustomEmoji, DeleteCustomEmojiResponse>(
HttpType.Post, HttpType.Post,
"/custom_emoji/delete", "/custom_emoji/delete",
form form,
); );
} }
@ -1250,7 +1250,7 @@ export class LemmyHttp {
return this.#wrapper<GetFederatedInstances, GetFederatedInstancesResponse>( return this.#wrapper<GetFederatedInstances, GetFederatedInstancesResponse>(
HttpType.Get, HttpType.Get,
"/federated_instances", "/federated_instances",
form form,
); );
} }
@ -1310,7 +1310,7 @@ export class LemmyHttp {
async #wrapper<BodyType extends object, ResponseType>( async #wrapper<BodyType extends object, ResponseType>(
type_: HttpType, type_: HttpType,
endpoint: string, endpoint: string,
form: BodyType form: BodyType,
): Promise<ResponseType> { ): Promise<ResponseType> {
let response: Response; let response: Response;
if (type_ === HttpType.Get) { if (type_ === HttpType.Get) {

View file

@ -246,4 +246,4 @@ export { UserJoin } from "./types/UserJoin";
export { UserJoinResponse } from "./types/UserJoinResponse"; export { UserJoinResponse } from "./types/UserJoinResponse";
export { VerifyEmail } from "./types/VerifyEmail"; export { VerifyEmail } from "./types/VerifyEmail";
export { VerifyEmailResponse } from "./types/VerifyEmailResponse"; export { VerifyEmailResponse } from "./types/VerifyEmailResponse";
export { ImageFile, UploadImage, UploadImageResponse } from "./types/others"; export { UploadImage, UploadImageResponse, ImageFile } from "./types/others";

View file

@ -1808,10 +1808,10 @@ prettier-plugin-packagejson@^2.4.3:
sort-package-json "2.4.1" sort-package-json "2.4.1"
synckit "0.8.5" synckit "0.8.5"
prettier@^2.8.8: prettier@^3.0.0:
version "2.8.8" version "3.0.0"
resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" resolved "https://registry.yarnpkg.com/prettier/-/prettier-3.0.0.tgz#e7b19f691245a21d618c68bc54dc06122f6105ae"
integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== integrity sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==
punycode@^2.1.0: punycode@^2.1.0:
version "2.1.1" version "2.1.1"