UNPKG

enkanetwork

Version:

API wrapper for enka.network written on TypeScript which provides localization, caching and convenience

41 lines (40 loc) 1.1 kB
export type TElement = "Cryo" | "Hydro" | "Anemo" | "Pyro" | "Geo" | "Electro" | "Dendro"; export type TAssetsList = "characters" | "costumes" | "constellations" | "namecards" | "reliquary" | "reliquarySets" | "skills" | "weapons"; export interface ICharacterData { id: number; skillDepotId: number; nameTextMapHash: number; iconName: string; sideIconName: string; gachaIcon: string; qualityStars: 5 | 4; element: TElement; skills: number[]; talents: number[]; } export interface IConstellationData { id: number; nameTextMapHash: number; icon: string; } export interface ICostumeData { id: number; iconName: string; sideIconName: string; gachaIcon: string; nameTextMapHash: number; } export interface INamecardData { id: number; nameTextMapHash: number; icon: string; navbar?: string; banner: string; } export interface ISkillData { id: number; nameTextMapHash: number; skillIcon: string; proudSkillGroupId: number; } export type TLocalizationData = Record<string, Record<string, string> | null>;