1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-07-02 00:29:17 +00:00
Files
cards-database/interfaces/LangList.ts
2020-02-03 15:18:40 +01:00

17 lines
251 B
TypeScript

type LangList<T> = {
fr?: T
en?: T
es?: T
it?: T
}
namespace LangList {
export function insert(from: LangList<any>, el: any, lang: string) {
if (typeof from !== "object") from = {}
from[lang] = el
return from
}
}
export default LangList