UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

30 lines (29 loc) 1.03 kB
import type { z } from 'zod'; import { ApiBase } from '../../base/apiBase'; import { MountsSkinsDTO, MountsTypesDTO } from '../../models'; import { numberArrayType, stringArrayType } from '../v2apiUtils'; /** * /v2/mounts Api */ export declare class MountsApi extends ApiBase { /** * Returns information about mount skins that are available in-game. */ getSkins(): Promise<z.infer<typeof numberArrayType>>; /** * Returns information about mount skins that are available in-game. * * @param ids - List of mount skin ids, or "all" */ getSkins(ids: number[] | 'all'): Promise<z.infer<typeof MountsSkinsDTO>>; /** * Returns information about mount types that are available in-game. */ getTypes(): Promise<z.infer<typeof stringArrayType>>; /** * Returns information about mount types that are available in-game. * * @param ids - List of mount type ids, or "all" */ getTypes(ids: string[] | 'all'): Promise<z.infer<typeof MountsTypesDTO>>; }