@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 +7 -3
- package/dist/client.d.ts +195 -195
- package/dist/types.d.ts +1034 -2
- package/package.json +2 -2
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
|
+
[](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<
|
|
28
|
-
data:
|
|
31
|
+
interface EsiResponse<TData, THeaders = Record<string, string>> {
|
|
32
|
+
data: TData;
|
|
29
33
|
status: number;
|
|
30
|
-
headers:
|
|
34
|
+
headers: THeaders;
|
|
31
35
|
}
|
|
32
36
|
|
|
33
37
|
interface EsiError {
|