UNPKG

guildwars2-ts

Version:

GuildWars 2 API Wrapper in Typescript

20 lines (19 loc) 611 B
import type { z } from 'zod'; import { ApiBase } from '../../base/apiBase'; import { ProfessionsDTO } from '../../models'; import { stringArrayType } from '../v2apiUtils'; /** * /v2/professions Api */ export declare class ProfessionsApi extends ApiBase { /** * Returns information about professions that are in the game. */ get(): Promise<z.infer<typeof stringArrayType>>; /** * Returns information about professions that are in the game. * * @param ids - List of profession ids, or "all" */ get(ids: string[] | 'all'): Promise<z.infer<typeof ProfessionsDTO>>; }