@scryfall/api-types
Version:
Type definitions for the Scryfall API
36 lines (34 loc) • 898 B
text/typescript
import { ScryfallObject } from "../Object";
import { Decimal } from "../../internal";
import { ScryfallColors } from "../Card/values";
/**
* Description of a mana cost.
*
* @see {@link https://scryfall.com/docs/api/card-symbols/parse-mana}
*/
export type ScryfallManaCost = ScryfallObject.Object<ScryfallObject.ObjectType.ManaCost> & {
/**
* The normalized cost, with correctly-ordered and wrapped mana symbols
*/
cost: string;
/**
* The mana value. If you submit Un-set mana symbols, this decimal could include fractional parts
*/
cmc: Decimal;
/**
* The colors of the given cost
*/
colors: ScryfallColors;
/**
* True if the cost is colorless
*/
colorless: boolean;
/**
* True if the cost is monocolored
*/
monocolored: boolean;
/**
* True if the cost is multicolored
*/
multicolored: boolean;
};