Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for more variants #485

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 3 additions & 38 deletions interfaces.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,42 +12,7 @@ export interface Serie {
energies?: Array<Types>
}

interface variants {
/**
* Card base version
*/
normal?: boolean
/**
* Holo Reverse
* (colored Background holographic)
*/
reverse?: boolean
/**
* Holo Card
* (illustration holographic)
*/
holo?: boolean

/**
* can have a first Edition stamp
*/
firstEdition?: boolean

/**
* Can be found in Jumob Format
*/
jumbo?: boolean

/**
* Card has a pre-release stamp
*/
preRelease?: boolean

/**
* Card has a W stamp
*/
wPromo?: true
}
type Variants = 'Standard' | 'Parallel Foil' | 'Standard Foil' | 'First Edition' | 'Jumbo' | 'Pre-Release' | 'W-Promo'

export type Types = 'Colorless' | 'Darkness' | 'Dragon' |
'Fairy' | 'Fighting' | 'Fire' |
Expand Down Expand Up @@ -133,9 +98,9 @@ export interface Card {
category: 'Pokemon' | 'Trainer' | 'Energy'

/**
* Card Variants (Override Set Variants)
* Card Variants
*/
variants?: variants
variants?: Array<Variants>

/**
* Card Set
Expand Down
Loading