mirror of
https://github.com/tcgdex/cards-database.git
synced 2025-07-29 03:09:49 +00:00
Updated Interfaces
Signed-off-by: Avior <florian.bouillon@delta-wings.net>
This commit is contained in:
@ -5,8 +5,10 @@ type LangList<T> = {
|
||||
it?: T
|
||||
}
|
||||
|
||||
export type Langs = "en" | "fr" | "es" | "it"
|
||||
|
||||
namespace LangList {
|
||||
export function insert(from: LangList<any>, el: any, lang: string) {
|
||||
export function insert(from: LangList<any>, el: any, lang: Langs) {
|
||||
if (typeof from !== "object") from = {}
|
||||
from[lang] = el
|
||||
return from
|
||||
|
Reference in New Issue
Block a user