UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

20 lines (19 loc) 586 B
import type { z } from 'zod'; import { ApiBase } from '../../base/apiBase'; import { WorldsDTO } from '../../models'; import { numberArrayType } from '../v2apiUtils'; /** * /v2/worlds Api */ export declare class WorldsApi extends ApiBase { /** * Returns information about the available worlds, or servers. */ get(): Promise<z.infer<typeof numberArrayType>>; /** * Returns information about the available worlds, or servers. * * @param ids - List of realm ids, or "all" */ get(ids: number[] | 'all'): Promise<z.infer<typeof WorldsDTO>>; }