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.
2 parents b0dc21a + 730e006 commit dbfc906Copy full SHA for dbfc906
docs/patterns/dependency-injection.md
@@ -47,10 +47,10 @@ const authen = (app: Elysia) => app
47
.post('/sign-in', signIn)
48
.post('/sign-up', signUp)
49
// But then there is no type
50
- .post('/sign-out', ({ signOut, store: { db } }) => {
+ .post('/sign-out', ({ signOut, store: { redis } }) => {
51
signOut()
52
53
- db.doSomething()
+ redis.doSomething()
54
})
55
```
56
@@ -82,10 +82,10 @@ const authen = (app: Elysia) => app
82
83
84
// Now it's strictly typed
85
86
87
88
89
90
91
0 commit comments