1
0
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:
Florian Bouillon 2020-02-08 17:55:29 +01:00
parent 465a616980
commit f805fc09b4
No known key found for this signature in database
GPG Key ID: B143FF27EF555D16
3 changed files with 3 additions and 3 deletions

View File

@ -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>

View File

@ -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

View File

@ -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