UNPKG

enkanetwork

Version:

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

17 lines (16 loc) 707 B
import type { ICharacterData, IConstellationData, ICostumeData, INamecardData, IProfilePictureData, ISkillData } from "../../types"; interface IDataShapes { characters: ICharacterData; constellations: IConstellationData; costumes: ICostumeData; namecards: INamecardData; skills: ISkillData; profilePictures: IProfilePictureData; } /** * Validates that every generated record contains all required keys with the right * primitive shape. Returns a (possibly empty) list of human-readable problems instead * of throwing, so callers decide how to react. */ export declare function validateAssets<T extends keyof IDataShapes>(type: T, records: IDataShapes[T][]): string[]; export {};