guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
20 lines (19 loc) • 555 B
TypeScript
import type { z } from 'zod';
import { ApiBase } from '../../base/apiBase';
import { RacesDTO } from '../../models';
import { stringArrayType } from '../v2apiUtils';
/**
* /v2/races Api
*/
export declare class RacesApi extends ApiBase {
/**
* Returns information on in-game playable races.
*/
get(): Promise<z.infer<typeof stringArrayType>>;
/**
* Returns information on in-game playable races.
*
* @param ids - List of race ids, or "all"
*/
get(ids: string[] | 'all'): Promise<z.infer<typeof RacesDTO>>;
}