scryfall-client
Version:
A module for making requests to scryfall
11 lines (10 loc) • 342 B
TypeScript
import type { ApiResponse } from "../../types/api-response";
import type { AnyJson } from "../../types/json";
type PostBody = Record<string, AnyJson>;
interface RequestOptions {
url: string;
method?: "post" | "get";
body?: PostBody;
}
export default function sendRequest(options: RequestOptions): Promise<ApiResponse>;
export {};