scryfall-client
Version:
A module for making requests to scryfall
14 lines (13 loc) • 419 B
TypeScript
export type ObjectKind = "card" | "card_face" | "card_symbol" | "catalog" | "error" | "list" | "related_card" | "ruling" | "set";
export type ApiResponse = {
object: ObjectKind;
[property: string]: any;
};
export interface ListApiResponse extends ApiResponse {
object: "list";
data: ApiResponse[];
}
export interface CatalogApiResponse extends ApiResponse {
object: "catalog";
data: string[];
}