From 3624938adefda8b68bd0843dad3b744f2289287b Mon Sep 17 00:00:00 2001 From: Tee Date: Mon, 22 Mar 2021 00:38:39 -0400 Subject: [PATCH] Update optional properties for card interfaces --- src/interfaces/card.ts | 63 +++++++++++++++++++++--------------------- 1 file changed, 32 insertions(+), 31 deletions(-) diff --git a/src/interfaces/card.ts b/src/interfaces/card.ts index f36d4da..87ccc8c 100644 --- a/src/interfaces/card.ts +++ b/src/interfaces/card.ts @@ -1,36 +1,37 @@ -import { IAbility } from '../interfaces/ability'; -import { IAncientTrait } from './ancientTrait'; -import { IAttack } from '../interfaces/attack'; -import { IResistance } from '../interfaces/resistance'; -import { IWeakness } from '../interfaces/weakness'; -import { ICardImage } from './image'; -import { ILegality } from './legality'; -import { ISet } from './set'; -import { ITCGPlayer } from './tcgplayer'; +import { IAbility } from "../interfaces/ability"; +import { IAncientTrait } from "./ancientTrait"; +import { IAttack } from "../interfaces/attack"; +import { IResistance } from "../interfaces/resistance"; +import { IWeakness } from "../interfaces/weakness"; +import { ICardImage } from "./image"; +import { ILegality } from "./legality"; +import { ISet } from "./set"; +import { ITCGPlayer } from "./tcgplayer"; export interface ICard { - abilities: IAbility[]; - artist: string; - ancientTrait?: IAncientTrait; - attacks: IAttack[]; - convertedRetreatCost: number; - evolvesFrom: string; - flavorText: string; - hp: string; id: string; - images: ICardImage; - legalities: ILegality; name: string; - nationalPokedexNumbers: number[]; - number: string; - rarity: string; - resistances: IResistance[]; - retreatCost: string[]; - rules: string[]; - set: ISet; - subtypes: string[]; supertype: string; - tcgplayer: ITCGPlayer | undefined; - types: string[]; - weaknesses: IWeakness[]; -} \ No newline at end of file + subtypes: string[]; + hp?: string; + types?: string[]; + evolesFrom?: string; + evolvesTo?: string[]; + rules?: string[]; + ancientTrait?: IAncientTrait; + abilities?: IAbility[]; + attacks?: IAttack[]; + weaknesses?: IWeakness[]; + resistances?: IResistance[]; + retreatCost?: string[]; + convertedRetreatCost?: number; + set: ISet; + number: string; + artist?: string; + rarity: string; + flavorText?: string; + nationalPokedexNumbers?: number[]; + legalities: ILegality; + images: ICardImage; + tcgplayer?: ITCGPlayer; +}