import { EnkaNetwork, FetchUserUID } from "enkanetwork";
const enka = new EnkaNetwork({ language: "EN", assets: { languages: ["RU"] } });
enka.setLanguage("RU").fetchUser(700832641).then(someFunction);
function someFunction(data: FetchUserUID) {
}
import { Character, EnkaNetwork } from "enkanetwork";
const enka = new EnkaNetwork({ language: "EN", assets: { languages: ["RU"] } });
enka.setLanguage("RU")
.fetchUser(700832641)
.then((user) =>
user.characters.forEach((character) => someFunction(character))
);
function someFunction(character: Character) {
}