mirror of
https://github.com/tcgdex/javascript-sdk.git
synced 2025-04-22 02:42:08 +00:00
32 lines
461 B
TypeScript
32 lines
461 B
TypeScript
import { List } from "./General"
|
|
import { CardSimple } from "./Card"
|
|
|
|
export enum Rarity {
|
|
NONE,
|
|
COMMON,
|
|
UNCOMMON,
|
|
RARE,
|
|
|
|
// Both RAREULTRA and ULTRARARE are the same until I know the correct name
|
|
RAREULTRA = 4,
|
|
ULTRARARE = 4,
|
|
|
|
AMAZING,
|
|
|
|
}
|
|
|
|
export default Rarity
|
|
|
|
export interface RaritySimple {
|
|
id: Rarity
|
|
name: string
|
|
}
|
|
|
|
export type RaritySingle = {
|
|
id: Rarity
|
|
name: string
|
|
cards: Array<CardSimple>
|
|
}
|
|
|
|
export type RarityList = List<RaritySimple>
|