mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-04-22 10:52:10 +00:00
Updated interfaces
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
parent
465a616980
commit
f805fc09b4
@ -3,7 +3,7 @@ import LangList from "./LangList";
|
|||||||
import { promises } from "fs";
|
import { promises } from "fs";
|
||||||
|
|
||||||
interface Ability {
|
interface Ability {
|
||||||
id: number
|
id?: number
|
||||||
type: AbilityType
|
type: AbilityType
|
||||||
name: LangList<string>
|
name: LangList<string>
|
||||||
text: LangList<string>
|
text: LangList<string>
|
||||||
|
@ -6,6 +6,7 @@ import Rarity from "./Rarity";
|
|||||||
import Attack from "./Attack";
|
import Attack from "./Attack";
|
||||||
import Illustrator from "./Illutrator";
|
import Illustrator from "./Illutrator";
|
||||||
import Ability from "./Ability";
|
import Ability from "./Ability";
|
||||||
|
import Set from "./Set";
|
||||||
|
|
||||||
interface Card {
|
interface Card {
|
||||||
|
|
||||||
@ -55,7 +56,7 @@ interface Card {
|
|||||||
set: {
|
set: {
|
||||||
name: string
|
name: string
|
||||||
code: string
|
code: string
|
||||||
}
|
}| Set
|
||||||
}
|
}
|
||||||
|
|
||||||
export default Card
|
export default Card
|
||||||
|
@ -19,7 +19,6 @@ export default interface Set {
|
|||||||
official: number
|
official: number
|
||||||
}
|
}
|
||||||
|
|
||||||
// subsets only releaseDate
|
|
||||||
releaseDate?: string // date in format yyyy-mm-dd
|
releaseDate?: string // date in format yyyy-mm-dd
|
||||||
|
|
||||||
// api endpoint for scrapping
|
// api endpoint for scrapping
|
||||||
|
Loading…
x
Reference in New Issue
Block a user