diff --git a/interfaces/AbilityType.ts b/interfaces/AbilityType.ts index e6bfec3..c6b32c4 100644 --- a/interfaces/AbilityType.ts +++ b/interfaces/AbilityType.ts @@ -3,6 +3,12 @@ export interface AbilityTypeSimple { name: string } +export type AbilityTypeSingle = { + id: AbilityType + name: string + cards: string +} + enum AbilityType { POKEBODY, POKEPOWER, diff --git a/interfaces/Illustrator.ts b/interfaces/Illustrator.ts index 772ce8a..4174794 100644 --- a/interfaces/Illustrator.ts +++ b/interfaces/Illustrator.ts @@ -1,4 +1,5 @@ import { CardSimple } from "./Card"; +import { List } from "./General"; export type IllustratorSingle = { id: number, @@ -11,10 +12,7 @@ export interface IllustratorSimple { name: string } -export interface IllustratorsList { - count: number - list: Array -} +export type IllustratorsList = List interface Illustrator { id: number diff --git a/interfaces/Rarity.ts b/interfaces/Rarity.ts index 8d31137..d90fbdf 100644 --- a/interfaces/Rarity.ts +++ b/interfaces/Rarity.ts @@ -1,3 +1,6 @@ +import { List } from "./General" +import { CardSimple } from "./Card" + export enum Rarity { Common, Uncommon, @@ -30,3 +33,11 @@ export interface RaritySimple { id: Rarity name: string } + +export type RaritySingle = { + id: Rarity + name: string + cards: Array +} + +export type RarityList = List diff --git a/interfaces/Retreat.ts b/interfaces/Retreat.ts index 07941b9..f8e9948 100644 --- a/interfaces/Retreat.ts +++ b/interfaces/Retreat.ts @@ -1,4 +1,5 @@ import { CardSimple } from "./Card"; +import { List } from "./General"; export type RetreatSimple = number @@ -7,7 +8,4 @@ export interface RetreatSingle { cards: Array } -export interface RetreatList { - count: number, - list: Array -} +export type RetreatList = List diff --git a/interfaces/Tag.ts b/interfaces/Tag.ts index 332e022..ce3830e 100644 --- a/interfaces/Tag.ts +++ b/interfaces/Tag.ts @@ -1,3 +1,6 @@ +import { List } from "./General" +import { CardSimple } from "./Card" + enum Tag { BASIC, BASICENERGY, @@ -29,3 +32,11 @@ export interface TagSimple { id: Tag name: string } + +export type TagSingle = { + id: Tag + name: string + cards: Array +} + +export type TagList = List diff --git a/interfaces/Type.ts b/interfaces/Type.ts index 5548b29..53ab22b 100644 --- a/interfaces/Type.ts +++ b/interfaces/Type.ts @@ -1,3 +1,6 @@ +import { List } from "./General" +import { CardSimple } from "./Card" + enum Type { COLORLESS, DARKNESS, @@ -17,4 +20,12 @@ export interface TypeSimple { name: string } +export type TypeSingle = { + id: Type + name: string + cards: Array +} + +export type TypeList = List + export default Type