mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-06-28 23:09:18 +00:00
@ -1,8 +1,8 @@
|
||||
import { objectLoop } from '@dzeio/object-util'
|
||||
import { Card as SDKCard, CardResume, SupportedLanguages } from '@tcgdex/sdk'
|
||||
import Set from './Set'
|
||||
import { Pagination } from '../../interfaces'
|
||||
import { lightCheck } from '../../util'
|
||||
import Set from './Set'
|
||||
|
||||
type LocalCard = Omit<SDKCard, 'set'> & {set: () => Set}
|
||||
|
||||
@ -51,7 +51,7 @@ export default class Card implements LocalCard {
|
||||
if (key === 'set') {
|
||||
return
|
||||
}
|
||||
this[key as 'id'] = it
|
||||
this[key as 'id'] = it as string
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -1,8 +1,8 @@
|
||||
import { objectLoop } from '@dzeio/object-util'
|
||||
import { Serie as SDKSerie, SerieResume, SupportedLanguages } from '@tcgdex/sdk'
|
||||
import Set from './Set'
|
||||
import { Pagination } from '../../interfaces'
|
||||
import { lightCheck } from '../../util'
|
||||
import Set from './Set'
|
||||
|
||||
type LocalSerie = Omit<SDKSerie, 'sets'> & {sets: () => Array<Set>}
|
||||
|
||||
@ -20,7 +20,7 @@ export default class Serie implements LocalSerie {
|
||||
if (key === 'sets') {
|
||||
return
|
||||
}
|
||||
this[key as 'id'] = it
|
||||
this[key as 'id'] = it as string
|
||||
})
|
||||
}
|
||||
|
||||
|
@ -1,9 +1,9 @@
|
||||
import { objectLoop } from '@dzeio/object-util'
|
||||
import { Set as SDKSet, SetResume, SupportedLanguages } from '@tcgdex/sdk'
|
||||
import Card from './Card'
|
||||
import { Pagination } from '../../interfaces'
|
||||
import Serie from './Serie'
|
||||
import { lightCheck } from '../../util'
|
||||
import Card from './Card'
|
||||
import Serie from './Serie'
|
||||
|
||||
interface variants {
|
||||
normal?: boolean;
|
||||
@ -24,7 +24,7 @@ export default class Set implements LocalSet {
|
||||
if (key === 'serie' || key === 'cards') {
|
||||
return
|
||||
}
|
||||
this[key as 'id'] = it
|
||||
this[key as 'tcgOnline'] = it as string
|
||||
})
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user