@re621/zestyapi
Version:
Comprehensive JS wrapper for e621.net API
26 lines (25 loc) • 878 B
TypeScript
import Endpoint, { SearchParams } from "../components/Endpoint";
import { FormattedResponse } from "../components/RequestQueue";
import { APIForumPost } from "../responses/APIForumPost";
import { APIForumCategoryID } from "../responses/APIForumTopic";
export default class ForumPostsEndpoint extends Endpoint<APIForumPost> {
Category: typeof APIForumCategoryID;
protected endpoint: string;
protected searchParams: string[];
protected searchParamAliases: {
title: string;
body: string;
};
find(search?: ForumPostSearchParams): Promise<FormattedResponse<APIForumPost>>;
}
interface ForumPostSearchParams extends SearchParams {
creator_name?: string;
topic_category_id?: APIForumCategoryID;
id?: number;
creator_id?: number;
topic_id?: number;
is_hidden?: boolean;
title?: string;
body?: string;
}
export {};