communitybuilds-node
Version:
Node.js API for Genshin Impact communitiy builds spreadsheet
56 lines • 1.5 kB
TypeScript
export type GenshinCharacterBuild = {
role: string;
equipment: string[];
artifacts: string[];
artifactsMainStats?: {
sands: string | undefined;
goblet: string | undefined;
circlet: string | undefined;
};
artifactsSubStats: string[];
talentPriority: string[];
optimal: boolean;
};
export type GenshinCharacter = {
name: string;
builds: GenshinCharacterBuild[];
notes?: string;
};
export type GenshinElement = 'pyro' | 'hydro' | 'anemo' | 'electro' | 'dendro' | 'cryo' | 'geo';
export type GenshinWeapons = 'claymores' | 'swords' | 'catalysts' | 'polearms' | 'bows';
export type APIResponse<T> = {
data: T[];
};
export type Sheet = Record<GenshinElement, APIResponse<GenshinCharacter>>;
export type Artifact = {
name: string;
img?: string;
twoPieces: string;
fourPieces: string;
};
export type Weapon = {
name: string;
img?: string;
mainStat: {
baseATKlv1: number;
baseATKlv90: number;
};
subStat: {
type: string;
valueLv1: number;
valueLv90: number;
};
passiveEffect?: string;
};
export type SearchStrategy<T> = Record<keyof T, string>;
export type SearchStrategyMapping = Record<GenshinWeapons, SearchStrategy<Weapon>>;
export type Config = {
eludeCaching: boolean;
cacheTTLms: number;
};
export type ElementResponse = {
data: GenshinCharacter[];
element?: GenshinElement;
error?: string;
};
//# sourceMappingURL=index.d.ts.map