Skip to content

Commit 2f44171

Browse files
committed
docs: Fix typos
1 parent f5a3d1c commit 2f44171

4 files changed

Lines changed: 11 additions & 8 deletions

File tree

docs/content/server/routes/_index.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,18 +71,21 @@ export const app = createApp().get(
7171
);
7272
```
7373

74-
All available properties are typed, so you're editor can tell you what's available.
74+
All available properties are typed, so your editor can tell you what's available.
7575

7676
## Handler Context
7777

7878
The handler function receives "context" as its first argument. This object contains information about the request:
7979

8080
- `route` – The matched route
81-
- `path` – The parsed path parameters
81+
- `path` – The full URL pathname
82+
- `params` – The parsed path parameters
8283
- `query` – The parsed query parameters
8384
- `body` – The parsed request body
8485
- `request` – The original `Request` instance
8586
- `url` – The parsed URL
87+
- `set` – Util for setting response headers
88+
- `status` – Util for setting the response status
8689

8790
### Decorate
8891

docs/content/server/routes/path-params.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ There are three ways to define a path parameter:
3333
2. `**` – Anonymous wildcard
3434
3. `**:paramName` – Named wildcard
3535

36-
Wildcard parameters accept any number of path segments, and can be accessed by `params["**"]` or `params.paramName`, depending on if it is named or anonymous.
36+
Wildcard parameters accept any number of path segments, and can be accessed by `params["**"]` or `params.paramName`, depending on if it is anonymous or named.
3737

38-
Here's an example using a named wildcard parameter to throw a 404 error if the API endpoint is not found:
38+
Here's an example using an anonymous wildcard parameter to throw a 404 error if the API endpoint is not found:
3939

4040
```ts
4141
const app = createApp({ prefix: "/api" })

docs/content/server/routes/request-body.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ Or you can use Zeta's built-in client which will [build the `FormData` for you](
7171

7272
## Files
7373

74-
Similar to individual file uploads, Zeta provides a util for uploading `FileList`s: [`UploadFilesBody`](https://jsr.io/@aklinker1/zeta/doc/schema/~/UploadFilesBody) based on an input `File`.
74+
Similar to individual file uploads, Zeta provides a util for uploading `FileList`s: [`UploadFilesBody`](https://jsr.io/@aklinker1/zeta/doc/schema/~/UploadFilesBody).
7575

7676
```ts
7777
import { UploadFilesBody } from "@aklinker1/zeta/schemas";
@@ -87,7 +87,7 @@ const app = createApp().post(
8787
);
8888
```
8989

90-
In the handler, instead of a `FileList`, you'll be provided an array of `File` instances.
90+
In the handler, instead of a `FileList`, you'll be provided a `File[]`.
9191

9292
On the client side, the body is still `FormData`, but the key is `files` instead:
9393

@@ -126,7 +126,7 @@ const app = createApp().post(
126126

127127
## Other
128128

129-
If you need to upload another data type, like for example CSV, you can do so by adding the `contentType` metadata to your body schema:
129+
If you need to upload another data type, like CSV, you can do so by adding the `contentType` metadata to your body schema:
130130

131131
```ts
132132
import { z } from "zod";

docs/content/testing/test-client.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,4 @@ describe("App", () => {
6161
});
6262
```
6363

64-
Details for how to use the `client` object can be found in Zeta's [Client-side docs](@/client/_index.md);
64+
Details for how to use the `client` object can be found in Zeta's [Client-side docs](@/client/_index.md).

0 commit comments

Comments
 (0)