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