@@ -59,7 +59,7 @@ interface Body {
59
59
This means that you will get strict type defining once from a schema and get inferred type to TypeScript without needing to write a single TypeScript.
60
60
61
61
## Global and scope
62
- The global schema will define all types of a handler in the scope .
62
+ The global schema will define all types within the scope of a handler .
63
63
64
64
``` typescript
65
65
app .guard ({
@@ -73,7 +73,7 @@ app.guard({
73
73
74
74
The global type will be overwritten by the nearest schema to the handler.
75
75
76
- In another word, inherits schema is rewritten by the inner scope.
76
+ In other words, the inherited schema is rewritten within the inner scope.
77
77
``` typescript
78
78
app .guard ({
79
79
response: t .String ()
@@ -87,7 +87,7 @@ app.guard({
87
87
)
88
88
```
89
89
90
- ` group ` and ` guard ` will define the scope limit , so the type will not get out of the scope handler.
90
+ ` group ` and ` guard ` will define the scope limits , so the type will not get out of the scope handler.
91
91
92
92
## Multiple Status Response
93
93
By default ` schema.response ` can accept either a schema definition or a map or stringified status code with schema.
@@ -110,9 +110,9 @@ new Elysia()
110
110
```
111
111
112
112
## Reference Models
113
- Sometime you might find yourself re-use the same type multiple time .
113
+ Sometimes you might find yourself reusing the same type multiple times .
114
114
115
- Using [ reference models] ( /patterns/reference-models ) , you can named your model and use it by referencing the name:
115
+ Using [ reference models] ( /patterns/reference-models ) , you can name your model and use it by referencing the name:
116
116
``` typescript
117
117
// auth.model.ts
118
118
import { Elysia } from ' elysia'
@@ -135,4 +135,4 @@ const app = new Elysia()
135
135
})
136
136
```
137
137
138
- For more explaination , see [ Reference Models] ( /patterns/reference-models ) .
138
+ For more explanation , see [ Reference Models] ( /patterns/reference-models ) .
0 commit comments