mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 02:42:08 +00:00
Updated Interfaces
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
593b17b55f
commit
53afc67b72
@ -3,6 +3,12 @@ export interface AbilityTypeSimple {
|
||||
name: string
|
||||
}
|
||||
|
||||
export type AbilityTypeSingle = {
|
||||
id: AbilityType
|
||||
name: string
|
||||
cards: string
|
||||
}
|
||||
|
||||
enum AbilityType {
|
||||
POKEBODY,
|
||||
POKEPOWER,
|
||||
|
@ -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
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user