Skip to content

Commit 2714cdb

Browse files
committed
📘 doc: release 1.3.0
1 parent acf8dcc commit 2714cdb

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

docs/blog/elysia-11.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -218,8 +218,7 @@ Elysia 1.1 now normalize data before it's being processed.
218218
To ensure that data is consistent and safe, Elysia will try to coerce data into an exact data shape defined in schema, removing additional fields, and normalizing data into a consistent format.
219219

220220
For example if you have a schema like this:
221-
```typescript twoslash
222-
// @errors: 2353
221+
```typescript
223222
import { Elysia, t } from 'elysia'
224223
import { treaty } from '@elysiajs/eden'
225224

docs/eden/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ import type { App } from './server' // [!code ++]
7676
const client = treaty<App>('localhost:3000') // [!code ++]
7777

7878
// response: Hi Elysia
79-
const { data: index } = await client.index.get()
79+
const { data: index } = await client.get()
8080

8181
// response: 1895
8282
const { data: id } = await client.id({ id: 1895 }).get()

docs/eden/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ app.
101101

102102

103103
// Call [GET] at '/'
104-
const { data } = await app.index.get()
104+
const { data } = await app.get()
105105

106106
// Call [PUT] at '/nendoroid/:id'
107107
const { data: nendoroid, error } = await app.nendoroid({ id: 1895 }).put({

docs/eden/treaty/overview.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,15 @@ Eden Treaty turns an Elysia server into a tree-like file system that can be acce
8888

8989
| Path | Treaty |
9090
| ------------ | ------------ |
91-
| / | .index |
91+
| / | |
9292
| /hi | .hi |
9393
| /deep/nested | .deep.nested |
9494

9595
Combined with the HTTP method, we can interact with the Elysia server.
9696

9797
| Path | Method | Treaty |
9898
| ------------ | ------ | ------------------- |
99-
| / | GET | .index.get() |
99+
| / | GET | .get() |
100100
| /hi | GET | .hi.get() |
101101
| /deep/nested | GET | .deep.nested.get() |
102102
| /deep/nested | POST | .deep.nested.post() |

0 commit comments

Comments
 (0)