Move code example to the side menu

This commit is contained in:
James Ritchie
2024-10-17 11:54:25 +01:00
parent 1d87b5ea43
commit db70faa4c7
+4 -2
View File
@@ -9,9 +9,9 @@ Context (`ctx`) is a way to get information about a run.
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.
</Note>
Here's an example:
<RequestExample>
```typescript
```typescript Context example
import { task } from "@trigger.dev/sdk/v3";
export const parentTask = task({
@@ -25,6 +25,8 @@ export const parentTask = task({
});
```
</RequestExample>
## Context properties
<ResponseField name="task" type="object">