scryfall-client
Version:
A module for making requests to scryfall
15 lines (14 loc) • 425 B
TypeScript
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;