File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -360,7 +360,7 @@ For example, narrowing down an available status code.
360
360
361
361
Inline error can be destructured from handler as follows:
362
362
` ` ` typescript
363
- import { Elysia } from ' elysai '
363
+ import { Elysia } from ' elysia '
364
364
365
365
new Elysia ()
366
366
.get (' /hello' , ({ error }) => {
Original file line number Diff line number Diff line change @@ -93,7 +93,7 @@ new Elysia()
93
93
})
94
94
```
95
95
96
- If you would like to call or perform unit test on controller, use [ Elysia.handle] ( http://localhost:5173 /essential/route.html#handle) .
96
+ If you would like to call or perform unit test on controller, use [ Elysia.handle] ( /essential/route.html#handle ) .
97
97
98
98
``` typescript
99
99
const app = new Elysia ()
@@ -118,7 +118,7 @@ const AController = new Elysia()
118
118
Hi .doStuff (stuff )
119
119
})
120
120
121
- const controller = plugin (AController )
121
+ const controller = treaty (AController )
122
122
const { data, error } = await controller .index .get ()
123
123
```
124
124
You can’t perform that action at this time.
0 commit comments