File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -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.
You can’t perform that action at this time.
0 commit comments