1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-06-15 08:59:18 +00:00

Made Variants mandatory

Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2021-05-02 17:04:19 +02:00
parent 79a11faaa6
commit f8744ee6dd
155 changed files with 3114 additions and 255 deletions

6
interfaces.d.ts vendored
View File

@ -14,6 +14,10 @@ interface variants {
firstEdition?: boolean
}
type Mandatory<T extends {}> = {
[TK in keyof T]: NonNullable<T[TK]>
}
export type Types = 'Colorless' | 'Darkness' | 'Dragon' |
'Fairy' | 'Fightning' | 'Fire' |
'Grass' | 'Lightning' | 'Metal' |
@ -25,7 +29,7 @@ export interface Set {
name: Languages
serie: Serie
tcgOnline?: string
variants?: variants
variants: Mandatory<variants>
cardCount: {
total: number