mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
8 lines
251 B
TypeScript
8 lines
251 B
TypeScript
import Expansion from "../db/interfaces/Expansion"
|
|
import Set from "../db/interfaces/Set"
|
|
|
|
export function getExpansion(set: Set): Expansion {
|
|
if ("expansion" in set) return set.expansion
|
|
return require(`../../db/expansions/${set.expansionCode}`)
|
|
}
|