From 6f1c4958b1fc68e64870e1c783beffc06a55fb47 Mon Sep 17 00:00:00 2001 From: Tee Date: Sun, 14 Mar 2021 17:15:48 -0400 Subject: [PATCH] Add enum types for select Card properties --- src/interfaces/card.ts | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/src/interfaces/card.ts b/src/interfaces/card.ts index 4295738..adb5e59 100644 --- a/src/interfaces/card.ts +++ b/src/interfaces/card.ts @@ -7,13 +7,18 @@ import { ILegality } from './legality'; import { Set } from './set'; import { TCGPlayer } from './tcgplayer'; +import { Type } from '../enums/type'; +import { Supertype } from '../enums/supertype'; +import { Subtype } from '../enums/subtype'; +import { Rarity } from '../enums/rarity'; + export interface Card { id: string; name: string; - supertype: string; - subtypes: string[]; + supertype: Supertype; + subtypes: Subtype[]; hp?: string; - types?: string[]; + types?: Type[]; evolesFrom?: string; evolvesTo?: string[]; rules?: string[]; @@ -27,7 +32,7 @@ export interface Card { set: Set; number: string; artist?: string; - rarity: string; + rarity: Rarity; flavorText?: string; nationalPokedexNumbers?: number[]; legalities: ILegality;