Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know how commonly people run into this issue, but it happened to me, so it felt worth pointing out. The better option might be to transpile src/ on publish, so it just works out-of-the-box in all envs, but a quick note seemed sufficient in lieu of that.


[semver]: https://semver.org/
[api]: https://scryfall.com/docs/api
[issues]: https://github.com/scryfall/api-types/issues
6 changes: 6 additions & 0 deletions src/objects/Card/CardFields.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'.
*/
Expand Down
2 changes: 2 additions & 0 deletions src/objects/Card/values/FrameEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
}