korean-dummy-json-fetcher
Version:
한국어 더미 데이터 생성 라이브러리
16 lines (15 loc) • 719 B
TypeScript
import { Todo, ApiResponse, PaginatedResponse } from "./types";
export declare function getTodo({ id, }: {
id: number;
}): Promise<ApiResponse<Todo, "todo">>;
export declare function getTodos(options?: {
userId?: number;
limit?: number;
page?: number;
}): Promise<PaginatedResponse<Todo, "todos">>;
export declare function createTodo(data: Omit<Todo, "id">): Promise<ApiResponse<Todo, "todo">>;
export declare function patchTodo(id: number, data: Partial<Omit<Todo, "id">>): Promise<ApiResponse<Todo, "todo">>;
export declare function putTodo(id: number, data: Omit<Todo, "id">): Promise<ApiResponse<Todo, "todo">>;
export declare function deleteTodo({ id }: {
id: number;
}): Promise<ApiResponse>;