Skip to content

Commit d0f5f7e

Browse files
committed
export ScryfallObject
1 parent facd851 commit d0f5f7e

File tree

3 files changed

+5
-2
lines changed

3 files changed

+5
-2
lines changed

__test__/global.d.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
import { ScryfallCard } from "../src";
2-
import { ScryfallObject } from "../src/objects/Object";
1+
import { ScryfallCard, ScryfallObject } from "../src";
32

43
declare global {
54
type TestCard<T extends ScryfallObject.Object<ScryfallObject.ObjectType.Card>> = T & ScryfallCard.Any;

src/objects/Object/Object.ts

+3
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
/**
2+
* This namespace defines the abstract base object property of all Scryfall objects.
3+
*/
14
export namespace ScryfallObject {
25
/**
36
* The type of object.

src/objects/index.ts

+1
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export * from "./Catalog";
33
export * from "./Error";
44
export * from "./List";
55
export * from "./Migration";
6+
export * from "./Object";
67
export * from "./Ruling";
78
export * from "./Set";
89
export * from "./Symbology";

0 commit comments

Comments
 (0)