0.0.22 • Published 9 months ago
@gw2api/types v0.0.22
@gw2api/types
TypeScript types for all datastructures used by the Guild Wars 2 API.
Usage
You can use this library to add strong types when working with the Guild Wars 2 API and not using @gw2api/fetch
or @gw2api/client
, for example when using your own api client, working with data from a database, or writing helper functions.
import type { Gw2Api, EndpointType } from '@gw2api/types';
function getItemName(item: Gw2Api.V2.Item) {
return item.name;
}
type ItemEndpointResponse = EndpointType<'/v2/items?ids=1,2,3'>;
// -> Array<{ id: number, name: string, ... }>
Installation
npm i @gw2api/types
Contributing
See parent readme.
License
Licensed under the MIT License.
0.0.22
9 months ago
0.0.21
10 months ago
0.0.20
11 months ago
0.0.10
12 months ago
0.0.11
12 months ago
0.0.12
12 months ago
0.0.13
12 months ago
0.0.14
12 months ago
0.0.15
12 months ago
0.0.9
12 months ago
0.0.16
12 months ago
0.0.8
12 months ago
0.0.17
12 months ago
0.0.18
12 months ago
0.0.19
11 months ago
0.0.7
12 months ago
0.0.6
12 months ago
0.0.5
1 year ago
0.0.3
1 year ago
0.0.4
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago