@lcas58/esmi-api-types 1.0.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.
Files changed (2) hide show
  1. package/README.md +24 -0
  2. package/package.json +20 -0
package/README.md ADDED
@@ -0,0 +1,24 @@
1
+ # ESMI API Types
2
+
3
+ Shared TypeScript types for ESMI frontend and backend applications.
4
+
5
+ ## Installation
6
+
7
+ ```bash
8
+ bun add @lcas58/esmi-api-types
9
+ # or
10
+ npm install @lcas58/esmi-api-types
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```typescript
16
+ import type { AppType } from "@lcas58/esmi-api-types";
17
+
18
+ // Use AppType in your Hono client
19
+ const client = hc<AppType>("/api");
20
+ ```
21
+
22
+ ## Development
23
+
24
+ This package is automatically updated when the backend API types change.
package/package.json ADDED
@@ -0,0 +1,20 @@
1
+ {
2
+ "name": "@lcas58/esmi-api-types",
3
+ "version": "1.0.0",
4
+ "description": "Shared API types for ESMI frontend and backend",
5
+ "main": "dist/app.d.ts",
6
+ "types": "dist/app.d.ts",
7
+ "files": [
8
+ "dist/"
9
+ ],
10
+ "scripts": {
11
+ "build": "bun run tsc",
12
+ "prepublishOnly": "bun run build"
13
+ },
14
+ "keywords": ["typescript", "api", "types", "esmi"],
15
+ "author": "lcas58",
16
+ "license": "MIT",
17
+ "devDependencies": {
18
+ "typescript": "^5.0.0"
19
+ }
20
+ }