Skip to content

Commit 1ed1d76

Browse files
cweiser22Cooper Weiser
andauthored
Fix typos (#584)
Co-authored-by: Cooper Weiser <[email protected]>
1 parent 2e54b4b commit 1ed1d76

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/essential/structure.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ app.get('/', ({ store: { build } }) => build)
5959
app.listen(3000)
6060
```
6161

62-
We recommend to <u>**always use method chaining**</u> to provide an accurate type inference.
62+
We recommend <u>**always using method chaining**</u> to provide an accurate type inference.
6363

6464
## Controller
6565
> 1 Elysia instance = 1 controller
@@ -160,9 +160,9 @@ As Elysia type is complex, and heavily depends on plugin and multiple level of c
160160

161161
### ✅ Do: Request dependent service as Elysia instance
162162

163-
We recommended to abstract service class away from Elysia.
163+
We recommend abstracting service classes away from Elysia.
164164

165-
However, **if the service is a request dependent service** or need to process HTTP request. We recommended to abstract it as Elysia instance to ensure type integrity and inference:
165+
However, **if the service is a request dependent service** or needs to process HTTP requests, ee recommend abstracting it as an Elysia instance to ensure type integrity and inference:
166166

167167
```typescript
168168
import { Elysia } from 'elysia'
@@ -197,7 +197,7 @@ Elysia handle [plugin deduplication](/essential/plugin.html#plugin-deduplication
197197

198198
### ⚠️ Infers Context from Elysia instance
199199

200-
In case of **absolute necessity**, you may infer the `Context` type from the Elysia instance itself:
200+
If **absolutely necessary**, you may infer the `Context` type from the Elysia instance itself:
201201
```typescript
202202
import { Elysia, type InferContext } from 'elysia'
203203

@@ -216,9 +216,9 @@ class AuthService {
216216
}
217217
```
218218

219-
However we recommend to avoid this if possible, and use [Elysia as a service](✅-do-use-elysia-instance-as-a-service) instead.
219+
However, we recommend avoiding this if possible, and using [Elysia as a service](✅-do-use-elysia-instance-as-a-service) instead.
220220

221-
You may find more about [InferContext](/essential/handler#infercontext) in [Essential: Handler](/essential/handler).
221+
You can learn more about [InferContext](/essential/handler#infercontext) in [Essential: Handler](/essential/handler).
222222

223223
## Model
224224
Model or [DTO (Data Transfer Object)](https://en.wikipedia.org/wiki/Data_transfer_object) is handle by [Elysia.t (Validation)](/validation/overview.html#data-validation).

0 commit comments

Comments
 (0)