@elysiajs/eden 0.2.0-rc.3 → 0.2.0-rc.4
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 +4 -0
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -4,8 +4,12 @@ Fully type-safe Elysia client.
|
|
|
4
4
|
## Installation
|
|
5
5
|
```bash
|
|
6
6
|
bun add @elysiajs/eden
|
|
7
|
+
bun add -d elysia
|
|
7
8
|
```
|
|
8
9
|
|
|
10
|
+
### note
|
|
11
|
+
Eden requires type definition from elysia to infer type accurately, it's recommended to install elysia as devDependencies with the same version as your API.
|
|
12
|
+
|
|
9
13
|
## Example
|
|
10
14
|
```typescript
|
|
11
15
|
// server.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@elysiajs/eden",
|
|
3
|
-
"version": "0.2.0-rc.
|
|
3
|
+
"version": "0.2.0-rc.4",
|
|
4
4
|
"description": "Fully type-safe Elysia client",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "saltyAom",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
"build": "vite build",
|
|
34
34
|
"release": "npm run build && npm run test && npm publish --access public"
|
|
35
35
|
},
|
|
36
|
-
"
|
|
37
|
-
"elysia": "
|
|
36
|
+
"peerDependencies": {
|
|
37
|
+
"elysia": ">= 0.1.0"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@elysiajs/cors": "^0.1.0",
|