We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8a0173b commit a38de80Copy full SHA for a38de80
CHANGELOG.md
@@ -1,4 +1,4 @@
1
-# 1.4.6 - 15 Sep 2025
+# 1.4.6 - 18 Sep 2025
2
Improvement:
3
- [#1406](https://github.com/elysiajs/elysia/issues/1406) strictly check for 200 inline status code
4
- coerce union status value and return type
example/a.ts
@@ -1,5 +1,18 @@
import { Elysia, t } from '../src'
new Elysia()
- .decorate("db", Object.freeze({ hello: "world" }))
5
- .guard({}, app => app)
+ .macro({
+ token: {
6
+ resolve: () => {
7
+ return {
8
+ __token: '123'
9
+ }
10
11
12
+ })
13
+ .macro('some', {
14
+ token: true,
15
+ beforeHandle: ({ __token }) => {
16
+ console.log('__token', __token)
17
18
0 commit comments