diff --git a/README.md b/README.md index 8a66290..0ff1649 100644 --- a/README.md +++ b/README.md @@ -88,6 +88,8 @@ All primary types and values are prefixed with `Scryfall` to avoid conflict with Enum fields are described both in terms of an enum and a set of strings in order to give you the option of interacting with that field with either one. +In order to use the provided enum values in runtime code (i.e. outside of just compile-time type checking), you may need to configure your project's build pipeline/module bundler to ensure it is transpiling the Typescript source code in the `@scryfall/api-types` package. Many module bundlers exclude `node_modules` from Typescript transpilation for performance reasons, but provide methods to force inclusion of specific paths (e.g. Webpack's `module.rules`, or Next.js's `transpilePackages` configurations). + [semver]: https://semver.org/ [api]: https://scryfall.com/docs/api [issues]: https://github.com/scryfall/api-types/issues diff --git a/src/objects/Card/CardFields.ts b/src/objects/Card/CardFields.ts index 034ec2b..736648e 100644 --- a/src/objects/Card/CardFields.ts +++ b/src/objects/Card/CardFields.ts @@ -264,6 +264,12 @@ export namespace ScryfallCardFields.Gameplay { * @type Integer */ edhrec_rank?: number; + /** + * True if this card is on the Commander Game Changer list. + * + * @see {@link https://mtg.wiki/page/Commander_(format)/Game_Changers} + */ + game_changer?: boolean; /** * An array of keywords that this card uses, such as 'Flying' and 'Cumulative upkeep'. */ diff --git a/src/objects/Card/values/FrameEffect.ts b/src/objects/Card/values/FrameEffect.ts index f7025f6..2208fe7 100644 --- a/src/objects/Card/values/FrameEffect.ts +++ b/src/objects/Card/values/FrameEffect.ts @@ -45,4 +45,6 @@ export enum ScryfallFrameEffect { FanDfc = "fandfc", /** The cards have the Upside Down transforming marks */ UpsidedownDfc = "upsidedowndfc", + /** The cards have Spree asterisks */ + Spree = "spree", }