UNPKG

scryfall-client

Version:
15 lines (14 loc) 425 B
import { ApiError } from "../types/api-error"; declare class ExtendableError extends Error { constructor(message: string); } declare class ScryfallError extends ExtendableError { thrownError?: Error; status?: number; code?: string; details?: string; type?: string; warnings?: string[]; constructor(scryfallResponse: ApiError | Error | Record<string, unknown>); } export default ScryfallError;