guildwars2-ts
Version:
GuildWars 2 API Wrapper in Typescript
25 lines (24 loc) • 906 B
TypeScript
import type { z } from 'zod';
import { ApiBase } from '../../base/apiBase';
import { MapsDTO } from '../../models';
import { numberArrayType } from '../v2apiUtils';
/**
* /v2/maps Api
*
* NOTE: This endpoint is frequently out of sync.
* Visit https://wiki.guildwars2.com/wiki/API:2/maps for more info
*/
export declare class MapsApi extends ApiBase {
/**
* Returns details about maps in the game, including details about floor and translation
* data on how to translate between world coordinates and map coordinates.
*/
get(): Promise<z.infer<typeof numberArrayType>>;
/**
* Returns details about maps in the game, including details about floor and translation
* data on how to translate between world coordinates and map coordinates.
*
* @param ids - List of map ids, or "all"
*/
get(ids: number[] | 'all'): Promise<z.infer<typeof MapsDTO>>;
}