1
0
mirror of https://github.com/tcgdex/cards-database.git synced 2025-07-23 17:29:50 +00:00
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
2020-02-03 15:18:40 +01:00
commit 0d2a757cae
12077 changed files with 1123810 additions and 0 deletions

16
interfaces/LangList.ts Normal file
View File

@ -0,0 +1,16 @@
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