Refactor newly merged interface names

This commit is contained in:
Tee
2021-02-25 22:19:25 -05:00
parent 43c1987a83
commit 4006272f4d
5 changed files with 17 additions and 17 deletions

View File

@ -1,4 +1,4 @@
export interface IAttack {
export interface Attack {
convertedEnergyCost: number;
cost: string[];
damage: string;

View File

@ -3,10 +3,10 @@ import { AncientTrait } from './ancientTrait';
import { Attack } from './attack';
import { Resistance } from './resistance';
import { Weakness } from './weakness';
import { ICardImage } from './image';
import { CardImage } from './image';
import { ILegality } from './legality';
import { Set } from './set';
import { ITCGPlayer } from './tcgplayer';
import { TCGPlayer } from './tcgplayer';
export interface Card {
abilities: Ability[];
@ -18,7 +18,7 @@ export interface Card {
flavorText: string;
hp: string;
id: string;
images: ICardImage;
images: CardImage;
legalities: ILegality;
name: string;
nationalPokedexNumbers: number[];
@ -30,7 +30,7 @@ export interface Card {
set: Set;
subtypes: string[];
supertype: string;
tcgplayer: ITCGPlayer | undefined;
tcgplayer: TCGPlayer | undefined;
types: string[];
weaknesses: Weakness[];
}

View File

@ -1,9 +1,9 @@
export interface ISetImage {
export interface SetImage {
symbol: string;
logo: string;
}
export interface ICardImage {
export interface CardImage {
small: string;
large: string;
}

View File

@ -1,10 +1,10 @@
import { ISetImage } from "./image";
import { ILegality } from "./legality";
import { SetImage } from "./image";
import { Legality } from "./legality";
export interface ISet {
export interface Set {
id: string;
images: ISetImage;
legalities: ILegality;
images: SetImage;
legalities: Legality;
name: string;
printedTotal: number;
ptcgoCode: string;

View File

@ -1,14 +1,14 @@
export interface ITCGPlayer {
export interface TCGPlayer {
url: string;
updatedAt: string;
prices: {
normal: IPrice | undefined;
holofoil: IPrice | undefined;
reverseHolofoil: IPrice | undefined;
normal: Price | undefined;
holofoil: Price | undefined;
reverseHolofoil: Price | undefined;
}
}
export interface IPrice {
export interface Price {
low: number | null
mid: number | null
high: number | null