@scryfall/api-types
Version:
Type definitions for the Scryfall API
27 lines (25 loc) • 716 B
text/typescript
import { ScryfallObject } from "../Object";
import { IsoDate, Uuid } from "../../internal";
/**
* Rulings made on a card by the rules manager.
*
* @see {@link https://scryfall.com/docs/api/rulings}
*/
export type ScryfallRuling = ScryfallObject.Object<ScryfallObject.ObjectType.Ruling> & {
/**
* The Oracle ID of the card this ruling is associated with.
*/
oracle_id: Uuid;
/**
* A computer-readable string indicating which company produced this ruling, either `wotc` or `scryfall`
*/
source: "wotc" | "scryfall";
/**
* The date when the ruling or note was published
*/
published_at: IsoDate;
/**
* The text of the ruling
*/
comment: string;
};