@localisprimary/esi 1.0.2 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  A slightly opinionated TypeScript client for the [EVE Online API](https://developers.eveonline.com/api-explorer).
4
4
 
5
+
6
+ [![NPM Version](https://img.shields.io/npm/v/%40localisprimary%2Fesi)](https://www.npmjs.com/package/@localisprimary/esi)
7
+
8
+
5
9
  ## Usage
6
10
 
7
11
  ```typescript
@@ -24,10 +28,10 @@ console.log(alliance.data)
24
28
  This client provides methods for all EVE ESI endpoints. Methods return a Promise that resolves to an `EsiResponse<T>` object or throws an `EsiError`.
25
29
 
26
30
  ```typescript
27
- interface EsiResponse<T> {
28
- data: T;
31
+ interface EsiResponse<TData, THeaders = Record<string, string>> {
32
+ data: TData;
29
33
  status: number;
30
- headers: Partial<Record<string, string>>;
34
+ headers: THeaders;
31
35
  }
32
36
 
33
37
  interface EsiError {