Skip to content

Documentation


Documentation / @blizzard-api/classic-wow / region

Function: region() ​

region(namespace, regionId): object

Defined in: classic-wow/src/region/index.ts:11

Get a region by ID.

Parameters ​

namespace ​

"dynamic-classic1x" | "dynamic-classic" | "dynamic-classicann"

The namespace to use. See DynamicClassicNamespaces.

regionId ​

number

The region ID.

Returns ​

The region. See RegionResponse.

_responseType? ​

optional _responseType?: RegionResponse

Internal

The response type of the resource

namespace? ​

optional namespace?: BlizzardNamespaces

parameters? ​

optional parameters?: Record<string, unknown>

path ​

path: string

The request path. Dynamic path segments should be encoded with encodeURIComponent.