This package provides a tiny wrapper around native fetch to call the Guild Wars 2 API that returns typesafe responses.
import { fetchGw2Api } from '@gw2api/fetch';
const item = await fetchGw2Api('/v2/items/1234');
// -> { id: number, name: string, ... }
npm i @gw2api/fetch
See parent readme.
Licensed under the MIT License.