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:
6
interfaces.d.ts
vendored
6
interfaces.d.ts
vendored
@ -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
|
||||
|
Reference in New Issue
Block a user