feat: Add support for boosters to set and card (#295)

This commit is contained in:
dhaber
2025-05-26 07:43:35 -04:00
committed by GitHub
parent c866b4022f
commit 95a658f98a
4 changed files with 28 additions and 2 deletions

13
src/interfaces.d.ts vendored
View File

@ -22,9 +22,18 @@ interface variants {
firstEdition?: boolean
}
interface booster {
id: string
name: string
logo?: string
artwork_front?: string
artwork_back?: string
}
export type SetList = Array<SetResume>
export type SerieList = Array<SerieResume>
export type CardList = Array<CardResume>
export type BoosterList = Array<booster>
export interface SetResume {
id: string
@ -105,6 +114,8 @@ export interface Set extends SetResume {
}
cards: CardList
boosters?: BoosterList
}
export interface CardResume {
@ -302,6 +313,8 @@ export interface Card<SetType extends SetResume = SetResume> extends CardResume
*/
expanded: boolean
}
boosters?: BoosterList
}
export type StringEndpointList = Array<string>