Skip to content

Commit f81f56c

Browse files
committed
fix: Typos at Schema page
1 parent 4f147ab commit f81f56c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/concept/schema.md

Lines changed: 3 additions & 3 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.

0 commit comments

Comments
 (0)