mirror of
https://github.com/tcgdex/compiler.git
synced 2025-04-22 10:42:09 +00:00
11 lines
278 B
TypeScript
11 lines
278 B
TypeScript
import Type from "../db/interfaces/Type";
|
|
import LangList, { Langs } from "../db/interfaces/LangList";
|
|
import { typeSimple } from "./types/type";
|
|
|
|
export function typeToTypeSimple(type: Type, lang: Langs): typeSimple {
|
|
return {
|
|
id: type,
|
|
name: Type.toLang(type, lang)
|
|
}
|
|
}
|