Add formatted and linted files
This commit is contained in:
@ -1,5 +1,5 @@
|
||||
export interface Ability {
|
||||
name: string;
|
||||
text: string;
|
||||
type: string;
|
||||
}
|
||||
name: string;
|
||||
text: string;
|
||||
type: string;
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
export interface AncientTrait {
|
||||
name: string;
|
||||
text: string;
|
||||
}
|
||||
name: string;
|
||||
text: string;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
export interface Query {
|
||||
name: string;
|
||||
value: string | number;
|
||||
}
|
||||
name: string;
|
||||
value: string | number;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
@ -5,4 +5,4 @@ interface Stats {
|
||||
|
||||
export interface Resistance extends Stats {}
|
||||
|
||||
export interface Weakness extends Stats {}
|
||||
export interface Weakness extends Stats {}
|
||||
|
||||
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user