Add formatted and linted files

This commit is contained in:
Tee
2021-03-15 23:23:06 -04:00
parent de16add8d1
commit 5755c744a3
20 changed files with 227 additions and 212 deletions

View File

@ -1,5 +1,5 @@
export interface Ability {
name: string;
text: string;
type: string;
}
name: string;
text: string;
type: string;
}

View File

@ -1,4 +1,4 @@
export interface AncientTrait {
name: string;
text: string;
}
name: string;
text: string;
}

View File

@ -1,7 +1,7 @@
export interface Attack {
convertedEnergyCost: number;
cost: string[];
damage: string;
name: string;
text: string;
}
convertedEnergyCost: number;
cost: string[];
damage: string;
name: string;
text: string;
}

View File

@ -13,29 +13,29 @@ import { Subtype } from '../enums/subtype';
import { Rarity } from '../enums/rarity';
export interface Card {
id: string;
name: string;
supertype: Supertype;
subtypes: Subtype[];
hp?: string;
types?: Type[];
evolesFrom?: string;
evolvesTo?: string[];
rules?: string[];
ancientTrait?: AncientTrait;
abilities?: Ability[];
attacks?: Attack[];
weaknesses?: Weakness[];
resistances?: Resistance[];
retreatCost?: string[];
convertedRetreatCost?: number;
set: Set;
number: string;
artist?: string;
rarity: Rarity;
flavorText?: string;
nationalPokedexNumbers?: number[];
legalities: ILegality;
images: CardImage;
tcgplayer?: TCGPlayer;
}
id: string;
name: string;
supertype: Supertype;
subtypes: Subtype[];
hp?: string;
types?: Type[];
evolesFrom?: string;
evolvesTo?: string[];
rules?: string[];
ancientTrait?: AncientTrait;
abilities?: Ability[];
attacks?: Attack[];
weaknesses?: Weakness[];
resistances?: Resistance[];
retreatCost?: string[];
convertedRetreatCost?: number;
set: Set;
number: string;
artist?: string;
rarity: Rarity;
flavorText?: string;
nationalPokedexNumbers?: number[];
legalities: ILegality;
images: CardImage;
tcgplayer?: TCGPlayer;
}

View File

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

View File

@ -1,10 +1,10 @@
export enum Legality {
Legal = 'Legal',
Banned = 'Banned',
Legal = 'Legal',
Banned = 'Banned',
}
export interface ILegality {
expanded?: Legality;
standard?: Legality;
unlimited?: Legality;
}
expanded?: Legality;
standard?: Legality;
unlimited?: Legality;
}

View File

@ -1,4 +1,4 @@
export interface Query {
name: string;
value: string | number;
}
name: string;
value: string | number;
}

View File

@ -1,15 +1,15 @@
import { SetImage } from "./image";
import { ILegality } from "./legality";
import { SetImage } from './image';
import { ILegality } from './legality';
export interface Set {
id: string;
name: string;
series: string;
printedTotal: number;
total: number;
legalities: ILegality;
ptcgoCode: string;
releaseDate: string;
updatedAt: string;
images: SetImage;
}
id: string;
name: string;
series: string;
printedTotal: number;
total: number;
legalities: ILegality;
ptcgoCode: string;
releaseDate: string;
updatedAt: string;
images: SetImage;
}

View File

@ -5,4 +5,4 @@ interface Stats {
export interface Resistance extends Stats {}
export interface Weakness extends Stats {}
export interface Weakness extends Stats {}

View File

@ -1,17 +1,17 @@
export interface TCGPlayer {
url: string;
updatedAt: string;
prices: {
normal?: Price;
holofoil?: Price;
reverseHolofoil?: Price;
}
url: string;
updatedAt: string;
prices: {
normal?: Price;
holofoil?: Price;
reverseHolofoil?: Price;
};
}
export interface Price {
low: number | null;
mid: number | null;
high: number | null;
market: number | null;
directLow: number | null;
}
low: number | null;
mid: number | null;
high: number | null;
market: number | null;
directLow: number | null;
}