Skip to content

Commit c7eb1be

Browse files
authored
Merge pull request #64 from ChristoPy/fix-schema-typos
Fix Schema typos
2 parents fcea98f + f81f56c commit c7eb1be

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/concept/schema.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ interface Body {
5959
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.
6060

6161
## 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.
6363

6464
```typescript
6565
app.guard({
@@ -73,7 +73,7 @@ app.guard({
7373

7474
The global type will be overwritten by the nearest schema to the handler.
7575

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.
7777
```typescript
7878
app.guard({
7979
response: t.String()
@@ -87,7 +87,7 @@ app.guard({
8787
)
8888
```
8989

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.
9191

9292
## Multiple Status Response
9393
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()
110110
```
111111

112112
## 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.
114114

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:
116116
```typescript
117117
// auth.model.ts
118118
import { Elysia } from 'elysia'
@@ -135,4 +135,4 @@ const app = new Elysia()
135135
})
136136
```
137137

138-
For more explaination, see [Reference Models](/patterns/reference-models).
138+
For more explanation, see [Reference Models](/patterns/reference-models).

0 commit comments

Comments
 (0)