korean-dummy-json-fetcher
Version:
한국어 더미 데이터 생성 라이브러리
17 lines (16 loc) • 886 B
TypeScript
import { Comment, ApiResponse, PaginatedResponse } from "./types";
export declare function getComment({ id, }: {
id: number;
}): Promise<ApiResponse<Comment, "comment">>;
export declare function getComments(options?: {
userId?: number;
postId?: number;
limit?: number;
page?: number;
}): Promise<PaginatedResponse<Comment, "comments">>;
export declare function createComment(data: Omit<Comment, "id" | "createdAt">): Promise<ApiResponse<Comment, "comment">>;
export declare function patchComment(id: number, data: Partial<Omit<Comment, "id" | "userId" | "postId" | "createdAt">>): Promise<ApiResponse<Comment, "comment">>;
export declare function putComment(id: number, data: Omit<Comment, "id" | "userId" | "postId" | "createdAt">): Promise<ApiResponse<Comment, "comment">>;
export declare function deleteComment({ id }: {
id: number;
}): Promise<ApiResponse>;