Skip to content

Commit 43085ff

Browse files
samejrnicktrn
authored andcommitted
Move code example to the side menu
1 parent 0839824 commit 43085ff

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/context.mdx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ Context (`ctx`) is a way to get information about a run.
99
The context object does not change whilst your code is executing. This means values like `ctx.run.durationMs` will be fixed at the moment the `run()` function is called.
1010
</Note>
1111

12-
Here's an example:
12+
<RequestExample>
1313

14-
```typescript
14+
```typescript Context example
1515
import { task } from "@trigger.dev/sdk/v3";
1616

1717
export const parentTask = task({
@@ -25,6 +25,8 @@ export const parentTask = task({
2525
});
2626
```
2727

28+
</RequestExample>
29+
2830
## Context properties
2931

3032
<ResponseField name="task" type="object">

0 commit comments

Comments
 (0)