UNPKG

@yeci226/hoyoapi

Version:

HoYoAPI is an unofficial API Wrapper library developed to facilitate communication with the official HoYoLab API.

10 lines (9 loc) 278 B
import { GenshinRegion } from './gi.interface'; /** * Get Genshin Impact region based on UID. * * @param uid User ID. * @returns Region for the UID. * @throws `HoyoAPIError` when the UID is invalid. */ export declare function getGenshinRegion(uid: number): GenshinRegion;