mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-14 16:39:18 +00:00
feat: Add support for Asians Pokémon Cards (#481)
This commit is contained in:
9
interfaces.d.ts
vendored
9
interfaces.d.ts
vendored
@ -1,4 +1,8 @@
|
||||
export type SupportedLanguages = 'en' | 'fr' | 'es' | 'it' | 'pt' | 'de'
|
||||
export type SupportedLanguages =
|
||||
// inter languages
|
||||
'en' | 'fr' | 'es' | 'it' | 'pt' | 'pt-br' | 'pt-pt' | 'de' | 'nl' | 'pl' | 'ru' |
|
||||
// Asian languages
|
||||
'ja' | 'ko' | 'zh-tw' | 'id' | 'th' | 'zh-cn'
|
||||
|
||||
export type Languages<T = string> = Partial<Record<SupportedLanguages, T>>
|
||||
|
||||
@ -54,6 +58,7 @@ export type Types = 'Colorless' | 'Darkness' | 'Dragon' |
|
||||
'Grass' | 'Lightning' | 'Metal' |
|
||||
'Psychic' | 'Water'
|
||||
|
||||
type ISODate = `${number}-${number}-${number}`
|
||||
|
||||
export interface Set {
|
||||
id: string
|
||||
@ -65,7 +70,7 @@ export interface Set {
|
||||
official: number
|
||||
}
|
||||
|
||||
releaseDate: string
|
||||
releaseDate: ISODate | Languages<ISODate>
|
||||
}
|
||||
|
||||
export interface Card {
|
||||
|
Reference in New Issue
Block a user