Updated Interfaces

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
Florian Bouillon 2020-03-11 11:02:24 +01:00
parent 593b17b55f
commit 53afc67b72
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16
6 changed files with 43 additions and 8 deletions

View File

@ -3,6 +3,12 @@ export interface AbilityTypeSimple {
name: string
}
export type AbilityTypeSingle = {
id: AbilityType
name: string
cards: string
}
enum AbilityType {
POKEBODY,
POKEPOWER,

View File

@ -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<IllustratorSimple>
}
export type IllustratorsList = List<IllustratorSimple>
interface Illustrator {
id: number

View File

@ -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<CardSimple>
}
export type RarityList = List<RaritySimple>

View File

@ -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<CardSimple>
}
export interface RetreatList {
count: number,
list: Array<RetreatSimple>
}
export type RetreatList = List<RetreatSimple>

View File

@ -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<CardSimple>
}
export type TagList = List<TagSimple>

View File

@ -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<CardSimple>
}
export type TypeList = List<TypeSimple>
export default Type