Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/latest/advanced/define.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ description: |

Define helpers can be used to shorten the amount of types you have to type
yourself in code. They are entirely optional as some developers prefer the
expliciteness of types, other's like the convenience of `define.*` helpers.
explicitness of types, other's like the convenience of `define.*` helpers.

Without define helpers:

Expand Down Expand Up @@ -53,7 +53,7 @@ export const otherMiddleware = define.middleware((ctx) => {

The `define.*` helpers include a `define.handler()` and `define.page()` function
to make it easy for TypeScript to establish a relation between the two. That way
when you can pass data from the handler to the component in a type-safe way.
you can pass data from the handler to the component in a type-safe way.

```tsx routes/index.tsx
export const handler = define.handlers({
Expand Down
Loading