UNPKG

scryfall-sdk

Version:

A Node.js SDK for https://scryfall.com/docs/api written in Typescript.

25 lines (24 loc) 1.03 kB
export declare const ENDPOINT_API = "https://api.scryfall.com"; export declare const ENDPOINT_FILE_1 = "https://cards.scryfall.io"; export declare const ENDPOINT_FILE_2 = "https://c2.scryfall.com/file"; export declare const ENDPOINT_FILE_3 = "https://c3.scryfall.com/file"; export declare const RESOURCE_GENERIC_CARD_BACK: "https://c2.scryfall.com/file/scryfall-errors/missing.jpg"; export declare const SYMBOL_TEXT: unique symbol; export declare const SYMBOL_COST: unique symbol; export declare const SYMBOL_SET: unique symbol; export declare const SYMBOL_RULINGS: unique symbol; export declare const SYMBOL_PRINTS: unique symbol; export declare const SYMBOL_CARDS: unique symbol; declare enum Colors { W = 0, B = 1, R = 2, U = 3, G = 4 } export type Color = keyof typeof Colors; export type ColorOrColorless = keyof typeof Colors | "C"; export declare namespace IScry { let fuzzySearch: (<T>(search: string, targets: T[], key: keyof T) => T | undefined) | undefined; } export {};