Skip to content

Commit 760bbf6

Browse files
authored
Correct grammatical errors - response.md (#561)
1 parent 719b041 commit 760bbf6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

docs/eden/treaty/response.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ head:
1515
---
1616

1717
# Response
18-
Once the fetch method is called, Eden Treaty return a promise containing an object with the following properties:
18+
Once the fetch method is called, Eden Treaty returns a `Promise` containing an object with the following properties:
1919
- data - returned value of the response (2xx)
2020
- error - returned value from the response (>= 3xx)
2121
- response `Response` - Web Standard Response class
@@ -67,12 +67,12 @@ const submit = async (name: string) => {
6767
}
6868
```
6969

70-
By default, Elysia infers `error` and `response` type to TypeScript automatically, and Eden will be providing auto-completion and type narrowing for accurate behavior.
70+
By default, Elysia infers `error` and `response` types to TypeScript automatically, and Eden will be providing auto-completion and type narrowing for accurate behavior.
7171

7272
::: tip
73-
If the server responds with an HTTP status >= 300, then value will be always be null, and `error` will have a returned value instead.
73+
If the server responds with an HTTP status >= 300, then the value will be always be `null`, and `error` will have a returned value instead.
7474

75-
Otherwise, response will be passed to data.
75+
Otherwise, response will be passed to `data`.
7676
:::
7777

7878
## Stream response

0 commit comments

Comments
 (0)